PageSourceSearch

https://adamhanczyn.pl/assets/index-Dp6vgdCm.js

js adamhanczyn.pl collected 2026-10-08 07:34:42 UTC 736,865 bytes, 119 lines download raw bytes

vendor: 8,215 bytes, lines 1-2
1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-CxGulhJR.js","assets/forms.functions-CnzzEidH.js","assets/tool-access.middleware-BbUgtIB9.js","assets/arrow-right-Iov1rbwf.js","assets/compass-BVyqg9_j.js","assets/wrench-CGRdwszg.js","assets/shield-check-DN5yzIfp.js","assets/plus-CjGa4Ova.js","assets/check-CwBqLgJg.js","assets/abonament-BWOxphFR.js","assets/useServerFn-Dlk5juMu.js","assets/TermsAccept-C2foJ_Qm.js","assets/SubscriptionCta-D-NMo7I1.js","assets/product-names-CajoN2BV.js","assets/loader-circle-CciwRn0E.js","assets/abonament-BSkzxm5O.js","assets/abonament-Cf8__w5I.js","assets/abonament-rplQA7oc.js","assets/abonament-test-e3cbSkzp.js","assets/analiza-B_UiMMhE.js","assets/arrow-left-8_bTbyg9.js","assets/dpa-abonamentu-EtqasDKI.js","assets/LegalDoc-B2mhXMl3.js","assets/jak-pracuje-Cl5TpZz8.js","assets/kwalifikacja-CNZCnxfG.js","assets/o-mnie-Ct9mWt4-.js","assets/polityka-prywatnosci-abonamentu-DCHpirQM.js","assets/poradniki-5YVsaE6B.js","assets/file-text-b4Vk-Eu6.js","assets/download-CBdZgD_e.js","assets/procedury-pQe1q7ND.js","assets/log-out-CGs0jN6K.js","assets/regulamin-abonamentu-L1M4GU0n.js","assets/start-Drz6zXej.js","assets/subiekt-callback-EsD2enRb.js","assets/subiekt.functions-ExMiuZts.js","assets/narzedzia-dostepy-tde2QYhh.js","assets/catalog-BHg0a2Le.js","assets/access.functions-RBl395l_.js","assets/key-round-MbRp5VhL.js","assets/search-Cwe-Sehs.js","assets/trash-2-S0QGy4ZT.js","assets/panel-klientow-BmTNe_kx.js","assets/panel.functions-Ds1yV4Tw.js","assets/pencil-CLhIbbcF.js","assets/upload-0rrulmTW.js","assets/platnosci-DpggZVz9.js","assets/zgloszenia-DWOMkRPS.js","assets/baza-wiedzy.index-CRMZ-ivJ.js","assets/baza-wiedzy._slug-sK-IpjSP.js","assets/baza-wiedzy._slug-Thy3EEbF.js","assets/narzedzia.index-BezILtSW.js","assets/lock-Mqyfc3AI.js","assets/boxes-DogMMcr4.js","assets/gauge-bqX8Z5wT.js","assets/chart-column-CrDxg8-k.js","assets/narzedzia.asystent-BWDcrp-G.js","assets/ToolGate-30wnsVlc.js","assets/procedures.functions-oZ0voen-.js","assets/message-square-B_aLb26O.js","assets/send-D3Jzwigl.js","assets/narzedzia.generator-DXWhqtps.js","assets/ProcedureView-Bp3McRTD.js","assets/pdf-font-BN-KFYiX.js","assets/circle-alert-DE2bnkyC.js","assets/square-DcloG8zw.js","assets/narzedzia.kalkulator-3QH1t3Gu.js","assets/narzedzia.kondycja-finansowa-BLm2N_oE.js","assets/sparkles-Cgk5A_La.js","assets/narzedzia.procedury-DVBWgqcr.js","assets/save-BFQTsU7x.js","assets/narzedzia.zapasy-DcBOPCzn.js","assets/panel.index-ByP7M-Rf.js","assets/procedury.index-BbIMfMo9.js","assets/plans-CZkb3e8C.js","assets/database-DjBNIQOW.js","assets/users-C-kFuerj.js","assets/server-C6XRcVX6.js","assets/procedury.bezpieczenstwo-CZMtf_-9.js","assets/procedury.logowanie-DONSKVWB.js","assets/index-CbbIf9Iv.js","assets/procedury.rejestracja-CF4jtshH.js","assets/companies.functions-B3zVZSD8.js","assets/procedury.reset-hasla-BkbTRL4n.js","assets/procedury.asystent-CifRx8WV.js","assets/procedury.generator-DZPRYPLn.js","assets/procedury.panel-D8XN4uqR.js","assets/procedures.functions-BYMYGxuM.js","assets/procedury.repozytorium-Dz6Lp5S_.js","assets/procedury.ustawienia-CbH0RwES.js","assets/procedury.zespol-btL3NmsF.js","assets/procedury.repozytorium._id-jzIHFtIt.js"])))=>i.map(i=>d[i]);
2var sL=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Wj(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var sf={exports:{}},Io={};var Kz;function Xj(){if(Kz)return Io;Kz=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function a(r,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:e,type:r,key:u,ref:s!==void 0?s:null,props:l}}return Io.Fragment=t,Io.jsx=a,Io.jsxs=a,Io}var Jz;function Qj(){return Jz||(Jz=1,sf.exports=Xj()),sf.exports}var $=Qj(),cf={exports:{}},we={};var Vz;function e_(){if(Vz)return we;Vz=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),r=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"),y=Symbol.for("react.memo"),z=Symbol.for("react.lazy"),m=Symbol.for("react.activity"),g=Symbol.iterator;function b(A){return A===null||typeof A!="object"?null:(A=g&&A[g]||A["@@iterator"],typeof A=="function"?A:null)}var v={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},j=Object.assign,_={};function T(A,q,Y){this.props=A,this.context=q,this.refs=_,this.updater=Y||v}T.prototype.isReactComponent={},T.prototype.setState=function(A,q){if(typeof A!="object"&&typeof A!="function"&&A!=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,A,q,"setState")},T.prototype.forceUpdate=function(A){this.updater.enqueueForceUpdate(this,A,"forceUpdate")};function O(){}O.prototype=T.prototype;function R(A,q,Y){this.props=A,this.context=q,this.refs=_,this.updater=Y||v}var M=R.prototype=new O;M.constructor=R,j(M,T.prototype),M.isPureReactComponent=!0;var Z=Array.isArray;function I(){}var N={H:null,A:null,T:null,S:null},G=Object.prototype.hasOwnProperty;function Q(A,q,Y){var te=Y.ref;return{$$typeof:e,type:A,key:q,ref:te!==void 0?te:null,props:Y}}function oe(A,q){return Q(A.type,q,A.props)}function J(A){return typeof A=="object"&&A!==null&&A.$$typeof===e}function V(A){var q={"=":"=0",":":"=2"};return"$"+A.replace(/[=:]/g,function(Y){return q[Y]})}var X=/\/+/g;function ye(A,q){return typeof A=="object"&&A!==null&&A.key!=null?V(""+A.key):q.toString(36)}function re(A){switch(A.status){case"fulfilled":return A.value;case"rejected":throw A.reason;default:switch(typeof A.status=="string"?A.then(I,I):(A.status="pending",A.then(function(q){A.status==="pending"&&(A.status="fulfilled",A.value=q)},function(q){A.status==="pending"&&(A.status="rejected",A.reason=q)})),A.status){case"fulfilled":return A.value;case"rejected":throw A.reason}}throw A}function L(A,q,Y,te,ze){var ke=typeof A;(ke==="undefined"||ke==="boolean")&&(A=null);var le=!1;if(A===null)le=!0;else switch(ke){case"bigint":case"string":case"number":le=!0;break;case"object":switch(A.$$typeof){case e:case t:le=!0;break;case z:return le=A._init,L(le(A._payload),q,Y,te,ze)}}if(le)return ze=ze(A),le=te===""?"."+ye(A,0):te,Z(ze)?(Y="",le!=null&&(Y=le.replace(X,"$&/")+"/"),L(ze,q,Y,"",function(_n){return _n})):ze!=null&&(J(ze)&&(ze=oe(ze,Y+(ze.key==null||A&&A.key===ze.key?"":(""+ze.key).replace(X,"$&/")+"/")+le)),q.push(ze)),1;le=0;var Ne=te===""?".":te+":";if(Z(A))for(var qe=0;qe<A.length;qe++)te=A[qe],ke=Ne+ye(te,qe),le+=L(te,q,Y,ke,ze);else if(qe=b(A),typeof qe=="function")for(A=qe.call(A),qe=0;!(te=A.next()).done;)te=te.value,ke=Ne+ye(te,qe++),le+=L(te,q,Y,ke,ze);else if(ke==="object"){if(typeof A.then=="function")return L(re(A),q,Y,te,ze);throw q=String(A),Error("Objects are not valid as a React child (found: "+(q==="[object Object]"?"object with keys {"+Object.keys(A).join(", ")+"}":q)+"). If you meant to render a collection of children, use an array instead.")}return le}function F(A,q,Y){if(A==null)return A;var te=[],ze=0;return L(A,te,"","",function(ke){return q.call(Y,ke,ze++)}),te}function ce(A){if(A._status===-1){var q=A._result;q=q(),q.then(function(Y){(A._status===0||A._status===-1)&&(A._status=1,A._result=Y)},function(Y){(A._status===0||A._status===-1)&&(A._status=2,A._result=Y)}),A._status===-1&&(A._status=0,A._result=q)}if(A._status===1)return A._result.default;throw A._result}var Ce=typeof reportError=="function"?reportError:function(A){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var q=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof A=="object"&&A!==null&&typeof A.message=="string"?String(A.message):String(A),error:A});if(!window.dispatchEvent(q))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",A);return}console.error(A)}
vendor: 15,885 bytes, lines 2-4
2,_e={map:F,forEach:function(A,q,Y){F(A,function(){q.apply(this,arguments)},Y)},count:function(A){var q=0;return F(A,function(){q++}),q},toArray:function(A){return F(A,function(q){return q})||[]},only:function(A){if(!J(A))throw Error("React.Children.only expected to receive a single React element child.");return A}};return we.Activity=m,we.Children=_e,we.Component=T,we.Fragment=a,we.Profiler=s,we.PureComponent=R,we.StrictMode=r,we.Suspense=h,we.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=N,we.__COMPILER_RUNTIME={__proto__:null,c:function(A){return N.H.useMemoCache(A)}},we.cache=function(A){return function(){return A.apply(null,arguments)}},we.cacheSignal=function(){return null},we.cloneElement=function(A,q,Y){if(A==null)throw Error("The argument must be a React element, but you passed "+A+".");var te=j({},A.props),ze=A.key;if(q!=null)for(ke in q.key!==void 0&&(ze=""+q.key),q)!G.call(q,ke)||ke==="key"||ke==="__self"||ke==="__source"||ke==="ref"&&q.ref===void 0||(te[ke]=q[ke]);var ke=arguments.length-2;if(ke===1)te.children=Y;else if(1<ke){for(var le=Array(ke),Ne=0;Ne<ke;Ne++)le[Ne]=arguments[Ne+2];te.children=le}return Q(A.type,ze,te)},we.createContext=function(A){return A={$$typeof:u,_currentValue:A,_currentValue2:A,_threadCount:0,Provider:null,Consumer:null},A.Provider=A,A.Consumer={$$typeof:l,_context:A},A},we.createElement=function(A,q,Y){var te,ze={},ke=null;if(q!=null)for(te in q.key!==void 0&&(ke=""+q.key),q)G.call(q,te)&&te!=="key"&&te!=="__self"&&te!=="__source"&&(ze[te]=q[te]);var le=arguments.length-2;if(le===1)ze.children=Y;else if(1<le){for(var Ne=Array(le),qe=0;qe<le;qe++)Ne[qe]=arguments[qe+2];ze.children=Ne}if(A&&A.defaultProps)for(te in le=A.defaultProps,le)ze[te]===void 0&&(ze[te]=le[te]);return Q(A,ke,ze)},we.createRef=function(){return{current:null}},we.forwardRef=function(A){return{$$typeof:d,render:A}},we.isValidElement=J,we.lazy=function(A){return{$$typeof:z,_payload:{_status:-1,_result:A},_init:ce}},we.memo=function(A,q){return{$$typeof:y,type:A,compare:q===void 0?null:q}},we.startTransition=function(A){var q=N.T,Y={};N.T=Y;try{var te=A(),ze=N.S;ze!==null&&ze(Y,te),typeof te=="object"&&te!==null&&typeof te.then=="function"&&te.then(I,Ce)}catch(ke){Ce(ke)}finally{q!==null&&Y.types!==null&&(q.types=Y.types),N.T=q}},we.unstable_useCacheRefresh=function(){return N.H.useCacheRefresh()},we.use=function(A){return N.H.use(A)},we.useActionState=function(A,q,Y){return N.H.useActionState(A,q,Y)},we.useCallback=function(A,q){return N.H.useCallback(A,q)},we.useContext=function(A){return N.H.useContext(A)},we.useDebugValue=function(){},we.useDeferredValue=function(A,q){return N.H.useDeferredValue(A,q)},we.useEffect=function(A,q){return N.H.useEffect(A,q)},we.useEffectEvent=function(A){return N.H.useEffectEvent(A)},we.useId=function(){return N.H.useId()},we.useImperativeHandle=function(A,q,Y){return N.H.useImperativeHandle(A,q,Y)},we.useInsertionEffect=function(A,q){return N.H.useInsertionEffect(A,q)},we.useLayoutEffect=function(A,q){return N.H.useLayoutEffect(A,q)},we.useMemo=function(A,q){return N.H.useMemo(A,q)},we.useOptimistic=function(A,q){return N.H.useOptimistic(A,q)},we.useReducer=function(A,q,Y){return N.H.useReducer(A,q,Y)},we.useRef=function(A){return N.H.useRef(A)},we.useState=function(A){return N.H.useState(A)},we.useSyncExternalStore=function(A,q,Y){return N.H.useSyncExternalStore(A,q,Y)},we.useTransition=function(){return N.H.useTransition()},we.version="19.2.6",we}var Zz;function zs(){return Zz||(Zz=1,cf.exports=e_()),cf.exports}var ae=zs();const Rl=Wj(ae);var lf={exports:{}},Bo={},uf={exports:{}},df={};var Gz;function t_(){return Gz||(Gz=1,(function(e){function t(L,F){var ce=L.length;L.push(F);e:for(;0<ce;){var Ce=ce-1>>>1,_e=L[Ce];if(0<s(_e,F))L[Ce]=F,L[ce]=_e,ce=Ce;else break e}}function a(L){return L.length===0?null:L[0]}function r(L){if(L.length===0)return null;var F=L[0],ce=L.pop();if(ce!==F){L[0]=ce;e:for(var Ce=0,_e=L.length,A=_e>>>1;Ce<A;){var q=2*(Ce+1)-1,Y=L[q],te=q+1,ze=L[te];if(0>s(Y,ce))te<_e&&0>s(ze,Y)?(L[Ce]=ze,L[te]=ce,Ce=te):(L[Ce]=Y,L[q]=ce,Ce=q);else if(te<_e&&0>s(ze,ce))L[Ce]=ze,L[te]=ce,Ce=te;else break e}}return F}function s(L,F){var ce=L.sortIndex-F.sortIndex;return ce!==0?ce:L.id-F.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var l=performance;e.unstable_now=function(){return l.now()}}else{var u=Date,d=u.now();e.unstable_now=function(){return u.now()-d}}var h=[],y=[],z=1,m=null,g=3,b=!1,v=!1,j=!1,_=!1,T=typeof setTimeout=="function"?setTimeout:null,O=typeof clearTimeout=="function"?clearTimeout:null,R=typeof setImmediate<"u"?setImmediate:null;function M(L){for(var F=a(y);F!==null;){if(F.callback===null)r(y);else if(F.startTime<=L)r(y),F.sortIndex=F.expirationTime,t(h,F);else break;F=a(y)}}function Z(L){if(j=!1,M(L),!v)if(a(h)!==null)v=!0,I||(I=!0,V());else{var F=a(y);F!==null&&re(Z,F.startTime-L)}}var I=!1,N=-1,G=5,Q=-1;function oe(){return _?!0:!(e.unstable_now()-Q<G)}function J(){if(_=!1,I){var L=e.unstable_now();Q=L;var F=!0;try{e:{v=!1,j&&(j=!1,O(N),N=-1),b=!0;var ce=g;try{t:{for(M(L),m=a(h);m!==null&&!(m.expirationTime>L&&oe());){var Ce=m.callback;if(typeof Ce=="function"){m.callback=null,g=m.priorityLevel;var _e=Ce(m.expirationTime<=L);if(L=e.unstable_now(),typeof _e=="function"){m.callback=_e,M(L),F=!0;break t}m===a(h)&&r(h),M(L)}else r(h);m=a(h)}if(m!==null)F=!0;else{var A=a(y);A!==null&&re(Z,A.startTime-L),F=!1}}break e}finally{m=null,g=ce,b=!1}F=void 0}}finally{F?V():I=!1}}}var V;if(typeof R=="function")V=function(){R(J)};else if(typeof MessageChannel<"u"){var X=new MessageChannel,ye=X.port2;X.port1.onmessage=J,V=function(){ye.postMessage(null)}}else V=function(){T(J,0)};function re(L,F){N=T(function(){L(e.unstable_now())},F)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(L){L.callback=null},e.unstable_forceFrameRate=function(L){0>L||125<L?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):G=0<L?Math.floor(1e3/L):5},e.unstable_getCurrentPriorityLevel=function(){return g},e.unstable_next=function(L){switch(g){case 1:case 2:case 3:var F=3;break;default:F=g}var ce=g;g=F;try{return L()}finally{g=ce}},e.unstable_requestPaint=function(){_=!0},e.unstable_runWithPriority=function(L,F){switch(L){case 1:case 2:case 3:case 4:case 5:break;default:L=3}var ce=g;g=L;try{return F()}finally{g=ce}},e.unstable_scheduleCallback=function(L,F,ce){var Ce=e.unstable_now();switch(typeof ce=="object"&&ce!==null?(ce=ce.delay,ce=typeof ce=="number"&&0<ce?Ce+ce:Ce):ce=Ce,L){case 1:var _e=-1;break;case 2:_e=250;break;case 5:_e=1073741823;break;case 4:_e=1e4;break;default:_e=5e3}return _e=ce+_e,L={id:z++,callback:F,priorityLevel:L,startTime:ce,expirationTime:_e,sortIndex:-1},ce>Ce?(L.sortIndex=ce,t(y,L),a(h)===null&&L===a(y)&&(j?(O(N),N=-1):j=!0,re(Z,ce-Ce))):(L.sortIndex=_e,t(h,L),v||b||(v=!0,I||(I=!0,V()))),L},e.unstable_shouldYield=oe,e.unstable_wrapCallback=function(L){var F=g;return function(){var ce=g;g=F;try{return L.apply(this,arguments)}finally{g=ce}}}})(df)),df}var Yz;function n_(){return Yz||(Yz=1,uf.exports=t_()),uf.exports}var ff={exports:{}},Tt={};var Fz;function a_(){if(Fz)return Tt;Fz=1;var e=zs();function t(h){var y="https://react.dev/errors/"+h;if(1<arguments.length){y+="?args[]="+encodeURIComponent(arguments[1]);for(var z=2;z<arguments.length;z++)y+="&args[]="+encodeURIComponent(arguments[z])}return"Minified React error #"+h+"; visit "+y+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function a(){}var r={d:{f:a,r:function(){throw Error(t(522))},D:a,C:a,L:a,m:a,X:a,S:a,M:a},p:0,findDOMNode:null},s=Symbol.for("react.portal");function l(h,y,z){var m=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:s,key:m==null?null:""+m,children:h,containerInfo:y,implementation:z}}var u=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function d(h,y){if(h==="font")return"";if(typeof y=="string")return y==="use-credentials"?y:""}return Tt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,Tt.createPortal=function(h,y){var z=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!y||y.nodeType!==1&&y.nodeType!==9&&y.nodeType!==11)throw Error(t(299));return l(h,y,null,z)},Tt.flushSync=function(h){var y=u.T,z=r.p;try{if(u.T=null,r.p=2,h)return h()}finally{u.T=y,r.p=z,r.d.f()}},Tt.preconnect=function(h,y){typeof h=="string"&&(y?(y=y.crossOrigin,y=typeof y=="string"?y==="use-credentials"?y:"":void 0):y=null,r.d.C(h,y))},Tt.prefetchDNS=function(h){typeof h=="string"&&r.d.D(h)},Tt.preinit=function(h,y){if(typeof h=="string"&&y&&typeof y.as=="string"){var z=y.as,m=d(z,y.crossOrigin),g=typeof y.integrity=="string"?y.integrity:void 0,b=typeof y.fetchPriority=="string"?y.fetchPriority:void 0;z==="style"?r.d.S(h,typeof y.precedence=="string"?y.precedence:void 0,{crossOrigin:m,integrity:g,fetchPriority:b}):z==="script"&&r.d.X(h,{crossOrigin:m,integrity:g,fetchPriority:b,nonce:typeof y.nonce=="string"?y.nonce:void 0})}},Tt.preinitModule=function(h,y){if(typeof h=="string")if(typeof y=="object"&&y!==null){if(y.as==null||y.as==="script"){var z=d(y.as,y.crossOrigin);r.d.M(h,{crossOrigin:z,integrity:typeof y.integrity=="string"?y.integrity:void 0,nonce:typeof y.nonce=="string"?y.nonce:void 0})}}else y==null&&r.d.M(h)},Tt.preload=function(h,y){if(typeof h=="string"&&typeof y=="object"&&y!==null&&typeof y.as=="string"){var z=y.as,m=d(z,y.crossOrigin);r.d.L(h,z,{crossOrigin:m,integrity:typeof y.integrity=="string"?y.integrity:void 0,nonce:typeof y.nonce=="string"?y.nonce:void 0,type:typeof y.type=="string"?y.type:void 0,fetchPriority:typeof y.fetchPriority=="string"?y.fetchPriority:void 0,referrerPolicy:typeof y.referrerPolicy=="string"?y.referrerPolicy:void 0,imageSrcSet:typeof y.imageSrcSet=="string"?y.imageSrcSet:void 0,imageSizes:typeof y.imageSizes=="string"?y.imageSizes:void 0,media:typeof y.media=="string"?y.media:void 0})}},Tt.preloadModule=function(h,y){if(typeof h=="string")if(y){var z=d(y.as,y.crossOrigin);r.d.m(h,{as:typeof y.as=="string"&&y.as!=="script"?y.as:void 0,crossOrigin:z,integrity:typeof y.integrity=="string"?y.integrity:void 0})}else r.d.m(h)},Tt.requestFormReset=function(h){r.d.r(h)},Tt.unstable_batchedUpdates=function(h,y){return h(y)},Tt.useFormState=function(h,y,z){return u.H.useFormState(h,y,z)},Tt.useFormStatus=function(){return u.H.useHostTransitionStatus()},Tt.version="19.2.6",Tt}var Wz;function i_(){if(Wz)return ff.exports;Wz=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),ff.exports=a_(),ff.exports}var Xz;function r_(){if(Xz)return Bo;Xz=1;var e=n_(),t=zs(),a=i_();function r(n){var i="https://react.dev/errors/"+n;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 #"+n+"; visit "+i+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(n){return!(!n||n.nodeType!==1&&n.nodeType!==9&&n.nodeType!==11)}function l(n){var i=n,o=n;if(n.alternate)for(;i.return;)i=i.return;else{n=i;do i=n,(i.flags&4098)!==0&&(o=i.return),n=i.return;while(n)}return i.tag===3?o:null}function u(n){if(n.tag===13){var i=n.memoizedState;if(i===null&&(n=n.alternate,n!==null&&(i=n.memoizedState)),i!==null)return i.dehydrated}return null}function d(n){if(n.tag===31){var i=n.memoizedState;if(i===null&&(n=n.alternate,n!==null&&(i=n.memoizedState)),i!==null)return i.dehydrated}return null}function h(n){if(l(n)!==n)throw Error(r(188))}function y(n){var i=n.alternate;if(!i){if(i=l(n),i===null)throw Error(r(188));return i!==n?null:n}for(var o=n,c=i;;){var f=o.return;if(f===null)break;var p=f.alternate;if(p===null){if(c=f.return,c!==null){o=c;continue}break}if(f.child===p.child){for(p=f.child;p;){if(p===o)return h(f),n;if(p===c)return h(f),i;p=p.sibling}throw Error(r(188))}if(o.return!==c.return)o=f,c=p;else{for(var w=!1,k=f.child;k;){if(k===o){w=!0,o=f,c=p;break}if(k===c){w=!0,c=f,o=p;break}k=k.sibling}if(!w){for(k=p.child;k;){if(k===o){w=!0,o=p,c=f;break}if(k===c){w=!0,c=p,o=f;break}k=k.sibling}if(!w)throw Error(r(189))}}if(o.alternate!==c)throw Error(r(190))}if(o.tag!==3)throw Error(r(188));return o.stateNode.current===o?n:i}function z(n){var i=n.tag;if(i===5||i===26||i===27||i===6)return n;for(n=n.child;n!==null;){if(i=z(n),i!==null)return i;n=n.sibling}return null}var m=Object.assign,g=Symbol.for("react.element"),b=Symbol.for("react.transitional.element"),v=Symbol.for("react.portal"),j=Symbol.for("react.fragment"),_=Symbol.for("react.strict_mode"),T=Symbol.for("react.profiler"),O=Symbol.for("react.consumer"),R=Symbol.for("react.context"),M=Symbol.for("react.forward_ref"),Z=Symbol.for("react.suspense"),I=Symbol.for("react.suspense_list"),N=Symbol.for("react.memo"),G=Symbol.for("react.lazy"),Q=Symbol.for("react.activity"),oe=Symbol.for("react.memo_cache_sentinel"),J=Symbol.iterator;function V(n){return n===null||typeof n!="object"?null:(n=J&&n[J]||n["@@iterator"],typeof n=="function"?n:null)}var X=Symbol.for("react.client.reference");function ye(n){if(n==null)return null;if(typeof n=="function")return n.$$typeof===X?null:n.displayName||n.name||null;if(typeof n=="string")return n;switch(n){case j:return"Fragment";case T:return"Profiler";case _:return"StrictMode";case Z:return"Suspense";case I:return"SuspenseList";case Q:return"Activity"}if(typeof n=="object")switch(n.$$typeof){case v:return"Portal";case R:return n.displayName||"Context";case O:return(n._context.displayName||"Context")+".Consumer";case M:var i=n.render;return n=n.displayName,n||(n=i.displayName||i.name||"",n=n!==""?"ForwardRef("+n+")":"ForwardRef"),n;case N:return i=n.displayName||null,i!==null?i:ye(n.type)||"Memo";case G:i=n._payload,n=n._init;try{return ye(n(i))}catch{}}return null}var re=Array.isArray,L=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,F=a.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ce={pending:!1,data:null,method:null,action:null},Ce=[],_e=-1;function A(n){return{current:n}}function q(n){0>_e||(n.current=Ce[_e],Ce[_e]=null,_e--)}function Y(n,i){_e++,Ce[_e]=n.current,n.current=i}var te=A(null),ze=A(null),ke=A(null),le=A(null);function Ne(n,i){switch(Y(ke,i),Y(ze,n),Y(te,null),i.nodeType){case 9:case 11:n=(n=i.documentElement)&&(n=n.namespaceURI)?hz(n):0;break;default:if(n=i.tagName,i=i.namespaceURI)i=hz(i),n=pz(i,n);else switch(n){case"svg":n=1;break;case"math":n=2;break;default:n=0}}q(te),Y(te,n)}function qe(){q(te),q(ze),q(ke)}function _n(n){n.memoizedState!==null&&Y(le,n);var i=te.current,o=pz(i,n.type);i!==o&&(Y(ze,n),Y(te,o))}function ti(n){ze.current===n&&(q(te),q(ze)),le.current===n&&(q(le),Lo._currentValue=ce)}var Ln,qh;function ni(n){if(Ln===void 0)try{throw Error()}catch(o){var i=o.stack.trim().match(/\n( *(at )?)/);Ln=i&&i[1]||"",qh=-1<o.stack.indexOf(`
3    at`)?" (<anonymous>)":-1<o.stack.indexOf("@")?"@unknown:0:0":""}return`
4`+Ln+n+qh}var ql=!1;function Kl(n,i){if(!n||ql)return"";ql=!0;var o=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var c={DetermineComponentFrameRoot:function(){try{if(i){var K=function(){throw Error()};if(Object.defineProperty(K.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(K,[])}catch(U){var P=U}Reflect.construct(n,[],K)}else{try{K.call()}catch(U){P=U}n.call(K.prototype)}}else{try{throw Error()}catch(U){P=U}(K=n())&&typeof K.catch=="function"&&K.catch(function(){})}}
vendor: 10,799 bytes, lines 4-9
4catch(U){if(U&&P&&typeof U.stack=="string")return[U.stack,P.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 p=c.DetermineComponentFrameRoot(),w=p[0],k=p[1];if(w&&k){var S=w.split(`
5`),D=k.split(`
6`);for(f=c=0;c<S.length&&!S[c].includes("DetermineComponentFrameRoot");)c++;for(;f<D.length&&!D[f].includes("DetermineComponentFrameRoot");)f++;if(c===S.length||f===D.length)for(c=S.length-1,f=D.length-1;1<=c&&0<=f&&S[c]!==D[f];)f--;for(;1<=c&&0<=f;c--,f--)if(S[c]!==D[f]){if(c!==1||f!==1)do if(c--,f--,0>f||S[c]!==D[f]){var B=`
7`+S[c].replace(" at new "," at ");return n.displayName&&B.includes("<anonymous>")&&(B=B.replace("<anonymous>",n.displayName)),B}while(1<=c&&0<=f);break}}}finally{ql=!1,Error.prepareStackTrace=o}return(o=n?n.displayName||n.name:"")?ni(o):""}function Av(n,i){switch(n.tag){case 26:case 27:case 5:return ni(n.type);case 16:return ni("Lazy");case 13:return n.child!==i&&i!==null?ni("Suspense Fallback"):ni("Suspense");case 19:return ni("SuspenseList");case 0:case 15:return Kl(n.type,!1);case 11:return Kl(n.type.render,!1);case 1:return Kl(n.type,!0);case 31:return ni("Activity");default:return""}}function Kh(n){try{var i="",o=null;do i+=Av(n,o),o=n,n=n.return;while(n);return i}catch(c){return`
8Error generating stack: `+c.message+`
9`+c.stack}}var Jl=Object.prototype.hasOwnProperty,Vl=e.unstable_scheduleCallback,Zl=e.unstable_cancelCallback,Rv=e.unstable_shouldYield,Ov=e.unstable_requestPaint,Bt=e.unstable_now,Cv=e.unstable_getCurrentPriorityLevel,Jh=e.unstable_ImmediatePriority,Vh=e.unstable_UserBlockingPriority,vs=e.unstable_NormalPriority,Nv=e.unstable_LowPriority,Zh=e.unstable_IdlePriority,xv=e.log,Dv=e.unstable_setDisableYieldValue,Zr=null,Ht=null;function ya(n){if(typeof xv=="function"&&Dv(n),Ht&&typeof Ht.setStrictMode=="function")try{Ht.setStrictMode(Zr,n)}catch{}}var qt=Math.clz32?Math.clz32:Mv,Pv=Math.log,Lv=Math.LN2;function Mv(n){return n>>>=0,n===0?32:31-(Pv(n)/Lv|0)|0}var js=256,_s=262144,Ss=4194304;function ai(n){var i=n&42;if(i!==0)return i;switch(n&-n){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return n&261888;case 262144:case 524288:case 1048576:case 2097152:return n&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return n&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return n}}function Ts(n,i,o){var c=n.pendingLanes;if(c===0)return 0;var f=0,p=n.suspendedLanes,w=n.pingedLanes;n=n.warmLanes;var k=c&134217727;return k!==0?(c=k&~p,c!==0?f=ai(c):(w&=k,w!==0?f=ai(w):o||(o=k&~n,o!==0&&(f=ai(o))))):(k=c&~p,k!==0?f=ai(k):w!==0?f=ai(w):o||(o=c&~n,o!==0&&(f=ai(o)))),f===0?0:i!==0&&i!==f&&(i&p)===0&&(p=f&-f,o=i&-i,p>=o||p===32&&(o&4194048)!==0)?i:f}function Gr(n,i){return(n.pendingLanes&~(n.suspendedLanes&~n.pingedLanes)&i)===0}function Uv(n,i){switch(n){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 Gh(){var n=Ss;return Ss<<=1,(Ss&62914560)===0&&(Ss=4194304),n}function Gl(n){for(var i=[],o=0;31>o;o++)i.push(n);return i}function Yr(n,i){n.pendingLanes|=i,i!==268435456&&(n.suspendedLanes=0,n.pingedLanes=0,n.warmLanes=0)}function $v(n,i,o,c,f,p){var w=n.pendingLanes;n.pendingLanes=o,n.suspendedLanes=0,n.pingedLanes=0,n.warmLanes=0,n.expiredLanes&=o,n.entangledLanes&=o,n.errorRecoveryDisabledLanes&=o,n.shellSuspendCounter=0;var k=n.entanglements,S=n.expirationTimes,D=n.hiddenUpdates;for(o=w&~o;0<o;){var B=31-qt(o),K=1<<B;k[B]=0,S[B]=-1;var P=D[B];if(P!==null)for(D[B]=null,B=0;B<P.length;B++){var U=P[B];U!==null&&(U.lane&=-536870913)}o&=~K}c!==0&&Yh(n,c,0),p!==0&&f===0&&n.tag!==0&&(n.suspendedLanes|=p&~(w&~i))}function Yh(n,i,o){n.pendingLanes|=i,n.suspendedLanes&=~i;var c=31-qt(i);n.entangledLanes|=i,n.entanglements[c]=n.entanglements[c]|1073741824|o&261930}function Fh(n,i){var o=n.entangledLanes|=i;for(n=n.entanglements;o;){var c=31-qt(o),f=1<<c;f&i|n[c]&i&&(n[c]|=i),o&=~f}}function Wh(n,i){var o=i&-i;return o=(o&42)!==0?1:Yl(o),(o&(n.suspendedLanes|i))!==0?0:o}function Yl(n){switch(n){case 2:n=1;break;case 8:n=4;break;case 32:n=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:n=128;break;case 268435456:n=134217728;break;default:n=0}return n}function Fl(n){return n&=-n,2<n?8<n?(n&134217727)!==0?32:268435456:8:2}function Xh(){var n=F.p;return n!==0?n:(n=window.event,n===void 0?32:Mz(n.type))}function Qh(n,i){var o=F.p;try{return F.p=n,i()}finally{F.p=o}}var ma=Math.random().toString(36).slice(2),yt="__reactFiber$"+ma,xt="__reactProps$"+ma,Pi="__reactContainer$"+ma,Wl="__reactEvents$"+ma,Iv="__reactListeners$"+ma,Bv="__reactHandles$"+ma,ep="__reactResources$"+ma,Fr="__reactMarker$"+ma;function Xl(n){delete n[yt],delete n[xt],delete n[Wl],delete n[Iv],delete n[Bv]}function Li(n){var i=n[yt];if(i)return i;for(var o=n.parentNode;o;){if(i=o[Pi]||o[yt]){if(o=i.alternate,i.child!==null||o!==null&&o.child!==null)for(n=kz(n);n!==null;){if(o=n[yt])return o;n=kz(n)}return i}n=o,o=n.parentNode}return null}function Mi(n){if(n=n[yt]||n[Pi]){var i=n.tag;if(i===5||i===6||i===13||i===31||i===26||i===27||i===3)return n}return null}function Wr(n){var i=n.tag;if(i===5||i===26||i===27||i===6)return n.stateNode;throw Error(r(33))}function Ui(n){var i=n[ep];return i||(i=n[ep]={hoistableStyles:new Map,hoistableScripts:new Map}),i}function lt(n){n[Fr]=!0}var tp=new Set,np={};function ii(n,i){$i(n,i),$i(n+"Capture",i)}function $i(n,i){for(np[n]=i,n=0;n<i.length;n++)tp.add(i[n])}var Hv=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]*$"),ap={},ip={};function qv(n){return Jl.call(ip,n)?!0:Jl.call(ap,n)?!1:Hv.test(n)?ip[n]=!0:(ap[n]=!0,!1)}function Es(n,i,o){if(qv(i))if(o===null)n.removeAttribute(i);else{switch(typeof o){case"undefined":case"function":case"symbol":n.removeAttribute(i);return;case"boolean":var c=i.toLowerCase().slice(0,5);if(c!=="data-"&&c!=="aria-"){n.removeAttribute(i);return}}n.setAttribute(i,""+o)}}function As(n,i,o){if(o===null)n.removeAttribute(i);else{switch(typeof o){case"undefined":case"function":case"symbol":case"boolean":n.removeAttribute(i);return}n.setAttribute(i,""+o)}}function Mn(n,i,o,c){if(c===null)n.removeAttribute(o);else{switch(typeof c){case"undefined":case"function":case"symbol":case"boolean":n.removeAttribute(o);return}n.setAttributeNS(i,o,""+c)}}function Qt(n){switch(typeof n){case"bigint":case"boolean":case"number":case"string":case"undefined":return n;case"object":return n;default:return""}}function rp(n){var i=n.type;return(n=n.nodeName)&&n.toLowerCase()==="input"&&(i==="checkbox"||i==="radio")}function Kv(n,i,o){var c=Object.getOwnPropertyDescriptor(n.constructor.prototype,i);if(!n.hasOwnProperty(i)&&typeof c<"u"&&typeof c.get=="function"&&typeof c.set=="function"){var f=c.get,p=c.set;return Object.defineProperty(n,i,{configurable:!0,get:function(){return f.call(this)},set:function(w){o=""+w,p.call(this,w)}}),Object.defineProperty(n,i,{enumerable:c.enumerable}),{getValue:function(){return o},setValue:function(w){o=""+w},stopTracking:function(){n._valueTracker=null,delete n[i]}}}}function Ql(n){if(!n._valueTracker){var i=rp(n)?"checked":"value";n._valueTracker=Kv(n,i,""+n[i])}}function op(n){if(!n)return!1;var i=n._valueTracker;if(!i)return!0;var o=i.getValue(),c="";return n&&(c=rp(n)?n.checked?"true":"false":n.value),n=c,n!==o?(i.setValue(n),!0):!1}function Rs(n){if(n=n||(typeof document<"u"?document:void 0),typeof n>"u")return null;try{return n.activeElement||n.body}catch{return n.body}}var Jv=/[\n"\\]/g;function en(n){return n.replace(Jv,function(i){return"\\"+i.charCodeAt(0).toString(16)+" "})}function eu(n,i,o,c,f,p,w,k){n.name="",w!=null&&typeof w!="function"&&typeof w!="symbol"&&typeof w!="boolean"?n.type=w:n.removeAttribute("type"),i!=null?w==="number"?(i===0&&n.value===""||n.value!=i)&&(n.value=""+Qt(i)):n.value!==""+Qt(i)&&(n.value=""+Qt(i)):w!=="submit"&&w!=="reset"||n.removeAttribute("value"),i!=null?tu(n,w,Qt(i)):o!=null?tu(n,w,Qt(o)):c!=null&&n.removeAttribute("value"),f==null&&p!=null&&(n.defaultChecked=!!p),f!=null&&(n.checked=f&&typeof f!="function"&&typeof f!="symbol"),k!=null&&typeof k!="function"&&typeof k!="symbol"&&typeof k!="boolean"?n.name=""+Qt(k):n.removeAttribute("name")}function sp(n,i,o,c,f,p,w,k){if(p!=null&&typeof p!="function"&&typeof p!="symbol"&&typeof p!="boolean"&&(n.type=p),i!=null||o!=null){if(!(p!=="submit"&&p!=="reset"||i!=null)){Ql(n);return}o=o!=null?""+Qt(o):"",i=i!=null?""+Qt(i):o,k||i===n.value||(n.value=i),n.defaultValue=i}c=c??f,c=typeof c!="function"&&typeof c!="symbol"&&!!c,n.checked=k?n.checked:!!c,n.defaultChecked=!!c,w!=null&&typeof w!="function"&&typeof w!="symbol"&&typeof w!="boolean"&&(n.name=w),Ql(n)}function tu(n,i,o){i==="number"&&Rs(n.ownerDocument)===n||n.defaultValue===""+o||(n.defaultValue=""+o)}function Ii(n,i,o,c){if(n=n.options,i){i={};for(var f=0;f<o.length;f++)i["$"+o[f]]=!0;for(o=0;o<n.length;o++)f=i.hasOwnProperty("$"+n[o].value),n[o].selected!==f&&(n[o].selected=f),f&&c&&(n[o].defaultSelected=!0)}else{for(o=""+Qt(o),i=null,f=0;f<n.length;f++){if(n[f].value===o){n[f].selected=!0,c&&(n[f].defaultSelected=!0);return}i!==null||n[f].disabled||(i=n[f])}i!==null&&(i.selected=!0)}}function cp(n,i,o){if(i!=null&&(i=""+Qt(i),i!==n.value&&(n.value=i),o==null)){n.defaultValue!==i&&(n.defaultValue=i);return}n.defaultValue=o!=null?""+Qt(o):""}function lp(n,i,o,c){if(i==null){if(c!=null){if(o!=null)throw Error(r(92));if(re(c)){if(1<c.length)throw Error(r(93));c=c[0]}o=c}o==null&&(o=""),i=o}o=Qt(i),n.defaultValue=o,c=n.textContent,c===o&&c!==""&&c!==null&&(n.value=c),Ql(n)}
vendor: 4,182 bytes, line 9
9function Bi(n,i){if(i){var o=n.firstChild;if(o&&o===n.lastChild&&o.nodeType===3){o.nodeValue=i;return}}n.textContent=i}var Vv=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 up(n,i,o){var c=i.indexOf("--")===0;o==null||typeof o=="boolean"||o===""?c?n.setProperty(i,""):i==="float"?n.cssFloat="":n[i]="":c?n.setProperty(i,o):typeof o!="number"||o===0||Vv.has(i)?i==="float"?n.cssFloat=o:n[i]=(""+o).trim():n[i]=o+"px"}function dp(n,i,o){if(i!=null&&typeof i!="object")throw Error(r(62));if(n=n.style,o!=null){for(var c in o)!o.hasOwnProperty(c)||i!=null&&i.hasOwnProperty(c)||(c.indexOf("--")===0?n.setProperty(c,""):c==="float"?n.cssFloat="":n[c]="");for(var f in i)c=i[f],i.hasOwnProperty(f)&&o[f]!==c&&up(n,f,c)}else for(var p in i)i.hasOwnProperty(p)&&up(n,p,i[p])}function nu(n){if(n.indexOf("-")===-1)return!1;switch(n){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Zv=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode
9-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"]]),Gv=/^[\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 Os(n){return Gv.test(""+n)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":n}function Un(){}var au=null;function iu(n){return n=n.target||n.srcElement||window,n.correspondingUseElement&&(n=n.correspondingUseElement),n.nodeType===3?n.parentNode:n}var Hi=null,qi=null;function fp(n){var i=Mi(n);if(i&&(n=i.stateNode)){var o=n[xt]||null;e:switch(n=i.stateNode,i.type){case"input":if(eu(n,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name),i=o.name,o.type==="radio"&&i!=null){for(o=n;o.parentNode;)o=o.parentNode;for(o=o.querySelectorAll('input[name="'+en(""+i)+'"][type="radio"]'),i=0;i<o.length;i++){var c=o[i];if(c!==n&&c.form===n.form){var f=c[xt]||null;if(!f)throw Error(r(90));eu(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===n.form&&op(c)}break e;case"textarea":cp(n,o.value,o.defaultValue);break e;case"select":i=o.value,i!=null&&Ii(n,!!o.multiple,i,!1)}}}var ru=!1;function hp(n,i,o){if(ru)return n(i,o);ru=!0;try{var c=n(i);return c}finally{if(ru=!1,(Hi!==null||qi!==null)&&(zc(),Hi&&(i=Hi,n=qi,qi=Hi=null,fp(i),n)))for(i=0;i<n.length;i++)fp(n[i])}}function Xr(n,i){var o=n.stateNode;if(o===null)return null;var c=o[xt]||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)||(n=n.type,c=!(n==="button"||n==="input"||n==="select"||n==="textarea")),n=!c;break e;default:n=!1}if(n)return null;if(o&&typeof o!="function")throw Error(r(231,i,typeof o));return o}var $n=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ou=!1;if($n)try{var Qr={};Object.defineProperty(Qr,"passive",{get:function(){ou=!0}}),window.addEventListener("test",Qr,Qr),window.removeEventListener("test",Qr,Qr)}catch{ou=!1}var za=null,su=null,Cs=null;function pp(){if(Cs)return Cs;var n,i=su,o=i.length,c,f="value"in za?za.value:za.textContent,p=f.length;for(n=0;n<o&&i[n]===f[n];n++);var w=o-n;for(c=1;c<=w&&i[o-c]===f[p-c];c++);return Cs=f.slice(n,1<c?1-c:void 0)}function Ns(n){var i=n.keyCode;return"charCode"in n?(n=n.charCode,n===0&&i===13&&(n=13)):n=i,n===10&&(n=13),32<=n||n===13?n:0}function xs(){return!0}function yp(){return!1}function Dt(n){function i(o,c,f,p,w){this._reactName=o,this._targetInst=f,this.type=c,this.nativeEvent=p,this.target=w,this.currentTarget=null;for(var k in n)n.hasOwnProperty(k)&&(o=n[k],this[k]=o?o(p):p[k]);return this.isDefaultPrevented=(p.defaultPrevented!=null?p.defaultPrevented:p.returnValue===!1)?xs:yp,this.isPropagationStopped=yp,this}return m(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=xs)},stopPropagation:function(){var o=this.nativeEvent;o&&(o.stopPropagation?o.stopPropagation():typeof o.cancelBubble!="unknown"&&(o.cancelBubble=!0),this.isPropagationStopped=xs)},persist:function(){},isPersistent:xs}),i}var ri={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(n){return n.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ds=Dt(ri),eo=m({},ri,{view:0,detail:0}),Yv=Dt(eo),cu,lu,to,Ps=m({},eo,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:du,button:0,buttons:0,relatedTarget:function(n){return n.relatedTarget===void 0?n.fromElement===n.srcElement?n.toElement:n.fromElement:n.relatedTarget},movementX:function(n){return"movementX"in n?n.movementX:(n!==to&&(to&&n.type==="mousemove"?(cu=n.screenX-to.screenX,lu=n.screenY-to.screenY):lu=cu=0,to=n),cu)},movementY:function(n){return"movementY"in n?n.movementY:lu}}),mp=Dt(Ps),Fv=m({},Ps,{dataTransfer:0}),Wv=Dt(Fv),Xv=m({},eo,{relatedTarget:0}),uu=Dt(Xv),Qv=m({},ri,{animationName:0,elapsedTime:0,pseudoElement:0}),e0=Dt(Qv),t0=m({},ri,{clipboardData:function(n){return"clipboardData"in n?n.clipboardData:window.clipboardData}}),n0=Dt(t0),a0=m({},ri,{data:0}),zp=Dt(a0),i0={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},r0={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"},o0={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function s0(n){var i=this.nativeEvent;return i.getModifierState?i.getModifierState(n):(n=o0[n])?!!i[n]:!1}function du(){return s0}var c0=m({},eo,{key:function(n){if(n.key){var i=i0[n.key]||n.key;if(i!=="Unidentified")return i}
vendor: 4,492 bytes, line 9
9return n.type==="keypress"?(n=Ns(n),n===13?"Enter":String.fromCharCode(n)):n.type==="keydown"||n.type==="keyup"?r0[n.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:du,charCode:function(n){return n.type==="keypress"?Ns(n):0},keyCode:function(n){return n.type==="keydown"||n.type==="keyup"?n.keyCode:0},which:function(n){return n.type==="keypress"?Ns(n):n.type==="keydown"||n.type==="keyup"?n.keyCode:0}}),l0=Dt(c0),u0=m({},Ps,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),wp=Dt(u0),d0=m({},eo,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:du}),f0=Dt(d0),h0=m({},ri,{propertyName:0,elapsedTime:0,pseudoElement:0}),p0=Dt(h0),y0=m({},Ps,{deltaX:function(n){return"deltaX"in n?n.deltaX:"wheelDeltaX"in n?-n.wheelDeltaX:0},deltaY:function(n){return"deltaY"in n?n.deltaY:"wheelDeltaY"in n?-n.wheelDeltaY:"wheelDelta"in n?-n.wheelDelta:0},deltaZ:0,deltaMode:0}),m0=Dt(y0),z0=m({},ri,{newState:0,oldState:0}),w0=Dt(z0),g0=[9,13,27,32],fu=$n&&"CompositionEvent"in window,no=null;$n&&"documentMode"in document&&(no=document.documentMode);var b0=$n&&"TextEvent"in window&&!no,gp=$n&&(!fu||no&&8<no&&11>=no),bp=" ",kp=!1;function vp(n,i){switch(n){case"keyup":return g0.indexOf(i.keyCode)!==-1;case"keydown":return i.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function jp(n){return n=n.detail,typeof n=="object"&&"data"in n?n.data:null}var Ki=!1;function k0(n,i){switch(n){case"compositionend":return jp(i);case"keypress":return i.which!==32?null:(kp=!0,bp);case"textInput":return n=i.data,n===bp&&kp?null:n;default:return null}}function v0(n,i){if(Ki)return n==="compositionend"||!fu&&vp(n,i)?(n=pp(),Cs=su=za=null,Ki=!1,n):null;switch(n){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 gp&&i.locale!=="ko"?null:i.data;default:return null}}var j0={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 _p(n){var i=n&&n.nodeName&&n.nodeName.toLowerCase();return i==="input"?!!j0[n.type]:i==="textarea"}function Sp(n,i,o,c){Hi?qi?qi.push(c):qi=[c]:Hi=c,i=_c(i,"onChange"),0<i.length&&(o=new Ds("onChange","change",null,o,c),n.push({event:o,listeners:i}))}var ao=null,io=null;function _0(n){sz(n,0)}function Ls(n){var i=Wr(n);if(op(i))return n}function Tp(n,i){if(n==="change")return i}var Ep=!1;if($n){var hu;if($n){var pu="oninput"in document;if(!pu){var Ap=document.createElement("div");Ap.setAttribute("oninput","return;"),pu=typeof Ap.oninput=="function"}hu=pu}else hu=!1;Ep=hu&&(!document.documentMode||9<document.documentMode)}function Rp(){ao&&(ao.detachEvent("onpropertychange",Op),io=ao=null)}function Op(n){if(n.propertyName==="value"&&Ls(io)){var i=[];Sp(i,io,n,iu(n)),hp(_0,i)}}function S0(n,i,o){n==="focusin"?(Rp(),ao=i,io=o,ao.attachEvent("onpropertychange",Op)):n==="focusout"&&Rp()}function T0(n){if(n==="selectionchange"||n==="keyup"||n==="keydown")return Ls(io)}function E0(n,i){if(n==="click")return Ls(i)}function A0(n,i){if(n==="input"||n==="change")return Ls(i)}function R0(n,i){return n===i&&(n!==0||1/n===1/i)||n!==n&&i!==i}var Kt=typeof Object.is=="function"?Object.is:R0;function ro(n,i){if(Kt(n,i))return!0;if(typeof n!="object"||n===null||typeof i!="object"||i===null)return!1;var o=Object.keys(n),c=Object.keys(i);if(o.length!==c.length)return!1;for(c=0;c<o.length;c++){var f=o[c];if(!Jl.call(i,f)||!Kt(n[f],i[f]))return!1}return!0}function Cp(n){for(;n&&n.firstChild;)n=n.firstChild;return n}function Np(n,i){var o=Cp(n);n=0;for(var c;o;){if(o.nodeType===3){if(c=n+o.textContent.length,n<=i&&c>=i)return{node:o,offset:i-n};n=c}e:{for(;o;){if(o.nextSibling){o=o.nextSibling;break e}o=o.parentNode}o=void 0}o=Cp(o)}}function xp(n,i){return n&&i?n===i?!0:n&&n.nodeType===3?!1:i&&i.nodeType===3?xp(n,i.parentNode):"contains"in n?n.contains(i):n.compareDocumentPosition?!!(n.compareDocumentPosition(i)&16):!1:!1}function Dp(n){n=n!=null&&n.ownerDocument!=null&&n.ownerDocument.defaultView!=null?n.ownerDocument.defaultView:window;for(var i=Rs(n.document);i instanceof n.HTMLIFrameElement;){try{var o=typeof i.contentWindow.location.href=="string"}catch{o=!1}
vendor: 1,114 bytes, line 9
9if(o)n=i.contentWindow;else break;i=Rs(n.document)}return i}function yu(n){var i=n&&n.nodeName&&n.nodeName.toLowerCase();return i&&(i==="input"&&(n.type==="text"||n.type==="search"||n.type==="tel"||n.type==="url"||n.type==="password")||i==="textarea"||n.contentEditable==="true")}var O0=$n&&"documentMode"in document&&11>=document.documentMode,Ji=null,mu=null,oo=null,zu=!1;function Pp(n,i,o){var c=o.window===o?o.document:o.nodeType===9?o:o.ownerDocument;zu||Ji==null||Ji!==Rs(c)||(c=Ji,"selectionStart"in c&&yu(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}),oo&&ro(oo,c)||(oo=c,c=_c(mu,"onSelect"),0<c.length&&(i=new Ds("onSelect","select",null,i,o),n.push({event:i,listeners:c}),i.target=Ji)))}function oi(n,i){var o={};return o[n.toLowerCase()]=i.toLowerCase(),o["Webkit"+n]="webkit"+i,o["Moz"+n]="moz"+i,o}var Vi={animationend:oi("Animation","AnimationEnd"),animationiteration:oi("Animation","AnimationIteration"),animationstart:
vendor: 14,920 bytes, line 9
9oi("Animation","AnimationStart"),transitionrun:oi("Transition","TransitionRun"),transitionstart:oi("Transition","TransitionStart"),transitioncancel:oi("Transition","TransitionCancel"),transitionend:oi("Transition","TransitionEnd")},wu={},Lp={};$n&&(Lp=document.createElement("div").style,"AnimationEvent"in window||(delete Vi.animationend.animation,delete Vi.animationiteration.animation,delete Vi.animationstart.animation),"TransitionEvent"in window||delete Vi.transitionend.transition);function si(n){if(wu[n])return wu[n];if(!Vi[n])return n;var i=Vi[n],o;for(o in i)if(i.hasOwnProperty(o)&&o in Lp)return wu[n]=i[o];return n}var Mp=si("animationend"),Up=si("animationiteration"),$p=si("animationstart"),C0=si("transitionrun"),N0=si("transitionstart"),x0=si("transitioncancel"),Ip=si("transitionend"),Bp=new Map,gu="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(" ");gu.push("scrollEnd");function fn(n,i){Bp.set(n,i),ii(i,[n])}var Ms=typeof reportError=="function"?reportError:function(n){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var i=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof n=="object"&&n!==null&&typeof n.message=="string"?String(n.message):String(n),error:n});if(!window.dispatchEvent(i))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",n);return}console.error(n)},tn=[],Zi=0,bu=0;function Us(){for(var n=Zi,i=bu=Zi=0;i<n;){var o=tn[i];tn[i++]=null;var c=tn[i];tn[i++]=null;var f=tn[i];tn[i++]=null;var p=tn[i];if(tn[i++]=null,c!==null&&f!==null){var w=c.pending;w===null?f.next=f:(f.next=w.next,w.next=f),c.pending=f}p!==0&&Hp(o,f,p)}}function $s(n,i,o,c){tn[Zi++]=n,tn[Zi++]=i,tn[Zi++]=o,tn[Zi++]=c,bu|=c,n.lanes|=c,n=n.alternate,n!==null&&(n.lanes|=c)}function ku(n,i,o,c){return $s(n,i,o,c),Is(n)}function ci(n,i){return $s(n,null,null,i),Is(n)}function Hp(n,i,o){n.lanes|=o;var c=n.alternate;c!==null&&(c.lanes|=o);for(var f=!1,p=n.return;p!==null;)p.childLanes|=o,c=p.alternate,c!==null&&(c.childLanes|=o),p.tag===22&&(n=p.stateNode,n===null||n._visibility&1||(f=!0)),n=p,p=p.return;return n.tag===3?(p=n.stateNode,f&&i!==null&&(f=31-qt(o),n=p.hiddenUpdates,c=n[f],c===null?n[f]=[i]:c.push(i),i.lane=o|536870912),p):null}function Is(n){if(50<Ro)throw Ro=0,Od=null,Error(r(185));for(var i=n.return;i!==null;)n=i,i=n.return;return n.tag===3?n.stateNode:null}var Gi={};function D0(n,i,o,c){this.tag=n,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 Jt(n,i,o,c){return new D0(n,i,o,c)}function vu(n){return n=n.prototype,!(!n||!n.isReactComponent)}function In(n,i){var o=n.alternate;return o===null?(o=Jt(n.tag,i,n.key,n.mode),o.elementType=n.elementType,o.type=n.type,o.stateNode=n.stateNode,o.alternate=n,n.alternate=o):(o.pendingProps=i,o.type=n.type,o.flags=0,o.subtreeFlags=0,o.deletions=null),o.flags=n.flags&65011712,o.childLanes=n.childLanes,o.lanes=n.lanes,o.child=n.child,o.memoizedProps=n.memoizedProps,o.memoizedState=n.memoizedState,o.updateQueue=n.updateQueue,i=n.dependencies,o.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext},o.sibling=n.sibling,o.index=n.index,o.ref=n.ref,o.refCleanup=n.refCleanup,o}function qp(n,i){n.flags&=65011714;var o=n.alternate;return o===null?(n.childLanes=0,n.lanes=i,n.child=null,n.subtreeFlags=0,n.memoizedProps=null,n.memoizedState=null,n.updateQueue=null,n.dependencies=null,n.stateNode=null):(n.childLanes=o.childLanes,n.lanes=o.lanes,n.child=o.child,n.subtreeFlags=0,n.deletions=null,n.memoizedProps=o.memoizedProps,n.memoizedState=o.memoizedState,n.updateQueue=o.updateQueue,n.type=o.type,i=o.dependencies,n.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext}),n}function Bs(n,i,o,c,f,p){var w=0;if(c=n,typeof n=="function")vu(n)&&(w=1);else if(typeof n=="string")w=$j(n,o,te.current)?26:n==="html"||n==="head"||n==="body"?27:5;else e:switch(n){case Q:return n=Jt(31,o,i,f),n.elementType=Q,n.lanes=p,n;case j:return li(o.children,f,p,i);case _:w=8,f|=24;break;case T:return n=Jt(12,o,i,f|2),n.elementType=T,n.lanes=p,n;case Z:return n=Jt(13,o,i,f),n.elementType=Z,n.lanes=p,n;case I:return n=Jt(19,o,i,f),n.elementType=I,n.lanes=p,n;default:if(typeof n=="object"&&n!==null)switch(n.$$typeof){case R:w=10;break e;case O:w=9;break e;case M:w=11;break e;case N:w=14;break e;case G:w=16,c=null;break e}w=29,o=Error(r(130,n===null?"null":typeof n,"")),c=null}return i=Jt(w,o,i,f),i.elementType=n,i.type=c,i.lanes=p,i}function li(n,i,o,c){return n=Jt(7,n,c,i),n.lanes=o,n}function ju(n,i,o){return n=Jt(6,n,null,i),n.lanes=o,n}function Kp(n){var i=Jt(18,null,null,0);return i.stateNode=n,i}function _u(n,i,o){return i=Jt(4,n.children!==null?n.children:[],n.key,i),i.lanes=o,i.stateNode={containerInfo:n.containerInfo,pendingChildren:null,implementation:n.implementation},i}var Jp=new WeakMap;function nn(n,i){if(typeof n=="object"&&n!==null){var o=Jp.get(n);return o!==void 0?o:(i={value:n,source:i,stack:Kh(i)},Jp.set(n,i),i)}return{value:n,source:i,stack:Kh(i)}}var Yi=[],Fi=0,Hs=null,so=0,an=[],rn=0,wa=null,Sn=1,Tn="";function Bn(n,i){Yi[Fi++]=so,Yi[Fi++]=Hs,Hs=n,so=i}function Vp(n,i,o){an[rn++]=Sn,an[rn++]=Tn,an[rn++]=wa,wa=n;var c=Sn;n=Tn;var f=32-qt(c)-1;c&=~(1<<f),o+=1;var p=32-qt(i)+f;if(30<p){var w=f-f%5;p=(c&(1<<w)-1).toString(32),c>>=w,f-=w,Sn=1<<32-qt(i)+f|o<<f|c,Tn=p+n}else Sn=1<<p|o<<f|c,Tn=n}function Su(n){n.return!==null&&(Bn(n,1),Vp(n,1,0))}function Tu(n){for(;n===Hs;)Hs=Yi[--Fi],Yi[Fi]=null,so=Yi[--Fi],Yi[Fi]=null;for(;n===wa;)wa=an[--rn],an[rn]=null,Tn=an[--rn],an[rn]=null,Sn=an[--rn],an[rn]=null}function Zp(n,i){an[rn++]=Sn,an[rn++]=Tn,an[rn++]=wa,Sn=i.id,Tn=i.overflow,wa=n}var mt=null,Ve=null,Ee=!1,ga=null,on=!1,Eu=Error(r(519));function ba(n){var i=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw co(nn(i,n)),Eu}function Gp(n){var i=n.stateNode,o=n.type,c=n.memoizedProps;switch(i[yt]=n,i[xt]=c,o){case"dialog":je("cancel",i),je("close",i);break;case"iframe":case"object":case"embed":je("load",i);break;case"video":case"audio":for(o=0;o<Co.length;o++)je(Co[o],i);break;case"source":je("error",i);break;case"img":case"image":case"link":je("error",i),je("load",i);break;case"details":je("toggle",i);break;case"input":je("invalid",i),sp(i,c.value,c.defaultValue,c.checked,c.defaultChecked,c.type,c.name,!0);break;case"select":je("invalid",i);break;case"textarea":je("invalid",i),lp(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||dz(i.textContent,o)?(c.popover!=null&&(je("beforetoggle",i),je("toggle",i)),c.onScroll!=null&&je("scroll",i),c.onScrollEnd!=null&&je("scrollend",i),c.onClick!=null&&(i.onclick=Un),i=!0):i=!1,i||ba(n,!0)}function Yp(n){for(mt=n.return;mt;)switch(mt.tag){case 5:case 31:case 13:on=!1;return;case 27:case 3:on=!0;return;default:mt=mt.return}}function Wi(n){if(n!==mt)return!1;if(!Ee)return Yp(n),Ee=!0,!1;var i=n.tag,o;if((o=i!==3&&i!==27)&&((o=i===5)&&(o=n.type,o=!(o!=="form"&&o!=="button")||Jd(n.type,n.memoizedProps)),o=!o),o&&Ve&&ba(n),Yp(n),i===13){if(n=n.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(r(317));Ve=bz(n)}else if(i===31){if(n=n.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(r(317));Ve=bz(n)}else i===27?(i=Ve,Da(n.type)?(n=Fd,Fd=null,Ve=n):Ve=i):Ve=mt?cn(n.stateNode.nextSibling):null;return!0}function ui(){Ve=mt=null,Ee=!1}function Au(){var n=ga;return n!==null&&(Ut===null?Ut=n:Ut.push.apply(Ut,n),ga=null),n}function co(n){ga===null?ga=[n]:ga.push(n)}var Ru=A(null),di=null,Hn=null;function ka(n,i,o){Y(Ru,i._currentValue),i._currentValue=o}function qn(n){n._currentValue=Ru.current,q(Ru)}function Ou(n,i,o){for(;n!==null;){var c=n.alternate;if((n.childLanes&i)!==i?(n.childLanes|=i,c!==null&&(c.childLanes|=i)):c!==null&&(c.childLanes&i)!==i&&(c.childLanes|=i),n===o)break;n=n.return}}function Cu(n,i,o,c){var f=n.child;for(f!==null&&(f.return=n);f!==null;){var p=f.dependencies;if(p!==null){var w=f.child;p=p.firstContext;e:for(;p!==null;){var k=p;p=f;for(var S=0;S<i.length;S++)if(k.context===i[S]){p.lanes|=o,k=p.alternate,k!==null&&(k.lanes|=o),Ou(p.return,o,n),c||(w=null);break e}p=k.next}}else if(f.tag===18){if(w=f.return,w===null)throw Error(r(341));w.lanes|=o,p=w.alternate,p!==null&&(p.lanes|=o),Ou(w,o,n),w=null}else w=f.child;if(w!==null)w.return=f;else for(w=f;w!==null;){if(w===n){w=null;break}if(f=w.sibling,f!==null){f.return=w.return,w=f;break}w=w.return}f=w}}function Xi(n,i,o,c){n=null;for(var f=i,p=!1;f!==null;){if(!p){if((f.flags&524288)!==0)p=!0;else if((f.flags&262144)!==0)break}if(f.tag===10){var w=f.alternate;if(w===null)throw Error(r(387));if(w=w.memoizedProps,w!==null){var k=f.type;Kt(f.pendingProps.value,w.value)||(n!==null?n.push(k):n=[k])}}else if(f===le.current){if(w=f.alternate,w===null)throw Error(r(387));w.memoizedState.memoizedState!==f.memoizedState.memoizedState&&(n!==null?n.push(Lo):n=[Lo])}f=f.return}n!==null&&Cu(i,n,o,c),i.flags|=262144}function qs(n){for(n=n.firstContext;n!==null;){if(!Kt(n.context._currentValue,n.memoizedValue))return!0;n=n.next}return!1}function fi(n){di=n,Hn=null,n=n.dependencies,n!==null&&(n.firstContext=null)}function zt(n){return Fp(di,n)}function Ks(n,i){return di===null&&fi(n),Fp(n,i)}function Fp(n,i){var o=i._currentValue;if(i={context:i,memoizedValue:o,next:null},Hn===null){if(n===null)throw Error(r(308));Hn=i,n.dependencies={lanes:0,firstContext:i},n.flags|=524288}else Hn=Hn.next=i;return o}var P0=typeof AbortController<"u"?AbortController:function(){var n=[],i=this.signal={aborted:!1,addEventListener:function(o,c){n.push(c)}};this.abort=function(){i.aborted=!0,n.forEach(function(o){return o()})}},L0=e.unstable_scheduleCallback,M0=e.unstable_NormalPriority,et={$$typeof:R,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Nu(){return{controller:new P0,data:new Map,refCount:0}}function lo(n){n.refCount--,n.refCount===0&&L0(M0,function(){n.controller.abort()})}var uo=null,xu=0,Qi=0,er=null;function U0(n,i){if(uo===null){var o=uo=[];xu=0,Qi=Ld(),er={status:"pending",value:void 0,then:function(c){o.push(c)}}}return xu++,i.then(Wp,Wp),i}function Wp(){if(--xu===0&&uo!==null){er!==null&&(er.status="fulfilled");var n=uo;uo=null,Qi=0,er=null;for(var i=0;i<n.length;i++)(0,n[i])()}}function $0(n,i){var o=[],c={status:"pending",value:null,reason:null,then:function(f){o.push(f)}};return n.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 Xp=L.S;L.S=function(n,i){Pm=Bt(),typeof i=="object"&&i!==null&&typeof i.then=="function"&&U0(n,i),Xp!==null&&Xp(n,i)};var hi=A(null);function Du(){var n=hi.current;return n!==null?n:He.pooledCache}function Js(n,i){i===null?Y(hi,hi.current):Y(hi,i.pool)}function Qp(){var n=Du();return n===null?null:{parent:et._currentValue,pool:n}}var tr=Error(r(460)),Pu=Error(r(474)),Vs=Error(r(542)),Zs={then:function(){}};function ey(n){return n=n.status,n==="fulfilled"||n==="rejected"}function ty(n,i,o){switch(o=n[o],o===void 0?n.push(i):o!==i&&(i.then(Un,Un),i=o),i.status){case"fulfilled":return i.value;case"rejected":throw n=i.reason,ay(n),n;default:if(typeof i.status=="string")i.then(Un,Un);else{if(n=He,n!==null&&100<n.shellSuspendCounter)throw Error(r(482));n=i,n.status="pending",n.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 n=i.reason,ay(n),n}throw yi=i,tr}}function pi(n){try{var i=n._init;return i(n._payload)}catch(o){throw o!==null&&typeof o=="object"&&typeof o.then=="function"?(yi=o,tr):o}}var yi=null;function ny(){if(yi===null)throw Error(r(459));var n=yi;return yi=null,n}function ay(n){if(n===tr||n===Vs)throw Error(r(483))}var nr=null,fo=0;function Gs(n){var i=fo;return fo+=1,nr===null&&(nr=[]),ty(nr,n,i)}function ho(n,i){i=i.props.ref,n.ref=i!==void 0?i:null}function Ys(n,i){throw i.$$typeof===g?Error(r(525)):(n=Object.prototype.toString.call(i),Error(r(31,n==="[object Object]"?"object with keys {"+Object.keys(i).join(", ")+"}":n)))}function iy(n){function i(C,E){if(n){var x=C.deletions;x===null?(C.deletions=[E],C.flags|=16):x.push(E)}}function o(C,E){if(!n)return null;for(;E!==null;)i(C,E),E=E.sibling;return null}function c(C){for(var E=new Map;C!==null;)C.key!==null?E.set(C.key,C):E.set(C.index,C),C=C.sibling;return E}function f(C,E){return C=In(C,E),C.index=0,C.sibling=null,C}function p(C,E,x){return C.index=x,n?(x=C.alternate,x!==null?(x=x.index,x<E?(C.flags|=67108866,E):x):(C.flags|=67108866,E)):(C.flags|=1048576,E)}function w(C){return n&&C.alternate===null&&(C.flags|=67108866),C}function k(C,E,x,H){return E===null||E.tag!==6?(E=ju(x,C.mode,H),E.return=C,E):(E=f(E,x),E.return=C,E)}function S(C,E,x,H){var se=x.type;return se===j?B(C,E,x.props.children,H,x.key):E!==null&&(E.elementType===se||typeof se=="object"&&se!==null&&se.$$typeof===G&&pi(se)===E.type)?(E=f(E,x.props),ho(E,x),E.return=C,E):(E=Bs(x.type,x.key,x.props,null,C.mode,H),ho(E,x),E.return=C,E)}function D(C,E,x,H){return E===null||E.tag!==4||E.stateNode.containerInfo!==x.containerInfo||E.stateNode.implementation!==x.implementation?(E=_u(x,C.mode,H),E.return=C,E):(E=f(E,x.children||[]),E.return=C,E)}function B(C,E,x,H,se){return E===null||E.tag!==7?(E=li(x,C.mode,H,se),E.return=C,E):(E=f(E,x),E.return=C,E)}function K(C,E,x){if(typeof E=="string"&&E!==""||typeof E=="number"||typeof E=="bigint")return E=ju(""+E,C.mode,x),E.return=C,E;if(typeof E=="object"&&E!==null){switch(E.$$typeof){case b:return x=Bs(E.type,E.key,E.props,null,C.mode,x),ho(x,E),x.return=C,x;case v:return E=_u(E,C.mode,x),E.return=C,E;case G:return E=pi(E),K(C,E,x)}if(re(E)||V(E))return E=li(E,C.mode,x,null),E.return=C,E;if(typeof E.then=="function")return K(C,Gs(E),x);if(E.$$typeof===R)return K(C,Ks(C,E),x);Ys(C,E)}return null}function P(C,E,x,H){var se=E!==null?E.key:null;
vendor: 5,342 bytes, line 9
9if(typeof x=="string"&&x!==""||typeof x=="number"||typeof x=="bigint")return se!==null?null:k(C,E,""+x,H);if(typeof x=="object"&&x!==null){switch(x.$$typeof){case b:return x.key===se?S(C,E,x,H):null;case v:return x.key===se?D(C,E,x,H):null;case G:return x=pi(x),P(C,E,x,H)}if(re(x)||V(x))return se!==null?null:B(C,E,x,H,null);if(typeof x.then=="function")return P(C,E,Gs(x),H);if(x.$$typeof===R)return P(C,E,Ks(C,x),H);Ys(C,x)}return null}function U(C,E,x,H,se){if(typeof H=="string"&&H!==""||typeof H=="number"||typeof H=="bigint")return C=C.get(x)||null,k(E,C,""+H,se);if(typeof H=="object"&&H!==null){switch(H.$$typeof){case b:return C=C.get(H.key===null?x:H.key)||null,S(E,C,H,se);case v:return C=C.get(H.key===null?x:H.key)||null,D(E,C,H,se);case G:return H=pi(H),U(C,E,x,H,se)}if(re(H)||V(H))return C=C.get(x)||null,B(E,C,H,se,null);if(typeof H.then=="function")return U(C,E,x,Gs(H),se);if(H.$$typeof===R)return U(C,E,x,Ks(E,H),se);Ys(E,H)}return null}function ee(C,E,x,H){for(var se=null,Re=null,ie=E,be=E=0,Te=null;ie!==null&&be<x.length;be++){ie.index>be?(Te=ie,ie=null):Te=ie.sibling;var Oe=P(C,ie,x[be],H);if(Oe===null){ie===null&&(ie=Te);break}n&&ie&&Oe.alternate===null&&i(C,ie),E=p(Oe,E,be),Re===null?se=Oe:Re.sibling=Oe,Re=Oe,ie=Te}if(be===x.length)return o(C,ie),Ee&&Bn(C,be),se;if(ie===null){for(;be<x.length;be++)ie=K(C,x[be],H),ie!==null&&(E=p(ie,E,be),Re===null?se=ie:Re.sibling=ie,Re=ie);return Ee&&Bn(C,be),se}for(ie=c(ie);be<x.length;be++)Te=U(ie,C,be,x[be],H),Te!==null&&(n&&Te.alternate!==null&&ie.delete(Te.key===null?be:Te.key),E=p(Te,E,be),Re===null?se=Te:Re.sibling=Te,Re=Te);return n&&ie.forEach(function($a){return i(C,$a)}),Ee&&Bn(C,be),se}function ue(C,E,x,H){if(x==null)throw Error(r(151));for(var se=null,Re=null,ie=E,be=E=0,Te=null,Oe=x.next();ie!==null&&!Oe.done;be++,Oe=x.next()){ie.index>be?(Te=ie,ie=null):Te=ie.sibling;var $a=P(C,ie,Oe.value,H);if($a===null){ie===null&&(ie=Te);break}n&&ie&&$a.alternate===null&&i(C,ie),E=p($a,E,be),Re===null?se=$a:Re.sibling=$a,Re=$a,ie=Te}if(Oe.done)return o(C,ie),Ee&&Bn(C,be),se;if(ie===null){for(;!Oe.done;be++,Oe=x.next())Oe=K(C,Oe.value,H),Oe!==null&&(E=p(Oe,E,be),Re===null?se=Oe:Re.sibling=Oe,Re=Oe);return Ee&&Bn(C,be),se}for(ie=c(ie);!Oe.done;be++,Oe=x.next())Oe=U(ie,C,be,Oe.value,H),Oe!==null&&(n&&Oe.alternate!==null&&ie.delete(Oe.key===null?be:Oe.key),E=p(Oe,E,be),Re===null?se=Oe:Re.sibling=Oe,Re=Oe);return n&&ie.forEach(function(Fj){return i(C,Fj)}),Ee&&Bn(C,be),se}function $e(C,E,x,H){if(typeof x=="object"&&x!==null&&x.type===j&&x.key===null&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case b:e:{for(var se=x.key;E!==null;){if(E.key===se){if(se=x.type,se===j){if(E.tag===7){o(C,E.sibling),H=f(E,x.props.children),H.return=C,C=H;break e}}else if(E.elementType===se||typeof se=="object"&&se!==null&&se.$$typeof===G&&pi(se)===E.type){o(C,E.sibling),H=f(E,x.props),ho(H,x),H.return=C,C=H;break e}o(C,E);break}else i(C,E);E=E.sibling}x.type===j?(H=li(x.props.children,C.mode,H,x.key),H.return=C,C=H):(H=Bs(x.type,x.key,x.props,null,C.mode,H),ho(H,x),H.return=C,C=H)}return w(C);case v:e:{for(se=x.key;E!==null;){if(E.key===se)if(E.tag===4&&E.stateNode.containerInfo===x.containerInfo&&E.stateNode.implementation===x.implementation){o(C,E.sibling),H=f(E,x.children||[]),H.return=C,C=H;break e}else{o(C,E);break}else i(C,E);E=E.sibling}H=_u(x,C.mode,H),H.return=C,C=H}return w(C);case G:return x=pi(x),$e(C,E,x,H)}if(re(x))return ee(C,E,x,H);if(V(x)){if(se=V(x),typeof se!="function")throw Error(r(150));return x=se.call(x),ue(C,E,x,H)}if(typeof x.then=="function")return $e(C,E,Gs(x),H);if(x.$$typeof===R)return $e(C,E,Ks(C,x),H);Ys(C,x)}return typeof x=="string"&&x!==""||typeof x=="number"||typeof x=="bigint"?(x=""+x,E!==null&&E.tag===6?(o(C,E.sibling),H=f(E,x),H.return=C,C=H):(o(C,E),H=ju(x,C.mode,H),H.return=C,C=H),w(C)):o(C,E)}return function(C,E,x,H){try{fo=0;var se=$e(C,E,x,H);return nr=null,se}catch(ie){if(ie===tr||ie===Vs)throw ie;var Re=Jt(29,ie,null,C.mode);return Re.lanes=H,Re.return=C,Re}}}var mi=iy(!0),ry=iy(!1),va=!1;function Lu(n){n.updateQueue={baseState:n.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Mu(n,i){n=n.updateQueue,i.updateQueue===n&&(i.updateQueue={baseState:n.baseState,firstBaseUpdate:n.firstBaseUpdate,lastBaseUpdate:n.lastBaseUpdate,shared:n.shared,callbacks:null})}function ja(n){return{lane:n,tag:0,payload:null,callback:null,next:null}}function _a(n,i,o){var c=n.updateQueue;if(c===null)return null;if(c=c.shared,(xe&2)!==0){var f=c.pending;return f===null?i.next=i:(i.next=f.next,f.next=i),c.pending=i,i=Is(n),Hp(n,null,o),i}return $s(n,c,i,o),Is(n)}function po(n,i,o){if(i=i.updateQueue,i!==null&&(i=i.shared,(o&4194048)!==0)){var c=i.lanes;c&=n.pendingLanes,o|=c,i.lanes=o,Fh(n,o)}}function Uu(n,i){var o=n.updateQueue,c=n.alternate;if(c!==null&&(c=c.updateQueue,o===c)){var f=null,p=null;if(o=o.firstBaseUpdate,o!==null){do{var w={lane:o.lane,tag:o.tag,payload:o.payload,callback:null,next:null};p===null?f=p=w:p=p.next=w,o=o.next}while(o!==null);p===null?f=p=i:p=p.next=i}else f=p=i;o={baseState:c.baseState,firstBaseUpdate:f,lastBaseUpdate:p,shared:c.shared,callbacks:c.callbacks},n.updateQueue=o;return}n=o.lastBaseUpdate,n===null?o.firstBaseUpdate=i:n.next=i,o.lastBaseUpdate=i}var $u=!1;
vendor: 5,740 bytes, line 9
9function yo(){if($u){var n=er;if(n!==null)throw n}}function mo(n,i,o,c){$u=!1;var f=n.updateQueue;va=!1;var p=f.firstBaseUpdate,w=f.lastBaseUpdate,k=f.shared.pending;if(k!==null){f.shared.pending=null;var S=k,D=S.next;S.next=null,w===null?p=D:w.next=D,w=S;var B=n.alternate;B!==null&&(B=B.updateQueue,k=B.lastBaseUpdate,k!==w&&(k===null?B.firstBaseUpdate=D:k.next=D,B.lastBaseUpdate=S))}if(p!==null){var K=f.baseState;w=0,B=D=S=null,k=p;do{var P=k.lane&-536870913,U=P!==k.lane;if(U?(Se&P)===P:(c&P)===P){P!==0&&P===Qi&&($u=!0),B!==null&&(B=B.next={lane:0,tag:k.tag,payload:k.payload,callback:null,next:null});e:{var ee=n,ue=k;P=i;var $e=o;switch(ue.tag){case 1:if(ee=ue.payload,typeof ee=="function"){K=ee.call($e,K,P);break e}K=ee;break e;case 3:ee.flags=ee.flags&-65537|128;case 0:if(ee=ue.payload,P=typeof ee=="function"?ee.call($e,K,P):ee,P==null)break e;K=m({},K,P);break e;case 2:va=!0}}P=k.callback,P!==null&&(n.flags|=64,U&&(n.flags|=8192),U=f.callbacks,U===null?f.callbacks=[P]:U.push(P))}else U={lane:P,tag:k.tag,payload:k.payload,callback:k.callback,next:null},B===null?(D=B=U,S=K):B=B.next=U,w|=P;if(k=k.next,k===null){if(k=f.shared.pending,k===null)break;U=k,k=U.next,U.next=null,f.lastBaseUpdate=U,f.shared.pending=null}}while(!0);B===null&&(S=K),f.baseState=S,f.firstBaseUpdate=D,f.lastBaseUpdate=B,p===null&&(f.shared.lanes=0),Ra|=w,n.lanes=w,n.memoizedState=K}}function oy(n,i){if(typeof n!="function")throw Error(r(191,n));n.call(i)}function sy(n,i){var o=n.callbacks;if(o!==null)for(n.callbacks=null,n=0;n<o.length;n++)oy(o[n],i)}var ar=A(null),Fs=A(0);function cy(n,i){n=Xn,Y(Fs,n),Y(ar,i),Xn=n|i.baseLanes}function Iu(){Y(Fs,Xn),Y(ar,ar.current)}function Bu(){Xn=Fs.current,q(ar),q(Fs)}var Vt=A(null),sn=null;function Sa(n){var i=n.alternate;Y(Xe,Xe.current&1),Y(Vt,n),sn===null&&(i===null||ar.current!==null||i.memoizedState!==null)&&(sn=n)}function Hu(n){Y(Xe,Xe.current),Y(Vt,n),sn===null&&(sn=n)}function ly(n){n.tag===22?(Y(Xe,Xe.current),Y(Vt,n),sn===null&&(sn=n)):Ta()}function Ta(){Y(Xe,Xe.current),Y(Vt,Vt.current)}function Zt(n){q(Vt),sn===n&&(sn=null),q(Xe)}var Xe=A(0);function Ws(n){for(var i=n;i!==null;){if(i.tag===13){var o=i.memoizedState;if(o!==null&&(o=o.dehydrated,o===null||Gd(o)||Yd(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===n)break;for(;i.sibling===null;){if(i.return===null||i.return===n)return null;i=i.return}i.sibling.return=i.return,i=i.sibling}return null}var Kn=0,ge=null,Me=null,tt=null,Xs=!1,ir=!1,zi=!1,Qs=0,zo=0,rr=null,I0=0;function Ye(){throw Error(r(321))}function qu(n,i){if(i===null)return!1;for(var o=0;o<i.length&&o<n.length;o++)if(!Kt(n[o],i[o]))return!1;return!0}function Ku(n,i,o,c,f,p){return Kn=p,ge=i,i.memoizedState=null,i.updateQueue=null,i.lanes=0,L.H=n===null||n.memoizedState===null?Vy:rd,zi=!1,p=o(c,f),zi=!1,ir&&(p=dy(i,o,c,f)),uy(n),p}function uy(n){L.H=bo;var i=Me!==null&&Me.next!==null;if(Kn=0,tt=Me=ge=null,Xs=!1,zo=0,rr=null,i)throw Error(r(300));n===null||nt||(n=n.dependencies,n!==null&&qs(n)&&(nt=!0))}function dy(n,i,o,c){ge=n;var f=0;do{if(ir&&(rr=null),zo=0,ir=!1,25<=f)throw Error(r(301));if(f+=1,tt=Me=null,n.updateQueue!=null){var p=n.updateQueue;p.lastEffect=null,p.events=null,p.stores=null,p.memoCache!=null&&(p.memoCache.index=0)}L.H=Zy,p=i(o,c)}while(ir);return p}function B0(){var n=L.H,i=n.useState()[0];return i=typeof i.then=="function"?wo(i):i,n=n.useState()[0],(Me!==null?Me.memoizedState:null)!==n&&(ge.flags|=1024),i}function Ju(){var n=Qs!==0;return Qs=0,n}function Vu(n,i,o){i.updateQueue=n.updateQueue,i.flags&=-2053,n.lanes&=~o}function Zu(n){if(Xs){for(n=n.memoizedState;n!==null;){var i=n.queue;i!==null&&(i.pending=null),n=n.next}Xs=!1}Kn=0,tt=Me=ge=null,ir=!1,zo=Qs=0,rr=null}function At(){var n={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return tt===null?ge.memoizedState=tt=n:tt=tt.next=n,tt}function Qe(){if(Me===null){var n=ge.alternate;n=n!==null?n.memoizedState:null}else n=Me.next;var i=tt===null?ge.memoizedState:tt.next;if(i!==null)tt=i,Me=n;else{if(n===null)throw ge.alternate===null?Error(r(467)):Error(r(310));Me=n,n={memoizedState:Me.memoizedState,baseState:Me.baseState,baseQueue:Me.baseQueue,queue:Me.queue,next:null},tt===null?ge.memoizedState=tt=n:tt=tt.next=n}return tt}function ec(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function wo(n){var i=zo;return zo+=1,rr===null&&(rr=[]),n=ty(rr,n,i),i=ge,(tt===null?i.memoizedState:tt.next)===null&&(i=i.alternate,L.H=i===null||i.memoizedState===null?Vy:rd),n}function tc(n){if(n!==null&&typeof n=="object"){if(typeof n.then=="function")return wo(n);if(n.$$typeof===R)return zt(n)}throw Error(r(438,String(n)))}function Gu(n){var i=null,o=ge.updateQueue;if(o!==null&&(i=o.memoCache),i==null){var c=ge.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=ec(),ge.updateQueue=o),o.memoCache=i,o=i.data[i.index],o===void 0)for(o=i.data[i.index]=Array(n),c=0;c<n;c++)o[c]=oe;return i.index++,o}function Jn(n,i){return typeof i=="function"?i(n):i}function nc(n){var i=Qe();return Yu(i,Me,n)}function Yu(n,i,o){var c=n.queue;if(c===null)throw Error(r(311));c.lastRenderedReducer=o;var f=n.baseQueue,p=c.pending;if(p!==null){if(f!==null){var w=f.next;f.next=p.next,p.next=w}i.baseQueue=f=p,c.pending=null}if(p=n.baseState,f===null)n.memoizedState=p;else{i=f.next;var k=w=null,S=null,D=i,B=!1;do{var K=D.lane&-536870913;
vendor: 5,714 bytes, line 9
9if(K!==D.lane?(Se&K)===K:(Kn&K)===K){var P=D.revertLane;if(P===0)S!==null&&(S=S.next={lane:0,revertLane:0,gesture:null,action:D.action,hasEagerState:D.hasEagerState,eagerState:D.eagerState,next:null}),K===Qi&&(B=!0);else if((Kn&P)===P){D=D.next,P===Qi&&(B=!0);continue}else K={lane:0,revertLane:D.revertLane,gesture:null,action:D.action,hasEagerState:D.hasEagerState,eagerState:D.eagerState,next:null},S===null?(k=S=K,w=p):S=S.next=K,ge.lanes|=P,Ra|=P;K=D.action,zi&&o(p,K),p=D.hasEagerState?D.eagerState:o(p,K)}else P={lane:K,revertLane:D.revertLane,gesture:D.gesture,action:D.action,hasEagerState:D.hasEagerState,eagerState:D.eagerState,next:null},S===null?(k=S=P,w=p):S=S.next=P,ge.lanes|=K,Ra|=K;D=D.next}while(D!==null&&D!==i);if(S===null?w=p:S.next=k,!Kt(p,n.memoizedState)&&(nt=!0,B&&(o=er,o!==null)))throw o;n.memoizedState=p,n.baseState=w,n.baseQueue=S,c.lastRenderedState=p}return f===null&&(c.lanes=0),[n.memoizedState,c.dispatch]}function Fu(n){var i=Qe(),o=i.queue;if(o===null)throw Error(r(311));o.lastRenderedReducer=n;var c=o.dispatch,f=o.pending,p=i.memoizedState;if(f!==null){o.pending=null;var w=f=f.next;do p=n(p,w.action),w=w.next;while(w!==f);Kt(p,i.memoizedState)||(nt=!0),i.memoizedState=p,i.baseQueue===null&&(i.baseState=p),o.lastRenderedState=p}return[p,c]}function fy(n,i,o){var c=ge,f=Qe(),p=Ee;if(p){if(o===void 0)throw Error(r(407));o=o()}else o=i();var w=!Kt((Me||f).memoizedState,o);if(w&&(f.memoizedState=o,nt=!0),f=f.queue,Qu(yy.bind(null,c,f,n),[n]),f.getSnapshot!==i||w||tt!==null&&tt.memoizedState.tag&1){if(c.flags|=2048,or(9,{destroy:void 0},py.bind(null,c,f,o,i),null),He===null)throw Error(r(349));p||(Kn&127)!==0||hy(c,i,o)}return o}function hy(n,i,o){n.flags|=16384,n={getSnapshot:i,value:o},i=ge.updateQueue,i===null?(i=ec(),ge.updateQueue=i,i.stores=[n]):(o=i.stores,o===null?i.stores=[n]:o.push(n))}function py(n,i,o,c){i.value=o,i.getSnapshot=c,my(i)&&zy(n)}function yy(n,i,o){return o(function(){my(i)&&zy(n)})}function my(n){var i=n.getSnapshot;n=n.value;try{var o=i();return!Kt(n,o)}catch{return!0}}function zy(n){var i=ci(n,2);i!==null&&$t(i,n,2)}function Wu(n){var i=At();if(typeof n=="function"){var o=n;if(n=o(),zi){ya(!0);try{o()}finally{ya(!1)}}}return i.memoizedState=i.baseState=n,i.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Jn,lastRenderedState:n},i}function wy(n,i,o,c){return n.baseState=o,Yu(n,Me,typeof c=="function"?c:Jn)}function H0(n,i,o,c,f){if(rc(n))throw Error(r(485));if(n=i.action,n!==null){var p={payload:f,action:n,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(w){p.listeners.push(w)}};L.T!==null?o(!0):p.isTransition=!1,c(p),o=i.pending,o===null?(p.next=i.pending=p,gy(i,p)):(p.next=o.next,i.pending=o.next=p)}}function gy(n,i){var o=i.action,c=i.payload,f=n.state;if(i.isTransition){var p=L.T,w={};L.T=w;try{var k=o(f,c),S=L.S;S!==null&&S(w,k),by(n,i,k)}catch(D){Xu(n,i,D)}finally{p!==null&&w.types!==null&&(p.types=w.types),L.T=p}}else try{p=o(f,c),by(n,i,p)}catch(D){Xu(n,i,D)}}function by(n,i,o){o!==null&&typeof o=="object"&&typeof o.then=="function"?o.then(function(c){ky(n,i,c)},function(c){return Xu(n,i,c)}):ky(n,i,o)}function ky(n,i,o){i.status="fulfilled",i.value=o,vy(i),n.state=o,i=n.pending,i!==null&&(o=i.next,o===i?n.pending=null:(o=o.next,i.next=o,gy(n,o)))}function Xu(n,i,o){var c=n.pending;if(n.pending=null,c!==null){c=c.next;do i.status="rejected",i.reason=o,vy(i),i=i.next;while(i!==c)}n.action=null}function vy(n){n=n.listeners;for(var i=0;i<n.length;i++)(0,n[i])()}function jy(n,i){return i}function _y(n,i){if(Ee){var o=He.formState;if(o!==null){e:{var c=ge;if(Ee){if(Ve){t:{for(var f=Ve,p=on;f.nodeType!==8;){if(!p){f=null;break t}if(f=cn(f.nextSibling),f===null){f=null;break t}}p=f.data,f=p==="F!"||p==="F"?f:null}if(f){Ve=cn(f.nextSibling),c=f.data==="F!";break e}}ba(c)}c=!1}c&&(i=o[0])}}return o=At(),o.memoizedState=o.baseState=i,c={pending:null,lanes:0,dispatch:null,lastRenderedReducer:jy,lastRenderedState:i},o.queue=c,o=qy.bind(null,ge,c),c.dispatch=o,c=Wu(!1),p=id.bind(null,ge,!1,c.queue),c=At(),f={state:i,dispatch:null,action:n,pending:null},c.queue=f,o=H0.bind(null,ge,f,p,o),f.dispatch=o,c.memoizedState=n,[i,o,!1]}function Sy(n){var i=Qe();return Ty(i,Me,n)}function Ty(n,i,o){if(i=Yu(n,i,jy)[0],n=nc(Jn)[0],typeof i=="object"&&i!==null&&typeof i.then=="function")try{var c=wo(i)}catch(w){throw w===tr?Vs:w}else c=i;i=Qe();var f=i.queue,p=f.dispatch;return o!==i.memoizedState&&(ge.flags|=2048,or(9,{destroy:void 0},q0.bind(null,f,o),null)),[c,p,n]}function q0(n,i){n.action=i}function Ey(n){var i=Qe(),o=Me;if(o!==null)return Ty(i,o,n);Qe(),i=i.memoizedState,o=Qe();var c=o.queue.dispatch;return o.memoizedState=n,[i,c,!1]}function or(n,i,o,c){return n={tag:n,create:o,deps:c,inst:i,next:null},i=ge.updateQueue,i===null&&(i=ec(),ge.updateQueue=i),o=i.lastEffect,o===null?i.lastEffect=n.next=n:(c=o.next,o.next=n,n.next=c,i.lastEffect=n),n}function Ay(){return Qe().memoizedState}function ac(n,i,o,c){var f=At();ge.flags|=n,f.memoizedState=or(1|i,{destroy:void 0},o,c===void 0?null:c)}function ic(n,i,o,c){var f=Qe();c=c===void 0?null:c;var p=f.memoizedState.inst;Me!==null&&c!==null&&qu(c,Me.memoizedState.deps)?f.memoizedState=or(i,p,o,c):(ge.flags|=n,f.memoizedState=or(1|i,p,o,c))}function Ry(n,i){ac(8390656,8,n,i)}function Qu(n,i){ic(2048,8,n,i)}function K0(n){ge.flags|=4;var i=ge.updateQueue;if(i===null)i=ec(),ge.updateQueue=i,i.events=[n];else{var o=i.events;o===null?i.events=[n]:o.push(n)}}function Oy(n){var i=Qe().memoizedState;return K0({ref:i,nextImpl:n}),function(){if((xe&2)!==0)throw Error(r(440));return i.impl.apply(void 0,arguments)}}function Cy(n,i){return ic(4,2,n,i)}function Ny(n,i){return ic(4,4,n,i)}
vendor: 4,503 bytes, line 9
9function xy(n,i){if(typeof i=="function"){n=n();var o=i(n);return function(){typeof o=="function"?o():i(null)}}if(i!=null)return n=n(),i.current=n,function(){i.current=null}}function Dy(n,i,o){o=o!=null?o.concat([n]):null,ic(4,4,xy.bind(null,i,n),o)}function ed(){}function Py(n,i){var o=Qe();i=i===void 0?null:i;var c=o.memoizedState;return i!==null&&qu(i,c[1])?c[0]:(o.memoizedState=[n,i],n)}function Ly(n,i){var o=Qe();i=i===void 0?null:i;var c=o.memoizedState;if(i!==null&&qu(i,c[1]))return c[0];if(c=n(),zi){ya(!0);try{n()}finally{ya(!1)}}return o.memoizedState=[c,i],c}function td(n,i,o){return o===void 0||(Kn&1073741824)!==0&&(Se&261930)===0?n.memoizedState=i:(n.memoizedState=o,n=Mm(),ge.lanes|=n,Ra|=n,o)}function My(n,i,o,c){return Kt(o,i)?o:ar.current!==null?(n=td(n,o,c),Kt(n,i)||(nt=!0),n):(Kn&42)===0||(Kn&1073741824)!==0&&(Se&261930)===0?(nt=!0,n.memoizedState=o):(n=Mm(),ge.lanes|=n,Ra|=n,i)}function Uy(n,i,o,c,f){var p=F.p;F.p=p!==0&&8>p?p:8;var w=L.T,k={};L.T=k,id(n,!1,i,o);try{var S=f(),D=L.S;if(D!==null&&D(k,S),S!==null&&typeof S=="object"&&typeof S.then=="function"){var B=$0(S,c);go(n,i,B,Ft(n))}else go(n,i,c,Ft(n))}catch(K){go(n,i,{then:function(){},status:"rejected",reason:K},Ft())}finally{F.p=p,w!==null&&k.types!==null&&(w.types=k.types),L.T=w}}function J0(){}function nd(n,i,o,c){if(n.tag!==5)throw Error(r(476));var f=$y(n).queue;Uy(n,f,i,ce,o===null?J0:function(){return Iy(n),o(c)})}function $y(n){var i=n.memoizedState;if(i!==null)return i;i={memoizedState:ce,baseState:ce,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Jn,lastRenderedState:ce},next:null};var o={};return i.next={memoizedState:o,baseState:o,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Jn,lastRenderedState:o},next:null},n.memoizedState=i,n=n.alternate,n!==null&&(n.memoizedState=i),i}function Iy(n){var i=$y(n);i.next===null&&(i=n.alternate.memoizedState),go(n,i.next.queue,{},Ft())}function ad(){return zt(Lo)}function By(){return Qe().memoizedState}function Hy(){return Qe().memoizedState}function V0(n){for(var i=n.return;i!==null;){switch(i.tag){case 24:case 3:var o=Ft();n=ja(o);var c=_a(i,n,o);c!==null&&($t(c,i,o),po(c,i,o)),i={cache:Nu()},n.payload=i;return}i=i.return}}function Z0(n,i,o){var c=Ft();o={lane:c,revertLane:0,gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null},rc(n)?Ky(i,o):(o=ku(n,i,o,c),o!==null&&($t(o,n,c),Jy(o,i,c)))}function qy(n,i,o){var c=Ft();go(n,i,o,c)}function go(n,i,o,c){var f={lane:c,revertLane:0,gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null};if(rc(n))Ky(i,f);else{var p=n.alternate;if(n.lanes===0&&(p===null||p.lanes===0)&&(p=i.lastRenderedReducer,p!==null))try{var w=i.lastRenderedState,k=p(w,o);if(f.hasEagerState=!0,f.eagerState=k,Kt(k,w))return $s(n,i,f,0),He===null&&Us(),!1}catch{}if(o=ku(n,i,f,c),o!==null)return $t(o,n,c),Jy(o,i,c),!0}return!1}function id(n,i,o,c){if(c={lane:2,revertLane:Ld(),gesture:null,action:c,hasEagerState:!1,eagerState:null,next:null},rc(n)){if(i)throw Error(r(479))}else i=ku(n,o,c,2),i!==null&&$t(i,n,2)}function rc(n){var i=n.alternate;return n===ge||i!==null&&i===ge}function Ky(n,i){ir=Xs=!0;var o=n.pending;o===null?i.next=i:(i.next=o.next,o.next=i),n.pending=i}function Jy(n,i,o){if((o&4194048)!==0){var c=i.lanes;c&=n.pendingLanes,o|=c,i.lanes=o,Fh(n,o)}}var bo={readContext:zt,use:tc,useCallback:Ye,useContext:Ye,useEffect:Ye,useImperativeHandle:Ye,useLayoutEffect:Ye,useInsertionEffect:Ye,useMemo:Ye,useReducer:Ye,useRef:Ye,useState:Ye,useDebugValue:Ye,useDeferredValue:Ye,useTransition:Ye,useSyncExternalStore:Ye,useId:Ye,useHostTransitionStatus:Ye,useFormState:Ye,useActionState:Ye,useOptimistic:Ye,useMemoCache:Ye,useCacheRefresh:Ye};bo.useEffectEvent=Ye;var Vy={readContext:zt,use:tc,useCallback:function(n,i){return At().memoizedState=[n,i===void 0?null:i],n},useContext:zt,useEffect:Ry,useImperativeHandle:function(n,i,o){o=o!=null?o.concat([n]):null,ac(4194308,4,xy.bind(null,i,n),o)},useLayoutEffect:function(n,i){return ac(4194308,4,n,i)},useInsertionEffect:function(n,i){ac(4,2,n,i)},useMemo:function(n,i){var o=At();i=i===void 0?null:i;var c=n();if(zi){ya(!0);try{n()}finally{ya(!1)}}return o.memoizedState=[c,i],c},useReducer:function(n,i,o){var c=At();if(o!==void 0){var f=o(i);if(zi){ya(!0);try{o(i)}finally{ya(!1)}}}else f=i;return c.memoizedState=c.baseState=f,n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:n,lastRenderedState:f},c.queue=n,n=n.dispatch=Z0.bind(null,ge,n),[c.memoizedState,n]}
vendor: 6,960 bytes, line 9
9,useRef:function(n){var i=At();return n={current:n},i.memoizedState=n},useState:function(n){n=Wu(n);var i=n.queue,o=qy.bind(null,ge,i);return i.dispatch=o,[n.memoizedState,o]},useDebugValue:ed,useDeferredValue:function(n,i){var o=At();return td(o,n,i)},useTransition:function(){var n=Wu(!1);return n=Uy.bind(null,ge,n.queue,!0,!1),At().memoizedState=n,[!1,n]},useSyncExternalStore:function(n,i,o){var c=ge,f=At();if(Ee){if(o===void 0)throw Error(r(407));o=o()}else{if(o=i(),He===null)throw Error(r(349));(Se&127)!==0||hy(c,i,o)}f.memoizedState=o;var p={value:o,getSnapshot:i};return f.queue=p,Ry(yy.bind(null,c,p,n),[n]),c.flags|=2048,or(9,{destroy:void 0},py.bind(null,c,p,o,i),null),o},useId:function(){var n=At(),i=He.identifierPrefix;if(Ee){var o=Tn,c=Sn;o=(c&~(1<<32-qt(c)-1)).toString(32)+o,i="_"+i+"R_"+o,o=Qs++,0<o&&(i+="H"+o.toString(32)),i+="_"}else o=I0++,i="_"+i+"r_"+o.toString(32)+"_";return n.memoizedState=i},useHostTransitionStatus:ad,useFormState:_y,useActionState:_y,useOptimistic:function(n){var i=At();i.memoizedState=i.baseState=n;var o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return i.queue=o,i=id.bind(null,ge,!0,o),o.dispatch=i,[n,i]},useMemoCache:Gu,useCacheRefresh:function(){return At().memoizedState=V0.bind(null,ge)},useEffectEvent:function(n){var i=At(),o={impl:n};return i.memoizedState=o,function(){if((xe&2)!==0)throw Error(r(440));return o.impl.apply(void 0,arguments)}}},rd={readContext:zt,use:tc,useCallback:Py,useContext:zt,useEffect:Qu,useImperativeHandle:Dy,useInsertionEffect:Cy,useLayoutEffect:Ny,useMemo:Ly,useReducer:nc,useRef:Ay,useState:function(){return nc(Jn)},useDebugValue:ed,useDeferredValue:function(n,i){var o=Qe();return My(o,Me.memoizedState,n,i)},useTransition:function(){var n=nc(Jn)[0],i=Qe().memoizedState;return[typeof n=="boolean"?n:wo(n),i]},useSyncExternalStore:fy,useId:By,useHostTransitionStatus:ad,useFormState:Sy,useActionState:Sy,useOptimistic:function(n,i){var o=Qe();return wy(o,Me,n,i)},useMemoCache:Gu,useCacheRefresh:Hy};rd.useEffectEvent=Oy;var Zy={readContext:zt,use:tc,useCallback:Py,useContext:zt,useEffect:Qu,useImperativeHandle:Dy,useInsertionEffect:Cy,useLayoutEffect:Ny,useMemo:Ly,useReducer:Fu,useRef:Ay,useState:function(){return Fu(Jn)},useDebugValue:ed,useDeferredValue:function(n,i){var o=Qe();return Me===null?td(o,n,i):My(o,Me.memoizedState,n,i)},useTransition:function(){var n=Fu(Jn)[0],i=Qe().memoizedState;return[typeof n=="boolean"?n:wo(n),i]},useSyncExternalStore:fy,useId:By,useHostTransitionStatus:ad,useFormState:Ey,useActionState:Ey,useOptimistic:function(n,i){var o=Qe();return Me!==null?wy(o,Me,n,i):(o.baseState=n,[n,o.queue.dispatch])},useMemoCache:Gu,useCacheRefresh:Hy};Zy.useEffectEvent=Oy;function od(n,i,o,c){i=n.memoizedState,o=o(c,i),o=o==null?i:m({},i,o),n.memoizedState=o,n.lanes===0&&(n.updateQueue.baseState=o)}var sd={enqueueSetState:function(n,i,o){n=n._reactInternals;var c=Ft(),f=ja(c);f.payload=i,o!=null&&(f.callback=o),i=_a(n,f,c),i!==null&&($t(i,n,c),po(i,n,c))},enqueueReplaceState:function(n,i,o){n=n._reactInternals;var c=Ft(),f=ja(c);f.tag=1,f.payload=i,o!=null&&(f.callback=o),i=_a(n,f,c),i!==null&&($t(i,n,c),po(i,n,c))},enqueueForceUpdate:function(n,i){n=n._reactInternals;var o=Ft(),c=ja(o);c.tag=2,i!=null&&(c.callback=i),i=_a(n,c,o),i!==null&&($t(i,n,o),po(i,n,o))}};function Gy(n,i,o,c,f,p,w){return n=n.stateNode,typeof n.shouldComponentUpdate=="function"?n.shouldComponentUpdate(c,p,w):i.prototype&&i.prototype.isPureReactComponent?!ro(o,c)||!ro(f,p):!0}function Yy(n,i,o,c){n=i.state,typeof i.componentWillReceiveProps=="function"&&i.componentWillReceiveProps(o,c),typeof i.UNSAFE_componentWillReceiveProps=="function"&&i.UNSAFE_componentWillReceiveProps(o,c),i.state!==n&&sd.enqueueReplaceState(i,i.state,null)}function wi(n,i){var o=i;if("ref"in i){o={};for(var c in i)c!=="ref"&&(o[c]=i[c])}if(n=n.defaultProps){o===i&&(o=m({},o));for(var f in n)o[f]===void 0&&(o[f]=n[f])}return o}function Fy(n){Ms(n)}function Wy(n){console.error(n)}function Xy(n){Ms(n)}function oc(n,i){try{var o=n.onUncaughtError;o(i.value,{componentStack:i.stack})}catch(c){setTimeout(function(){throw c})}}function Qy(n,i,o){try{var c=n.onCaughtError;c(o.value,{componentStack:o.stack,errorBoundary:i.tag===1?i.stateNode:null})}catch(f){setTimeout(function(){throw f})}}function cd(n,i,o){return o=ja(o),o.tag=3,o.payload={element:null},o.callback=function(){oc(n,i)},o}function em(n){return n=ja(n),n.tag=3,n}function tm(n,i,o,c){var f=o.type.getDerivedStateFromError;if(typeof f=="function"){var p=c.value;n.payload=function(){return f(p)},n.callback=function(){Qy(i,o,c)}}var w=o.stateNode;w!==null&&typeof w.componentDidCatch=="function"&&(n.callback=function(){Qy(i,o,c),typeof f!="function"&&(Oa===null?Oa=new Set([this]):Oa.add(this));var k=c.stack;this.componentDidCatch(c.value,{componentStack:k!==null?k:""})})}function G0(n,i,o,c,f){if(o.flags|=32768,c!==null&&typeof c=="object"&&typeof c.then=="function"){if(i=o.alternate,i!==null&&Xi(i,o,f,!0),o=Vt.current,o!==null){switch(o.tag){case 31:case 13:return sn===null?wc():o.alternate===null&&Fe===0&&(Fe=3),o.flags&=-257,o.flags|=65536,o.lanes=f,c===Zs?o.flags|=16384:(i=o.updateQueue,i===null?o.updateQueue=new Set([c]):i.add(c),xd(n,c,f)),!1;case 22:return o.flags|=65536,c===Zs?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)),xd(n,c,f)),!1}throw Error(r(435,o.tag))}return xd(n,c,f),wc(),!1}if(Ee)return i=Vt.current,i!==null?((i.flags&65536)===0&&(i.flags|=256),i.flags|=65536,i.lanes=f,c!==Eu&&(n=Error(r(422),{cause:c}),co(nn(n,o)))):(c!==Eu&&(i=Error(r(423),{cause:c}),co(nn(i,o))),n=n.current.alternate,n.flags|=65536,f&=-f,n.lanes|=f,c=nn(c,o),f=cd(n.stateNode,c,f),Uu(n,f),Fe!==4&&(Fe=2)),!1;var p=Error(r(520),{cause:c});if(p=nn(p,o),Ao===null?Ao=[p]:Ao.push(p),Fe!==4&&(Fe=2),i===null)return!0;c=nn(c,o),o=i;do{switch(o.tag){case 3:return o.flags|=65536,n=f&-f,o.lanes|=n,n=cd(o.stateNode,c,n),Uu(o,n),!1;case 1:if(i=o.type,p=o.stateNode,(o.flags&128)===0&&(typeof i.getDerivedStateFromError=="function"||p!==null&&typeof p.componentDidCatch=="function"&&(Oa===null||!Oa.has(p))))return o.flags|=65536,f&=-f,o.lanes|=f,f=em(f),tm(f,n,o,c),Uu(o,f),!1}o=o.return}while(o!==null);return!1}var ld=Error(r(461)),nt=!1;function wt(n,i,o,c){i.child=n===null?ry(i,null,o,c):mi(i,n.child,o,c)}function nm(n,i,o,c,f){o=o.render;var p=i.ref;if("ref"in c){var w={};for(var k in c)k!=="ref"&&(w[k]=c[k])}else w=c;return fi(i),c=Ku(n,i,o,w,p,f),k=Ju(),n!==null&&!nt?(Vu(n,i,f),Vn(n,i,f)):(Ee&&k&&Su(i),i.flags|=1,wt(n,i,c,f),i.child)}function am(n,i,o,c,f){if(n===null){var p=o.type;return typeof p=="function"&&!vu(p)&&p.defaultProps===void 0&&o.compare===null?(i.tag=15,i.type=p,im(n,i,p,c,f)):(n=Bs(o.type,null,c,i,i.mode,f),n.ref=i.ref,n.return=i,i.child=n)}if(p=n.child,!zd(n,f)){var w=p.memoizedProps;
vendor: 14,907 bytes, line 9
9if(o=o.compare,o=o!==null?o:ro,o(w,c)&&n.ref===i.ref)return Vn(n,i,f)}return i.flags|=1,n=In(p,c),n.ref=i.ref,n.return=i,i.child=n}function im(n,i,o,c,f){if(n!==null){var p=n.memoizedProps;if(ro(p,c)&&n.ref===i.ref)if(nt=!1,i.pendingProps=c=p,zd(n,f))(n.flags&131072)!==0&&(nt=!0);else return i.lanes=n.lanes,Vn(n,i,f)}return ud(n,i,o,c,f)}function rm(n,i,o,c){var f=c.children,p=n!==null?n.memoizedState:null;if(n===null&&i.stateNode===null&&(i.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),c.mode==="hidden"){if((i.flags&128)!==0){if(p=p!==null?p.baseLanes|o:o,n!==null){for(c=i.child=n.child,f=0;c!==null;)f=f|c.lanes|c.childLanes,c=c.sibling;c=f&~p}else c=0,i.child=null;return om(n,i,p,o,c)}if((o&536870912)!==0)i.memoizedState={baseLanes:0,cachePool:null},n!==null&&Js(i,p!==null?p.cachePool:null),p!==null?cy(i,p):Iu(),ly(i);else return c=i.lanes=536870912,om(n,i,p!==null?p.baseLanes|o:o,o,c)}else p!==null?(Js(i,p.cachePool),cy(i,p),Ta(),i.memoizedState=null):(n!==null&&Js(i,null),Iu(),Ta());return wt(n,i,f,o),i.child}function ko(n,i){return n!==null&&n.tag===22||i.stateNode!==null||(i.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),i.sibling}function om(n,i,o,c,f){var p=Du();return p=p===null?null:{parent:et._currentValue,pool:p},i.memoizedState={baseLanes:o,cachePool:p},n!==null&&Js(i,null),Iu(),ly(i),n!==null&&Xi(n,i,c,!0),i.childLanes=f,null}function sc(n,i){return i=lc({mode:i.mode,children:i.children},n.mode),i.ref=n.ref,n.child=i,i.return=n,i}function sm(n,i,o){return mi(i,n.child,null,o),n=sc(i,i.pendingProps),n.flags|=2,Zt(i),i.memoizedState=null,n}function Y0(n,i,o){var c=i.pendingProps,f=(i.flags&128)!==0;if(i.flags&=-129,n===null){if(Ee){if(c.mode==="hidden")return n=sc(i,c),i.lanes=536870912,ko(null,n);if(Hu(i),(n=Ve)?(n=gz(n,on),n=n!==null&&n.data==="&"?n:null,n!==null&&(i.memoizedState={dehydrated:n,treeContext:wa!==null?{id:Sn,overflow:Tn}:null,retryLane:536870912,hydrationErrors:null},o=Kp(n),o.return=i,i.child=o,mt=i,Ve=null)):n=null,n===null)throw ba(i);return i.lanes=536870912,null}return sc(i,c)}var p=n.memoizedState;if(p!==null){var w=p.dehydrated;if(Hu(i),f)if(i.flags&256)i.flags&=-257,i=sm(n,i,o);else if(i.memoizedState!==null)i.child=n.child,i.flags|=128,i=null;else throw Error(r(558));else if(nt||Xi(n,i,o,!1),f=(o&n.childLanes)!==0,nt||f){if(c=He,c!==null&&(w=Wh(c,o),w!==0&&w!==p.retryLane))throw p.retryLane=w,ci(n,w),$t(c,n,w),ld;wc(),i=sm(n,i,o)}else n=p.treeContext,Ve=cn(w.nextSibling),mt=i,Ee=!0,ga=null,on=!1,n!==null&&Zp(i,n),i=sc(i,c),i.flags|=4096;return i}return n=In(n.child,{mode:c.mode,children:c.children}),n.ref=i.ref,i.child=n,n.return=i,n}function cc(n,i){var o=i.ref;if(o===null)n!==null&&n.ref!==null&&(i.flags|=4194816);else{if(typeof o!="function"&&typeof o!="object")throw Error(r(284));(n===null||n.ref!==o)&&(i.flags|=4194816)}}function ud(n,i,o,c,f){return fi(i),o=Ku(n,i,o,c,void 0,f),c=Ju(),n!==null&&!nt?(Vu(n,i,f),Vn(n,i,f)):(Ee&&c&&Su(i),i.flags|=1,wt(n,i,o,f),i.child)}function cm(n,i,o,c,f,p){return fi(i),i.updateQueue=null,o=dy(i,c,o,f),uy(n),c=Ju(),n!==null&&!nt?(Vu(n,i,p),Vn(n,i,p)):(Ee&&c&&Su(i),i.flags|=1,wt(n,i,o,p),i.child)}function lm(n,i,o,c,f){if(fi(i),i.stateNode===null){var p=Gi,w=o.contextType;typeof w=="object"&&w!==null&&(p=zt(w)),p=new o(c,p),i.memoizedState=p.state!==null&&p.state!==void 0?p.state:null,p.updater=sd,i.stateNode=p,p._reactInternals=i,p=i.stateNode,p.props=c,p.state=i.memoizedState,p.refs={},Lu(i),w=o.contextType,p.context=typeof w=="object"&&w!==null?zt(w):Gi,p.state=i.memoizedState,w=o.getDerivedStateFromProps,typeof w=="function"&&(od(i,o,w,c),p.state=i.memoizedState),typeof o.getDerivedStateFromProps=="function"||typeof p.getSnapshotBeforeUpdate=="function"||typeof p.UNSAFE_componentWillMount!="function"&&typeof p.componentWillMount!="function"||(w=p.state,typeof p.componentWillMount=="function"&&p.componentWillMount(),typeof p.UNSAFE_componentWillMount=="function"&&p.UNSAFE_componentWillMount(),w!==p.state&&sd.enqueueReplaceState(p,p.state,null),mo(i,c,p,f),yo(),p.state=i.memoizedState),typeof p.componentDidMount=="function"&&(i.flags|=4194308),c=!0}else if(n===null){p=i.stateNode;var k=i.memoizedProps,S=wi(o,k);p.props=S;var D=p.context,B=o.contextType;w=Gi,typeof B=="object"&&B!==null&&(w=zt(B));var K=o.getDerivedStateFromProps;B=typeof K=="function"||typeof p.getSnapshotBeforeUpdate=="function",k=i.pendingProps!==k,B||typeof p.UNSAFE_componentWillReceiveProps!="function"&&typeof p.componentWillReceiveProps!="function"||(k||D!==w)&&Yy(i,p,c,w),va=!1;var P=i.memoizedState;p.state=P,mo(i,c,p,f),yo(),D=i.memoizedState,k||P!==D||va?(typeof K=="function"&&(od(i,o,K,c),D=i.memoizedState),(S=va||Gy(i,o,S,c,P,D,w))?(B||typeof p.UNSAFE_componentWillMount!="function"&&typeof p.componentWillMount!="function"||(typeof p.componentWillMount=="function"&&p.componentWillMount(),typeof p.UNSAFE_componentWillMount=="function"&&p.UNSAFE_componentWillMount()),typeof p.componentDidMount=="function"&&(i.flags|=4194308)):(typeof p.componentDidMount=="function"&&(i.flags|=4194308),i.memoizedProps=c,i.memoizedState=D),p.props=c,p.state=D,p.context=w,c=S):(typeof p.componentDidMount=="function"&&(i.flags|=4194308),c=!1)}else{p=i.stateNode,Mu(n,i),w=i.memoizedProps,B=wi(o,w),p.props=B,K=i.pendingProps,P=p.context,D=o.contextType,S=Gi,typeof D=="object"&&D!==null&&(S=zt(D)),k=o.getDerivedStateFromProps,(D=typeof k=="function"||typeof p.getSnapshotBeforeUpdate=="function")||typeof p.UNSAFE_componentWillReceiveProps!="function"&&typeof p.componentWillReceiveProps!="function"||(w!==K||P!==S)&&Yy(i,p,c,S),va=!1,P=i.memoizedState,p.state=P,mo(i,c,p,f),yo();var U=i.memoizedState;w!==K||P!==U||va||n!==null&&n.dependencies!==null&&qs(n.dependencies)?(typeof k=="function"&&(od(i,o,k,c),U=i.memoizedState),(B=va||Gy(i,o,B,c,P,U,S)||n!==null&&n.dependencies!==null&&qs(n.dependencies))?(D||typeof p.UNSAFE_componentWillUpdate!="function"&&typeof p.componentWillUpdate!="function"||(typeof p.componentWillUpdate=="function"&&p.componentWillUpdate(c,U,S),typeof p.UNSAFE_componentWillUpdate=="function"&&p.UNSAFE_componentWillUpdate(c,U,S)),typeof p.componentDidUpdate=="function"&&(i.flags|=4),typeof p.getSnapshotBeforeUpdate=="function"&&(i.flags|=1024)):(typeof p.componentDidUpdate!="function"||w===n.memoizedProps&&P===n.memoizedState||(i.flags|=4),typeof p.getSnapshotBeforeUpdate!="function"||w===n.memoizedProps&&P===n.memoizedState||(i.flags|=1024),i.memoizedProps=c,i.memoizedState=U),p.props=c,p.state=U,p.context=S,c=B):(typeof p.componentDidUpdate!="function"||w===n.memoizedProps&&P===n.memoizedState||(i.flags|=4),typeof p.getSnapshotBeforeUpdate!="function"||w===n.memoizedProps&&P===n.memoizedState||(i.flags|=1024),c=!1)}return p=c,cc(n,i),c=(i.flags&128)!==0,p||c?(p=i.stateNode,o=c&&typeof o.getDerivedStateFromError!="function"?null:p.render(),i.flags|=1,n!==null&&c?(i.child=mi(i,n.child,null,f),i.child=mi(i,null,o,f)):wt(n,i,o,f),i.memoizedState=p.state,n=i.child):n=Vn(n,i,f),n}function um(n,i,o,c){return ui(),i.flags|=256,wt(n,i,o,c),i.child}var dd={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function fd(n){return{baseLanes:n,cachePool:Qp()}}function hd(n,i,o){return n=n!==null?n.childLanes&~o:0,i&&(n|=Yt),n}function dm(n,i,o){var c=i.pendingProps,f=!1,p=(i.flags&128)!==0,w;if((w=p)||(w=n!==null&&n.memoizedState===null?!1:(Xe.current&2)!==0),w&&(f=!0,i.flags&=-129),w=(i.flags&32)!==0,i.flags&=-33,n===null){if(Ee){if(f?Sa(i):Ta(),(n=Ve)?(n=gz(n,on),n=n!==null&&n.data!=="&"?n:null,n!==null&&(i.memoizedState={dehydrated:n,treeContext:wa!==null?{id:Sn,overflow:Tn}:null,retryLane:536870912,hydrationErrors:null},o=Kp(n),o.return=i,i.child=o,mt=i,Ve=null)):n=null,n===null)throw ba(i);return Yd(n)?i.lanes=32:i.lanes=536870912,null}var k=c.children;return c=c.fallback,f?(Ta(),f=i.mode,k=lc({mode:"hidden",children:k},f),c=li(c,f,o,null),k.return=i,c.return=i,k.sibling=c,i.child=k,c=i.child,c.memoizedState=fd(o),c.childLanes=hd(n,w,o),i.memoizedState=dd,ko(null,c)):(Sa(i),pd(i,k))}var S=n.memoizedState;if(S!==null&&(k=S.dehydrated,k!==null)){if(p)i.flags&256?(Sa(i),i.flags&=-257,i=yd(n,i,o)):i.memoizedState!==null?(Ta(),i.child=n.child,i.flags|=128,i=null):(Ta(),k=c.fallback,f=i.mode,c=lc({mode:"visible",children:c.children},f),k=li(k,f,o,null),k.flags|=2,c.return=i,k.return=i,c.sibling=k,i.child=c,mi(i,n.child,null,o),c=i.child,c.memoizedState=fd(o),c.childLanes=hd(n,w,o),i.memoizedState=dd,i=ko(null,c));else if(Sa(i),Yd(k)){if(w=k.nextSibling&&k.nextSibling.dataset,w)var D=w.dgst;w=D,c=Error(r(419)),c.stack="",c.digest=w,co({value:c,source:null,stack:null}),i=yd(n,i,o)}else if(nt||Xi(n,i,o,!1),w=(o&n.childLanes)!==0,nt||w){if(w=He,w!==null&&(c=Wh(w,o),c!==0&&c!==S.retryLane))throw S.retryLane=c,ci(n,c),$t(w,n,c),ld;Gd(k)||wc(),i=yd(n,i,o)}else Gd(k)?(i.flags|=192,i.child=n.child,i=null):(n=S.treeContext,Ve=cn(k.nextSibling),mt=i,Ee=!0,ga=null,on=!1,n!==null&&Zp(i,n),i=pd(i,c.children),i.flags|=4096);return i}return f?(Ta(),k=c.fallback,f=i.mode,S=n.child,D=S.sibling,c=In(S,{mode:"hidden",children:c.children}),c.subtreeFlags=S.subtreeFlags&65011712,D!==null?k=In(D,k):(k=li(k,f,o,null),k.flags|=2),k.return=i,c.return=i,c.sibling=k,i.child=c,ko(null,c),c=i.child,k=n.child.memoizedState,k===null?k=fd(o):(f=k.cachePool,f!==null?(S=et._currentValue,f=f.parent!==S?{parent:S,pool:S}:f):f=Qp(),k={baseLanes:k.baseLanes|o,cachePool:f}),c.memoizedState=k,c.childLanes=hd(n,w,o),i.memoizedState=dd,ko(n.child,c)):(Sa(i),o=n.child,n=o.sibling,o=In(o,{mode:"visible",children:c.children}),o.return=i,o.sibling=null,n!==null&&(w=i.deletions,w===null?(i.deletions=[n],i.flags|=16):w.push(n)),i.child=o,i.memoizedState=null,o)}function pd(n,i){return i=lc({mode:"visible",children:i},n.mode),i.return=n,n.child=i}function lc(n,i){return n=Jt(22,n,null,i),n.lanes=0,n}function yd(n,i,o){return mi(i,n.child,null,o),n=pd(i,i.pendingProps.children),n.flags|=2,i.memoizedState=null,n}function fm(n,i,o){n.lanes|=i;var c=n.alternate;c!==null&&(c.lanes|=i),Ou(n.return,i,o)}function md(n,i,o,c,f,p){var w=n.memoizedState;w===null?n.memoizedState={isBackwards:i,rendering:null,renderingStartTime:0,last:c,tail:o,tailMode:f,treeForkCount:p}:(w.isBackwards=i,w.rendering=null,w.renderingStartTime=0,w.last=c,w.tail=o,w.tailMode=f,w.treeForkCount=p)}function hm(n,i,o){var c=i.pendingProps,f=c.revealOrder,p=c.tail;c=c.children;var w=Xe.current,k=(w&2)!==0;if(k?(w=w&1|2,i.flags|=128):w&=1,Y(Xe,w),wt(n,i,c,o),c=Ee?so:0,!k&&n!==null&&(n.flags&128)!==0)e:for(n=i.child;n!==null;){if(n.tag===13)n.memoizedState!==null&&fm(n,o,i);else if(n.tag===19)fm(n,o,i);else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===i)break e;for(;n.sibling===null;){if(n.return===null||n.return===i)break e;n=n.return}n.sibling.return=n.return,n=n.sibling}switch(f){case"forwards":for(o=i.child,f=null;o!==null;)n=o.alternate,n!==null&&Ws(n)===null&&(f=o),o=o.sibling;o=f,o===null?(f=i.child,i.child=null):(f=o.sibling,o.sibling=null),md(i,!1,f,o,p,c);break;case"backwards":case"unstable_legacy-backwards":for(o=null,f=i.child,i.child=null;f!==null;){if(n=f.alternate,n!==null&&Ws(n)===null){i.child=f;break}n=f.sibling,f.sibling=o,o=f,f=n}md(i,!0,o,null,p,c);break;case"together":md(i,!1,null,null,void 0,c);break;default:i.memoizedState=null}return i.child}function Vn(n,i,o){if(n!==null&&(i.dependencies=n.dependencies),Ra|=i.lanes,(o&i.childLanes)===0)if(n!==null){if(Xi(n,i,o,!1),(o&i.childLanes)===0)return null}else return null;if(n!==null&&i.child!==n.child)throw Error(r(153));if(i.child!==null){for(n=i.child,o=In(n,n.pendingProps),i.child=o,o.return=i;n.sibling!==null;)n=n.sibling,o=o.sibling=In(n,n.pendingProps),o.return=i;o.sibling=null}return i.child}function zd(n,i){return(n.lanes&i)!==0?!0:(n=n.dependencies,!!(n!==null&&qs(n)))}function F0(n,i,o){switch(i.tag){case 3:Ne(i,i.stateNode.containerInfo),ka(i,et,n.memoizedState.cache),ui();break;case 27:case 5:_n(i);break;case 4:Ne(i,i.stateNode.containerInfo);break;case 10:ka(i,i.type,i.memoizedProps.value);break;case 31:if(i.memoizedState!==null)return i.flags|=128,Hu(i),null;break;case 13:var c=i.memoizedState;if(c!==null)return c.dehydrated!==null?(Sa(i),i.flags|=128,null):(o&i.child.childLanes)!==0?dm(n,i,o):(Sa(i),n=Vn(n,i,o),n!==null?n.sibling:null);Sa(i);break;case 19:var f=(n.flags&128)!==0;if(c=(o&i.childLanes)!==0,c||(Xi(n,i,o,!1),c=(o&i.childLanes)!==0),f){if(c)return hm(n,i,o);i.flags|=128}if(f=i.memoizedState,f!==null&&(f.rendering=null,f.tail=null,f.lastEffect=null),Y(Xe,Xe.current),c)break;return null;case 22:return i.lanes=0,rm(n,i,o,i.pendingProps);case 24:ka(i,et,n.memoizedState.cache)}return Vn(n,i,o)}function pm(n,i,o){if(n!==null)if(n.memoizedProps!==i.pendingProps)nt=!0;else{if(!zd(n,o)&&(i.flags&128)===0)return nt=!1,F0(n,i,o);nt=(n.flags&131072)!==0}else nt=!1,Ee&&(i.flags&1048576)!==0&&Vp(i,so,i.index);switch(i.lanes=0,i.tag){case 16:e:{var c=i.pendingProps;if(n=pi(i.elementType),i.type=n,typeof n=="function")vu(n)?(c=wi(n,c),i.tag=1,i=lm(null,i,n,c,o)):(i.tag=0,i=ud(null,i,n,c,o));else{if(n!=null){var f=n.$$typeof;if(f===M){i.tag=11,i=nm(null,i,n,c,o);break e}else if(f===N){i.tag=14,i=am(null,i,n,c,o);break e}}throw i=ye(n)||n,Error(r(306,i,""))}}return i;case 0:return ud(n,i,i.type,i.pendingProps,o);case 1:return c=i.type,f=wi(c,i.pendingProps),lm(n,i,c,f,o);case 3:e:{if(Ne(i,i.stateNode.containerInfo),n===null)throw Error(r(387));c=i.pendingProps;var p=i.memoizedState;f=p.element,Mu(n,i),mo(i,c,null,o);var w=i.memoizedState;if(c=w.cache,ka(i,et,c),c!==p.cache&&Cu(i,[et],o,!0),yo(),c=w.element,p.isDehydrated)if(p={element:c,isDehydrated:!1,cache:w.cache},i.updateQueue.baseState=p,i.memoizedState=p,i.flags&256){i=um(n,i,c,o);break e}else if(c!==f){f=nn(Error(r(424)),i),co(f),i=um(n,i,c,o);break e}else for(n=i.stateNode.containerInfo,n.nodeType===9?n=n.body:n=n.nodeName==="HTML"?n.ownerDocument.body:n,Ve=cn(n.firstChild),mt=i,Ee=!0,ga=null,on=!0,o=ry(i,null,c,o),i.child=o;o;)o.flags=o.flags&-3|4096,o=o.sibling;else{if(ui(),c===f){i=Vn(n,i,o);break e}wt(n,i,c,o)}i=i.child}return i;case 26:return cc(n,i),n===null?(o=Sz(i.type,null,i.pendingProps,null))?i.memoizedState=o:Ee||(o=i.type,n=i.pendingProps,c=Sc(ke.current).createElement(o),c[yt]=i,c[xt]=n,gt(c,o,n),lt(c),i.stateNode=c):i.memoizedState=Sz(i.type,n.memoizedProps,i.pendingProps,n.memoizedState),null;case 27:return _n(i),n===null&&Ee&&(c=i.stateNode=vz(i.type,i.pendingProps,ke.current),mt=i,on=!0,f=Ve,Da(i.type)?(Fd=f,Ve=cn(c.firstChild)):Ve=f),wt(n,i,i.pendingProps.children,o),cc(n,i),n===null&&(i.flags|=4194304),i.child;case 5:return n===null&&Ee&&((f=c=Ve)&&(c=Tj(c,i.type,i.pendingProps,on),c!==null?(i.stateNode=c,mt=i,Ve=cn(c.firstChild),on=!1,f=!0):f=!1),f||ba(i)),_n(i),f=i.type,p=i.pendingProps,w=n!==null?n.memoizedProps:null,c=p.children,Jd(f,p)?c=null:w!==null&&Jd(f,w)&&(i.flags|=32),i.memoizedState!==null&&(f=Ku(n,i,B0,null,
vendor: 4,244 bytes, line 9
9null,o),Lo._currentValue=f),cc(n,i),wt(n,i,c,o),i.child;case 6:return n===null&&Ee&&((n=o=Ve)&&(o=Ej(o,i.pendingProps,on),o!==null?(i.stateNode=o,mt=i,Ve=null,n=!0):n=!1),n||ba(i)),null;case 13:return dm(n,i,o);case 4:return Ne(i,i.stateNode.containerInfo),c=i.pendingProps,n===null?i.child=mi(i,null,c,o):wt(n,i,c,o),i.child;case 11:return nm(n,i,i.type,i.pendingProps,o);case 7:return wt(n,i,i.pendingProps,o),i.child;case 8:return wt(n,i,i.pendingProps.children,o),i.child;case 12:return wt(n,i,i.pendingProps.children,o),i.child;case 10:return c=i.pendingProps,ka(i,i.type,c.value),wt(n,i,c.children,o),i.child;case 9:return f=i.type._context,c=i.pendingProps.children,fi(i),f=zt(f),c=c(f),i.flags|=1,wt(n,i,c,o),i.child;case 14:return am(n,i,i.type,i.pendingProps,o);case 15:return im(n,i,i.type,i.pendingProps,o);case 19:return hm(n,i,o);case 31:return Y0(n,i,o);case 22:return rm(n,i,o,i.pendingProps);case 24:return fi(i),c=zt(et),n===null?(f=Du(),f===null&&(f=He,p=Nu(),f.pooledCache=p,p.refCount++,p!==null&&(f.pooledCacheLanes|=o),f=p),i.memoizedState={parent:c,cache:f},Lu(i),ka(i,et,f)):((n.lanes&o)!==0&&(Mu(n,i),mo(i,null,null,o),yo()),f=n.memoizedState,p=i.memoizedState,f.parent!==c?(f={parent:c,cache:c},i.memoizedState=f,i.lanes===0&&(i.memoizedState=i.updateQueue.baseState=f),ka(i,et,c)):(c=p.cache,ka(i,et,c),c!==f.cache&&Cu(i,[et],o,!0))),wt(n,i,i.pendingProps.children,o),i.child;case 29:throw i.pendingProps}throw Error(r(156,i.tag))}function Zn(n){n.flags|=4}function wd(n,i,o,c,f){if((i=(n.mode&32)!==0)&&(i=!1),i){if(n.flags|=16777216,(f&335544128)===f)if(n.stateNode.complete)n.flags|=8192;else if(Bm())n.flags|=8192;else throw yi=Zs,Pu}else n.flags&=-16777217}function ym(n,i){if(i.type!=="stylesheet"||(i.state.loading&4)!==0)n.flags&=-16777217;else if(n.flags|=16777216,!Oz(i))if(Bm())n.flags|=8192;else throw yi=Zs,Pu}function uc(n,i){i!==null&&(n.flags|=4),n.flags&16384&&(i=n.tag!==22?Gh():536870912,n.lanes|=i,ur|=i)}function vo(n,i){if(!Ee)switch(n.tailMode){case"hidden":i=n.tail;for(var o=null;i!==null;)i.alternate!==null&&(o=i),i=i.sibling;o===null?n.tail=null:o.sibling=null;break;case"collapsed":o=n.tail;for(var c=null;o!==null;)o.alternate!==null&&(c=o),o=o.sibling;c===null?i||n.tail===null?n.tail=null:n.tail.sibling=null:c.sibling=null}}function Ze(n){var i=n.alternate!==null&&n.alternate.child===n.child,o=0,c=0;if(i)for(var f=n.child;f!==null;)o|=f.lanes|f.childLanes,c|=f.subtreeFlags&65011712,c|=f.flags&65011712,f.return=n,f=f.sibling;else for(f=n.child;f!==null;)o|=f.lanes|f.childLanes,c|=f.subtreeFlags,c|=f.flags,f.return=n,f=f.sibling;return n.subtreeFlags|=c,n.childLanes=o,i}function W0(n,i,o){var c=i.pendingProps;switch(Tu(i),i.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ze(i),null;case 1:return Ze(i),null;case 3:return o=i.stateNode,c=null,n!==null&&(c=n.memoizedState.cache),i.memoizedState.cache!==c&&(i.flags|=2048),qn(et),qe(),o.pendingContext&&(o.context=o.pendingContext,o.pendingContext=null),(n===null||n.child===null)&&(Wi(i)?Zn(i):n===null||n.memoizedState.isDehydrated&&(i.flags&256)===0||(i.flags|=1024,Au())),Ze(i),null;case 26:var f=i.type,p=i.memoizedState;return n===null?(Zn(i),p!==null?(Ze(i),ym(i,p)):(Ze(i),wd(i,f,null,c,o))):p?p!==n.memoizedState?(Zn(i),Ze(i),ym(i,p)):(Ze(i),i.flags&=-16777217):(n=n.memoizedProps,n!==c&&Zn(i),Ze(i),wd(i,f,n,c,o)),null;case 27:if(ti(i),o=ke.current,f=i.type,n!==null&&i.stateNode!=null)n.memoizedProps!==c&&Zn(i);else{if(!c){if(i.stateNode===null)throw Error(r(166));return Ze(i),null}n=te.current,Wi(i)?Gp(i):(n=vz(f,c,o),i.stateNode=n,Zn(i))}return Ze(i),null;case 5:if(ti(i),f=i.type,n!==null&&i.stateNode!=null)n.memoizedProps!==c&&Zn(i);else{if(!c){if(i.stateNode===null)throw Error(r(166));return Ze(i),null}if(p=te.current,Wi(i))Gp(i);else{var w=Sc(ke.current);switch(p){case 1:p=w.createElementNS("http://www.w3.org/2000/svg",f);break;case 2:p=w.createElementNS("http://www.w3.org/1998/Math/MathML",f);break;default:switch(f){case"svg":p=w.createElementNS("http://www.w3.org/2000/svg",f);break;case"math":p=w.createElementNS("http://www.w3.org/1998/Math/MathML",f);break;case"script":p=w.createElement("div"),p.innerHTML="<script><\/script>",p=p.removeChild(p.firstChild);break;
vendor: 25,191 bytes, line 9
9case"select":p=typeof c.is=="string"?w.createElement("select",{is:c.is}):w.createElement("select"),c.multiple?p.multiple=!0:c.size&&(p.size=c.size);break;default:p=typeof c.is=="string"?w.createElement(f,{is:c.is}):w.createElement(f)}}p[yt]=i,p[xt]=c;e:for(w=i.child;w!==null;){if(w.tag===5||w.tag===6)p.appendChild(w.stateNode);else if(w.tag!==4&&w.tag!==27&&w.child!==null){w.child.return=w,w=w.child;continue}if(w===i)break e;for(;w.sibling===null;){if(w.return===null||w.return===i)break e;w=w.return}w.sibling.return=w.return,w=w.sibling}i.stateNode=p;e:switch(gt(p,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&&Zn(i)}}return Ze(i),wd(i,i.type,n===null?null:n.memoizedProps,i.pendingProps,o),null;case 6:if(n&&i.stateNode!=null)n.memoizedProps!==c&&Zn(i);else{if(typeof c!="string"&&i.stateNode===null)throw Error(r(166));if(n=ke.current,Wi(i)){if(n=i.stateNode,o=i.memoizedProps,c=null,f=mt,f!==null)switch(f.tag){case 27:case 5:c=f.memoizedProps}n[yt]=i,n=!!(n.nodeValue===o||c!==null&&c.suppressHydrationWarning===!0||dz(n.nodeValue,o)),n||ba(i,!0)}else n=Sc(n).createTextNode(c),n[yt]=i,i.stateNode=n}return Ze(i),null;case 31:if(o=i.memoizedState,n===null||n.memoizedState!==null){if(c=Wi(i),o!==null){if(n===null){if(!c)throw Error(r(318));if(n=i.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(r(557));n[yt]=i}else ui(),(i.flags&128)===0&&(i.memoizedState=null),i.flags|=4;Ze(i),n=!1}else o=Au(),n!==null&&n.memoizedState!==null&&(n.memoizedState.hydrationErrors=o),n=!0;if(!n)return i.flags&256?(Zt(i),i):(Zt(i),null);if((i.flags&128)!==0)throw Error(r(558))}return Ze(i),null;case 13:if(c=i.memoizedState,n===null||n.memoizedState!==null&&n.memoizedState.dehydrated!==null){if(f=Wi(i),c!==null&&c.dehydrated!==null){if(n===null){if(!f)throw Error(r(318));if(f=i.memoizedState,f=f!==null?f.dehydrated:null,!f)throw Error(r(317));f[yt]=i}else ui(),(i.flags&128)===0&&(i.memoizedState=null),i.flags|=4;Ze(i),f=!1}else f=Au(),n!==null&&n.memoizedState!==null&&(n.memoizedState.hydrationErrors=f),f=!0;if(!f)return i.flags&256?(Zt(i),i):(Zt(i),null)}return Zt(i),(i.flags&128)!==0?(i.lanes=o,i):(o=c!==null,n=n!==null&&n.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),p=null,c.memoizedState!==null&&c.memoizedState.cachePool!==null&&(p=c.memoizedState.cachePool.pool),p!==f&&(c.flags|=2048)),o!==n&&o&&(i.child.flags|=8192),uc(i,i.updateQueue),Ze(i),null);case 4:return qe(),n===null&&Id(i.stateNode.containerInfo),Ze(i),null;case 10:return qn(i.type),Ze(i),null;case 19:if(q(Xe),c=i.memoizedState,c===null)return Ze(i),null;if(f=(i.flags&128)!==0,p=c.rendering,p===null)if(f)vo(c,!1);else{if(Fe!==0||n!==null&&(n.flags&128)!==0)for(n=i.child;n!==null;){if(p=Ws(n),p!==null){for(i.flags|=128,vo(c,!1),n=p.updateQueue,i.updateQueue=n,uc(i,n),i.subtreeFlags=0,n=o,o=i.child;o!==null;)qp(o,n),o=o.sibling;return Y(Xe,Xe.current&1|2),Ee&&Bn(i,c.treeForkCount),i.child}n=n.sibling}c.tail!==null&&Bt()>yc&&(i.flags|=128,f=!0,vo(c,!1),i.lanes=4194304)}else{if(!f)if(n=Ws(p),n!==null){if(i.flags|=128,f=!0,n=n.updateQueue,i.updateQueue=n,uc(i,n),vo(c,!0),c.tail===null&&c.tailMode==="hidden"&&!p.alternate&&!Ee)return Ze(i),null}else 2*Bt()-c.renderingStartTime>yc&&o!==536870912&&(i.flags|=128,f=!0,vo(c,!1),i.lanes=4194304);c.isBackwards?(p.sibling=i.child,i.child=p):(n=c.last,n!==null?n.sibling=p:i.child=p,c.last=p)}return c.tail!==null?(n=c.tail,c.rendering=n,c.tail=n.sibling,c.renderingStartTime=Bt(),n.sibling=null,o=Xe.current,Y(Xe,f?o&1|2:o&1),Ee&&Bn(i,c.treeForkCount),n):(Ze(i),null);case 22:case 23:return Zt(i),Bu(),c=i.memoizedState!==null,n!==null?n.memoizedState!==null!==c&&(i.flags|=8192):c&&(i.flags|=8192),c?(o&536870912)!==0&&(i.flags&128)===0&&(Ze(i),i.subtreeFlags&6&&(i.flags|=8192)):Ze(i),o=i.updateQueue,o!==null&&uc(i,o.retryQueue),o=null,n!==null&&n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(o=n.memoizedState.cachePool.pool),c=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(c=i.memoizedState.cachePool.pool),c!==o&&(i.flags|=2048),n!==null&&q(hi),null;case 24:return o=null,n!==null&&(o=n.memoizedState.cache),i.memoizedState.cache!==o&&(i.flags|=2048),qn(et),Ze(i),null;case 25:return null;case 30:return null}throw Error(r(156,i.tag))}function X0(n,i){switch(Tu(i),i.tag){case 1:return n=i.flags,n&65536?(i.flags=n&-65537|128,i):null;case 3:return qn(et),qe(),n=i.flags,(n&65536)!==0&&(n&128)===0?(i.flags=n&-65537|128,i):null;case 26:case 27:case 5:return ti(i),null;case 31:if(i.memoizedState!==null){if(Zt(i),i.alternate===null)throw Error(r(340));ui()}return n=i.flags,n&65536?(i.flags=n&-65537|128,i):null;case 13:if(Zt(i),n=i.memoizedState,n!==null&&n.dehydrated!==null){if(i.alternate===null)throw Error(r(340));ui()}return n=i.flags,n&65536?(i.flags=n&-65537|128,i):null;case 19:return q(Xe),null;case 4:return qe(),null;case 10:return qn(i.type),null;case 22:case 23:return Zt(i),Bu(),n!==null&&q(hi),n=i.flags,n&65536?(i.flags=n&-65537|128,i):null;case 24:return qn(et),null;case 25:return null;default:return null}}function mm(n,i){switch(Tu(i),i.tag){case 3:qn(et),qe();break;case 26:case 27:case 5:ti(i);break;case 4:qe();break;case 31:i.memoizedState!==null&&Zt(i);break;case 13:Zt(i);break;case 19:q(Xe);break;case 10:qn(i.type);break;case 22:case 23:Zt(i),Bu(),n!==null&&q(hi);break;case 24:qn(et)}}function jo(n,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&n)===n){c=void 0;var p=o.create,w=o.inst;c=p(),w.destroy=c}o=o.next}while(o!==f)}}catch(k){Le(i,i.return,k)}}function Ea(n,i,o){try{var c=i.updateQueue,f=c!==null?c.lastEffect:null;if(f!==null){var p=f.next;c=p;do{if((c.tag&n)===n){var w=c.inst,k=w.destroy;if(k!==void 0){w.destroy=void 0,f=i;var S=o,D=k;try{D()}catch(B){Le(f,S,B)}}}c=c.next}while(c!==p)}}catch(B){Le(i,i.return,B)}}function zm(n){var i=n.updateQueue;if(i!==null){var o=n.stateNode;try{sy(i,o)}catch(c){Le(n,n.return,c)}}}function wm(n,i,o){o.props=wi(n.type,n.memoizedProps),o.state=n.memoizedState;try{o.componentWillUnmount()}catch(c){Le(n,i,c)}}function _o(n,i){try{var o=n.ref;if(o!==null){switch(n.tag){case 26:case 27:case 5:var c=n.stateNode;break;case 30:c=n.stateNode;break;default:c=n.stateNode}typeof o=="function"?n.refCleanup=o(c):o.current=c}}catch(f){Le(n,i,f)}}function En(n,i){var o=n.ref,c=n.refCleanup;if(o!==null)if(typeof c=="function")try{c()}catch(f){Le(n,i,f)}finally{n.refCleanup=null,n=n.alternate,n!=null&&(n.refCleanup=null)}else if(typeof o=="function")try{o(null)}catch(f){Le(n,i,f)}else o.current=null}function gm(n){var i=n.type,o=n.memoizedProps,c=n.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){Le(n,n.return,f)}}function gd(n,i,o){try{var c=n.stateNode;bj(c,n.type,o,i),c[xt]=i}catch(f){Le(n,n.return,f)}}function bm(n){return n.tag===5||n.tag===3||n.tag===26||n.tag===27&&Da(n.type)||n.tag===4}function bd(n){e:for(;;){for(;n.sibling===null;){if(n.return===null||bm(n.return))return null;n=n.return}for(n.sibling.return=n.return,n=n.sibling;n.tag!==5&&n.tag!==6&&n.tag!==18;){if(n.tag===27&&Da(n.type)||n.flags&2||n.child===null||n.tag===4)continue e;n.child.return=n,n=n.child}if(!(n.flags&2))return n.stateNode}}function kd(n,i,o){var c=n.tag;if(c===5||c===6)n=n.stateNode,i?(o.nodeType===9?o.body:o.nodeName==="HTML"?o.ownerDocument.body:o).insertBefore(n,i):(i=o.nodeType===9?o.body:o.nodeName==="HTML"?o.ownerDocument.body:o,i.appendChild(n),o=o._reactRootContainer,o!=null||i.onclick!==null||(i.onclick=Un));else if(c!==4&&(c===27&&Da(n.type)&&(o=n.stateNode,i=null),n=n.child,n!==null))for(kd(n,i,o),n=n.sibling;n!==null;)kd(n,i,o),n=n.sibling}function dc(n,i,o){var c=n.tag;if(c===5||c===6)n=n.stateNode,i?o.insertBefore(n,i):o.appendChild(n);else if(c!==4&&(c===27&&Da(n.type)&&(o=n.stateNode),n=n.child,n!==null))for(dc(n,i,o),n=n.sibling;n!==null;)dc(n,i,o),n=n.sibling}function km(n){var i=n.stateNode,o=n.memoizedProps;try{for(var c=n.type,f=i.attributes;f.length;)i.removeAttributeNode(f[0]);gt(i,c,o),i[yt]=n,i[xt]=o}catch(p){Le(n,n.return,p)}}var Gn=!1,at=!1,vd=!1,vm=typeof WeakSet=="function"?WeakSet:Set,ut=null;function Q0(n,i){if(n=n.containerInfo,qd=Nc,n=Dp(n),yu(n)){if("selectionStart"in n)var o={start:n.selectionStart,end:n.selectionEnd};else e:{o=(o=n.ownerDocument)&&o.defaultView||window;var c=o.getSelection&&o.getSelection();if(c&&c.rangeCount!==0){o=c.anchorNode;var f=c.anchorOffset,p=c.focusNode;c=c.focusOffset;try{o.nodeType,p.nodeType}catch{o=null;break e}var w=0,k=-1,S=-1,D=0,B=0,K=n,P=null;t:for(;;){for(var U;K!==o||f!==0&&K.nodeType!==3||(k=w+f),K!==p||c!==0&&K.nodeType!==3||(S=w+c),K.nodeType===3&&(w+=K.nodeValue.length),(U=K.firstChild)!==null;)P=K,K=U;for(;;){if(K===n)break t;if(P===o&&++D===f&&(k=w),P===p&&++B===c&&(S=w),(U=K.nextSibling)!==null)break;K=P,P=K.parentNode}K=U}o=k===-1||S===-1?null:{start:k,end:S}}else o=null}o=o||{start:0,end:0}}else o=null;for(Kd={focusedElem:n,selectionRange:o},Nc=!1,ut=i;ut!==null;)if(i=ut,n=i.child,(i.subtreeFlags&1028)!==0&&n!==null)n.return=i,ut=n;else for(;ut!==null;){switch(i=ut,p=i.alternate,n=i.flags,i.tag){case 0:if((n&4)!==0&&(n=i.updateQueue,n=n!==null?n.events:null,n!==null))for(o=0;o<n.length;o++)f=n[o],f.ref.impl=f.nextImpl;break;case 11:case 15:break;case 1:if((n&1024)!==0&&p!==null){n=void 0,o=i,f=p.memoizedProps,p=p.memoizedState,c=o.stateNode;try{var ee=wi(o.type,f);n=c.getSnapshotBeforeUpdate(ee,p),c.__reactInternalSnapshotBeforeUpdate=n}catch(ue){Le(o,o.return,ue)}}break;case 3:if((n&1024)!==0){if(n=i.stateNode.containerInfo,o=n.nodeType,o===9)Zd(n);else if(o===1)switch(n.nodeName){case"HEAD":case"HTML":case"BODY":Zd(n);break;default:n.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((n&1024)!==0)throw Error(r(163))}if(n=i.sibling,n!==null){n.return=i.return,ut=n;break}ut=i.return}}function jm(n,i,o){var c=o.flags;switch(o.tag){case 0:case 11:case 15:Fn(n,o),c&4&&jo(5,o);break;case 1:if(Fn(n,o),c&4)if(n=o.stateNode,i===null)try{n.componentDidMount()}catch(w){Le(o,o.return,w)}else{var f=wi(o.type,i.memoizedProps);i=i.memoizedState;try{n.componentDidUpdate(f,i,n.__reactInternalSnapshotBeforeUpdate)}catch(w){Le(o,o.return,w)}}c&64&&zm(o),c&512&&_o(o,o.return);break;case 3:if(Fn(n,o),c&64&&(n=o.updateQueue,n!==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{sy(n,i)}catch(w){Le(o,o.return,w)}}break;case 27:i===null&&c&4&&km(o);case 26:case 5:Fn(n,o),i===null&&c&4&&gm(o),c&512&&_o(o,o.return);break;case 12:Fn(n,o);break;case 31:Fn(n,o),c&4&&Tm(n,o);break;case 13:Fn(n,o),c&4&&Em(n,o),c&64&&(n=o.memoizedState,n!==null&&(n=n.dehydrated,n!==null&&(o=cj.bind(null,o),Aj(n,o))));break;case 22:if(c=o.memoizedState!==null||Gn,!c){i=i!==null&&i.memoizedState!==null||at,f=Gn;var p=at;Gn=c,(at=i)&&!p?Wn(n,o,(o.subtreeFlags&8772)!==0):Fn(n,o),Gn=f,at=p}break;case 30:break;default:Fn(n,o)}}function _m(n){var i=n.alternate;i!==null&&(n.alternate=null,_m(i)),n.child=null,n.deletions=null,n.sibling=null,n.tag===5&&(i=n.stateNode,i!==null&&Xl(i)),n.stateNode=null,n.return=null,n.dependencies=null,n.memoizedProps=null,n.memoizedState=null,n.pendingProps=null,n.stateNode=null,n.updateQueue=null}var Ge=null,Pt=!1;function Yn(n,i,o){for(o=o.child;o!==null;)Sm(n,i,o),o=o.sibling}function Sm(n,i,o){if(Ht&&typeof Ht.onCommitFiberUnmount=="function")try{Ht.onCommitFiberUnmount(Zr,o)}catch{}switch(o.tag){case 26:at||En(o,i),Yn(n,i,o),o.memoizedState?o.memoizedState.count--:o.stateNode&&(o=o.stateNode,o.parentNode.removeChild(o));break;case 27:at||En(o,i);var c=Ge,f=Pt;Da(o.type)&&(Ge=o.stateNode,Pt=!1),Yn(n,i,o),xo(o.stateNode),Ge=c,Pt=f;break;case 5:at||En(o,i);case 6:if(c=Ge,f=Pt,Ge=null,Yn(n,i,o),Ge=c,Pt=f,Ge!==null)if(Pt)try{(Ge.nodeType===9?Ge.body:Ge.nodeName==="HTML"?Ge.ownerDocument.body:Ge).removeChild(o.stateNode)}catch(p){Le(o,i,p)}else try{Ge.removeChild(o.stateNode)}catch(p){Le(o,i,p)}break;case 18:Ge!==null&&(Pt?(n=Ge,zz(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,o.stateNode),wr(n)):zz(Ge,o.stateNode));break;case 4:c=Ge,f=Pt,Ge=o.stateNode.containerInfo,Pt=!0,Yn(n,i,o),Ge=c,Pt=f;break;case 0:case 11:case 14:case 15:Ea(2,o,i),at||Ea(4,o,i),Yn(n,i,o);break;case 1:at||(En(o,i),c=o.stateNode,typeof c.componentWillUnmount=="function"&&wm(o,i,c)),Yn(n,i,o);break;case 21:Yn(n,i,o);break;case 22:at=(c=at)||o.memoizedState!==null,Yn(n,i,o),at=c;break;default:Yn(n,i,o)}}function Tm(n,i){if(i.memoizedState===null&&(n=i.alternate,n!==null&&(n=n.memoizedState,n!==null))){n=n.dehydrated;try{wr(n)}catch(o){Le(i,i.return,o)}}}function Em(n,i){if(i.memoizedState===null&&(n=i.alternate,n!==null&&(n=n.memoizedState,n!==null&&(n=n.dehydrated,n!==null))))try{wr(n)}catch(o){Le(i,i.return,o)}}function ej(n){switch(n.tag){case 31:case 13:case 19:var i=n.stateNode;return i===null&&(i=n.stateNode=new vm),i;case 22:return n=n.stateNode,i=n._retryCache,i===null&&(i=n._retryCache=new vm),i;default:throw Error(r(435,n.tag))}}function fc(n,i){var o=ej(n);i.forEach(function(c){if(!o.has(c)){o.add(c);var f=lj.bind(null,n,c);c.then(f,f)}})}function Lt(n,i){var o=i.deletions;if(o!==null)for(var c=0;c<o.length;c++){var f=o[c],p=n,w=i,k=w;e:for(;k!==null;){switch(k.tag){case 27:if(Da(k.type)){Ge=k.stateNode,Pt=!1;break e}break;case 5:Ge=k.stateNode,Pt=!1;break e;case 3:case 4:Ge=k.stateNode.containerInfo,Pt=!0;break e}k=k.return}if(Ge===null)throw Error(r(160));Sm(p,w,f),Ge=null,Pt=!1,p=f.alternate,p!==null&&(p.return=null),f.return=null}if(i.subtreeFlags&13886)for(i=i.child;i!==null;)Am(i,n),i=i.sibling}var hn=null;function Am(n,i){var o=n.alternate,c=n.flags;switch(n.tag){case 0:case 11:case 14:case 15:Lt(i,n),Mt(n),c&4&&(Ea(3,n,n.return),jo(3,n),Ea(5,n,n.return));break;case 1:Lt(i,n),Mt(n),c&512&&(at||o===null||En(o,o.return)),c&64&&Gn&&(n=n.updateQueue,n!==null&&(c=n.callbacks,c!==null&&(o=n.shared.hiddenCallbacks,n.shared.hiddenCallbacks=o===null?c:o.concat(c))));break;case 26:var f=hn;if(Lt(i,n),Mt(n),c&512&&(at||o===null||En(o,o.return)),c&4){var p=o!==null?o.memoizedState:null;if(c=n.memoizedState,o===null)if(c===null)if(n.stateNode===null){e:{c=n.type,o=n.memoizedProps,f=f.ownerDocument||f;t:switch(c){case"title":p=f.getElementsByTagName("title")[0],(!p||p[Fr]||p[yt]||p.namespaceURI==="http://www.w3.org/2000/svg"||p.hasAttribute("itemprop"))&&(p=f.createElement(c),f.head.insertBefore(p,f.querySelector("head > title"))),gt(p,c,o),p[yt]=n,lt(p),c=p;break e;case"link":var w=Az("link","href",f).get(c+(o.href||""));if(w){for(var k=0;k<w.length;k++)if(p=w[k],p.getAttribute("href")===(o.href==null||o.href===""?null:o.href)&&p.getAttribute("rel")===(o.rel==null?null:o.rel)&&p.getAttribute("title")===(o.title==null?null:o.title)&&p.getAttribute("crossorigin")===(o.crossOrigin==null?null:o.crossOrigin)){w.splice(k,1);break t}}p=f.createElement(c),gt(p,c,o),f.head.appendChild(p);break;case"meta":if(w=Az("meta","content",f).get(c+(o.content||""))){for(k=0;k<w.length;k++)if(p=w[k],p.getAttribute("content")===(o.content==null?null:""+o.content)&&p.getAttribute("name")===(o.name==null?null:o.name)&&p.getAttribute("property")===(o.property==null?null:o.property)&&p.getAttribute("http-equiv")===(o.httpEquiv==null?null:o.httpEquiv)&&p.getAttribute("charset")===(o.charSet==null?null:o.charSet)){w.splice(k,1);break t}}p=f.createElement(c),gt(p,c,o),f.head.appendChild(p);break;default:throw Error(r(468,c))}p[yt]=n,lt(p),c=p}n.stateNode=c}else Rz(f,n.type,n.stateNode);else n.stateNode=Ez(f,c,n.memoizedProps);else p!==c?(p===null?o.stateNode!==null&&(o=o.stateNode,o.parentNode.removeChild(o)):p.count--,c===null?Rz(f,n.type,n.stateNode):Ez(f,c,n.memoizedProps)):c===null&&n.stateNode!==null&&gd(n,n.memoizedProps,o.memoizedProps)}break;case 27:Lt(i,n),Mt(n),c&512&&(at||o===null||En(o,o.return)),o!==null&&c&4&&gd(n,n.memoizedProps,o.memoizedProps);break;case 5:if(Lt(i,n),Mt(n),c&512&&(at||o===null||En(o,o.return)),n.flags&32){f=n.stateNode;try{Bi(f,"")}catch(ee){Le(n,n.return,ee)}}c&4&&n.stateNode!=null&&(f=n.memoizedProps,gd(n,f,o!==null?o.memoizedProps:f)),c&1024&&(vd=!0);break;case 6:if(Lt(i,n),Mt(n),c&4){if(n.stateNode===null)throw Error(r(162));c=n.memoizedProps,o=n.stateNode;try{o.nodeValue=c}catch(ee){Le(n,n.return,ee)}}break;case 3:if(Ac=null,f=hn,hn=Tc(i.containerInfo),Lt(i,n),hn=f,Mt(n),c&4&&o!==null&&o.memoizedState.isDehydrated)try{wr(i.containerInfo)}catch(ee){Le(n,n.return,ee)}vd&&(vd=!1,Rm(n));break;case 4:c=hn,hn=Tc(n.stateNode.containerInfo),Lt(i,n),Mt(n),hn=c;break;case 12:Lt(i,n),Mt(n);break;case 31:Lt(i,n),Mt(n),c&4&&(c=n.updateQueue,c!==null&&(n.updateQueue=null,fc(n,c)));break;case 13:Lt(i,n),Mt(n),n.child.flags&8192&&n.memoizedState!==null!=(o!==null&&o.memoizedState!==null)&&(pc=Bt()),c&4&&(c=n.updateQueue,c!==null&&(n.updateQueue=null,fc(n,c)));break;case 22:f=n.memoizedState!==null;var S=o!==null&&o.memoizedState!==null,D=Gn,B=at;if(Gn=D||f,at=B||S,Lt(i,n),at=B,Gn=D,Mt(n),c&8192)e:for(i=n.stateNode,i._visibility=f?i._visibility&-2:i._visibility|1,f&&(o===null||S||Gn||at||gi(n)),o=null,i=n;;){if(i.tag===5||i.tag===26){if(o===null){S=o=i;try{if(p=S.stateNode,f)w=p.style,typeof w.setProperty=="function"?w.setProperty("display","none","important"):w.display="none";else{k=S.stateNode;var K=S.memoizedProps.style,P=K!=null&&K.hasOwnProperty("display")?K.display:null;k.style.display=P==null||typeof P=="boolean"?"":(""+P).trim()}}catch(ee){Le(S,S.return,ee)}}}else if(i.tag===6){if(o===null){S=i;try{S.stateNode.nodeValue=f?"":S.memoizedProps}catch(ee){Le(S,S.return,ee)}}}else if(i.tag===18){if(o===null){S=i;try{var U=S.stateNode;f?wz(U,!0):wz(S.stateNode,!1)}catch(ee){Le(S,S.return,ee)}}}else if((i.tag!==22&&i.tag!==23||i.memoizedState===null||i===n)&&i.child!==null){i.child.return=i,i=i.child;continue}if(i===n)break e;for(;i.sibling===null;){if(i.return===null||i.return===n)break e;o===i&&(o=null),i=i.return}o===i&&(o=null),i.sibling.return=i.return,i=i.sibling}c&4&&(c=n.updateQueue,c!==null&&(o=c.retryQueue,o!==null&&(c.retryQueue=null,fc(n,o))));break;case 19:Lt(i,n),Mt(n),c&4&&(c=n.updateQueue,c!==null&&(n.updateQueue=null,fc(n,c)));break;case 30:break;case 21:break;default:Lt(i,n),Mt(n)}}function Mt(n){var i=n.flags;if(i&2){try{for(var o,c=n.return;c!==null;){if(bm(c)){o=c;break}c=c.return}if(o==null)throw Error(r(160));switch(o.tag){case 27:var f=o.stateNode,p=bd(n);dc(n,p,f);break;case 5:var w=o.stateNode;o.flags&32&&(Bi(w,""),o.flags&=-33);var k=bd(n);dc(n,k,w);break;case 3:case 4:var S=o.stateNode.containerInfo,D=bd(n);kd(n,D,S);break;default:throw Error(r(161))}}catch(B){Le(n,n.return,B)}n.flags&=-3}i&4096&&(n.flags&=-4097)}function Rm(n){if(n.subtreeFlags&1024)for(n=n.child;n!==null;){var i=n;Rm(i),i.tag===5&&i.flags&1024&&i.stateNode.reset(),n=n.sibling}}function Fn(n,i){if(i.subtreeFlags&8772)for(i=i.child;i!==null;)jm(n,i.alternate,i),i=i.sibling}function gi(n){for(n=n.child;n!==null;){var i=n;switch(i.tag){case 0:case 11:case 14:case 15:Ea(4,i,i.return),gi(i);break;case 1:En(i,i.return);var o=i.stateNode;typeof o.componentWillUnmount=="function"&&wm(i,i.return,o),gi(i);break;case 27:xo(i.stateNode);case 26:case 5:En(i,i.return),gi(i);break;case 22:i.memoizedState===null&&gi(i);break;case 30:gi(i);break;default:gi(i)}n=n.sibling}}function Wn(n,i,o){for(o=o&&(i.subtreeFlags&8772)!==0,i=i.child;i!==null;){var c=i.alternate,f=n,p=i,w=p.flags;switch(p.tag){case 0:case 11:case 15:Wn(f,p,o),jo(4,p);break;case 1:if(Wn(f,p,o),c=p,f=c.stateNode,typeof f.componentDidMount=="function")try{f.componentDidMount()}catch(D){Le(c,c.return,D)}if(c=p,f=c.updateQueue,f!==null){var k=c.stateNode;try{var S=f.shared.hiddenCallbacks;if(S!==null)for(f.shared.hiddenCallbacks=null,f=0;f<S.length;f++)oy(S[f],k)}catch(D){Le(c,c.return,D)}}o&&w&64&&zm(p),_o(p,p.return);break;case 27:km(p);case 26:case 5:Wn(f,p,o),o&&c===null&&w&4&&gm(p),_o(p,p.return);break;case 12:Wn(f,p,o);break;case 31:Wn(f,p,o),o&&w&4&&Tm(f,p);break;case 13:Wn(f,p,o),o&&w&4&&Em(f,p);break;case 22:p.memoizedState===null&&Wn(f,p,o),_o(p,p.return);break;case 30:break;default:Wn(f,p,o)}i=i.sibling}}function jd(n,i){var o=null;n!==null&&n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(o=n.memoizedState.cachePool.pool),n=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(n=i.memoizedState.cachePool.pool),n!==o&&(n!=null&&n.refCount++,o!=null&&lo(o))}function _d(n,i){n=null,i.alternate!==null&&(n=i.alternate.memoizedState.cache),i=i.memoizedState.cache,i!==n&&(i.refCount++,n!=null&&lo(n))}function pn(n,i,o,c){if(i.subtreeFlags&10256)for(i=i.child;i!==null;)Om(n,i,o,c),i=i.sibling}function Om(n,i,o,c){var f=i.flags;switch(i.tag){case 0:case 11:case 15:pn(n,i,o,c),f&2048&&jo(9,i);break;case 1:pn(n,i,o,c);break;case 3:pn(n,i,o,c),f&2048&&(n=null,i.alternate!==null&&(n=i.alternate.memoizedState.cache),i=i.memoizedState.cache,i!==n&&(i.refCount++,n!=null&&lo(n)));break;case 12:if(f&2048){pn(n,i,o,c),n=i.stateNode;try{var p=i.memoizedProps,w=p.id,k=p.onPostCommit;typeof k=="function"&&k(w,i.alternate===null?"mount":"update",n.passiveEffectDuration,-0)}catch(S){Le(i,i.return,S)}}else pn(n,i,o,c);break;case 31:pn(n,i,o,c);break;case 13:pn(n,i,o,c);break;case 23:break;case 22:p=i.stateNode,w=i.alternate,i.memoizedState!==null?p._visibility&2?pn(n,i,o,c):So(n,i):p._visibility&2?pn(n,i,o,c):(p._visibility|=2,sr(n,i,o,c,(i.subtreeFlags&10256)!==0||!1)),f&2048&&jd(w,i);break;case 24:pn(n,i,o,c),f&2048&&_d(i.alternate,i);break;default:pn(n,i,o,c)}}function sr(n,i,o,c,f){for(f=f&&((i.subtreeFlags&10256)!==0||!1),i=i.child;i!==null;){var p=n,w=i,k=o,S=c,D=w.flags;switch(w.tag){case 0:case 11:case 15:sr(p,w,k,S,f),jo(8,w);break;case 23:break;case 22:var B=w.stateNode;w.memoizedState!==null?B._visibility&2?sr(p,w,k,S,f):So(p,w):(B._visibility|=2,sr(p,w,k,S,f)),f&&D&2048&&jd(w.alternate,w);break;case 24:sr(p,w,k,S,f),f&&D&2048&&_d(w.alternate,w);break;default:sr(p,w,k,S,f)}i=i.sibling}}function So(n,i){if(i.subtreeFlags&10256)for(i=i.child;i!==null;){var o=n,c=i,f=c.flags;switch(c.tag){case 22:So(o,c),f&2048&&jd(c.alternate,c);break;case 24:So(o,c),f&2048&&_d(c.alternate,c);break;default:So(o,c)}i=i.sibling}}var To=8192;function cr(n,i,o){if(n.subtreeFlags&To)for(n=n.child;n!==null;)Cm(n,i,o),n=n.sibling}function Cm(n,i,o){switch(n.tag){case 26:cr(n,i,o),n.flags&To&&n.memoizedState!==null&&Ij(o,hn,n.memoizedState,n.memoizedProps);break;case 5:cr(n,i,o);break;case 3:case 4:var c=hn;hn=Tc(n.stateNode.containerInfo),cr(n,i,o),hn=c;break;case 22:n.memoizedState===null&&(c=n.alternate,c!==null&&c.memoizedState!==null?(c=To,To=16777216,cr(n,i,o),To=c):cr(n,i,o));break;default:cr(n,i,o)}}function Nm(n){var i=n.alternate;if(i!==null&&(n=i.child,n!==null)){i.child=null;do i=n.sibling,n.sibling=null,n=i;while(n!==null)}}function Eo(n){var i=n.deletions;if((n.flags&16)!==0){if(i!==null)for(var o=0;o<i.length;o++){var c=i[o];ut=c,Dm(c,n)}Nm(n)}if(n.subtreeFlags&10256)for(n=n.child;n!==null;)xm(n),n=n.sibling}function xm(n){switch(n.tag){case 0:case 11:case 15:Eo(n),n.flags&2048&&Ea(9,n,n.return);break;case 3:Eo(n);break;case 12:Eo(n);break;case 22:var i=n.stateNode;n.memoizedState!==null&&i._visibility&2&&(n.return===null||n.return.tag!==13)?(i._visibility&=-3,hc(n)):Eo(n);break;default:Eo(n)}}function hc(n){var i=n.deletions;if((n.flags&16)!==0){if(i!==null)for(var o=0;o<i.length;o++){var c=i[o];ut=c,Dm(c,n)}Nm(n)}for(n=n.child;n!==null;){switch(i=n,i.tag){case 0:case 11:case 15:Ea(8,i,i.return),hc(i);break;case 22:o=i.stateNode,o._visibility&2&&(o._visibility&=-3,hc(i));break;default:hc(i)}n=n.sibling}}function Dm(n,i){for(;ut!==null;){var o=ut;switch(o.tag){case 0:case 11:case 15:Ea(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:lo(o.memoizedState.cache)}if(c=o.child,c!==null)c.return=o,ut=c;else e:for(o=n;ut!==null;){c=ut;var f=c.sibling,p=c.return;if(_m(c),c===o){ut=null;break e}if(f!==null){f.return=p,ut=f;break e}ut=p}}}var tj={getCacheForType:function(n){var i=zt(et),o=i.data.get(n);return o===void 0&&(o=n(),i.data.set(n,o)),o},cacheSignal:function(){return zt(et).controller.signal}},nj=typeof WeakMap=="function"?WeakMap:Map,xe=0,He=null,ve=null,Se=0,Pe=0,Gt=null,Aa=!1,lr=!1,Sd=!1,Xn=0,Fe=0,Ra=0,bi=0,Td=0,Yt=0,ur=0,Ao=null,Ut=null,Ed=!1,pc=0,Pm=0,yc=1/0,mc=null,Oa=null,ot=0,Ca=null,dr=null,Qn=0,Ad=0,Rd=null,Lm=null,Ro=0,Od=null;function Ft(){return(xe&2)!==0&&Se!==0?Se&-Se:L.T!==null?Ld():Xh()}function Mm(){if(Yt===0)if((Se&536870912)===0||Ee){var n=_s;_s<<=1,(_s&3932160)===0&&(_s=262144),Yt=n}else Yt=536870912;return n=Vt.current,n!==null&&(n.flags|=32),Yt}function $t(n,i,o){(n===He&&(Pe===2||Pe===9)||n.cancelPendingCommit!==null)&&(fr(n,0),Na(n,Se,Yt,!1)),Yr(n,o),((xe&2)===0||n!==He)&&(n===He&&((xe&2)===0&&(bi|=o),Fe===4&&Na(n,Se,Yt,!1)),An(n))}function Um(n,i,o){if((xe&6)!==0)throw Error(r(327));var c=!o&&(i&127)===0&&(i&n.expiredLanes)===0||Gr(n,i),f=c?rj(n,i):Nd(n,i,!0),p=c;
vendor: 14,025 bytes, line 9
9do{if(f===0){lr&&!c&&Na(n,i,0,!1);break}else{if(o=n.current.alternate,p&&!aj(o)){f=Nd(n,i,!1),p=!1;continue}if(f===2){if(p=i,n.errorRecoveryDisabledLanes&p)var w=0;else w=n.pendingLanes&-536870913,w=w!==0?w:w&536870912?536870912:0;if(w!==0){i=w;e:{var k=n;f=Ao;var S=k.current.memoizedState.isDehydrated;if(S&&(fr(k,w).flags|=256),w=Nd(k,w,!1),w!==2){if(Sd&&!S){k.errorRecoveryDisabledLanes|=p,bi|=p,f=4;break e}p=Ut,Ut=f,p!==null&&(Ut===null?Ut=p:Ut.push.apply(Ut,p))}f=w}if(p=!1,f!==2)continue}}if(f===1){fr(n,0),Na(n,i,0,!0);break}e:{switch(c=n,p=f,p){case 0:case 1:throw Error(r(345));case 4:if((i&4194048)!==i)break;case 6:Na(c,i,Yt,!Aa);break e;case 2:Ut=null;break;case 3:case 5:break;default:throw Error(r(329))}if((i&62914560)===i&&(f=pc+300-Bt(),10<f)){if(Na(c,i,Yt,!Aa),Ts(c,0,!0)!==0)break e;Qn=i,c.timeoutHandle=yz($m.bind(null,c,o,Ut,mc,Ed,i,Yt,bi,ur,Aa,p,"Throttled",-0,0),f);break e}$m(c,o,Ut,mc,Ed,i,Yt,bi,ur,Aa,p,null,-0,0)}}break}while(!0);An(n)}function $m(n,i,o,c,f,p,w,k,S,D,B,K,P,U){if(n.timeoutHandle=-1,K=i.subtreeFlags,K&8192||(K&16785408)===16785408){K={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Un},Cm(i,p,K);var ee=(p&62914560)===p?pc-Bt():(p&4194048)===p?Pm-Bt():0;if(ee=Bj(K,ee),ee!==null){Qn=p,n.cancelPendingCommit=ee(Zm.bind(null,n,i,p,o,c,f,w,k,S,B,K,null,P,U)),Na(n,p,w,!D);return}}Zm(n,i,p,o,c,f,w,k,S)}function aj(n){for(var i=n;;){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],p=f.getSnapshot;f=f.value;try{if(!Kt(p(),f))return!1}catch{return!1}}if(o=i.child,i.subtreeFlags&16384&&o!==null)o.return=i,i=o;else{if(i===n)break;for(;i.sibling===null;){if(i.return===null||i.return===n)return!0;i=i.return}i.sibling.return=i.return,i=i.sibling}}return!0}function Na(n,i,o,c){i&=~Td,i&=~bi,n.suspendedLanes|=i,n.pingedLanes&=~i,c&&(n.warmLanes|=i),c=n.expirationTimes;for(var f=i;0<f;){var p=31-qt(f),w=1<<p;c[p]=-1,f&=~w}o!==0&&Yh(n,o,i)}function zc(){return(xe&6)===0?(Oo(0),!1):!0}function Cd(){if(ve!==null){if(Pe===0)var n=ve.return;else n=ve,Hn=di=null,Zu(n),nr=null,fo=0,n=ve;for(;n!==null;)mm(n.alternate,n),n=n.return;ve=null}}function fr(n,i){var o=n.timeoutHandle;o!==-1&&(n.timeoutHandle=-1,jj(o)),o=n.cancelPendingCommit,o!==null&&(n.cancelPendingCommit=null,o()),Qn=0,Cd(),He=n,ve=o=In(n.current,null),Se=i,Pe=0,Gt=null,Aa=!1,lr=Gr(n,i),Sd=!1,ur=Yt=Td=bi=Ra=Fe=0,Ut=Ao=null,Ed=!1,(i&8)!==0&&(i|=i&32);var c=n.entangledLanes;if(c!==0)for(n=n.entanglements,c&=i;0<c;){var f=31-qt(c),p=1<<f;i|=n[f],c&=~p}return Xn=i,Us(),o}function Im(n,i){ge=null,L.H=bo,i===tr||i===Vs?(i=ny(),Pe=3):i===Pu?(i=ny(),Pe=4):Pe=i===ld?8:i!==null&&typeof i=="object"&&typeof i.then=="function"?6:1,Gt=i,ve===null&&(Fe=1,oc(n,nn(i,n.current)))}function Bm(){var n=Vt.current;return n===null?!0:(Se&4194048)===Se?sn===null:(Se&62914560)===Se||(Se&536870912)!==0?n===sn:!1}function Hm(){var n=L.H;return L.H=bo,n===null?bo:n}function qm(){var n=L.A;return L.A=tj,n}function wc(){Fe=4,Aa||(Se&4194048)!==Se&&Vt.current!==null||(lr=!0),(Ra&134217727)===0&&(bi&134217727)===0||He===null||Na(He,Se,Yt,!1)}function Nd(n,i,o){var c=xe;xe|=2;var f=Hm(),p=qm();(He!==n||Se!==i)&&(mc=null,fr(n,i)),i=!1;var w=Fe;e:do try{if(Pe!==0&&ve!==null){var k=ve,S=Gt;switch(Pe){case 8:Cd(),w=6;break e;case 3:case 2:case 9:case 6:Vt.current===null&&(i=!0);var D=Pe;if(Pe=0,Gt=null,hr(n,k,S,D),o&&lr){w=0;break e}break;default:D=Pe,Pe=0,Gt=null,hr(n,k,S,D)}}ij(),w=Fe;break}catch(B){Im(n,B)}while(!0);return i&&n.shellSuspendCounter++,Hn=di=null,xe=c,L.H=f,L.A=p,ve===null&&(He=null,Se=0,Us()),w}function ij(){for(;ve!==null;)Km(ve)}function rj(n,i){var o=xe;xe|=2;var c=Hm(),f=qm();He!==n||Se!==i?(mc=null,yc=Bt()+500,fr(n,i)):lr=Gr(n,i);e:do try{if(Pe!==0&&ve!==null){i=ve;var p=Gt;t:switch(Pe){case 1:Pe=0,Gt=null,hr(n,i,p,1);break;case 2:case 9:if(ey(p)){Pe=0,Gt=null,Jm(i);break}i=function(){Pe!==2&&Pe!==9||He!==n||(Pe=7),An(n)},p.then(i,i);break e;case 3:Pe=7;break e;case 4:Pe=5;break e;case 7:ey(p)?(Pe=0,Gt=null,Jm(i)):(Pe=0,Gt=null,hr(n,i,p,7));break;case 5:var w=null;switch(ve.tag){case 26:w=ve.memoizedState;case 5:case 27:var k=ve;if(w?Oz(w):k.stateNode.complete){Pe=0,Gt=null;var S=k.sibling;if(S!==null)ve=S;else{var D=k.return;D!==null?(ve=D,gc(D)):ve=null}break t}}Pe=0,Gt=null,hr(n,i,p,5);break;case 6:Pe=0,Gt=null,hr(n,i,p,6);break;case 8:Cd(),Fe=6;break e;default:throw Error(r(462))}}oj();break}catch(B){Im(n,B)}while(!0);return Hn=di=null,L.H=c,L.A=f,xe=o,ve!==null?0:(He=null,Se=0,Us(),Fe)}function oj(){for(;ve!==null&&!Rv();)Km(ve)}function Km(n){var i=pm(n.alternate,n,Xn);n.memoizedProps=n.pendingProps,i===null?gc(n):ve=i}function Jm(n){var i=n,o=i.alternate;switch(i.tag){case 15:case 0:i=cm(o,i,i.pendingProps,i.type,void 0,Se);break;case 11:i=cm(o,i,i.pendingProps,i.type.render,i.ref,Se);break;case 5:Zu(i);default:mm(o,i),i=ve=qp(i,Xn),i=pm(o,i,Xn)}n.memoizedProps=n.pendingProps,i===null?gc(n):ve=i}function hr(n,i,o,c){Hn=di=null,Zu(i),nr=null,fo=0;var f=i.return;try{if(G0(n,f,i,o,Se)){Fe=1,oc(n,nn(o,n.current)),ve=null;return}}catch(p){if(f!==null)throw ve=f,p;Fe=1,oc(n,nn(o,n.current)),ve=null;return}i.flags&32768?(Ee||c===1?n=!0:lr||(Se&536870912)!==0?n=!1:(Aa=n=!0,(c===2||c===9||c===3||c===6)&&(c=Vt.current,c!==null&&c.tag===13&&(c.flags|=16384))),Vm(i,n)):gc(i)}function gc(n){var i=n;do{if((i.flags&32768)!==0){Vm(i,Aa);return}n=i.return;var o=W0(i.alternate,i,Xn);if(o!==null){ve=o;return}if(i=i.sibling,i!==null){ve=i;return}ve=i=n}while(i!==null);Fe===0&&(Fe=5)}function Vm(n,i){do{var o=X0(n.alternate,n);if(o!==null){o.flags&=32767,ve=o;return}if(o=n.return,o!==null&&(o.flags|=32768,o.subtreeFlags=0,o.deletions=null),!i&&(n=n.sibling,n!==null)){ve=n;return}ve=n=o}while(n!==null);Fe=6,ve=null}function Zm(n,i,o,c,f,p,w,k,S){n.cancelPendingCommit=null;do bc();while(ot!==0);if((xe&6)!==0)throw Error(r(327));if(i!==null){if(i===n.current)throw Error(r(177));if(p=i.lanes|i.childLanes,p|=bu,$v(n,o,p,w,k,S),n===He&&(ve=He=null,Se=0),dr=i,Ca=n,Qn=o,Ad=p,Rd=f,Lm=c,(i.subtreeFlags&10256)!==0||(i.flags&10256)!==0?(n.callbackNode=null,n.callbackPriority=0,uj(vs,function(){return Xm(),null})):(n.callbackNode=null,n.callbackPriority=0),c=(i.flags&13878)!==0,(i.subtreeFlags&13878)!==0||c){c=L.T,L.T=null,f=F.p,F.p=2,w=xe,xe|=4;try{Q0(n,i,o)}finally{xe=w,F.p=f,L.T=c}}ot=1,Gm(),Ym(),Fm()}}function Gm(){if(ot===1){ot=0;var n=Ca,i=dr,o=(i.flags&13878)!==0;if((i.subtreeFlags&13878)!==0||o){o=L.T,L.T=null;var c=F.p;F.p=2;var f=xe;xe|=4;try{Am(i,n);var p=Kd,w=Dp(n.containerInfo),k=p.focusedElem,S=p.selectionRange;if(w!==k&&k&&k.ownerDocument&&xp(k.ownerDocument.documentElement,k)){if(S!==null&&yu(k)){var D=S.start,B=S.end;if(B===void 0&&(B=D),"selectionStart"in k)k.selectionStart=D,k.selectionEnd=Math.min(B,k.value.length);else{var K=k.ownerDocument||document,P=K&&K.defaultView||window;if(P.getSelection){var U=P.getSelection(),ee=k.textContent.length,ue=Math.min(S.start,ee),$e=S.end===void 0?ue:Math.min(S.end,ee);!U.extend&&ue>$e&&(w=$e,$e=ue,ue=w);var C=Np(k,ue),E=Np(k,$e);if(C&&E&&(U.rangeCount!==1||U.anchorNode!==C.node||U.anchorOffset!==C.offset||U.focusNode!==E.node||U.focusOffset!==E.offset)){var x=K.createRange();x.setStart(C.node,C.offset),U.removeAllRanges(),ue>$e?(U.addRange(x),U.extend(E.node,E.offset)):(x.setEnd(E.node,E.offset),U.addRange(x))}}}}for(K=[],U=k;U=U.parentNode;)U.nodeType===1&&K.push({element:U,left:U.scrollLeft,top:U.scrollTop});for(typeof k.focus=="function"&&k.focus(),k=0;k<K.length;k++){var H=K[k];H.element.scrollLeft=H.left,H.element.scrollTop=H.top}}Nc=!!qd,Kd=qd=null}finally{xe=f,F.p=c,L.T=o}}n.current=i,ot=2}}function Ym(){if(ot===2){ot=0;var n=Ca,i=dr,o=(i.flags&8772)!==0;if((i.subtreeFlags&8772)!==0||o){o=L.T,L.T=null;var c=F.p;F.p=2;var f=xe;xe|=4;try{jm(n,i.alternate,i)}finally{xe=f,F.p=c,L.T=o}}ot=3}}function Fm(){if(ot===4||ot===3){ot=0,Ov();var n=Ca,i=dr,o=Qn,c=Lm;(i.subtreeFlags&10256)!==0||(i.flags&10256)!==0?ot=5:(ot=0,dr=Ca=null,Wm(n,n.pendingLanes));var f=n.pendingLanes;if(f===0&&(Oa=null),Fl(o),i=i.stateNode,Ht&&typeof Ht.onCommitFiberRoot=="function")try{Ht.onCommitFiberRoot(Zr,i,void 0,(i.current.flags&128)===128)}catch{}if(c!==null){i=L.T,f=F.p,F.p=2,L.T=null;try{for(var p=n.onRecoverableError,w=0;w<c.length;w++){var k=c[w];p(k.value,{componentStack:k.stack})}}finally{L.T=i,F.p=f}}(Qn&3)!==0&&bc(),An(n),f=n.pendingLanes,(o&261930)!==0&&(f&42)!==0?n===Od?Ro++:(Ro=0,Od=n):Ro=0,Oo(0)}}function Wm(n,i){(n.pooledCacheLanes&=i)===0&&(i=n.pooledCache,i!=null&&(n.pooledCache=null,lo(i)))}function bc(){return Gm(),Ym(),Fm(),Xm()}function Xm(){if(ot!==5)return!1;var n=Ca,i=Ad;Ad=0;var o=Fl(Qn),c=L.T,f=F.p;try{F.p=32>o?32:o,L.T=null,o=Rd,Rd=null;var p=Ca,w=Qn;if(ot=0,dr=Ca=null,Qn=0,(xe&6)!==0)throw Error(r(331));var k=xe;if(xe|=4,xm(p.current),Om(p,p.current,w,o),xe=k,Oo(0,!1),Ht&&typeof Ht.onPostCommitFiberRoot=="function")try{Ht.onPostCommitFiberRoot(Zr,p)}catch{}return!0}finally{F.p=f,L.T=c,Wm(n,i)}}function Qm(n,i,o){i=nn(o,i),i=cd(n.stateNode,i,2),n=_a(n,i,2),n!==null&&(Yr(n,2),An(n))}function Le(n,i,o){if(n.tag===3)Qm(n,n,o);else for(;i!==null;){if(i.tag===3){Qm(i,n,o);break}else if(i.tag===1){var c=i.stateNode;if(typeof i.type.getDerivedStateFromError=="function"||typeof c.componentDidCatch=="function"&&(Oa===null||!Oa.has(c))){n=nn(o,n),o=em(2),c=_a(i,o,2),c!==null&&(tm(o,c,i,n),Yr(c,2),An(c));break}}i=i.return}}function xd(n,i,o){var c=n.pingCache;if(c===null){c=n.pingCache=new nj;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)||(Sd=!0,f.add(o),n=sj.bind(null,n,i,o),i.then(n,n))}function sj(n,i,o){var c=n.pingCache;c!==null&&c.delete(i),n.pingedLanes|=n.suspendedLanes&o,n.warmLanes&=~o,He===n&&(Se&o)===o&&(Fe===4||Fe===3&&(Se&62914560)===Se&&300>Bt()-pc?(xe&2)===0&&fr(n,0):Td|=o,ur===Se&&(ur=0)),An(n)}function ez(n,i){i===0&&(i=Gh()),n=ci(n,i),n!==null&&(Yr(n,i),An(n))}function cj(n){var i=n.memoizedState,o=0;i!==null&&(o=i.retryLane),ez(n,o)}function lj(n,i){var o=0;switch(n.tag){case 31:case 13:var c=n.stateNode,f=n.memoizedState;f!==null&&(o=f.retryLane);break;case 19:c=n.stateNode;break;case 22:c=n.stateNode._retryCache;break;default:throw Error(r(314))}c!==null&&c.delete(i),ez(n,o)}function uj(n,i){return Vl(n,i)}var kc=null,pr=null,Dd=!1,vc=!1,Pd=!1,xa=0;function An(n){n!==pr&&n.next===null&&(pr===null?kc=pr=n:pr=pr.next=n),vc=!0,Dd||(Dd=!0,fj())}function Oo(n,i){if(!Pd&&vc){Pd=!0;do for(var o=!1,c=kc;c!==null;){if(n!==0){var f=c.pendingLanes;if(f===0)var p=0;else{var w=c.suspendedLanes,k=c.pingedLanes;p=(1<<31-qt(42|n)+1)-1,p&=f&~(w&~k),p=p&201326741?p&201326741|1:p?p|2:0}p!==0&&(o=!0,iz(c,p))}else p=Se,p=Ts(c,c===He?p:0,c.cancelPendingCommit!==null||c.timeoutHandle!==-1),(p&3)===0||Gr(c,p)||(o=!0,iz(c,p));c=c.next}while(o);Pd=!1}}function dj(){tz()}function tz(){vc=Dd=!1;var n=0;xa!==0&&vj()&&(n=xa);for(var i=Bt(),o=null,c=kc;c!==null;){var f=c.next,p=nz(c,i);p===0?(c.next=null,o===null?kc=f:o.next=f,f===null&&(pr=o)):(o=c,(n!==0||(p&3)!==0)&&(vc=!0)),c=f}ot!==0&&ot!==5||Oo(n),xa!==0&&(xa=0)}function nz(n,i){for(var o=n.suspendedLanes,c=n.pingedLanes,f=n.expirationTimes,p=n.pendingLanes&-62914561;0<p;){var w=31-qt(p),k=1<<w,S=f[w];S===-1?((k&o)===0||(k&c)!==0)&&(f[w]=Uv(k,i)):S<=i&&(n.expiredLanes|=k),p&=~k}if(i=He,o=Se,o=Ts(n,n===i?o:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),c=n.callbackNode,o===0||n===i&&(Pe===2||Pe===9)||n.cancelPendingCommit!==null)return c!==null&&c!==null&&Zl(c),n.callbackNode=null,n.callbackPriority=0;if((o&3)===0||Gr(n,o)){if(i=o&-o,i===n.callbackPriority)return i;switch(c!==null&&Zl(c),Fl(o)){case 2:case 8:o=Vh;break;case 32:o=vs;break;case 268435456:o=Zh;break;default:o=vs}return c=az.bind(null,n),o=Vl(o,c),n.callbackPriority=i,n.callbackNode=o,i}return c!==null&&c!==null&&Zl(c),n.callbackPriority=2,n.callbackNode=null,2}function az(n,i){if(ot!==0&&ot!==5)return n.callbackNode=null,n.callbackPriority=0,null;var o=n.callbackNode;if(bc()&&n.callbackNode!==o)return null;var c=Se;return c=Ts(n,n===He?c:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),c===0?null:(Um(n,c,i),nz(n,Bt()),n.callbackNode!=null&&n.callbackNode===o?az.bind(null,n):null)}function iz(n,i){if(bc())return null;Um(n,i,!0)}function fj(){_j(function(){(xe&6)!==0?Vl(Jh,dj):tz()})}function Ld(){if(xa===0){var n=Qi;n===0&&(n=js,js<<=1,(js&261888)===0&&(js=256)),xa=n}return xa}function rz(n){return n==null||typeof n=="symbol"||typeof n=="boolean"?null:typeof n=="function"?n:Os(""+n)}function oz(n,i){var o=i.ownerDocument.createElement("input");return o.name=i.name,o.value=i.value,n.id&&o.setAttribute("form",n.id),i.parentNode.insertBefore(o,i),n=new FormData(n),o.parentNode.removeChild(o),n}function hj(n,i,o,c,f){if(i==="submit"&&o&&o.stateNode===f){var p=rz((f[xt]||null).action),w=c.submitter;w&&(i=(i=w[xt]||null)?rz(i.formAction):w.getAttribute("formAction"),i!==null&&(p=i,w=null));var k=new Ds("action","action",null,c,f);n.push({event:k,listeners:[{instance:null,listener:function(){if(c.defaultPrevented){if(xa!==0){var S=w?oz(f,w):new FormData(f);nd(o,{pending:!0,data:S,method:f.method,action:p},null,S)}}else typeof p=="function"&&(k.preventDefault(),S=w?oz(f,w):new FormData(f),nd(o,{pending:!0,data:S,method:f.method,action:p},p,S))},currentTarget:f}]})}}for(var Md=0;Md<gu.length;Md++){var Ud=gu[Md],pj=Ud.toLowerCase(),yj=Ud[0].toUpperCase()+Ud.slice(1);fn(pj,"on"+yj)}fn(Mp,"onAnimationEnd"),fn(Up,"onAnimationIteration"),fn($p,"onAnimationStart"),fn("dblclick","onDoubleClick"),fn("focusin","onFocus"),fn("focusout","onBlur"),fn(C0,"onTransitionRun"),fn(N0,"onTransitionStart"),fn(x0,"onTransitionCancel"),fn(Ip,"onTransitionEnd"),$i("onMouseEnter",["mouseout","mouseover"]),$i("onMouseLeave",["mouseout","mouseover"]),$i("onPointerEnter",["pointerout","pointerover"]),$i("onPointerLeave",["pointerout","pointerover"]),ii("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),ii("onSelect","focusout contextmenu dragend focu
9sin keydown keyup mousedown mouseup selectionchange".split(" ")),ii("onBeforeInput",["compositionend","keypress","textInput","paste"]),ii("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),ii("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),ii("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(" "),mj=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Co));function sz(n,i){i=(i&4)!==0;for(var o=0;o<n.length;o++){var c=n[o],f=c.event;c=c.listeners;e:{var p=void 0;if(i)for(var w=c.length-1;0<=w;w--){var k=c[w],S=k.instance,D=k.currentTarget;if(k=k.listener,S!==p&&f.isPropagationStopped())break e;p=k,f.currentTarget=D;try{p(f)}catch(B){Ms(B)}f.currentTarget=null,p=S}else for(w=0;w<c.length;w++){if(k=c[w],S=k.instance,D=k.currentTarget,k=k.listener,S!==p&&f.isPropagationStopped())break e;p=k,f.currentTarget=D;try{p(f)}catch(B){Ms(B)}f.currentTarget=null,p=S}}}}function je(n,i){var o=i[Wl];o===void 0&&(o=i[Wl]=new Set);var c=n+"__bubble";o.has(c)||(cz(i,n,2,!1),o.add(c))}function $d(n,i,o){var c=0;i&&(c|=4),cz(o,n,c,i)}var jc="_reactListening"+Math.random().toString(36).slice(2);function Id(n){if(!n[jc]){n[jc]=!0,tp.forEach(function(o){o!=="selectionchange"&&(mj.has(o)||$d(o,!1,n),$d(o,!0,n))});var i=n.nodeType===9?n:n.ownerDocument;i===null||i[jc]||(i[jc]=!0,$d("selectionchange",!1,i))}}function cz(n,i,o,c){switch(Mz(i)){case 2:var f=Kj;break;case 8:f=Jj;break;default:f=tf}o=f.bind(null,i,o,n),f=void 0,!ou||i!=="touchstart"&&i!=="touchmove"&&i!=="wheel"||(f=!0),c?f!==void 0?n.addEventListener(i,o,{capture:!0,passive:f}):n.addEventListener(i,o,!0):f!==void 0?n.addEventListener(i,o,{passive:f}):n.addEventListener(i,o,!1)}function Bd(n,i,o,c,f){var p=c;if((i&1)===0&&(i&2)===0&&c!==null)e:for(;;){if(c===null)return;var w=c.tag;if(w===3||w===4){var k=c.stateNode.containerInfo;if(k===f)break;if(w===4)for(w=c.return;w!==null;){var S=w.tag;if((S===3||S===4)&&w.stateNode.containerInfo===f)return;w=w.return}for(;k!==null;){if(w=Li(k),w===null)return;if(S=w.tag,S===5||S===6||S===26||S===27){c=p=w;continue e}k=k.parentNode}}c=c.return}hp(function(){var D=p,B=iu(o),K=[];e:{var P=Bp.get(n);if(P!==void 0){var U=Ds,ee=n;switch(n){case"keypress":if(Ns(o)===0)break e;case"keydown":case"keyup":U=l0;break;case"focusin":ee="focus",U=uu;break;case"focusout":ee="blur",U=uu;break;case"beforeblur":case"afterblur":U=uu;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":U=mp;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":U=Wv;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":U=f0;break;case Mp:case Up:case $p:U=e0;break;case Ip:U=p0;break;case"scroll":case"scrollend":U=Yv;break;case"wheel":U=m0;break;case"copy":case"cut":case"paste":U=n0;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":U=wp;break;case"toggle":case"beforetoggle":U=w0}var ue=(i&4)!==0,$e=!ue&&(n==="scroll"||n==="scrollend"),C=ue?P!==null?P+"Capture":null:P;ue=[];for(var E=D,x;E!==null;){var H=E;if(x=H.stateNode,H=H.tag,H!==5&&H!==26&&H!==27||x===null||C===null||(H=Xr(E,C),H!=null&&ue.push(No(E,H,x))),$e)break;E=E.return}0<ue.length&&(P=new U(P,ee,null,o,B),K.push({event:P,listeners:ue}))}}if((i&7)===0){e:{if(P=n==="mouseover"||n==="pointerover",U=n==="mouseout"||n==="pointerout",P&&o!==au&&(ee=o.relatedTarget||o.fromElement)&&(Li(ee)||ee[Pi]))break e;if((U||P)&&(P=B.window===B?B:(P=B.ownerDocument)?P.defaultView||P.parentWindow:window,U?(ee=o.relatedTarget||o.toElement,U=D,ee=ee?Li(ee):null,ee!==null&&($e=l(ee),ue=ee.tag,ee!==$e||ue!==5&&ue!==27&&ue!==6)&&(ee=null)):(U=null,ee=D),U!==ee)){if(ue=mp,H="onMouseLeave",C="onMouseEnter",E="mouse",(n==="pointerout"||n==="pointerover")&&(ue=wp,H="onPointerLeave",C="onPointerEnter",E="pointer"),$e=U==null?P:Wr(U),x=ee==null?P:Wr(ee),P=new ue(H,E+"leave",U,o,B),P.target=$e,P.relatedTarget=x,H=null,Li(B)===D&&(ue=new ue(C,E+"enter",ee,o,B),ue.target=x,ue.relatedTarget=$e,H=ue),$e=H,U&&ee)t:{for(ue=zj,C=U,E=ee,x=0,H=C;H;H=ue(H))x++;H=0;for(var se=E;se;se=ue(se))H++;for(;0<x-H;)C=ue(C),x--;for(;0<H-x;)E=ue(E),H--;for(;x--;){if(C===E||E!==null&&C===E.alternate){ue=C;break t}C=ue(C),E=ue(E)}ue=null}else ue=null;U!==null&&lz(K,P,U,ue,!1),ee!==null&&$e!==null&&lz(K,$e,ee,ue,!0)}}
vendor: 5,189 bytes, lines 9-10
9e:{if(P=D?Wr(D):window,U=P.nodeName&&P.nodeName.toLowerCase(),U==="select"||U==="input"&&P.type==="file")var Re=Tp;else if(_p(P))if(Ep)Re=A0;else{Re=T0;var ie=S0}else U=P.nodeName,!U||U.toLowerCase()!=="input"||P.type!=="checkbox"&&P.type!=="radio"?D&&nu(D.elementType)&&(Re=Tp):Re=E0;if(Re&&(Re=Re(n,D))){Sp(K,Re,o,B);break e}ie&&ie(n,P,D),n==="focusout"&&D&&P.type==="number"&&D.memoizedProps.value!=null&&tu(P,"number",P.value)}switch(ie=D?Wr(D):window,n){case"focusin":(_p(ie)||ie.contentEditable==="true")&&(Ji=ie,mu=D,oo=null);break;case"focusout":oo=mu=Ji=null;break;case"mousedown":zu=!0;break;case"contextmenu":case"mouseup":case"dragend":zu=!1,Pp(K,o,B);break;case"selectionchange":if(O0)break;case"keydown":case"keyup":Pp(K,o,B)}var be;if(fu)e:{switch(n){case"compositionstart":var Te="onCompositionStart";break e;case"compositionend":Te="onCompositionEnd";break e;case"compositionupdate":Te="onCompositionUpdate";break e}Te=void 0}else Ki?vp(n,o)&&(Te="onCompositionEnd"):n==="keydown"&&o.keyCode===229&&(Te="onCompositionStart");Te&&(gp&&o.locale!=="ko"&&(Ki||Te!=="onCompositionStart"?Te==="onCompositionEnd"&&Ki&&(be=pp()):(za=B,su="value"in za?za.value:za.textContent,Ki=!0)),ie=_c(D,Te),0<ie.length&&(Te=new zp(Te,n,null,o,B),K.push({event:Te,listeners:ie}),be?Te.data=be:(be=jp(o),be!==null&&(Te.data=be)))),(be=b0?k0(n,o):v0(n,o))&&(Te=_c(D,"onBeforeInput"),0<Te.length&&(ie=new zp("onBeforeInput","beforeinput",null,o,B),K.push({event:ie,listeners:Te}),ie.data=be)),hj(K,n,D,o,B)}sz(K,i)})}function No(n,i,o){return{instance:n,listener:i,currentTarget:o}}function _c(n,i){for(var o=i+"Capture",c=[];n!==null;){var f=n,p=f.stateNode;if(f=f.tag,f!==5&&f!==26&&f!==27||p===null||(f=Xr(n,o),f!=null&&c.unshift(No(n,f,p)),f=Xr(n,i),f!=null&&c.push(No(n,f,p))),n.tag===3)return c;n=n.return}return[]}function zj(n){if(n===null)return null;do n=n.return;while(n&&n.tag!==5&&n.tag!==27);return n||null}function lz(n,i,o,c,f){for(var p=i._reactName,w=[];o!==null&&o!==c;){var k=o,S=k.alternate,D=k.stateNode;if(k=k.tag,S!==null&&S===c)break;k!==5&&k!==26&&k!==27||D===null||(S=D,f?(D=Xr(o,p),D!=null&&w.unshift(No(o,D,S))):f||(D=Xr(o,p),D!=null&&w.push(No(o,D,S)))),o=o.return}w.length!==0&&n.push({event:i,listeners:w})}var wj=/\r\n?/g,gj=/\u0000|\uFFFD/g;function uz(n){return(typeof n=="string"?n:""+n).replace(wj,`
10`).replace(gj,"")}function dz(n,i){return i=uz(i),uz(n)===i}function Ue(n,i,o,c,f,p){switch(o){case"children":typeof c=="string"?i==="body"||i==="textarea"&&c===""||Bi(n,c):(typeof c=="number"||typeof c=="bigint")&&i!=="body"&&Bi(n,""+c);break;case"className":As(n,"class",c);break;case"tabIndex":As(n,"tabindex",c);break;case"dir":case"role":case"viewBox":case"width":case"height":As(n,o,c);break;case"style":dp(n,c,p);break;case"data":if(i!=="object"){As(n,"data",c);break}case"src":case"href":if(c===""&&(i!=="a"||o!=="href")){n.removeAttribute(o);break}if(c==null||typeof c=="function"||typeof c=="symbol"||typeof c=="boolean"){n.removeAttribute(o);break}c=Os(""+c),n.setAttribute(o,c);break;case"action":case"formAction":if(typeof c=="function"){n.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 p=="function"&&(o==="formAction"?(i!=="input"&&Ue(n,i,"name",f.name,f,null),Ue(n,i,"formEncType",f.formEncType,f,null),Ue(n,i,"formMethod",f.formMethod,f,null),Ue(n,i,"formTarget",f.formTarget,f,null)):(Ue(n,i,"encType",f.encType,f,null),Ue(n,i,"method",f.method,f,null),Ue(n,i,"target",f.target,f,null)));if(c==null||typeof c=="symbol"||typeof c=="boolean"){n.removeAttribute(o);break}c=Os(""+c),n.setAttribute(o,c);break;case"onClick":c!=null&&(n.onclick=Un);break;case"onScroll":c!=null&&je("scroll",n);break;case"onScrollEnd":c!=null&&je("scrollend",n);break;case"dangerouslySetInnerHTML":if(c!=null){if(typeof c!="object"||!("__html"in c))throw Error(r(61));if(o=c.__html,o!=null){if(f.children!=null)throw Error(r(60));n.innerHTML=o}}break;case"multiple":n.multiple=c&&typeof c!="function"&&typeof c!="symbol";break;case"muted":n.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"){n.removeAttribute("xlink:href");break}o=Os(""+c),n.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"?n.setAttribute(o,""+c):n.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"playsInl
10ine":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":c&&typeof c!="function"&&typeof c!="symbol"?n.setAttribute(o,""):n.removeAttribute(o);break;case"capture":case"download":c===!0?n.setAttribute(o,""):c!==!1&&c!=null&&typeof c!="function"&&typeof c!="symbol"?n.setAttribute(o,c):n.removeAttribute(o);break;case"cols":case"rows":case"size":case"span":c!=null&&typeof c!="function"&&typeof c!="symbol"&&!isNaN(c)&&1<=c?n.setAttribute(o,c):n.removeAttribute(o);break;case"rowSpan":case"start":c==null||typeof c=="function"||typeof c=="symbol"||isNaN(c)?n.removeAttribute(o):n.setAttribute(o,c);break;case"popover":je("beforetoggle",n),je("toggle",n),Es(n,"popover",c);break;case"xlinkActuate":Mn(n,"http://www.w3.org/1999/xlink","xlink:actuate",c);break;case"xlinkArcrole":Mn(n,"http://www.w3.org/1999/xlink","xlink:arcrole",c);break;case"xlinkRole":Mn(n,"http://www.w3.org/1999/xlink","xlink:role",c);break;case"xlinkShow":Mn(n,"http://www.w3.org/1999/xlink","xlink:show",c);break;case"xlinkTitle":Mn(n,"http://www.w3.org/1999/xlink","xlink:title",c);break;case"xlinkType":Mn(n,"http://www.w3.org/1999/xlink","xlink:type",c);break;case"xmlBase":Mn(n,"http://www.w3.org/XML/1998/namespace","xml:base",c);break;case"xmlLang":Mn(n,"http://www.w3.org/XML/1998/namespace","xml:lang",c);break;case"xmlSpace":Mn(n,"http://www.w3.org/XML/1998/namespace","xml:space",c);break;case"is":Es(n,"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=Zv.get(o)||o,Es(n,o,c))}}function Hd(n,i,o,c,f,p){switch(o){case"style":dp(n,c,p);break;case"dangerouslySetInnerHTML":if(c!=null){if(typeof c!="object"||!("__html"in c))throw Error(r(61));if(o=c.__html,o!=null){if(f.children!=null)throw Error(r(60));n.innerHTML=o}}break;case"children":typeof c=="string"?Bi(n,c):(typeof c=="number"||typeof c=="bigint")&&Bi(n,""+c);break;case"onScroll":c!=null&&je("scroll",n);break;case"onScrollEnd":c!=null&&je("scrollend",n);break;case"onClick":c!=null&&(n.onclick=Un);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!np.hasOwnProperty(o))e:{if(o[0]==="o"&&o[1]==="n"&&(f=o.endsWith("Capture"),i=o.slice(2,f?o.length-7:void 0),p=n[xt]||null,p=p!=null?p[o]:null,typeof p=="function"&&n.removeEventListener(i,p,f),typeof c=="function")){typeof p!="function"&&p!==null&&(o in n?n[o]=null:n.hasAttribute(o)&&n.removeAttribute(o)),n.addEventListener(i,c,f);break e}o in n?n[o]=c:c===!0?n.setAttribute(o,""):Es(n,o,c)}}}function gt(n,i,o){switch(i){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":je("error",n),je("load",n);var c=!1,f=!1,p;for(p in o)if(o.hasOwnProperty(p)){var w=o[p];if(w!=null)switch(p){case"src":c=!0;break;case"srcSet":f=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,i));default:Ue(n,i,p,w,o,null)}}f&&Ue(n,i,"srcSet",o.srcSet,o,null),c&&Ue(n,i,"src",o.src,o,null);return;case"input":je("invalid",n);var k=p=w=f=null,S=null,D=null;for(c in o)if(o.hasOwnProperty(c)){var B=o[c];if(B!=null)switch(c){case"name":f=B;break;case"type":w=B;break;case"checked":S=B;break;case"defaultChecked":D=B;break;case"value":p=B;break;case"defaultValue":k=B;break;case"children":case"dangerouslySetInnerHTML":if(B!=null)throw Error(r(137,i));break;default:Ue(n,i,c,B,o,null)}}sp(n,p,k,S,D,w,f,!1);return;case"select":je("invalid",n),c=w=p=null;for(f in o)if(o.hasOwnProperty(f)&&(k=o[f],k!=null))switch(f){case"value":p=k;break;case"defaultValue":w=k;break;case"multiple":c=k;default:Ue(n,i,f,k,o,null)}i=p,o=w,n.multiple=!!c,i!=null?Ii(n,!!c,i,!1):o!=null&&Ii(n,!!c,o,!0);return;case"textarea":je("invalid",n),p=f=c=null;for(w in o)if(o.hasOwnProperty(w)&&(k=o[w],k!=null))switch(w){case"value":c=k;break;case"defaultValue":f=k;break;case"children":p=k;break;case"dangerouslySetInnerHTML":if(k!=null)throw Error(r(91));break;default:Ue(n,i,w,k,o,null)}lp(n,c,f,p);return;case"option":for(S in o)o.hasOwnProperty(S)&&(c=o[S],c!=null)&&(S==="selected"?n.selected=c&&typeof c!="function"&&typeof c!="symbol":Ue(n,i,S,c,o,null));return;case"dialog":je("beforetoggle",n),je("toggle",n),je("cancel",n),je("close",n);break;case"iframe":case"object":je("load",n);break;case"video":case"audio":for(c=0;c<Co.length;c++)je(Co[c],n);break;case"image":je("error",n),je("load",n);break;case"details":je("toggle",n);break;case"embed":case"source":case"link":je("error",n),je("load",n);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(D in o)if(o.hasOwnProperty(D)&&(c=o[D],c!=null))switch(D){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,i));default:Ue(n,i,D,c,o,null)}return;default:if(nu(i)){for(B in o)o.hasOwnProperty(B)&&(c=o[B],c!==void 0&&Hd(n,i,B,c,o,void 0));return}}for(k in o)o.hasOwnProperty(k)&&(c=o[k],c!=null&&Ue(n,i,k,c,o,null))}function bj(n,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,p=null,w=null,k=null,S=null,D=null,B=null;for(U in o){var K=o[U];if(o.hasOwnProperty(U)&&K!=null)switch(U){case"checked":break;case"value":break;case"defaultValue":S=K;default:c.hasOwnProperty(U)||Ue(n,i,U,null,c,K)}}for(var P in c){var U=c[P];if(K=o[P],c.hasOwnProperty(P)&&(U!=null||K!=null))switch(P){case"type":p=U;break;case"name":f=U;break;case"checked":D=U;break;case"defaultChecked":B=U;break;case"value":w=U;break;case"defaultValue":k=U;break;case"children":case"dangerouslySetInnerHTML":if(U!=null)throw Error(r(137,i));break;default:U!==K&&Ue(n,i,P,U,c,K)}}eu(n,w,k,S,D,B,p,f);return;case"select":U=w=k=P=null;for(p in o)if(S=o[p],o.hasOwnProperty(p)&&S!=null)switch(p){case"value":break;case"multiple":U=S;default:c.hasOwnProperty(p)||Ue(n,i,p,null,c,S)}for(f in c)if(p=c[f],S=o[f],c.hasOwnProperty(f)&&(p!=null||S!=null))switch(f){case"value":P=p;break;case"defaultValue":k=p;break;case"multiple":w=p;default:p!==S&&Ue(n,i,f,p,c,S)}i=k,o=w,c=U,P!=null?Ii(n,!!o,P,!1):!!c!=!!o&&(i!=null?Ii(n,!!o,i,!0):Ii(n,!!o,o?[]:"",!1));return;case"textarea":U=P=null;for(k in o)if(f=o[k],o.hasOwnProperty(k)&&f!=null&&!c.hasOwnProperty(k))switch(k){case"value":break;case"children":break;default:Ue(n,i,k,null,c,f)}for(w in c)if(f=c[w],p=o[w],c.hasOwnProperty(w)&&(f!=null||p!=null))switch(w){case"value":P=f;break;case"defaultValue":U=f;break;case"children":break;case"dangerouslySetInnerHTML":if(f!=null)throw Error(r(91));break;default:f!==p&&Ue(n,i,w,f,c,p)}cp(n,P,U);return;case"option":for(var ee in o)P=o[ee],o.hasOwnProperty(ee)&&P!=null&&!c.hasOwnProperty(ee)&&(ee==="selected"?n.selected=!1:Ue(n,i,ee,null,c,P));for(S in c)P=c[S],U=o[S],c.hasOwnProperty(S)&&P!==U&&(P!=null||U!=null)&&(S==="selected"?n.selected=P&&typeof P!="function"&&typeof P!="symbol":Ue(n,i,S,P,c,U));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 ue in o)P=o[ue],o.hasOwnProperty(ue)&&P!=null&&!c.hasOwnProperty(ue)&&Ue(n,i,ue,null,c,P);for(D in c)if(P=c[D],U=o[D],c.hasOwnProperty(D)&&P!==U&&(P!=null||U!=null))switch(D){case"children":case"dangerouslySetInnerHTML":if(P!=null)throw Error(r(137,i));break;default:Ue(n,i,D,P,c,U)}return;default:if(nu(i)){for(var $e in o)P=o[$e],o.hasOwnProperty($e)&&P!==void 0&&!c.hasOwnProperty($e)&&Hd(n,i,$e,void 0,c,P);for(B in c)P=c[B],U=o[B],!c.hasOwnProperty(B)||P===U||P===void 0&&U===void 0||Hd(n,i,B,P,c,U);return}}for(var C in o)P=o[C],o.hasOwnProperty(C)&&P!=null&&!c.hasOwnProperty(C)&&Ue(n,i,C,null,c,P);for(K in c)P=c[K],U=o[K],!c.hasOwnProperty(K)||P===U||P==null&&U==null||Ue(n,i,K,P,c,U)}function fz(n){switch(n){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function kj(){if(typeof performance.getEntriesByType=="function"){for(var n=0,i=0,o=performance.getEntriesByType("resource"),c=0;c<o.length;c++){var f=o[c],p=f.transferSize,w=f.initiatorType,k=f.duration;if(p&&k&&fz(w)){for(w=0,k=f.responseEnd,c+=1;c<o.length;c++){var S=o[c],D=S.startTime;if(D>k)break;var B=S.transferSize,K=S.initiatorType;B&&fz(K)&&(S=S.responseEnd,w+=B*(S<k?1:(k-D)/(S-D)))}if(--c,i+=8*(p+w)/(f.duration/1e3),n++,10<n)break}}if(0<n)return i/n/1e6}return navigator.connection&&(n=navigator.connection.downlink,typeof n=="number")?
vendor: 9,333 bytes, line 10
10n:5}var qd=null,Kd=null;function Sc(n){return n.nodeType===9?n:n.ownerDocument}function hz(n){switch(n){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function pz(n,i){if(n===0)switch(i){case"svg":return 1;case"math":return 2;default:return 0}return n===1&&i==="foreignObject"?0:n}function Jd(n,i){return n==="textarea"||n==="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 Vd=null;function vj(){var n=window.event;return n&&n.type==="popstate"?n===Vd?!1:(Vd=n,!0):(Vd=null,!1)}var yz=typeof setTimeout=="function"?setTimeout:void 0,jj=typeof clearTimeout=="function"?clearTimeout:void 0,mz=typeof Promise=="function"?Promise:void 0,_j=typeof queueMicrotask=="function"?queueMicrotask:typeof mz<"u"?function(n){return mz.resolve(null).then(n).catch(Sj)}:yz;function Sj(n){setTimeout(function(){throw n})}function Da(n){return n==="head"}function zz(n,i){var o=i,c=0;do{var f=o.nextSibling;if(n.removeChild(o),f&&f.nodeType===8)if(o=f.data,o==="/$"||o==="/&"){if(c===0){n.removeChild(f),wr(i);return}c--}else if(o==="$"||o==="$?"||o==="$~"||o==="$!"||o==="&")c++;else if(o==="html")xo(n.ownerDocument.documentElement);else if(o==="head"){o=n.ownerDocument.head,xo(o);for(var p=o.firstChild;p;){var w=p.nextSibling,k=p.nodeName;p[Fr]||k==="SCRIPT"||k==="STYLE"||k==="LINK"&&p.rel.toLowerCase()==="stylesheet"||o.removeChild(p),p=w}}else o==="body"&&xo(n.ownerDocument.body);o=f}while(o);wr(i)}function wz(n,i){var o=n;n=0;do{var c=o.nextSibling;if(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(n===0)break;n--}else o!=="$"&&o!=="$?"&&o!=="$~"&&o!=="$!"||n++;o=c}while(o)}function Zd(n){var i=n.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":Zd(o),Xl(o);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(o.rel.toLowerCase()==="stylesheet")continue}n.removeChild(o)}}function Tj(n,i,o,c){for(;n.nodeType===1;){var f=o;if(n.nodeName.toLowerCase()!==i.toLowerCase()){if(!c&&(n.nodeName!=="INPUT"||n.type!=="hidden"))break}else if(c){if(!n[Fr])switch(i){case"meta":if(!n.hasAttribute("itemprop"))break;return n;case"link":if(p=n.getAttribute("rel"),p==="stylesheet"&&n.hasAttribute("data-precedence"))break;if(p!==f.rel||n.getAttribute("href")!==(f.href==null||f.href===""?null:f.href)||n.getAttribute("crossorigin")!==(f.crossOrigin==null?null:f.crossOrigin)||n.getAttribute("title")!==(f.title==null?null:f.title))break;return n;case"style":if(n.hasAttribute("data-precedence"))break;return n;case"script":if(p=n.getAttribute("src"),(p!==(f.src==null?null:f.src)||n.getAttribute("type")!==(f.type==null?null:f.type)||n.getAttribute("crossorigin")!==(f.crossOrigin==null?null:f.crossOrigin))&&p&&n.hasAttribute("async")&&!n.hasAttribute("itemprop"))break;return n;default:return n}}else if(i==="input"&&n.type==="hidden"){var p=f.name==null?null:""+f.name;if(f.type==="hidden"&&n.getAttribute("name")===p)return n}else return n;if(n=cn(n.nextSibling),n===null)break}return null}function Ej(n,i,o){if(i==="")return null;for(;n.nodeType!==3;)if((n.nodeType!==1||n.nodeName!=="INPUT"||n.type!=="hidden")&&!o||(n=cn(n.nextSibling),n===null))return null;return n}function gz(n,i){for(;n.nodeType!==8;)if((n.nodeType!==1||n.nodeName!=="INPUT"||n.type!=="hidden")&&!i||(n=cn(n.nextSibling),n===null))return null;return n}function Gd(n){return n.data==="$?"||n.data==="$~"}function Yd(n){return n.data==="$!"||n.data==="$?"&&n.ownerDocument.readyState!=="loading"}function Aj(n,i){var o=n.ownerDocument;if(n.data==="$~")n._reactRetry=i;else if(n.data!=="$?"||o.readyState!=="loading")i();else{var c=function(){i(),o.removeEventListener("DOMContentLoaded",c)};o.addEventListener("DOMContentLoaded",c),n._reactRetry=c}}function cn(n){for(;n!=null;n=n.nextSibling){var i=n.nodeType;if(i===1||i===3)break;if(i===8){if(i=n.data,i==="$"||i==="$!"||i==="$?"||i==="$~"||i==="&"||i==="F!"||i==="F")break;if(i==="/$"||i==="/&")return null}}return n}var Fd=null;function bz(n){n=n.nextSibling;for(var i=0;n;){if(n.nodeType===8){var o=n.data;if(o==="/$"||o==="/&"){if(i===0)return cn(n.nextSibling);i--}else o!=="$"&&o!=="$!"&&o!=="$?"&&o!=="$~"&&o!=="&"||i++}n=n.nextSibling}return null}function kz(n){n=n.previousSibling;for(var i=0;n;){if(n.nodeType===8){var o=n.data;if(o==="$"||o==="$!"||o==="$?"||o==="$~"||o==="&"){if(i===0)return n;i--}else o!=="/$"&&o!=="/&"||i++}n=n.previousSibling}return null}function vz(n,i,o){switch(i=Sc(o),n){case"html":if(n=i.documentElement,!n)throw Error(r(452));return n;case"head":if(n=i.head,!n)throw Error(r(453));return n;case"body":if(n=i.body,!n)throw Error(r(454));return n;default:throw Error(r(451))}}function xo(n){for(var i=n.attributes;i.length;)n.removeAttributeNode(i[0]);Xl(n)}var ln=new Map,jz=new Set;function Tc(n){return typeof n.getRootNode=="function"?n.getRootNode():n.nodeType===9?n:n.ownerDocument}var ea=F.d;F.d={f:Rj,r:Oj,D:Cj,C:Nj,L:xj,m:Dj,X:Lj,S:Pj,M:Mj};function Rj(){var n=ea.f(),i=zc();return n||i}function Oj(n){var i=Mi(n);i!==null&&i.tag===5&&i.type==="form"?Iy(i):ea.r(n)}var yr=typeof document>"u"?null:document;function _z(n,i,o){var c=yr;if(c&&typeof i=="string"&&i){var f=en(i);f='link[rel="'+n+'"][href="'+f+'"]',typeof o=="string"&&(f+='[crossorigin="'+o+'"]'),jz.has(f)||(jz.add(f),n={rel:n,crossOrigin:o,href:i},c.querySelector(f)===null&&(i=c.createElement("link"),gt(i,"link",n),lt(i),c.head.appendChild(i)))}}function Cj(n){ea.D(n),_z("dns-prefetch",n,null)}function Nj(n,i){ea.C(n,i),_z("preconnect",n,i)}function xj(n,i,o){ea.L(n,i,o);var c=yr;if(c&&n&&i){var f='link[rel="preload"][as="'+en(i)+'"]';i==="image"&&o&&o.imageSrcSet?(f+='[imagesrcset="'+en(o.imageSrcSet)+'"]',typeof o.imageSizes=="string"&&(f+='[imagesizes="'+en(o.imageSizes)+'"]')):f+='[href="'+en(n)+'"]';var p=f;switch(i){case"style":p=mr(n);break;case"script":p=zr(n)}ln.has(p)||(n=m({rel:"preload",href:i==="image"&&o&&o.imageSrcSet?void 0:n,as:i},o),ln.set(p,n),c.querySelector(f)!==null||i==="style"&&c.querySelector(Do(p))||i==="script"&&c.querySelector(Po(p))||(i=c.createElement("link"),gt(i,"link",n),lt(i),c.head.appendChild(i)))}}function Dj(n,i){ea.m(n,i);var o=yr;if(o&&n){var c=i&&typeof i.as=="string"?i.as:"script",f='link[rel="modulepreload"][as="'+en(c)+'"][href="'+en(n)+'"]',p=f;switch(c){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":p=zr(n)}if(!ln.has(p)&&(n=m({rel:"modulepreload",href:n},i),ln.set(p,n),o.querySelector(f)===null)){switch(c){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(o.querySelector(Po(p)))return}c=o.createElement("link"),gt(c,"link",n),lt(c),o.head.appendChild(c)}}}function Pj(n,i,o){ea.S(n,i,o);var c=yr;if(c&&n){var f=Ui(c).hoistableStyles,p=mr(n);i=i||"default";var w=f.get(p);if(!w){var k={loading:0,preload:null};if(w=c.querySelector(Do(p)))k.loading=5;else{n=m({rel:"stylesheet",href:n,"data-precedence":i},o),(o=ln.get(p))&&Wd(n,o);var S=w=c.createElement("link");lt(S),gt(S,"link",n),S._p=new Promise(function(D,B){S.onload=D,S.onerror=B}),S.addEventListener("load",function(){k.loading|=1}),S.addEventListener("error",function(){k.loading|=2}),k.loading|=4,Ec(w,i,c)}w={type:"stylesheet",instance:w,count:1,state:k},f.set(p,w)}}}function Lj(n,i){ea.X(n,i);var o=yr;if(o&&n){var c=Ui(o).hoistableScripts,f=zr(n),p=c.get(f);p||(p=o.querySelector(Po(f)),p||(n=m({src:n,async:!0},i),(i=ln.get(f))&&Xd(n,i),p=o.createElement("script"),lt(p),gt(p,"link",n),o.head.appendChild(p)),p={type:"script",instance:p,count:1,state:null},c.set(f,p))}}function Mj(n,i){ea.M(n,i);var o=yr;if(o&&n){var c=Ui(o).hoistableScripts,f=zr(n),p=c.get(f);p||(p=o.querySelector(Po(f)),p||(n=m({src:n,async:!0,type:"module"},i),(i=ln.get(f))&&Xd(n,i),p=o.createElement("script"),lt(p),gt(p,"link",n),o.head.appendChild(p)),p={type:"script",instance:p,count:1,state:null},c.set(f,p))}}function Sz(n,i,o,c){var f=(f=ke.current)?Tc(f):null;if(!f)throw Error(r(446));switch(n){case"meta":case"title":return null;case"style":return typeof o.precedence=="string"&&typeof o.href=="string"?(i=mr(o.href),o=Ui(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"){n=mr(o.href);var p=Ui(f).hoistableStyles,w=p.get(n);if(w||(f=f.ownerDocument||f,w={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},p.set(n,w),(p=f.querySelector(Do(n)))&&!p._p&&(w.instance=p,w.state.loading=5),ln.has(n)||(o={rel:"preload",as:"style",href:o.href,crossOrigin:o.crossOrigin,integrity:o.integrity,media:o.media,hrefLang:o.hrefLang,referrerPolicy:o.referrerPolicy},ln.set(n,o),p||Uj(f,n,o,w.state))),i&&c===null)throw Error(r(528,""));return w}if(i&&c!==null)throw Error(r(529,""));return null;
vendor: 5,353 bytes, line 10
10case"script":return i=o.async,o=o.src,typeof o=="string"&&i&&typeof i!="function"&&typeof i!="symbol"?(i=zr(o),o=Ui(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(r(444,n))}}function mr(n){return'href="'+en(n)+'"'}function Do(n){return'link[rel="stylesheet"]['+n+"]"}function Tz(n){return m({},n,{"data-precedence":n.precedence,precedence:null})}function Uj(n,i,o,c){n.querySelector('link[rel="preload"][as="style"]['+i+"]")?c.loading=1:(i=n.createElement("link"),c.preload=i,i.addEventListener("load",function(){return c.loading|=1}),i.addEventListener("error",function(){return c.loading|=2}),gt(i,"link",o),lt(i),n.head.appendChild(i))}function zr(n){return'[src="'+en(n)+'"]'}function Po(n){return"script[async]"+n}function Ez(n,i,o){if(i.count++,i.instance===null)switch(i.type){case"style":var c=n.querySelector('style[data-href~="'+en(o.href)+'"]');if(c)return i.instance=c,lt(c),c;var f=m({},o,{"data-href":o.href,"data-precedence":o.precedence,href:null,precedence:null});return c=(n.ownerDocument||n).createElement("style"),lt(c),gt(c,"style",f),Ec(c,o.precedence,n),i.instance=c;case"stylesheet":f=mr(o.href);var p=n.querySelector(Do(f));if(p)return i.state.loading|=4,i.instance=p,lt(p),p;c=Tz(o),(f=ln.get(f))&&Wd(c,f),p=(n.ownerDocument||n).createElement("link"),lt(p);var w=p;return w._p=new Promise(function(k,S){w.onload=k,w.onerror=S}),gt(p,"link",c),i.state.loading|=4,Ec(p,o.precedence,n),i.instance=p;case"script":return p=zr(o.src),(f=n.querySelector(Po(p)))?(i.instance=f,lt(f),f):(c=o,(f=ln.get(p))&&(c=m({},o),Xd(c,f)),n=n.ownerDocument||n,f=n.createElement("script"),lt(f),gt(f,"link",c),n.head.appendChild(f),i.instance=f);case"void":return null;default:throw Error(r(443,i.type))}else i.type==="stylesheet"&&(i.state.loading&4)===0&&(c=i.instance,i.state.loading|=4,Ec(c,o.precedence,n));return i.instance}function Ec(n,i,o){for(var c=o.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),f=c.length?c[c.length-1]:null,p=f,w=0;w<c.length;w++){var k=c[w];if(k.dataset.precedence===i)p=k;else if(p!==f)break}p?p.parentNode.insertBefore(n,p.nextSibling):(i=o.nodeType===9?o.head:o,i.insertBefore(n,i.firstChild))}function Wd(n,i){n.crossOrigin==null&&(n.crossOrigin=i.crossOrigin),n.referrerPolicy==null&&(n.referrerPolicy=i.referrerPolicy),n.title==null&&(n.title=i.title)}function Xd(n,i){n.crossOrigin==null&&(n.crossOrigin=i.crossOrigin),n.referrerPolicy==null&&(n.referrerPolicy=i.referrerPolicy),n.integrity==null&&(n.integrity=i.integrity)}var Ac=null;function Az(n,i,o){if(Ac===null){var c=new Map,f=Ac=new Map;f.set(o,c)}else f=Ac,c=f.get(o),c||(c=new Map,f.set(o,c));if(c.has(n))return c;for(c.set(n,null),o=o.getElementsByTagName(n),f=0;f<o.length;f++){var p=o[f];if(!(p[Fr]||p[yt]||n==="link"&&p.getAttribute("rel")==="stylesheet")&&p.namespaceURI!=="http://www.w3.org/2000/svg"){var w=p.getAttribute(i)||"";w=n+w;var k=c.get(w);k?k.push(p):c.set(w,[p])}}return c}function Rz(n,i,o){n=n.ownerDocument||n,n.head.insertBefore(o,i==="title"?n.querySelector("head > title"):null)}function $j(n,i,o){if(o===1||i.itemProp!=null)return!1;switch(n){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"?(n=i.disabled,typeof i.precedence=="string"&&n==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 Oz(n){return!(n.type==="stylesheet"&&(n.state.loading&3)===0)}function Ij(n,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=mr(c.href),p=i.querySelector(Do(f));if(p){i=p._p,i!==null&&typeof i=="object"&&typeof i.then=="function"&&(n.count++,n=Rc.bind(n),i.then(n,n)),o.state.loading|=4,o.instance=p,lt(p);return}p=i.ownerDocument||i,c=Tz(c),(f=ln.get(f))&&Wd(c,f),p=p.createElement("link"),lt(p);var w=p;w._p=new Promise(function(k,S){w.onload=k,w.onerror=S}),gt(p,"link",c),o.instance=p}n.stylesheets===null&&(n.stylesheets=new Map),n.stylesheets.set(o,i),(i=o.state.preload)&&(o.state.loading&3)===0&&(n.count++,o=Rc.bind(n),i.addEventListener("load",o),i.addEventListener("error",o))}}var Qd=0;function Bj(n,i){return n.stylesheets&&n.count===0&&Cc(n,n.stylesheets),0<n.count||0<n.imgCount?function(o){var c=setTimeout(function(){if(n.stylesheets&&Cc(n,n.stylesheets),n.unsuspend){var p=n.unsuspend;n.unsuspend=null,p()}},6e4+i);0<n.imgBytes&&Qd===0&&(Qd=62500*kj());var f=setTimeout(function(){if(n.waitingForImages=!1,n.count===0&&(n.stylesheets&&Cc(n,n.stylesheets),n.unsuspend)){var p=n.unsuspend;n.unsuspend=null,p()}},(n.imgBytes>Qd?50:800)+i);return n.unsuspend=o,function(){n.unsuspend=null,clearTimeout(c),clearTimeout(f)}}:null}function Rc(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Cc(this,this.stylesheets);else if(this.unsuspend){var n=this.unsuspend;this.unsuspend=null,n()}}}var Oc=null;function Cc(n,i){n.stylesheets=null,n.unsuspend!==null&&(n.count++,Oc=new Map,i.forEac
vendor: 9,856 bytes, line 10
10h(Hj,n),Oc=null,Rc.call(n))}function Hj(n,i){if(!(i.state.loading&4)){var o=Oc.get(n);if(o)var c=o.get(null);else{o=new Map,Oc.set(n,o);for(var f=n.querySelectorAll("link[data-precedence],style[data-precedence]"),p=0;p<f.length;p++){var w=f[p];(w.nodeName==="LINK"||w.getAttribute("media")!=="not all")&&(o.set(w.dataset.precedence,w),c=w)}c&&o.set(null,c)}f=i.instance,w=f.getAttribute("data-precedence"),p=o.get(w)||c,p===c&&o.set(null,f),o.set(w,f),this.count++,c=Rc.bind(this),f.addEventListener("load",c),f.addEventListener("error",c),p?p.parentNode.insertBefore(f,p.nextSibling):(n=n.nodeType===9?n.head:n,n.insertBefore(f,n.firstChild)),i.state.loading|=4}}var Lo={$$typeof:R,Provider:null,Consumer:null,_currentValue:ce,_currentValue2:ce,_threadCount:0};function qj(n,i,o,c,f,p,w,k,S){this.tag=1,this.containerInfo=n,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Gl(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Gl(0),this.hiddenUpdates=Gl(null),this.identifierPrefix=c,this.onUncaughtError=f,this.onCaughtError=p,this.onRecoverableError=w,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=S,this.incompleteTransitions=new Map}function Cz(n,i,o,c,f,p,w,k,S,D,B,K){return n=new qj(n,i,o,w,S,D,B,K,k),i=1,p===!0&&(i|=24),p=Jt(3,null,null,i),n.current=p,p.stateNode=n,i=Nu(),i.refCount++,n.pooledCache=i,i.refCount++,p.memoizedState={element:c,isDehydrated:o,cache:i},Lu(p),n}function Nz(n){return n?(n=Gi,n):Gi}function xz(n,i,o,c,f,p){f=Nz(f),c.context===null?c.context=f:c.pendingContext=f,c=ja(i),c.payload={element:o},p=p===void 0?null:p,p!==null&&(c.callback=p),o=_a(n,c,i),o!==null&&($t(o,n,i),po(o,n,i))}function Dz(n,i){if(n=n.memoizedState,n!==null&&n.dehydrated!==null){var o=n.retryLane;n.retryLane=o!==0&&o<i?o:i}}function ef(n,i){Dz(n,i),(n=n.alternate)&&Dz(n,i)}function Pz(n){if(n.tag===13||n.tag===31){var i=ci(n,67108864);i!==null&&$t(i,n,67108864),ef(n,67108864)}}function Lz(n){if(n.tag===13||n.tag===31){var i=Ft();i=Yl(i);var o=ci(n,i);o!==null&&$t(o,n,i),ef(n,i)}}var Nc=!0;function Kj(n,i,o,c){var f=L.T;L.T=null;var p=F.p;try{F.p=2,tf(n,i,o,c)}finally{F.p=p,L.T=f}}function Jj(n,i,o,c){var f=L.T;L.T=null;var p=F.p;try{F.p=8,tf(n,i,o,c)}finally{F.p=p,L.T=f}}function tf(n,i,o,c){if(Nc){var f=nf(c);if(f===null)Bd(n,i,c,xc,o),Uz(n,c);else if(Zj(f,n,i,o,c))c.stopPropagation();else if(Uz(n,c),i&4&&-1<Vj.indexOf(n)){for(;f!==null;){var p=Mi(f);if(p!==null)switch(p.tag){case 3:if(p=p.stateNode,p.current.memoizedState.isDehydrated){var w=ai(p.pendingLanes);if(w!==0){var k=p;for(k.pendingLanes|=2,k.entangledLanes|=2;w;){var S=1<<31-qt(w);k.entanglements[1]|=S,w&=~S}An(p),(xe&6)===0&&(yc=Bt()+500,Oo(0))}}break;case 31:case 13:k=ci(p,2),k!==null&&$t(k,p,2),zc(),ef(p,2)}if(p=nf(c),p===null&&Bd(n,i,c,xc,o),p===f)break;f=p}f!==null&&c.stopPropagation()}else Bd(n,i,c,null,o)}}function nf(n){return n=iu(n),af(n)}var xc=null;function af(n){if(xc=null,n=Li(n),n!==null){var i=l(n);if(i===null)n=null;else{var o=i.tag;if(o===13){if(n=u(i),n!==null)return n;n=null}else if(o===31){if(n=d(i),n!==null)return n;n=null}else if(o===3){if(i.stateNode.current.memoizedState.isDehydrated)return i.tag===3?i.stateNode.containerInfo:null;n=null}else i!==n&&(n=null)}}return xc=n,null}function Mz(n){switch(n){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Cv()){case Jh:return 2;case Vh:return 8;case vs:case Nv:return 32;case Zh:return 268435456;default:return 32}default:return 32}}var rf=!1,Pa=null,La=null,Ma=null,Mo=new Map,Uo=new Map,Ua=[],Vj="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 Uz(n,i){switch(n){case"focusin":case"focusout":Pa=null;break;case"dragenter":case"dragleave":La=null;break;case"mouseover":case"mouseout":Ma=null;break;case"pointerover":case"pointerout":Mo.delete(i.pointerId);break;case"gotpointercapture":case"lostpointercapture":Uo.delete(i.pointerId)}}function $o(n,i,o,c,f,p){return n===null||n.nativeEvent!==p?(n={blockedOn:i,domEventName:o,eventSystemFlags:c,nativeEvent:p,targetContainers:[f]},i!==null&&(i=Mi(i),i!==null&&Pz(i)),n):(n.eventSystemFlags|=c,i=n.targetContainers,f!==null&&i.indexOf(f)===-1&&i.push(f),n)}function Zj(n,i,o,c,f){switch(i){case"focusin":return Pa=$o(Pa,n,i,o,c,f),!0;case"dragenter":return La=$o(La,n,i,o,c,f),!0;case"mouseover":return Ma=$o(Ma,n,i,o,c,f),!0;case"pointerover":var p=f.pointerId;return Mo.set(p,$o(Mo.get(p)||null,n,i,o,c,f)),!0;case"gotpointercapture":return p=f.pointerId,Uo.set(p,$o(Uo.get(p)||null,n,i,o,c,f)),!0}return!1}function $z(n){var i=Li(n.target);if(i!==null){var o=l(i);if(o!==null){if(i=o.tag,i===13){if(i=u(o),i!==null){n.blockedOn=i,Qh(n.priority,function(){Lz(o)});return}}else if(i===31){if(i=d(o),i!==null){n.blockedOn=i,Qh(n.priority,function(){Lz(o)});return}}else if(i===3&&o.stateNode.current.memoizedState.isDehydrated){n.blockedOn=o.tag===3?o.stateNode.containerInfo:null;return}}}n.blockedOn=null}function Dc(n){if(n.blockedOn!==null)return!1;for(var i=n.targetContainers;0<i.length;){var o=nf(n.nativeEvent);if(o===null){o=n.nativeEvent;var c=new o.constructor(o.type,o);au=c,o.target.dispatchEvent(c),au=null}else return i=Mi(o),i!==null&&Pz(i),n.blockedOn=o,!1;i.shift()}return!0}function Iz(n,i,o){Dc(n)&&o.delete(i)}function Gj(){rf=!1,Pa!==null&&Dc(Pa)&&(Pa=null),La!==null&&Dc(La)&&(La=null),Ma!==null&&Dc(Ma)&&(Ma=null),Mo.forEach(Iz),Uo.forEach(Iz)}function Pc(n,i){n.blockedOn===i&&(n.blockedOn=null,rf||(rf=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,Gj)))}var Lc=null;function Bz(n){Lc!==n&&(Lc=n,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){Lc===n&&(Lc=null);for(var i=0;i<n.length;i+=3){var o=n[i],c=n[i+1],f=n[i+2];if(typeof c!="function"){if(af(c||o)===null)continue;break}var p=Mi(o);p!==null&&(n.splice(i,3),i-=3,nd(p,{pending:!0,data:f,method:o.method,action:c},c,f))}}))}function wr(n){function i(S){return Pc(S,n)}Pa!==null&&Pc(Pa,n),La!==null&&Pc(La,n),Ma!==null&&Pc(Ma,n),Mo.forEach(i),Uo.forEach(i);for(var o=0;o<Ua.length;o++){var c=Ua[o];c.blockedOn===n&&(c.blockedOn=null)}for(;0<Ua.length&&(o=Ua[0],o.blockedOn===null);)$z(o),o.blockedOn===null&&Ua.shift();if(o=(n.ownerDocument||n).$$reactFormReplay,o!=null)for(c=0;c<o.length;c+=3){var f=o[c],p=o[c+1],w=f[xt]||null;if(typeof p=="function")w||Bz(o);else if(w){var k=null;if(p&&p.hasAttribute("formAction")){if(f=p,w=p[xt]||null)k=w.formAction;else if(af(f)!==null)continue}else k=w.action;typeof k=="function"?o[c+1]=k:(o.splice(c,3),c-=3),Bz(o)}}}function Hz(){function n(p){p.canIntercept&&p.info==="react-transition"&&p.intercept({handler:function(){return new Promise(function(w){return f=w})},focusReset:"manual",scroll:"manual"})}function i(){f!==null&&(f(),f=null),c||setTimeout(o,20)}function o(){if(!c&&!navigation.transition){var p=navigation.currentEntry;p&&p.url!=null&&navigation.navigate(p.url,{state:p.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var c=!1,f=null;return navigation.addEventListener("navigate",n),navigation.addEventListener("navigatesuccess",i),navigation.addEventListener("navigateerror",i),setTimeout(o,100),function(){c=!0,navigation.removeEventListener("navigate",n),navigation.removeEventListener("navigatesuccess",i),navigation.removeEventListener("navigateerror",i),f!==null&&(f(),f=null)}}}function of(n){this._internalRoot=n}Mc.prototype.render=of.prototype.render=function(n){var i=this._internalRoot;if(i===null)throw Error(r(409));var o=i.current,c=Ft();xz(o,c,n,i,null,null)},Mc.prototype.unmount=of.prototype.unmount=function(){var n=this._internalRoot;if(n!==null){this._internalRoot=null;var i=n.containerInfo;xz(n.current,2,null,n,null,null),zc(),i[Pi]=null}};function Mc(n){this._internalRoot=n}Mc.prototype.unstable_scheduleHydration=function(n){if(n){var i=Xh();n={blockedOn:null,target:n,priority:i};for(var o=0;o<Ua.length&&i!==0&&i<Ua[o].priority;o++);Ua.splice(o,0,n),o===0&&$z(n)}};var qz=t.version;if(qz!=="19.2.6")throw Error(r(527,qz,"19.2.6"));F.findDOMNode=function(n){var i=n._reactInternals;if(i===void 0)throw typeof n.render=="function"?Error(r(188)):(n=Object.keys(n).join(","),Error(r(268,n)));return n=y(i),n=n!==null?z(n):null,n=n===null?null:n.stateNode,n};var Yj={bundleType:0,version:"19.2.6",rendererPackageName:"react-dom",currentDispatcherRef:L,reconcilerVersion:"19.2.6"};
10if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Uc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Uc.isDisabled&&Uc.supportsFiber)try{Zr=Uc.inject(Yj),Ht=Uc}catch{}}return Bo.createRoot=function(n,i){if(!s(n))throw Error(r(299));var o=!1,c="",f=Fy,p=Wy,w=Xy;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&&(p=i.onCaughtError),i.onRecoverableError!==void 0&&(w=i.onRecoverableError)),i=Cz(n,1,!1,null,null,o,c,null,f,p,w,Hz),n[Pi]=i.current,Id(n),new of(i)},Bo.hydrateRoot=function(n,i,o){if(!s(n))throw Error(r(299));var c=!1,f="",p=Fy,w=Wy,k=Xy,S=null;return o!=null&&(o.unstable_strictMode===!0&&(c=!0),o.identifierPrefix!==void 0&&(f=o.identifierPrefix),o.onUncaughtError!==void 0&&(p=o.onUncaughtError),o.onCaughtError!==void 0&&(w=o.onCaughtError),o.onRecoverableError!==void 0&&(k=o.onRecoverableError),o.formState!==void 0&&(S=o.formState)),i=Cz(n,1,!0,i,o??null,c,f,S,p,w,k,Hz),i.context=Nz(null),o=i.current,c=Ft(),c=Yl(c),f=ja(c),f.callback=null,_a(o,f,c),o=c,i.current.lanes=o,Yr(i,o),An(i),n[Pi]=i.current,Id(n),new Mc(i)},Bo.version="19.2.6",Bo}var Qz;function o_(){if(Qz)return lf.exports;Qz=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),lf.exports=r_(),lf.exports}var s_=o_(),c_="__TSS_CONTEXT",xf=Symbol.for("TSS_SERVER_FUNCTION"),ew=Symbol.for("TSS_SERVER_FUNCTION_FACTORY"),l_="application/x-tss-framed",lh=()=>window.__TSS_START_OPTIONS__;function Gg(e={}){if(e.isNotFound=!0,e.throw)throw e;return e}function Ai(e){return e?.isNotFound===!0}function ws(e){e.statusCode=e.statusCode||e.code||307;const t=new Headers(e.headers);e.href&&t.get("Location")===null&&t.set("Location",e.href);const a=new Response(null,{status:e.statusCode,headers:t});if(a.options=e,e.throw)throw a;return a}function uh(e){return e instanceof Response&&!!e.options}function Yg(e){if(e!==null&&typeof e=="object"&&e.isSerializedRedirect)return ws(e)}function u_(e){return e.replaceAll("\0","/").replaceAll("�","/").replace(/~([~0r])/g,(t,a)=>a==="0"?"\0":a==="r"?"�":a)}const tw=!1;function Ga(e){return e[e.length-1]}function Fg(e,t){return typeof e=="function"?e(t):e}const dh=Object.prototype.hasOwnProperty;function Wg(e){for(const t in e)if(dh.call(e,t))return!0;return!1}const al=()=>Object.create(null),gr=(e,t)=>Va(e,t,!0);function Va(e,t,a,r=0){if(e===t)return e;if(r++>500)return t;const s=Array.isArray(e)&&Array.isArray(t);if(!s&&!(dl(e)&&dl(t)))return t;const l=Object.keys(e),u=l.length,d=Object.keys(t),h=d.length;if(s?u!==e.length||h!==t.length||u&&Ga(l)!==`${u-1}`||h&&Ga(d)!==`${h-1}`:u!==Object.getOwnPropertyNames(e).length||h!==Object.getOwnPropertyNames(t).length||Object.getOwnPropertySymbols(t).length)return t;let y=0,z,m,g;if(s){for(;y<h&&(g=y,m=e[g],z=t[g],z=m===z?m:typeof m=="object"?Va(m,z,a,r):z,z===m);y++);if(y===h&&u===h)return e}else{let v=u===h,j=!0;for(;y<h;y++){g=d[y],m=e[g];const _=t[g];z=m===_?m:typeof m=="object"?Va(m,_,a,r):_,v&&=z===m&&(l[y]===g||dh.call(e,g)),j&&=Object.is(z,_),l[y]=z}if(v)return Object.getOwnPropertySymbols(e).length?t:e;if(j)return t}const b=s?d.fill(0):a?al():{};for(let v=0;v<h;v++)g=s?v:d[v],s?(m=e[g],v>y&&(z=t[g],z=m===z?m:typeof m=="object"?Va(m,z,a,r):z),b[g]=v<y?m:z):b[g]=l[v];return b}function dl(e){return!e||typeof e!="object"?!1:(Object.getPrototypeOf(e)?.constructor??Object)===Object}function kn(e,t,a,r){if(e===t)return!0;if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;for(let s=0,l=e.length;s<l;s++){const u=e[s],d=t[s];if(u!==d&&!kn(u,d,a,r))return!1}return!0}if(dl(e)&&dl(t)){if(a){for(const l in t)if((r||t[l]!==void 0)&&!kn(e[l],t[l],a,r))return!1;return!0}let s=0;if(r)s=Object.keys(e).length;else for(const l in e)e[l]!==void 0&&s++;for(const l in t)if((r||t[l]!==void 0)&&(s--===0||!kn(e[l],t[l],a,r)))return!1;return s===0}return!1}function d_(e){return typeof e?.message!="string"?!1:e.message.startsWith("Failed to fetch dynamically imported module")||e.message.startsWith("error loading dynamically imported module")||e.message.startsWith("Importing a module script failed")}const f_=/[\x00-\x1f\x7f"<>`{}]/g;function h_(e){return e.replace(f_,t=>"%"+t.charCodeAt(0).toString(16).toUpperCase().padStart(2,"0"))}function nw(e){let t;try{t=decodeURI(e)}catch{t=e.replaceAll(/%[0-9A-F]{2}/gi,a=>{try{return decodeURI(a)}catch{return a}})}return h_(t)}const p_=["http:","https:","mailto:","tel:"];function ts(e){if(e[0]!=="/"&&e.includes(":"))return/^[\x00-\x20]*([a-z][a-z\d+.\t\n\r-]*:)/i.exec(e)?.[1]?.replace(/[\t\n\r]/g,"").toLowerCase()}const Xg=/^[\x00-\x20]*[\\/][\t\n\r]*[\\/]/;function Qg(e,t){if(!e)return!1;if(Xg.test(e))return!0;const a=ts(e);return a?!t.has(a):!1}const y_={"&":"\\u0026",">":"\\u003e","<":"\\u003c","\u2028":"\\u2028","\u2029":"\\u2029"},m_=/[&><\u2028\u2029]/g;function z_(e){return e.replace(m_,t=>y_[t])}function Ho(e){if(!e)return e;let t=e;if(/[%\\\x00-\x1f\x7f]/.test(e)){const a=/%25|%5C/gi;let r=0,s;for(t="";(s=a.exec(e))!==null;)t+=nw(e.slice(r,s.index))+s[0],r=a.lastIndex;t+=nw(r?e.slice(r):e)}return t}function w_(e){return/[\s\u0080-\uFFFF]/.test(e)?e.replace(/\s|[^\u0000-\u007F]/gu,encodeURIComponent):e}function g_(e,t){if(e===t)return!0;
10if(e.length!==t.length)return!1;for(let a=0;a<e.length;a++)if(e[a]!==t[a])return!1;return!0}function Mr(e){return e.replace(/\/{2,}/g,"/")}function eb(e){return e==="/"?e:e.replace(/^\/+/,"")}function Dn(e){const t=e.length;return t>1&&e[t-1]==="/"?e.replace(/\/+$/,""):e}function tb(e){return Dn(eb(e))}function aw(e,t){return e?.endsWith("/")&&e!=="/"&&e!==`${t}/`?e.slice(0,-1):e}function iw(e,t,a="never",r){if(t.includes("//")&&(t=Mr(t)),t.startsWith("/"))return t.length===1||a==="preserve"?t:a==="always"?t.endsWith("/")?t:`${t}/`:t.endsWith("/")?t.slice(0,-1):t;const s=t===".";let l;if(r){l=s?e:e+"\0"+t;const y=r.get(l);if(y)return y}let u;if(s)u=e.split("/");else{for(e.includes("//")&&(e=Mr(e)),u=e.split("/");u.length>1&&Ga(u)==="";)u.pop();const y=t.split("/");for(let z=0,m=y.length;z<m;z++){const g=y[z];g===""?z?z===m-1&&u.push(g):u=[g]:g===".."?u.length>1?u.pop():u=[""]:g==="."||u.push(g)}}u.length>1&&(Ga(u)===""?a==="never"&&u.pop():a==="always"&&u.push(""));const d=u.join("/"),h=(s?Mr(d):d)||"/";return l&&r&&r.set(l,h),h}function b_(e){const t=new Map(e.map(r=>[encodeURIComponent(r),r])),a=new RegExp([...t.keys()].join("|").replace(/[.*()]/g,"\\$&"),"g");return r=>r.replace(a,s=>t.get(s)??s)}function k_(e){return e==null||e===""}function v_(e,t,a){if(typeof t!="string")return""+(t??void 0);const r=e==="_splat";if(r&&(!t||/^[a-zA-Z0-9\-._~!/]*$/.test(t)))return t;let s=encodeURIComponent(t);return r&&(s=s.replaceAll("%2F","/")),a?a(s):s}function rw(e,t,a,r,s){const l=e.endsWith("/")?"/":"";let u="";for(const d of t){if(typeof d=="string"){u+=d;continue}const[h,y,z,m]=d,g=h===2,b=g&&m!==void 0?m+l:m;let v=a[y];if(!(h===3&&v==null)){if(s&&(s[y]=v,g&&(s["*"]=v)),g&&k_(v)){if(z==="/"&&!b)continue;v=""}u+=z+v_(y,v,r)+(b||"")}}return u+l||"/"}function fl(e){const t=new Map;let a,r;return{get(s){const l=t.get(s);if(l)return l.visited=!0,l.value},set(s,l){const u=t.get(s);if(u){u.value=l;return}if(t.size>=e){let h=a?.next().value;for(;!h||h.visited;)h?h.visited=!1:a=t.values(),h=a.next().value;h===r&&(a=void 0),t.delete(h.key)}const d={key:s,value:l,visited:!1};r=d,t.set(s,d)},clear(){t.clear(),a=void 0,r=void 0}}}function ns(){throw new Error("Invariant failed")}const Ka=4,nb=5;function j_(e){const t=e.names;if(t)return t;const a=[];for(const r of e)typeof r!="string"&&a.push(r[1]);return e.names=a}function __(e,t,a){const r=e.substring(t,a);if(r.charCodeAt(0)===36)return r.length===1?[2,"_splat","",void 0]:[1,r.substring(1),"",""];const s=r.indexOf("{");if(s>=0){const l=r.indexOf("}",s),u=r.charCodeAt(s+1)===45,d=s+(u?3:2);if(l>=0&&r.charCodeAt(d-1)===36&&(!u||d<l)){const h=r.substring(d,l);return[u?3:h?1:2,h||"_splat",r.substring(0,s),e.substring(t+l+1,h?a:e.length)]}}return r}function as(e,t,a,r,s,l){let u=a;const d=t.fullPath??t.from,h=t.options,y=d.length,z=d.endsWith("/")?y-1:y,m=h?.caseSensitive??e,g=h?.params?.parse??h?.parseParams;let b,v=l?a-1:0;if(!r||d.includes("$")){b=l?.slice()??[];const T=Ga(b);T&&typeof T!="string"&&T[0]===2&&(b[b.length-1]=[T[0],T[1],T[2],T[3]===void 0?void 0:T[3]+d.substring(a-(d[a-2]==="/"?2:1),z)],v=y)}for(;u<y;){const T=u,O=d.indexOf("/",T);let R=O===-1?y:O;const M=__(d,T,R);u=R+1;let Z;if(typeof M=="string"){if(!r)continue;let I=M,N;m?N=r.static??=new Map:(I=M.toLowerCase(),N=r.staticInsensitive??=new Map);const G=N.get(I);if(G)Z=G;else{const Q=_i(r);Z=Q,N.set(I,Q)}}else{const I=M[0];let N=M[2],G=M[3]??"";if(I===2&&(R=y,u=R+1),b&&v<R&&(v<T-1&&b.push(d.substring(v,T-1)),M[2]="/"+N,I===2&&M[3]!==void 0&&z<y&&(M[3]=G.slice(0,-1)),b.push(M),v=R),!r)continue;const Q=m&&!!(N||G);m||(N=N.toLowerCase(),G=G.toLowerCase());const oe=I===1?r.dynamic??=[]:I===3?r.optional??=[]:r.wildcard??=[],J=I!==2&&!g&&oe.find(V=>!V.parse&&V.caseSensitive===Q&&V.prefix===N&&V.suffix===G);if(J)Z=J;else{const V=_i(r,I,Q,N,G);Z=V,oe.push(V),oe.length===2&&s?.push(oe)}}r=Z}b&&v<z&&b.push(d.substring(v,z));const j=b?.slice();if(!r)return j;
10if(g&&t.children&&!t.isRoot&&t.id&&t.id.charCodeAt(t.id.lastIndexOf("/")+1)===95){const T=_i(r,nb);(r.pathless??=[]).push(T),r=T}const _=(t.path||!t.children)&&!t.isRoot;if(_&&z<y){const T=_i(r,Ka);r.index=T,r=T}return r.parse=g??null,r.priority=h?.params?.priority??0,r.route||(r.data=j,_&&(r.route=t)),[r,u,j]}function ab(e,t){if(e.parse&&!t.parse)return-1;if(!e.parse&&t.parse)return 1;if(e.parse&&t.parse&&(e.priority||t.priority))return t.priority-e.priority;if(e.prefix&&t.prefix&&e.prefix!==t.prefix){if(e.prefix.startsWith(t.prefix))return-1;if(t.prefix.startsWith(e.prefix))return 1}if(e.suffix&&t.suffix&&e.suffix!==t.suffix){if(e.suffix.endsWith(t.suffix))return-1;if(t.suffix.endsWith(e.suffix))return 1}return e.prefix&&!t.prefix?-1:!e.prefix&&t.prefix?1:e.suffix&&!t.suffix?-1:!e.suffix&&t.suffix?1:e.caseSensitive&&!t.caseSensitive?-1:!e.caseSensitive&&t.caseSensitive?1:0}function _i(e,t=0,a,r,s){return{kind:t,depth:e?e.depth+1:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,data:void 0,parent:e,parse:null,priority:0,caseSensitive:a,prefix:r,suffix:s}}function S_(e,t){const a=_i(),r=[];function s(l,u,d,h){const[y,z,m]=as(!1,l,u,d,r,h);if(l.children)for(const g of l.children)s(g,z,y,m)}for(const l of e)s(l,1,a);for(const l of r)l.sort(ab);t.masksTree=a,t.flatCache=fl(1e3)}function T_(e,t){e||="/";const a=t.flatCache.get(e);if(a!==void 0)return a;const r=fh(e,t.masksTree);return t.flatCache.set(e,r),r}function E_(e,t,a,r,s){e||="/",r||="/";const l=t?`case\0${e}`:e;let u=s.singleCache.get(l);return u||(u=_i(),as(t,{from:e},1,u),s.singleCache.set(l,u)),fh(r,u,a)}function A_(e,t,a=!1){const r=a?e:`nofuzz\0${e}`,s=t.matchCache.get(r);if(s!==void 0)return s;e||="/";let l;try{l=fh(e,t.segmentTree,a)}catch(u){if(u instanceof URIError)l=null;else throw u}return l&&(l.branch=rb(l.route)),t.matchCache.set(r,l),l}function R_(e,t=!1){const a=_i(),r=[],s={},l={};let u=0;function d(h,y,z,m){if(h.init(u),h.id in s&&ns(),s[h.id]=h,u!==0&&h.path){const j=Dn(h.fullPath);(!l[j]||h.fullPath.endsWith("/"))&&(l[j]=h)}u++;const[g,b,v]=as(t,h,y,z,r,m);if(h._interpolation=v,h.children)for(const j of h.children)d(j,b,g,v)}d(e,1,a);for(const h of r)h.sort(ab);return{processedTree:{segmentTree:a,singleCache:fl(1e3),matchCache:fl(1e3),flatCache:null,masksTree:null},routesById:s,routesByPath:l}}function fh(e,t,a=!1){const r=e.split("/"),s=C_(e,r,t,a);if(!s)return null;const[l]=ib(e,r,s);return{route:s.node.route,rawParams:l}}function ib(e,t,a){const r=O_(a.node),s=a.node.data&&j_(a.node.data),l=Object.create(null);let u=a.extract?.part??0,d=a.extract?.node??0,h=a.extract?.path??0,y=a.extract?.param??0;for(;d<r.length;u++,d++,h++){const z=r[d];if(z.kind===Ka)break;if(z.kind===nb){u--,h--;continue}const m=t[u],g=h;if(m&&(h+=m.length),z.kind===1||z.kind===3){const b=s[y++];if(z.kind===3&&a.skipped&1<<d){u--,h=g-1;continue}const v=z.suffix||z.prefix?m.substring(z.prefix.length,m.length-z.suffix.length):m;(v||z.kind===1)&&(l[b]=decodeURIComponent(v))}else if(z.kind===2){const b=z,v=e.substring(g+b.prefix.length,e.length-b.suffix.length),j=decodeURIComponent(v);l["*"]=j,l._splat=j;break}}return a.rawParams&&Object.assign(l,a.rawParams),[l,{part:u,node:d,path:h,param:y}]}function rb(e){const t=[e];for(;e.parentRoute;)e=e.parentRoute,t.push(e);return t.reverse(),t}function O_(e){const t=Array(e.depth+1);do t[e.depth]=e,e=e.parent;while(e);return t}function C_(e,t,a,r){if(e==="/"&&a.index)return{node:a.index,skipped:0};const s=!Ga(t),l=s&&e!=="/",u=t.length-(s?1:0),d=[{node:a,index:1,skipped:0,statics:0,dynamics:0,optionals:0}];let h=null,y=null;for(;d.length;){const z=d.pop(),{node:m,index:g,skipped:b,statics:v,dynamics:j,optionals:_}=z;let{extract:T,rawParams:O}=z;if(m.kind===2&&m.route&&!Ic(y,z))continue;if(m.parse){if(!ow(e,t,z))continue;O=z.rawParams,T=z.extract}r&&m.route&&m.kind!==Ka&&Ic(h,z)&&(h=z);const R=g===u;if(R&&(m.route&&(!l||m.kind===Ka||m.kind===2)&&Ic(y,z)&&(y=z),!m.optional&&!m.wildcard&&!m.index&&!m.pathless))continue;const M=R?void 0:t[g];let Z;if(R&&m.index){const I={node:m.index,index:g,skipped:b,statics:v,dynamics:j,optionals:_,extract:T,rawParams:O};let N=!0;if(m.index.parse&&(ow(e,t,I)||(N=!1)),N){if(!j&&!_&&!b&&N_(v,u))return I;Ic(y,I)&&(y=I)}}if(m.wildcard)for(let I=m.wildcard.length-1;I>=0;I--){const N=m.wildcard[I],{prefix:G,suffix:Q}=N;if(!(G&&(R||!(N.caseSensitive?M:Z??=M.toLowerCase()).startsWith(G)))){if(Q){if(R)continue;const oe=t.slice(g).join("/"),J=oe.slice(-Q.length);if((N.caseSensitive?J:J.toLowerCase())!==Q||oe.length-Q.length<G.length)continue}d.push({node:N,index:u,skipped:b,statics:v,dynamics:j,optionals:_,extract:T,rawParams:O})}}if(m.optional){const I=b|1<<m.depth+1;for(let N=m.optional.length-1;N>=0;N--){const G=m.optional[N];d.push({node:G,index:g,skipped:I,statics:v,dynamics:j,optionals:_,extract:T,rawParams:O})}if(!R)for(let N=m.optional.length-1;N>=0;N--){const G=m.optional[N],{prefix:Q,suffix:oe}=G;if(Q||oe){const J=G.caseSensitive?M:Z??=M.toLowerCase();if(Q&&!J.startsWith(Q)||oe&&J.indexOf(oe,J.length-oe.length)<Q.length)continue}d.push({node:G,index:g+1,skipped:b,statics:v,dynamics:j,optionals:_+$c(u,g),extract:T,rawParams:O})}}if(!R&&m.dynamic&&M)for(let I=m.dynamic.length-1;I>=0;I--){const N=m.dynamic[I],{prefix:G,suffix:Q}=N;if(G||Q){const oe=N.caseSensitive?M:Z??=M.toLowerCase();if(G&&!oe.startsWith(G)||Q&&oe.indexOf(Q,oe.length-Q.length)<G.length)continue}d.push({node:N,index:g+1,skipped:b,statics:v,dynamics:j+$c(u,g),optionals:_,extract:T,rawParams:O})}if(!R&&m.staticInsensitive){const I=m.staticInsensitive.get(Z??=M.toLowerCase());I&&d.push({node:I,index:g+1,skipped:b,statics:v+$c(u,g),dynamics:j,optionals:_,extract:T,rawParams:O})}if(!R&&m.static){const I=m.static.get(M);I&&d.push({node:I,index:g+1,skipped:b,statics:v+$c(u,g),dynamics:j,optionals:_,extract:T,rawParams:O})}if(m.pathless)for(let I=m.pathless.length-1;I>=0;I--){const N=m.pathless[I];d.push({node:N,index:g,skipped:b,statics:v,dynamics:j,optionals:_,extract:T,rawParams:O})}}if(y)return y;if(r&&h){let z=h.index;for(let g=0;g<h.index;g++)z+=t[g].length;const m=z===e.length?"/":e.slice(z);return h.rawParams??=Object.create(null),h.rawParams["**"]=decodeURIComponent(m),h}return null}function $c(e,t){return 2**(e-t-1)}function N_(e,t){return e===2**(t-1)-1}function ow(e,t,a){let r,s;try{[r,s]=ib(e,t,a)}catch{return null}if(a.rawParams=r,a.extract=s,!a.node.parse)return!0;try{if(a.node.parse(r)===!1)return null}catch{}return!0}function Ic(e,t){return e?t.statics>e.statics||t.statics===e.statics&&(t.dynamics>e.dynamics||t.dynamics===e.dynamics&&(t.optionals>e.optionals||t.optionals===e.optionals&&((t.node.kind===Ka)>(e.node.kind===Ka)||t.node.kind===Ka==(e.node.kind===Ka)&&t.node.depth>e.node.depth))):!0}function x_(){try{return sessionStorage}catch{return}}const D_="tsr-scroll-restoration-v1_3",ob=x_();function P_(){try{return JSON.parse(ob?.getItem("tsr-scroll-restoration-v1_3")||"{}")}catch{return{}}}const br=P_(),sw="data-scroll-restoration-id",L_=e=>e.state.__TSR_key||e.href;function M_(e){const t=e.getAttribute(sw);if(t)return`[${sw}="${t}"]`;let a="",r=e,s;for(;s=r.parentNode;){let l=1,u=r;
10for(;u=u.previousElementSibling;)l++;const d=`${r.localName}:nth-child(${l})`;a=a?`${d} > ${a}`:d,r=s}return a}let Bc=!1;const il="window";function Df(e){try{return typeof e=="function"?e():document.querySelector(e)}catch{}}function cw(e){const t=new Set;for(const a of e){if(a===il)continue;const r=Df(a);r&&t.add(r)}return t}function U_(e,t){const a=e.options.scrollRestoration,r=e._scroll;a&&(r.e=!0);const s=e.options.getScrollRestorationKey||L_,l=new Set,u=d=>{const h=br[d]||={};for(const y of l)y===document?h[il]={scrollX,scrollY}:y.isConnected&&(h[M_(y)]={scrollX:y.scrollLeft,scrollY:y.scrollTop})};a&&!r.s&&(r.s=!0,Bc=!1,history.scrollRestoration="manual",document.addEventListener("scroll",d=>{Bc||l.add(d.target)},!0),e.subscribe("onBeforeLoad",d=>{d.fromLocation&&u(s(d.fromLocation)),l.clear()}),addEventListener("pagehide",()=>{history.scrollRestoration="auto",u(s(e.stores.resolvedLocation.get()??e.stores.location.get()));try{ob?.setItem(D_,JSON.stringify(br))}catch{}}),addEventListener("pageshow",d=>{d.persisted&&(history.scrollRestoration="manual")})),!r.r&&(r.r=!0,e.subscribe("onRendered",d=>{const h=e.options.scrollRestorationBehavior,y=e.options.scrollToTopSelectors,z=r.n,m=r.h;let g;if(l.clear(),r.n=!0,r.h=!1,typeof e.options.scrollRestoration=="function"&&!e.options.scrollRestoration({location:e.latestLocation}))return;const b=s(d.toLocation),v=d.fromLocation&&s(d.fromLocation);if(r.e&&v&&v!==b){const j=br[v];if(j){let _=br[b];for(const T in j){if(T===il){if(z)continue}else{const O=Df(T);if(!O||z&&y&&(g??=cw(y),g.has(O)))continue}_||(_=br[b]={}),_[T]??=j[T]}}}Bc=!0;try{const j=d.toLocation.hash,_=d.toLocation.state.__hashScrollIntoViewOptions??!0;let T=!1;if(z){!j&&y&&(g??=cw(y));const O=j&&_&&m,R=r.e?br[b]:void 0;if(R)for(const M in R){const{scrollX:Z,scrollY:I}=R[M];if(M===il){if(O)continue;scrollTo({top:I,left:Z,behavior:h}),T=!0}else{const N=Df(M);N&&(N.scrollLeft=Z,N.scrollTop=I,g?.delete(N))}}if(!j){const M={top:0,left:0,behavior:h};if(T||scrollTo(M),g)for(const Z of g)Z.scrollTo(M)}}!T&&j&&_&&document.getElementById(j)?.scrollIntoView(_)}finally{Bc=!1}}))}function sb(e,t=String){let a;for(const r in e){const s=e[r];s!==void 0&&(a||=new URLSearchParams).set(r,t(s))}return a?a.toString():""}function hf(e){return e?e==="false"?!1:e==="true"?!0:+e*0===0&&+e+""===e?+e:e:""}function $_(e){const t=new URLSearchParams(e),a=Object.create(null);for(const[r,s]of t.entries()){const l=a[r];l==null?a[r]=hf(s):Array.isArray(l)?l.push(hf(s)):a[r]=[l,hf(s)]}return a}const cb=/^(?:\s|["[{\d-]|fa|nu|tr)/,I_=H_(JSON.parse),B_=q_(JSON.stringify,JSON.parse);function H_(e){const t=e===JSON.parse;return a=>{a[0]==="?"&&(a=a.substring(1));const r=$_(a);for(const s in r){const l=r[s];if(typeof l=="string"){if(t&&!cb.test(l))continue;try{r[s]=e(l)}catch{}}}return r}}function q_(e,t){const a=t===JSON.parse;function r(s){if(s&&typeof s=="object")try{return e(s)}catch{}else if(t&&typeof s=="string"){if(a&&!cb.test(s))return s;try{return t(s),e(s)}catch{}}return s}return s=>{const l=sb(s,r);return l?`?${l}`:""}}const Ur="__root__";function K_(e,t,a){const r=tb(e),s=`/${r}`,l=t?s:s.toLowerCase(),u=`${l}/`,d={input:({url:h})=>{const y=t?h.pathname:h.pathname.toLowerCase();return y===l?h.pathname="/":y.startsWith(u)&&(h.pathname=h.pathname.slice(s.length)),h},output:({url:h})=>(h.pathname=Mr(`/${r}${h.pathname}`),h)};return a?{input:({url:h})=>Pf(a,d.input({url:h})),output:({url:h})=>d.output({url:lb(a,h)})}:d}function Pf(e,t){const a=e?.input?.({url:t});if(a){if(typeof a=="string")return new URL(a);if(a instanceof URL)return a}return t}function lb(e,t){const a=e?.output?.({url:t});if(a){if(typeof a=="string")return new URL(a);if(a instanceof URL)return a}return t}function J_(e,t){const{createMutableStore:a,createReadonlyStore:r,batch:s}=t,l=new Map,u=a("idle"),d=a(e),h=a(void 0),y=a([]),z=r(()=>y.get().map(j=>l.get(j).get())),m=r(()=>({status:u.get(),isLoading:u.get()==="pending",matches:z.get(),location:d.get(),resolvedLocation:h.get()}));function g(j){let _=l.get(j);return _||(_=a(void 0),l.set(j,_)),_}const b={status:u,location:d,resolvedLocation:h,ids:y,matches:z,byRoute:l,__store:m,getMatchStore:g,setMatches:v};function v(j){const _=y.get(),T=j.map(O=>O.routeId);s(()=>{g_(_,T)||y.set(T);for(const O of _)T.includes(O)||l.get(O).set(()=>{});for(const O of j){const R=g(O.routeId);R.get()!==O&&R.set(O)}})}return b}var Za="__TSR_index",lw="popstate",uw="beforeunload",V_=/^[\x00-\x20]*(?:[\\/][\t\n\r]*){2,}/;function rl(e){const t=V_.exec(e);return t?"/"+e.slice(t[0].length):e}function ub(e){return/[\x00-\x1f\x7f]/.test(e)&&(e=e.replace(/[\x00-\x1f\x7f]/g,t=>`	
11\r`.includes(t)?"":encodeURIComponent(t))),rl(e)}function Z_(e){let t=e.getLocation();const a=new Set,r=u=>{t=e.getLocation(),a.forEach(d=>d({location:t,action:u}))},s=u=>{e.notifyOnIndexChange??!0?r(u):t=e.getLocation()},l=async({task:u,navigateOpts:d,...h})=>{if(d?.ignoreBlocker??!1){u();return}const y=e.getBlockers?.()??[],z=h.type==="PUSH"||h.type==="REPLACE";if(typeof document<"u"&&y.length&&z)for(const m of y){const g=hl(h.path,h.state);if(await m.blockerFn({currentLocation:t,nextLocation:g,action:h.type})){e.onBlocked?.();return}}u()};return{get location(){return t},get length(){return e.getLength()},subscribers:a,subscribe:u=>(a.add(u),()=>{a.delete(u)}),push:(u,d,h)=>{const y=t.state[Za];d=dw(y+1,d),l({task:()=>{e.pushState(u,d),r({type:"PUSH"})},navigateOpts:h,type:"PUSH",path:u,state:d})},replace:(u,d,h)=>{const y=t.state[Za];d=dw(y,d),l({task:()=>{e.replaceState(u,d),r({type:"REPLACE"})},navigateOpts:h,type:"REPLACE",path:u,state:d})},go:(u,d)=>{l({task:()=>{e.go(u,d?.ignoreBlocker??!1),s({type:"GO",index:u})},navigateOpts:d,type:"GO"})},back:u=>{l({task:()=>{e.back(u?.ignoreBlocker??!1),s({type:"BACK"})},navigateOpts:u,type:"BACK"})},forward:u=>{l({task:()=>{e.forward(u?.ignoreBlocker??!1),s({type:"FORWARD"})},navigateOpts:u,type:"FORWARD"})},canGoBack:()=>t.state[Za]!==0,createHref:u=>e.createHref(u),block:u=>{if(!e.setBlockers)return()=>{};const d=e.getBlockers?.()??[];return e.setBlockers([...d,u]),()=>{const h=e.getBlockers?.()??[];e.setBlockers?.(h.filter(y=>y!==u))}},flush:()=>e.flush?.(),destroy:()=>e.destroy?.(),notify:r,_getBlockers:()=>e.getBlockers?.()??[]}}function dw(e,t){const a=hh();return{...t,key:a,__TSR_key:a,[Za]:e}}function G_(e){const t=typeof document<"u"?window:void 0,a=t.history.pushState,r=t.history.replaceState;let s=[];const l=()=>s,u=N=>s=N,d=N=>ub(N),h=(()=>hl(`${t.location.pathname}${t.location.search}${t.location.hash}`,t.history.state));if(!t.history.state?.__TSR_key&&!t.history.state?.key){const N=hh();t.history.replaceState({[Za]:0,key:N,__TSR_key:N},"")}let y=h(),z,m=!1,g=!1,b=!1,v=!1;const j=()=>y;let _;const T=()=>{_&&(I._ignoreSubscribers=!0,(_[2]?t.history.pushState:t.history.replaceState)(_[1],"",_[0]),I._ignoreSubscribers=!1,_=void 0,z=void 0)},O=(N,G,Q)=>{const oe=!!_;oe||(z=y),y=hl(G,Q),_=[y.href,Q,_?.[2]||N],oe||queueMicrotask(()=>T())},R=N=>{y=h(),I.notify({type:N})},M=async()=>
11{if(v=!1,g){g=!1;return}const N=h(),G=N.state[Za]-y.state[Za],Q=G===1,oe=G===-1,J=!Q&&!oe||m;m=!1;const V=J?"GO":oe?"BACK":"FORWARD",X=J?{type:"GO",index:G}:{type:oe?"BACK":"FORWARD"};if(b)b=!1;else{const ye=l();if(typeof document<"u"&&ye.length){for(const re of ye)if(await re.blockerFn({currentLocation:y,nextLocation:N,action:V})){g=!0,t.history.go(-G),I.notify(X);return}}}y=h(),I.notify(X)},Z=N=>{if(v){v=!1;return}let G=!1;const Q=l();if(typeof document<"u"&&Q.length)for(const oe of Q){const J=oe.enableBeforeUnload??!0;if(J===!0){G=!0;break}if(typeof J=="function"&&J()===!0){G=!0;break}}if(G)return N.preventDefault(),N.returnValue=""},I=Z_({getLocation:j,getLength:()=>t.history.length,pushState:(N,G)=>O(!0,N,G),replaceState:(N,G)=>O(!1,N,G),back:N=>(N&&(b=!0,v=!0),t.history.back()),forward:N=>{N&&(b=!0,v=!0),t.history.forward()},go:(N,G)=>{m=!0,G&&(b=!0,v=!0),t.history.go(N)},createHref:N=>d(N),flush:T,destroy:()=>{t.history.pushState=a,t.history.replaceState=r,t.removeEventListener(uw,Z,{capture:!0}),t.removeEventListener(lw,M)},onBlocked:()=>{z&&y!==z&&(y=z)},getBlockers:l,setBlockers:u,notifyOnIndexChange:!1});return I._ignoreNextBeforeUnload=N=>{v=!1;try{N=new URL(N,t.document.baseURI).href,v=/^https?:/.test(N)&&(!N.includes("#")||N.split("#")[0]!==t.location.href.split("#")[0])}catch{}},t.addEventListener(uw,Z,{capture:!0}),t.addEventListener(lw,M),t.history.pushState=function(...N){const G=a.apply(t.history,N);return I._ignoreSubscribers||R("PUSH"),G},t.history.replaceState=function(...N){const G=r.apply(t.history,N);return I._ignoreSubscribers||R("REPLACE"),G},I}function hl(e,t){const a=ub(e),r=a.indexOf("#"),s=a.indexOf("?");if(!t){const l=hh();t={[Za]:0,key:l,__TSR_key:l}}return{href:a,pathname:a.substring(0,r>0?s>0?Math.min(r,s):r:s>0?s:a.length),hash:r>-1?a.substring(r):"",search:s>-1?a.slice(s,r===-1?void 0:r):"",state:t}}function hh(){return(Math.random()+1).toString(36).substring(7)}function pf(e,t){return e.protocol!=="http:"&&e.protocol!=="https:"||e.origin!==t||!!e.username||!!e.password}function yf(e){return e.pathname+e.search+e.hash}function fw(e){return e.options.loader||e.options.beforeLoad||e.lazyFn||e.options.component?.preload||e.options.pendingComponent?.preload}function Y_(e){return e instanceof Error?{name:e.name,message:e.message}:{data:e}}function Ol(e,t){return{fromLocation:t,toLocation:e,pathChanged:t?.pathname!==e.pathname,hrefChanged:t?.href!==e.href,hashChanged:t?.hash!==e.hash}}function hw({key:e,__TSR_key:t,__TSR_index:a,__hashScrollIntoViewOptions:r,...s}){return s}function db(e){return e.findIndex(t=>t.status==="error"||t.status==="notFound"||t._notFound)+1}function F_(e,t,a,r,s,l){r&&(t=t.slice(0,r)),s&&(a=a.slice(0,s));for(const u of t){if(l&&e._tx!==l)return;a.some(d=>d.routeId===u.routeId)||e.routesById[u.routeId].options.onLeave?.(u)}for(const u of a){if(l&&e._tx!==l)return;e.routesById[u.routeId].options[t.some(d=>d.routeId===u.routeId)?"onStay":"onEnter"]?.(u)}}var W_=class{constructor(e,t){this.tempLocationKey=`${Math.round(Math.random()*1e7)}`,this._scroll={n:!0},this.subscribers=new Set,this._cache=new Map,this._committed=[],this.startTransition=async a=>(a(),!1),this.update=a=>{const r=this.options;this.options={...r,...a},this.isServer=this.options.isServer??tw??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=G_()),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||r?.rewrite!==l||r?.caseSensitive!==this.options.caseSensitive;if(u&&(this.basepath=s,this.rewrite=s!=="/"&&tb(s)?K_(s,this.options.caseSensitive,l):l),this.history&&this.updateLatestLocation(),this.options.routeTree!==this.routeTree||tw){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=J_(this.latestLocation,d),U_(this)}},this.updateLatestLocation=()=>{this.latestLocation=this.parseLocation(this.history.location,this.latestLocation)},this.buildRouteTree=()=>{const a=R_(this.routeTree,this.options.caseSensitive);return this.options.routeMasks&&S_(this.options.routeMasks,a.processedTree),{...a,resolvePathCache:fl(1e3)}},this.subscribe=(a,r)=>{const s={eventType:a,fn:r};return this.subscribers.add(s),()=>{this.subscribers.delete(s)}},this.emit=a=>{for(const r of this.subscribers)if(r.eventType===a.type)try{r.fn(a)}catch(s){console.error(s)}},this.parseLocation=(a,r)=>
11{const s=({pathname:h,search:y,hash:z,href:m},g)=>{if(!this.rewrite&&!/[ \x00-\x1f\x7f\u0080-\uffff]/.test(h)){const _=this.options.parseSearch(y),T=this.options.stringifySearch(_);return{href:h+T+z,publicHref:h+T+z,pathname:Ho(h),external:!1,searchStr:T,search:gr(r?.search,_),hash:Ho(z.slice(1)),state:Va(r?.state,g)}}const b=Pf(this.rewrite,new URL(m,this.origin)),v=this.options.parseSearch(b.search),j=this.options.stringifySearch(v);return b.search=j,{href:b.href.replace(b.origin,""),publicHref:m,pathname:Ho(rl(b.pathname)),external:!!this.rewrite&&pf(b,this.origin),searchStr:j,search:gr(r?.search,v),hash:Ho(b.hash.slice(1)),state:Va(r?.state,g)}},l=s(a,a.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=(a,r,s)=>typeof a=="string"?this.matchRoutesInternal({pathname:a,search:r},s):this.matchRoutesInternal(a,r),this.getMatchedRoutes=a=>{const r=Object.create(null),s=A_(Dn(a),this.processedTree,!0);return s&&Object.assign(r,s.rawParams),[s?.branch||[this.routesById.__root__],r,s?.route]},this.buildLocation=a=>{{const u=this.staticLocations.get(a);if(u)return u}let r=!1;const s=(u={})=>{if(u.href){const ye=hl(u.href,{});u={...u,to:Pf(this.rewrite,new URL(ye.pathname,this.origin)).pathname,search:this.options.parseSearch(ye.search),hash:ye.hash.slice(1)}}const d=u._fromLocation||this._pendingLocation||this.latestLocation;let h;const y=()=>(r=!0,d),z=()=>(r=!0,h??=this.matchRoutesLightweight(d)),m=u.to?`${u.to}`:".",g=iw(m[0]==="/"?"":u.unsafeRelative==="path"?y().pathname:u.from??z()[1],m,this.options.trailingSlash,this.resolvePathCache),b=this.routesByPath[Dn(g)],v=g.includes("$");let j;if(b)j=b._branch??=rb(b);else if(v)j=[];else{const[ye,re,L]=this.getMatchedRoutes(g);j=ye,this.options.notFoundRoute&&(!L||L.path!=="/"&&re["**"])&&(j=[...j,this.options.notFoundRoute])}const _=v?b?._interpolation??as(!1,{fullPath:g},0):void 0;let T;for(const ye of j){const re=ye.options.params?.stringify??ye.options.stringifyParams;if(re){const L=z()[3];if(T??=mf(u.params,L),!Wg(T))break;T===L&&(T=Object.assign(al(),T));try{Object.assign(T,re(T))}catch{}}}T??=mf(u.params,Q_(u.params,_)?z()[3]:zf);const O=a.leaveParams?g:rl(Ho(_?rw(g,_,T,this.pathParamsDecoder):g)),R=eS(j,a._includeValidateSearch),M=()=>{let ye=z()[2];if(a._includeValidateSearch&&this.options.search?.strict){const re={};j.forEach(L=>{if(L.options.validateSearch)try{Object.assign(re,ol(L.options.validateSearch,{...re,...ye}))}catch{}}),ye=re}return ye},Z=R.length?tS(R,M(),u):u.search===!0?M():typeof u.search=="function"?u.search(M()):u.search||zf,I=this.options.stringifySearch(Z),N=u.hash===!0?y().hash:typeof u.hash=="function"?u.hash(y().hash):u.hash||void 0,G=N?`#${N}`:"",Q=u.state?u.state===!0?y().state:typeof u.state=="function"?u.state(y().state):u.state:zf,oe=`${O}${I}${G}`;let J,V,X=!1;if(this.rewrite){const ye=new URL(oe,this.origin),re=ye.origin,L=lb(this.rewrite,ye);J=yf(ye),pf(L,re)?(V=L.href,X=!0):V=rl(yf(L))}else J=w_(oe),V=J;return{publicHref:V,href:J,pathname:O,search:Z,searchStr:I,state:Q,hash:N??"",external:X,unmaskOnReload:u.unmaskOnReload}},l=s(a);if(a.mask)l.maskedLocation=s({from:a.from,...a.mask});else if(this.options.routeMasks){const u=T_(l.pathname,this.processedTree);if(u){const d=Object.assign(al(),u.rawParams),{from:h,params:y,...z}=u.route,m=mf(y,d);l.maskedLocation=s({from:a.from,...z,params:m})}}return!r&&a._fromLocation&&!l.maskedLocation&&this.staticLocations.set(a,l),l},this.commitLocation=async({viewTransition:a,ignoreBlocker:r,...s})=>{const l=s.maskedLocation??s;if(l.external)return pw(this,l.publicHref,{replace:s.replace,ignoreBlocker:r});let u;const d=Dn(this.latestLocation.href)===Dn(s.href)&&kn(hw(s.state),hw(this.latestLocation.state)),h=this._commitPromise;let y;const z=new Promise(m=>{y=m});if(z.resolve=()=>{y(),h?.resolve()},this._commitPromise=z,d)this.load();else{let{maskedLocation:m,hashScrollIntoView:g,...b}=s;m&&(b={...m,state:{...m.state,__tempKey:void 0,__tempLocation:{...b,search:b.searchStr,state:{...b.state,__tempKey:void 0,__tempLocation:void 0,__TSR_key:void 0,key:void 0}}}},(b.unmaskOnReload??this.options.unmaskOnReload??!1)&&(b.state.__tempKey=this.tempLocationKey)),b.state={...b.state,__hashScrollIntoViewOptions:g??this.options.defaultHashScrollIntoView??!0},this.shouldViewTransition=a,u=s.replace?"REPLACE":"PUSH",this.history[u==="REPLACE"?"replace":"push"](b.publicHref,b.state,{ignoreBlocker:r}),this.history.subscribers.size||this.load({action:{type:u}})}return this._scroll.n=s.resetScroll??!0,this._commitPromise},this.buildAndCommitLocation=({replace:a,resetScroll:r,hashScrollIntoView:s,viewTransition:l,ignoreBlocker:u,...d}={})=>{const h=this.buildLocation({...d,_includeValidateSearch:!0});this._pendingLocation=h;const y=this.commitLocation({...h,viewTransition:l,replace:a,resetScroll:r,hashScrollIntoView:s,ignoreBlocker:u});return queueMicrotask(()=>
11{this._pendingLocation===h&&(this._pendingLocation=void 0)}),y},this.navigate=async({to:a,reloadDocument:r,href:s,publicHref:l,...u})=>{const d=s?ts(s):void 0;if(d||r){if(a!==void 0||!s){const y=this.buildLocation({to:a,...u}),z=y.maskedLocation??y;s??=z.publicHref,l??=z.publicHref}return pw(this,!d&&l?l:s,u)}return this.buildAndCommitLocation({...u,href:s,to:a,_isNavigate:!0})},this.load=async a=>{this.updateLatestLocation(),a?.action&&(this._scroll.h=a.action.type==="PUSH"||a.action.type==="REPLACE"),await lS(this,a)},this.startViewTransition=a=>{const r=this.shouldViewTransition??this.options.defaultViewTransition;if(this.shouldViewTransition=void 0,r&&typeof document.startViewTransition=="function"){let s;if(typeof r=="object"&&window.CSS?.supports?.("selector(:active-view-transition-type(a))")){const l=this.latestLocation,u=this.stores.resolvedLocation.get(),d=typeof r.types=="function"?r.types(Ol(l,u)):r.types;if(d===!1)return a();s={update:a,types:d}}else s=a;return document.startViewTransition(s).updateCallbackDone}return a()},this.invalidate=a=>{const r=this._committed,s=a?.filter,l=this._preloads,u=new Set,d=z=>{(!s||s(z))&&u.add(z.id)};r.forEach(d),this._cache.forEach(d),l?.forEach(z=>z.forEach(d)),this._tx?.[3].forEach(d);const h=[];for(const[z,m]of l??[])m.some(g=>u.has(g.id))&&(l.delete(z),h.push(z));const y=z=>{if(u.has(z.id)){const m=this.routesById[z.routeId],g={...z,invalid:!0,...(a?.forcePending||z.status==="error"||z.status==="notFound")&&fw(m)?{status:"pending",error:void 0}:void 0};return z._flight=void 0,g}return z};this._committed=r.map(y);for(const[z,m]of this._cache)u.has(z)&&(m.invalid=!0,a?.forcePending&&(m.status="pending"));for(const z of u){const m=this._flights?.get(z);this._flights?.delete(z),m&&!m[2]&&h.push(m[1])}for(const z of h)z.abort();return this.shouldViewTransition=!1,this.load({sync:a?.sync})},this.resolveRedirect=a=>{const r=a.options;let s=a.headers.get("Location")||r.href;if(!s){const u=this.buildLocation(r);s=(u.maskedLocation??u).publicHref||"/"}let l;if(Xg.test(s)||(l=ts(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:pf(u,this.origin)||(s=yf(u),l=void 0)}return l&&(r.reloadDocument=!0),r.href=s,a.headers.set("Location",s),a},this.clearCache=a=>{const r=this._cache,s=this._preloads,l=a?.filter,u=[],d=[];for(const[y,z]of r)(!l||l(z))&&(d.push(y),u.push(z));const h=[];for(const[y,z]of s??[])(!l||z.some(l))&&(h.push(y),u.push(...z));for(const y of d)r.delete(y);for(const y of h)s.delete(y);for(const y of u){const z=y._flight;y._flight=void 0,z&&!--z[2]&&(this._flights?.get(y.id)===z&&this._flights.delete(y.id),h.push(z[1]))}for(const y of h)y.abort()},this.loadRouteChunk=sa,this.preloadRoute=a=>uS(this,a),this.matchRoute=(a,r)=>{const s={...a,to:a.to?iw(a.from||"",a.to,this.options.trailingSlash,this.resolvePathCache):void 0,params:a.params||{},leaveParams:!0},l=this.buildLocation(s),u=this.stores.status.get()==="pending";if(r?.pending&&!u)return!1;const d=r?.pending??!u?this.latestLocation:this.stores.resolvedLocation.get()||this.stores.location.get(),h=E_(l.pathname,r?.caseSensitive??!1,r?.fuzzy??!1,d.pathname,this.processedTree);return!h||a.params&&!kn(h.rawParams,a.params,!0)?!1:r?.includeSearch??!0?kn(d.search,l.search,!0)?h.rawParams:!1:h.rawParams},this.getStoreConfig=t,e.pathParamsAllowedCharacters?.length&&(this.pathParamsDecoder=b_(e.pathParamsAllowedCharacters)),this.update({defaultPreloadDelay:50,defaultPendingMs:1e3,defaultPendingMinMs:500,context:void 0,...e,caseSensitive:e.caseSensitive??!1,notFoundMode:e.notFoundMode??"fuzzy",stringifySearch:e.stringifySearch??B_,parseSearch:e.parseSearch??I_,protocolAllowlist:e.protocolAllowlist??p_}),self.__TSR_ROUTER__=this}isShell(){return!!this.options.isShell}get state(){return this.stores.__store.get()}setRoutes(e){Object.assign(this,e),this.lightweightCache=new WeakMap,this.staticLocations=new WeakMap;const t=this.options.notFoundRoute;t&&(t.init(99999999999),this.routesById[t.id]!==t&&(t._interpolation=as(!1,t,0)),this.routesById[t.id]=t)}matchRoutesInternal(e,t){const[a,r,s]=this.getMatchedRoutes(e.pathname);let l=a,u=!1;(s?s.path!=="/"&&r["**"]:Dn(e.pathname))&&(this.options.notFoundRoute?l=[...l,this.options.notFoundRoute]:u=!0);const d=u?nS(this.options.notFoundMode,l):void 0,h=new Array(l.length),y=this._committed,z=(g,b)=>{const v=y[b];return v?.routeId===g.id?v:g===this.options.notFoundRoute?y.find(j=>j.routeId===g.id):void 0};let m;
11for(let g=0;g<l.length;g++){const b=l[g],v=h[g-1];let j,_,T;{const X=v?.search??e.search,ye=v?._strictSearch??void 0;try{const re=ol(b.options.validateSearch,{...X})??void 0;j={...X,...re},_={...ye,...re}}catch(re){let L=re;if(re instanceof pl||(L=new pl(re.message,{cause:re})),t?.throwOnError)throw L;j=X,_={},T=L}}let O="",R="";try{O=b.options.loaderDeps?.({search:j})??"",R=O&&JSON.stringify(O)||""}catch(X){if(t?.throwOnError)throw X;T??=X}const M=al(),Z=b._interpolation?rw(b.fullPath,b._interpolation,r,this.pathParamsDecoder,M):b.fullPath,I=b.id+Z+R,N=z(b,g),G=this._cache.get(I)??(N?.id===I?N:void 0);m=G?._strictParams??Object.assign(M,m);let Q;if(!G)try{yw(b,m)}catch(X){if(Ai(X)||uh(X)?Q=X:Q=new X_(X.message,{cause:X}),t?.throwOnError)throw Q}const oe=N?"stay":"enter";let J;if(G)J={...G,cause:oe,search:gr(N?N.search:G.search,j),_strictSearch:_,searchError:T};else{const X=fw(b)?"pending":"success";J={id:I,ssr:b.options.ssr,index:g,routeId:b.id,params:N?.params??m,_strictParams:m,pathname:Z,updatedAt:Date.now(),search:N?gr(N.search,j):j,_strictSearch:_,searchError:T,status:X,isFetching:!1,error:void 0,paramsError:Q,context:{},abortController:t?._controller??new AbortController,cause:oe,loaderDeps:N?Va(N.loaderDeps,O):O,invalid:!1,preload:!1,staticData:b.options.staticData||{},fullPath:b.fullPath}}const V=d===b.id;J._notFound&&!V&&(J.error=void 0),J._notFound=V,h[g]=J}for(let g=0;g<h.length;g++){const b=h[g];b.params=b.cause==="stay"?gr(b.params,m):m,t?._controller&&(b.context={})}return h}matchRoutesLightweight(e){const t=Ga(this.stores.ids.get()),a=t?this.stores.byRoute.get(t).get():void 0,r=a?.id,s=this.lightweightCache.get(e);if(s&&s[0]===r)return s[1];const[l,u]=this.getMatchedRoutes(e.pathname),d=Ga(l),h={...e.search};for(const g of l)try{Object.assign(h,ol(g.options.validateSearch,h))}catch{}const y=a&&a.routeId===d.id&&a.pathname===e.pathname;let z;if(y)z=a.params;else{const g=u;for(const b of l)try{yw(b,g)}catch{}z=g}const m=[l,d.fullPath,h,z];return this.lightweightCache.set(e,[r,m]),m}};async function pw(e,t,{replace:a,ignoreBlocker:r}){if(!Qg(t,e.protocolAllowlist)){if(!r){const s=e.history._getBlockers();for(const l of s)if(l?.blockerFn&&await l.blockerFn({currentLocation:e.history.location,nextLocation:e.history.location,action:a?"REPLACE":"PUSH"}))return}e.history._ignoreNextBeforeUnload?.(t),a?window.location.replace(t):window.location.href=t}}var pl=class extends Error{},X_=class extends Error{};function ol(e,t){if(e==null)return{};if("~standard"in e){const a=e["~standard"].validate(t);if(a instanceof Promise)throw new pl("Async validation not supported");if(a.issues)throw new pl(JSON.stringify(a.issues,void 0,2),{cause:a});return a.value}return"parse"in e?e.parse(t):typeof e=="function"?e(t):{}}function mf(e,t){if(e===void 0||e===!0)return t;const a=Object.create(null);return e===!1||e===null?a:typeof e=="function"?(Object.assign(a,t),Object.assign(a,e(a))):Object.assign(a,t,e)}function Q_(e,t){return typeof e=="function"?!0:!t||e===!1||e===null?!1:e===void 0||e===!0||t.some(a=>typeof a!="string"&&!dh.call(e,a[1]))}const zf=Object.freeze({});function eS(e,t){const a=[];for(let r=0;r<e.length;r++){const s=e[r].options;if("search"in s)s.search?.middlewares&&a.push(...s.search.middlewares);else if(s.preSearchFilters||s.postSearchFilters){const u=({search:d,next:h})=>{const y=h(s.preSearchFilters?s.preSearchFilters.reduce((z,m)=>m(z),d):d);return s.postSearchFilters?s.postSearchFilters.reduce((z,m)=>m(z),y):y};a.push(u)}const l=s.validateSearch;if(t&&l){const u=({search:d,next:h,meta:y})=>{const z=h(d);try{const m=ol(l,z);if(y&&m)for(const g in m)g in z||(y.defaulted||=new Map).set(g,m[g]);return{...z,...m}}catch{}return z};a.push(u)}}return a}function tS(e,t,a){const r=(s,l,u)=>{if(s>=e.length){if(!a.search)return{};if(a.search===!0)return l;const h=Fg(a.search,l);return u&&(u.explicit=h),h}const d=(h,y)=>{if(y){const z=u||{};return{search:r(s+1,h,z),meta:z}}return r(s+1,h,u)};return e[s]({search:l,next:d,meta:u})};return r(0,t)}function nS(e,t){if(e!=="root"){let a;for(let r=t.length-1;r>=0;r--){const s=t[r];
11if(s.options.notFoundComponent)return s.id;a||=s.children&&s.id}if(a)return a}return Ur}function yw(e,t){const a=e.options.params?.parse??e.options.parseParams;a&&Object.assign(t,a(t))}function Lf(e,t){return e.options[t]?.preload?.()}function aS(e,t){const a=Lf(e,"component");let r=Lf(e,"pendingComponent");return t&&(r?r=r.then(t):t()),a&&r?Promise.all([a,r]).then(()=>{}):a??r}function sa(e,t,a){const r=()=>t===!1?void 0:t?Lf(e,t):aS(e,a),s=e._lazy;if(s)return s===!0?r():s.then(r);if(!e.lazyFn)return r();const l=e.lazyFn().then(u=>{{const{id:d,...h}=u.options;Object.assign(e.options,h),e._lazy=!0}},u=>{throw e._lazy=void 0,u});return e._lazy=l,l.then(r)}function ph(e){const t=e.findIndex(a=>a.status!=="success"||a._notFound)+1;return t&&t<e.length?e.slice(0,t):e}function fb(e){let t=e.length;for(let a=0;a<t;a++){const r=e[a];if(r._assetEnd!==void 0){t=Math.min(t,Math.max(a+1,r._assetEnd));continue}if(r.status!=="success"||r._notFound){t=a+1;break}}return t<e.length?e.slice(0,t):e}const Pn=0,ca=1,Cl=2,Ot=3,Ya=[4];function is(e){return typeof e[0]=="number"}function la(e,t){return t.aborted?Promise.race([Promise.reject(t),e]):new Promise((a,r)=>{const s=()=>r(t);t.addEventListener("abort",s,{once:!0}),Promise.resolve(e).then(a,r).then(()=>t.removeEventListener("abort",s))})}function bn(e,t){return e.routesById[t.routeId]}function rs(e,t,a){return uh(e)?[Ot,e]:Ai(e)?(e.routeId||=a,[Cl,e]):t?(typeof e?.then=="function"&&(e=new Error("A Promise was thrown",{cause:e})),[ca,e]):[Pn,e]}function yh(e,t){let a=rs(t,!0,e.id);if(a[0]!==ca)return a;try{e.options.onError?.(a[1])}catch(r){a=rs(r,!0,e.id)}return a}function Fo(e,t,a,r,s){return s[0].signal.aborted?Ya:wh(e,t,a,yh(a,r),s)}async function iS(e,t,a,r,s,l){const[u,d]=t,h=a[0].signal,y=!!a[3];for(let z=a[6]??0;z<r;z++){const m=d[z],g=bn(e,m);m.abortController=a[0];const b=d[z-1]?.context??e.options.context??{},v={params:m.params,location:u,navigate:O=>e.navigate({...O,_fromLocation:u}),buildLocation:e.buildLocation,cause:y?"preload":m.cause,abortController:a[0],preload:y,matches:d,routeId:g.id};try{const O=m._ctx||=g.options.context?g.options.context({...v,deps:m.loaderDeps,context:b})||{}:void 0;m.context={...b,...O}}catch(O){return oa(e,m),[z,Fo(e,t,g,O,a)]}if(h.aborted)return[z,Ya];const j=m.paramsError??m.searchError;if(j!==void 0)return oa(e,m),[z,Fo(e,t,g,j,a)];const _=g.options.beforeLoad;if(!_)continue;const T=m.status;z>=l&&(m.status="pending",a[7]?.());try{os(e,m,"beforeLoad",a[0]);const O=_({...v,search:m.search,context:m.context,...e.options.additionalContext}),R=await(typeof O?.then=="function"?la(O,h):O);if(h.aborted)return[z,Ya];const M=wh(e,t,g,rs(R,!1,g.id),a);if(M[0]!==Pn)return oa(e,m),[z,M];m.context={...m.context,...R}}catch(O){return oa(e,m),[z,Fo(e,t,g,O,a)]}finally{m.status=T,os(e,m,!1,a[0])}}s()}function mh(e,t,a){if(!(!a||--a[2])){if(e._flights?.get(t.id)===a){const r=e._tx;if(r&&!r[0].signal.aborted&&!r[3].includes(t)&&r[3].some(s=>s.id===t.id)&&r[3].some(s=>s.isFetching==="beforeLoad"))return;e._flights.delete(t.id)}return a[1]}}function oa(e,t){const a=t._flight;t._flight=void 0,mh(e,t,a)?.abort()}function Et(e,t,a,r){const s=[];for(const l of t)if(!a?.includes(l)){const u=l._flight;if(l._flight=void 0,r&&u?.[2]===1&&e._flights?.get(l.id)===u&&a?.some(d=>d.id===l.id))u[2]=0;else{const d=mh(e,l,u);d&&s.push(d)}}for(const l of s)l.abort()}function zh(e){for(const t of e){const a=t._flight;a&&a[2]++}}function os(e,t,a,r){if(t.isFetching=a,r&&e._tx?.[0]!==r)return;const s=e.stores.byRoute.get(t.routeId),l=s?.get();l?.id===t.id&&s.set({...l,isFetching:a})}function hb(e,t,a,r,s,l,u){const d=t[0];return{params:a.params,location:d,navigate:h=>e.navigate({...h,_fromLocation:d}),cause:u?"preload":a.cause,abortController:s,preload:u,deps:a.loaderDeps,parentMatchPromise:l,context:a.context,route:r,...e.options.additionalContext}}async function mw(e,t,a,r,s,l,u){const d=u[0],h=d.signal;if(h.aborted)return Ya;if(!s)return[Pn,void 0];let y=a._flight;os(e,a,"loader",d);try{if(!y){const z=new AbortController;y=[Promise.resolve().then(()=>s(hb(e,t,a,r,z,l,!!u[3]))).then(m=>rs(m,!1,r.id),m=>rs(m,!0,r.id)).then(m=>(m[0]!==Pn&&e._flights?.get(a.id)===y&&(e._flights.delete(a.id),y[2]||z.abort()),m[0]===ca&&y[2]?yh(r,m[1]):m)),z,1],(e._flights??=new Map).set(a.id,y)}return a._flight=y,a.abortController=y[1],wh(e,t,r,await la(y[0],h),u)}catch(z){if(z!==h||!h.aborted)throw z;return oa(e,a),Ya}finally{os(e,a,!1,d)}}function zw(e,t,a){t[0]!==Ot&&(e.status="success",e.error=void 0,t[0]===Pn?(e.loaderData=t[1],e.invali
11d=!1,e.updatedAt=Date.now(),e.preload=a):e.invalid=!0)}function pb(e,t,a){const r=e._cache.get(t.id);if(r!==a||e._committed.some(l=>l.id===t.id&&l._flight===t._flight))return;const s={...t,_notFound:void 0,context:{}};s._flight&&s._flight[2]++,e._cache.set(t.id,s),r&&oa(e,r)}function ww(e,t){return t[0]===ca||t[0]===Cl?{...e,status:t[0]===ca?"error":"notFound",error:t[1],_flight:void 0}:e}function rS(e,t,a,r,s,l,u){const d=t[1][a],h=bn(e,d),y=!!l[3],z=e._cache.get(d.id);let m,g=!1,b;try{if(d.status==="success"&&(m=h.options.shouldReload,typeof m=="function"&&(m=m(hb(e,t,d,h,l[0],s,y))),l[0].signal.aborted&&(b=Ya)),!b)if(d.status!=="success")g=!0;else{const V=y||d.preload?h.options.preloadStaleTime??e.options.defaultPreloadStaleTime??3e4:h.options.staleTime??e.options.defaultStaleTime??0;g=!!(d.invalid||m||m===void 0&&Date.now()-d.updatedAt>=V&&(l[5]||d.cause==="enter"||l[2].some(X=>X.routeId===d.routeId&&X.id!==d.id)))}}catch(V){d.invalid=!0,oa(e,d),b=Fo(e,t,h,V,l)}const v=h.options.loader,j=typeof v=="function",_=j?v:v?.handler,T=!y||h.options.preload!==!1;let O=T&&v?e._flights?.get(d.id):void 0;O===d._flight||b?O=void 0:O&&!g&&!y&&m===void 0?g=!0:g||(O=void 0);const R=!!(v&&g&&d.status==="success"&&!y&&!l[4]&&((j?void 0:v.staleReloadMode)??e.options.defaultStaleReloadMode)!=="blocking"),M=g&&T,Z=M&&!R&&(d.status!=="success"||!!v),I=a>=u?l[7]:void 0,N=h.lazyFn&&h._lazy!==!0?I:void 0;if(M&&!v&&(d.invalid=!1,d.updatedAt=Date.now()),O&&O[2]++,Z){const V=d._flight;d._flight=O,mh(e,d,V)?.abort(),a>=u&&(d.status="pending"),I?.()}M||(d.isFetching=!1);const G=!b&&Z?mw(e,t,d,h,_,s,l).then(V=>(zw(d,V,y),V[0]===Pn&&(v&&!l[0].signal.aborted&&pb(e,d,z),a>=u&&(d.status="pending")),V)):Promise.resolve(b??[Pn,d.loaderData]),Q=(async()=>{try{const X=sa(h,void 0,N);X&&await la(X,l[0].signal)}catch(X){if(!t[1].some((ye,re)=>re<=a&&(ye.status==="error"||ye.status==="notFound"||ye._notFound)))return[a,Fo(e,t,h,X,l)]}const V=await G;Z&&V[0]===Pn&&d.status==="pending"&&!l[0].signal.aborted&&(d.status="success",I?.())})();if(r.push([a,G,Q]),!R)return G.then(V=>ww(d,V));const oe={...d,status:"pending",preload:!1,_flight:O};d.invalid=!1,d.isFetching="loader";const J=mw(e,t,oe,h,_,s,l).then(V=>(d.isFetching=!1,zw(oe,V,!1),V));return(t[2]??=[]).push([a,J,Q,oe]),J.then(V=>ww(oe,V))}async function Mf(e,t,a,r,s=0){const l=a?.[1][1];let u=l?.routeId?t.findIndex(d=>d.routeId===l.routeId):a?.[0]??t.length-1;u<0&&(u=0);for(let d=u;d>=0;d--){const h=bn(e,t[d]);try{const y=sa(h,!1);y&&await la(y,r)}catch(y){if(y===r&&r.aborted)throw y}if(h.options.notFoundComponent)return d}return l?.routeId?u:s}function Ei(e,t){t[2]&&(Et(e,t[2].map(a=>a[3])),t[2]=void 0)}async function gw(e,t,a,r){let s;try{await Promise.all(e.map(l=>l[1].then(async u=>{const d=l[0];if(!(r&&d>=await r)){if(u[0]>=Ot)throw[d,u];!s&&u[0]!==Pn&&(s=[d,u],await Promise.all((a??[]).map(h=>{if(!(h[0]<=d))return h[1].then(y=>{if(y[0]===Ot)throw[h[0],y]})})))}})))}catch(l){return l}return t??s}function wh(e,t,a,r,s,l){for(;r[0]===Ot;){const u=r[1],d=u.options;try{if((d.href||u.headers.has("Location"))&&(e.resolveRedirect(u),d.reloadDocument)||(d.reloadDocument?s[3]:s[1]>=20))return r;const h=e.buildLocation({...d,_fromLocation:t[0],_includeValidateSearch:!0}),y=h.maskedLocation??h;if(y.external){const z=u.clone();return z.options={...d},z.headers.set("Location",y.publicHref),e.resolveRedirect(z),s[3]?[Ot,z]:[Ot,z,y]}return[Ot,u,h]}catch(h){r=l?[ca,h]:yh(a,h),l=!0}}return r}async function yb(e,t,a,r,s,l){const u=t[1];let d=await s,h=!1;const y=u.findIndex(b=>b._notFound),z=b=>b[1][0]===Cl?Mf(e,u,b,r.signal):b[0];let m=y<0?u.length:y;if((d?.[1][0]??0)>=Ot)m=0;else if(d){m=d[2]??=await z(d);for(const b of a){if(b[0]>=m)break;const v=await b[1];if(v[0]!==Pn&&v[0]<Ot&&!("loaderData"in u[b[0]])){d=[b[0],v],m=d[2]=await z(d);break}}}for(const b of a){if(b[0]>=m)break;const v=await b[2];if(v){d=v;break}}if((d?.[1][0]??0)>=Ot){const b=d[1];if(b[0]!==Ot||b[1].options.reloadDocument||b[2])return Ei(e,t),b;h=!0,d=[0,[ca,new Error("Too many redirects")]]}const g=d?d[2]??await z(d):y;if(g>=0){const b=d?.[1],v=b?.[0],j=u[g],_=b?.[1],T=()=>{b&&(j._notFound=void 0,v===ca?j.status="error":(_.routeId=j.routeId,j.routeId===e.routeTree.id?(j.status="success",j._notFound=!0):j.status="notFound"),j.error=_,j.isFetching=!1)};T(),b||l?.();const O=bn(e,j);try{await la(b?Promise.resolve().then(()=>sa(O,v===ca?"errorComponent":"notFoundComponent")):Promise.all([sa(O),sa(O,"notFoundComponent")]),r.signal)}catch(R){if(R===r.signal&&r.signal.aborted)return Ei(e,t),Ya}b?h&&(r.abort(),await Promise.all([...a.map(R=>R[1]),...a.map(R=>R[2]),...(t[2]??[]).map(R=>R[1])]),Ei(e,t),Et(e,u),T()):j.status="success"}return t}async function gh(e,t,a,r=0,s=t[1].length){const l=t[1];for(let u=r;u<s;u++){const d=l[u],h=bn(e,d).options;if(h.head||h.scripts)try{const y={ssr:e.options.ssr,matches:l,match:d,params:d.params,loaderData:d.loaderData},[z,m]=await la(Promise.all([h.head?.(y),h.scripts?.(y)]),a);d.meta=z?.meta,d.links=z?.links,d.headScripts=z?.scripts,d.styles=z?.styles,d.scripts=m}catch(y){if(y===a&&a.aborted)break;console.error(y)}if(d.status!=="success"||d._notFound)break}return t}async function mb(e,t,a,r){const s=[t,a],l=r[0].signal;let u;
11try{const d=e.stores.matches.get();let h=a.findIndex(T=>T._notFound);if(e.options.notFoundMode!=="root"&&h>=0){const T=await Mf(e,a,void 0,l,h);a[h]._notFound=void 0,a[T]._notFound=!0,h=T}let y=h<0?a.length:h+1,z=0;for(;z<y&&z!==h;){const T=a[z],O=r[2][z],R=d[z];if(O?.id!==T.id||O.status!=="success"||T.preload||R?.id!==T.id||R.status!=="success"||(z++,O._notFound||R._notFound))break}const m=[],g=r[6]??0;let b=g?Promise.resolve(a[g-1]):void 0;const v=()=>{for(let T=g;T<y&&!l.aborted;T++)b=rS(e,s,T,m,b,r,z)},j=await iS(e,s,r,y,v,z);if(j){if(r[4]=!0,y=j[0],j[1][0]===Cl){const T=await Mf(e,a,j,l);j[2]=T,y=Math.min(y,T+1)}else j[1][0]>=Ot&&(y=0);v()}if(!l.aborted&&!r[3]){const T=[];for(const[O,R]of e._flights??[])R[2]||(e._flights.delete(O),T.push(R[1]));for(const O of T)O.abort()}const _=yb(e,s,m,r[0],gw(m,j,s[2]),r[7]);s[2]?.length&&(s[3]=gw(s[2],void 0,void 0,_.then(T=>is(T)?0:ph(a).length,()=>0))),u=await _}catch(d){if(Ei(e,s),d===l&&l.aborted)return Ya;throw d}return is(u)?u:gh(e,u,l,r[6]===a.length?r[6]:0)}function Uf(e,t){if(e._tx!==t)return;const a=t[3],r=e.stores.matches.get();let s=e._pending;for(let l=0;l<a.length;l++){const u=a[l],d=u.status==="success"&&!u._notFound,h=r[l]?.id===u.id&&r[l]?.status==="pending";if(d&&!h)continue;const y=bn(e,u),z=d||u.invalid?0:y.options.pendingMs??e.options.defaultPendingMs,m=y.options.pendingComponent??e.options.defaultPendingComponent;if(!m||typeof z!="number"||z===1/0){s&&(s[0]=t,s[2]=0,s[4]=!0);return}const g=y.options.pendingMinMs??e.options.defaultPendingMinMs??0;let b=!1;if(s?.[1]===u.id?(b=s[0]!==t,s[0]=t):(clearTimeout(s?.[3]),e._pending=s=void 0),s||(e._pending=s=[t,u.id,h?Date.now()+g:t[4]+z,void 0,h||void 0,m]),s[4]&&!b&&s[5]===m)return;if(s[5]=m,!s[4]){clearTimeout(s[3]);const _=s[2]-Date.now();if(_>0){s[3]=setTimeout(()=>Uf(e,t),_);return}s[2]=0}const v=a.map(_=>({..._,_flight:void 0}));v[l].status="pending";const j=s[4]=e.startTransition(()=>e.stores.setMatches(v),v).then(_=>(_&&e._pending===s&&s[4]===j&&!s[2]&&(s[2]=Date.now()+g),_));return}}function qo(e,t){const a=e._pending;(e._tx===t||!e._tx?.[3].some(r=>r.id===a?.[1]))&&(clearTimeout(a?.[3]),e._pending=void 0)}async function bw(e,t){const a=e._pending;if(!a)return;clearTimeout(a[3]);const r=a[2]-Date.now();if(!a[4]||r<=0||!ph(t[3]).some(l=>l.id===a[1]))return;let s;try{await la(new Promise(l=>{s=setTimeout(l,r)}),t[0].signal)}catch{}clearTimeout(s)}function zb(e,t){e._committed=t,e.stores.setMatches(t)}function oS(e,t,a,r){const s=e._committed,l=e._lifecycleEnd,u=e._cache;for(const z of a)z.preload=!1,r&&(z._assetEnd=void 0);const d=ph(a).length,h=new Map;{const z=Date.now(),m=new Set;for(let g=0;g<a.length;g++){const b=a[g];(g<d||b.status==="success")&&m.add(b.id)}for(const g of[...s,...u.values()]){if(g.status!=="success"||m.has(g.id))continue;const b=bn(e,g);!b.options.loader||z-g.updatedAt>=(g.preload?b.options.preloadGcTime??e.options.defaultPreloadGcTime??3e5:b.options.gcTime??e.options.defaultGcTime??3e5)||h.set(g.id,u.get(g.id)===g?g:{...g,_flight:void 0,isFetching:!1,context:{}})}}t[3]=[],e._cache=h;const y=e._lifecycleEnd=db(a);zb(e,a),Et(e,[...u.values(),...s].filter(z=>z._flight&&h.get(z.id)!==z),a),F_(e,s,a,l,y,t)}async function Hc(e,t){let a=e._tx;for(;a&&a!==t;)t=a,await a[5],a=e._tx}function wb(e,t,a){const r=a[1].options,s=a[2];if(!s)return e.navigate({...r,replace:!0,ignoreBlocker:!0});if(r.reloadDocument)return e.navigate({href:(s.maskedLocation??s).publicHref,reloadDocument:!0,replace:!0,ignoreBlocker:!0});s._redirects=t[1]+1,e._pendingLocation=s;const l=e.commitLocation({...s,viewTransition:r.viewTransition,replace:!0,resetScroll:r.resetScroll,hashScrollIntoView:r.hashScrollIntoView,ignoreBlocker:!0});return queueMicrotask(()=>{e._pendingLocation===s&&(e._pendingLocation=void 0)}),l}async function sS(e,t,a,r,s){const l=a.map(h=>({...h}));zh(l);for(const h of r)oa(e,l[h[0]]),l[h[0]]=h[3];const u=[t[2],l];let d;try{d=await yb(e,u,r,t[0],s)}catch(h){throw Et(e,l),h}if(is(d)){Et(e,l),d[0]===Ot&&e._tx===t&&e._committed===a&&await wb(e,t,d);return}if(await gh(e,d,t[0].signal),e._tx!==t||e._committed!==a){Et(e,l);return}for(const h of l){const y=e._cache.get(h.id);y?._flight&&y._flight===h._flight&&(e._cache.delete(h.id),oa(e,y))}zb(e,l),Et(e,a,l)}async function cS(e,t,a,r,s,l){const u=await mb(e,t[2],t[3],[t[0],t[1],e._committed,void 0,s,a,l,r]);if(is(u)){const m=u[0]===Ot&&e._tx===t;if((!m||u[1].options.reloadDocument)&&qo(e,t),Et(e,t[3]),t[3]=[],!m)return;if(e._tx!==t){qo(e,t);return}await wb(e,t,u);return}const d=u[1];if(e._tx===t&&await bw(e,t),e._tx!==t){qo(e,t),Et(e,d),Ei(e,u);return}const h=t[2],y=Ol(h,e.stores.resolvedLocation.get()),z=u[2];await e.startViewTransition(async()=>
11{if(e._tx===t&&await bw(e,t),e._tx!==t){qo(e,t),Et(e,d),Ei(e,u);return}const m=()=>{qo(e,t),oS(e,t,d,l),e._tx===t&&(e.emit({type:"onLoad",...y}),e._tx===t&&e.emit({type:"onBeforeRouteMount",...y}))},g=await e.startTransition(m,d);if(e._tx!==t){Ei(e,u);return}z?.length&&sS(e,t,d,z,u[3]).catch(console.error),e.batch(()=>{e.stores.resolvedLocation.set(h),e.stores.status.set("idle"),e._tx===t&&e.emit({type:"onResolved",...y}),g&&e._tx===t&&e.emit({type:"onRendered",...y})}),e._tx===t&&(e._commitPromise?.resolve(),e._commitPromise=void 0)})}async function lS(e,t){const a=e._tx,r=e.stores.resolvedLocation.get(),s=r??e.stores.location.get(),l=e.latestLocation,u=e._pendingLocation,d=u?.href===l.href?u._redirects??0:0,h=e._handoff,y=h?.[0](),z=new AbortController,m=e._preflight;if(e._preflight=z,y||h?.[1](),m?.abort(),!z.signal.aborted){const M=Ol(l,r);e.emit({type:"onBeforeNavigate",...M}),z.signal.aborted||e.emit({type:"onBeforeLoad",...M})}if(z.signal.aborted){await Hc(e,a);return}const g=s.href===l.href;let b=z;const v=e.matchRoutes(l,{_controller:z});zh(v);const j=y?h[1](v):void 0;if(j?b=y:y?.abort(),z.signal.aborted){Et(e,v),await Hc(e,a);return}e._preflight=void 0;let _;const T=()=>cS(e,R,g,()=>Uf(e,R),t?.sync,j),O=t?.sync?new Promise(M=>_=M):Promise.resolve().then(T),R=[b,d,l,v,Date.now(),O.then(()=>Hc(e,R))];if(e._tx=R,a){for(const M of e.stores.matches.get()){if(e._tx!==R)break;M.isFetching&&os(e,M,!1)}a[0].abort(),Et(e,a[3],R[3],!0)}if(e._tx!==R){Et(e,R[3]),R[3]=[],_?.(),await Hc(e,R);return}e.batch(()=>{e.stores.status.set("pending"),e.stores.location.set(l)}),(j||!e._committed.length&&v[0]?.status!=="success"&&!v.some(M=>M._notFound))&&Uf(e,R),_?.(T()),await R[5]}async function uS(e,t){let a=e.buildLocation(t);for(let r=0;;r++){const s=e._committed,l=new AbortController;let u,d,h;try{try{u=e.matchRoutes(a,{_controller:l}),zh(u),d=(e._preloads??=new Map).set(l,u),h=await mb(e,a,u,[l,r,s,!0])}finally{d&&(d=d.delete(l),Et(e,u)),l.abort()}if(!is(h))return h[1];if(!d||h.length<3)return;a=h[2]}catch(y){Ai(y)||console.error(y);return}}}async function dS(e){const t=window.$_TSR,a=e.options.serializationAdapters;a?.length&&(t.t=new Map(a.map(J=>[J.key,J.fromSerializable])),t.buffer.forEach(J=>J())),t.initialized=!0;const r=t.router;e.ssr={manifest:r.manifest},e.options.ssr={nonce:document.querySelector('meta[property="csp-nonce"]')?.content};const s=r.matches,l=new AbortController,u=e._preflight;e._preflight=l,u?.abort();const d=()=>e._preflight===l;let h,y,z,m;try{if(await la(e.options.hydrate?.(r.dehydratedData),l.signal),!d())return;const J=e.history.location;z=J.href,m=J.state,e.updateLatestLocation(),h=e.latestLocation,e.stores.location.set(h),y=e.matchRoutes(h,{_controller:l})}catch(J){if(d()&&(e._preflight=void 0),l.abort(J),J!==l.signal)throw J}if(!d())return;const g=[];let b,v=0;const j=J=>{v=Math.min(v,J+1);const V=g.splice(J);for(const X of V)bn(e,X).options.loader&&(X.status==="success"||!X.invalid&&"loaderData"in X)&&pb(e,{...X,status:"success",error:void 0,preload:!0},e._cache.get(X.id));Et(e,V)},_=s.length>y.length?y.findIndex(J=>J._notFound)+1:s.length;let T=!1;for(let J=0;J<_;J++){const V=y[J],X=s[J];if(typeof X.i!="string"||u_(X.i)!==V.id){b??=J;break}v=J+1;const ye=bn(e,V);if(("l"in X||X.s==="success"&&X.e===void 0&&ye.options.loader)&&(V.loaderData=X.l),V.status=X.s,V.ssr=X.ssr,ye.options.ssr=V.ssr,V.updatedAt=X.u,V.error=X.e,V._notFound||=X.g,V.status==="error"||V.status==="notFound"||V._notFound){T=!0,g.push(V),(V.ssr===!1||V.ssr==="data-only")&&(b??=J);break}if(V.status==="pending"){b??=J;break}g.push(V),V.ssr==="data-only"&&(b??=J)}!T&&g.length===_&&_<y.length&&(b=_);const O=g.map(async J=>{try{const V=bn(e,J);return await(J._notFound?Promise.all([sa(V),sa(V,"notFoundComponent")]):sa(V,J.status==="error"?"errorComponent":J.status==="notFound"?"notFoundComponent":void 0)),!0}catch{return!1}});let R=0;try{for(;R<O.length&&await la(O[R],l.signal);)R++}catch{return}if(!d())return;R<g.length&&j(R);const M=Math.max(b===g.length?g.length+1:g.length,R<O.length?R:v);for(let J=0;J<M;
11J++){const V=y[J],X=bn(e,V),ye=y[J-1]?.context??e.options.context??{};let re;if(X.options.context){try{re=V._ctx=X.options.context({deps:V.loaderDeps,params:V.params,context:ye,location:h,navigate:L=>e.navigate({...L,_fromLocation:h}),buildLocation:e.buildLocation,cause:V.cause,abortController:l,preload:!1,matches:y,routeId:X.id})||{}}catch{if(!d())return;if(V.status!=="error"&&V.status!=="notFound"&&!V._notFound){b=Math.min(b??J,J),j(J);break}}if(!d())return}V.context={...ye,...re,...g[J]&&s[J].b}}if(await gh(e,[h,y],l.signal,0,v),!d())return;const Z=b!==void 0||g.length<_,I=T&&g.length===_?y:g;let N=Z?y:I,G;if(Z&&b!==void 0){const J=N[b];G=J.ssr==="data-only"&&v>b+1?v:void 0,N=N.slice(),N[b]={...J,status:"pending",ssr:J.ssr==="data-only"?"data-only":!1,_assetEnd:G}}const Q=()=>{const J=e.history.location;return Z&&!e._tx&&J.href===z&&J.state===m&&e._committed===I&&I.length&&!l.signal.aborted?l:void 0},oe=[Q,J=>{if(e._handoff!==oe)return;e._handoff=void 0;const V=I.length;if(!J||!Q()||I.some((re,L)=>re.id!==J[L]?.id)){l.abort();return}let X=G;if(X!==void 0){for(let re=V;re<X;re++)if(y[re]?.id!==J[re]?.id){X=re>b+1?re:void 0;break}}const ye=I.map(re=>({...re}));X!==void 0&&(ye[b]._assetEnd=X),Et(e,J.splice(0,V,...ye));for(let re=V;re<J.length;re++){const L=J[re],F=y[re];F?.id===L.id&&F._ctx&&(L._ctx=F._ctx),L.abortController=l}return V}];e._committed=I,e._lifecycleEnd=db(I),e._handoff=oe,e._preflight=void 0,e.batch(()=>{e.stores.setMatches(N),e.stores.status.set("idle"),Z||e.stores.resolvedLocation.set(e.stores.location.get())})}const ua=Symbol.asyncIterator,gb=Symbol.hasInstance,$r=Symbol.isConcatSpreadable,da=Symbol.iterator,bb=Symbol.match,kb=Symbol.matchAll,vb=Symbol.replace,jb=Symbol.search,_b=Symbol.species,Sb=Symbol.split,Tb=Symbol.toPrimitive,Ir=Symbol.toStringTag,Eb=Symbol.unscopables,Ab={[ua]:0,[gb]:1,[$r]:2,[da]:3,[bb]:4,[kb]:5,[vb]:6,[jb]:7,[_b]:8,[Sb]:9,[Tb]:10,[Ir]:11,[Eb]:12},fS={0:ua,1:gb,2:$r,3:da,4:bb,5:kb,6:vb,7:jb,8:_b,9:Sb,10:Tb,11:Ir,12:Eb},hS={2:!0,3:!1,1:void 0,0:null,4:-0,5:Number.POSITIVE_INFINITY,6:Number.NEGATIVE_INFINITY,7:NaN},pS={0:"Error",1:"EvalError",2:"RangeError",3:"ReferenceError",4:"SyntaxError",5:"TypeError",6:"URIError"},yS={0:Error,1:EvalError,2:RangeError,3:ReferenceError,4:SyntaxError,5:TypeError,6:URIError};function Ae(e,t,a,r,s,l,u,d,h,y,z,m){return{t:e,i:t,s:a,c:r,m:s,p:l,e:u,a:d,f:h,b:y,o:z,l:m}}function Wa(e){return Ae(2,void 0,e,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0)}const Rb=Wa(2),Ob=Wa(3),mS=Wa(1),zS=Wa(0),wS=Wa(4),gS=Wa(5),bS=Wa(6),kS=Wa(7),vS=64,jS=/[\x00-\x07\x0b\x0e-\x1f<\u2028\u2029\ud800-\udfff]/;function _S(e){switch(e){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 Ci(e){if(e.length>=vS&&!jS.test(e))return JSON.stringify(e).slice(1,-1);let t="",a=0,r;for(let s=0,l=e.length;s<l;s++)r=_S(e[s]),r&&(t+=e.slice(a,s)+r,a=s+1);return a===0?t=e:t+=e.slice(a),t}function SS(e){switch(e){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 e}}function Xa(e){return typeof e=="string"&&!e.includes("\\")?e:e.replace(/(\\\\|\\"|\\n|\\r|\\b|\\t|\\f|\\u2028|\\u2029|\\x3C)/g,SS)}const TS={parsing:1,serialization:2,deserialization:3};function ES(e){return`Seroval Error (step: ${TS[e]})`}const AS=(e,t)=>ES(e);var Cb=class extends Error{constructor(e,t){super(AS(e)),this.cause=t}},kw=class extends Cb{constructor(e){super("parsing",e)}},RS=class extends Cb{constructor(e){super("deserialization",e)}};function fa(e){return`Seroval Error (specific: ${e})`}var Ni=class extends Error{constructor(e){super(fa(1)),this.value=e}},bh=class extends Error{constructor(e){super(fa(2))}},OS=class extends Error{constructor(e){super(fa(3))}},Nl=class extends Error{constructor(e){super(fa(4))}}
13,CS=class extends Error{constructor(e){super(fa(5)),this.value=e}},NS=class extends Error{constructor(e){super(fa(6))}},xS=class extends Error{constructor(e){super(fa(7))}},ft=class extends Error{constructor(e){super(fa(8))}},Nb=class extends Error{constructor(e){super(fa(9))}};const qc="__SEROVAL_REFS__",xb=new Map,Nr=new Map;function Db(e){return xb.has(e)}function DS(e){return Nr.has(e)}function PS(e){if(Db(e))return xb.get(e);throw new CS(e)}function LS(e){if(DS(e))return Nr.get(e);throw new NS(e)}typeof globalThis<"u"?Object.defineProperty(globalThis,qc,{value:Nr,configurable:!0,writable:!1,enumerable:!1}):typeof window<"u"?Object.defineProperty(window,qc,{value:Nr,configurable:!0,writable:!1,enumerable:!1}):typeof self<"u"?Object.defineProperty(self,qc,{value:Nr,configurable:!0,writable:!1,enumerable:!1}):typeof global<"u"&&Object.defineProperty(global,qc,{value:Nr,configurable:!0,writable:!1,enumerable:!1});function kh(e){return e instanceof EvalError?1:e instanceof RangeError?2:e instanceof ReferenceError?3:e instanceof SyntaxError?4:e instanceof TypeError?5:e instanceof URIError?6:0}function MS(e){const t=pS[kh(e)];return e.name!==t?{name:e.name}:e.constructor.name!==t?{name:e.constructor.name}:{}}function Pb(e,t){let a=MS(e);const r=Object.getOwnPropertyNames(e);for(let s=0,l=r.length,u;s<l;s++)u=r[s],u!=="name"&&u!=="message"&&(u==="stack"?t&4&&(a=a||{},a[u]=e[u]):(a=a||{},a[u]=e[u]));return a}function Lb(e){return Object.isFrozen(e)?3:Object.isSealed(e)?2:Object.isExtensible(e)?0:1}function US(e){switch(e){case Number.POSITIVE_INFINITY:return gS;case Number.NEGATIVE_INFINITY:return bS}return e!==e?kS:Object.is(e,-0)?wS:Ae(0,void 0,e,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0)}function Mb(e){return Ae(1,void 0,Ci(e),void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0)}function $S(e){return Ae(3,void 0,""+e,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0)}function IS(e){return Ae(4,e,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0)}function BS(e,t){const a=t.valueOf();return Ae(5,e,a!==a?"":t.toISOString(),void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0)}function Ia(e,t,a){return Ae(36,e,a.toString(),t,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0)}function HS(e,t){return Ae(6,e,void 0,Ci(t.source),t.flags,void 0,void 0,void 0,void 0,void 0,void 0,void 0)}function qS(e,t){return Ae(17,e,Ab[t],void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0)}function KS(e,t){return Ae(18,e,Ci(PS(t)),void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0)}function JS(e,t,a){return Ae(25,e,a,Ci(t),void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0)}function VS(e,t,a){return Ae(9,e,void 0,void 0,void 0,void 0,void 0,a,void 0,void 0,Lb(t),void 0)}function ZS(e,t){return Ae(21,e,void 0,void 0,void 0,void 0,void 0,void 0,t,void 0,void 0,void 0)}const vh=1e6;function GS(e,t,a){if(t.length>vh)throw new Ni(t);return Ae(15,e,void 0,t.constructor.name,void 0,void 0,void 0,void 0,a,t.byteOffset,void 0,t.length)}function YS(e,t,a){if(t.length>vh)throw new Ni(t);return Ae(16,e,void 0,t.constructor.name,void 0,void 0,void 0,void 0,a,t.byteOffset,void 0,t.length)}function FS(e,t,a){if(t.byteLength>vh)throw new Ni(t);return Ae(20,e,void 0,void 0,void 0,void 0,void 0,void 0,a,t.byteOffset,void 0,t.byteLength)}function WS(e,t,a){return Ae(13,e,kh(t),void 0,Ci(t.message),a,void 0,void 0,void 0,void 0,void 0,void 0)}function XS(e,t,a){return Ae(14,e,kh(t),void 0,Ci(t.message),a,void 0,void 0,void 0,void 0,void 0,void 0)}function QS(e,t){return Ae(7,e,void 0,void 0,void 0,void 0,void 0,t,void 0,void 0,void 0,void 0)}function eT(e,t){return Ae(28,void 0,void 0,void 0,void 0,void 0,void 0,[e,t],void 0,void 0,void 0,void 0)}function tT(e,t){return Ae(30,void 0,void 0,void 0,void 0,void 0,void 0,[e,t],void 0,void 0,void 0,void 0)}function nT(e,t,a){return Ae(31,e,void 0,void 0,void 0,void 0,void 0,a,t,void 0,void 0,void 0)}function aT(e,t){return Ae(32,e,void 0,void 0,void 0,void 0,void 0,void 0,t,void 0,void 0,void 0)}function iT(e,t){return Ae(33,e,void 0,void 0,void 0,void 0,void 0,void 0,t,void 0,void 0,void 0)}function rT(e,t){return Ae(34,e,void 0,void 0,void 0,void 0,void 0,void 0,t,void 0,void 0,void 0)}function oT(e,t,a,r){return Ae(35,e,a,void 0,void 0,void 0,void 0,t,void 0,void 0,void 0,r)}var sT=class{constructor(e,t){this.value=e,this.replacement=t}};const jh=()=>{const e={p:0,s:0,f:0};return e.p=new Promise((t,a)=>{e.s=t,e.f=a}),e},cT=e=>t=>()=>{let a=0;const r={[e](){return r},next(){if(a>t.d)return{done:!0,value:void 0};const s=a++,l=t.v[s];if(s===t.t)throw l;return{done:s===t.d,value:l}}};return r},lT=(e,t)=>
13a=>()=>{let r=0,s=-1,l=!1;const u=[],d=[],h={finalize(z=0,m=d.length){for(;z<m;z++)d[z].s({done:!0,value:void 0})}};a.on({next(z){const m=d.shift();m&&m.s({done:!1,value:z}),u.push(z)},throw(z){const m=d.shift();m&&m.f(z),h.finalize(),s=u.length,l=!0,u.push(z)},return(z){const m=d.shift();m&&m.s({done:!0,value:z}),h.finalize(),s=u.length,u.push(z)}});const y={[e](){return y},next(){if(s===-1){const g=r++;if(g>=u.length){const b=t();return d.push(b),b.p}return{done:!1,value:u[g]}}if(r>s)return{done:!0,value:void 0};const z=r++,m=u[z];if(z!==s)return{done:!1,value:m};if(l)throw m;return{done:!0,value:m}}};return y},uT=e=>{const t=atob(e),a=t.length,r=new Uint8Array(a);for(let s=0;s<a;s++)r[s]=t.charCodeAt(s);return r.buffer};var Ub=class{constructor(e,t,a){this.v=e,this.t=t,this.d=a}};function $b(e){return e instanceof Ub}function Ib(e,t,a){return new Ub(e,t,a)}function dT(e){const t=[];let a=-1,r=-1;const s=e[da]();for(;;)try{const l=s.next();if(t.push(l.value),l.done){r=t.length-1;break}}catch(l){a=t.length,r=a,t.push(l);break}return Ib(t,a,r)}const fT=cT(da);function hT(e){return fT(e)}const pT={},yT={},mT={0:{},1:{},2:{},3:{},4:{},5:{}};function Bb(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function zT(e,t){Bb(e,t),t.add(e)}function Ko(e,t,a){Bb(e,t),t.set(e,a)}function xr(e,t,a){if(typeof e=="function"?e===t:e.has(t))return arguments.length<3?t:a;throw new TypeError("Private element is not present on this object")}function Ie(e,t){return e.get(xr(e,t))}function kr(e,t,a){return e.set(xr(e,t),a),a}var Dr=new WeakMap,na=new WeakMap,aa=new WeakMap,sl=new WeakMap,yn=new WeakMap,Jo=new WeakSet,Hb=class{constructor(){zT(this,Jo),Ko(this,Dr,[]),Ko(this,na,[]),Ko(this,aa,!0),Ko(this,sl,!1),Ko(this,yn,0)}on(e){let t=Ie(aa,this),a=0;if(t){for(;a<Ie(yn,this)&&Ie(na,this)[a];a++);if(a===Ie(yn,this)){var r;kr(yn,this,(r=Ie(yn,this),r++,r))}Ie(na,this)[a]=e}return xr(Jo,this,wT).call(this,e),()=>{if(Ie(aa,this)&&t){for(t=!1,Ie(na,this)[a]=void 0;Ie(yn,this)>0&&!Ie(na,this)[Ie(yn,this)-1];){var s;kr(yn,this,(s=Ie(yn,this),s--,s))}Ie(na,this).length=Ie(yn,this)}}}next(e){Ie(aa,this)&&(Ie(Dr,this).push(e),xr(Jo,this,wf).call(this,e,"next"))}throw(e){Ie(aa,this)&&(Ie(Dr,this).push(e),xr(Jo,this,wf).call(this,e,"throw"),kr(aa,this,!1),kr(sl,this,!1),Ie(na,this).length=0)}return(e){Ie(aa,this)&&(Ie(Dr,this).push(e),xr(Jo,this,wf).call(this,e,"return"),kr(aa,this,!1),kr(sl,this,!0),Ie(na,this).length=0)}};function wf(e,t){for(let r=0;r<Ie(yn,this);r++){var a;(a=Ie(na,this)[r])===null||a===void 0||a[t](e)}}function wT(e){for(let t=0,a=Ie(Dr,this).length;t<a;t++){const r=Ie(Dr,this)[t];!Ie(aa,this)&&t===a-1?e[Ie(sl,this)?"return":"throw"](r):e.next(r)}}function _h(e){return e instanceof Hb}function gs(){return new Hb}function gT(e,t){const a=gs(),r=e[ua]();let s=!1,l=!1;async function u(){try{for(;!s;){const d=await r.next();if(d.done){l=!0,a.return(d.value);break}a.next(d.value)}}catch(d){l=!0,a.throw(d)}}return u().catch(()=>{}),a}const bT=lT(ua,jh);function kT(e){return bT(e)}async function vT(e){try{return[1,await e]}catch(t){return[0,t]}}function jT(e,t){var a;return{plugins:t.plugins,mode:e,marked:new Set,features:127^(t.disabledFeatures||0),refs:t.refs||new Map,depthLimit:t.depthLimit||1e3,compactArrayBufferViews:(a=t.compactArrayBufferViews)!==null&&a!==void 0?a:!1}}function cl(e,t){e.marked.add(t)}function _T(e,t){const a=e.refs.size;return e.refs.set(t,a),a}function xl(e,t){const a=e.refs.get(t);
13return a!=null?(cl(e,a),{type:1,value:IS(a)}):{type:0,value:_T(e,t)}}function Sh(e,t){const a=xl(e,t);return a.type===1?a:Db(t)?{type:2,value:KS(a.value,t)}:a}function Si(e,t){const a=Sh(e,t);if(a.type!==0)return a.value;if(t in Ab)return qS(a.value,t);throw new Ni(t)}function Dl(e,t){const a=xl(e,mT[t]);return a.type===1?a.value:Ae(26,a.value,t,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0)}function ST(e){const t=xl(e,pT);return t.type===1?t.value:Ae(27,t.value,void 0,void 0,void 0,void 0,void 0,void 0,Si(e,da),void 0,void 0,void 0)}function TT(e){const t=xl(e,yT);return t.type===1?t.value:Ae(29,t.value,void 0,void 0,void 0,void 0,void 0,[Dl(e,1),Si(e,ua)],void 0,void 0,void 0,void 0)}function ET(e,t,a,r){return Ae(a?11:10,e,void 0,void 0,void 0,r,void 0,void 0,void 0,void 0,Lb(t),void 0)}function AT(e,t,a,r){return Ae(8,t,void 0,void 0,void 0,void 0,{k:a,v:r},void 0,Dl(e,0),void 0,void 0,void 0)}function Th(e,t){if(!e.compactArrayBufferViews)return t;const a=new Uint8Array(t.buffer,t.byteOffset,t.byteLength).slice().buffer,r=t.constructor;return new r(a)}function RT(e){if(typeof Buffer<"u")return Buffer.from(e).toString("base64");const t=new Uint8Array(e);if(typeof t.toBase64=="function")return t.toBase64();let a="";for(let r=0,s=t.length;r<s;r++)a+=String.fromCharCode(t[r]);return btoa(a)}function OT(e,t,a){return Ae(19,t,RT(a),void 0,void 0,void 0,void 0,void 0,Dl(e,5),void 0,void 0,void 0)}function CT(e,t){return{base:jT(e,t),child:void 0}}var NT=class{constructor(e,t){this._p=e,this.depth=t}parse(e){return ct(this._p,this.depth,e)}};async function xT(e,t,a){const r=[];for(let s=0,l=a.length;s<l;s++)s in a?r[s]=await ct(e,t,a[s]):r[s]=0;return r}async function DT(e,t,a,r){return VS(a,r,await xT(e,t,r))}async function Eh(e,t,a){const r=Object.entries(a),s=[],l=[];for(let u=0,d=r.length;u<d;u++)s.push(Ci(r[u][0])),l.push(await ct(e,t,r[u][1]));return da in a&&(s.push(Si(e.base,da)),l.push(eT(ST(e.base),await ct(e,t,dT(a))))),ua in a&&(s.push(Si(e.base,ua)),l.push(tT(TT(e.base),await ct(e,t,gT(a))))),Ir in a&&(s.push(Si(e.base,Ir)),l.push(Mb(a[Ir]))),$r in a&&(s.push(Si(e.base,$r)),l.push(a[$r]?Rb:Ob)),{k:s,v:l}}async function gf(e,t,a,r,s){return ET(a,r,s,await Eh(e,t,r))}async function PT(e,t,a,r){return ZS(a,await ct(e,t,r.valueOf()))}async function LT(e,t,a,r){return r=Th(e.base,r),GS(a,r,await ct(e,t,r.buffer))}async function MT(e,t,a,r){return r=Th(e.base,r),YS(a,r,await ct(e,t,r.buffer))}async function UT(e,t,a,r){return r=Th(e.base,r),FS(a,r,await ct(e,t,r.buffer))}async function vw(e,t,a,r){const s=Pb(r,e.base.features);return WS(a,r,s?await Eh(e,t,s):void 0)}async function $T(e,t,a,r){const s=Pb(r,e.base.features);return XS(a,r,s?await Eh(e,t,s):void 0)}async function IT(e,t,a,r){const s=[],l=[];for(const[u,d]of r.entries())s.push(await ct(e,t,u)),l.push(await ct(e,t,d));return AT(e.base,a,s,l)}async function BT(e,t,a,r){const s=[];for(const l of r.keys())s.push(await ct(e,t,l));return QS(a,s)}async function qb(e,t,a,r){const s=e.base.plugins;if(s)for(let l=0,u=s.length;l<u;l++){const d=s[l];if(d.parse.async&&d.test(r))return JS(a,d.tag,await d.parse.async(r,new NT(e,t),{id:a}))}}async function HT(e,t,a,r){const[s,l]=await vT(r);return Ae(12,a,s,void 0,void 0,void 0,void 0,void 0,await ct(e,t,l),void 0,void 0,void 0)}function qT(e,t,a,r,s){const l=[],u=a.on({next:d=>{cl(this.base,t),ct(this,e,d).then(h=>{l.push(aT(t,h))},h=>{s(h),u()})},throw:d=>{cl(this.base,t),ct(this,e,d).then(h=>{l.push(iT(t,h)),r(l),u()},h=>{s(h),u()})},return:d=>{cl(this.base,t),ct(this,e,d).then(h=>{l.push(rT(t,h)),r(l),u()},h=>{s(h),u()})}})}async function KT(e,t,a,r){return nT(a,Dl(e.base,4),await new Promise(qT.bind(e,t,a,r)))}async function JT(e,t,a,r){const s=[];for(let l=0,u=r.v.length;l<u;l++)s[l]=await ct(e,t,r.v[l]);return oT(a,s,r.t,r.d)}async function VT(e,t,a,r){if(Array.isArray(r))return DT(e,t,a,r);if(_h(r))return KT(e,t,a,r);if($b(r))return JT(e,t,a,r);let s=r.constructor;if(s!==void 0&&typeof s!="function"){const d=Object.getPrototypeOf(r);s=d===null?void 0:d.constructor}if(s===sT)return ct(e,t,r.replacement);const l=await qb(e,t,a,r);if(l)return l;switch(s){case Object:return gf(e,t,a,r,!1);case void 0:return gf(e,t,a,r,!0);case Date:return BS(a,r);case Error:case EvalError:case RangeError:case ReferenceError:case SyntaxError:case TypeError:case URIError:return vw(e,t,a,r);case Number:case Boolean:case String:case BigInt:return PT(e,t,a,r);
13case ArrayBuffer:return OT(e.base,a,r);case Int8Array:case Int16Array:case Int32Array:case Uint8Array:case Uint16Array:case Uint32Array:case Uint8ClampedArray:case Float32Array:case Float64Array:return LT(e,t,a,r);case DataView:return UT(e,t,a,r);case Map:return IT(e,t,a,r);case Set:return BT(e,t,a,r)}if(s===Promise||r instanceof Promise)return HT(e,t,a,r);const u=e.base.features;if(u&32&&s===RegExp)return HS(a,r);if(u&16)switch(s){case BigInt64Array:case BigUint64Array:return MT(e,t,a,r)}if(u&1&&typeof AggregateError<"u"&&(s===AggregateError||r instanceof AggregateError))return $T(e,t,a,r);if(u&64&&typeof Temporal<"u")switch(s){case Temporal.Instant:return Ia(a,0,r);case Temporal.Duration:return Ia(a,1,r);case Temporal.PlainDate:return Ia(a,2,r);case Temporal.PlainDateTime:return Ia(a,3,r);case Temporal.PlainMonthDay:return Ia(a,4,r);case Temporal.PlainTime:return Ia(a,5,r);case Temporal.PlainYearMonth:return Ia(a,6,r);case Temporal.ZonedDateTime:return Ia(a,7,r)}if(r instanceof Error)return vw(e,t,a,r);if(da in r||ua in r)return gf(e,t,a,r,!!s);throw new Ni(r)}async function ZT(e,t,a){const r=Sh(e.base,a);if(r.type!==0)return r.value;const s=await qb(e,t,r.value,a);if(s)return s;throw new Ni(a)}async function ct(e,t,a){if(t>=e.base.depthLimit)throw new Nb(e.base.depthLimit);switch(typeof a){case"boolean":return a?Rb:Ob;case"undefined":return mS;case"string":return Mb(a);case"number":return US(a);case"bigint":return $S(a);case"object":if(a){const r=Sh(e.base,a);return r.type===0?await VT(e,t+1,r.value,a):r.value}return zS;case"symbol":return Si(e.base,a);case"function":return ZT(e,t,a);default:throw new Ni(a)}}async function GT(e,t){try{return await ct(e,0,t)}catch(a){throw a instanceof kw?a:new kw(a)}}function Kb(e,t){for(let a=0,r=t.length;a<r;a++){const s=t[a];e.has(s)||(e.add(s),s.extends&&Kb(e,s.extends))}}function Jb(e){if(e){const t=new Set;return Kb(t,e),[...t]}}function YT(e){switch(e){case"Int8Array":return Int8Array;case"Int16Array":return Int16Array;case"Int32Array":return Int32Array;case"Uint8Array":return Uint8Array;case"Uint16Array":return Uint16Array;case"Uint32Array":return Uint32Array;case"Uint8ClampedArray":return Uint8ClampedArray;case"Float32Array":return Float32Array;case"Float64Array":return Float64Array;case"BigInt64Array":return BigInt64Array;case"BigUint64Array":return BigUint64Array;default:throw new xS(e)}}function FT(e){switch(e){case"constructor":case"__proto__":case"prototype":case"__defineGetter__":case"__defineSetter__":case"__lookupGetter__":case"__lookupSetter__":return!1;default:return!0}}function WT(e){switch(e){case ua:case $r:case Ir:case da:return!0;default:return!1}}const XT=1e6,QT=512,eE=1e4,tE=2e4;function Vb(e,t){switch(t){case 3:return Object.freeze(e);case 1:return Object.preventExtensions(e);case 2:return Object.seal(e);default:return e}}const nE=1e3;function aE(e,t){var a,r;const s=(a=t.maxBase64Length)!==null&&a!==void 0?a:XT;if(!Number.isSafeInteger(s)||s<0)throw new RangeError("maxBase64Length must be a non-negative safe integer");const l=t.refs||new Map;return"types"in l||Object.assign(l,{types:new Map}),{mode:e,plugins:t.plugins,refs:l,features:(r=t.features)!==null&&r!==void 0?r:127^(t.disabledFeatures||0),depthLimit:t.depthLimit||nE,maxBase64Length:s}}function iE(e){return{mode:2,base:aE(2,e),child:void 0}}var rE=class{constructor(e,t){this._p=e,this.depth=t}deserialize(e){return Je(this._p,this.depth,e)}};function Zb(e,t){if(t<0||!Number.isFinite(t)||!Number.isInteger(t))throw new ft({t:4,i:t});if(e.refs.has(t))throw new Error("Conflicted ref id: "+t)}function Gb(e){return!!e&&(typeof e=="object"||typeof e=="function")&&"then"in e&&typeof e.then=="function"}function oE(e,t,a){return Zb(e.base,t),e.state.marked.has(t)&&e.base.refs.set(t,a),a}function sE(e,t,a){return Zb(e.base,t),e.base.refs.set(t,a),a}function rt(e,t,a){return e.mode===1?oE(e,t,a):sE(e,t,a)}function $f(e,t,a){if(Object.hasOwn(t,a))return t[a];throw new ft(e)}function cE(e,t){return rt(e,t.i,LS(Xa(t.s)))}function Fa(e,t){if(!Array.isArray(t))throw new ft(e)}function lE(e,t,a){const r=a.a;Fa(a,r);const s=r.length,l=rt(e,a.i,new Array(s));for(let u=0,d;u<s;u++)d=r[u],d&&(l[u]=Je(e,t,d));return Vb(l,a.o),l}function jw(e,t,a){FT(t)?e[t]=a:Object.defineProperty(e,t,{value:a,configurable:!0,enumerable:!0,writable:!0})}function uE(e,t,a,r,s){if(typeof r=="string")jw(a,Xa(r),Je(e,t,s
13));else{const l=Je(e,t,r);switch(typeof l){case"string":jw(a,l,Je(e,t,s));break;case"symbol":WT(l)&&(a[l]=Je(e,t,s));break;default:throw new ft(r)}}}function Yb(e,t,a){e.base.refs.types.set(t,a)}function Pl(e,t,a,r){if(e.base.refs.types.get(a)!==r)throw new ft(t)}function Fb(e,t,a,r){const s=a.k;if(Fa(a,s),Fa(a,a.v),s.length>0)for(let l=0,u=a.v,d=s.length;l<d;l++)uE(e,t,r,s[l],u[l]);return r}function dE(e,t,a){const r=rt(e,a.i,a.t===10?{}:Object.create(null));return Fb(e,t,a.p,r),Vb(r,a.o),r}function fE(e,t){return rt(e,t.i,new Date(t.s))}function hE(e,t){if(!(e.base.features&64))throw new bh(t);let a;switch(t.c){case 0:a=Temporal.Instant.from(t.s);break;case 1:a=Temporal.Duration.from(t.s);break;case 2:a=Temporal.PlainDate.from(t.s);break;case 3:a=Temporal.PlainDateTime.from(t.s);break;case 4:a=Temporal.PlainMonthDay.from(t.s);break;case 5:a=Temporal.PlainTime.from(t.s);break;case 6:a=Temporal.PlainYearMonth.from(t.s);break;case 7:a=Temporal.ZonedDateTime.from(t.s);break;default:throw new ft(t)}return rt(e,t.i,a)}function pE(e,t){if(e.base.features&32){const a=Xa(t.c);if(a.length>tE)throw new ft(t);return rt(e,t.i,new RegExp(a,t.m))}throw new bh(t)}function yE(e,t,a){const r=rt(e,a.i,new Set);Fa(a,a.a);for(let s=0,l=a.a,u=l.length;s<u;s++)r.add(Je(e,t,l[s]));return r}function mE(e,t,a){const r=rt(e,a.i,new Map);Fa(a,a.e.k),Fa(a,a.e.v);for(let s=0,l=a.e.k,u=a.e.v,d=l.length;s<d;s++)r.set(Je(e,t,l[s]),Je(e,t,u[s]));return r}function zE(e,t){if(typeof t.s!="string")throw new ft(t);if(t.s.length>e.base.maxBase64Length)throw new RangeError("ArrayBuffer exceeds maxBase64Length ("+e.base.maxBase64Length+")");const a=Xa(t.s);let r;if(a.length<QT||typeof Buffer>"u")r=uT(a);else{const s=atob(a);r=new ArrayBuffer(s.length),Buffer.from(r).write(s,"latin1")}return rt(e,t.i,r)}function wE(e,t,a){var r;const s=YT(a.c),l=Je(e,t,a.f);if(!(l instanceof ArrayBuffer))throw new ft(a);const u=(r=a.b)!==null&&r!==void 0?r:0;if(u<0||u>l.byteLength)throw new ft(a);return rt(e,a.i,new s(l,u,a.l))}function gE(e,t,a){var r;const s=Je(e,t,a.f);if(!(s instanceof ArrayBuffer))throw new ft(a);const l=(r=a.b)!==null&&r!==void 0?r:0;if(l<0||l>s.byteLength)throw new ft(a);return rt(e,a.i,new DataView(s,l,a.l))}function Wb(e,t,a,r){if(a.p){const s=Fb(e,t,a.p,{});Object.defineProperties(r,Object.getOwnPropertyDescriptors(s))}return r}function bE(e,t,a){return Wb(e,t,a,rt(e,a.i,new AggregateError([],Xa(a.m))))}function kE(e,t,a){const r=$f(a,yS,a.s);return Wb(e,t,a,rt(e,a.i,new r(Xa(a.m))))}function vE(e,t,a){const r=jh(),s=rt(e,a.i,r.p),l=Je(e,t,a.f);if(Gb(l))throw new ft(a.f);return a.s?r.s(l):r.f(l),s}function jE(e,t,a){return rt(e,a.i,Object(Je(e,t,a.f)))}function _E(e,t,a){const r=e.base.plugins;if(r){const s=Xa(a.c);for(let l=0,u=r.length;l<u;l++){const d=r[l];if(d.tag===s)return rt(e,a.i,d.deserialize(a.s,new rE(e,t),{id:a.i}))}}throw new OS(a.c)}function SE(e,t){const a=rt(e,t.i,rt(e,t.s,jh()).p);return Yb(e,t.s,22),a}function TE(e,t,a){const r=e.base.refs.get(a.i);if(r){Pl(e,a,a.i,22);const s=Je(e,t,a.a[1]);if(Gb(s))throw new ft(a.a[1]);a.t===23?r.s(s):r.f(s);return}throw new Nl("Promise")}function EE(e,t,a){Je(e,t,a.a[0]);const r=Je(e,t,a.a[1]);if(!$b(r))throw new ft(a.a[1]);return hT(r)}function AE(e,t,a){Je(e,t,a.a[0]);const r=Je(e,t,a.a[1]);if(!_h(r))throw new ft(a.a[1]);return kT(r)}function RE(e,t,a){const r=rt(e,a.i,gs());Yb(e,a.i,31);const s=a.a;Fa(a,s);const l=s.length;if(l)for(let u=0;u<l;u++)Je(e,t,s[u]);return r}function OE(e,t,a){const r=e.base.refs.get(a.i);if(r){Pl(e,a,a.i,31),r.next(Je(e,t,a.f));return}throw new Nl("Stream")}function CE(e,t,a){const r=e.base.refs.get(a.i);if(r){Pl(e,a,a.i,31),r.throw(Je(e,t,a.f));return}throw new Nl("Stream")}function NE(e,t,a){const r=e.base.refs.get(a.i);if(r){Pl(e,a,a.i,31),r.return(Je(e,t,a.f));return}throw new Nl("Stream")}function xE(e,t,a){Je(e,t,a.f)}function DE(e,t,a){Je(e,t,a.a[1])}function _w(e,t){return Number.isInteger(e)&&e>=-1&&e<t}function PE(e,t,a){Fa(a,a.a);const r=a.a.length;if(!(_w(a.s,r)&&_w(a.l,r)))throw new ft(a);const s=rt(e,a.i,Ib([],a.s,a.l));for(let l=0;l<r;l++)s.v[l]=Je(e,t,a.a[l]);return s}function Je(e,t,a){if(t>e.base.depthLimit)throw new Nb(e.base.depthLimit);switch(t+=1,a.t){case 2:return $f(a,hS,a.s);case 0:return Number(a.s);case 1:return Xa(String(a.s));case 3:if(String(a.s).length>eE)throw new ft(a);return BigInt(a.s);case 4:return e.base.refs.get(a.i);case 18:return cE(e,a);case 9:return lE(e,t,a);case 10:case 11:return dE(e,t,a);case 5:return fE(e,a);case 6:return pE(e,a);case 7:return yE(e,t,a);case 8:return mE(e,t,a);case 19:return zE(e,a);case 16:case 15:return wE(e,t,a);case 20:return gE(e,t,a);case 14:return bE(e,t,a);case 13:return kE(e,t,a);case 12:return vE(e,t,a);case 17:return $f(a,fS,a.s);case 21:return jE(e,t,a);case 25:return _E(e,t,a);case 22:return SE(e,a);case 23:case 24:return TE(e,t,a);case 28:return EE(e,t,a);case 30:return AE(e,t,a);case 31:return RE(e,t,a);case 32:return OE(e,t,a);case 33:return CE(e,t,a);case 34:return NE(e,t,a);case 27:return xE(e,t,a);case 29:return DE(e,t,a);case 35:return PE(e,t,a);case 36:return hE(e,a);default:throw new bh(a)}}function LE(e,t){try{return Je(e,0,t)}catch(a){throw new RS(a)}}function ME(e,t){const a=Jb(t.plugins);return LE(iE({maxBase64Length:t.maxBase64Length,plugins:a,refs:t.refs,features:t.features,disabledFeatures:t.disabledFeatures,depthLimit:t.depthLimit}),e)}async function UE(e,t={}){const a=Jb(t.plugins),r=CT(1,{compactArrayBufferViews:t.compactArrayBufferViews,plugins:a,disabledFeatures:t.disabledFeatures});return{t:await GT(r,e),f:r.base.features,m:Array.from(r.base.marked)}}function $E(e){return{tag:"$TSR/t/"+e.key,test:e.test,parse:{sync(t,a){return{v:a.parse(e.toSerializable(t))}},async async(t,a){return{v:await a.parse(e.toSerializable(t))}},stream(t,a){return{v:a.parse(e.toSerializable(t))}}},serialize:void 0,deserialize(t,a){return e.fromSerializable(a.deserialize(t.v))}}}function Xb(e){if(Array.isArray(e))return e.flatMap(z=>Xb(z));if(typeof e!="string")return[];const t=[];let a=0,r,s,l,u,d;const h=()=>{for(;a<e.length&&/\s/.test(e.charAt(a));)a+=1;return a<e.length},y=()=>(s=e.charAt(a),s!=="="&&s!==";"&&s!==",");for(;a<e.length;){for(r=a,d=!1;h();)if(s=e.charAt(a),s===","){for(l=a,a+=1,h(),u=a;a<e.length&&y();)a+=1;a<e.length&&e.charAt(a)==="="?(d=!0,a=u,t.push(e.slice(r,l)),r=a):a=l+1}else a+=1;(!d||a>=e.length)&&t.push(e.slice(r))}return t}function IE(e){return e instanceof Headers?e:Array.isArray(e)?new Headers(e):typeof e=="object"?new Headers(e):null}function BE(...e){return e.reduce((t,a)=>{const r=IE(a);if(!r)return t;for(const[s,l]of r.entries())s==="set-cookie"?Xb(l).forEach(u=>t.append("set-cookie",u)):t.set(s,l);return t},new Headers)}const HE={tag:"$TSR/Error",test(e){return e instanceof Error},parse:{sync(e,t){return{message:t.parse(e.message)}},async async(e,t){return{message:await t.parse(e.message)}},stream(e,t){return{message:t.parse(e.message)}}},serialize(e,t){return"new Error("+t.serialize(e.message)+")"},deserialize(e,t){return new Error(t.deserialize(e.message))}};var qE=class{constructor(e,t){this.stream=e,this.hint=t?.hint??"binary"}};function Qb(e){const t=[];for(let a=0;a<e.length;a+=32768)t.push(String.fromCharCode.apply(null,e.subarray(a,a+32768)));return btoa(t.join(""))}function ek(e){const t=atob(e),a=new Uint8Array(t.length);for(let r=0;r<t.length;r++)a[r]=t.charCodeAt(r);return a}const KE=new TextDecoder("utf-8",{fatal:!0,ignoreBOM:!0});function JE(e){try{return"t"+KE.decode(e)}catch{return"b"+Qb(e)}}const VE=new TextEncoder;function ZE(e){const t=e.slice(1);return e[0]==="t"?VE.encode(t):ek(t)}function GE(e,t,a){a?.throwIfAborted();const r=gs(),s=e.getReader();let l=!0;const u=()=>{l=!1,a?.removeEventListener("abort",h),s.releaseLock()},d=y=>l?(s.cancel(y).catch(()=>{}),u(),!0):!1,h=()=>{d(a.reason)&&r.throw(a.reason)};return a?.addEventListener("abort",h),(async()=>{try{for(;l;){const{done:y,value:z}=await s.read();if(!l)return;if(y){u(),r.return(void 0);return}r.next(t(z))}}catch(y){d(y)&&r.throw(y)}})(),[r,d]}function YE(e,t){let a,r=!1;return new ReadableStream({start(s){const l=e.on({next(u){if(!r)try{s.enqueue(t(u))}catch(d){r=!0;const h=a;a=void 0,h?.(),s.error(d)}},throw(u){r||(r=!0,a=void 0,s.error(u))},return(){r||(r=!0,a=void 0,s.close())}});r?l():a=l},cancel(){const s=a;a=void 0,s?.()}})}function tk(e){return{tag:"tss/RawStream",test:t=>t instanceof qE,parse:{async:async(t,a)=>{const r=await a.parse(t.hint==="text"),[s]=GE(t.stream,t.hint==="text"?JE:Qb,e);
13return{text:r,stream:await a.parse(s)}}},serialize:void 0,deserialize:void 0}}const FE=tk(),WE={tag:"tss/RawStream",test:()=>!1,parse:{},serialize:void 0,deserialize(e,t){return YE(t.deserialize(e.stream),t.deserialize(e.text)?ZE:ek)}},Ba={},nk=e=>new ReadableStream({start(t){e.on({next(a){try{t.enqueue(a)}catch{}},throw(a){t.error(a)},return(){try{t.close()}catch{}}})}}),XE={tag:"seroval-plugins/web/ReadableStreamFactory",test(e){return e===Ba},parse:{sync(){return Ba},async async(){return await Promise.resolve(Ba)},stream(){return Ba}},serialize(){return nk.toString()},deserialize(){return Ba}};async function QE(e,t){try{for(;;){const a=await t.read();if(a.done){e.return(a.value),t.releaseLock();break}e.next(a.value)}}catch(a){t.releaseLock(),e.throw(a)}}function eA(e){e.cancel().catch(()=>{}),e.releaseLock()}function Sw(e){const t=gs(),a=e.getReader(),r=eA.bind(null,a);return QE(t,a).catch(r),[t,r]}const tA={tag:"seroval/plugins/web/ReadableStream",extends:[XE],test(e){return typeof ReadableStream>"u"?!1:e instanceof ReadableStream},parse:{sync(e,t){return{factory:t.parse(Ba),stream:t.parse(gs())}},async async(e,t){return{factory:await t.parse(Ba),stream:await t.parse(Sw(e)[0])}},stream(e,t){const[a,r]=Sw(e);return t.addCleanup(r),{factory:t.parse(Ba),stream:t.parse(a)}}},serialize(e,t){return"("+t.serialize(e.factory)+")("+t.serialize(e.stream)+")"},deserialize(e,t){const a=t.deserialize(e.stream);if(!a||typeof a!="object"||!_h(a))throw new Error("Expected a stream source.");return nk(a)}};function ak(e){return[HE,e?tk(e):FE,tA]}const nA=ak();[...nA];function aA(e){return{tag:"tss/RawStream",test:()=>!1,parse:{},serialize:void 0,deserialize(t,a){return e(a.deserialize(t.streamId))}}}function iA(e){return[...lh()?.serializationAdapters?.map($E)??[],...e]}function ik(e){return iA(ak(e))}var Tw=new TextDecoder,Rn=new Uint8Array,rA=new ByteLengthQueuingStrategy({highWaterMark:0});function oA(e){const t=e.getReader(),a=new Map;let r=0,s,l;const u=()=>{s?.(),s=void 0},d=(m,g)=>{const b=m[1];m[1]=!1,b&&(g===1?b.close():b.error(g[0]))},h=new ReadableStream({start(m){l=m},pull:u,cancel(m){const g=[m===void 0?new Error("Framed response cancelled"):m];r=g,u(),t.cancel(m).catch(()=>{});for(const b of a.values())d(b,g)}});function y(m){const g=a.get(m);if(g)return g;if(a.size>=1024)throw new Error("Too many raw streams");let b;const v=[new ReadableStream({start(j){b=j},cancel(){v[1]!==!1&&(v[1]=null)}},rA),b];return a.set(m,v),r!==0&&d(v,r),v}function z(m){if(m===0||m>>>0!==m)throw new RangeError("Invalid raw stream ID");return y(m)[0]}return(async()=>{let m=Rn,g=0;async function b(){for(;g===m.byteLength;){m=Rn,g=0;const j=await t.read();if(r!==0||j.done)return!1;m=j.value}return!0}async function v(j,_){if(j===0)return Rn;if(!await b()){if(_)return;throw new Error("Incomplete frame")}if(m.byteLength-g>=j){const R=m.subarray(g,g+j);return g+=j,g===m.byteLength&&(m=Rn,g=0),R}const T=new Uint8Array(j);let O=0;for(;O<j;){if(!await b())throw new Error("Incomplete frame");const R=Math.min(j-O,m.byteLength-g);T.set(m.subarray(g,g+R),O),g+=R,O+=R}return g===m.byteLength&&(m=Rn,g=0),T}try{for(;r===0;){let j=await v(9,!0);if(r!==0)return;if(!j){for(const Z of a.values())if(Z[1])throw new Error("Incomplete raw stream");r=1,l.close();return}const _=j[0],T=(j[1]<<24|j[2]<<16|j[3]<<8|j[4])>>>0,O=(j[5]<<24|j[6]<<16|j[7]<<8|j[8])>>>0;if(j=Rn,_>3||_===0!=(T===0)||O>16777216||_===2&&O!==0)throw new Error("Invalid frame");const R=_===0?void 0:y(T);if(R?.[1]===!1)throw new Error("Raw stream already ended");let M=await v(O);if(r!==0)return;if(!R){const Z=Tw.decode(M);for(M=Rn,l.enqueue(Z);r===0&&l.desiredSize<=0;)await new Promise(I=>{s=I});continue}if(_===1){const Z=R[1];if(Z){if(-Z.desiredSize>134217728){Z.error(new Error(`Raw stream ${T} has too many unread bytes`)),R[1]=null,M=Rn;continue}const I=M.byteLength*4<M.buffer.byteLength?M.slice():M;M=Rn,Z.enqueue(I)}}else d(R,_===2?1:[new Error(Tw.decode(M))])}}catch(j){if(r===0){const _=[j];r=_,t.cancel(j).catch(()=>{}),l.error(j);for(const T of a.values())d(T,_)}}finally{m=Rn,t.releaseLock()}})(),[h,z]}const Nn=Symbol.for("TSR_DEFERRED_PROMISE");function sA(e,t){const a=e;return a[Nn]||(a[Nn]={status:"pending"},a.then(r=>{a[Nn].status="success",a[Nn].data=r}).catch(r=>{a[Nn].status="error",a[Nn].error={data:Y_(r),__isServerError:!0}})),a}const cA="Error preloading route! ☝️";function rk(e,t){if(e)return typeof e=="string"?e:e[t]}function lA(e){return e?.scriptFormat??"module"}function uA(e,t,a){const r=dA(t),s=rk(a,"script")??r.crossOrigin;return{...lA(e)==="iife"?{rel:"preload",as:"script"}:{rel:"modulepreload"},href:r.href,...s?{crossOrigin:s}:{}}}function dA(e){return typeof e=="string"?{href:e,crossOrigin:void 0}:e}function Kc(e,t){if(t.length===0)return;if(t.length===1){e.push(t[0]);return}const a=new Set;for(const r of t){const s=JSON.stringify(r);a.has(s)||(a.add(s),e.push(r))}}function fA(e){return typeof e=="string"?{href:e,crossOrigin:void 0}:e}function hA(e,t,a,r){const s=fb(e),l=[],u=[];for(const d of s)for(const h of Array.isArray(d.scripts)?d.scripts:[]){if(!
13h)continue;const{children:y,...z}=h;l.push({tag:"script",attrs:{...z,...r,nonce:a},children:y})}if(t)for(const d of s)for(const h of t.routes[d.routeId]?.scripts??[])u.push({tag:"script",attrs:{...h.attrs,nonce:a},children:h.children});return[l,u]}function pA([e,t],a){return[...e,...t]}var ok=class{get to(){return this._to}get id(){return this._id}get path(){return this._path}get fullPath(){return this._fullPath}constructor(e){if(this.init=t=>{this.originalIndex=t,this._branch=void 0;const a=this.options,r=!a?.path&&!a?.id;this.parentRoute=this.options.getParentRoute?.(),r?this._path=Ur:this.parentRoute||ns();let s=r?Ur:a?.path;s&&s!=="/"&&(s=eb(s));const l=a?.id||s,u=r?Ur:Mr((this.parentRoute.id==="__root__"?"":this.parentRoute.id)+"/"+(l??""));s==="__root__"&&(s="/");const d=u==="__root__"?"/":s===void 0?this.parentRoute.fullPath:Mr(this.parentRoute.fullPath+"/"+s);this._path=s,this._id=u,this._fullPath=d,this._to=Dn(d)},this.addChildren=t=>this._addFileChildren(t),this._addFileChildren=t=>(Array.isArray(t)&&(this.children=t),typeof t=="object"&&t!==null&&(this.children=Object.values(t)),this),this._addFileTypes=()=>this,this.updateLoader=t=>(Object.assign(this.options,t),this),this.update=t=>(Object.assign(this.options,t),this),this.lazy=t=>(this.lazyFn=t,this),this.redirect=t=>ws({from:this.fullPath,...t}),this.options=e||{},this.isRoot=!e?.getParentRoute,e?.id&&e?.path)throw new Error("Route cannot have both an 'id' and a 'path' option.")}},yA=class extends ok{constructor(e){super(e)}};var ss;function If(e,t,a){try{return ME(e,t)}catch(r){throw ck(a),r}}async function sk(e){e.length>0&&(await Promise.allSettled(e),e.length=0)}function ck(e){for(const t of e)t.catch(()=>{});e.length=0}var mA=Object.prototype.hasOwnProperty;function lk(e){for(const t in e)if(mA.call(e,t))return!0;return!1}async function zA(e,t,a){ss||(ss=ik());const r=t[0],s=r.fetch??a,l=r.data instanceof FormData,u=new Headers(r.headers);if(u.set("x-tsr-serverFn","true"),l||u.set("accept",`${l_}, application/x-ndjson, application/json`),r.method==="GET"){if(l)throw new Error("FormData is not supported with GET requests");const h=await uk(r);if(h!==void 0){const y=sb({payload:h});e.includes("?")?e+=`&${y}`:e+=`?${y}`}}let d;return r.method==="POST"&&(d=await wA(r),typeof d=="string"&&u.set("content-type","application/json")),gA(()=>s(e,{method:r.method,headers:u,signal:r.signal,body:d}))}async function uk(e){let t;return e.data!==void 0&&(t={data:e.data}),e.context&&lk(e.context)&&((t??={}).context=e.context),t?dk(t,e.signal):void 0}async function dk(e,t){t?.throwIfAborted();let a;try{a=await UE(e,{plugins:t?ik(t):ss})}finally{t?.throwIfAborted()}return JSON.stringify(a)}async function wA(e){if(e.data instanceof FormData){let t;return e.context&&lk(e.context)&&(t=await dk(e.context,e.signal)),t!==void 0&&e.data.set(c_,t),e.data}return uk(e)}async function gA(e){let t;try{t=await e()}catch(r){if(r instanceof Response)t=r;else throw r}if(t.headers.get("x-tss-raw")==="true")return t;const a=t.headers.get("content-type");if(a||ns(),t.headers.get("x-tss-serialized")){let r;if(a.includes("application/x-tss-framed")){const s=/;\s*v=(\d+)/.exec(a)?.[1];if(s&&+s!=1)throw new Error(`Unsupported framed protocol version ${s}`);if(!t.body)throw new Error("No response body for framed response");const[l,u]=oA(t.body);r=await bA(l,[aA(u),...ss])}else if(a.includes("application/json")){const s=await t.json(),l=[];r=If(s,{plugins:ss},l),await sk(l)}if(r||ns(),r instanceof Error)throw r;return r}if(a.includes("application/json")){const r=await t.json(),s=Yg(r);if(s)throw s;if(Ai(r))throw r;return r}if(!t.ok)throw new Error(await t.text());return t}async function bA(e,t){const a=e.getReader(),r={refs:new Map,plugins:t},s=d=>{a.cancel(d).catch(()=>{})};let l;const u=[];try{const d=await a.read();if(d.done)throw new Error("Stream ended before first object");l=If(JSON.parse(d.value),r,u)}catch(d){throw s(d),a.releaseLock(),d}return(async()=>{const d=[];try{for(;;){const h=await a.read();if(h.done)return;If(JSON.parse(h.value),r,d),ck(d)}}catch(h){s(h),console.error("Stream processing error:",h)}finally{a.releaseLock()}})(),await sk(u),l}function Ct(e){const t="/_serverFn/"+e;return Object.assign((...s)=>{const l=lh()?.serverFns?.fetch;return zA(t,s,l??fetch)},{url:t,serverFnMeta:{id:e},[xf]:!0})}var kA={key:"$TSS/serverfn",test:e=>typeof e!="function"||!(xf in e)?!1:!!e[xf],toSerializable:({serverFnMeta:e})=>({functionId:e.id}),fromSerializable:({functionId:e})=>Ct(e)},yl=ae.use,fk=ae.useLayoutEffect;function vA({promise:e}){if(yl)return yl(e);const t=sA(e);if(t[Nn].status==="pending")throw t;if(t[Nn].status==="error")throw t[Nn].error;return t[Nn].data}function jA(e){const t=$.jsx(_A,{...e});
13return e.fallback?$.jsx(ae.Suspense,{fallback:e.fallback,children:t}):t}function _A(e){const t=vA(e);return e.children(t)}var Ah=class extends ae.Component{constructor(...e){super(...e),this.state={error:0},this.reset=()=>{this.setState({error:0})}}static getDerivedStateFromProps(e,t){const a=e.getResetKey();return t.error&&t.resetKey!==a?{resetKey:a,error:0}:{resetKey:a}}static getDerivedStateFromError(e){return{error:[e]}}componentDidCatch(e,t){this.props.onCatch?.(e,t)}render(){const e=this.state.error;return e?ae.createElement(this.props.errorComponent??SA,{error:e[0],reset:this.reset}):this.props.children}};function SA({error:e}){const[t,a]=ae.useState(!1);return $.jsxs("div",{style:{padding:".5rem",maxWidth:"100%"},children:[$.jsxs("div",{style:{display:"flex",alignItems:"center",gap:".5rem"},children:[$.jsx("strong",{style:{fontSize:"1rem"},children:"Something went wrong!"}),$.jsx("button",{style:{appearance:"none",fontSize:".6em",border:"1px solid currentColor",padding:".1rem .2rem",fontWeight:"bold",borderRadius:".25rem"},onClick:()=>a(r=>!r),children:t?"Hide Error":"Show Error"})]}),$.jsx("div",{style:{height:".25rem"}}),t?$.jsx("div",{children:$.jsx("pre",{style:{fontSize:".7em",border:"1px solid red",borderRadius:".25rem",padding:".3rem",color:"red",overflow:"auto"},children:e?.message?$.jsx("code",{children:e.message}):null})}):null]})}var Ew=()=>!0,TA=()=>!1;function EA({children:e,fallback:t=null}){return $.jsx(Rl.Fragment,{children:Rh()?e:t})}function Rh(e=!0){return Rl.useSyncExternalStore(AA,Ew,e?TA:Ew)}function AA(){return()=>{}}var hk=ae.createContext(null);function Nt(e){return ae.useContext(hk)}var Oh=ae.createContext(void 0),RA=ae.createContext(void 0);function OA({update:e,notify:t,unwatched:a}){return{link:r,unlink:s,propagate:l,checkDirty:u,shallowPropagate:d};function r(y,z,m){const g=z.depsTail;if(g!==void 0&&g.dep===y)return;const b=g!==void 0?g.nextDep:z.deps;if(b!==void 0&&b.dep===y){b.version=m,z.depsTail=b;return}const v=y.subsTail;if(v!==void 0&&v.version===m&&v.sub===z)return;const j=z.depsTail=y.subsTail={version:m,dep:y,sub:z,prevDep:g,nextDep:b,prevSub:v,nextSub:void 0};b!==void 0&&(b.prevDep=j),g!==void 0?g.nextDep=j:z.deps=j,v!==void 0?v.nextSub=j:y.subs=j}function s(y,z=y.sub){const m=y.dep,g=y.prevDep,b=y.nextDep,v=y.nextSub,j=y.prevSub;return b!==void 0?b.prevDep=g:z.depsTail=g,g!==void 0?g.nextDep=b:z.deps=b,v!==void 0?v.prevSub=j:m.subsTail=j,j!==void 0?j.nextSub=v:(m.subs=v)===void 0&&a(m),b}function l(y){let z=y.nextSub,m;e:do{const g=y.sub;let b=g.flags;if(b&60?b&12?b&4?!(b&48)&&h(y,g)?(g.flags=b|40,b&=1):b=0:g.flags=b&-9|32:b=0:g.flags=b|32,b&2&&t(g),b&1){const v=g.subs;if(v!==void 0){const j=(y=v).nextSub;j!==void 0&&(m={value:z,prev:m},z=j);continue}}if((y=z)!==void 0){z=y.nextSub;continue}for(;m!==void 0;)if(y=m.value,m=m.prev,y!==void 0){z=y.nextSub;continue e}break}while(!0)}function u(y,z){let m,g=0,b=!1;e:do{const v=y.dep,j=v.flags;if(z.flags&16)b=!0;else if((j&17)===17){if(e(v)){const _=v.subs;_.nextSub!==void 0&&d(_),b=!0}}else if((j&33)===33){(y.nextSub!==void 0||y.prevSub!==void 0)&&(m={value:y,prev:m}),y=v.deps,z=v,++g;continue}if(!b){const _=y.nextDep;if(_!==void 0){y=_;continue}}for(;g--;){const _=z.subs,T=_.nextSub!==void 0;if(T?(y=m.value,m=m.prev):y=_,b){if(e(z)){T&&d(_),z=y.sub;continue}b=!1}else z.flags&=-33;z=y.sub;const O=y.nextDep;if(O!==void 0){y=O;continue e}}return b}while(!0)}function d(y){do{const z=y.sub,m=z.flags;(m&48)===32&&(z.flags=m|16,(m&6)===2&&t(z))}while((y=y.nextSub)!==void 0)}function h(y,z){let m=z.depsTail;for(;m!==void 0;){if(m===y)return!0;m=m.prevDep}return!1}}function CA(e,t,a){const r=typeof e=="object",s=r?e:void 0;return{next:(r?e.next:e)?.bind(s),error:(r?e.error:t)?.bind(s),complete:(r?e.complete:a)?.bind(s)}}const Bf=[];let ll=0;const{link:Aw,unlink:NA,propagate:xA,checkDirty:pk,shallowPropagate:Rw}=OA({update(e){return e._update()},notify(e){Bf[Hf++]=e,e.flags&=-3},unwatched(e){e.depsTail!==void 0&&(e.depsTail=void 0,e.flags=17,ml(e))}});let Jc=0,Hf=0,zn,qf=0;function DA(e){try{++qf,e()}finally{--qf||yk()}}function ml(e){const t=e.depsTail;let a=t!==void 0?t.nextDep:e.deps;for(;a!==void 0;)a=NA(a,e)}function yk(){if(!(qf>0)){for(;Jc<Hf;){const e=Bf[Jc];Bf[Jc++]=void 0,e.notify()}Jc=0,Hf=0}}function Ow(e,t){const a=typeof e=="function",r=e,s={_snapshot:a?void 0:e,subs:void 0,subsTail:void 0,deps:void 0,depsTail:void 0,flags:a?0:1,get(){return zn!==void 0&&Aw(s,zn,ll),s._snapshot},subscribe(l){const u=CA(l),d={current:!1},h=PA(()=>{s.get(),d.current?(zn=void 0,u.next?.(s._snapshot)):d.current=!0});return{unsubscribe:()=>{h.stop()}}},_update(l){const u=zn,d=t?.compare??Object.is;if(a)zn=s,++ll,s.depsTail=void 0;else if(l===void 0)return!1;a&&(s.flags=5);try{const h=s._snapshot,y=typeof l=="function"?l(h):l===void 0&&a?r(h):l;return h===void 0||!d(h,y)?(s._snapshot=y,!0):!1}finally{zn=u,a&&(s.flags&=-5),ml(s)}}};return a?(s.flags=17,s.get=function(){const l=s.flags;if(l&16||l&32&&pk(s.deps,s)){if(s._update()){const u=s.subs;u!==void 0&&Rw(u)}}else l&32&&(s.flags=l&-33);return zn!==void 0&&Aw(s,zn,ll),s._snapshot}):s.set=function(l){if(s._update(l)){const u=s.subs;u!==void 0&&(xA(u),Rw(u),yk())}},s}function PA(e){const t=()=>{const r=zn;zn=a,++ll,a.depsTail=void 0,a.flags=6;try{return e()}finally{zn=r,a.flags&=-5,ml(a)}},a={deps:void 0,depsTail:void 0,subs:void 0,subsTail:void 0,flags:6,notify(){const r=this.flags;r&16||r&32&&pk(this.deps,this)?t():this.flags=2},stop(){this.flags=0,this.depsTail=void 0,ml(this)}};return t(),a}var bf={exports:{}},kf={},vf={exports:{}},jf={};var Cw;
13function LA(){if(Cw)return jf;Cw=1;var e=zs();function t(m,g){return m===g&&(m!==0||1/m===1/g)||m!==m&&g!==g}var a=typeof Object.is=="function"?Object.is:t,r=e.useState,s=e.useEffect,l=e.useLayoutEffect,u=e.useDebugValue;function d(m,g){var b=g(),v=r({inst:{value:b,getSnapshot:g}}),j=v[0].inst,_=v[1];return l(function(){j.value=b,j.getSnapshot=g,h(j)&&_({inst:j})},[m,b,g]),s(function(){return h(j)&&_({inst:j}),m(function(){h(j)&&_({inst:j})})},[m]),u(b),b}function h(m){var g=m.getSnapshot;m=m.value;try{var b=g();return!a(m,b)}catch{return!0}}function y(m,g){return g()}var z=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?y:d;return jf.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:z,jf}var Nw;function MA(){return Nw||(Nw=1,vf.exports=LA()),vf.exports}var xw;function UA(){if(xw)return kf;xw=1;var e=zs(),t=MA();function a(y,z){return y===z&&(y!==0||1/y===1/z)||y!==y&&z!==z}var r=typeof Object.is=="function"?Object.is:a,s=t.useSyncExternalStore,l=e.useRef,u=e.useEffect,d=e.useMemo,h=e.useDebugValue;return kf.useSyncExternalStoreWithSelector=function(y,z,m,g,b){var v=l(null);if(v.current===null){var j={hasValue:!1,value:null};v.current=j}else j=v.current;v=d(function(){function T(I){if(!O){if(O=!0,R=I,I=g(I),b!==void 0&&j.hasValue){var N=j.value;if(b(N,I))return M=N}return M=I}if(N=M,r(R,I))return N;var G=g(I);return b!==void 0&&b(N,G)?(R=I,N):(R=I,M=G)}var O=!1,R,M,Z=m===void 0?null:m;return[function(){return T(z())},Z===null?void 0:function(){return T(Z())}]},[z,m,g,b]);var _=s(y,v[0],v[1]);return u(function(){j.hasValue=!0,j.value=_},[_]),h(_),_},kf}var Dw;function $A(){return Dw||(Dw=1,bf.exports=UA()),bf.exports}var IA=$A();function BA(e,t){return e===t}function vn(e,t=r=>r,a){const r=a?.compare??BA,s=ae.useCallback(u=>{const{unsubscribe:d}=e.subscribe(u);return d},[e]),l=ae.useCallback(()=>e.get(),[e]);return IA.useSyncExternalStoreWithSelector(s,l,l,t,r)}var Pw={};function mk(e,t){const a=ae.useRef();return r=>{const s=e?.select?e.select(r):r;return e?.structuralSharing??t.options.defaultStructuralSharing?a.current=Va(a.current,s):s}}function xi(e){const t=Nt(),a=ae.useContext(e.from?RA:Oh),r=e.from??a,s=t.stores.getMatchStore(r),l=mk(e,t),u=vn(s,d=>d?l(d):Pw);if(u!==Pw)return u;(e.shouldThrow??!0)&&ns()}function zk(e){return xi({from:e.from,strict:e.strict,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.loaderData):t.loaderData})}function wk(e){const{select:t,...a}=e;return xi({...a,select:r=>t?t(r.loaderDeps):r.loaderDeps})}function gk(e){return xi({from:e.from,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,strict:e.strict,select:t=>{const a=e.strict===!1?t.params:t._strictParams;return e.select?e.select(a):a}})}function bk(e){return xi({from:e.from,strict:e.strict,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.search):t.search})}function kk(e){const t=Nt();return ae.useCallback(a=>t.navigate({...a,from:a.from??e?.from}),[e?.from,t])}function vk(e){return xi({...e,select:t=>e.select?e.select(t.context):t.context})}function HA(...e){const t=ae.useRef(e),a=t.current;return e.forEach((r,s)=>{kn(a[s],r,!1,!0)||(a[s]=r)}),t.current}function Vc(e,t){e.preloadRoute(t).catch(a=>{console.warn(a),console.warn(cA)})}var qA={compare:(e,t)=>e[0]===t[0]&&e[1]===t[1]};function KA(e,t){const a=typeof e=="string"&&ts(e);if(a)return t.has(a)?e:null}function JA(e,t,a,r,s){const l=aw(e.pathname,r),u=aw(t.pathname,r);return(a?.exact?l!==u:!(l.startsWith(u)&&(l.length===u.length||l[u.length]==="/")))||(a?.includeSearch??!0)&&!kn(e.search,t.search,!a?.exact,a?.explicitUndefined)?!1:a?.includeHash?s&&e.hash===t.hash:!0}function VA(e,t,a){const r=Nt(),s=ae.useRef(null),l=ae.useCallback(le=>{if(s.current=le,typeof t=="function")return t(le);t&&(t.current=le)},[t]),{activeOptions:u,to:d,preload:h,preloadDelay:y,hashScrollIntoView:z,replace:m,startTransition:g,resetScroll:b,viewTransition:v,ignoreBlocker:j,disabled:_,target:T,onClick:O,onBlur:R,onFocus:M,onMouseEnter:Z,onMouseLeave:I,onTouchStart:N}=e,G=Rh(!!u?.includeHash),[Q,oe,J]=HA(e.search,e.params,u),[V,X]=ae.useMemo(()=>[e,{...e}],[r,e.from,e._fromLocation,e.hash,e.to,Q,oe,e.state,e.mask,e.unsafeRelative]),ye=ae.useMemo(()=>{const le=KA(d,r.protocolAllowlist);
13if(le!==void 0){const _n=[le??void 0];return()=>_n}let Ne,qe;return _n=>{V._fromLocation||(X._fromLocation=_n);const ti=r.buildLocation(X),Ln=WA(ti,r,_);return(!Ne||Ne[0]!==Ln)&&(Ne=[Ln,!(_||Ln&&!ts(Ln))&&void 0],qe=[Ln,!0]),Ne[1]!==void 0&&JA(_n,ti,J,r.basepath,G)?qe:Ne}},[J,_,G,V,X,r,d]),[re,L]=vn(r.stores.location,ye,qA),F=L===void 0&&re,ce=_||re===void 0,Ce=ae.useRef(!1),_e=e.reloadDocument||F||ce?!1:h??r.options.defaultPreload,A=y??r.options.defaultPreloadDelay??0,q=ae.useCallback(le=>{const Ne=le?.isIntersecting;if(!(Ne??_e==="intent")){Ne===!1&&_f(s);return}if(!A){Vc(r,V);return}Wo.has(s)||Wo.set(s,setTimeout(()=>{Wo.delete(s),Vc(r,V)},A))},[r,V,s,_e,A]);ae.useEffect(()=>{if(!_e)return;_e==="render"&&!Ce.current&&(Ce.current=!0,Vc(r,V));let le=!0,Ne;return _e==="viewport"&&s.current&&typeof IntersectionObserver=="function"&&(Ne=new IntersectionObserver(qe=>{le&&q(qe.pop())},{rootMargin:"100px"}),Ne.observe(s.current)),()=>{le=!1,Ne?.disconnect(),_f(s)}},[r,V,_e,q,s]);const Y=YA(e,a);if(Y.ref=t?l:s,F)return Y.href=F,Y;const te=le=>{const Ne=T??le.currentTarget.getAttribute("target");!ce&&!(le.metaKey||le.altKey||le.ctrlKey||le.shiftKey)&&!le.defaultPrevented&&(!Ne||Ne==="_self")&&le.button===0&&(le.preventDefault(),r.navigate({...V,replace:m,resetScroll:b,hashScrollIntoView:z,startTransition:g,viewTransition:v,ignoreBlocker:j}))},ze=()=>{_e==="intent"&&Vc(r,V)},ke=()=>{_e==="intent"&&_f(s)};return Y.onClick=vr(O,te),Y.onBlur=vr(R,ke),Y.onFocus=vr(M,q),Y.onMouseEnter=vr(Z,q),Y.onMouseLeave=vr(I,ke),Y.onTouchStart=vr(N,ze),FA(Y,e,L,re,ce,a)}var ZA={},GA={className:"active"},jk=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 YA(e,t){const a={};for(const r in e)jk.has(r)||r==="type"&&t!==void 0||r==="disabled"&&t==="a"||(a[r]=e[r]);return a}function FA(e,t,a,r,s,l){const{activeProps:u,inactiveProps:d,className:h,style:y,target:z}=t,m=Fg(a?u:d,{})??(a?GA:ZA);Object.assign(e,m),e.href=r,l!=="a"&&(e.disabled=s),e.target=z;const g=m.style;(y||g)&&(e.style=y&&g?{...y,...g}:y||g);const b=m.className;return(h||b)&&(e.className=h?b?`${h} ${b}`:h:b),s&&(e.role="link",e["aria-disabled"]=!0),a&&(e["data-status"]="active",e["aria-current"]="page"),e}var Wo=new WeakMap,_f=e=>{clearTimeout(Wo.get(e)),Wo.delete(e)},vr=(e,t)=>e?a=>a.defaultPrevented||(e(a),a.defaultPrevented||t(a)):t;function WA(e,t,a){if(a)return;const r=e.maskedLocation??e,s=r.external?r.publicHref:t.history.createHref(r.publicHref)||"/";if(!((r.external||s!==r.publicHref)&&Qg(s,t.protocolAllowlist)))return s}var vt=ae.memo(ae.forwardRef((e,t)=>{const a=e._asChild||"a",r=VA(e,t,a),s=typeof e.children=="function"?e.children({isActive:r["data-status"]==="active"}):e.children;return ae.createElement(a,r,s)}),XA);function XA(e,t){let a=0;for(const r in t)if(a++,e[r]!==t[r]&&(!jk.has(r)||!kn(e[r],t[r],!1,!0)))return!1;for(const r in e)a--;return a===0}var QA=class extends ok{constructor(t){super(t),this.useMatch=a=>xi({...a,from:this.id}),this.useRouteContext=a=>vk({...a,from:this.id}),this.useSearch=a=>bk({...a,from:this.id}),this.useParams=a=>gk({...a,from:this.id}),this.useLoaderDeps=a=>wk({...a,from:this.id}),this.useLoaderData=a=>zk({...a,from:this.id}),this.useNavigate=()=>kk({from:this.fullPath}),this.Link=Rl.forwardRef((a,r)=>$.jsx(vt,{ref:r,from:this.fullPath,...a}))}};function eR(e){return new QA(e)}var tR=class extends yA{constructor(e){super(e),this.useMatch=t=>xi({...t,from:this.id}),this.useRouteContext=t=>vk({...t,from:this.id}),this.useSearch=t=>bk({...t,from:this.id}),this.useParams=t=>gk({...t,from:this.id}),this.useLoaderDeps=t=>wk({...t,from:this.id}),this.useLoaderData=t=>zk({...t,from:this.id}),this.useNavigate=()=>kk({from:this.fullPath}),this.Link=Rl.forwardRef((t,a)=>$.jsx(vt,{ref:a,from:this.fullPath,...t}))}};function nR(e){return new tR(e)}function me(e){return t=>{const a=eR(t);return a.isRoot=!1,a}}function fe(e,t){let a,r,s;const l=()=>(a||(s=void 0,a=e().then(d=>{a=void 0,u.preload=void 0,r=d[t??"default"]}).catch(d=>{a=void 0,s=d})),a),u=function(h){if(s){if(d_(s)&&typeof sessionStorage<"u"){const y=`tanstack_router_reload:${s.message}`;
13if(!sessionStorage.getItem(y))throw sessionStorage.setItem(y,"1"),window.location.reload(),new Promise(()=>{})}throw s}if(!r)if(yl)yl(l());else throw l();return ae.createElement(r,h)};return u.preload=l,u}function aR(e){const t=Nt(),a=`not-found-${vn(t.stores.location,r=>r.pathname)}-${vn(t.stores.status)}`;return $.jsx(Ah,{getResetKey:()=>a,onCatch:(r,s)=>{if(Ai(r))e.onCatch?.(r,s);else throw r},errorComponent:({error:r})=>{if(Ai(r))return e.fallback?.(r);throw r},children:e.children})}function iR(){return $.jsx("p",{children:"Not Found"})}function _k(e,t,a){return t.options.notFoundComponent?$.jsx(t.options.notFoundComponent,{...a}):e.options.defaultNotFoundComponent?$.jsx(e.options.defaultNotFoundComponent,{...a}):$.jsx(iR,{})}function Ll(e,t){const a=t?.options.pendingComponent??e.options.defaultPendingComponent;return a?$.jsx(a,{}):null}var rR=(e,t)=>e[0]===t[0]&&e[1]===t[1],Sk=(e,t,a)=>!t.isRoot||t.options.shellComponent||t.options.wrapInSuspense||a===!1||a==="data-only"||!e.ssr,Tk=ae.memo(function({routeId:t}){const a=Nt();return $.jsx(oR,{router:a,match:vn(a.stores.getMatchStore(t))})});function oR({router:e,match:t}){const a=e.routesById[t.routeId],r=Ll(e,a),s=a.options.errorComponent??e.options.defaultErrorComponent,l=a.options.onCatch??e.options.defaultOnCatch,u=a.isRoot?a.options.notFoundComponent??e.options.notFoundRoute?.options.component:a.options.notFoundComponent,d=t.ssr===!1||t.ssr==="data-only",h=Sk(e,a,t.ssr)&&(a.options.wrapInSuspense??r??(a.options.errorComponent?.preload||d));let y=$.jsx(sR,{match:t});d&&(y=$.jsx(EA,{fallback:r,children:y})),u&&(y=$.jsx(aR,{fallback:g=>{if(g.routeId??=t.routeId,g.routeId!==t.routeId)throw g;return ae.createElement(u,g)},children:y})),s&&(y=$.jsx(Ah,{getResetKey:()=>t,errorComponent:s,onCatch:(g,b)=>{if(Ai(g))throw g.routeId??=t.routeId,g;l?.(g,b)},children:y})),h&&(y=$.jsx(ae.Suspense,{fallback:r,children:y}));const z=null,m=a.isRoot?a.options.shellComponent:void 0;return $.jsx(Oh.Provider,{value:t.routeId,children:m?$.jsxs(m,{children:[y,z]}):$.jsxs($.Fragment,{children:[y,z]})})}var sR=ae.memo(function({match:t}){const a=Nt(),r=t.routeId,s=a.routesById[r],l=ae.useMemo(()=>{const d=(s.options.remountDeps??a.options.defaultRemountDeps)?.({routeId:r,loaderDeps:t.loaderDeps,params:t._strictParams,search:t._strictSearch});return d?JSON.stringify(d):void 0},[r,t.loaderDeps,t._strictParams,t._strictSearch,s.options.remountDeps,a.options.defaultRemountDeps]),u=ae.useMemo(()=>{const d=s.options.component??a.options.defaultComponent;return d?$.jsx(d,{},l):$.jsx(Ek,{})},[l,s.options.component,a.options.defaultComponent]);if(t.status==="pending"){if(a.ssr&&!Sk(a,s,t.ssr))return u;if(a._tx)throw a._tx[5];return Ll(a,s)}if(t.status==="notFound")return _k(a,s,t.error);if(t.status==="error")throw t.error;return u}),Ek=ae.memo(function(){const t=Nt(),a=ae.useContext(Oh);let r,s,l;{const d=t.stores.getMatchStore(a);[r,s]=vn(d,h=>[!!h._notFound,h.error],{compare:rR}),l=vn(t.stores.ids,h=>h[h.indexOf(a)+1])}if(r)return _k(t,t.routesById[a],s);if(!l)return null;const u=$.jsx(Tk,{routeId:l});return a===Ur?$.jsx(ae.Suspense,{fallback:Ll(t),children:u}):u});function Ak(e,t){const a=e[1];e.length=0,a?.(t)}function cR({t:e}){const t=Nt(),a=t._rendered??=[];return t.startTransition=(r,s)=>new Promise(l=>{Ak(a,!1),a.push(s,l),e(t),ae.startTransition(r)}),fk(()=>{const r=t.history.subscribe(t.load);t.updateLatestLocation();const s=t.latestLocation,l=t.buildLocation({to:s.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0});if(Dn(s.publicHref)!==Dn(l.publicHref))return t.commitLocation({...l,replace:!0,ignoreBlocker:!0}),r;const u=t.stores.resolvedLocation.get();return u?.href===s.href&&u.state.__TSR_key===s.state.__TSR_key?a.push(t.stores.matches.get(),d=>{d&&t.emit({type:"onRendered",...Ol(u,u)})}):t._tx||t.load({sync:!0}).catch(console.error),r},[t,t.history]),null}function lR(){const e=Nt(),t=e.routesById[Ur],a=Ll(e,t),r=$.jsxs($.Fragment,{children:[$.jsx(cR,{t:ae.useState()[1]}),e.ssr?$.jsx(Lw,{}):$.jsx(ae.Suspense,{fallback:a,children:$.jsx(Lw,{})})]});return e.options.InnerWrap?$.jsx(e.options.InnerWrap,{children:r}):r}function Lw(){const e=Nt(),t=e._rendered,a=vn(e.stores.matches,u=>t[0]??u),r=a[0],s=r?.routeId;fk(()=>{t[0]===a&&Ak(t,!0)},[t,a]);const l=s?$.jsx(Tk,{routeId:s}):null;return e.options.disableGlobalCatchBoundary?l:$.jsx(Ah,{getResetKey:()=>r,onCatch:void 0,children:l})}var uR=e=>({createMutableStore:Ow,createReadonlyStore:Ow,batch:DA}),dR=e=>new fR(e),fR=class extends W_{constructor(e){super(e,uR)}};function hR({router:e,children:t,...a}){Wg(a)&&e.update({...e.options,...a,context:{...e.options.context,...a.context}});const r=$.jsx(hk.Provider,{value:e,children:t});return e.options.Wrap?$.jsx(e.options.Wrap,{children:r}):r}function pR({router:e,...t}){return $.jsx(hR,{router:e,...t,children:$.jsx(lR,{})})}function yR(e){const t=Nt({warn:e?.router===void 0}),a=e?.router||t;return vn(a.stores.__store,mk(e,a))}function Mw(e,t){if(t)for(const[a,r]of Object.entries(t))a!=="suppressHydrationWarning"&&r!==void 0&&r!==!1&&e.setAttribute(a,typeof r=="boolean"?"":String(r))}function Rk(e){const{attrs:t,children:a,nonce:r,preventScriptHoist:s}=e,l=ae.useMemo(()=>a===void 0?void 0:{__html:a},[a]);switch(e.tag){case"title":return $.jsx("title",{...t,suppressHydrationWarning:!0,children:a});case"meta":return $.jsx("meta",{...t,suppressHydrationWarning:!0});case"link":return $.jsx("link",{...t,precedence:t?.precedence??(t?.rel==="stylesheet"?"default":void 0),nonce:r,suppressHydrationWarning:!0});case"style":return e.inlineCss,$.jsx("style",{...t,dangerouslySetInnerHTML:l,nonce:r});case"script":return $.jsx(mR,{attrs:t,preventScriptHoist:s,children:a});default:return null}}function mR({attrs:e,children:t,preventScriptHoist:a}){Nt();const r=Rh(),s=ae.useMemo(()=>t===void 0?void 0:{__html:t},[t]),l=typeof e?.type=="string"&&e.type!==""&&e.type!=="text/javascript"&&e.type!=="module";if(ae.useEffect(()=>{if(!l){if(e?.src){const u=document.createElement("a");u.href=e.src;const d=u.href;for(const y of document.scripts)if(y.src===d)return;const h=document.createElement("script");return Mw(h,e),document.head.appendChild(h),()=>h.remove()}if(typeof t=="string"){const u=typeof e?.type=="string"?e.type:"text/javascript",d=typeof e?.nonce=="string"?e.nonce:void 0;for(const y of document.scripts){if(y.hasAttribute("src"))continue;const z=y.getAttribute("type")??"text/javascript",m=y.getAttribute("nonce")??void 0;if(y.textContent===t&&z===u&&m===d)return}const h=document.createElement("script");return h.textContent=t,Mw(h,e),document.head.appendChild(h),()=>h.remove()}}},[e,t,l]),l&&typeof t=="string")return $.jsx("script",{...e,suppressHydrationWarning:!0,dangerouslySetInnerHTML:s});if(!r){if(e?.src)return $.jsx("script",{...e,suppressHydrationWarning:!0});if(typeof t=="string")return $.jsx("script",{...e,dangerouslySetInnerHTML:s,suppressHydrationWarning:!0})}return null}function zR(e,t,a,r){a=fb(a);const s=a.map(j=>j.meta).filter(j=>j!==void 0),l=[],u={};let d;for(let j=s.length-1;j>=0;j--){const _=s[j];for(let T=_.length-1;T>=0;T--){const O=_[T];if(O)if(O.title)d||(d={tag:"title",children:O.title});else if("script:ld+json"in O)try{const R=JSON.stringify(O["script:ld+json"]);l.push({tag:"script",attrs:{type:"application/ld+json"},children:z_(R)})}catch{}else{const R=O.name??O.property;if(R){if(u[R])continue;u[R]=!0}l.push({tag:"meta",attrs:{...O,nonce:t}})}}}d&&l.push(d),t&&l.push({tag:"meta",attrs:{property:"csp-nonce",content:t}}),l.reverse();const h=a.flatMap(j=>j.links??[]).filter(j=>j!==void 0).map(j=>({tag:"link",attrs:{...j,nonce:t}})),y=e.ssr?.manifest,z=[];
13y&&(a.forEach(j=>{y.routes[j.routeId]?.css?.forEach(_=>{const T=fA(_);z.push({tag:"link",attrs:{rel:"stylesheet",...T,crossOrigin:rk(r,"stylesheet")??T.crossOrigin,suppressHydrationWarning:!0,nonce:t}})})}),y.inlineStyle&&z.push({tag:"style",attrs:{...y.inlineStyle.attrs,nonce:t},children:y.inlineStyle.children,inlineCss:!0}));const m=[];y&&a.forEach(j=>{y.routes[j.routeId]?.preloads?.forEach(_=>{m.push({tag:"link",attrs:{...uA(y,_,r),nonce:t}})})});const g=a.flatMap(j=>j.styles??[]).filter(j=>j!==void 0).map(({children:j,..._})=>({tag:"style",attrs:{..._,nonce:t},children:j})),b=a.flatMap(j=>j.headScripts??[]).filter(j=>j!==void 0).map(({children:j,..._})=>({tag:"script",attrs:{..._,nonce:t},children:j})),v=[];return Kc(v,l),v.push(...m),Kc(v,h),v.push(...z),Kc(v,g),Kc(v,b),v}var wR=e=>{const t=Nt(),a=t.options.ssr?.nonce,r=ae.useCallback(s=>zR(t,a,s,e),[e,a,t]);return vn(t.stores.matches,r,{compare:kn})};function gR(e){const t=wR(e.assetCrossOrigin),a=Nt().options.ssr?.nonce;return $.jsx($.Fragment,{children:t.map(r=>ae.createElement(Rk,{...r,key:`tsr-meta-${JSON.stringify(r)}`,nonce:a}))})}var bR={suppressHydrationWarning:!0},kR=()=>{const e=Nt(),t=e.options.ssr?.nonce,a=s=>{const l=hA(s,e.ssr?.manifest,t,bR);for(const u of l[1])if(typeof u.attrs?.src=="string"){const d=u;d.preventScriptHoist=!0}return l},r=s=>pA(a(s));return vR(vn(e.stores.matches,r,{compare:kn}))};function vR(e){return $.jsx($.Fragment,{children:e.map((t,a)=>ae.createElement(Rk,{...t,key:`tsr-scripts-${t.tag}-${a}`}))})}function Uw(e){return e!=="__proto__"&&e!=="constructor"&&e!=="prototype"}function Kf(e,t){const a=Object.create(null);if(e)for(const r of Object.keys(e))Uw(r)&&(a[r]=e[r]);if(t&&typeof t=="object")for(const r of Object.keys(t))Uw(r)&&(a[r]=t[r]);return a}function Ok(e){return Object.create(null)}var Ck=()=>{throw new Error("createServerOnlyFn() functions can only be called on the server!")},jt=(e,t)=>{const a=t||e||{};typeof a.method>"u"&&(a.method="GET");const r=u=>jt(void 0,{...a,validator:u,inputValidator:u});return Object.assign(u=>jt(void 0,{...a,...u}),{options:a,middleware:u=>{const d=[...a.middleware||[]];u.forEach(y=>{ew in y?y.options.middleware&&d.push(...y.options.middleware):d.push(y)});const h=jt(void 0,{...a,middleware:d});return h[ew]=!0,h},validator:r,inputValidator:r,handler:(...u)=>{const[d,h]=u,y={...a,extractedFn:d,serverFn:h},z=[...y.middleware||[],SR(y)];return d.method=a.method,Object.assign(async m=>{const g=await $w(z,"client",{...d,...y,data:m?.data,headers:m?.headers,signal:m?.signal,fetch:m?.fetch,context:Ok()}),b=Yg(g.error);if(b)throw b;if(g.error)throw g.error;return g.result},{...d,method:a.method,__executeServer:async m=>{const g=Ck(),b=g.contextAfterGlobalMiddlewares;return await $w(z,"server",{...d,data:m.data,method:m.method??a.method,serverFnMeta:d.serverFnMeta,context:Kf(m.context,b),request:g.request}).then(v=>({result:v.result,error:v.error,context:v.sendContext}))}})}})};async function $w(e,t,a){let r=jR([...lh()?.functionMiddleware||[],...e]);if(t==="server"){const l=Ck();l?.executedRequestMiddlewares&&(r=r.filter(u=>!l.executedRequestMiddlewares.has(u)))}const s=async l=>{const u=r.shift();if(!u)return l;try{let d="validator"in u.options?u.options.validator:void 0;!d&&"inputValidator"in u.options&&(d=u.options.inputValidator),d&&t==="server"&&(l.data=await _R(d,l.data));let h;if(t==="client"?"client"in u.options&&(h=u.options.client):"server"in u.options&&(h=u.options.server),h){const z=await h({...l,next:async(m={})=>{const g=await s({...l,...m,context:Kf(l.context,m.context),sendContext:Kf(l.sendContext,m.sendContext),headers:BE(l.headers,m.headers),_callSiteFetch:l._callSiteFetch,fetch:l._callSiteFetch??m.fetch??l.fetch,result:m.result!==void 0?m.result:m instanceof Response?m:l.result,error:m.error??l.error});if(g.error)throw g.error;return g}});if(uh(z))return{...l,error:z};if(z instanceof Response)return{...l,result:z};if(!z)throw new Error("User middleware returned undefined. You must call next() or return a result in your middlewares.");return z}return s(l)}catch(d){return{...l,error:d}}};return s({...a,headers:a.headers||{},sendContext:a.sendContext||{},context:a.context||Ok(),_callSiteFetch:a.fetch})}function jR(e,t=100){const a=new Set,r=[],s=(l,u)=>{if(u>t)throw new Error(`Middleware nesting depth exceeded maximum of ${t}. Check for circular references.`);l.forEach(d=>{d.options.middleware&&s(d.options.middleware,u+1),a.has(d)||(a.add(d),r.push(d))})};return s(e,0),r}async function _R(e,t){if(e==null)return{};if("~standard"in e){const a=await e["~standard"].validate(t);if(a.issues)throw new Error(JSON.stringify(a.issues,void 0,2));return a.value}if("parse"in e)return e.parse(t);if(typeof e=="function")return e(t);throw new Error("Invalid validator type!")}function SR(e){return{"~types":void 0,options:{inputValidator:e.validator??e.inputValidator,client:async({next:t,sendContext:a,fetch:r,...s})=>{const l={...s,context:a,fetch:r};return t(await e.extractedFn?.(l))},server:async({next:t,...a})=>{const r=await e.serverFn?.(a);return t({...a,result:r})}}}}var Ja=(e,t)=>{const a={type:"request",...t||e},r=s=>Ja({},Object.assign(a,{validator:s,inputValidator:s}));return{options:a,middleware:s=>Ja({},Object.assign(a,{middleware:s})),validator:r,inputValidator:r,client:s=>Ja({},Object.assign(a,{client:s})),server:s=>Ja({},Object.assign(a,{server:s}))}};function Nk(e,t){for(let a=0,r=t.length;a<r;a++){const s=t[a];e.has(s)||(e.add(s),s.extends&&Nk(e,s.extends))}}var TR=e=>({getOptions:async()=>{const t=await e();if(t.serializationAdapters){const a=new Set;Nk(a,t.serializationAdapters),t.serializationAdapters=Array.from(a)}return t},createMiddleware:Ja});function Ml(e,t){var a={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(a[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(e);s<r.length;s++)t.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(e,r[s])&&(a[r[s]]=e[r[s]]);return a}function ER(e,t,a,r){function s(l){return l instanceof a?l:new a(function(u){u(l)})}return new(a||(a=Promise))(function(l,u){function d(z){try{y(r.next(z))}catch(m){u(m)}}function h(z){try{y(r.throw(z))}catch(m){u(m)}}function y(z){z.done?l(z.value):s(z.value).then(d,h)}y((r=r.apply(e,t||[])).next())})}const AR=e=>e?(...t)=>e(...t):(...t)=>fetch(...t);
13class Ch extends Error{constructor(t,a="FunctionsError",r){super(t),this.name=a,this.context=r}toJSON(){return{name:this.name,message:this.message,context:this.context}}}class RR extends Ch{constructor(t){super("Failed to send a request to the Edge Function","FunctionsFetchError",t)}}class Iw extends Ch{constructor(t){super("Relay Error invoking the Edge Function","FunctionsRelayError",t)}}class Bw extends Ch{constructor(t){super("Edge Function returned a non-2xx status code","FunctionsHttpError",t)}}var Jf;(function(e){e.Any="any",e.ApNortheast1="ap-northeast-1",e.ApNortheast2="ap-northeast-2",e.ApSouth1="ap-south-1",e.ApSoutheast1="ap-southeast-1",e.ApSoutheast2="ap-southeast-2",e.CaCentral1="ca-central-1",e.EuCentral1="eu-central-1",e.EuWest1="eu-west-1",e.EuWest2="eu-west-2",e.EuWest3="eu-west-3",e.SaEast1="sa-east-1",e.UsEast1="us-east-1",e.UsWest1="us-west-1",e.UsWest2="us-west-2"})(Jf||(Jf={}));class OR{constructor(t,{headers:a={},customFetch:r,region:s=Jf.Any}={}){this.url=t,this.headers=a,this.region=s,this.fetch=AR(r)}setAuth(t){this.headers.Authorization=`Bearer ${t}`}invoke(t){return ER(this,arguments,void 0,function*(a,r={}){var s;let l,u;
13try{const{headers:d,method:h,body:y,signal:z,timeout:m}=r;let g={},{region:b}=r;b||(b=this.region);const v=new URL(`${this.url}/${a}`);b&&b!=="any"&&(g["x-region"]=b,v.searchParams.set("forceFunctionRegion",b));let j;y&&(d&&!Object.prototype.hasOwnProperty.call(d,"Content-Type")||!d)?typeof Blob<"u"&&y instanceof Blob||y instanceof ArrayBuffer?(g["Content-Type"]="application/octet-stream",j=y):typeof y=="string"?(g["Content-Type"]="text/plain",j=y):typeof FormData<"u"&&y instanceof FormData?j=y:(g["Content-Type"]="application/json",j=JSON.stringify(y)):y&&typeof y!="string"&&!(typeof Blob<"u"&&y instanceof Blob)&&!(y instanceof ArrayBuffer)&&!(typeof FormData<"u"&&y instanceof FormData)?j=JSON.stringify(y):j=y;let _=z;m&&(u=new AbortController,l=setTimeout(()=>u.abort(),m),z?(_=u.signal,z.addEventListener("abort",()=>u.abort())):_=u.signal);const T=yield this.fetch(v.toString(),{method:h||"POST",headers:Object.assign(Object.assign(Object.assign({},g),this.headers),d),body:j,signal:_}).catch(Z=>{throw new RR(Z)}),O=T.headers.get("x-relay-error");if(O&&O==="true")throw new Iw(T);if(!T.ok)throw new Bw(T);let R=((s=T.headers.get("Content-Type"))!==null&&s!==void 0?s:"text/plain").split(";")[0].trim(),M;return R==="application/json"?M=yield T.json():R==="application/octet-stream"||R==="application/pdf"?M=yield T.blob():R==="text/event-stream"?M=T:R==="multipart/form-data"?M=yield T.formData():M=yield T.text(),{data:M,error:null,response:T}}catch(d){return{data:null,error:d,response:d instanceof Bw||d instanceof Iw?d.context:void 0}}finally{l&&clearTimeout(l)}})}}const xk=3,Hw=e=>Math.min(1e3*2**e,3e4),CR=[520,503],Dk=["GET","HEAD","OPTIONS"];var NR=class extends Error{constructor(e){super(e.message),this.name="PostgrestError",this.details=e.details,this.hint=e.hint,this.co
13de=e.code}toJSON(){return{name:this.name,message:this.message,details:this.details,hint:this.hint,code:this.code}}};function qw(e,t){return new Promise(a=>{if(t?.aborted){a();return}const r=setTimeout(()=>{t?.removeEventListener("abort",s),a()},e);function s(){clearTimeout(r),a()}t?.addEventListener("abort",s)})}function xR(e,t,a,r){return!(!r||a>=xk||!Dk.includes(e)||!CR.includes(t))}var DR=class{constructor(e){var t,a,r,s,l;this.shouldThrowOnError=!1,this.retryEnabled=!0,this.method=e.method,this.url=e.url,this.headers=new Headers(e.headers),this.schema=e.schema,this.body=e.body,this.shouldThrowOnError=(t=e.shouldThrowOnError)!==null&&t!==void 0?t:!1,this.signal=e.signal,this.isMaybeSingle=(a=e.isMaybeSingle)!==null&&a!==void 0?a:!1,this.shouldStripNulls=(r=e.shouldStripNulls)!==null&&r!==void 0?r:!1,this.urlLengthLimit=(s=e.urlLengthLimit)!==null&&s!==void 0?s:8e3,this.retryEnabled=(l=e.retry)!==null&&l!==void 0?l:!0,e.fetch?this.fetch=e.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(e,t){return this.headers=new Headers(this.headers),this.headers.set(e,t),this}retry(e){return this.retryEnabled=e,this}then(e,t){var a=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 r=this.fetch;let l=(async()=>{let u=0;for(;;){const y=new Headers(a.headers);u>0&&y.set("X-Retry-Count",String(u));let z;try{z=await r(a.url.toString(),{method:a.method,headers:y,body:JSON.stringify(a.body,(m,g)=>typeof g=="bigint"?g.toString():g),signal:a.signal})}catch(m){if(m?.name==="AbortError"||m?.code==="ABORT_ERR"||!Dk.includes(a.method))throw m;if(a.retryEnabled&&u<xk){const g=Hw(u);u++,await qw(g,a.signal);continue}throw m}if(xR(a.method,z.status,u,a.retryEnabled)){var d,h;const m=(d=(h=z.headers)===null||h===void 0?void 0:h.get("Retry-After"))!==null&&d!==void 0?d:null,g=m!==null?Math.max(0,parseInt(m,10)||0)*1e3:Hw(u);await z.text(),u++,await qw(g,a.signal);continue}return await a.processResponse(z)}})();return this.shouldThrowOnError||(l=l.catch(u=>{var d;let h="",y="",z="";const m=u?.cause;if(m){var g,b,v,j;const O=(g=m?.message)!==null&&g!==void 0?g:"",R=(b=m?.code)!==null&&b!==void 0?b:"";h=`${(v=u?.name)!==null&&v!==void 0?v:"FetchError"}: ${u?.message}`,h+=`
14
15Caused by: ${(j=m?.name)!==null&&j!==void 0?j:"Error"}: ${O}`,R&&(h+=` (${R})`),m?.stack&&(h+=`
16${m.stack}`)}else{var _;h=(_=u?.stack)!==null&&_!==void 0?_:""}const T=this.url.toString().length;return u?.name==="AbortError"||u?.code==="ABORT_ERR"?(z="",y="Request was aborted (timeout or manual cancellation)",T>this.urlLengthLimit&&(y+=`. 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.`)):(m?.name==="HeadersOverflowError"||m?.code==="UND_ERR_HEADERS_OVERFLOW")&&(z="",y="HTTP headers exceeded server limits (typically 16KB)",T>this.urlLengthLimit&&(y+=`. 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:y,code:z},data:null,count:null,status:0,statusText:""}})),l.then(e,t)}async processResponse(e){var t=this;let a=null,r=null,s=null,l=e.status,u=e.statusText;if(e.ok){var d,h;if(t.method!=="HEAD"){var y;const g=await e.text();g===""||(t.headers.get("Accept")==="text/csv"||t.headers.get("Accept")&&(!((y=t.headers.get("Accept"))===null||y===void 0)&&y.includes("application/vnd.pgrst.plan+text"))?r=g:r=JSON.parse(g))}const z=(d=t.headers.get("Prefer"))===null||d===void 0?void 0:d.match(/count=(exact|planned|estimated)/),m=(h=e.headers.get("content-range"))===null||h===void 0?void 0:h.split("/");z&&m&&m.length>1&&(s=parseInt(m[1])),t.isMaybeSingle&&Array.isArray(r)&&(r.length>1?(a={code:"PGRST116",details:`Results contain ${r.length} rows, application/vnd.pgrst.object+json requires 1 row`,hint:null,message:"JSON object requested, multiple (or no) rows returned"},r=null,s=null,l=406,u="Not Acceptable"):r.length===1?r=r[0]:r=null)}else{const z=await e.text();try{a=JSON.parse(z),Array.isArray(a)&&e.status===404&&(r=[],a=null,l=200,u="OK")}catch{e.status===404&&z===""?(l=204,u="No Content"):a={message:z}}if(a&&t.shouldThrowOnError)throw new NR(a)}return{success:a===null,error:a,data:r,count:s,status:l,statusText:u}}returns(){return this}overrideTypes(){return this}},PR=class extends DR{select(e){let t=!1;const a=(e??"*").split("").map(r=>/\s/.test(r)&&!t?"":(r==='"'&&(t=!t),r)).join("");return this.url.searchParams.set("select",a),this.headers.append("Prefer","return=representation"),this}order(e,{ascending:t=!0,nullsFirst:a,foreignTable:r,referencedTable:s=r}={}){const l=s?`${s}.order`:"order",u=this.url.searchParams.get(l);return this.url.searchParams.set(l,`${u?`${u},`:""}${e}.${t?"asc":"desc"}${a===void 0?"":a?".nullsfirst":".nullslast"}`),this}limit(e,{foreignTable:t,referencedTable:a=t}={}){const r=typeof a>"u"?"limit":`${a}.limit`;return this.url.searchParams.set(r,`${e}`),this}range(e,t,{foreignTable:a,referencedTable:r=a}={}){const s=typeof r>"u"?"offset":`${r}.offset`,l=typeof r>"u"?"limit":`${r}.limit`;return this.url.searchParams.set(s,`${e}`),this.url.searchParams.set(l,`${t-e+1}`),this}abortSignal(e){return this.signal=e,this}single(){return this.headers.set("Accept","application/vnd.pgrst.object+json"),this}maybeSingle(){return this.isMaybeSingle=!0,this}csv(){return this.headers.set("Accept","text/csv"),this}geojson(){return this.headers.set("Accept","application/geo+json"),this}
16explain({analyze:e=!1,verbose:t=!1,settings:a=!1,buffers:r=!1,wal:s=!1,format:l="text"}={}){var u;const d=[e?"analyze":null,t?"verbose":null,a?"settings":null,r?"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(e){return this.headers.append("Prefer","handling=strict"),this.headers.append("Prefer",`max-affected=${e}`),this}};const Kw=new RegExp("[,()]");var Ar=class extends PR{eq(e,t){return this.url.searchParams.append(e,`eq.${t}`),this}neq(e,t){return this.url.searchParams.append(e,`neq.${t}`),this}gt(e,t){return this.url.searchParams.append(e,`gt.${t}`),this}gte(e,t){return this.url.searchParams.append(e,`gte.${t}`),this}lt(e,t){return this.url.searchParams.append(e,`lt.${t}`),this}lte(e,t){return this.url.searchParams.append(e,`lte.${t}`),this}like(e,t){return this.url.searchParams.append(e,`like.${t}`),this}likeAllOf(e,t){return this.url.searchParams.append(e,`like(all).{${t.join(",")}}`),this}likeAnyOf(e,t){return this.url.searchParams.append(e,`like(any).{${t.join(",")}}`),this}ilike(e,t){return this.url.searchParams.append(e,`ilike.${t}`),this}ilikeAllOf(e,t){return this.url.searchParams.append(e,`ilike(all).{${t.join(",")}}`),this}ilikeAnyOf(e,t){return this.url.searchParams.append(e,`ilike(any).{${t.join(",")}}`),this}regexMatch(e,t){return this.url.searchParams.append(e,`match.${t}`),this}regexIMatch(e,t){return this.url.searchParams.append(e,`imatch.${t}`),this}is(e,t){return this.url.searchParams.append(e,`is.${t}`),this}isDistinct(e,t){return this.url.searchParams.append(e,`isdistinct.${t}`),this}in(e,t){const a=Array.from(new Set(t)).map(r=>typeof r=="string"&&Kw.test(r)?`"${r}"`:`${r}`).join(",");return this.url.searchParams.append(e,`in.(${a})`),this}notIn(e,t){const a=Array.from(new Set(t)).map(r=>typeof r=="string"&&Kw.test(r)?`"${r}"`:`${r}`).join(",");return this.url.searchParams.append(e,`not.in.(${a})`),this}contains(e,t){return typeof t=="string"?this.url.searchParams.append(e,`cs.${t}`):Array.isArray(t)?this.url.searchParams.append(e,`cs.{${t.join(",")}}`):this.url.searchParams.append(e,`cs.${JSON.stringify(t)}`),this}containedBy(e,t){return typeof t=="string"?this.url.searchParams.append(e,`cd.${t}`):Array.isArray(t)?this.url.searchParams.append(e,`cd.{${t.join(",")}}`):this.url.searchParams.append(e,`cd.${JSON.stringify(t)}`),this}rangeGt(e,t){return this.url.searchParams.append(e,`sr.${t}`),this}rangeGte(e,t){return this.url.searchParams.append(e,`nxl.${t}`),this}rangeLt(e,t){return this.url.searchParams.append(e,`sl.${t}`),this}rangeLte(e,t){return this.url.searchParams.append(e,`nxr.${t}`),this}rangeAdjacent(e,t){return this.url.searchParams.append(e,`adj.${t}`),this}overlaps(e,t){return typeof t=="string"?this.url.searchParams.append(e,`ov.${t}`):this.url.searchParams.append(e,`ov.{${t.join(",")}}`),this}textSearch(e,t,{config:a,type:r}={}){let s="";r==="plain"?s="pl":r==="phrase"?s="ph":r==="websearch"&&(s="w");const l=a===void 0?"":`(${a})`;return this.url.searchParams.append(e,`${s}fts${l}.${t}`),this}match(e){return Object.entries(e).filter(([t,a])=>a!==void 0).forEach(([t,a])=>{this.url.searchParams.append(t,`eq.${a}`)}),this}not(e,t,a){return this.url.searchParams.append(e,`not.${t}.${a}`),this}or(e,{foreignTable:t,referencedTable:a=t}={}){const r=a?`${a}.or`:"or";return this.url.searchParams.append(r,`(${e})`),this}filter(e,t,a){return this.url.searchParams.append(e,`${t}.${a}`),this}},LR=class{constructor(e,{headers:t={},schema:a,fetch:r,urlLengthLimit:s=8e3,retry:l}){this.url=e,this.headers=new Headers(t),this.schema=a,this.fetch=r,this.urlLengthLimit=s,this.retry=l}cloneRequestState(){return{url:new URL(this.url.toString()),headers:new Headers(this.headers)}}select(e,t){const{head:a=!1,count:r}=t??{},s=a?"HEAD":"GET";let l=!1;const u=(e??"*").split("").map(y=>/\s/.test(y)&&!l?"":(y==='"'&&(l=!l),y)).join(""),{url:d,headers:h}=this.cloneRequestState();return d.searchParams.set("select",u),r&&h.append("Prefer",`count=${r}`),new Ar({method:s,url:d,headers:h,schema:this.schema,fetch:this.fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}insert(e,{count:t,defaultToNull:a=!0}={}){var r;const s="POST",{url:l,headers:u}=this.cloneRequestState();
16if(t&&u.append("Prefer",`count=${t}`),a||u.append("Prefer","missing=default"),Array.isArray(e)){const d=e.reduce((h,y)=>h.concat(Object.keys(y)),[]);if(d.length>0){const h=[...new Set(d)].map(y=>`"${y}"`);l.searchParams.set("columns",h.join(","))}}return new Ar({method:s,url:l,headers:u,schema:this.schema,body:e,fetch:(r=this.fetch)!==null&&r!==void 0?r:fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}upsert(e,{onConflict:t,ignoreDuplicates:a=!1,count:r,defaultToNull:s=!0}={}){var l;const u="POST",{url:d,headers:h}=this.cloneRequestState();if(h.append("Prefer",`resolution=${a?"ignore":"merge"}-duplicates`),t!==void 0&&d.searchParams.set("on_conflict",t),r&&h.append("Prefer",`count=${r}`),s||h.append("Prefer","missing=default"),Array.isArray(e)){const y=e.reduce((z,m)=>z.concat(Object.keys(m)),[]);if(y.length>0){const z=[...new Set(y)].map(m=>`"${m}"`);d.searchParams.set("columns",z.join(","))}}return new Ar({method:u,url:d,headers:h,schema:this.schema,body:e,fetch:(l=this.fetch)!==null&&l!==void 0?l:fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}update(e,{count:t}={}){var a;const r="PATCH",{url:s,headers:l}=this.cloneRequestState();return t&&l.append("Prefer",`count=${t}`),new Ar({method:r,url:s,headers:l,schema:this.schema,body:e,fetch:(a=this.fetch)!==null&&a!==void 0?a:fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}delete({count:e}={}){var t;const a="DELETE",{url:r,headers:s}=this.cloneRequestState();return e&&s.append("Prefer",`count=${e}`),new Ar({method:a,url:r,headers:s,schema:this.schema,fetch:(t=this.fetch)!==null&&t!==void 0?t:fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}};function cs(e){"@babel/helpers - typeof";return cs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},cs(e)}function MR(e,t){if(cs(e)!="object"||!e)return e;var a=e[Symbol.toPrimitive];if(a!==void 0){var r=a.call(e,t);if(cs(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function UR(e){var t=MR(e,"string");return cs(t)=="symbol"?t:t+""}function $R(e,t,a){return(t=UR(t))in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function Jw(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),a.push.apply(a,r)}return a}function Zc(e){for(var t=1;t<arguments.length;t++){var a=arguments[t]!=null?arguments[t]:{};t%2?Jw(Object(a),!0).forEach(function(r){$R(e,r,a[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):Jw(Object(a)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(a,r))})}return e}var IR=class Pk{constructor(t,{headers:a={},schema:r,fetch:s,timeout:l,urlLengthLimit:u=8e3,retry:d}={}){this.url=t,this.headers=new Headers(a),this.schemaName=r,this.urlLengthLimit=u;const h=s??globalThis.fetch;l!==void 0&&l>0?this.fetch=(y,z)=>{const m=new AbortController,g=setTimeout(()=>m.abort(),l),b=z?.signal;if(b){if(b.aborted)return clearTimeout(g),h(y,z);const v=()=>{clearTimeout(g),m.abort()};return b.addEventListener("abort",v,{once:!0}),h(y,Zc(Zc({},z),{},{signal:m.signal})).finally(()=>{clearTimeout(g),b.removeEventListener("abort",v)})}return h(y,Zc(Zc({},z),{},{signal:m.signal})).finally(()=>clearTimeout(g))}:this.fetch=h,this.retry=d}from(t){if(!t||typeof t!="string"||t.trim()==="")throw new Error("Invalid relation name: relation must be a non-empty string.");return new LR(new URL(`${this.url}/${t}`),{headers:new Headers(this.headers),schema:this.schemaName,fetch:this.fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}schema(t){return new Pk(this.url,{headers:this.headers,schema:t,fetch:this.fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}rpc(t,a={},{head:r=!1,get:s=!1,count:l}={}){var u;let d;const h=new URL(`${this.url}/rpc/${t}`);let y;const z=b=>b!==null&&typeof b=="object"&&(!Array.isArray(b)||b.some(z)),m=r&&Object.values(a).some(z);m?(d="POST",y=a):r||s?(d=r?"HEAD":"GET",Object.entries(a).filter(([b,v])=>v!==void 0).map(([b,v])=>[b,Array.isArray(v)?`{${v.join(",")}}`:`${v}
16`]).forEach(([b,v])=>{h.searchParams.append(b,v)})):(d="POST",y=a);const g=new Headers(this.headers);return m?g.set("Prefer",l?`count=${l},return=minimal`:"return=minimal"):l&&g.set("Prefer",`count=${l}`),new Ar({method:d,url:h,headers:g,schema:this.schemaName,body:y,fetch:(u=this.fetch)!==null&&u!==void 0?u:fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}};class BR{constructor(){}static detectEnvironment(){var t;if(typeof WebSocket<"u")return{type:"native",wsConstructor:WebSocket};const a=globalThis;if(typeof globalThis<"u"&&typeof a.WebSocket<"u")return{type:"native",wsConstructor:a.WebSocket};const r=typeof global<"u"?global:void 0;if(r&&typeof r.WebSocket<"u")return{type:"native",wsConstructor:r.WebSocket};if(typeof globalThis<"u"&&typeof a.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"&&a.EdgeRuntime||typeof navigator<"u"&&(!((t=navigator.userAgent)===null||t===void 0)&&t.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){const u=l.node,d=parseInt(u.replace(/^v/,"").split(".")[0]);return d>=22?typeof globalThis.WebSocket<"u"?{type:"native",wsConstructor:globalThis.WebSocket}:{type:"unsupported",error:`Node.js ${d} detected but native WebSocket not found.`,workaround:"Provide a WebSocket implementation via the transport option."}:{type:"unsupported",error:`Node.js ${d} detected without native WebSocket support.`,workaround:`For Node.js < 22, install "ws" package and provide it via the transport option:
17import ws from "ws"
18new RealtimeClient(url, { transport: ws })`}}}return{type:"unsupported",error:"Unknown JavaScript runtime without WebSocket support.",workaround:"Ensure you're running in a supported environment (browser, Node.js, Deno) or provide a custom WebSocket implementation."}}static getWebSocketConstructor(){const t=this.detectEnvironment();if(t.wsConstructor)return t.wsConstructor;let a=t.error||"WebSocket not supported in this environment.";throw t.workaround&&(a+=`
19
20Suggested solution: ${t.workaround}`),new Error(a)}static isWebSocketSupported(){try{const t=this.detectEnvironment();return t.type==="native"||t.type==="ws"}catch{return!1}}}const HR="2.106.2",qR=`realtime-js/${HR}`,KR="1.0.0",Lk="2.0.0",JR=Lk,VR=1e4,ZR=100,Ha={closed:"closed",errored:"errored",joined:"joined",joining:"joining",leaving:"leaving"},Mk={close:"phx_close",error:"phx_error",join:"phx_join",leave:"phx_leave",access_token:"access_token"},Vf={connecting:"connecting",closing:"closing",closed:"closed"};class GR{constructor(t){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=t??[]}encode(t,a){if(t.event===this.BROADCAST_EVENT&&!(t.payload instanceof ArrayBuffer)&&typeof t.payload.event=="string")return a(this._binaryEncodeUserBroadcastPush(t));let r=[t.join_ref,t.ref,t.topic,t.event,t.payload];return a(JSON.stringify(r))}_binaryEncodeUserBroadcastPush(t){var a;return this._isArrayBuffer((a=t.payload)===null||a===void 0?void 0:a.payload)?this._encodeBinaryUserBroadcastPush(t):this._encodeJsonUserBroadcastPush(t)}_encodeBinaryUserBroadcastPush(t){var a,r;const s=(r=(a=t.payload)===null||a===void 0?void 0:a.payload)!==null&&r!==void 0?r:new ArrayBuffer(0);return this._encodeUserBroadcastPush(t,this.BINARY_ENCODING,s)}_encodeJsonUserBroadcastPush(t){var a,r;const s=(r=(a=t.payload)===null||a===void 0?void 0:a.payload)!==null&&r!==void 0?r:{},u=new TextEncoder().encode(JSON.stringify(s)).buffer;return this._encodeUserBroadcastPush(t,this.JSON_ENCODING,u)}_encodeUserBroadcastPush(t,a,r){var s,l;const u=t.topic,d=(s=t.ref)!==null&&s!==void 0?s:"",h=(l=t.join_ref)!==null&&l!==void 0?l:"",y=t.payload.event,z=this.allowedMetadataKeys?this._pick(t.payload,this.allowedMetadataKeys):{},m=Object.keys(z).length===0?"":JSON.stringify(z);
20if(h.length>255)throw new Error(`joinRef length ${h.length} exceeds maximum of 255`);if(d.length>255)throw new Error(`ref length ${d.length} exceeds maximum of 255`);if(u.length>255)throw new Error(`topic length ${u.length} exceeds maximum of 255`);if(y.length>255)throw new Error(`userEvent length ${y.length} exceeds maximum of 255`);if(m.length>255)throw new Error(`metadata length ${m.length} exceeds maximum of 255`);const g=this.USER_BROADCAST_PUSH_META_LENGTH+h.length+d.length+u.length+y.length+m.length,b=new ArrayBuffer(this.HEADER_LENGTH+g);let v=new DataView(b),j=0;v.setUint8(j++,this.KINDS.userBroadcastPush),v.setUint8(j++,h.length),v.setUint8(j++,d.length),v.setUint8(j++,u.length),v.setUint8(j++,y.length),v.setUint8(j++,m.length),v.setUint8(j++,a),Array.from(h,T=>v.setUint8(j++,T.charCodeAt(0))),Array.from(d,T=>v.setUint8(j++,T.charCodeAt(0))),Array.from(u,T=>v.setUint8(j++,T.charCodeAt(0))),Array.from(y,T=>v.setUint8(j++,T.charCodeAt(0))),Array.from(m,T=>v.setUint8(j++,T.charCodeAt(0)));var _=new Uint8Array(b.byteLength+r.byteLength);return _.set(new Uint8Array(b),0),_.set(new Uint8Array(r),b.byteLength),_.buffer}decode(t,a){if(this._isArrayBuffer(t)){let r=this._binaryDecode(t);return a(r)}if(typeof t=="string"){const r=JSON.parse(t),[s,l,u,d,h]=r;return a({join_ref:s,ref:l,topic:u,event:d,payload:h})}return a({})}_binaryDecode(t){const a=new DataView(t),r=a.getUint8(0),s=new TextDecoder;if(r===this.KINDS.userBroadcast)return this._decodeUserBroadcast(t,a,s)}_decodeUserBroadcast(t,a,r){const s=a.getUint8(1),l=a.getUint8(2),u=a.getUint8(3),d=a.getUint8(4);let h=this.HEADER_LENGTH+4;const y=r.decode(t.slice(h,h+s));h=h+s;const z=r.decode(t.slice(h,h+l));h=h+l;const m=r.decode(t.slice(h,h+u));h=h+u;const g=t.slice(h,t.byteLength),b=d===this.JSON_ENCODING?JSON.parse(r.decode(g)):g,v={type:this.BROADCAST_EVENT,event:z,payload:b};return u>0&&(v.meta=JSON.parse(m)),{join_ref:null,ref:null,topic:y,event:this.BROADCAST_EVENT,payload:v}}_isArrayBuffer(t){var a;return t instanceof ArrayBuffer||((a=t?.constructor)===null||a===void 0?void 0:a.name)==="ArrayBuffer"}_pick(t,a){return!t||typeof t!="object"?{}:Object.fromEntries(Object.entries(t).filter(([r])=>a.includes(r)))}}var Ke;(function(e){e.abstime="abstime",e.bool="bool",e.date="date",e.daterange="daterange",e.float4="float4",e.float8="float8",e.int2="int2",e.int4="int4",e.int4range="int4range",e.int8="int8",e.int8range="int8range",e.json="json",e.jsonb="jsonb",e.money="money",e.numeric="numeric",e.oid="oid",e.reltime="reltime",e.text="text",e.time="time",e.timestamp="timestamp",e.timestamptz="timestamptz",e.timetz="timetz",e.tsrange="tsrange",e.tstzrange="tstzrange"})(Ke||(Ke={}));const Vw=(e,t,a={})=>{var r;const s=(r=a.skipTypes)!==null&&r!==void 0?r:[];return t?Object.keys(t).reduce((l,u)=>(l[u]=YR(u,e,t,s),l),{}):{}},YR=(e,t,a,r)=>{const s=t.find(d=>d.name===e),l=s?.type,u=a[e];return l&&!r.includes(l)?Uk(l,u):Zf(u)},Uk=(e,t)=>{if(e.charAt(0)==="_"){const a=e.slice(1,e.length);return QR(t,a)}switch(e){case Ke.bool:return FR(t);case Ke.float4:case Ke.float8:case Ke.int2:case Ke.int4:case Ke.int8:case Ke.numeric:case Ke.oid:return WR(t);case Ke.json:case Ke.jsonb:return XR(t);case Ke.timestamp:return e1(t);case Ke.abstime:case Ke.date:case Ke.daterange:case Ke.int4range:case Ke.int8range:case Ke.money:case Ke.reltime:case Ke.text:case Ke.time:case Ke.timestamptz:case Ke.timetz:case Ke.tsrange:case Ke.tstzrange:return Zf(t);default:return Zf(t)}},Zf=e=>e,FR=e=>{switch(e){case"t":return!0;case"f":return!1;default:return e}},WR=e=>{if(typeof e=="string"){const t=parseFloat(e);if(!Number.isNaN(t))return t}return e},XR=e=>{if(typeof e=="string")try{return JSON.parse(e)}catch{return e}return e},QR=(e,t)=>{if(typeof e!="string")return e;const a=e.length-1,r=e[a];if(e[0]==="{"&&r==="}"){let l;const u=e.slice(1,a);try{l=JSON.parse("["+u+"]")}catch{l=u?u.split(","):[]}return l.map(d=>Uk(t,d))}return e},e1=e=>typeof e=="string"?e.replace(" ","T"):e,$k=e=>{const t=new URL(e);return t.protocol=t.protocol.replace(/^ws/i,"http"),t.pathname=t.pathname.replace(/\/+$/,"").replace(/\/socket\/websocket$/i,"").replace(/\/socket$/i,"").replace(/\/websocket$/i,""),t.pathname===""||t.pathname==="/"?t.pathname="/api/broadcast":t.pathname=t.pathname+"/api/broadcast",t.href};var Xo=e=>typeof e=="function"?e:function(){return e},t1=typeof self<"u"?self:null,Rr=typeof window<"u"?window:null,Cn=t1||Rr||globalThis,n1="2.0.0",a1=1e4,i1=1e3,xn={connecting:0,open:1,closing:2,closed:3},It={closed:"closed",errored:"errored",joined:"joined",joining:"joining",leaving:"leaving"},ia={close:"phx_close",error:"phx_error",join:"phx_join",reply:"phx_reply",leave:"phx_leave"},Gf={longpoll:"longpoll",websocket:"websocket"},r1={complete:4},Yf="base64url.bearer.phx.",Gc=class{constructor(e,t,a,r){this.channel=e,this.event=t,this.payload=a||function(){return{}},this.receivedResp=null,this.timeout=r,this.timeoutTimer=null,this.recHo
vendor: 8,700 bytes, line 20
20oks=[],this.sent=!1,this.ref=void 0}resend(e){this.timeout=e,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(e,t){return this.hasReceived(e)&&t(this.receivedResp.response),this.recHooks.push({status:e,callback:t}),this}reset(){this.cancelRefEvent(),this.ref=null,this.refEvent=null,this.receivedResp=null,this.sent=!1}destroy(){this.cancelRefEvent(),this.cancelTimeout()}matchReceive({status:e,response:t,_ref:a}){this.recHooks.filter(r=>r.status===e).forEach(r=>r.callback(t))}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,e=>{this.cancelRefEvent(),this.cancelTimeout(),this.receivedResp=e,this.matchReceive(e)}),this.timeoutTimer=setTimeout(()=>{this.trigger("timeout",{})},this.timeout)}hasReceived(e){return this.receivedResp&&this.receivedResp.status===e}trigger(e,t){this.channel.trigger(this.refEvent,{status:e,response:t})}},Ik=class{constructor(e,t){this.callback=e,this.timerCalc=t,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))}},o1=class{constructor(e,t,a){this.state=It.closed,this.topic=e,this.params=Xo(t||{}),this.socket=a,this.bindings=[],this.bindingRef=0,this.timeout=this.socket.timeout,this.joinedOnce=!1,this.joinPush=new Gc(this,ia.join,this.params,this.timeout),this.pushBuffer=[],this.stateChangeRefs=[],this.rejoinTimer=new Ik(()=>{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=It.joined,this.rejoinTimer.reset(),this.pushBuffer.forEach(r=>r.send()),this.pushBuffer=[]}),this.joinPush.receive("error",r=>{this.state=It.errored,this.socket.hasLogger()&&this.socket.log("channel",`error ${this.topic}`,r),this.socket.isConnected()&&this.rejoinTimer.scheduleTimeout()}),this.onClose(()=>{this.rejoinTimer.reset(),this.socket.hasLogger()&&this.socket.log("channel",`close ${this.topic}`),this.state=It.closed,this.socket.remove(this)}),this.onError(r=>{this.socket.hasLogger()&&this.socket.log("channel",`error ${this.topic}`,r),this.isJoining()&&this.joinPush.reset(),this.state=It.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,ia.leave,Xo({}),this.timeout).send(),this.state=It.errored,this.joinPush.reset(),this.socket.isConnected()&&this.rejoinTimer.scheduleTimeout()}),this.on(ia.reply,(r,s)=>{this.trigger(this.replyEventName(s),r)})}join(e=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=e,this.joinedOnce=!0,this.rejoin(),this.joinPush}teardown(){this.pushBuffer.forEach(e=>e.destroy()),this.pushBuffer=[],this.rejoinTimer.reset(),this.joinPush.destroy(),this.state=It.closed,this.bindings=[]}onClose(e){this.on(ia.close,e)}onError(e){return this.on(ia.error,t=>e(t))}on(e,t){let a=this.bindingRef++;return this.bindings.push({event:e,ref:a,callback:t}),a}off(e,t){this.bindings=this.bindings.filter(a=>!(a.event===e&&(typeof t>"u"||t===a.ref)))}canPush(){return this.socket.isConnected()&&this.isJoined()}push(e,t,a=this.timeout){if(t=t||{},!this.joinedOnce)throw new Error(`tried to push '${e}' to '${this.topic}' before joining. Use channel.join() before pushing events`);let r=new Gc(this,e,function(){return t},a);return this.canPush()?r.send():(r.startTimeout(),this.pushBuffer.push(r)),r}leave(e=this.timeout){this.rejoinTimer.reset(),this.joinPush.cancelTimeout(),this.state=It.leaving;let t=()=>{this.socket.hasLogger()&&this.socket.log("channel",`leave ${this.topic}`),this.trigger(ia.close,"leave")},a=new Gc(this,ia.leave,Xo({}),e);return a.receive("ok",()=>t()).receive("timeout",()=>t()),a.send(),this.canPush()||a.trigger("ok",{}),a}onMessage(e,t,a){return t}filterBindings(e,t,a){return!0}isMember(e,t,a,r){return this.topic!==e?!1:r&&r!==this.joinRef()?(this.socket.hasLogger()&&this.socket.log("channel","dropping outdated message",{topic:e,event:t,payload:a,joinRef:r}),!1):!0}joinRef(){return this.joinPush.ref}rejoin(e=this.timeout){this.isLeaving()||(this.socket.leaveOpenTopic(this.topic),this.state=It.joining,this.joinPush.resend(e))}trigger(e,t,a,r){let s=this.onMessage(e,t,a,r);if(t&&!s)throw new Error("channel onMessage callbacks must return the payload, modified or unmodified");let l=this.bindings.filter(u=>u.event===e&&this.filterBindings(u,t,a));for(let u=0;u<l.length;u++)l[u].callback(s,a,r||this.joinRef())}replyEventName(e){return`chan_reply_${e}`}isClosed(){return this.state===It.closed}isErrored(){return this.state===It.errored}isJoined(){return this.state===It.joined}isJoining(){return this.state===It.joining}isLeaving(){return this.state===It.leaving}},zl=class{static request(e,t,a,r,s,l,u){if(Cn.XDomainRequest){let d=new Cn.XDomainRequest;return this.xdomainRequest(d,e,t,r,s,l,u)}else if(Cn.XMLHttpRequest){let d=new Cn.XMLHttpRequest;return this.xhrRequest(d,e,t,a,r,s,l,u)}else{if(Cn.fetch&&Cn.AbortController)return this.fetchRequest(e,t,a,r,s,l,u);throw new Error("No suitable XMLHttpRequest implementation found")}}static fetchRequest(e,t,a,r,s,l,u){let d={method:e,headers:a,body:r},h=null;return s&&(h=new AbortController,setTimeout(()=>h.abort(),s),d.signal=h.signal),Cn.fetch(t,d).then(y=>y.text()).then(y=>this.parseJSON(y)).then(y=>u&&u(y)).catch(y=>{y.name==="AbortError"&&l?l():u&&u(null)}),h}static xdomainRequest(e,t,a,r,s,l,u){return e.timeout=s,e.open(t,a),e.onload=()=>{let d=this.parseJSON(e.responseText);u&&u(d)},l&&(e.ontimeout=l),e.onprogress=()=>{},e.send(r),e}static xhrRequest(e,t,a,r,s,l,u,d){e.open(t,a,!0),e.timeout=l;for(let[h,y]of Object.entries(r))e.setRequestHeader(h,y);return e.onerror=()=>d&&d(null),e.onreadystatechange=()=>{if(e.readyState===r1.complete&&d){let h=this.parseJSON(e.responseText);d(h)}},u&&(e.ontimeout=u),e.send(s),e}static parseJSON(e){if(!e||e==="")return null;try{return JSON.parse(e)}catch{return console&&console.log("failed to parse JSON response",e),null}}static serialize(e,t){let a=[];for(var r in e){if(!Object.prototype.hasOwnProperty.call(e,r))continue;let s=t?`${t}[${r}]`:r,l=e[r];typeof l=="object"?a.push(this.serialize(l,s)):a.push(encodeURIComponent(s)+"="+encodeURIComponent(l))}return a.join("&")}static appendParams(e,t){if(Object.keys(t).length===0)return e;let a=e.match(/\?/)?"&":"?";return`${e}${a}${this.serialize(t)}`}},s1=e=>{let t="",a=new Uint8Array(e),r=a.byteLength;for(let s=0;s<r;s++)t+=String.fromCharCode(a[s]);return btoa(t)},jr=class{constructor(e,t){t&&t.length===2&&t[1].startsWith(Yf)&&(this.authToken=atob(t[1].slice(Yf.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(e),this.readyState=xn.connecting,setTimeout(()=>this.poll(),0)}normalizeEndpoint(e){return e.replace("ws://","http://").replace("wss://","https://").replace(new RegExp("(.*)/"+Gf.websocket),"$1/"+Gf.longpoll)}endpointURL(){return zl.appendParams(this.pollEndpoint,{token:this.token})}closeAndRetry(e,t,a){this.close(e,t,a),this.readyState=xn.connecting}ontimeout(){this.onerror("timeout"),this.closeAndRetry(1005,"timeout",!1)}isActive(){return this.readyState===xn.open||this.readyState===xn.connecting}poll(){const e={Accept:"application/json"};this.authToken&&(e["X-Phoenix-AuthToken"]=this.authToken),this.ajax("GET",e,null,()=>this.ontimeout(),t=>{if(t){var{status:a,token:r,messages:s}=t;if(a===410&&this.token!==null){this.onerror(410),this.closeAndRetry(3410,"session_gone",!1);return}this.token=r}else a=0;switch(a){case 200:s.forEach(l=>{setTimeout(()=>this.onmessage({data:l}),0)}),this.poll();break;case 204:this.poll();break;case 410:this.readyState=xn.open,this.onopen({}),this.poll();break;
20case 403:this.onerror(403),this.close(1008,"forbidden",!1);break;case 0:case 500:this.onerror(500),this.closeAndRetry(1011,"internal server error",500);break;default:throw new Error(`unhandled poll status ${a}`)}})}send(e){typeof e!="string"&&(e=s1(e)),this.currentBatch?this.currentBatch.push(e):this.awaitingBatchAck?this.batchBuffer.push(e):(this.currentBatch=[e],this.currentBatchTimer=setTimeout(()=>{this.batchSend(this.currentBatch),this.currentBatch=null},0))}batchSend(e){this.awaitingBatchAck=!0,this.ajax("POST",{"Content-Type":"application/x-ndjson"},e.join(`
21`),()=>this.onerror("timeout"),t=>{this.awaitingBatchAck=!1,!t||t.status!==200?(this.onerror(t&&t.status),this.closeAndRetry(1011,"internal server error",!1)):this.batchBuffer.length>0&&(this.batchSend(this.batchBuffer),this.batchBuffer=[])})}close(e,t,a){for(let s of this.reqs)s.abort();this.readyState=xn.closed;let r=Object.assign({code:1e3,reason:void 0,wasClean:!0},{code:e,reason:t,wasClean:a});this.batchBuffer=[],clearTimeout(this.currentBatchTimer),this.currentBatchTimer=null,typeof CloseEvent<"u"?this.onclose(new CloseEvent("close",r)):this.onclose(r)}ajax(e,t,a,r,s){let l,u=()=>{this.reqs.delete(l),r()};l=zl.request(e,this.endpointURL(),t,a,this.timeout,u,d=>{this.reqs.delete(l),this.isActive()&&s(d)}),this.reqs.add(l)}},c1=class Zo{constructor(t,a={}){let r=a.events||{state:"presence_state",diff:"presence_diff"};this.state={},this.pendingDiffs=[],this.channel=t,this.joinRef=null,this.caller={onJoin:function(){},onLeave:function(){},onSync:function(){}},this.channel.on(r.state,s=>{let{onJoin:l,onLeave:u,onSync:d}=this.caller;this.joinRef=this.channel.joinRef(),this.state=Zo.syncState(this.state,s,l,u),this.pendingDiffs.forEach(h=>{this.state=Zo.syncDiff(this.state,h,l,u)}),this.pendingDiffs=[],d()}),this.channel.on(r.diff,s=>{let{onJoin:l,onLeave:u,onSync:d}=this.caller;this.inPendingSyncState()?this.pendingDiffs.push(s):(this.state=Zo.syncDiff(this.state,s,l,u),d())})}onJoin(t){this.caller.onJoin=t}onLeave(t){this.caller.onLeave=t}onSync(t){this.caller.onSync=t}list(t){return Zo.list(this.state,t)}inPendingSyncState(){return!this.joinRef||this.joinRef!==this.channel.joinRef()}static syncState(t,a,r,s){let l=this.clone(t),u={},d={};return this.map(l,(h,y)=>{a[h]||(d[h]=y)}),this.map(a,(h,y)=>{let z=l[h];if(z){let m=y.metas.map(j=>j.phx_ref),g=z.metas.map(j=>j.phx_ref),b=y.metas.filter(j=>g.indexOf(j.phx_ref)<0),v=z.metas.filter(j=>m.indexOf(j.phx_ref)<0);b.length>0&&(u[h]=y,u[h].metas=b),v.length>0&&(d[h]=this.clone(z),d[h].metas=v)}else u[h]=y}),this.syncDiff(l,{joins:u,leaves:d},r,s)}static syncDiff(t,a,r,s){let{joins:l,leaves:u}=this.clone(a);return r||(r=function(){}),s||(s=function(){}),this.map(l,(d,h)=>{let y=t[d];if(t[d]=this.clone(h),y){let z=t[d].metas.map(g=>g.phx_ref),m=y.metas.filter(g=>z.indexOf(g.phx_ref)<0);t[d].metas.unshift(...m)}r(d,y,h)}),this.map(u,(d,h)=>{let y=t[d];if(!y)return;let z=h.metas.map(m=>m.phx_ref);y.metas=y.metas.filter(m=>z.indexOf(m.phx_ref)<0),s(d,y,h),y.metas.length===0&&delete t[d]}),t}static list(t,a){return a||(a=function(r,s){return s}),this.map(t,(r,s)=>a(r,s))}static map(t,a){return Object.getOwnPropertyNames(t).map(r=>a(r,t[r]))}static clone(t){return JSON.parse(JSON.stringify(t))}},Yc={HEADER_LENGTH:1,META_LENGTH:4,KINDS:{push:0,reply:1,broadcast:2},encode(e,t){if(e.payload.constructor===ArrayBuffer)return t(this.binaryEncode(e));{let a=[e.join_ref,e.ref,e.topic,e.event,e.payload];return t(JSON.stringify(a))}},decode(e,t){if(e.constructor===ArrayBuffer)return t(this.binaryDecode(e));{let[a,r,s,l,u]=JSON.parse(e);return t({join_ref:a,ref:r,topic:s,event:l,payload:u})}},binaryEncode(e){let{join_ref:t,ref:a,event:r,topic:s,payload:l}=e,u=this.META_LENGTH+t.length+a.length+s.length+r.length,d=new ArrayBuffer(this.HEADER_LENGTH+u),h=new DataView(d),y=0;h.setUint8(y++,this.KINDS.push),h.setUint8(y++,t.length),h.setUint8(y++,a.length),h.setUint8(y++,s.length),h.setUint8(y++,r.length),Array.from(t,m=>h.setUint8(y++,m.charCodeAt(0))),Array.from(a,m=>h.setUint8(y++,m.charCodeAt(0))),Array.from(s,m=>h.setUint8(y++,m.charCodeAt(0))),Array.from(r,m=>h.setUint8(y++,m.charCodeAt(0)));var z=new Uint8Array(d.byteLength+l.byteLength);return z.set(new Uint8Array(d),0),z.set(new Uint8Array(l),d.byteLength),z.buffer},binaryDecode(e){let t=new DataView(e),a=t.getUint8(0),r=new TextDecoder;switch(a){case this.KINDS.push:return this.decodePush(e,t,r);case this.KINDS.reply:return this.decodeReply(e,t,r);case this.KINDS.broadcast:return this.decodeBroadcast(e,t,r)}},decodePush(e,t,a){let r=t.getUint8(1),s=t.getUint8(2),l=t.getUint8(3),u=this.HEADER_LENGTH+this.META_LENGTH-1,d=a.decode(e.slice(u,u+r));u=u+r;let h=a.decode(e.slice(u,u+s));u=u+s;let y=a.decode(e.slice(u,u+l));u=u+l;let z=e.slice(u,e.byteLength);return{join_ref:d,ref:null,topic:h,event:y,payload:z}},decodeReply(e,t,a){let r=t.getUint8(1),s=t.getUint8(2),l=t.getUint8(3),u=t.getUint8(4),d=this.HEADER_LENGTH+this.META_LENGTH,h=a.decode(e.slice(d,d+r));d=d+r;let y=a.decode(e.slice(d,d+s));d=d+s;let z=a.decode(e.slice(d,d+l));d=d+l;let m=a.decode(e.slice(d,d+u));d=d+u;let g=e.slice(d,e.byteLength),b={status:m,response:g};return{join_ref:h,ref:y,topic:z,event:ia.reply,payload:b}},decodeBroadcast(e,t,a){let r=t.getUint8(1),s=t.getUint8(2),l=this.HEADER_LENGTH+2,u=a.decode(e.slice(l,l+r));l=l+r;let d=a.decode(e.slice(l,l+s));l=l+s;let h=e.slice(l,e.byteLength);return{join_ref:null,ref:null,topic:u,event:d,payload:h}}},l1=class{constructor(e,t={}){this.stateChangeCallbacks={open:[],close:[],error:[],message:[]},this.channels=[],this.sendBuffer=[],this.ref=0,this.fallbackRef=null,this.timeout=t.timeout||a1,this.transport=t.transport||Cn.WebSocket||jr,this.conn=void 0,this.primaryPassedHealthCheck=!1,this.longPollFallbackMs=t.longPollFallbackMs,this.fallbackTimer=null;let a=null;try{a=Cn&&Cn.sessionStorage}catch{}this.sessionStore=t.sessionStorage||a,this.establishedConnections=0,this.defaultEncoder=Yc.encode.bind(Yc),this.defaultDecoder=Yc.decode.bind(Yc),this.closeWasClean=!0,this.disconnecting=!1,this.binaryType=t.binaryType||"arraybuffer",this.connectClock=1,this.pageHidden=!1,this.encode=void 0,this.decode=void 0,this.transport!==jr?(this.encode=t.encode||this.defaultEncoder,this.decode=t.decode||this.defaultDecoder):(this.encode=this.defaultEncoder,this.decode=this.defaultDecoder);let r=null;Rr&&Rr.addEventListener&&(Rr.addEventListener("pagehide",s=>{this.conn&&(this.disconnect(),r=this.connectClock)}),Rr.addEventListener("pageshow",s=>{r===this.connectClock&&(r=null,this.connect())}),Rr.addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"?this.pageHidden=!0:(this.pageHidden=!1,!this.isConnected()&&!this.closeWasClean&&this.teardown(()=>this.connect()))})),this.heartbeatIntervalMs=t.heartbeatIntervalMs||3e4,this.autoSendHeartbeat=t.autoSendHeartbeat??!0,this.heartbeatCallback=t.heartbeatCallback??(()=>{}),this.rejoinAfterMs=s=>t.rejoinAfterMs?t.rejoinAfterMs(s):[1e3,2e3,5e3][s-1]||1e4,this.reconnectAfterMs=s=>t.reconnectAfterMs?t.reconnectAfterMs(s):[10,50,100,150,200,250,500,1e3,2e3][s-1]||5e3,this.logger=t.logger||null,!this.logger&&t.debug&&(this.logger=(s,l,u)=>{console.log(`${s}: ${l}`,u)}),this.longpollerTimeout=t.longpollerTimeout||2e4,this.params=Xo(t.params||{}),this.endPoint=`${e}/${Gf.websocket}`,this.vsn=t.vsn||n1,this.heartbeatTimeoutTimer=null,this.heartbeatTimer=null,this.heartbeatSentAt=null,this.pendingHeartbeatRef=null,this.reconnectTimer=new Ik(()=>
21{if(this.pageHidden){this.log("Not reconnecting as page is hidden!"),this.teardown();return}this.teardown(async()=>{t.beforeReconnect&&await t.beforeReconnect(),this.connect()})},this.reconnectAfterMs),this.authToken=t.authToken}getLongPollTransport(){return jr}replaceTransport(e){this.connectClock++,this.closeWasClean=!0,clearTimeout(this.fallbackTimer),this.reconnectTimer.reset(),this.conn&&(this.conn.close(),this.conn=null),this.transport=e}protocol(){return location.protocol.match(/^https/)?"wss":"ws"}endPointURL(){let e=zl.appendParams(zl.appendParams(this.endPoint,this.params()),{vsn:this.vsn});return e.charAt(0)!=="/"?e:e.charAt(1)==="/"?`${this.protocol()}:${e}`:`${this.protocol()}://${location.host}${e}`}disconnect(e,t,a){this.connectClock++,this.disconnecting=!0,this.closeWasClean=!0,clearTimeout(this.fallbackTimer),this.reconnectTimer.reset(),this.teardown(()=>{this.disconnecting=!1,e&&e()},t,a)}connect(e){e&&(console&&console.log("passing params to connect is deprecated. Instead pass :params to the Socket constructor"),this.params=Xo(e)),!(this.conn&&!this.disconnecting)&&(this.longPollFallbackMs&&this.transport!==jr?this.connectWithF
vendor: 4,353 bytes, line 21
21allback(jr,this.longPollFallbackMs):this.transportConnect())}log(e,t,a){this.logger&&this.logger(e,t,a)}hasLogger(){return this.logger!==null}onOpen(e){let t=this.makeRef();return this.stateChangeCallbacks.open.push([t,e]),t}onClose(e){let t=this.makeRef();return this.stateChangeCallbacks.close.push([t,e]),t}onError(e){let t=this.makeRef();return this.stateChangeCallbacks.error.push([t,e]),t}onMessage(e){let t=this.makeRef();return this.stateChangeCallbacks.message.push([t,e]),t}onHeartbeat(e){this.heartbeatCallback=e}ping(e){if(!this.isConnected())return!1;let t=this.makeRef(),a=Date.now();this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:t});let r=this.onMessage(s=>{s.ref===t&&(this.off([r]),e(Date.now()-a))});return!0}transportName(e){return e===jr?"LongPoll":e.name}transportConnect(){this.connectClock++,this.closeWasClean=!1;let e;this.authToken&&(e=["phoenix",`${Yf}${btoa(this.authToken).replace(/=/g,"")}`]),this.conn=new this.transport(this.endPointURL(),e),this.conn.binaryType=this.binaryType,this.conn.timeout=this.longpollerTimeout,this.conn.onopen=()=>this.onConnOpen(),this.conn.onerror=t=>this.onConnError(t),this.conn.onmessage=t=>this.onConnMessage(t),this.conn.onclose=t=>this.onConnClose(t)}getSession(e){return this.sessionStore&&this.sessionStore.getItem(e)}storeSession(e,t){this.sessionStore&&this.sessionStore.setItem(e,t)}connectWithFallback(e,t=2500){clearTimeout(this.fallbackTimer);let a=!1,r=!0,s,l,u=this.transportName(e),d=h=>{this.log("transport",`falling back to ${u}...`,h),this.off([s,l]),r=!1,this.replaceTransport(e),this.transportConnect()};if(this.getSession(`phx:fallback:${u}`))return d("memorized");this.fallbackTimer=setTimeout(d,t),l=this.onError(h=>{this.log("transport","error",h),r&&!a&&(clearTimeout(this.fallbackTimer),d(h))}),this.fallbackRef&&this.off([this.fallbackRef]),this.fallbackRef=this.onOpen(()=>{if(a=!0,!r){let h=this.transportName(e);return this.primaryPassedHealthCheck||this.storeSession(`phx:fallback:${h}`,"true"),this.log("transport",`established ${h} fallback`)}clearTimeout(this.fallbackTimer),this.fallbackTimer=setTimeout(d,t),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(e){this.log("error","error in heartbeat callback",e)}this.triggerChanError(new Error("heartbeat timeout")),this.closeWasClean=!1,this.teardown(()=>this.reconnectTimer.scheduleTimeout(),i1,"heartbeat timeout")}}resetHeartbeat(){this.conn&&this.conn.skipHeartbeat||(this.pendingHeartbeatRef=null,this.clearHeartbeats(),this.heartbeatTimer=setTimeout(()=>this.sendHeartbeat(),this.heartbeatIntervalMs))}teardown(e,t,a){if(!this.conn)return e&&e();const r=this.conn;this.waitForBufferDone(r,()=>{t?r.close(t,a||""):r.close(),this.waitForSocketClosed(r,()=>{this.conn===r&&(this.conn.onopen=function(){},this.conn.onerror=function(){},this.conn.onmessage=function(){},this.conn.onclose=function(){},this.conn=null),e&&e()})})}waitForBufferDone(e,t,a=1){if(a===5||!e.bufferedAmount){t();return}setTimeout(()=>{this.waitForBufferDone(e,t,a+1)},150*a)}waitForSocketClosed(e,t,a=1){if(a===5||e.readyState===xn.closed){t();return}setTimeout(()=>{this.waitForSocketClosed(e,t,a+1)},150*a)}onConnClose(e){this.conn&&(this.conn.onclose=()=>{}),this.hasLogger()&&this.log("transport","close",e),this.triggerChanError(e),this.clearHeartbeats(),this.closeWasClean||this.reconnectTimer.scheduleTimeout(),this.triggerStateCallbacks("close",e)}onConnError(e){this.hasLogger()&&this.log("transport","error",e);let t=this.transport,a=this.establishedConnections;this.triggerStateCallbacks("error",e,t,a),(t===this.transport||a>0)&&this.triggerChanError(e)}
21triggerChanError(e){this.channels.forEach(t=>{t.isErrored()||t.isLeaving()||t.isClosed()||t.trigger(ia.error,e)})}connectionState(){switch(this.conn&&this.conn.readyState){case xn.connecting:return"connecting";case xn.open:return"open";case xn.closing:return"closing";default:return"closed"}}isConnected(){return this.connectionState()==="open"}remove(e){this.off(e.stateChangeRefs),this.channels=this.channels.filter(t=>t!==e)}off(e){for(let t in this.stateChangeCallbacks)this.stateChangeCallbacks[t]=this.stateChangeCallbacks[t].filter(([a])=>e.indexOf(a)===-1)}channel(e,t={}){let a=new o1(e,t,this);return this.channels.push(a),a}push(e){if(this.hasLogger()){let{topic:t,event:a,payload:r,ref:s,join_ref:l}=e;this.log("push",`${t} ${a} (${l}, ${s})`,r)}this.isConnected()?this.encode(e,t=>this.conn.send(t)):this.sendBuffer.push(()=>this.encode(e,t=>this.conn.send(t)))}makeRef(){let e=this.ref+1;return e===this.ref?this.ref=0:this.ref=e,this.ref.toString()}sendHeartbeat(){if(!this.isConnected()){try{this.heartbeatCallback("disconnected")}catch(e){this.log("error","error in heartbeat callback",e)}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(e){this.log("error","error in heartbeat callback",e)}this.heartbeatTimeoutTimer=setTimeout(()=>this.heartbeatTimeout(),this.heartbeatIntervalMs)}flushSendBuffer(){this.isConnected()&&this.sendBuffer.length>0&&(this.sendBuffer.forEach(e=>e()),this.sendBuffer=[])}onConnMessage(e){this.decode(e.data,t=>{let{topic:a,event:r,payload:s,ref:l,join_ref:u}=t;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||""} ${a} ${r} ${l&&"("+l+")"||""}`.trim(),s);for(let d=0;d<this.channels.length;d++){const h=this.channels[d];h.isMember(a,r,s,u)&&h.trigger(r,s,l,u)}this.triggerStateCallbacks("message",t)})}triggerStateCallbacks(e,...t){try{this.stateChangeCallbacks[e].forEach(([a,r])=>{try{r(...t)}catch(s){this.log("error",`error in ${e} callback`,s)}})}catch(a){this.log("error",`error triggering ${e} callbacks`,a)}}leaveOpenTopic(e){let t=this.channels.find(a=>a.topic===e&&(a.isJoined()||a.isJoining()));t&&(this.hasLogger()&&this.log("transport",`leaving duplicate topic "${e}"`),t.leave())}};class Qo{constructor(t,a){const r=d1(a);this.presence=new c1(t.getChannel(),r),this.presence.onJoin((s,l,u)=>{const d=Qo.onJoinPayload(s,l,u);t.getChannel().trigger("presence",d)}),this.presence.onLeave((s,l,u)=>{const d=Qo.onLeavePayload(s,l,u);t.getChannel().trigger("presence",d)}),this.presence.onSync(()=>{t.getChannel().trigger("presence",{event:"sync"})})}get state(){return Qo.transformState(this.presence.state)}static transformState(t){return t=u1(t),Object.getOwnPropertyNames(t).reduce((a,r)=>{const s=t[r];return a[r]=ul(s),a},{})}static onJoinPayload(t,a,r){const s=Zw(a),l=ul(r);return{event:"join",key:t,currentPresences:s,newPresences:l}}static onLeavePayload(t,a,r){const s=Zw(a),l=ul(r);return{event:"leave",key:t,currentPresences:s,leftPresences:l}}}function ul(e){return e.metas.map(t=>(t.presence_ref=t.phx_ref,delete t.phx_ref,delete t.phx_ref_prev,t))}function u1(e){return JSON.parse(JSON.stringify(e))}function d1(e){return e?.events&&{events:e.events}}function Zw(e){return e?.metas?ul(e):[]}var Gw;(function(e){e.SYNC="sync",e.JOIN="join",e.LEAVE="leave"})(Gw||(Gw={}));class f1{get state(){return this.presenceAdapter.state}constructor(t,a){this.channel=t,this.presenceAdapter=new Qo(this.channel.channelAdapter,a)}}function h1(e){if(e instanceof Error)return e;if(typeof e=="string")return new Error(e);
21if(e&&typeof e=="object"){const t=e;if(typeof t.code=="number"){const a=typeof t.reason=="string"&&t.reason?` (${t.reason})`:"";return new Error(`socket closed: ${t.code}${a}`,{cause:e})}return new Error("channel error: transport failure",{cause:e})}return new Error("channel error: connection lost")}class p1{constructor(t,a,r){const s=y1(r);this.channel=t.getSocket().channel(a,s),this.socket=t}get state(){return this.channel.state}set state(t){this.channel.state=t}get joinedOnce(){return this.channel.joinedOnce}get joinPush(){return this.channel.joinPush}get rejoinTimer(){return this.channel.rejoinTimer}on(t,a){return this.channel.on(t,a)}off(t,a){this.channel.off(t,a)}subscribe(t){return this.channel.join(t)}unsubscribe(t){return this.channel.leave(t)}teardown(){this.channel.teardown()}onClose(t){this.channel.onClose(t)}onError(t){return this.channel.onError(t)}push(t,a,r){let s;try{s=this.channel.push(t,a,r)}catch{throw new Error(`tried to push '${t}' to '${this.channel.topic}' before joining. Use channel.subscribe() before pushing events`)}if(this.channel.pushBuffer.length>ZR){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(t){const a=this.channel.joinPush.payload();this.channel.joinPush.payload=()=>Object.assign(Object.assign({},a),t)}canPush(){return this.socket.isConnected()&&this.state===Ha.joined}isJoined(){return this.state===Ha.joined}isJoining(){return this.state===Ha.joining}isClosed(){return this.state===Ha.closed}isLeaving(){return this.state===Ha.leaving}updateFilterBindings(t){this.channel.filterBindings=t}updatePayloadTransform(t){this.channel.onMessage=t}getChannel(){return this.channel}}function y1(e){return{config:Object.assign({broadcast:{ack:!1,self:!1},presence:{key:"",enabled:!1},private:!1},e.config)}}var Yw;(function(e){e.ALL="*",e.INSERT="INSERT",e.UPDATE="UPDATE",e.DELETE="DELETE"})(Yw||(Yw={}));var Pr;(function(e){e.BROADCAST="broadcast",e.PRESENCE="presence",e.POSTGRES_CHANGES="postgres_changes",e.SYSTEM="system"})(Pr||(Pr={}));var ra;(function(e){e.SUBSCRIBED="SUBSCRIBED",e.TIMED_OUT="TIMED_OUT",e.CLOSED="CLOSED",e.CHANNEL_ERROR="CHANNEL_ERROR"})(ra||(ra={}));class es{get state(){return this.channelAdapter.state}set state(t){this.channelAdapter.state=t}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(t,a={config:{}},r){var s,l;if(this.topic=t,this.params=a,this.socket=r,this.bindings={},this.subTopic=t.replace(/^realtime:/i,""),this.params.config=Object.assign({broadcast:{ack:!1,self:!1},presence:{key:"",enabled:!1},private:!1},a.config),this.channelAdapter=new p1(this.socket.socketAdapter,t,this.params),this.presence=new f1(this),this._onClose(()=>{this.socket._remove(this)}),this._updateFilterTransform(),this.broadcastEndpointURL=$k(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(t,a=this.timeout){var r,s,l;if(this.socket.isConnected()||this.socket.connect(),this.channelAdapter.isClosed()){const{config:{broadcast:u,presence:d,private:h}}=this.params,y=(s=(r=this.bindings.postgres_changes)===null||r===void 0?void 0:r.map(b=>b.filter))!==null&&s!==void 0?s:[],z=!!this.bindings[Pr.PRESENCE]&&this.bindings[Pr.PRESENCE].length>0||((l=this.params.config.presence)===null||l===void 0?void 0:l.enabled)===!0,m={},g={broadcast:u,presence:Object.assign(Object.assign({},d),{enabled:z}),postgres_changes:y,private:h};this.socket.accessTokenValue&&(m.access_token=this.socket.accessTokenValue),this._onError(b=>{t?.(ra.CHANNEL_ERROR,h1(b))}),this._onClose(()=>t?.(ra.CLOSED)),this.updateJoinPayload(Object.assign({config:g},m)),this._updateFilterMessage(),this.channelAdapter.subscribe(a).receive("ok",async({postgres_changes:b})=>{if(this.socket._isManualToken()||this.socket.setAuth(),b===void 0){t?.(ra.SUBSCRIBED);return}this._updatePostgresBindings(b,t)}).receive("error",b=>{this.state=Ha.errored;const v=Object.values(b).join(", ")||"error";t?.(ra.CHANNEL_ERROR,new Error(v,{cause:b}))}).receive("timeout",()=>{t?.(ra.TIMED_OUT)})}return this}_updatePostgresBindings(t,a){var r;const s=this.bindings.postgres_changes,l=(r=s?.length)!==null&&r!==void 0?r:0,u=[];for(let d=0;d<l;d++){const h=s[d],{filter:{event:y,schema:z,table:m,filter:g}}=h,b=t&&t[d];if(b&&b.event===y&&es.isFilterValueEqual(b.schema,z)&&es.isFilterValueEqual(b.table,m)&&es.isFilterValueEqual(b.filter,g))u.push(Object.assign(Object.assign({},h),{id:b.id}));else{this.unsubscribe(),this.state=Ha.errored,a?.(ra.CHANNEL_ERROR,new Error("mismatch between server and client bindings for postgres changes"));return}}this.bindings.postgres_changes=u,this.state!=Ha.errored&&a&&a(ra.SUBSCRIBED)}presenceState(){return this.presence.state}async track(t,a={}){return await this.send({type:"presence",event:"track",payload:t},a.timeout||this.timeout)}async untrack(t={}){return await this.send({type:"presence",event:"untrack"},t)}on(t,a,r){const s=this.channelAdapter.isJoined()||this.channelAdapter.isJoining(),l=t===Pr.PRESENCE||t===Pr.POSTGRES_CHANGES;if(s&&l)throw this.socket.log("channel",`cannot add \`${t}\` callbacks for ${this.topic} after \`subscribe()\`.`),new Error(`cannot add \`${t}\` callbacks for ${this.topic} after \`subscribe()\`.`);return this._on(t,a,r)}async httpSend(t,a,r={}){var s;if(a==null)return Promise.reject(new Error("Payload is required for httpSend()"));const l={apikey:this.socket.apiKey?this.socket.apiKey:"","Content-Type":"application/json"};this.socket.accessTokenValue&&(l.Authorization=`Bearer ${this.socket.accessTokenValue}`);const u={method:"POST",headers:l,body:JSON.stringify({messages:[{topic:this.subTopic,event:t,payload:a,private:this.private}]})},d=await this._fetchWithTimeout(this.broadcastEndpointURL,u,(s=r.timeout)!==null&&s!==void 0?s:this.timeout);if(d.status===202)return{success:!0};let h=d.statusText;
21try{const y=await d.json();h=y.error||y.message||h}catch{}return Promise.reject(new Error(h))}async send(t,a={}){var r,s;if(!this.channelAdapter.canPush()&&t.type==="broadcast"){console.warn("Realtime send() is automatically falling back to REST API. This behavior will be deprecated in the future. Please use httpSend() explicitly for REST delivery.");const{event:l,payload:u}=t,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 y=await this._fetchWithTimeout(this.broadcastEndpointURL,h,(r=a.timeout)!==null&&r!==void 0?r:this.timeout);return await((s=y.body)===null||s===void 0?void 0:s.cancel()),y.ok?"ok":"error"}catch(y){return y instanceof Error&&y.name==="AbortError"?"timed out":"error"}}else return new Promise(l=>{var u,d,h;const y=this.channelAdapter.push(t.type,t,a.timeout||this.timeout);t.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"),y.receive("ok",()=>l("ok")),y.receive("error",()=>l("error")),y.receive("timeout",()=>l("timed out"))})}updateJoinPayload(t){this.channelAdapter.updateJoinPayload(t)}async unsubscribe(t=this.timeout){return new Promise(a=>{this.channelAdapter.unsubscribe(t).receive("ok",()=>a("ok")).receive("timeout",()=>a("timed out")).receive("error",()=>a("error"))})}teardown(){this.channelAdapter.teardown()}async _fetchWithTimeout(t,a,r){const s=new AbortController,l=setTimeout(()=>s.abort(),r),u=await this.socket.fetch(t,Object.assign(Object.assign({},a),{signal:s.signal}));return clearTimeout(l),u}_on(t,a,r){const s=t.toLocaleLowerCase(),l=this.channelAdapter.on(t,r),u={type:s,filter:a,callback:r,ref:l};return this.bindings[s]?this.bindings[s].push(u):this.bindings[s]=[u],this._updateFilterMessage(),this}_onClose(t){this.channelAdapter.onClose(t)}_onError(t){this.channelAdapter.onError(t)}_updateFilterMessage(){this.channelAdapter.updateFilterBindings((t,a,r)=>{var s,l,u,d,h,y,z;const m=t.event.toLocaleLowerCase();if(this._notThisChannelEvent(m,r))return!1;const g=(s=this.bindings[m])===null||s===void 0?void 0:s.find(b=>b.ref===t.ref);if(!g)return!0;if(["broadcast","presence","postgres_changes"].includes(m))if("id"in g){const b=g.id,v=(l=g.filter)===null||l===void 0?void 0:l.event;return b&&((u=a.ids)===null||u===void 0?void 0:u.includes(b))&&(v==="*"||v?.toLocaleLowerCase()===((d=a.data)===null||d===void 0?void 0:d.type.toLocaleLowerCase()))}else{const b=(y=(h=g?.filter)===null||h===void 0?void 0:h.event)===null||y===void 0?void 0:y.toLocaleLowerCase();return b==="*"||b===((z=a?.event)===null||z===void 0?void 0:z.toLocaleLowerCase())}else return g.type.toLocaleLowerCase()===m})}_notThisChannelEvent(t,a){const{close:r,error:s,leave:l,join:u}=Mk;return a&&[r,s,l,u].includes(t)&&a!==this.joinPush.ref}_updateFilterTransform(){this.channelAdapter.updatePayloadTransform((t,a,r)=>{if(typeof a=="object"&&"ids"in a){const s=a.data,{schema:l,table:u,commit_timestamp:d,type:h,errors:y}=s;return Object.assign(Object.assign({},{schema:l,table:u,commit_timestamp:d,eventType:h,new:{},old:{},errors:y}),this._getPayloadRecords(s))}return a})}copyBindings(t){if(this.joinedOnce)throw new Error("cannot copy bindings into joined channel");for(const a in t.bindings)for(const r of t.bindings[a])this._on(r.type,r.filter,r.callback)}static isFilterValueEqual(t,a){return(t??void 0)===(a??void 0)}_getPayloadRecords(t){const a={new:{},old:{}};return(t.type==="INSERT"||t.type==="UPDATE")&&(a.new=Vw(t.columns,t.record)),(t.type==="UPDATE"||t.type==="DELETE")&&(a.old=Vw(t.columns,t.old_record)),a}}class m1{constructor(t,a){this.socket=new l1(t,a)}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(t){this.socket.heartbeatCallback=t}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(t,a,r,s=1e4){return new Promise(l=>{setTimeout(()=>l("timeout"),s),this.socket.disconnect(()=>{t(),l("ok")},a,r)})}push(t){this.socket.push(t)}log(t,a,r){this.socket.log(t,a,r)}makeRef(){return this.socket.makeRef()}onOpen(t){this.socket.onOpen(t)}onClose(t){this.socket.onClose(t)}onError(t){this.socket.onError(t)}onMessage(t){this.socket.onMessage(t)}isConnected(){return this.socket.isConnected()}isConnecting(){return this.socket.connectionState()==Vf.connecting}isDisconnecting(){return this.socket.connectionState()==Vf.closing}connectionState(){return this.socket.connectionState()}endPointURL(){return this.socket.endPointURL()}sendHeartbeat(){this.socket.sendHeartbeat()}getSocket(){return this.socket}}const Fw={HEARTBEAT_INTERVAL:25e3},z1=[1e3,2e3,5e3,1e4],w1=1e4;function g1(){const e=new Map;return{get length(){return e.size},clear(){e.clear()},getItem(t){return e.has(t)?e.get(t):null},key(t){var a;return(a=Array.from(e.keys())[t])!==null&&a!==void 0?a:null},removeItem(t){e.delete(t)},setItem(t,a){e.set(t,String(a))}}}function b1(){try{if(typeof globalThis<"u"&&globalThis.sessionStorage)return globalThis.sessionStorage}catch{}return g1()}const k1=`
22  addEventListener("message", (e) => {
23    if (e.data.event === "start") {
24      setInterval(() => postMessage({ event: "keepAlive" }), e.data.interval);
25    }
26  });`;class v1{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(t,a){var r;if(this.channels=new Array,this.accessTokenValue=null,this.accessToken=null,this.apiKey=null,this.httpEndpoint="",this.headers={},this.params={}
26,this.ref=0,this.serializer=new GR,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),!(!((r=a?.params)===null||r===void 0)&&r.apikey))throw new Error("API key is required to connect to Realtime");this.apiKey=a.params.apikey;const s=this._initializeOptions(a);this.socketAdapter=new m1(t,s),this.httpEndpoint=$k(t),this.fetch=this._resolveFetch(a?.fetch)}connect(){if(!(this.isConnecting()||this.isDisconnecting()||this.isConnected())){this.accessToken&&!this._authPromise&&this._setAuthSafely("connect"),this._setupConnectionHandlers();try{this.socketAdapter.connect()}catch(t){const a=t.message;throw a.includes("Node.js")?new Error(`${a}
27
28To use Realtime in Node.js, you need to provide a WebSocket implementation:
29
30Option 1: Use Node.js 22+ which has native WebSocket support
31Option 2: Install and provide the "ws" package:
32
33  npm install ws
34
35  import ws from "ws"
36  const client = new RealtimeClient(url, {
37    ...options,
38    transport: ws
39  })`):new Error(`WebSocket not available: ${a}`)}this._handleNodeJsRaceCondition()}}endpointURL(){return this.socketAdapter.endPointURL()}async disconnect(t,a){return this._cancelPendingDisconnect(),this.isDisconnecting()?"ok":await this.socketAdapter.disconnect(()=>{clearInterval(this._workerHeartbeatTimer),this._terminateWorker()},t,a)}getChannels(){return this.channels}async removeChannel(t){const a=await t.unsubscribe();return a==="ok"&&t.teardown(),a}async removeAllChannels(){const t=this.channels.map(async r=>{const s=await r.unsubscribe();return r.teardown(),s}),a=await Promise.all(t);return await this.disconnect(),a}log(t,a,r){this.socketAdapter.log(t,a,r)}connectionState(){return this.socketAdapter.connectionState()||Vf.closed}isConnected(){return this.socketAdapter.isConnected()}isConnecting(){return this.socketAdapter.isConnecting()}isDisconnecting(){return this.socketAdapter.isDisconnecting()}channel(t,a={config:{}}){const r=`realtime:${t}`,s=this.getChannels().find(l=>l.topic===r);if(s)return s;{const l=new es(`realtime:${t}`,a,this);return this._cancelPendingDisconnect(),this.channels.push(l),l}}push(t){this.socketAdapter.push(t)}async setAuth(t=null){this._authPromise=this._performAuth(t);try{await this._authPromise}finally{this._authPromise=null}}_isManualToken(){return this._manuallySetToken}async sendHeartbeat(){this.socketAdapter.sendHeartbeat()}onHeartbeat(t){this.socketAdapter.heartbeatCallback=this._wrapHeartbeatCallback(t)}_makeRef(){return this.socketAdapter.makeRef()}_remove(t){this.channels=this.channels.filter(a=>a.topic!==t.topic),this.channels.length===0&&(this.log("transport","no channels remaining, scheduling disconnect"),this._schedulePendingDisconnect())}_schedulePendingDisconnect(){if(this._cancelPendingDisconnect(),this._disconnectOnEmptyChannelsAfterMs===0){this.log("transport","disconnecting immediately - no channels"),this.disconnect();return}
39this._pendingDisconnectTimer=setTimeout(()=>{this._pendingDisconnectTimer=null,this.channels.length===0&&(this.log("transport","deferred disconnect fired - no channels, disconnecting"),this.disconnect())},this._disconnectOnEmptyChannelsAfterMs),this.log("transport",`deferred disconnect scheduled in ${this._disconnectOnEmptyChannelsAfterMs}ms`)}_cancelPendingDisconnect(){this._pendingDisconnectTimer!==null&&(this.log("transport","pending disconnect cancelled - channel activity detected"),clearTimeout(this._pendingDisconnectTimer),this._pendingDisconnectTimer=null)}async _performAuth(t=null){let a,r=!1;if(t)a=t,r=!0;else if(this.accessToken)try{a=await this.accessToken()}catch(s){this.log("error","Error fetching access token from callback",s),a=this.accessTokenValue}else a=this.accessTokenValue;r?this._manuallySetToken=!0:this.accessToken&&(this._manuallySetToken=!1),this.accessTokenValue!=a&&(this.accessTokenValue=a,this.channels.forEach(s=>{const l={access_token:a,version:qR};a&&s.updateJoinPayload(l),s.joinedOnce&&s.channelAdapter.isJoined()&&s.channelAdapter.push(Mk.access_token,{access_token:a})}))}async _waitForAuthIfNeeded(){this._authPromise&&await this._authPromise}_setAuthSafely(t="general"){this._isManualToken()||this.setAuth().catch(a=>{this.log("error",`Error setting auth in ${t}`,a)})}_setupConnectionHandlers(){this.socketAdapter.onOpen(()=>{(this._authPromise||(this.accessToken&&!this.accessTokenValue?this.setAuth():Promise.resolve())).catch(a=>{this.log("error","error waiting for auth on connect",a)}),this.worker&&!this.workerRef&&this._startWorkerHeartbeat()}),this.socketAdapter.onClose(()=>{this.worker&&this.workerRef&&this._terminateWorker()}),this.socketAdapter.onMessage(t=>{t.ref&&t.ref===this._pendingWorkerHeartbeatRef&&(this._pendingWorkerHeartbeatRef=null)})}_handleNodeJsRaceCondition(){this.socketAdapter.isConnected()&&this.socketAdapter.getSocket().onConnOpen()}_wrapHeartbeatCallback(t){return(a,r)=>{a=="sent"&&this._setAuthSafely(),t&&t(a,r)}}_startWorkerHeartbeat(){this.workerUrl?this.log("worker",`starting worker for from ${this.workerUrl}`):this.log("worker","starting default worker");const t=this._workerObjectUrl(this.workerUrl);this.workerRef=new Worker(t),this.workerRef.onerror=a=>{this.log("worker","worker error",a.message),this._terminateWorker(),this.disconnect()},this.workerRef.onmessage=a=>{a.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(t){let a;if(t)a=t;else{const r=new Blob([k1],{type:"application/javascript"});a=URL.createObjectURL(r)}return a}_initializeOptions(t){var a,r,s,l,u,d,h,y,z,m,g,b;this.worker=(a=t?.worker)!==null&&a!==void 0?a:!1,this.accessToken=(r=t?.accessToken)!==null&&r!==void 0?r:null;const v={};v.timeout=(s=t?.timeout)!==null&&s!==void 0?s:VR,v.heartbeatIntervalMs=(l=t?.heartbeatIntervalMs)!==null&&l!==void 0?l:Fw.HEARTBEAT_INTERVAL,this._disconnectOnEmptyChannelsAfterMs=(u=t?.disconnectOnEmptyChannelsAfterMs)!==null&&u!==void 0?u:2*((d=t?.heartbeatIntervalMs)!==null&&d!==void 0?d:Fw.HEARTBEAT_INTERVAL),v.transport=(h=t?.transport)!==null&&h!==void 0?h:BR.getWebSocketConstructor(),v.params=t?.params,v.logger=t?.logger,v.heartbeatCallback=this._wrapHeartbeatCallback(t?.heartbeatCallback),v.sessionStorage=(y=t?.sessionStorage)!==null&&y!==void 0?y:b1(),v.reconnectAfterMs=(z=t?.reconnectAfterMs)!==null&&z!==void 0?z:(O=>z1[O-1]||w1);let j,_;const T=(m=t?.vsn)!==null&&m!==void 0?m:JR;switch(T){case KR:j=(O,R)=>R(JSON.stringify(O)),_=(O,R)=>R(JSON.parse(O));break;case Lk:j=this.serializer.encode.bind(this.serializer),_=this.serializer.decode.bind(this.serializer);break;default:throw new Error(`Unsupported serializer version: ${v.vsn}`)}if(v.vsn=T,v.encode=(g=t?.encode)!==null&&g!==void 0?g:j,v.decode=(b=t?.decode)!==null&&b!==void 0?b:_,v.beforeReconnect=this._reconnectAuth.bind(this),(t?.logLevel||t?.log_level)&&(this.logLevel=t.logLevel||t.log_level,v.params=Object.assign(Object.assign({},v.params),{log_level:this.logLevel})),this.worker){if(typeof window<"u"&&!window.Worker)throw new Error("Web Worker is not supported");this.workerUrl=t?.workerUrl,v.autoSendHeartbeat=!this.worker}return v}async _reconnectAuth(){await this._waitForAuthIfNeeded(),this.isConnected()||this.connect()}}
39var ls=class extends Error{constructor(e,t){super(e),this.name="IcebergError",this.status=t.status,this.icebergType=t.icebergType,this.icebergCode=t.icebergCode,this.details=t.details,this.isCommitStateUnknown=t.icebergType==="CommitStateUnknownException"||[500,502,504].includes(t.status)&&t.icebergType?.includes("CommitState")===!0}isNotFound(){return this.status===404}isConflict(){return this.status===409}isAuthenticationTimeout(){return this.status===419}};function j1(e,t,a){const r=new URL(t,e);if(a)for(const[s,l]of Object.entries(a))l!==void 0&&r.searchParams.set(s,l);return r.toString()}async function _1(e){return!e||e.type==="none"?{}:e.type==="bearer"?{Authorization:`Bearer ${e.token}`}:e.type==="header"?{[e.name]:e.value}:e.type==="custom"?await e.getHeaders():{}}function S1(e){const t=e.fetchImpl??globalThis.fetch;return{async request({method:a,path:r,query:s,body:l,headers:u}){const d=j1(e.baseUrl,r,s),h=await _1(e.auth),y=await t(d,{method:a,headers:{...l?{"Content-Type":"application/json"}:{},...h,...u},body:l?JSON.stringify(l):void 0}),z=await y.text(),m=(y.headers.get("content-type")||"").includes("application/json"),g=m&&z?JSON.parse(z):z;if(!y.ok){const b=m?g:void 0,v=b?.error;throw new ls(v?.message??`Request failed with status ${y.status}`,{status:y.status,icebergType:v?.type,icebergCode:v?.code,details:b})}return{status:y.status,headers:y.headers,data:g}}}}function Fc(e){return e.join("�")}var T1=class{constructor(e,t=""){this.client=e,this.prefix=t}async listNamespaces(e){const t=e?{parent:Fc(e.namespace)}:void 0;return(await this.client.request({method:"GET",path:`${this.prefix}/namespaces`,query:t})).data.namespaces.map(r=>({namespace:r}))}async createNamespace(e,t){const a={namespace:e.namespace,properties:t?.properties};return(await this.client.request({method:"POST",path:`${this.prefix}/namespaces`,body:a})).data}async dropNamespace(e){await this.client.request({method:"DELETE",path:`${this.prefix}/namespaces/${Fc(e.namespace)}`})}async loadNamespaceMetadata(e){return{properties:(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${Fc(e.namespace)}`})).data.properties}}async namespaceExists(e){try{return await this.client.request({method:"HEAD",path:`${this.prefix}/namespaces/${Fc(e.namespace)}`}),!0}catch(t){if(t instanceof ls&&t.status===404)return!1;throw t}}async createNamespaceIfNotExists(e,t){try{return await this.createNamespace(e,t)}catch(a){if(a instanceof ls&&a.status===409)return;throw a}}};function _r(e){return e.join("�")}var E1=class{constructor(e,t="",a){this.client=e,this.prefix=t,this.accessDelegation=a}async listTables(e){return(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${_r(e.namespace)}/tables`})).data.identifiers}async createTable(e,t){const a={};return this.accessDelegation&&(a["X-Iceberg-Access-Delegation"]=this.accessDelegation),(await this.client.request({method:"POST",path:`${this.prefix}/namespaces/${_r(e.namespace)}/tables`,body:t,headers:a})).data.metadata}async updateTable(e,t){const a=await this.client.request({method:"POST",path:`${this.prefix}/namespaces/${_r(e.namespace)}/tables/${e.name}`,body:t});return{"metadata-location":a.data["metadata-location"],metadata:a.data.metadata}}async dropTable(e,t){await this.client.request({method:"DELETE",path:`${this.prefix}/namespaces/${_r(e.namespace)}/tables/${e.name}`,query:{purgeRequested:String(t?.purge??!1)}})}async loadTable(e){const t={};return this.accessDelegation&&(t["X-Iceberg-Access-Delegation"]=this.accessDelegation),(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${_r(e.namespace)}/tables/${e.name}`,headers:t})).data.metadata}async tableExists(e){const t={};this.accessDelegation&&(t["X-Iceberg-Access-Delegation"]=this.accessDelegation);try{return await this.client.request({method:"HEAD",path:`${this.prefix}/namespaces/${_r(e.namespace)}/tables/${e.name}`,headers:t}),!0}catch(a){if(a instanceof ls&&a.status===404)return!1;throw a}}async createTableIfNotExists(e,t){try{return await this.createTable(e,t)}catch(a){if(a instanceof ls&&a.status===409)return await this.loadTable({namespace:e.namespace,name:t.name});throw a}}},A1=class{constructor(e){let t="v1";e.catalogName&&(t+=`/${e.catalogName}`);const a=e.baseUrl.endsWith("/")?e.baseUrl:`${e.baseUrl}/`;this.client=S1({baseUrl:a,auth:e.auth,fetchImpl:e.fetch}),this.accessDelegation=e.accessDelegation?.join(","),this.namespaceOps=new T1(this.client,t),this.tableOps=new E1(this.client,t,this.accessDelegation)}async listNamespaces(e){return this.namespaceOps.listNamespaces(e)}async createNamespace(e,t){return this.namespaceOps.createNamespace(e,t)}async dropNamespace(e){await this.namespaceOps.dropNamespace(e)}async loadNamespaceMetadata(e){return this.namespaceOps.loadNamespaceMetadata(e)}async listTables(e){return this.tableOps.listTables(e)}
39async createTable(e,t){return this.tableOps.createTable(e,t)}async updateTable(e,t){return this.tableOps.updateTable(e,t)}async dropTable(e,t){await this.tableOps.dropTable(e,t)}async loadTable(e){return this.tableOps.loadTable(e)}async namespaceExists(e){return this.namespaceOps.namespaceExists(e)}async tableExists(e){return this.tableOps.tableExists(e)}async createNamespaceIfNotExists(e,t){return this.namespaceOps.createNamespaceIfNotExists(e,t)}async createTableIfNotExists(e,t){return this.tableOps.createTableIfNotExists(e,t)}};function us(e){"@babel/helpers - typeof";return us=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},us(e)}function R1(e,t){if(us(e)!="object"||!e)return e;var a=e[Symbol.toPrimitive];if(a!==void 0){var r=a.call(e,t);if(us(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function O1(e){var t=R1(e,"string");return us(t)=="symbol"?t:t+""}function C1(e,t,a){return(t=O1(t))in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function Ww(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),a.push.apply(a,r)}return a}function de(e){for(var t=1;t<arguments.length;t++){var a=arguments[t]!=null?arguments[t]:{};t%2?Ww(Object(a),!0).forEach(function(r){C1(e,r,a[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):Ww(Object(a)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(a,r))})}return e}var Ul=class extends Error{constructor(e,t="storage",a,r){super(e),this.__isStorageError=!0,this.namespace=t,this.name=t==="vectors"?"StorageVectorsError":"StorageError",this.status=a,this.statusCode=r}toJSON(){return{name:this.name,message:this.message,status:this.status,statusCode:this.statusCode}}};function $l(e){return typeof e=="object"&&e!==null&&"__isStorageError"in e}var Ff=class extends Ul{constructor(e,t,a,r="storage"){super(e,r,t,a),this.name=r==="vectors"?"StorageVectorsApiError":"StorageApiError",this.status=t,this.statusCode=a}toJSON(){return de({},super.toJSON())}},Bk=class extends Ul{constructor(e,t,a="storage"){super(e,a),this.name=a==="vectors"?"StorageVectorsUnknownError":"StorageUnknownError",this.originalError=t}};function wl(e,t,a){const r=de({},e),s=t.toLowerCase();for(const l of Object.keys(r))l.toLowerCase()===s&&delete r[l];return r[s]=a,r}function N1(e){const t={};for(const[a,r]of Object.entries(e))t[a.toLowerCase()]=r;return t}const x1=e=>e?(...t)=>e(...t):(...t)=>fetch(...t),D1=e=>{if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Wf=e=>{if(Array.isArray(e))return e.map(a=>Wf(a));if(typeof e=="function"||e!==Object(e))return e;const t={};return Object.entries(e).forEach(([a,r])=>{const s=a.replace(/([-_][a-z])/gi,l=>l.toUpperCase().replace(/[-_]/g,""));t[s]=Wf(r)}),t},P1=e=>!e||typeof e!="string"||e.length===0||e.length>100||e.trim()!==e||e.includes("/")||e.includes("\\")?!1:/^[\w!.\*'() &$@=;:+,?-]+$/.test(e),Xw=e=>{if(typeof e=="object"&&e!==null){const t=e;if(typeof t.msg=="string")return t.msg;if(typeof t.message=="string")return t.message;if(typeof t.error_description=="string")return t.error_description;if(typeof t.error=="string")return t.error;if(typeof t.error=="object"&&t.error!==null){const a=t.error;if(typeof a.message=="string")return a.message}}return JSON.stringify(e)},L1=async(e,t,a,r)=>{if(e!==null&&typeof e=="object"&&"json"in e&&typeof e.json=="function"){const s=e;let l=parseInt(String(s.status),10);Number.isFinite(l)||(l=500),s.json().then(u=>{const d=u?.statusCode||u?.code||l+"";t(new Ff(Xw(u),l,d,r))}).catch(()=>{const u=l+"";t(new Ff(s.statusText||`HTTP ${l} error`,l,u,r))})}else t(new Bk(Xw(e),e,r))},M1=(e,t,a,r)=>{const s={method:e,headers:t?.headers||{}};if(e==="GET"||e==="HEAD"||!r)return de(de({},s),a);if(D1(r)){var l;const u=t?.headers||{};let d;for(const[h,y]of Object.entries(u))h.toLowerCase()==="content-type"&&(d=y);s.headers=wl(u,"Content-Type",(l=d)!==null&&l!==void 0?l:"application/json"),s.body=JSON.stringify(r)}else s.body=r;return t?.duplex&&(s.duplex=t.duplex),de(de({},s),a)};async function Vo(e,t,a,r,s,l,u){return new Promise((d,h)=>{e(a,M1(t,r,s,l)).then(y=>{if(!y.ok)throw y;if(r?.noResolveJson)return y;if(u==="vectors"){const z=y.headers.get("content-type");if(y.headers.get("content-length")==="0"||y.status===204)return{};if(!z||!z.includes("application/json"))return{}}return y.json()}).then(y=>d(y)).catch(y=>L1(y,h,r,u))})}function Hk(e="storage"){return{get:async(t,a,r,s)=>
39Vo(t,"GET",a,r,s,void 0,e),post:async(t,a,r,s,l)=>Vo(t,"POST",a,s,l,r,e),put:async(t,a,r,s,l)=>Vo(t,"PUT",a,s,l,r,e),head:async(t,a,r,s)=>Vo(t,"HEAD",a,de(de({},r),{},{noResolveJson:!0}),s,void 0,e),remove:async(t,a,r,s,l)=>Vo(t,"DELETE",a,s,l,r,e)}}const U1=Hk("storage"),{get:ds,post:wn,put:Xf,head:$1,remove:Nh}=U1,Wt=Hk("vectors");var Kr=class{constructor(e,t={},a,r="storage"){this.shouldThrowOnError=!1,this.url=e,this.headers=N1(t),this.fetch=x1(a),this.namespace=r}throwOnError(){return this.shouldThrowOnError=!0,this}setHeader(e,t){return this.headers=wl(this.headers,e,t),this}async handleOperation(e){var t=this;try{return{data:await e(),error:null}}catch(a){if(t.shouldThrowOnError)throw a;if($l(a))return{data:null,error:a};throw a}}};let qk;qk=Symbol.toStringTag;var I1=class{constructor(e,t){this.downloadFn=e,this.shouldThrowOnError=t,this[qk]="StreamDownloadBuilder",this.promise=null}then(e,t){return this.getPromise().then(e,t)}catch(e){return this.getPromise().catch(e)}finally(e){return this.getPromise().finally(e)}getPromise(){return this.promise||(this.promise=this.execute()),this.promise}async execute(){var e=this;try{return{data:(await e.downloadFn()).body,error:null}}catch(t){if(e.shouldThrowOnError)throw t;if($l(t))return{data:null,error:t};throw t}}};let Kk;Kk=Symbol.toStringTag;var B1=class{constructor(e,t){this.downloadFn=e,this.shouldThrowOnError=t,this[Kk]="BlobDownloadBuilder",this.promise=null}asStream(){return new I1(this.downloadFn,this.shouldThrowOnError)}then(e,t){return this.getPromise().then(e,t)}catch(e){return this.getPromise().catch(e)}finally(e){return this.getPromise().finally(e)}getPromise(){return this.promise||(this.promise=this.execute()),this.promise}async execute(){var e=this;try{return{data:await(await e.downloadFn()).blob(),error:null}}catch(t){if(e.shouldThrowOnError)throw t;if($l(t))return{data:null,error:t};throw t}}};const H1={limit:100,offset:0,sortBy:{column:"name",order:"asc"}},Qw={cacheControl:"3600",contentType:"text/plain;charset=UTF-8",upsert:!1};var q1=class extends Kr{constructor(e,t={},a,r){super(e,t,r,"storage"),this.bucketId=a}async uploadOrUpdate(e,t,a,r){var s=this;return s.handleOperation(async()=>{let l;const u=de(de({},Qw),r);let d=de(de({},s.headers),e==="POST"&&{"x-upsert":String(u.upsert)});const h=u.metadata;if(typeof Blob<"u"&&a instanceof Blob?(l=new FormData,l.append("cacheControl",u.cacheControl),h&&l.append("metadata",s.encodeMetadata(h)),l.append("",a)):typeof FormData<"u"&&a instanceof FormData?(l=a,l.has("cacheControl")||l.append("cacheControl",u.cacheControl),h&&!l.has("metadata")&&l.append("metadata",s.encodeMetadata(h))):(l=a,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")),r?.headers)for(const[g,b]of Object.entries(r.headers))d=wl(d,g,b);const y=s._removeEmptyFolders(t),z=s._getFinalPath(y),m=await(e=="PUT"?Xf:wn)(s.fetch,`${s.url}/object/${z}`,l,de({headers:d},u?.duplex?{duplex:u.duplex}:{}));return{path:y,id:m.Id,fullPath:m.Key}})}async upload(e,t,a){return this.uploadOrUpdate("POST",e,t,a)}async uploadToSignedUrl(e,t,a,r){var s=this;const l=s._removeEmptyFolders(e),u=s._getFinalPath(l),d=new URL(s.url+`/object/upload/sign/${u}`);return d.searchParams.set("token",t),s.handleOperation(async()=>{let h;const y=de(de({},Qw),r);let z=de(de({},s.headers),{"x-upsert":String(y.upsert)});const m=y.metadata;if(typeof Blob<"u"&&a instanceof Blob?(h=new FormData,h.append("cacheControl",y.cacheControl),m&&h.append("metadata",s.encodeMetadata(m)),h.append("",a)):typeof FormData<"u"&&a instanceof FormData?(h=a,h.has("cacheControl")||h.append("cacheControl",y.cacheControl),m&&!h.has("metadata")&&h.append("metadata",s.encodeMetadata(m))):(h=a,z["cache-control"]=`max-age=${y.cacheControl}`,z["content-type"]=y.contentType,m&&(z["x-metadata"]=s.toBase64(s.encodeMetadata(m))),(typeof ReadableStream<"u"&&h instanceof ReadableStream||h&&typeof h=="object"&&"pipe"in h&&typeof h.pipe=="function")&&!y.duplex&&(y.duplex="half")),r?.headers)for(const[g,b]of Object.entries(r.headers))z=wl(z,g,b);return{path:l,fullPath:(await Xf(s.fetch,d.toString(),h,de({headers:z},y?.duplex?{duplex:y.duplex}:{}))).Key}})}async createSignedUploadUrl(e,t){var a=this;return a.handleOperation(async()=>{let r=a._getFinalPath(e);const s=de({},a.headers);t?.upsert&&(s["x-upsert"]="true");const l=await wn(a.fetch,`${a.url}/object/upload/sign/${r}`,{},{headers:s}),u=new URL(a.url+l.url),d=u.searchParams.get("token");if(!d)throw new Ul("No token returned by API");return{signedUrl:u.toString(),path:e,token:d}})}async update(e,t,a){return this.uploadOrUpdate("PUT",e,t,a)}async move(e,t,a){var r=this;return r.handleOperation(async()=>await wn(r.fetch,`${r.url}/object/move`,{bucketId:r.bucketId,sourceKey:e,destinationKey:t,de
39stinationBucket:a?.destinationBucket},{headers:r.headers}))}async copy(e,t,a){var r=this;return r.handleOperation(async()=>({path:(await wn(r.fetch,`${r.url}/object/copy`,{bucketId:r.bucketId,sourceKey:e,destinationKey:t,destinationBucket:a?.destinationBucket},{headers:r.headers})).Key}))}async createSignedUrl(e,t,a){var r=this;return r.handleOperation(async()=>{let s=r._getFinalPath(e);const l=typeof a?.transform=="object"&&a.transform!==null&&Object.keys(a.transform).length>0;let u=await wn(r.fetch,`${r.url}/object/sign/${s}`,de({expiresIn:t},l?{transform:a.transform}:{}),{headers:r.headers});const d=new URLSearchParams;a?.download&&d.set("download",a.download===!0?"":a.download),a?.cacheNonce!=null&&d.set("cacheNonce",String(a.cacheNonce));const h=d.toString();return{signedUrl:encodeURI(`${r.url}${u.signedURL}${h?`&${h}`:""}`)}})}async createSignedUrls(e,t,a){var r=this;return r.handleOperation(async()=>{const s=await wn(r.fetch,`${r.url}/object/sign/${r.bucketId}`,{expiresIn:t,paths:e},{headers:r.headers}),l=new URLSearchParams;a?.download&&l.set("download",a.download===!0?"":a.download),a?.cacheNonce!=null&&l.set("cacheNonce",String(a.cacheNonce));const u=l.toString();return s.map(d=>de(de({},d),{},{signedUrl:d.signedURL?encodeURI(`${r.url}${d.signedURL}${u?`&${u}`:""}`):null}))})}download(e,t,a){const r=typeof t?.transform=="object"&&t.transform!==null&&Object.keys(t.transform).length>0?"render/image/authenticated":"object",s=new URLSearchParams;t?.transform&&this.applyTransformOptsToQuery(s,t.transform),t?.cacheNonce!=null&&s.set("cacheNonce",String(t.cacheNonce));const l=s.toString(),u=this._getFinalPath(e),d=()=>ds(this.fetch,`${this.url}/${r}/${u}${l?`?${l}`:""}`,{headers:this.headers,noResolveJson:!0},a);return new B1(d,this.shouldThrowOnError)}async info(e){var t=this;const a=t._getFinalPath(e);return t.handleOperation(async()=>Wf(await ds(t.fetch,`${t.url}/object/info/${a}`,{headers:t.headers})))}async exists(e){var t=this;const a=t._getFinalPath(e);try{return await $1(t.fetch,`${t.url}/object/${a}`,{headers:t.headers}),{data:!0,error:null}}catch(s){if(t.shouldThrowOnError)throw s;if($l(s)){var r;const l=s instanceof Ff?s.status:s instanceof Bk?(r=s.originalError)===null||r===void 0?void 0:r.status:void 0;if(l!==void 0&&[400,404].includes(l))return{data:!1,error:s}}throw s}}getPublicUrl(e,t){const a=this._getFinalPath(e),r=new URLSearchParams;t?.download&&r.set("download",t.download===!0?"":t.download),t?.transform&&this.applyTransformOptsToQuery(r,t.transform),t?.cacheNonce!=null&&r.set("cacheNonce",String(t.cacheNonce));const s=r.toString(),l=typeof t?.transform=="object"&&t.transform!==null&&Object.keys(t.transform).length>0?"render/image":"object";return{data:{publicUrl:encodeURI(`${this.url}/${l}/public/${a}`)+(s?`?${s}`:"")}}}async remove(e){var t=this;return t.handleOperation(async()=>await Nh(t.fetch,`${t.url}/object/${t.bucketId}`,{prefixes:e},{headers:t.headers}))}async list(e,t,a){var r=this;return r.handleOperation(async()=>{const s=de(de(de({},H1),t),{},{prefix:e||""});return await wn(r.fetch,`${r.url}/object/list/${r.bucketId}`,s,{headers:r.headers},a)})}async listV2(e,t){var a=this;return a.handleOperation(async()=>{const r=de({},e);return await wn(a.fetch,`${a.url}/object/list-v2/${a.bucketId}`,r,{headers:a.headers},t)})}encodeMetadata(e){return JSON.stringify(e)}toBase64(e){return typeof Buffer<"u"?Buffer.from(e).toString("base64"):btoa(e)}_getFinalPath(e){return`${this.bucketId}/${e.replace(/^\/+/,"")}`}_removeEmptyFolders(e){return e.replace(/^\/|\/$/g,"").replace(/\/+/g,"/")}applyTransformOptsToQuery(e,t){return t.width&&e.set("width",t.width.toString()),t.height&&e.set("height",t.height.toString()),t.resize&&e.set("resize",t.resize),t.format&&e.set("format",t.format),t.quality&&e.set("quality",t.quality.toString()),e}};const K1="2.106.2",bs={"X-Client-Info":`storage-js/${K1}`};var J1=class extends Kr{constructor(e,t={},a,r){const s=new URL(e);r?.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=de(de({},bs),t);super(l,u,a,"storage")}async listBuckets(e){var t=this;return t.handleOperation(async()=>{const a=t.listBucketOptionsToQueryString(e);return await ds(t.fetch,`${t.url}/bucket${a}`,{headers:t.headers})})}async getBucket(e){var t=this;return t.handleOperation(async()=>await ds(t.fetch,`${t.url}/bucket/${e}`,{headers:t.headers}))}async createBucket(e,t={public:!1}){var a=this;return a.handleOperation(async()=>await wn(a.fetch,`${a.url}/bucket`,{id:e,name:e,type:t.type,public:t.public,file_size_limit:t.fileSizeLimit,allowed_mime_types:t.allowedMimeTypes},{headers:a.headers}))}async updateBucket(e,t){var a=this;return a.handleOperation(async()=>await Xf(a.fetch,`${a.url}/bucket/${e}`,{id:e,name:e,public:t.public,file_size_limit:t.fileSizeLimit,allowed_mime_types:t.allowedMimeTypes},{headers:a.headers}))}async emptyBucket(e){var t=this;return t.handleOperation(async()=>await wn(t.fetch,`${t.url}/bucket/${e}/empty`,{},{headers:t.headers}))}async deleteBucket(e){var t=this;return t.handleOperation(async()=>await Nh(t.fetch,`${t.url}/bucket/${e}`,{},{headers:t.headers}))}listBucketOptionsToQueryString(e){const t={};return e&&("limit"in e&&(t.limit=String(e.limit)),"offset"in e&&(t.offset=String(e.offset)),e.search&&(t.search=e.search),e.sortColumn&&(t.sortColumn=e.sortColumn),e.sortOrder&&(t.sortOrder=e.sortOrder)),Object.keys(t).length>0?"?"+new URLSearchParams(t).toString():""}},V1=class extends Kr{constructor(e,t={},a){const r=e.replace(/\/$/,""),s=de(de({},bs),t);super(r,s,a,"storage")}async createBucket(e){var t=this;return t.handleOperation(async()=>await wn(t.fetch,`${t.url}/bucket`,{name:e},{headers:t.headers}))}async listBuckets(e){var t=this;return t.handleOperation(async()=>{const a=new URLSearchParams;e?.limit!==void 0&&a.set("limit",e.limit.toString()),e?.offset!==void 0&&a.set("offset",e.offset.toString()),e?.sortColumn&&a.set("sortColumn",e.sortColumn),e?.sortOrder&&a.set("sortOrder",e.sortOrder),e?.search&&a.set("search",e.search);const r=a.toString(),s=r?`${t.url}/bucket?${r}`:`${t.url}/bucket`;return await ds(t.fetch,s,{headers:t.headers})})}async deleteBucket(e){var t=this;return t.handleOperation(async()=>await Nh(t.fetch,`${t.url}/bucket/${e}`,{},{headers:t.headers}))}from(e){var t=this;if(!P1(e))throw new Ul("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 a=new A1({baseUrl:this.url,catalogName:e,auth:{type:"custom",getHeaders:async()=>t.headers},fetch:this.fetch}
39),r=this.shouldThrowOnError;return new Proxy(a,{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(r)throw h;return{data:null,error:h}}}}})}},Z1=class extends Kr{constructor(e,t={},a){const r=e.replace(/\/$/,""),s=de(de({},bs),{},{"Content-Type":"application/json"},t);super(r,s,a,"vectors")}async createIndex(e){var t=this;return t.handleOperation(async()=>await Wt.post(t.fetch,`${t.url}/CreateIndex`,e,{headers:t.headers})||{})}async getIndex(e,t){var a=this;return a.handleOperation(async()=>await Wt.post(a.fetch,`${a.url}/GetIndex`,{vectorBucketName:e,indexName:t},{headers:a.headers}))}async listIndexes(e){var t=this;return t.handleOperation(async()=>await Wt.post(t.fetch,`${t.url}/ListIndexes`,e,{headers:t.headers}))}async deleteIndex(e,t){var a=this;return a.handleOperation(async()=>await Wt.post(a.fetch,`${a.url}/DeleteIndex`,{vectorBucketName:e,indexName:t},{headers:a.headers})||{})}},G1=class extends Kr{constructor(e,t={},a){const r=e.replace(/\/$/,""),s=de(de({},bs),{},{"Content-Type":"application/json"},t);super(r,s,a,"vectors")}async putVectors(e){var t=this;if(e.vectors.length<1||e.vectors.length>500)throw new Error("Vector batch size must be between 1 and 500 items");return t.handleOperation(async()=>await Wt.post(t.fetch,`${t.url}/PutVectors`,e,{headers:t.headers})||{})}async getVectors(e){var t=this;return t.handleOperation(async()=>await Wt.post(t.fetch,`${t.url}/GetVectors`,e,{headers:t.headers}))}async listVectors(e){var t=this;if(e.segmentCount!==void 0){if(e.segmentCount<1||e.segmentCount>16)throw new Error("segmentCount must be between 1 and 16");if(e.segmentIndex!==void 0&&(e.segmentIndex<0||e.segmentIndex>=e.segmentCount))throw new Error(`segmentIndex must be between 0 and ${e.segmentCount-1}`)}return t.handleOperation(async()=>await Wt.post(t.fetch,`${t.url}/ListVectors`,e,{headers:t.headers}))}async queryVectors(e){var t=this;return t.handleOperation(async()=>await Wt.post(t.fetch,`${t.url}/QueryVectors`,e,{headers:t.headers}))}async deleteVectors(e){var t=this;if(e.keys.length<1||e.keys.length>500)throw new Error("Keys batch size must be between 1 and 500 items");return t.handleOperation(async()=>await Wt.post(t.fetch,`${t.url}/DeleteVectors`,e,{headers:t.headers})||{})}},Y1=class extends Kr{constructor(e,t={},a){const r=e.replace(/\/$/,""),s=de(de({},bs),{},{"Content-Type":"application/json"},t);super(r,s,a,"vectors")}async createBucket(e){var t=this;return t.handleOperation(async()=>await Wt.post(t.fetch,`${t.url}/CreateVectorBucket`,{vectorBucketName:e},{headers:t.headers})||{})}async getBucket(e){var t=this;return t.handleOperation(async()=>await Wt.post(t.fetch,`${t.url}/GetVectorBucket`,{vectorBucketName:e},{headers:t.headers}))}async listBuckets(e={}){var t=this;return t.handleOperation(async()=>await Wt.post(t.fetch,`${t.url}/ListVectorBuckets`,e,{headers:t.headers}))}async deleteBucket(e){var t=this;return t.handleOperation(async()=>await Wt.post(t.fetch,`${t.url}/DeleteVectorBucket`,{vectorBucketName:e},{headers:t.headers})||{})}},F1=class extends Y1{constructor(e,t={}){super(e,t.headers||{},t.fetch)}from(e){return new W1(this.url,this.headers,e,this.fetch)}async createBucket(e){var t=()=>super.createBucket,a=this;return t().call(a,e)}async getBucket(e){var t=()=>super.getBucket,a=this;return t().call(a,e)}async listBuckets(e={}){var t=()=>super.listBuckets,a=this;return t().call(a,e)}async deleteBucket(e){var t=()=>super.deleteBucket,a=this;return t().call(a,e)}},W1=class extends Z1{constructor(e,t,a,r){super(e,t,r),this.vectorBucketName=a}async createIndex(e){var t=()=>super.createIndex,a=this;return t().call(a,de(de({},e),{},{vectorBucketName:a.vectorBucketName}))}async listIndexes(e={}){var t=()=>super.listIndexes,a=this;return t().call(a,de(de({},e),{},{vectorBucketName:a.vectorBucketName}))}async getIndex(e){var t=()=>super.getIndex,a=this;return t().call(a,a.vectorBucketName,e)}async deleteIndex(e){var t=()=>super.deleteIndex,a=this;return t().call(a,a.vectorBucketName,e)}index(e){return new X1(this.url,this.headers,this.vectorBucketName,e,this.fetch)}},X1=class extends G1{constructor(e,t,a,r,s){super(e,t,s),this.vectorBucketName=a,this.indexName=r}async putVectors(e){var t=()=>super.putVectors,a=this;return t().call(a,de(de({},e),{},{vectorBucketName:a.vectorBucketName,indexName:a.indexName}))}async getVectors(e){var t=()=>super.getVectors,a=this;return t().call(a,de(de({},e),{},{vectorBucketName:a.vectorBucketName,indexName:a.indexName}))}async listVectors(e={}){var t=()=>super.listVectors,a=this;return t().call(a,de(de({},e),{},{vectorBucketName:a.vectorBucketName,indexName:a.indexName}))}async queryVectors(e){var t=()=>super.queryVectors,a=this;return t().call(a,de(de({},e),{},{vectorBucketName:a.vectorBucketName,indexName:a.indexName}))}async deleteVectors(e){var t=()=>super.deleteVectors,a=this;return t().call(a,de(de({},e),{},{vectorBucketName:a.vectorBucketName,indexName:a.indexName}))}},Q1=class extends J1{constructor(e,t={},a,r){super(e,t,a,r)}from(e){return new q1(this.url,this.headers,e,this.fetch)}get vectors(){return new F1(this.url+"/vector",{headers:this.headers,fetch:this.fetch})}get analytics(){return new V1(this.url+"/iceberg",this.headers,this.fetch)}};const Jk="2.106.2",Or=30*1e3,Qf=3,Sf=Qf*Or,eO="http://localhost:9999",tO="supabase.auth.token",nO={"X-Client-Info":`gotrue-js/${Jk}`},eh="X-Supabase-Api-Version",Vk={"2024-01-01":{timestamp:Date.parse("2024-01-01T00:00:00.0Z"),name:"2024-01-01"}},aO=/^([a-z0-9_-]{4})*($|[a-z0-9_-]{3}$|[a-z0-9_-]{2}$)$/i,iO=600*1e3;
39class qr extends Error{constructor(t,a,r){super(t),this.__isAuthError=!0,this.name="AuthError",this.status=a,this.code=r}toJSON(){return{name:this.name,message:this.message,status:this.status,code:this.code}}}function W(e){return typeof e=="object"&&e!==null&&"__isAuthError"in e}class rO extends qr{constructor(t,a,r){super(t,a,r),this.name="AuthApiError",this.status=a,this.code=r}}function oO(e){return W(e)&&e.name==="AuthApiError"}class gn extends qr{constructor(t,a){super(t),this.name="AuthUnknownError",this.originalError=a}}class ha extends qr{constructor(t,a,r,s){super(t,r,s),this.name=a,this.status=r}}class dt extends ha{constructor(){super("Auth session missing!","AuthSessionMissingError",400,void 0)}}function Wc(e){return W(e)&&e.name==="AuthSessionMissingError"}class Sr extends ha{constructor(){super("Auth session or user missing","AuthInvalidTokenResponseError",500,void 0)}}class Xc extends ha{constructor(t){super(t,"AuthInvalidCredentialsError",400,void 0)}}class Qc extends ha{constructor(t,a=null){super(t,"AuthImplicitGrantRedirectError",500,void 0),this.details=null,this.details=a}toJSON(){return Object.assign(Object.assign({},super.toJSON()),{details:this.details})}}function sO(e){return W(e)&&e.name==="AuthImplicitGrantRedirectError"}class eg extends ha{constructor(t,a=null){super(t,"AuthPKCEGrantCodeExchangeError",500,void 0),this.details=null,this.details=a}toJSON(){return Object.assign(Object.assign({},super.toJSON()),{details:this.details})}}class cO extends ha{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 th extends ha{constructor(t,a){super(t,"AuthRetryableFetchError",a,void 0)}}function Tf(e){return W(e)&&e.name==="AuthRetryableFetchError"}class tg extends ha{constructor(t,a,r){super(t,"AuthWeakPasswordError",a,"weak_password"),this.reasons=r}toJSON(){return Object.assign(Object.assign({},super.toJSON()),{reasons:this.reasons})}}class nh extends ha{constructor(t){super(t,"AuthInvalidJwtError",400,"invalid_jwt")}}const gl="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".split(""),ng=` 	
40\r=`.split(""),lO=(()=>{const e=new Array(128);for(let t=0;t<e.length;t+=1)e[t]=-1;for(let t=0;t<ng.length;t+=1)e[ng[t].charCodeAt(0)]=-2;for(let t=0;t<gl.length;t+=1)e[gl[t].charCodeAt(0)]=t;return e})();function ag(e,t,a){if(e!==null)for(t.queue=t.queue<<8|e,t.queuedBits+=8;t.queuedBits>=6;){const r=t.queue>>t.queuedBits-6&63;a(gl[r]),t.queuedBits-=6}else if(t.queuedBits>0)for(t.queue=t.queue<<6-t.queuedBits,t.queuedBits=6;t.queuedBits>=6;){const r=t.queue>>t.queuedBits-6&63;a(gl[r]),t.queuedBits-=6}}function Zk(e,t,a){const r=lO[e];if(r>-1)for(t.queue=t.queue<<6|r,t.queuedBits+=6;t.queuedBits>=8;)a(t.queue>>t.queuedBits-8&255),t.queuedBits-=8;else{if(r===-2)return;throw new Error(`Invalid Base64-URL character "${String.fromCharCode(e)}"`)}}function ig(e){const t=[],a=u=>{t.push(String.fromCodePoint(u))},r={utf8seq:0,codepoint:0},s={queue:0,queuedBits:0},l=u=>{fO(u,r,a)};for(let u=0;u<e.length;u+=1)Zk(e.charCodeAt(u),s,l);return t.join("")}function uO(e,t){if(e<=127){t(e);return}else if(e<=2047){t(192|e>>6),t(128|e&63);return}else if(e<=65535){t(224|e>>12),t(128|e>>6&63),t(128|e&63);return}else if(e<=1114111){t(240|e>>18),t(128|e>>12&63),t(128|e>>6&63),t(128|e&63);return}throw new Error(`Unrecognized Unicode codepoint: ${e.toString(16)}`)}function dO(e,t){for(let a=0;a<e.length;a+=1){let r=e.charCodeAt(a);if(r>55295&&r<=56319){const s=(r-55296)*1024&65535;r=(e.charCodeAt(a+1)-56320&65535|s)+65536,a+=1}uO(r,t)}}function fO(e,t,a){if(t.utf8seq===0){if(e<=127){a(e);return}for(let r=1;r<6;r+=1)if((e>>7-r&1)===0){t.utf8seq=r;break}if(t.utf8seq===2)t.codepoint=e&31;else if(t.utf8seq===3)t.codepoint=e&15;else if(t.utf8seq===4)t.codepoint=e&7;else throw new Error("Invalid UTF-8 sequence");t.utf8seq-=1}else if(t.utf8seq>0){if(e<=127)throw new Error("Invalid UTF-8 sequence");t.codepoint=t.codepoint<<6|e&63,t.utf8seq-=1,t.utf8seq===0&&a(t.codepoint)}}function Br(e){const t=[],a={queue:0,queuedBits:0},r=s=>{t.push(s)};for(let s=0;s<e.length;s+=1)Zk(e.charCodeAt(s),a,r);return new Uint8Array(t)}function hO(e){const t=[];return dO(e,a=>t.push(a)),new Uint8Array(t)}function Ti(e){const t=[],a={queue:0,queuedBits:0},r=s=>{t.push(s)};return e.forEach(s=>ag(s,a,r)),ag(null,a,r),t.join("")}function pO(e){return Math.round(Date.now()/1e3)+e}function yO(){return Symbol("auth-callback")}const kt=()=>typeof window<"u"&&typeof document<"u",ki={tested:!1,writable:!1},Gk=()=>
40{if(!kt())return!1;try{if(typeof globalThis.localStorage!="object")return!1}catch{return!1}if(ki.tested)return ki.writable;const e=`lswt-${Math.random()}${Math.random()}`;try{globalThis.localStorage.setItem(e,e),globalThis.localStorage.removeItem(e),ki.tested=!0,ki.writable=!0}catch{ki.tested=!0,ki.writable=!1}return ki.writable};function mO(e){const t={},a=new URL(e);if(a.hash&&a.hash[0]==="#")try{new URLSearchParams(a.hash.substring(1)).forEach((s,l)=>{t[l]=s})}catch{}return a.searchParams.forEach((r,s)=>{t[s]=r}),t}const Yk=e=>e?(...t)=>e(...t):(...t)=>fetch(...t),zO=e=>typeof e=="object"&&e!==null&&"status"in e&&"ok"in e&&"json"in e&&typeof e.json=="function",Cr=async(e,t,a)=>{await e.setItem(t,JSON.stringify(a))},vi=async(e,t)=>{const a=await e.getItem(t);if(!a)return null;try{return JSON.parse(a)}catch{return null}},bt=async(e,t)=>{await e.removeItem(t)};class Il{constructor(){this.promise=new Il.promiseConstructor((t,a)=>{this.resolve=t,this.reject=a})}}Il.promiseConstructor=Promise;function el(e){const t=e.split(".");if(t.length!==3)throw new nh("Invalid JWT structure");for(let r=0;r<t.length;r++)if(!aO.test(t[r]))throw new nh("JWT not in base64url format");return{header:JSON.parse(ig(t[0])),payload:JSON.parse(ig(t[1])),signature:Br(t[2]),raw:{header:t[0],payload:t[1]}}}async function wO(e){return await new Promise(t=>{setTimeout(()=>t(null),e)})}function gO(e,t){return new Promise((r,s)=>{(async()=>{for(let l=0;l<1/0;l++)try{const u=await e(l);if(!t(l,null,u)){r(u);return}}catch(u){if(!t(l,u)){s(u);return}}})()})}function bO(e){return("0"+e.toString(16)).substr(-2)}function kO(){const t=new Uint32Array(56);if(typeof crypto>"u"){const a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~",r=a.length;let s="";for(let l=0;l<56;l++)s+=a.charAt(Math.floor(Math.random()*r));return s}return crypto.getRandomValues(t),Array.from(t,bO).join("")}async function vO(e){const a=new TextEncoder().encode(e),r=await crypto.subtle.digest("SHA-256",a),s=new Uint8Array(r);return Array.from(s).map(l=>String.fromCharCode(l)).join("")}async function jO(e){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."),e;const a=await vO(e);return btoa(a).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}async function Tr(e,t,a=!1){const r=kO();let s=r;a&&(s+="/recovery"),await Cr(e,`${t}-code-verifier`,s);const l=await jO(r);return[l,r===l?"plain":"s256"]}const _O=/^2[0-9]{3}-(0[1-9]|1[0-2])-(0[1-9]|1[0-9]|2[0-9]|3[0-1])$/i;function SO(e){const t=e.headers.get(eh);if(!t||!t.match(_O))return null;try{return new Date(`${t}T00:00:00.0Z`)}catch{return null}}function TO(e){if(!e)throw new Error("Missing exp claim");const t=Math.floor(Date.now()/1e3);if(e<=t)throw new Error("JWT has expired")}function EO(e){switch(e){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 AO=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/;function ta(e){if(!AO.test(e))throw new Error("@supabase/auth-js: Expected parameter to be UUID but is not")}function mn(e){if(!e.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 Ef(){const e={};return new Proxy(e,{get:(t,a)=>{if(a==="__isUserNotAvailableProxy")return!0;if(typeof a=="symbol"){const r=a.toString();if(r==="Symbol(Symbol.toPrimitive)"||r==="Symbol(Symbol.toStringTag)"||r==="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 "${a}" property of the session object is not supported. Please use getUser() instead.`)},set:(t,a)=>{throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Setting the "${a}" property of the session object is not supported. Please use getUser() to fetch a user object you can manipulate.`)},deleteProperty:(t,a)=>{throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Deleting the "${a}" property of the session object is not supported. Please use getUser() to fetch a user object you can manipulate.`)}})}function RO(e,t){return new Proxy(e,{get:(a,r,s)=>{if(r==="__isInsecureUserWarningProxy")return!0;
40if(typeof r=="symbol"){const l=r.toString();if(l==="Symbol(Symbol.toPrimitive)"||l==="Symbol(Symbol.toStringTag)"||l==="Symbol(util.inspect.custom)"||l==="Symbol(nodejs.util.inspect.custom)")return Reflect.get(a,r,s)}return!t.value&&typeof r=="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."),t.value=!0),Reflect.get(a,r,s)}})}function rg(e){return JSON.parse(JSON.stringify(e))}const ji=e=>{if(typeof e=="object"&&e!==null){const t=e;if(typeof t.msg=="string")return t.msg;if(typeof t.message=="string")return t.message;if(typeof t.error_description=="string")return t.error_description;if(typeof t.error=="string")return t.error}return JSON.stringify(e)},OO=[502,503,504,520,521,522,523,524,530];async function og(e){var t;if(!zO(e))throw new th(ji(e),0);if(OO.includes(e.status))throw new th(ji(e),e.status);let a;try{a=await e.json()}catch(l){throw new gn(ji(l),l)}let r;const s=SO(e);if(s&&s.getTime()>=Vk["2024-01-01"].timestamp&&typeof a=="object"&&a&&typeof a.code=="string"?r=a.code:typeof a=="object"&&a&&typeof a.error_code=="string"&&(r=a.error_code),r){if(r==="weak_password")throw new tg(ji(a),e.status,((t=a.weak_password)===null||t===void 0?void 0:t.reasons)||[]);if(r==="session_not_found")throw new dt}else if(typeof a=="object"&&a&&typeof a.weak_password=="object"&&a.weak_password&&Array.isArray(a.weak_password.reasons)&&a.weak_password.reasons.length&&a.weak_password.reasons.reduce((l,u)=>l&&typeof u=="string",!0))throw new tg(ji(a),e.status,a.weak_password.reasons);throw new rO(ji(a),e.status||500,r)}const CO=(e,t,a,r)=>{const s={method:e,headers:t?.headers||{}};return e==="GET"?s:(s.headers=Object.assign({"Content-Type":"application/json;charset=UTF-8"},t?.headers),s.body=JSON.stringify(r),Object.assign(Object.assign({},s),a))};async function ne(e,t,a,r){var s;const l=Object.assign({},r?.headers);l[eh]||(l[eh]=Vk["2024-01-01"].name),r?.jwt&&(l.Authorization=`Bearer ${r.jwt}`);const u=(s=r?.query)!==null&&s!==void 0?s:{};r?.redirectTo&&(u.redirect_to=r.redirectTo);const d=Object.keys(u).length?"?"+new URLSearchParams(u).toString():"",h=await NO(e,t,a+d,{headers:l,noResolveJson:r?.noResolveJson},{},r?.body);return r?.xform?r?.xform(h):{data:Object.assign({},h),error:null}}async function NO(e,t,a,r,s,l){const u=CO(t,r,s,l);let d;try{d=await e(a,Object.assign({},u))}catch(h){throw console.error(h),new th(ji(h),0)}if(d.ok||await og(d),r?.noResolveJson)return d;try{return await d.json()}catch(h){await og(h)}}function un(e){var t;let a=null;PO(e)&&(a=Object.assign({},e),e.expires_at||(a.expires_at=pO(e.expires_in)));const r=(t=e.user)!==null&&t!==void 0?t:typeof e?.id=="string"?e:null;return{data:{session:a,user:r},error:null}}function sg(e){const t=un(e);return!t.error&&e.weak_password&&typeof e.weak_password=="object"&&Array.isArray(e.weak_password.reasons)&&e.weak_password.reasons.length&&e.weak_password.message&&typeof e.weak_password.message=="string"&&e.weak_password.reasons.reduce((a,r)=>a&&typeof r=="string",!0)&&(t.data.weak_password=e.weak_password),t}function qa(e){var t;return{data:{user:(t=e.user)!==null&&t!==void 0?t:e},error:null}}function xO(e){return{data:e,error:null}}function DO(e){const{action_link:t,email_otp:a,hashed_token:r,redirect_to:s,verification_type:l}=e,u=Ml(e,["action_link","email_otp","hashed_token","redirect_to","verification_type"]),d={action_link:t,email_otp:a,hashed_token:r,redirect_to:s,verification_type:l},h=Object.assign({},u);return{data:{properties:d,user:h},error:null}}function cg(e){return e}function PO(e){return!!e.access_token&&!!e.refresh_token&&!!e.expires_in}const Af=["global","local","others"];class LO{_encodePathSegment(t){if(t==="."||t==="..")throw new qr("Invalid path segment");return encodeURIComponent(t)}constructor({url:t="",headers:a={},fetch:r,experimental:s}){this.url=t,this.headers=a,this.fetch=Yk(r),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(t,a=Af[0]){if(Af.indexOf(a)<0)throw new Error(`@supabase/auth-js: Parameter scope must be one of ${Af.join(", ")}`);try{return await ne(this.fetch,"POST",`${this.url}/logout?scope=${a}`,{headers:this.headers,jwt:t,noResolveJson:!0}),{data:null,error:null}}catch(r){if(W(r))return{data:null,error:r};throw r}}async inviteUserByEmail(t,a={}){try{return await ne(this.fetch,"POST",`${this.url}/invite`,{body:{email:t,data:a.data},headers:this.headers,redirectTo:a.redirectTo,xform:qa})}catch(r){if(W(r))return{data:{user:null},error:r};throw r}}async generateLink(t){try{const{options:a}=t,r=Ml(t,["options"]),s=Object.assign(Object.assign({},r),a);return"newEmail"in r&&(s.new_email=r?.newEmail,delete s.newEmail),await ne(this.fetch,"POST",`${this.url}/admin/generate_link`,{body:s,headers:this.headers,xform:DO,redirectTo:a?.redirectTo})}catch(a){if(W(a))return{data:{properties:null,user:null},error:a};throw a}}async createUser(t){try{return await ne(this.fetch,"POST",`${this.url}/admin/users`,{body:t,headers:this.headers,xform:qa})}catch(a){if(W(a))return{data:{user:null},error:a};throw a}}async listUsers(t){var a,r,s,l,u,d,h;try{const y={nextPage:null,lastPage:0,total:0},z=await ne(this.fetch,"GET",`${this.url}/admin/users`,{headers:this.headers,noResolveJson:!0,query:{page:(r=(a=t?.page)===null||a===void 0?void 0:a.toString())!==null&&r!==void 0?r:"",per_page:(l=(s=t?.perPage)===null||s===void 0?void 0:s.toString())!==null&&l!==void 0?l:""},xform:cg});if(z.error)throw z.error;const m=await z.json(),g=(u=z.headers.get("x-total-count"))!==null&&u!==void 0?u:0,b=(h=(d=z.headers.get("link"))===null||d===void 0?void 0:d.split(","))!==null&&h!==void 0?h:[];return b.length>0&&(b.forEach(v=>{const j=parseInt(v.split(";")[0].split("=")[1].substring(0,1)),_=JSON.parse(v.split(";")[1].split("=")[1]);y[`${_}Page`]=j}),y.total=parseInt(g)),{data:Object.assign(Object.assign({},m),y),error:null}}catch(y){if(W(y))return{data:{users:[]},error:y};throw y}}async getUserById(t){ta(t);try{return await ne(this.fetch,"GET",`${this.url}/admin/users/${t}`,{headers:this.headers,xform:qa})}catch(a){if(W(a))return{data:{user:null},error:a};throw a}}async updateUserById(t,a){ta(t);try{return await ne(this.fetch,"PUT",`${this.url}/admin/users/${t}`,{body:a,headers:this.headers,xform:qa})}catch(r){if(W(r))return{data:{user:null},error:r};throw r}}async deleteUser(t,a=!1){ta(t);
40try{return await ne(this.fetch,"DELETE",`${this.url}/admin/users/${t}`,{headers:this.headers,body:{should_soft_delete:a},xform:qa})}catch(r){if(W(r))return{data:{user:null},error:r};throw r}}async _listFactors(t){ta(t.userId);try{const{data:a,error:r}=await ne(this.fetch,"GET",`${this.url}/admin/users/${t.userId}/factors`,{headers:this.headers,xform:s=>({data:{factors:s},error:null})});return{data:a,error:r}}catch(a){if(W(a))return{data:null,error:a};throw a}}async _deleteFactor(t){ta(t.userId),ta(t.id);try{return{data:await ne(this.fetch,"DELETE",`${this.url}/admin/users/${t.userId}/factors/${t.id}`,{headers:this.headers}),error:null}}catch(a){if(W(a))return{data:null,error:a};throw a}}async _listOAuthClients(t){var a,r,s,l,u,d,h;try{const y={nextPage:null,lastPage:0,total:0},z=await ne(this.fetch,"GET",`${this.url}/admin/oauth/clients`,{headers:this.headers,noResolveJson:!0,query:{page:(r=(a=t?.page)===null||a===void 0?void 0:a.toString())!==null&&r!==void 0?r:"",per_page:(l=(s=t?.perPage)===null||s===void 0?void 0:s.toString())!==null&&l!==void 0?l:""},xform:cg});if(z.error)throw z.error;const m=await z.json(),g=(u=z.headers.get("x-total-count"))!==null&&u!==void 0?u:0,b=(h=(d=z.headers.get("link"))===null||d===void 0?void 0:d.split(","))!==null&&h!==void 0?h:[];return b.length>0&&(b.forEach(v=>{const j=parseInt(v.split(";")[0].split("=")[1].substring(0,1)),_=JSON.parse(v.split(";")[1].split("=")[1]);y[`${_}Page`]=j}),y.total=parseInt(g)),{data:Object.assign(Object.assign({},m),y),error:null}}catch(y){if(W(y))return{data:{clients:[]},error:y};throw y}}async _createOAuthClient(t){try{return await ne(this.fetch,"POST",`${this.url}/admin/oauth/clients`,{body:t,headers:this.headers,xform:a=>({data:a,error:null})})}catch(a){if(W(a))return{data:null,error:a};throw a}}async _getOAuthClient(t){try{const a=this._encodePathSegment(t);return await ne(this.fetch,"GET",`${this.url}/admin/oauth/clients/${a}`,{headers:this.headers,xform:r=>({data:r,error:null})})}catch(a){if(W(a))return{data:null,error:a};throw a}}async _updateOAuthClient(t,a){try{const r=this._encodePathSegment(t);return await ne(this.fetch,"PUT",`${this.url}/admin/oauth/clients/${r}`,{body:a,headers:this.headers,xform:s=>({data:s,error:null})})}catch(r){if(W(r))return{data:null,error:r};throw r}}async _deleteOAuthClient(t){try{const a=this._encodePathSegment(t);return await ne(this.fetch,"DELETE",`${this.url}/admin/oauth/clients/${a}`,{headers:this.headers,noResolveJson:!0}),{data:null,error:null}}catch(a){if(W(a))return{data:null,error:a};throw a}}async _regenerateOAuthClientSecret(t){try{const a=this._encodePathSegment(t);return await ne(this.fetch,"POST",`${this.url}/admin/oauth/clients/${a}/regenerate_secret`,{headers:this.headers,xform:r=>({data:r,error:null})})}catch(a){if(W(a))return{data:null,error:a};throw a}}async _listCustomProviders(t){try{const a={};return t?.type&&(a.type=t.type),await ne(this.fetch,"GET",`${this.url}/admin/custom-providers`,{headers:this.headers,query:a,xform:r=>{var s;return{data:{providers:(s=r?.providers)!==null&&s!==void 0?s:[]},error:null}}})}catch(a){if(W(a))return{data:{providers:[]},error:a};throw a}}async _createCustomProvider(t){try{return await ne(this.fetch,"POST",`${this.url}/admin/custom-providers`,{body:t,headers:this.headers,xform:a=>({data:a,error:null})})}catch(a){if(W(a))return{data:null,error:a};throw a}}async _getCustomProvider(t){try{const a=this._encodePathSegment(t);return await ne(this.fetch,"GET",`${this.url}/admin/custom-providers/${a}`,{headers:this.headers,xform:r=>({data:r,error:null})})}catch(a){if(W(a))return{data:null,error:a};throw a}}async _updateCustomProvider(t,a){try{const r=this._encodePathSegment(t);return await ne(this.fetch,"PUT",`${this.url}/admin/custom-providers/${r}`,{body:a,headers:this.headers,xform:s=>({data:s,error:null})})}catch(r){if(W(r))return{data:null,error:r};throw r}}async _deleteCustomProvider(t){try{const a=this._encodePathSegment(t);return await ne(this.fetch,"DELETE",`${this.url}/admin/custom-providers/${a}`,{headers:this.headers,noResolveJson:!0}),{data:null,error:null}}catch(a){if(W(a))return{data:null,error:a};throw a}}async _adminListPasskeys(t){mn(this.experimental),ta(t.userId);try{return await ne(this.fetch,"GET",`${this.url}/admin/users/${t.userId}/passkeys`,{headers:this.headers,xform:a=>({data:a,error:null})})}catch(a){if(W(a))return{data:null,error:a};throw a}}async _adminDeletePasskey(t){mn(this.experimental),ta(t.userId),ta(t.passkeyId);
40try{return await ne(this.fetch,"DELETE",`${this.url}/admin/users/${t.userId}/passkeys/${t.passkeyId}`,{headers:this.headers,noResolveJson:!0}),{data:null,error:null}}catch(a){if(W(a))return{data:null,error:a};throw a}}}function lg(e={}){return{getItem:t=>e[t]||null,setItem:(t,a)=>{e[t]=a},removeItem:t=>{delete e[t]}}}const On={debug:!!(globalThis&&Gk()&&globalThis.localStorage&&globalThis.localStorage.getItem("supabase.gotrue-js.locks.debug")==="true")};class Fk extends Error{constructor(t){super(t),this.isAcquireTimeout=!0}}class ug extends Fk{}async function MO(e,t,a){On.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquire lock",e,t);const r=new globalThis.AbortController;let s;t>0&&(s=setTimeout(()=>{r.abort(),On.debug&&console.log("@supabase/gotrue-js: navigatorLock acquire timed out",e)},t)),await Promise.resolve();try{return await globalThis.navigator.locks.request(e,t===0?{mode:"exclusive",ifAvailable:!0}:{mode:"exclusive",signal:r.signal},async l=>{if(l){clearTimeout(s),On.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquired",e,l.name);try{return await a()}finally{On.debug&&console.log("@supabase/gotrue-js: navigatorLock: released",e,l.name)}}else{if(t===0)throw On.debug&&console.log("@supabase/gotrue-js: navigatorLock: not immediately available",e),new ug(`Acquiring an exclusive Navigator LockManager lock "${e}" immediately failed`);if(On.debug)try{const u=await globalThis.navigator.locks.query();console.log("@supabase/gotrue-js: Navigator LockManager state",JSON.stringify(u,null,"  "))}catch(u){console.warn("@supabase/gotrue-js: Error when querying Navigator LockManager state",u)}return console.warn("@supabase/gotrue-js: Navigator LockManager returned a null lock when using #request without ifAvailable set to true, it appears this browser is not following the LockManager spec https://developer.mozilla.org/en-US/docs/Web/API/LockManager/request"),clearTimeout(s),await a()}})}catch(l){if(t>0&&clearTimeout(s),l!==null&&typeof l=="object"&&"name"in l&&l.name==="AbortError"&&t>0){if(r.signal.aborted)return On.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquire timeout, recovering by stealing lock",e),console.warn(`@supabase/gotrue-js: Lock "${e}" was not released within ${t}ms. This may indicate an orphaned lock from a component unmount (e.g., React Strict Mode). Forcefully acquiring the lock to recover.`),await Promise.resolve().then(()=>globalThis.navigator.locks.request(e,{mode:"exclusive",steal:!0},async u=>{if(u){On.debug&&console.log("@supabase/gotrue-js: navigatorLock: recovered (stolen)",e,u.name);try{return await a()}finally{On.debug&&console.log("@supabase/gotrue-js: navigatorLock: released (stolen)",e,u.name)}}else return console.warn("@supabase/gotrue-js: Navigator LockManager returned null lock even with steal: true"),await a()}));throw On.debug&&console.log("@supabase/gotrue-js: navigatorLock: lock was stolen by another request",e),new ug(`Lock "${e}" was released because another request stole it`)}throw l}}function UO(){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 Wk(e){if(!/^0x[a-fA-F0-9]{40}$/.test(e))throw new Error(`@supabase/auth-js: Address "${e}" is invalid.`);return e.toLowerCase()}function $O(e){return parseInt(e,16)}function IO(e){const t=new TextEncoder().encode(e);return"0x"+Array.from(t,r=>r.toString(16).padStart(2,"0")).join("")}function BO(e){var t;const{chainId:a,domain:r,expirationTime:s,issuedAt:l=new Date,nonce:u,notBefore:d,requestId:h,resources:y,scheme:z,uri:m,version:g}=e;{if(!Number.isInteger(a))throw new Error(`@supabase/auth-js: Invalid SIWE message field "chainId". Chain ID must be a EIP-155 chain ID. Provided value: ${a}`);if(!r)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(!m)throw new Error('@supabase/auth-js: Invalid SIWE message field "uri". URI must be provided.');if(g!=="1")throw new Error(`@supabase/auth-js: Invalid SIWE message field "version". Version must be '1'. Provided value: ${g}`);if(!((t=e.statement)===null||t===void 0)&&t.includes(`
41`))throw new Error(`@supabase/auth-js: Invalid SIWE message field "statement". Statement must not include '\\n'. Provided value: ${e.statement}`)}const b=Wk(e.address),v=z?`${z}://${r}`:r,j=e.statement?`${e.statement}
42`:"",_=`${v} wants you to sign in with your Ethereum account:
43${b}
44
45${j}`;
45let T=`URI: ${m}
46Version: ${g}
47Chain ID: ${a}${u?`
48Nonce: ${u}`:""}
49Issued At: ${l.toISOString()}`;if(s&&(T+=`
50Expiration Time: ${s.toISOString()}`),d&&(T+=`
51Not Before: ${d.toISOString()}`),h&&(T+=`
52Request ID: ${h}`),y){let O=`
53Resources:`;for(const R of y){if(!R||typeof R!="string")throw new Error(`@supabase/auth-js: Invalid SIWE message field "resources". Every resource must be a valid string. Provided value: ${R}`);O+=`
54- ${R}`}T+=O}return`${_}
55${T}`}class it extends Error{constructor({message:t,code:a,cause:r,name:s}){var l;super(t,{cause:r}),this.__isWebAuthnError=!0,this.name=(l=s??(r instanceof Error?r.name:void 0))!==null&&l!==void 0?l:"Unknown Error",this.code=a}toJSON(){return{name:this.name,message:this.message,code:this.code}}}class bl extends it{constructor(t,a){super({code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:a,message:t}),this.name="WebAuthnUnknownError",this.originalError=a}}function HO({error:e,options:t}){var a,r,s;const{publicKey:l}=t;if(!l)throw Error("options was missing required publicKey property");if(e.name==="AbortError"){if(t.signal instanceof AbortSignal)return new it({message:"Registration ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:e})}else if(e.name==="ConstraintError"){if(((a=l.authenticatorSelection)===null||a===void 0?void 0:a.requireResidentKey)===!0)return new it({message:"Discoverable credentials were required but no available authenticator supported it",code:"ERROR_AUTHENTICATOR_MISSING_DISCOVERABLE_CREDENTIAL_SUPPORT",cause:e});if(t.mediation==="conditional"&&((r=l.authenticatorSelection)===null||r===void 0?void 0:r.userVerification)==="required")return new it({message:"User verification was required during automatic registration but it could not be performed",code:"ERROR_AUTO_REGISTER_USER_VERIFICATION_FAILURE",cause:e});if(((s=l.authenticatorSelection)===null||s===void 0?void 0:s.userVerification)==="required")return new it({message:"User verification was required but no available authenticator supported it",code:"ERROR_AUTHENTICATOR_MISSING_USER_VERIFICATION_SUPPORT",cause:e})}else{if(e.name==="InvalidStateError")return new it({message:"The authenticator was previously registered",code:"ERROR_AUTHENTICATOR_PREVIOUSLY_REGISTERED",cause:e});if(e.name==="NotAllowedError")return new it({message:e.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e});if(e.name==="NotSupportedError")return l.pubKeyCredParams.filter(d=>d.type==="public-key").length===0?new it({message:'No entry in pubKeyCredParams was of type "public-key"',code:"ERROR_MALFORMED_PUBKEYCREDPARAMS",cause:e}):new it({message:"No available authenticator supported any of the specified pubKeyCredParams algorithms",code:"ERROR_AUTHENTICATOR_NO_SUPPORTED_PUBKEYCREDPARAMS_ALG",cause:e});if(e.name==="SecurityError"){const u=window.location.hostname;if(Xk(u)){if(l.rp.id!==u)return new it({message:`The RP ID "${l.rp.id}" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:e})}else return new it({message:`${window.location.hostname} is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:e})}else if(e.name==="TypeError"){if(l.user.id.byteLength<1||l.user.id.byteLength>64)return new it({message:"User ID was not between 1 and 64 characters",code:"ERROR_INVALID_USER_ID_LENGTH",cause:e})}else if(e.name==="UnknownError")return new it({message:"The authenticator was unable to process the specified options, or could not create a new credential",code:"ERROR_AUTHENTICATOR_GENERAL_ERROR",cause:e})}return new it({message:"a Non-Webauthn related error has occurred",code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e})}function qO({error:e,options:t}){const{publicKey:a}=t;if(!a)throw Error("options was missing required publicKey property");if(e.name==="AbortError"){if(t.signal instanceof AbortSignal)return new it({message:"Authentication ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:e})}else{if(e.name==="NotAllowedError")return new it({message:e.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e});if(e.name==="SecurityError"){const r=window.location.hostname;if(Xk(r)){if(a.rpId!==r)return new it({message:`The RP ID "${a.rpId}
55" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:e})}else return new it({message:`${window.location.hostname} is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:e})}else if(e.name==="UnknownError")return new it({message:"The authenticator was unable to process the specified options, or could not create a new assertion signature",code:"ERROR_AUTHENTICATOR_GENERAL_ERROR",cause:e})}return new it({message:"a Non-Webauthn related error has occurred",code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e})}class KO{createNewAbortSignal(){if(this.controller){const a=new Error("Cancelling existing WebAuthn API call for new one");a.name="AbortError",this.controller.abort(a)}const t=new AbortController;return this.controller=t,t.signal}cancelCeremony(){if(this.controller){const t=new Error("Manually cancelling existing WebAuthn API call");t.name="AbortError",this.controller.abort(t),this.controller=void 0}}}const ah=new KO;function dg(e){if(!e)throw new Error("Credential creation options are required");if(typeof PublicKeyCredential<"u"&&"parseCreationOptionsFromJSON"in PublicKeyCredential&&typeof PublicKeyCredential.parseCreationOptionsFromJSON=="function")return PublicKeyCredential.parseCreationOptionsFromJSON(e);const{challenge:t,user:a,excludeCredentials:r}=e,s=Ml(e,["challenge","user","excludeCredentials"]),l=Br(t).buffer,u=Object.assign(Object.assign({},a),{id:Br(a.id).buffer}),d=Object.assign(Object.assign({},s),{challenge:l,user:u});if(r&&r.length>0){d.excludeCredentials=new Array(r.length);for(let h=0;h<r.length;h++){const y=r[h];d.excludeCredentials[h]=Object.assign(Object.assign({},y),{id:Br(y.id).buffer,type:y.type||"public-key",transports:y.transports})}}return d}function fg(e){if(!e)throw new Error("Credential request options are required");if(typeof PublicKeyCredential<"u"&&"parseRequestOptionsFromJSON"in PublicKeyCredential&&typeof PublicKeyCredential.parseRequestOptionsFromJSON=="function")return PublicKeyCredential.parseRequestOptionsFromJSON(e);const{challenge:t,allowCredentials:a}=e,r=Ml(e,["challenge","allowCredentials"]),s=Br(t).buffer,l=Object.assign(Object.assign({},r),{challenge:s});if(a&&a.length>0){l.allowCredentials=new Array(a.length);for(let u=0;u<a.length;u++){const d=a[u];l.allowCredentials[u]=Object.assign(Object.assign({},d),{id:Br(d.id).buffer,type:d.type||"public-key",transports:d.transports})}}return l}function hg(e){var t;if("toJSON"in e&&typeof e.toJSON=="function")return e.toJSON();const a=e;return{id:e.id,rawId:e.id,response:{attestationObject:Ti(new Uint8Array(e.response.attestationObject)),clientDataJSON:Ti(new Uint8Array(e.response.clientDataJSON))},type:"public-key",clientExtensionResults:e.getClientExtensionResults(),authenticatorAttachment:(t=a.authenticatorAttachment)!==null&&t!==void 0?t:void 0}}function pg(e){var t;if("toJSON"in e&&typeof e.toJSON=="function")return e.toJSON();const a=e,r=e.getClientExtensionResults(),s=e.response;return{id:e.id,rawId:e.id,response:{authenticatorData:Ti(new Uint8Array(s.authenticatorData)),clientDataJSON:Ti(new Uint8Array(s.clientDataJSON)),signature:Ti(new Uint8Array(s.signature)),userHandle:s.userHandle?Ti(new Uint8Array(s.userHandle)):void 0},type:"public-key",clientExtensionResults:r,authenticatorAttachment:(t=a.authenticatorAttachment)!==null&&t!==void 0?t:void 0}}function Xk(e){return e==="localhost"||/^([a-z0-9]+(-[a-z0-9]+)*\.)+[a-z]{2,}$/i.test(e)}function kl(){var e,t;return!!(kt()&&"PublicKeyCredential"in window&&window.PublicKeyCredential&&"credentials"in navigator&&typeof((e=navigator?.credentials)===null||e===void 0?void 0:e.create)=="function"&&typeof((t=navigator?.credentials)===null||t===void 0?void 0:t.get)=="function")}async function Qk(e){try{const t=await navigator.credentials.create(e);return t?t instanceof PublicKeyCredential?{data:t,error:null}:{data:null,error:new bl("Browser returned unexpected credential type",t)}:{data:null,error:new bl("Empty credential response",t)}}catch(t){return{data:null,error:HO({error:t,options:e})}}}async function ev(e){try{const t=await navigator.credentials.get(e);return t?t instanceof PublicKeyCredential?{data:t,error:null}:{data:null,error:new bl("Browser returned unexpected credential type",t)}:{data:null,error:new bl("Empty credential response",t)}}
55catch(t){return{data:null,error:qO({error:t,options:e})}}}const JO={hints:["security-key"],authenticatorSelection:{authenticatorAttachment:"cross-platform",requireResidentKey:!1,userVerification:"preferred",residentKey:"discouraged"},attestation:"direct"},VO={userVerification:"preferred",hints:["security-key"],attestation:"direct"};function vl(...e){const t=s=>s!==null&&typeof s=="object"&&!Array.isArray(s),a=s=>s instanceof ArrayBuffer||ArrayBuffer.isView(s),r={};for(const s of e)if(s)for(const l in s){const u=s[l];if(u!==void 0)if(Array.isArray(u))r[l]=u;else if(a(u))r[l]=u;else if(t(u)){const d=r[l];t(d)?r[l]=vl(d,u):r[l]=vl(u)}else r[l]=u}return r}function ZO(e,t){return vl(JO,e,t||{})}function GO(e,t){return vl(VO,e,t||{})}class YO{constructor(t){this.client=t,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(t){return this.client.mfa.enroll(Object.assign(Object.assign({},t),{factorType:"webauthn"}))}async _challenge({factorId:t,webauthn:a,friendlyName:r,signal:s},l){var u;try{const{data:d,error:h}=await this.client.mfa.challenge({factorId:t,webauthn:a});if(!d)return{data:null,error:h};const y=s??ah.createNewAbortSignal();if(d.webauthn.type==="create"){const{user:z}=d.webauthn.credential_options.publicKey;if(!z.name){const m=r;if(m)z.name=`${z.id}:${m}`;else{const b=(await this.client.getUser()).data.user,v=((u=b?.user_metadata)===null||u===void 0?void 0:u.name)||b?.email||b?.id||"User";z.name=`${z.id}:${v}`}}z.displayName||(z.displayName=z.name)}switch(d.webauthn.type){case"create":{const z=ZO(d.webauthn.credential_options.publicKey,l?.create),{data:m,error:g}=await Qk({publicKey:z,signal:y});return m?{data:{factorId:t,challengeId:d.id,webauthn:{type:d.webauthn.type,credential_response:m}},error:null}:{data:null,error:g}}case"request":{const z=GO(d.webauthn.credential_options.publicKey,l?.request),{data:m,error:g}=await ev(Object.assign(Object.assign({},d.webauthn.credential_options),{publicKey:z,signal:y}));return m?{data:{factorId:t,challengeId:d.id,webauthn:{type:d.webauthn.type,credential_response:m}},error:null}:{data:null,error:g}}}}catch(d){return W(d)?{data:null,error:d}:{data:null,error:new gn("Unexpected error in challenge",d)}}}async _verify({challengeId:t,factorId:a,webauthn:r}){return this.client.mfa.verify({factorId:a,challengeId:t,webauthn:r})}async _authenticate({factorId:t,webauthn:{rpId:a=typeof window<"u"?window.location.hostname:void 0,rpOrigins:r=typeof window<"u"?[window.location.origin]:void 0,signal:s}={}},l){if(!a)return{data:null,error:new qr("rpId is required for WebAuthn authentication")};try{if(!kl())return{data:null,error:new gn("Browser does not support WebAuthn",null)};const{data:u,error:d}=await this.challenge({factorId:t,webauthn:{rpId:a,rpOrigins:r},signal:s},{request:l});if(!u)return{data:null,error:d};const{webauthn:h}=u;return this._verify({factorId:t,challengeId:u.challengeId,webauthn:{type:h.type,rpId:a,rpOrigins:r,credential_response:h.credential_response}})}catch(u){return W(u)?{data:null,error:u}:{data:null,error:new gn("Unexpected error in authenticate",u)}}}async _register({friendlyName:t,webauthn:{rpId:a=typeof window<"u"?window.location.hostname:void 0,rpOrigins:r=typeof window<"u"?[window.location.origin]:void 0,signal:s}={}},l){if(!a)return{data:null,error:new qr("rpId is required for WebAuthn registration")};try{if(!kl())return{data:null,error:new gn("Browser does not support WebAuthn",null)};const{data:u,error:d}=await this._enroll({friendlyName:t});if(!u)return await this.client.mfa.listFactors().then(z=>{var m;return(m=z.data)===null||m===void 0?void 0:m.all.find(g=>g.factor_type==="webauthn"&&g.friendly_name===t&&g.status!=="unverified")}).then(z=>z?this.client.mfa.unenroll({factorId:z?.id}):void 0),{data:null,error:d};const{data:h,error:y}=await this._challenge({factorId:u.id,friendlyName:u.friendly_name,webauthn:{rpId:a,rpOrigins:r},signal:s},{create:l});return h?this._verify({factorId:u.id,challengeId:h.challengeId,webauthn:{rpId:a,rpOrigins:r,type:h.webauthn.type,credential_response:h.webauthn.credential_response}}):{data:null,error:y}}catch(u){return W(u)?{data:null,error:u}:{data:null,error:new gn("Unexpected error in register",u)}}}}UO();const FO={url:eO,storageKey:tO,autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,headers:nO,flowType:"implicit",debug:!1,hasCustomAuthorizationHeader:!1,throwOnError:!1,lockAcquireTimeout:5e3,skipAutoInitialize:!1,experimental:{}};async function yg(e,t,a){return await a()}const Er={};class fs{get jwks(){var t,a;return(a=(t=Er[this.storageKey])===null||t===void 0?void 0:t.jwks)!==null&&a!==void 0?a:{keys:[]}}set jwks(t){Er[this.storageKey]=Object.assign(Object.assign({},Er[this.storageKey]),{jwks:t})}get jwks_cached_at(){var t,a;return(a=(t=Er[this.storageKey])===null||t===void 0?void 0:t.cachedAt)!==null&&a!==void 0?a:Number.MIN_SAFE_INTEGER}set jwks_cached_at(t){Er[this.storageKey]=Object.assign(Object.assign({},Er[this.storageKey]),{cachedAt:t})}constructor(t){var a,r,s,l;this.userStorage=null,this.memoryStorage=null,this.stateChangeEmitters=new Map,this.autoRefreshTicker=null,this.autoRefreshTickTimeout=null,this.visibilityChangedCallback=null,this.refreshingDeferred=null,this.initializePromise=null,this.detectSessionInUrl=!0,this.hasCustomAuthorizationHeader=!1,this.suppressGetSessionWarning=!1,this.lockAcquired=!1,this.pendingInLock=[],this.broadcastChannel=null,this.logger=console.log;const u=Object.assign(Object.assign({},FO),t);if(this.storageKey=u.storageKey,this.instanceID=(a=fs.nextInstanceID[this.storageKey])!==null&&a!==void 0?a:0,fs.nextInstanceID[this.storageKey]=this.instanceID+1,this.logDebugMessages=!!u.debug,typeof u.debug=="function"&&(this.logger=u.debug),this.instanceID>0&&kt()){const d=`${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(d),this.logDebugMessages&&console.trace(d)}if(this.persistSession=u.persistSession,this.autoRefreshToken=u.autoRefreshToken,this.experimental=(r=u.experimental)!==null&&r!==void 0?r:{},this.admin=new LO({url:u.url,headers:u.headers,fetch:u.fetch,experimental:this.experimental}),this.url=u.url,this.headers=u.headers,this.fetch=Yk(u.fetch),this.lock=u.lock||yg,this.detectSessionInUrl=u.detectSessionInUrl,this.flowType=u.flowType,this.hasCustomAuthorizationHeader=u.hasCu
55stomAuthorizationHeader,this.throwOnError=u.throwOnError,this.lockAcquireTimeout=u.lockAcquireTimeout,u.lock?this.lock=u.lock:this.persistSession&&kt()&&(!((s=globalThis?.navigator)===null||s===void 0)&&s.locks)?this.lock=MO:this.lock=yg,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 YO(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?(u.storage?this.storage=u.storage:Gk()?this.storage=globalThis.localStorage:(this.memoryStorage={},this.storage=lg(this.memoryStorage)),u.userStorage&&(this.userStorage=u.userStorage)):(this.memoryStorage={},this.storage=lg(this.memoryStorage)),kt()&&globalThis.BroadcastChannel&&this.persistSession&&this.storageKey){try{this.broadcastChannel=new globalThis.BroadcastChannel(this.storageKey)}catch(d){console.error("Failed to create a new BroadcastChannel, multi-tab state changes will not be available",d)}(l=this.broadcastChannel)===null||l===void 0||l.addEventListener("message",async d=>{this._debug("received broadcast notification from other tab or client",d);try{await this._notifyAllSubscribers(d.data.event,d.data.session,!1)}catch(h){this._debug("#broadcastChannel","error",h)}})}u.skipAutoInitialize||this.initialize().catch(d=>{this._debug("#initialize()","error",d)})}isThrowOnErrorEnabled(){return this.throwOnError}_returnResult(t){if(this.throwOnError&&t&&t.error)throw t.error;return t}_logPrefix(){return`GoTrueClient@${this.storageKey}:${this.instanceID} (${Jk}) ${new Date().toISOString()}`}_debug(...t){return this.logDebugMessages&&this.logger(this._logPrefix(),...t),this}async initialize(){return this.initializePromise?await this.initializePromise:(this.initializePromise=(async()=>await this._acquireLock(this.lockAcquireTimeout,async()=>await this._initialize()))(),await this.initializePromise)}async _initialize(){var t;try{let a={},r="none";if(kt()&&(a=mO(window.location.href),this._isImplicitGrantCallback(a)?r="implicit":await this._isPKCECallback(a)&&(r="pkce")),kt()&&this.detectSessionInUrl&&r!=="none"){const{data:s,error:l}=await this._getSessionFromURL(a,r);if(l){if(this._debug("#_initialize()","error detecting session from URL",l),sO(l)){const h=(t=l.details)===null||t===void 0?void 0:t.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(a){return W(a)?this._returnResult({error:a}):this._returnResult({error:new gn("Unexpected error during initialization",a)})}finally{await this._handleVisibilityChange(),this._debug("#_initialize()","end")}}async signInAnonymously(t){var a,r,s;try{const l=await ne(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{data:(r=(a=t?.options)===null||a===void 0?void 0:a.data)!==null&&r!==void 0?r:{},gotrue_meta_security:{captcha_token:(s=t?.options)===null||s===void 0?void 0:s.captchaToken}},xform:un}),{data:u,error:d}=l;if(d||!u)return this._returnResult({data:{user:null,session:null},error:d});const h=u.session,y=u.user;return u.session&&(await this._saveSession(u.session),await this._notifyAllSubscribers("SIGNED_IN",h)),this._returnResult({data:{user:y,session:h},error:null})}catch(l){if(W(l))return this._returnResult({data:{user:null,session:null},error:l});throw l}}async signUp(t){var a,r,s;try{let l;if("email"in t){const{email:z,password:m,options:g}=t;let b=null,v=null;this.flowType==="pkce"&&([b,v]=await Tr(this.storage,this.storageKey)),l=await ne(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,redirectTo:g?.emailRedirectTo,body:{email:z,password:m,data:(a=g?.data)!==null&&a!==void 0?a:{},gotrue_meta_security:{captcha_token:g?.captchaToken},code_challenge:b,code_challenge_method:v},xform:un})}else if("phone"in t){const{phone:z,password:m,options:g}=t;l=await ne(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{phone:z,password:m,data:(r=g?.data)!==null&&r!==void 0?r:{},channel:(s=g?.channel)!==null&&s!==void 0?s:"sms",gotrue_meta_security:{captcha_token:g?.captchaToken}},xform:un})}else throw new Xc("You must provide either an email or phone number and a password");const{data:u,error:d}=l;if(d||!u)return await bt(this.storage,`${this.storageKey}-code-verifier`),this._returnResult({data:{user:null,session:null},error:d});const h=u.session,y=u.user;return u.session&&(await this._saveSession(u.session),await this._notifyAllSubscribers("SIGNED_IN",h)),this._returnResult({data:{user:y,session:h},error:null})}catch(l){if(await bt(this.storage,`${this.storageKey}-code-verifier`),W(l))return this._returnResult({data:{user:null,session:null},error:l});throw l}}async signInWithPassword(t){try{let a;if("email"in t){const{email:l,password:u,options:d}=t;a=await ne(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:sg})}else if("phone"in t){const{phone:l,password:u,options:d}=t;a=await ne(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:sg})}else throw new Xc("You must provide either an email or phone number and a password");const{data:r,error:s}=a;if(s)return this._returnResult({data:{user:null,session:null},error:s});if(!r||!r.session||!r.user){const l=new Sr;return this._returnResult({data:{user:null,session:null},error:l})}return r.session&&(await this._saveSession(r.session),await this._notifyAllSubscribers("SIGNED_IN",r.session)),this._returnResult({data:Object.assign({user:r.user,session:r.session},r.weak_password?{weakPassword:r.weak_password}:null),error:s})}catch(a){if(W(a))return this._returnResult({data:{user:null,session:null},error:a});throw a}}async signInWithOAuth(t){var a,r,s,l;return await this._handleProviderSignIn(t.provider,{redirectTo:(a=t.options)===null||a===void 0?void 0:a.redirectTo,scopes:(r=t.options)===null||r===void 0?void 0:r.scopes,queryParams:(s=t.options)===null||s===void 0?void 0:s.queryParams,skipBrowserRedirect:(l=t.options)===null||l===void 0?void 0:l.skipBrowserRedirect})}async exchangeCodeForSession(t){return await this.initializePromise,this._acquireLock(this.lockAcquireTimeout,async()=>this._exchangeCodeForSession(t))}async signInWithWeb3(t){const{chain:a}=t;switch(a){case"ethereum":return await this.signInWithEthereum(t);case"solana":return await this.signInWithSolana(t);default:throw new Error(`@supabase/auth-js: Unsupported chain "${a}"`)}}async signInWithEthereum(t){var a,r,s,l,u,d,h,y,z,m,g;let b,v;if("message"in t)b=t.message,v=t.signature;else{const{chain:j,wallet:_,statement:T,options:O}=t;let R;if(kt())if(typeof _=="object")R=_;else{const Q=window;if("ethereum"in Q&&typeof Q.ethereum=="object"&&"request"in Q.ethereum&&typeof Q.ethereum.request=="function")R=Q.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 _!="object"||!O?.url)throw new Error("@supabase/auth-js: Both wallet and url must be specified in non-browser environments.");R=_}const M=new URL((a=O?.url)!==null&&a!==void 0?a:window.location.href),Z=await R.request({method:"eth_requestAccounts"}).then(Q=>Q).catch(()=>{throw new Error("@supabase/auth-js: Wallet method eth_requestAccounts is missing or invalid")});if(!Z||Z.length===0)throw new Error("@supabase/auth-js: No accounts available. Please ensure the wallet is connected.");const I=Wk(Z[0]);let N=(r=O?.signInWithEthereum)===null||r===void 0?void 0:r.chainId;if(!N){const Q=await R.request({method:"eth_chainId"});N=$O(Q)}const G={domain:M.host,address:I,statement:T,uri:M.href,version:"1",chainId:N,nonce:(s=O?.signInWithEthereum)===null||s===void 0?void 0:s.nonce,issuedAt:(u=(l=O?.signInWithEthereum)===null||l===void 0?void 0:l.issuedAt)!==null&&u!==void 0?u:new Date,expirationTime:(d=O?.signInWithEthereum)===null||d===void 0?void 0:d.expirationTime,notBefore:(h=O?.signInWithEthereum)===null||h===void 0?void 0:h.notBefore,requestId:(y=O?.signInWithEthereum)===null||y===void 0?void 0:y.requestId,resources:(z=O?.signInWithEthereum)===null||z===void 0?void 0:z.resources};b=BO(G),v=await R.request({method:"personal_sign",params:[IO(b),I]})}try{const{data:j,error:_}=await ne(this.fetch,"POST",`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:"ethereum",message:b,signature:v},!((m=t.options)===null||m===void 0)&&m.captchaToken?{gotrue_meta_security:{captcha_token:(g=t.options)===null||g===void 0?void 0:g.captchaToken}}:null),xform:un});if(_)throw _;if(!j||!j.session||!j.user){const T=new Sr;return this._returnResult({data:{user:null,session:null},error:T})}return j.session&&(await this._saveSession(j.session),await this._notifyAllSubscribers("SIGNED_IN",j.session)),this._returnResult({data:Object.assign({},j),error:_})}catch(j){if(W(j))return this._returnResult({data:{user:null,session:null},error:j});throw j}}async signInWithSolana(t){var a,r,s,l,u,d,h,y,z,m,g,b;let v,j;if("message"in t)v=t.message,j=t.signature;else{const{chain:_,wallet:T,statement:O,options:R}=t;let M;if(kt())if(typeof T=="object")M=T;else{const I=window;if("solana"in I&&typeof I.solana=="object"&&("signIn"in I.solana&&typeof I.solana.signIn=="function"||"signMessage"in I.solana&&typeof I.solana.signMessage=="function"))M=I.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"||!R?.url)throw new Error("@supabase/auth-js: Both wallet and url must be specified in non-browser environments.");M=T}const Z=new URL((a=R?.url)!==null&&a!==void 0?a:window.location.href);if("signIn"in M&&M.signIn){const I=await M.signIn(Object.assign(Object.assign(Object.assign({issuedAt:new Date().toISOString()},R?.signInWithSolana),{version:"1",domain:Z.host,uri:Z.href}),O?{statement:O}:null));let N;if(Array.isArray(I)&&I[0]&&typeof I[0]=="object")N=I[0];else if(I&&typeof I=="object"&&"signedMessage"in I&&"signature"in I)N=I;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)v=typeof N.signedMessage=="string"?N.signedMessage:new TextDecoder().decode(N.signedMessage),j=N.signature;else throw new Error("@supabase/auth-js: Wallet method signIn() API returned object without signedMessage and signature fields")}else{if(!("signMessage"in M)||typeof M.signMessage!="function"||!("publicKey"in M)||typeof M!="object"||!M.publicKey||!("toBase58"in M.publicKey)||typeof M.publicKey.toBase58!="function")throw new Error("@supabase/auth-js: Wallet does not have a compatible signMessage() and publicKey.toBase58() API");v=[`${Z.host} wants you to sign in with your Solana account:`,M.publicKey.toBase58(),...O?["",O,""]:[""],"Version: 1",`URI: ${Z.href}`,`Issued At: ${(s=(r=R?.signInWithSolana)===null||r===void 0?void 0:r.issuedAt)!==null&&s!==void 0?s:new Date().toISOString()}`,...!((l=R?.signInWithSolana)===null||l===void 0)&&l.notBefore?[`Not Before: ${R.signInWithSolana.notBefore}`]:[],...!((u=R?.signInWithSolana)===null||u===void 0)&&u.expirationTime?[`Expiration Time: ${R.signInWithSolana.expirationTime}`]:[],...!((d=R?.signInWithSolana)===null||d===void 0)&&d.chainId?[`Chain ID: ${R.signInWithSolana.chainId}`]:[],...!((h=R?.signInWithSolana)===null||h===void 0)&&h.nonce?[`Nonce: ${R.signInWithSolana.nonce}`]:[],...!((y=R?.signInWithSolana)===null||y===void 0)&&y.requestId?[`Request ID: ${R.signInWithSolana.requestId}`]:[],...!((m=(z=R?.signInWithSolana)===null||z===void 0?void 0:z.resources)===null||m===void 0)&&m.length?["Resources",...R.signInWithSolana.resources.map(N=>`- ${N}`)]:[]].join(`
56`);const I=await M.signMessage(new TextEncoder().encode(v),"utf8");if(!I||!(I instanceof Uint8Array))throw new Error("@supabase/auth-js: Wallet signMessage() API returned an recognized value");j=I}}try{const{data:_,error:T}=await ne(this.fetch,"POST",`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:"solana",message:v,signature:Ti(j)},!((g=t.options)===null||g===void 0)&&g.captchaToken?{gotrue_meta_security:{captcha_token:(b=t.options)===null||b===void 0?void 0:b.captchaToken}}:null),xform:un});if(T)throw T;if(!_||!_.session||!_.user){const O=new Sr;return this._returnResult({data:{user:null,session:null},error:O})}return _.session&&(await this._saveSession(_.session),await this._notifyAllSubscribers("SIGNED_IN",_.session)),this._returnResult({data:Object.assign({},_),error:T})}catch(_){if(W(_))return this._returnResult({data:{user:null,session:null},error:_});throw _}}async _exchangeCodeForSession(t){const a=await vi(this.storage,`${this.storageKey}-code-verifier`),[r,s]=(a??"").split("/");try{if(!r&&this.flowType==="pkce")throw new cO;const{data:l,error:u}=await ne(this.fetch,"POST",`${this.url}/token?grant_type=pkce`,{headers:this.headers,body:{auth_code:t,code_verifier:r},xform:un});if(await bt(this.storage,`${this.storageKey}-code-verifier`),u)throw u;if(!l||!l.session||!l.user){const d=new Sr;return this._returnResult({data:{user:null,session:null,redirectType:null},error:d})}return l.session&&(await this._saveSession(l.session),await this._notifyAllSubscribers(s==="recovery"?"PASSWORD_RECOVERY":"SIGNED_IN",l.session)),this._returnResult({data:Object.assign(Object.assign({},l),{redirectType:s??null}),error:u})}catch(l){if(await bt(this.storage,`${this.storageKey}-code-verifier`),W(l))return this._returnResult({data:{user:null,session:null,redirectType:null},error:l});throw l}}async signInWithIdToken(t){try{const{options:a,provider:r,token:s,access_token:l,nonce:u}=t,d=await ne(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,body:{provider:r,id_token:s,access_token:l,nonce:u,gotrue_meta_security:{captcha_token:a?.captchaToken}},xform:un}),{data:h,error:y}=d;if(y)return this._returnResult({data:{user:null,session:null},error:y});if(!h||!h.session||!h.user){const z=new Sr;return this._returnResult({data:{user:null,session:null},error:z})}return h.session&&(await this._saveSession(h.session),await this._notifyAllSubscribers("SIGNED_IN",h.session)),this._returnResult({data:h,error:y})}catch(a){if(W(a))return this._returnResult({data:{user:null,session:null},error:a});throw a}}async signInWithOtp(t){var a,r,s,l,u;try{if("email"in t){const{email:d,options:h}=t;let y=null,z=null;this.flowType==="pkce"&&([y,z]=await Tr(this.storage,this.storageKey));const{error:m}=await ne(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{email:d,da
56ta:(a=h?.data)!==null&&a!==void 0?a:{},create_user:(r=h?.shouldCreateUser)!==null&&r!==void 0?r:!0,gotrue_meta_security:{captcha_token:h?.captchaToken},code_challenge:y,code_challenge_method:z},redirectTo:h?.emailRedirectTo});return this._returnResult({data:{user:null,session:null},error:m})}if("phone"in t){const{phone:d,options:h}=t,{data:y,error:z}=await ne(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{phone:d,data:(s=h?.data)!==null&&s!==void 0?s:{},create_user:(l=h?.shouldCreateUser)!==null&&l!==void 0?l:!0,gotrue_meta_security:{captcha_token:h?.captchaToken},channel:(u=h?.channel)!==null&&u!==void 0?u:"sms"}});return this._returnResult({data:{user:null,session:null,messageId:y?.message_id},error:z})}throw new Xc("You must provide either an email or phone number.")}catch(d){if(await bt(this.storage,`${this.storageKey}-code-verifier`),W(d))return this._returnResult({data:{user:null,session:null},error:d});throw d}}async verifyOtp(t){var a,r;try{let s,l;"options"in t&&(s=(a=t.options)===null||a===void 0?void 0:a.redirectTo,l=(r=t.options)===null||r===void 0?void 0:r.captchaToken);const{data:u,error:d}=await ne(this.fetch,"POST",`${this.url}/verify`,{headers:this.headers,body:Object.assign(Object.assign({},t),{gotrue_meta_security:{captcha_token:l}}),redirectTo:s,xform:un});if(d)throw d;if(!u)throw new Error("An error occurred on token verification.");const h=u.session,y=u.user;return h?.access_token&&(await this._saveSession(h),await this._notifyAllSubscribers(t.type=="recovery"?"PASSWORD_RECOVERY":"SIGNED_IN",h)),this._returnResult({data:{user:y,session:h},error:null})}catch(s){if(W(s))return this._returnResult({data:{user:null,session:null},error:s});throw s}}async signInWithSSO(t){var a,r,s,l,u;try{let d=null,h=null;this.flowType==="pkce"&&([d,h]=await Tr(this.storage,this.storageKey));const y=await ne(this.fetch,"POST",`${this.url}/sso`,{body:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},"providerId"in t?{provider_id:t.providerId}:null),"domain"in t?{domain:t.domain}:null),{redirect_to:(r=(a=t.options)===null||a===void 0?void 0:a.redirectTo)!==null&&r!==void 0?r:void 0}),!((s=t?.options)===null||s===void 0)&&s.captchaToken?{gotrue_meta_security:{captcha_token:t.options.captchaToken}}:null),{skip_http_redirect:!0,code_challenge:d,code_challenge_method:h}),headers:this.headers,xform:xO});return!((l=y.data)===null||l===void 0)&&l.url&&kt()&&!(!((u=t.options)===null||u===void 0)&&u.skipBrowserRedirect)&&window.location.assign(y.data.url),this._returnResult(y)}catch(d){if(await bt(this.storage,`${this.storageKey}-code-verifier`),W(d))return this._returnResult({data:null,error:d});throw d}}async reauthenticate(){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._reauthenticate())}async _reauthenticate(){try{return await this._useSession(async t=>{const{data:{session:a},error:r}=t;if(r)throw r;if(!a)throw new dt;const{error:s}=await ne(this.fetch,"GET",`${this.url}/reauthenticate`,{headers:this.headers,jwt:a.access_token});return this._returnResult({data:{user:null,session:null},error:s})})}catch(t){if(W(t))return this._returnResult({data:{user:null,session:null},error:t});throw t}}async resend(t){try{const a=`${this.url}/resend`;if("email"in t){const{email:r,type:s,options:l}=t,{error:u}=await ne(this.fetch,"POST",a,{headers:this.headers,body:{email:r,type:s,gotrue_meta_security:{captcha_token:l?.captchaToken}},redirectTo:l?.emailRedirectTo});return this._returnResult({data:{user:null,session:null},error:u})}else if("phone"in t){const{phone:r,type:s,options:l}=t,{data:u,error:d}=await ne(this.fetch,"POST",a,{headers:this.headers,body:{phone:r,type:s,gotrue_meta_security:{captcha_token:l?.captchaToken}}});return this._returnResult({data:{user:null,session:null,messageId:u?.message_id},error:d})}throw new Xc("You must provide either an email or phone number and a type")}catch(a){if(W(a))return this._returnResult({data:{user:null,session:null},error:a});throw a}}async getSession(){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>this._useSession(async a=>a))}async _acquireLock(t,a){this._debug("#_acquireLock","begin",t);try{if(this.lockAcquired){const r=this.pendingInLock.length?this.pendingInLock[this.pendingInLock.length-1]:Promise.resolve(),s=(async()=>(await r,await a()))();return this.pendingInLock.push((async()=>{try{await s}catch{}})()),s}return await this.lock(`lock:${this.storageKey}`,t,async()=>{this._debug("#_acquireLock","lock acquired for storage key",this.storageKey);try{this.lockAcquired=!0;const r=a();for(this.pendingInLock.push((async()=>{try{await r}catch{}})()),await r;this.pendingInLock.length;){const s=[...this.pendingInLock];await Promise.all(s),this.pendingInLock.splice(0,s.length)}return await r}finally{this._debug("#_acquireLock","lock released for storage key",this.storageKey),this.lockAcquired=!1}})}finally{this._debug("#_acquireLock","end")}}async _useSession(t){this._debug("#_useSession","begin");try{const a=await this.__loadSession();return await t(a)}finally{this._debug("#_useSession","end")}}async __loadSession(){this._debug("#__loadSession()","begin"),this.lockAcquired||this._debug("#__loadSession()","used outside of an acquired lock!",new Error().stack);try{let t=null;const a=await vi(this.storage,this.storageKey);if(this._debug("#getSession()","session from storage",a),a!==null&&(this._isValidSession(a)?t=a:(this._debug("#getSession()","session from storage is not val
56id"),await this._removeSession())),!t)return{data:{session:null},error:null};const r=t.expires_at?t.expires_at*1e3-Date.now()<Sf:!1;if(this._debug("#__loadSession()",`session has${r?"":" not"} expired`,"expires_at",t.expires_at),!r){if(this.userStorage){const u=await vi(this.userStorage,this.storageKey+"-user");u?.user?t.user=u.user:t.user=Ef()}if(this.storage.isServer&&t.user&&!t.user.__isUserNotAvailableProxy){const u={value:this.suppressGetSessionWarning};t.user=RO(t.user,u),u.value&&(this.suppressGetSessionWarning=!0)}return{data:{session:t},error:null}}const{data:s,error:l}=await this._callRefreshToken(t.refresh_token);return l?this._returnResult({data:{session:null},error:l}):this._returnResult({data:{session:s},error:null})}finally{this._debug("#__loadSession()","end")}}async getUser(t){if(t)return await this._getUser(t);await this.initializePromise;const a=await this._acquireLock(this.lockAcquireTimeout,async()=>await this._getUser());return a.data.user&&(this.suppressGetSessionWarning=!0),a}async _getUser(t){try{return t?await ne(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:t,xform:qa}):await this._useSession(async a=>{var r,s,l;const{data:u,error:d}=a;if(d)throw d;return!(!((r=u.session)===null||r===void 0)&&r.access_token)&&!this.hasCustomAuthorizationHeader?{data:{user:null},error:new dt}:await ne(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:qa})})}catch(a){if(W(a))return Wc(a)&&(await this._removeSession(),await bt(this.storage,`${this.storageKey}-code-verifier`)),this._returnResult({data:{user:null},error:a});throw a}}async updateUser(t,a={}){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._updateUser(t,a))}async _updateUser(t,a={}){try{return await this._useSession(async r=>{const{data:s,error:l}=r;if(l)throw l;if(!s.session)throw new dt;const u=s.session;let d=null,h=null;this.flowType==="pkce"&&t.email!=null&&([d,h]=await Tr(this.storage,this.storageKey));const{data:y,error:z}=await ne(this.fetch,"PUT",`${this.url}/user`,{headers:this.headers,redirectTo:a?.emailRedirectTo,body:Object.assign(Object.assign({},t),{code_challenge:d,code_challenge_method:h}),jwt:u.access_token,xform:qa});if(z)throw z;return u.user=y.user,await this._saveSession(u),await this._notifyAllSubscribers("USER_UPDATED",u),this._returnResult({data:{user:u.user},error:null})})}catch(r){if(await bt(this.storage,`${this.storageKey}-code-verifier`),W(r))return this._returnResult({data:{user:null},error:r});throw r}}async setSession(t){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._setSession(t))}async _setSession(t){try{if(!t.access_token||!t.refresh_token)throw new dt;const a=Date.now()/1e3;let r=a,s=!0,l=null;const{payload:u}=el(t.access_token);if(u.exp&&(r=u.exp,s=r<=a),s){const{data:d,error:h}=await this._callRefreshToken(t.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(t.access_token);if(h)return this._returnResult({data:{user:null,session:null},error:h});l={access_token:t.access_token,refresh_token:t.refresh_token,user:d.user,token_type:"bearer",expires_in:r-a,expires_at:r},await this._saveSession(l),await this._notifyAllSubscribers("SIGNED_IN",l)}return this._returnResult({data:{user:l.user,session:l},error:null})}catch(a){if(W(a))return this._returnResult({data:{session:null,user:null},error:a});throw a}}async refreshSession(t){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._refreshSession(t))}async _refreshSession(t){try{return await this._useSession(async a=>{var r;if(!t){const{data:u,error:d}=a;if(d)throw d;t=(r=u.session)!==null&&r!==void 0?r:void 0}if(!t?.refresh_token)throw new dt;const{data:s,error:l}=await this._callRefreshToken(t.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(a){if(W(a))return this._returnResult({data:{user:null,session:null},error:a});throw a}}async _getSessionFromURL(t,a){var r;try{if(!kt())throw new Qc("No browser detected.");
56if(t.error||t.error_description||t.error_code)throw new Qc(t.error_description||"Error in URL with unspecified error_description",{error:t.error||"unspecified_error",code:t.error_code||"unspecified_code"});switch(a){case"implicit":if(this.flowType==="pkce")throw new eg("Not a valid PKCE flow url.");break;case"pkce":if(this.flowType==="implicit")throw new Qc("Not a valid implicit grant flow url.");break;default:}if(a==="pkce"){if(this._debug("#_initialize()","begin","is PKCE flow",!0),!t.code)throw new eg("No code detected.");const{data:R,error:M}=await this._exchangeCodeForSession(t.code);if(M)throw M;const Z=new URL(window.location.href);return Z.searchParams.delete("code"),window.history.replaceState(window.history.state,"",Z.toString()),{data:{session:R.session,redirectType:(r=R.redirectType)!==null&&r!==void 0?r:null},error:null}}const{provider_token:s,provider_refresh_token:l,access_token:u,refresh_token:d,expires_in:h,expires_at:y,token_type:z}=t;if(!u||!h||!d||!z)throw new Qc("No session defined in URL");const m=Math.round(Date.now()/1e3),g=parseInt(h);let b=m+g;y&&(b=parseInt(y));const v=b-m;v*1e3<=Or&&console.warn(`@supabase/gotrue-js: Session as retrieved from URL expires in ${v}s, should have been closer to ${g}s`);const j=b-g;m-j>=120?console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued over 120s ago, URL could be stale",j,b,m):m-j<0&&console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued in the future? Check the device clock for skew",j,b,m);const{data:_,error:T}=await this._getUser(u);if(T)throw T;const O={provider_token:s,provider_refresh_token:l,access_token:u,expires_in:g,expires_at:b,refresh_token:d,token_type:z,user:_.user};return window.location.hash="",this._debug("#_getSessionFromURL()","clearing window.location.hash"),this._returnResult({data:{session:O,redirectType:t.type},error:null})}catch(s){if(W(s))return this._returnResult({data:{session:null,redirectType:null},error:s});throw s}}_isImplicitGrantCallback(t){return typeof this.detectSessionInUrl=="function"?this.detectSessionInUrl(new URL(window.location.href),t):!!(t.access_token||t.error_description)}async _isPKCECallback(t){const a=await vi(this.storage,`${this.storageKey}-code-verifier`);return!!(t.code&&a)}async signOut(t={scope:"global"}){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._signOut(t))}async _signOut({scope:t}={scope:"global"}){return await this._useSession(async a=>{var r;const{data:s,error:l}=a;if(l&&!Wc(l))return this._returnResult({error:l});const u=(r=s.session)===null||r===void 0?void 0:r.access_token;if(u){const{error:d}=await this.admin.signOut(u,t);if(d&&!(oO(d)&&(d.status===404||d.status===401||d.status===403)||Wc(d)))return this._returnResult({error:d})}return t!=="others"&&(await this._removeSession(),await bt(this.storage,`${this.storageKey}-code-verifier`)),this._returnResult({error:null})})}onAuthStateChange(t){const a=yO(),r={id:a,callback:t,unsubscribe:()=>{this._debug("#unsubscribe()","state change callback with id removed",a),this.stateChangeEmitters.delete(a)}};return this._debug("#onAuthStateChange()","registered callback with id",a),this.stateChangeEmitters.set(a,r),(async()=>(await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>{this._emitInitialSession(a)})))(),{data:{subscription:r}}}async _emitInitialSession(t){return await this._useSession(async a=>{var r,s;try{const{data:{session:l},error:u}=a;if(u)throw u;await((r=this.stateChangeEmitters.get(t))===null||r===void 0?void 0:r.callback("INITIAL_SESSION",l)),this._debug("INITIAL_SESSION","callback id",t,"session",l)}catch(l){await((s=this.stateChangeEmitters.get(t))===null||s===void 0?void 0:s.callback("INITIAL_SESSION",null)),this._debug("INITIAL_SESSION","callback id",t,"error",l),Wc(l)?console.warn(l):console.error(l)}})}async resetPasswordForEmail(t,a={}){let r=null,s=null;this.flowType==="pkce"&&([r,s]=await Tr(this.storage,this.storageKey,!0));try{return await ne(this.fetch,"POST",`${this.url}/recover`,{body:{email:t,code_challenge:r,code_challenge_method:s,gotrue_meta_security:{captcha_token:a.captchaToken}},headers:this.headers,redirectTo:a.redirectTo})}catch(l){if(await bt(this.storage,`${this.storageKey}-code-verifier`),W(l))return this._returnResult({data:null,error:l});throw l}}async getUserIdentities(){var t;try{const{data:a,error:r}=await this.getUser();if(r)throw r;return this._returnResult({data:{identities:(t=a.user.identities)!==null&&t!==void 0?t:[]},error:null})}catch(a){if(W(a))return this._returnResult({data:null,error:a});throw a}}async linkIdentity(t){return"token"in t?this.linkIdentityIdToken(t):this.linkIdentityOAuth(t)}async linkIdentityOAuth(t){var a;try{const{data:r,error:s}=await this._useSession(async l=>{var u,d,h,y,z;const{data:m,error:g}=l;if(g)throw g;const b=await this._getUrlForProvider(`${this.url}/user/identities/authorize`,t.provider,{redirectTo:(u=t.options)===null||u===void 0?void 0:u.redirectTo,scopes:(d=t.options)===null||d===void 0?void 0:d.scopes,queryParams:(h=t.options)===null||h===void 0?void 0:h.queryParams,skipBrowserRedirect:!0});return await ne(this.fetch,"GET",b,{headers:this.headers,jwt:(z=(y=m.session)===null||y===void 0?void 0:y.access_token)!==null&&z!==void 0?z:void 0})});if(s)throw s;return kt()&&!(!((a=t.options)===null||a===void 0)&&a.skipBrowserRedirect)&&window.location.assign(r?.url),this._returnResult({data:{provider:t.provider,url:r?.url},error:null})}catch(r){if(W(r))return this._returnResult({data:{provider:t.provider,url:null},error:r});throw r}}async linkIdentityIdToken(t){return await this._useSession(async a=>{var r;try{const{error:s,data:{session:l}}=a;if(s)throw s;const{options:u,provider:d,token:h,access_token:y,nonce:z}=t,m=await ne(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,jwt:(r=l?.access_token)!==null&&r!==void 0?r:void 0,body:{provider:d,id_token:h,access_token:y,nonce:z,link_identity:!0,gotrue_meta_security:{captcha_token:u?.captchaToken}},xform:un}),{data:g,error:b}=m;return b?this._returnResult({data:{user:null,session:null},error:b}):!g||!g.session||!g.user?this._returnResult({data:{user:null,session:null},error:new Sr}):(g.session&&(await this._saveSession(g.session),await this._notifyAllSubscribers("USER_UPDATED",g.session)),this._returnResult({data:g,error:b}))}catch(s){if(await bt(this.storage,`${this.storageKey}-code-verifier`),W(s))return this._returnResult({data:{user:null,session:null},error:s});throw s}})}async unlinkIdentity(t){try{return await this._useSession(async a=>{var r,s;const{data:l,error:u}=a;if(u)throw u;
56return await ne(this.fetch,"DELETE",`${this.url}/user/identities/${t.identity_id}`,{headers:this.headers,jwt:(s=(r=l.session)===null||r===void 0?void 0:r.access_token)!==null&&s!==void 0?s:void 0})})}catch(a){if(W(a))return this._returnResult({data:null,error:a});throw a}}async _refreshAccessToken(t){const a=`#_refreshAccessToken(${t.substring(0,5)}...)`;this._debug(a,"begin");try{const r=Date.now();return await gO(async s=>(s>0&&await wO(200*Math.pow(2,s-1)),this._debug(a,"refreshing attempt",s),await ne(this.fetch,"POST",`${this.url}/token?grant_type=refresh_token`,{body:{refresh_token:t},headers:this.headers,xform:un})),(s,l)=>{const u=200*Math.pow(2,s);return l&&Tf(l)&&Date.now()+u-r<Or})}catch(r){if(this._debug(a,"error",r),W(r))return this._returnResult({data:{session:null,user:null},error:r});throw r}finally{this._debug(a,"end")}}_isValidSession(t){return typeof t=="object"&&t!==null&&"access_token"in t&&"refresh_token"in t&&"expires_at"in t}async _handleProviderSignIn(t,a){const r=await this._getUrlForProvider(`${this.url}/authorize`,t,{redirectTo:a.redirectTo,scopes:a.scopes,queryParams:a.queryParams});return this._debug("#_handleProviderSignIn()","provider",t,"options",a,"url",r),kt()&&!a.skipBrowserRedirect&&window.location.assign(r),{data:{provider:t,url:r},error:null}}async _recoverAndRefresh(){var t,a;const r="#_recoverAndRefresh()";this._debug(r,"begin");try{const s=await vi(this.storage,this.storageKey);if(s&&this.userStorage){let u=await vi(this.userStorage,this.storageKey+"-user");!this.storage.isServer&&Object.is(this.storage,this.userStorage)&&!u&&(u={user:s.user},await Cr(this.userStorage,this.storageKey+"-user",u)),s.user=(t=u?.user)!==null&&t!==void 0?t:Ef()}else if(s&&!s.user&&!s.user){const u=await vi(this.storage,this.storageKey+"-user");u&&u?.user?(s.user=u.user,await bt(this.storage,this.storageKey+"-user"),await Cr(this.storage,this.storageKey,s)):s.user=Ef()}if(this._debug(r,"session from storage",s),!this._isValidSession(s)){this._debug(r,"session is not valid"),s!==null&&await this._removeSession();return}const l=((a=s.expires_at)!==null&&a!==void 0?a:1/0)*1e3-Date.now()<Sf;if(this._debug(r,`session has${l?"":" not"} expired with margin of ${Sf}s`),l){if(this.autoRefreshToken&&s.refresh_token){const{error:u}=await this._callRefreshToken(s.refresh_token);u&&(console.error(u),Tf(u)||(this._debug(r,"refresh failed with a non-retryable error, removing the session",u),await this._removeSession()))}}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(r,"could not get user data, skipping SIGNED_IN notification")}catch(u){console.error("Error getting user data:",u),this._debug(r,"error getting user data, skipping SIGNED_IN notification",u)}else await this._notifyAllSubscribers("SIGNED_IN",s)}catch(s){this._debug(r,"error",s),console.error(s);return}finally{this._debug(r,"end")}}async _callRefreshToken(t){var a,r;if(!t)throw new dt;if(this.refreshingDeferred)return this.refreshingDeferred.promise;const s=`#_callRefreshToken(${t.substring(0,5)}...)`;this._debug(s,"begin");try{this.refreshingDeferred=new Il;const{data:l,error:u}=await this._refreshAccessToken(t);if(u)throw u;if(!l.session)throw new dt;await this._saveSession(l.session),await this._notifyAllSubscribers("TOKEN_REFRESHED",l.session);const d={data:l.session,error:null};return this.refreshingDeferred.resolve(d),d}catch(l){if(this._debug(s,"error",l),W(l)){const u={data:null,error:l};return Tf(l)||await this._removeSession(),(a=this.refreshingDeferred)===null||a===void 0||a.resolve(u),u}throw(r=this.refreshingDeferred)===null||r===void 0||r.reject(l),l}finally{this.refreshingDeferred=null,this._debug(s,"end")}}async _notifyAllSubscribers(t,a,r=!0){const s=`#_notifyAllSubscribers(${t})`;this._debug(s,"begin",a,`broadcast = ${r}`);try{this.broadcastChannel&&r&&this.broadcastChannel.postMessage({event:t,session:a});const l=[],u=Array.from(this.stateChangeEmitters.values()).map(async d=>{try{await d.callback(t,a)}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(t){this._debug("#_saveSession()",t),this.suppressGetSessionWarning=!0,await bt(this.storage,`${this.storageKey}-code-verifier`);const a=Object.assign({},t),r=a.user&&a.user.__isUserNotAvailableProxy===!0;if(this.userStorage){!r&&a.user&&await Cr(this.userStorage,this.storageKey+"-user",{user:a.user});const s=Object.assign({},a);delete s.user;const l=rg(s);await Cr(this.storage,this.storageKey,l)}else{const s=rg(a);await Cr(this.storage,this.storageKey,s)}}async _removeSession(){this._debug("#_removeSession()"),this.suppressGetSessionWarning=!1,await bt(this.storage,this.storageKey),await bt(this.storage,this.storageKey+"-code-verifier"),await bt(this.storage,this.storageKey+"-user"),this.userStorage&&await bt(this.userStorage,this.storageKey+"-user"),await this._notifyAllSubscribers("SIGNED_OUT",null)}_removeVisibilityChangedCallback(){this._debug("#_removeVisibilityChangedCallback()");const t=this.visibilityChangedCallback;this.visibilityChangedCallback=null;try{t&&kt()&&window?.removeEventListener&&window.removeEventListener("visibilitychange",t)}
56catch(a){console.error("removing visibilitychange callback failed",a)}}async _startAutoRefresh(){await this._stopAutoRefresh(),this._debug("#_startAutoRefresh()");const t=setInterval(()=>this._autoRefreshTokenTick(),Or);this.autoRefreshTicker=t,t&&typeof t=="object"&&typeof t.unref=="function"?t.unref():typeof Deno<"u"&&typeof Deno.unrefTimer=="function"&&Deno.unrefTimer(t);const a=setTimeout(async()=>{await this.initializePromise,await this._autoRefreshTokenTick()},0);this.autoRefreshTickTimeout=a,a&&typeof a=="object"&&typeof a.unref=="function"?a.unref():typeof Deno<"u"&&typeof Deno.unrefTimer=="function"&&Deno.unrefTimer(a)}async _stopAutoRefresh(){this._debug("#_stopAutoRefresh()");const t=this.autoRefreshTicker;this.autoRefreshTicker=null,t&&clearInterval(t);const a=this.autoRefreshTickTimeout;this.autoRefreshTickTimeout=null,a&&clearTimeout(a)}async startAutoRefresh(){this._removeVisibilityChangedCallback(),await this._startAutoRefresh()}async stopAutoRefresh(){this._removeVisibilityChangedCallback(),await this._stopAutoRefresh()}async _autoRefreshTokenTick(){this._debug("#_autoRefreshTokenTick()","begin");try{await this._acquireLock(0,async()=>{try{const t=Date.now();try{return await this._useSession(async a=>{const{data:{session:r}}=a;if(!r||!r.refresh_token||!r.expires_at){this._debug("#_autoRefreshTokenTick()","no session");return}const s=Math.floor((r.expires_at*1e3-t)/Or);this._debug("#_autoRefreshTokenTick()",`access token expires in ${s} ticks, a tick lasts ${Or}ms, refresh threshold is ${Qf} ticks`),s<=Qf&&await this._callRefreshToken(r.refresh_token)})}catch(a){console.error("Auto refresh tick failed with error. This is likely a transient error.",a)}}finally{this._debug("#_autoRefreshTokenTick()","end")}})}catch(t){if(t instanceof Fk)this._debug("auto refresh token tick lock not available");else throw t}}async _handleVisibilityChange(){if(this._debug("#_handleVisibilityChange()"),!kt()||!window?.addEventListener)return this.autoRefreshToken&&this.startAutoRefresh(),!1;try{this.visibilityChangedCallback=async()=>{try{await this._onVisibilityChanged(!1)}catch(t){this._debug("#visibilityChangedCallback","error",t)}},window?.addEventListener("visibilitychange",this.visibilityChangedCallback),await this._onVisibilityChanged(!0)}catch(t){console.error("_handleVisibilityChange",t)}}async _onVisibilityChanged(t){const a=`#_onVisibilityChanged(${t})`;this._debug(a,"visibilityState",document.visibilityState),document.visibilityState==="visible"?(this.autoRefreshToken&&this._startAutoRefresh(),t||(await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>{if(document.visibilityState!=="visible"){this._debug(a,"acquired the lock to recover the session, but the browser visibilityState is no longer visible, aborting");return}await this._recoverAndRefresh()}))):document.visibilityState==="hidden"&&this.autoRefreshToken&&this._stopAutoRefresh()}async _getUrlForProvider(t,a,r){const s=[`provider=${encodeURIComponent(a)}`];if(r?.redirectTo&&s.push(`redirect_to=${encodeURIComponent(r.redirectTo)}`),r?.scopes&&s.push(`scopes=${encodeURIComponent(r.scopes)}`),this.flowType==="pkce"){const[l,u]=await Tr(this.storage,this.storageKey),d=new URLSearchParams({code_challenge:`${encodeURIComponent(l)}`,code_challenge_method:`${encodeURIComponent(u)}`});s.push(d.toString())}if(r?.queryParams){const l=new URLSearchParams(r.queryParams);s.push(l.toString())}return r?.skipBrowserRedirect&&s.push(`skip_http_redirect=${r.skipBrowserRedirect}`),`${t}?${s.join("&")}`}async _unenroll(t){try{return await this._useSession(async a=>{var r;const{data:s,error:l}=a;return l?this._returnResult({data:null,error:l}):await ne(this.fetch,"DELETE",`${this.url}/factors/${t.factorId}`,{headers:this.headers,jwt:(r=s?.session)===null||r===void 0?void 0:r.access_token})})}catch(a){if(W(a))return this._returnResult({data:null,error:a});throw a}}async _enroll(t){try{return await this._useSession(async a=>{var r,s;const{data:l,error:u}=a;if(u)return this._returnResult({data:null,error:u});const d=Object.assign({friendly_name:t.friendlyName,factor_type:t.factorType},t.factorType==="phone"?{phone:t.phone}:t.factorType==="totp"?{issuer:t.issuer}:{}),{data:h,error:y}=await ne(this.fetch,"POST",`${this.url}/factors`,{body:d,headers:this.headers,jwt:(r=l?.session)===null||r===void 0?void 0:r.access_token});return y?this._returnResult({data:null,error:y}):(t.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(a){if(W(a))return this._returnResult({data:null,error:a});throw a}}async _verify(t){return this._acquireLock(this.lockAcquireTimeout,async()=>{try{return await this._useSession(async a=>{var r;const{data:s,error:l}=a;if(l)return this._returnResult({data:null,error:l});const u=Object.assign({challenge_id:t.challengeId},"webauthn"in t?{webauthn:Object.assign(Object.assign({},t.webauthn),{credential_response:t.webauthn.type==="create"?hg(t.webauthn.credential_response):pg(t.webauthn.credential_response)})}:{code:t.code}),{data:d,error:h}=await ne(this.fetch,"POST",`${this.url}/factors/${t.factorId}/verify`,{body:u,headers:this.headers,jwt:(r=s?.session)===null||r===void 0?void 0:r.access_token});return h?this._returnResult({data:null,error:h}):(await this._saveSession(Object.assign({expires_at:Math.round(Date.now()/1e3)+d.expires_in},d)),await this._notifyAllSubscribers("MFA_CHALLENGE_VERIFIED",d),this._returnResult({data:d,error:h}))})}catch(a){if(W(a))return this._returnResult({data:null,error:a});throw a}})}async _challenge(t){return this._acquireLock(this.lockAcquireTimeout,async()=>{try{return await this._useSession(async a=>{var r;const{data:s,error:l}=a;if(l)return this._returnResult({data:null,error:l});const u=await ne(this.fetch,"POST",`${this.url}/factors/${t.factorId}/challenge`,{body:t,headers:this.headers,jwt:(r=s?.session)===null||r===void 0?void 0:r.access_token});if(u.error)return u;const{data:d}=u;if(d.type!=="webauthn")return{data:d,error:null};switch(d.webauthn.type){case"create":return{data:Object.assign(Object.assign({},d),{webauthn:Object.assign(Object.assign({},d.webauthn),{credential_options:Object.assign(Object.assign({},d.webauthn.credential_options),{publicKey:dg(d.webauthn.credential_options.publicKey)})})}),error:null};case"request":return{data:Object.assign(Object.assign({},d),{webauthn:Object.assign(Object.assign({},d.webauthn),{credential_options:Object.assign(Object.assign({},d.webauthn.credential_options),{publicKey:fg(d.webauthn.credential_options.publicKey)})})}),error:null}}})}catch(a){if(W(a))return this._returnResult({data:null,error:a});throw a}})}async _challengeAndVerify(t){const{data:a,error:r}=await this._challenge({factorId:t.factorId});return r?this._returnResult({data:null,error:r}):await this._verify({factorId:t.factorId,challengeId:a.id,code:t.code})}async _listFactors(){var t;const{data:{user:a},error:r}=await this.getUser();if(r)return{data:null,error:r};const s={all:[],phone:[],totp:[],webauthn:[]};for(const l of(t=a?.factors)!==null&&t!==void 0?t:[])s.all.push(l),l.status==="verified"&&s[l.factor_type].push(l);return{data:s,error:null}}async _getAuthenticatorAssuranceLevel(t){var a,r,s,l;if(t)try{const{payload:b}=el(t);let v=null;b.aal&&(v=b.aal);let j=v;const{data:{user:_},error:T}=await this.getUser(t);if(T)return this._returnResult({data:null,error:T});((r=(a=_?.factors)===null||a===void 0?void 0:a.filter(M=>M.status==="verified"))!==null&&r!==void 0?r:[]).length>0&&(j="aal2");const R=b.amr||[];return{data:{currentLevel:v,nextLevel:j,currentAuthenticationMethods:R},error:null}}catch(b){if(W(b))return this._returnResult({data:null,error:b});throw b}const{data:{session:u},error:d}
56=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}=el(u.access_token);let y=null;h.aal&&(y=h.aal);let z=y;((l=(s=u.user.factors)===null||s===void 0?void 0:s.filter(b=>b.status==="verified"))!==null&&l!==void 0?l:[]).length>0&&(z="aal2");const g=h.amr||[];return{data:{currentLevel:y,nextLevel:z,currentAuthenticationMethods:g},error:null}}async _getAuthorizationDetails(t){try{return await this._useSession(async a=>{const{data:{session:r},error:s}=a;return s?this._returnResult({data:null,error:s}):r?await ne(this.fetch,"GET",`${this.url}/oauth/authorizations/${t}`,{headers:this.headers,jwt:r.access_token,xform:l=>({data:l,error:null})}):this._returnResult({data:null,error:new dt})})}catch(a){if(W(a))return this._returnResult({data:null,error:a});throw a}}async _approveAuthorization(t,a){try{return await this._useSession(async r=>{const{data:{session:s},error:l}=r;if(l)return this._returnResult({data:null,error:l});if(!s)return this._returnResult({data:null,error:new dt});const u=await ne(this.fetch,"POST",`${this.url}/oauth/authorizations/${t}/consent`,{headers:this.headers,jwt:s.access_token,body:{action:"approve"},xform:d=>({data:d,error:null})});return u.data&&u.data.redirect_url&&kt()&&!a?.skipBrowserRedirect&&window.location.assign(u.data.redirect_url),u})}catch(r){if(W(r))return this._returnResult({data:null,error:r});throw r}}async _denyAuthorization(t,a){try{return await this._useSession(async r=>{const{data:{session:s},error:l}=r;if(l)return this._returnResult({data:null,error:l});if(!s)return this._returnResult({data:null,error:new dt});const u=await ne(this.fetch,"POST",`${this.url}/oauth/authorizations/${t}/consent`,{headers:this.headers,jwt:s.access_token,body:{action:"deny"},xform:d=>({data:d,error:null})});return u.data&&u.data.redirect_url&&kt()&&!a?.skipBrowserRedirect&&window.location.assign(u.data.redirect_url),u})}catch(r){if(W(r))return this._returnResult({data:null,error:r});throw r}}async _listOAuthGrants(){try{return await this._useSession(async t=>{const{data:{session:a},error:r}=t;return r?this._returnResult({data:null,error:r}):a?await ne(this.fetch,"GET",`${this.url}/user/oauth/grants`,{headers:this.headers,jwt:a.access_token,xform:s=>({data:s,error:null})}):this._returnResult({data:null,error:new dt})})}catch(t){if(W(t))return this._returnResult({data:null,error:t});throw t}}async _revokeOAuthGrant(t){try{return await this._useSession(async a=>{const{data:{session:r},error:s}=a;return s?this._returnResult({data:null,error:s}):r?(await ne(this.fetch,"DELETE",`${this.url}/user/oauth/grants`,{headers:this.headers,jwt:r.access_token,query:{client_id:t.clientId},noResolveJson:!0}),{data:{},error:null}):this._returnResult({data:null,error:new dt})})}catch(a){if(W(a))return this._returnResult({data:null,error:a});throw a}}async fetchJwk(t,a={keys:[]}){let r=a.keys.find(d=>d.kid===t);if(r)return r;const s=Date.now();if(r=this.jwks.keys.find(d=>d.kid===t),r&&this.jwks_cached_at+iO>s)return r;const{data:l,error:u}=await ne(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,r=l.keys.find(d=>d.kid===t),!r)?null:r}async getClaims(t,a={}){try{let r=t;if(!r){const{data:b,error:v}
56=await this.getSession();if(v||!b.session)return this._returnResult({data:null,error:v});r=b.session.access_token}const{header:s,payload:l,signature:u,raw:{header:d,payload:h}}=el(r);a?.allowExpired||TO(l.exp);const y=!s.alg||s.alg.startsWith("HS")||!s.kid||!("crypto"in globalThis&&"subtle"in globalThis.crypto)?null:await this.fetchJwk(s.kid,a?.keys?{keys:a.keys}:a?.jwks);if(!y){const{error:b}=await this.getUser(r);if(b)throw b;return{data:{claims:l,header:s,signature:u},error:null}}const z=EO(s.alg),m=await crypto.subtle.importKey("jwk",y,z,!0,["verify"]);if(!await crypto.subtle.verify(z,m,u,hO(`${d}.${h}`)))throw new nh("Invalid JWT signature");return{data:{claims:l,header:s,signature:u},error:null}}catch(r){if(W(r))return this._returnResult({data:null,error:r});throw r}}async signInWithPasskey(t){var a,r,s;mn(this.experimental);try{if(!kl())return this._returnResult({data:null,error:new gn("Browser does not support WebAuthn",null)});const{data:l,error:u}=await this._startPasskeyAuthentication({options:{captchaToken:(a=t?.options)===null||a===void 0?void 0:a.captchaToken}});if(u||!l)return this._returnResult({data:null,error:u});const d=fg(l.options),h=(s=(r=t?.options)===null||r===void 0?void 0:r.signal)!==null&&s!==void 0?s:ah.createNewAbortSignal(),{data:y,error:z}=await ev({publicKey:d,signal:h});if(z||!y)return this._returnResult({data:null,error:z??new gn("WebAuthn ceremony failed",null)});const m=pg(y);return this._verifyPasskeyAuthentication({challengeId:l.challenge_id,credential:m})}catch(l){if(W(l))return this._returnResult({data:null,error:l});throw l}}async registerPasskey(t){var a,r;mn(this.experimental);try{if(!kl())return this._returnResult({data:null,error:new gn("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=dg(s.options),d=(r=(a=t?.options)===null||a===void 0?void 0:a.signal)!==null&&r!==void 0?r:ah.createNewAbortSignal(),{data:h,error:y}=await Qk({publicKey:u,signal:d});if(y||!h)return this._returnResult({data:null,error:y??new gn("WebAuthn ceremony failed",null)});const z=hg(h);return this._verifyPasskeyRegistration({challengeId:s.challenge_id,credential:z})}catch(s){if(W(s))return this._returnResult({data:null,error:s});throw s}}async _startPasskeyRegistration(){mn(this.experimental);try{return await this._useSession(async t=>{const{data:{session:a},error:r}=t;if(r)return this._returnResult({data:null,error:r});if(!a)return this._returnResult({data:null,error:new dt});const{data:s,error:l}=await ne(this.fetch,"POST",`${this.url}/passkeys/registration/options`,{headers:this.headers,jwt:a.access_token,body:{}});return l?this._returnResult({data:null,error:l}):this._returnResult({data:s,error:null})})}catch(t){if(W(t))return this._returnResult({data:null,error:t});throw t}}async _verifyPasskeyRegistration(t){mn(this.experimental);try{return await this._useSession(async a=>{const{data:{session:r},error:s}=a;if(s)return this._returnResult({data:null,error:s});if(!r)return this._returnResult({data:null,error:new dt});const{data:l,error:u}=await ne(this.fetch,"POST",`${this.url}/passkeys/registration/verify`,{headers:this.headers,jwt:r.access_token,body:{challenge_id:t.challengeId,credential:t.credential}});return u?this._returnResult({data:null,error:u}):this._returnResult({data:l,error:null})})}catch(a){if(W(a))return this._returnResult({data:null,error:a});throw a}}async _startPasskeyAuthentication(t){var a;mn(this.experimental);try{const{data:r,error:s}=await ne(this.fetch,"POST",`${this.url}/passkeys/authentication/options`,{headers:this.headers,body:{gotrue_meta_security:{captcha_token:(a=t?.options)===null||a===void 0?void 0:a.captchaToken}}});return s?this._returnResult({data:null,error:s}):this._returnResult({data:r,error:null})}catch(r){if(W(r))return this._returnResult({data:null,error:r});throw r}}async _verifyPasskeyAuthentication(t){mn(this.experimental);try{const{data:a,error:r}=await ne(this.fetch,"POST",`${this.url}/passkeys/authentication/verify`,{headers:this.headers,body:{challenge_id:t.challengeId,credential:t.credential},xform:un});return r?this._returnResult({data:null,error:r}):(a.session&&(await this._saveSession(a.session),await this._notifyAllSubscribers("SIGNED_IN",a.session)),this._returnResult({data:a,error:null}))}catch(a){if(W(a))return this._returnResult({data:null,error:a});throw a}}async _listPasskeys(){mn(this.experimental);try{return await this._useSession(async t=>{const{data:{session:a},error:r}=t;if(r)return this._returnResult({data:null,error:r});if(!a)return this._returnResult({data:null,error:new dt});const{data:s,error:l}=await ne(this.fetch,"GET",`${this.url}/passkeys`,{headers:this.headers,jwt:a.access_token,xform:u=>({data:u,error:null})});return l?this._returnResult({data:null,error:l}):this._returnResult({data:s,error:null})})}catch(t){if(W(t))return this._returnResult({data:null,error:t});throw t}}async _updatePasskey(t){mn(this.experimental);try{return await this._useSession(async a=>{const{data:{session:r},error:s}=a;if(s)return this._returnResult({data:null,error:s});if(!r)return this._returnResult({data:null,error:new dt});const{data:l,error:u}=await ne(this.fetch,"PATCH",`${this.url}/passkeys/${t.passkeyId}`,{headers:this.headers,jwt:r.access_token,body:{friendly_name:t.friendlyName}});return u?this._returnResult({data:null,error:u}):this._returnResult({data:l,error:null})})}catch(a){if(W(a))return this._returnResult({data:null,error:a});throw a}}async _deletePasskey(t){mn(this.experimental);try{return await this._useSession(async a=>{const{data:{session:r},error:s}=a;if(s)return this._returnResult({data:null,error:s});if(!r)return this._returnResult({data:null,error:new dt});const{error:l}
56=await ne(this.fetch,"DELETE",`${this.url}/passkeys/${t.passkeyId}`,{headers:this.headers,jwt:r.access_token,noResolveJson:!0});return l?this._returnResult({data:null,error:l}):this._returnResult({data:null,error:null})})}catch(a){if(W(a))return this._returnResult({data:null,error:a});throw a}}}fs.nextInstanceID={};const WO=fs,XO="2.106.2";let Go="";typeof Deno<"u"?Go="deno":typeof document<"u"?Go="web":typeof navigator<"u"&&navigator.product==="ReactNative"?Go="react-native":Go="node";const QO={"X-Client-Info":`supabase-js-${Go}/${XO}`},eC={headers:QO},tC={schema:"public"},nC={autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,flowType:"implicit"},aC={},iC={enabled:!1,respectSamplingDecision:!0};function rC(e,t,a,r){function s(l){return l instanceof a?l:new a(function(u){u(l)})}return new(a||(a=Promise))(function(l,u){function d(z){try{y(r.next(z))}catch(m){u(m)}}function h(z){try{y(r.throw(z))}catch(m){u(m)}}function y(z){z.done?l(z.value):s(z.value).then(d,h)}y((r=r.apply(e,[])).next())})}let Rf=null;const oC="@opentelemetry/api";function sC(){return Rf===null&&(Rf=import(oC).catch(()=>null)),Rf}function cC(){return rC(this,void 0,void 0,function*(){try{const e=yield sC();if(!e||!e.propagation||!e.context)return null;const t={};e.propagation.inject(e.context.active(),t);const a=t.traceparent;return a?{traceparent:a,tracestate:t.tracestate,baggage:t.baggage}:null}catch{return null}})}function lC(e){if(!e||typeof e!="string")return null;const t=e.split("-");if(t.length!==4)return null;const[a,r,s,l]=t;if(a.length!==2||r.length!==32||s.length!==16||l.length!==2)return null;const u=/^[0-9a-f]+$/i;return!u.test(a)||!u.test(r)||!u.test(s)||!u.test(l)||r==="00000000000000000000000000000000"||s==="0000000000000000"?null:{version:a,traceId:r,parentId:s,traceFlags:l,isSampled:(parseInt(l,16)&1)===1}}function uC(e,t){if(!e||!t||t.length===0)return!1;let a;if(e instanceof URL)a=e;else try{a=new URL(e)}catch{return!1}for(const r of t)try{if(typeof r=="string"){if(dC(a.hostname,r))return!0}else if(r instanceof RegExp){if(r.test(a.hostname))return!0}else if(typeof r=="function"&&r(a))return!0}catch{continue}return!1}function dC(e,t){if(t===e)return!0;if(t.startsWith("*.")){const a=t.slice(2);if(e.endsWith(a)&&(e===a||e.endsWith("."+a)))return!0}return!1}function fC(e){const t=[];try{const a=new URL(e);t.push(a.hostname)}catch{}return t.push("*.supabase.co","*.supabase.in"),t.push("localhost","127.0.0.1","[::1]"),t}function hs(e){"@babel/helpers - typeof";return hs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},hs(e)}function hC(e,t){if(hs(e)!="object"||!e)return e;var a=e[Symbol.toPrimitive];if(a!==void 0){var r=a.call(e,t);if(hs(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function pC(e){var t=hC(e,"string");return hs(t)=="symbol"?t:t+""}function yC(e,t,a){return(t=pC(t))in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function mg(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),a.push.apply(a,r)}return a}function We(e){for(var t=1;t<arguments.length;t++){var a=arguments[t]!=null?arguments[t]:{};t%2?mg(Object(a),!0).forEach(function(r){yC(e,r,a[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):mg(Object(a)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(a,r))})}return e}const mC=e=>e?(...t)=>e(...t):(...t)=>fetch(...t),zC=()=>Headers,wC=(e,t,a,r,s)=>{const l=mC(r),u=zC(),d=s?.enabled===!0,h=s?.respectSamplingDecision!==!1,y=d?fC(t):null;return async(z,m)=>{var g;const b=(g=await a())!==null&&g!==void 0?g:e;let v=new u(m?.headers);if(v.has("apikey")||v.set("apikey",e),v.has("Authorization")||v.set("Authorization",`Bearer ${b}`),y){const j=await gC(z,y,h);j&&(j.traceparent&&!v.has("traceparent")&&v.set("traceparent",j.traceparent),j.tracestate&&!v.has("tracestate")&&v.set("tracestate",j.tracestate),j.baggage&&!v.has("baggage")&&v.set("baggage",j.baggage))}return l(z,We(We({},m),{},{headers:v}))}};async function gC(e,t,a){if(!uC(typeof e=="string"||e instanceof URL?e:e.url,t))return null;const r=await cC();if(!r||!r.traceparent)return null;if(a){const s=lC(r.traceparent);if(s&&!s.isSampled)return null}return r}function zg(e){return typeof e=="boolean"?{enabled:e}:e}function bC(e){return e.endsWith("/")?e:e+"/"}function kC(e,t){var a,r,s,l,u,d;const{db:h,auth:y,realtime:z,global:m}=e,{db:g,auth:b,realtime:v,global:j}=t,_=zg(e.tracePropagation),T=zg(t.tracePropagation),O={db:We(We({},g),h),auth:We(We({},b),y),realtime:We(We({},v),z),storage:{},global:We(We(We({},j),m),{},{headers:We(We({},(a=j?.headers)!==null&&a!==void 0?a:{}),(r=m?.headers)!==null&&r!==void 0?r:{})}),tracePropagation:{enabled:(s=(l=_?.enabled)!==null&&l!==void 0?l:T?.enabled)!==null&&s!==void 0?s:!1,respectSamplingDecision:(u=(d=_?.respectSamplingDecision)!==null&&d!==void 0?d:T?.respectSamplingDecision)!==null&&u!==void 0?u:!0},accessToken:async()=>""};return e.accessToken?O.accessToken=e.accessToken:delete O.accessToken,O}function vC(e){const t=e?.trim();if(!t)throw new Error("supabaseUrl is required.");
56if(!t.match(/^https?:\/\//i))throw new Error("Invalid supabaseUrl: Must be a valid HTTP or HTTPS URL.");try{return new URL(bC(t))}catch{throw Error("Invalid supabaseUrl: Provided URL is malformed.")}}var jC=class extends WO{constructor(e){super(e)}},_C=class{constructor(e,t,a){var r,s;this.supabaseUrl=e,this.supabaseKey=t;const l=vC(e);if(!t)throw new Error("supabaseKey is required.");this.realtimeUrl=new URL("realtime/v1",l),this.realtimeUrl.protocol=this.realtimeUrl.protocol.replace("http","ws"),this.authUrl=new URL("auth/v1",l),this.storageUrl=new URL("storage/v1",l),this.functionsUrl=new URL("functions/v1",l);const u=`sb-${l.hostname.split(".")[0]}-auth-token`,d={db:tC,realtime:aC,auth:We(We({},nC),{},{storageKey:u}),global:eC,tracePropagation:iC},h=kC(a??{},d);if(this.settings=h,this.storageKey=(r=h.auth.storageKey)!==null&&r!==void 0?r:"",this.headers=(s=h.global.headers)!==null&&s!==void 0?s:{},h.accessToken)this.accessToken=h.accessToken,this.auth=new Proxy({},{get:(z,m)=>{throw new Error(`@supabase/supabase-js: Supabase Client is configured with the accessToken option, accessing supabase.auth.${String(m)} is not possible`)}});else{var y;this.auth=this._initSupabaseAuthClient((y=h.auth)!==null&&y!==void 0?y:{},this.headers,h.global.fetch)}this.fetch=wC(t,e,this._getAccessToken.bind(this),h.global.fetch,h.tracePropagation),this.realtime=this._initRealtimeClient(We({headers:this.headers,accessToken:this._getAccessToken.bind(this),fetch:this.fetch},h.realtime)),this.accessToken&&Promise.resolve(this.accessToken()).then(z=>this.realtime.setAuth(z)).catch(z=>console.warn("Failed to set initial Realtime auth token:",z)),this.rest=new IR(new URL("rest/v1",l).href,{headers:this.headers,schema:h.db.schema,fetch:this.fetch,timeout:h.db.timeout,urlLengthLimit:h.db.urlLengthLimit}),this.storage=new Q1(this.storageUrl.href,this.headers,this.fetch,a?.storage),h.accessToken||this._listenForAuthEvents()}get functions(){return new OR(this.functionsUrl.href,{headers:this.headers,customFetch:this.fetch})}from(e){return this.rest.from(e)}schema(e){return this.rest.schema(e)}rpc(e,t={},a={head:!1,get:!1,count:void 0}){return this.rest.rpc(e,t,a)}channel(e,t={config:{}}){return this.realtime.channel(e,t)}getChannels(){return this.realtime.getChannels()}removeChannel(e){return this.realtime.removeChannel(e)}removeAllChannels(){return this.realtime.removeAllChannels()}async _getAccessToken(){var e=this,t,a;if(e.accessToken)return await e.accessToken();const{data:r}=await e.auth.getSession();return(t=(a=r.session)===null||a===void 0?void 0:a.access_token)!==null&&t!==void 0?t:e.supabaseKey}_initSupabaseAuthClient({autoRefreshToken:e,persistSession:t,detectSessionInUrl:a,storage:r,userStorage:s,storageKey:l,flowType:u,lock:d,debug:h,throwOnError:y,experimental:z,lockAcquireTimeout:m,skipAutoInitialize:g},b,v){const j={Authorization:`Bearer ${this.supabaseKey}`,apikey:`${this.supabaseKey}`};return new jC({url:this.authUrl.href,headers:We(We({},j),b),storageKey:l,autoRefreshToken:e,persistSession:t,detectSessionInUrl:a,storage:r,userStorage:s,flowType:u,lock:d,debug:h,throwOnError:y,experimental:z,fetch:v,lockAcquireTimeout:m,skipAutoInitialize:g,hasCustomAuthorizationHeader:Object.keys(this.headers).some(_=>_.toLowerCase()==="authorization")})}_initRealtimeClient(e){return new v1(this.realtimeUrl.href,We(We({},e),{},{params:We(We({},{apikey:this.supabaseKey}),e?.params)}))}_listenForAuthEvents(){return this.auth.onAuthStateChange((e,t)=>{this._handleTokenChanged(e,"CLIENT",t?.access_token)})}_handleTokenChanged(e,t,a){(e==="TOKEN_REFRESHED"||e==="SIGNED_IN")&&this.changedAccessToken!==a?(this.changedAccessToken=a,this.realtime.setAuth(a)):e==="SIGNED_OUT"&&(this.realtime.setAuth(),t=="STORAGE"&&this.auth.signOut(),this.changedAccessToken=void 0)}};const SC=(e,t,a)=>new _C(e,t,a);function TC(){if(typeof window<"u")return!1;const e=globalThis.process;if(!e)return!1;const t=e.version;if(t==null)return!1;const a=t.match(/^v(\d+)\./);return a?parseInt(a[1],10)<=18:!1}TC()&&console.warn("⚠️  Node.js 18 and below are deprecated and will no longer be supported in future versions of @supabase/supabase-js. Please upgrade to N
56ode.js 20 or later. For more information, visit: https://github.com/orgs/supabase/discussions/37217");function EC(){if(typeof window>"u")return;const e=location.hostname,a=["lovableproject.com","lovableproject-dev.com","lovable.app","gpt-eng.com","gptengineer.run"].some(_=>e===_||e.endsWith("."+_)),r="[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}",s=a?e.match(new RegExp("^(?:id-preview(?:-[a-z0-9]+)?|project)--("+r+")(?:-dev)?(?=\\.|$)","i"))?.[1]??e.match(new RegExp("^("+r+")(?=[.-])","i"))?.[1]:void 0,l=window.parent&&window.parent!==window;if(!s||!l)return localStorage;const u=e.endsWith(".lovableproject-dev.com")||e.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:""),y=h&&d.test(h)?[h]:u?["https://lovable.dev","http://localhost:3000"]:["https://lovable.dev"],z="lovable-preview-auth:result",m=2e3,g=()=>Math.random().toString(36).slice(2)+Date.now().toString(36),b=(_,T,O)=>new Promise(R=>{const M=g();let Z=!1,I;const N=oe=>{Z||(Z=!0,clearTimeout(I),window.removeEventListener("message",G),R(oe))},G=oe=>{if(y.indexOf(oe.origin)<0)return;const J=oe.data;J&&J.type===z&&J.requestId===M&&N(J)};window.addEventListener("message",G);const Q={type:_,requestId:M,projectId:s,key:T};O!==void 0&&(Q.value=O);for(const oe of y)window.parent.postMessage(Q,oe);I=setTimeout(()=>N(null),m)});let v=!0;const j=250;return{getItem:async _=>{let T=await b("lovable-preview-auth:get",_);return!T&&v&&(await new Promise(O=>setTimeout(O,j)),T=await b("lovable-preview-auth:get",_)),v=!1,T&&T.ok&&typeof T.value=="string"?T.value===""?(localStorage.removeItem(_),null):T.value:localStorage.getItem(_)},setItem:(_,T)=>(localStorage.setItem(_,T),b("lovable-preview-auth:set",_,T).then(O=>{O&&O.ok&&typeof O.value=="string"&&localStorage.getItem(_)===T&&(O.value===""?localStorage.removeItem(_):localStorage.setItem(_,O.value))})),removeItem:_=>(localStorage.removeItem(_),b("lovable-preview-auth:remove",_).then(()=>{}))}}function AC(){return SC("https://bsqqqgovpsungdhezqdx.supabase.co","eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6ImJzcXFxZ292cHN1bmdkaGV6cWR4Iiwicm9sZSI6ImFub24iLCJpYXQiOjE3ODAwNTkxMzEsImV4cCI6MjA5NTYzNTEzMX0.m4c1kasZz4YqvOyfAI2jpQJnHogIVlSPSEAgrTHVu9o",{auth:{storage:EC(),persistSession:!0,autoRefreshToken:!0}})}let Of;const tv=new Proxy({},{get(e,t,a){return Of||(Of=AC()),Reflect.get(Of,t,a)}}),RC=Ja({type:"function"}).client(async({next:e})=>{const{data:t}=await tv.auth.getSession(),a=t.session?.access_token;return e({headers:a?{Authorization:`Bearer ${a}`}:{}})}),OC=Ja({type:"request"}),wg=TR(()=>({requestMiddleware:[OC],functionMiddleware:[RC]}));const nv=(...e)=>e.filter((t,a,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===a).join(" ").trim();const CC=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const NC=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,a,r)=>r?r.toUpperCase():a.toLowerCase());const gg=e=>{const t=NC(e);return t.charAt(0).toUpperCase()+t.slice(1)};var xC={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 DC=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1};const PC=ae.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:a=2,absoluteStrokeWidth:r,className:s="",children:l,iconNode:u,...d},h)=>ae.createElement("svg",{ref:h,...xC,width:t,height:t,stroke:e,strokeWidth:r?Number(a)*24/Number(t):a,className:nv("lucide",s),...!l&&!DC(d)&&{"aria-hidden":"true"},...d},[...u.map(([y,z])=>ae.createElement(y,z)),...Array.isArray(l)?l:[l]]));const av=(e,t)=>{const a=ae.forwardRef(({className:r,...s},l)=>ae.createElement(PC,{ref:l,iconNode:t,className:nv(`lucide-${CC(gg(e))}`,`lucide-${e}`,r),...s}));return a.displayName=gg(e),a};const LC=[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]],MC=av("menu",LC);const UC=[["path",{d:"M18 6 6 18",key:"1bl5f8"}
56],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],$C=av("x",UC),bg=[{to:"/jak-pracuje",label:"Jak pracuję"},{to:"/",hash:"dowody",label:"Dowody"},{to:"/baza-wiedzy",label:"Baza wiedzy"},{to:"/narzedzia",label:"Narzędzia"},{to:"/o-mnie",label:"O mnie"}];function IC(){const[e,t]=ae.useState(!1);return $.jsxs("header",{className:"sticky top-0 z-50 backdrop-blur-xl bg-[oklch(0.14_0.012_250_/_0.78)] border-b border-border",children:[$.jsxs("div",{className:"mx-auto max-w-[1400px] px-6 lg:px-10 h-20 flex items-center justify-between gap-6",children:[$.jsxs(vt,{to:"/",className:"flex flex-col leading-tight",children:[$.jsx("span",{className:"tracking-[0.32em] text-[0.78rem] text-foreground-muted",children:"ADAM  HANCZYN"}),$.jsx("span",{className:"text-[0.82rem] text-foreground-dim",children:"konsultant biznesowy"})]}),$.jsx("nav",{className:"hidden md:flex items-center gap-9 text-[0.95rem] text-foreground-muted",children:bg.map(a=>$.jsx(vt,{to:a.to,hash:a.hash,activeProps:{className:"text-foreground"},className:"hover:text-foreground transition-colors",children:a.label},a.label))}),$.jsx(vt,{to:"/kwalifikacja",className:"hidden md:inline-flex btn-primary text-[0.95rem]",children:"Wejdź do kwalifikacji"}),$.jsx("button",{type:"button","aria-label":e?"Zamknij menu":"Otwórz menu","aria-expanded":e,onClick:()=>t(a=>!a),className:"md:hidden inline-flex items-center justify-center w-11 h-11 -mr-2 text-foreground-muted hover:text-foreground transition-colors",children:e?$.jsx($C,{className:"w-6 h-6"}):$.jsx(MC,{className:"w-6 h-6"})})]}),e&&$.jsx("div",{className:"md:hidden border-t border-border bg-[oklch(0.14_0.012_250_/_0.96)] backdrop-blur-xl",children:$.jsxs("nav",{className:"px-6 py-6 flex flex-col gap-5 text-base text-foreground-muted",children:[bg.map(a=>$.jsx(vt,{to:a.to,hash:a.hash,onClick:()=>t(!1),activeProps:{className:"text-foreground"},className:"hover:text-foreground transition-colors",children:a.label},a.label)),$.jsx(vt,{to:"/kwalifikacja",onClick:()=>t(!1),className:"btn-primary text-[0.95rem] mt-2 text-center",children:"Wejdź do kwalifikacji"})]})})]})}const kg="G-RW6RKBSTNL",vg="1340763764541610",iv="sp_consent",ih=1,rh="sp-open-consent",_t=()=>typeof window>"u"?null:window;function ps(){if(!_t())return null;try{const e=localStorage.getItem(iv);if(e){const t=JSON.parse(e);if(t?.v===ih)return t}}catch{}try{const e=document.cookie.match(/(?:^|; )sp_consent=([^;]+)/);if(e){const t=JSON.parse(decodeURIComponent(e[1]));if(t?.v===ih)return t}}catch{}return null}function BC(e,t){const a={statistics:e,marketing:t,ts:new Date().toISOString(),v:ih};try{localStorage.setItem(iv,JSON.stringify(a))}catch{}try{const r=location.protocol==="https:"?"; Secure":"";document.cookie=`sp_consent=${encodeURIComponent(JSON.stringify(a))}; Max-Age=${3600*24*180}; Path=/; SameSite=Lax${r}`}catch{}return xh(a),a}function HC(){_t()?.dispatchEvent(new Event(rh))}function qC(){const e=_t();!e||e.gtag||(e.dataLayer=e.dataLayer||[],e.gtag=function(){e.dataLayer.push(arguments)},e.gtag("consent","default",{ad_storage:"denied",ad_user_data:"denied",ad_personalization:"denied",analytics_storage:"denied",functionality_storage:"denied",personalization_storage:"denied",security_storage:"granted",wait_for_update:500}))}let jl=!1,_l=!1;function KC(){if(jl)return;jl=!0,qC();const e=_t();e.gtag("consent","update",{analytics_storage:"granted"}),e.gtag("js",new Date),e.gtag("config",kg);const t=document.createElement("script");t.async=!0,t.src=`https://www.googletagmanager.com/gtag/js?id=${kg}`,document.head.appendChild(t)}function JC(){if(_l||!vg)return;_l=!0;const e=_t();if(!e.fbq){const t=function(...r){t.callMethod?t.callMethod(...r):t.queue.push(r)};t.push=t,t.loaded=!0,t.version="2.0",t.queue=[],e.fbq=t,e._fbq=t;const a=document.createElement("script");a.async=!0,a.src="https://connect.facebook.net/en_US/fbevents.js",document.head.appendChild(a)}e.fbq("consent","grant"),e.fbq("init",vg),e.fbq("track","PageView")}function xh(e){const t=_t();!t||!e||(e.statistics?KC():t.gtag&&t.gtag("consent","update",{analytics_storage:"denied"}),e.marketing?JC():t.fbq&&t.fbq("consent","revoke"),t.gtag&&t.gtag("consent","update",{ad_storage:e.marketing?"granted":"denied",ad_user_data:e.marketing?"granted":"denied",ad_personalization:e.marketing?"granted":"denied"}))}function rv(){const e=ps();e&&(e.statistics&&!jl||e.marketing&&!_l)&&xh(e)}function ks(){rv();const e=_t();return!!(e&&_l&&e.fbq&&ps()?.marketing)}function VC(){ks()&&_t().fbq("track","PageView")}function Dh(){rv();const e=_t();return!!(e&&jl&&e.gtag&&ps()?.statistics)}function lL(){ks()&&_t().fbq("track","Lead"),Dh()&&_t().gtag("event","generate_lead")}
56function uL(e){ks()&&_t().fbq("track","ViewContent",{content_name:e})}function dL(e,t){ks()&&_t().fbq("track","InitiateCheckout",{value:t,currency:"PLN",content_name:e}),Dh()&&_t().gtag("event","begin_checkout",{value:t,currency:"PLN",items:[{item_id:e}]})}function fL(e,t){let a=!1;return ks()&&(_t().fbq("track","Purchase",{value:t,currency:"PLN",content_name:e}),a=!0),Dh()&&(_t().gtag("event","purchase",{value:t,currency:"PLN",items:[{item_id:e}]}),a=!0),a}const ZC=["utm_source","utm_medium","utm_campaign","utm_content","utm_term"];let Sl=null,jg=!1;function GC(){if(!(jg||!_t())){jg=!0;try{const e=new URLSearchParams(window.location.search),t={};for(const a of ZC){const r=e.get(a)?.trim();r&&(t[a]=r.slice(0,100))}Object.keys(t).length&&!Sl&&(Sl=t)}catch{}}}function hL(){return Sl?{...Sl}:{}}function YC(){return $.jsxs("footer",{className:"border-t border-border mt-32",children:[$.jsxs("div",{className:"mx-auto max-w-[1400px] px-6 lg:px-10 py-16 grid gap-10 md:grid-cols-3",children:[$.jsxs("div",{children:[$.jsx("div",{className:"tracking-[0.32em] text-[0.78rem] text-foreground-muted",children:"ADAM HANCZYN"}),$.jsx("p",{className:"mt-3 text-foreground-dim text-sm max-w-xs",children:"Doradztwo operacyjne dla właścicieli firm i zarządów. Mniej chaosu. Więcej sterowności."})]}),$.jsxs("div",{className:"text-sm",children:[$.jsx("div",{className:"text-foreground-dim mb-3 uppercase tracking-widest text-[0.7rem]",children:"Nawigacja"}),$.jsxs("ul",{className:"space-y-2",children:[$.jsx("li",{children:$.jsx(vt,{to:"/",className:"hover:text-foreground text-foreground-muted",children:"Start"})}),$.jsx("li",{children:$.jsx(vt,{to:"/jak-pracuje",className:"hover:text-foreground text-foreground-muted",children:"Jak pracuję"})}),$.jsx("li",{children:$.jsx(vt,{to:"/baza-wiedzy",className:"hover:text-foreground text-foreground-muted",children:"Baza wiedzy"})}),$.jsx("li",{children:$.jsx(vt,{to:"/narzedzia",className:"hover:text-foreground text-foreground-muted",children:"Narzędzia"})}),$.jsx("li",{children:$.jsx(vt,{to:"/o-mnie",className:"hover:text-foreground text-foreground-muted",children:"O mnie"})}),$.jsx("li",{children:$.jsx(vt,{to:"/kwalifikacja",className:"hover:text-foreground text-foreground-muted",children:"Kwalifikacja"})})]})]}),$.jsxs("div",{className:"text-sm text-foreground-dim",children:[$.jsx("div",{className:"text-foreground-dim mb-3 uppercase tracking-widest text-[0.7rem]",children:"Kontakt"}),$.jsx("p",{children:"Wszystkie projekty pod NDA. Kwalifikacja przez formularz."})]})]}),$.jsxs("div",{className:"border-t border-border py-6 text-center text-xs text-foreground-dim flex flex-col sm:flex-row gap-2 sm:gap-6 items-center justify-center",children:[$.jsxs("span",{children:["© ",new Date().getFullYear()," PRACUJMNIEJ sp. z o.o. Wszystkie prawa zastrzeżone."]}),$.jsx(vt,{to:"/polityka-prywatnosci",className:"hover:text-foreground",children:"Polityka prywatności i RODO"}),$.jsx(vt,{to:"/regulamin-abonamentu",className:"hover:text-foreground",children:"Regulamin abonamentu"}),$.jsx(vt,{to:"/dpa-abonamentu",className:"hover:text-foreground",children:"Umowa powierzenia (DPA)"}),$.jsx("button",{type:"button",onClick:HC,className:"hover:text-foreground",children:"Ustawienia cookies"})]})]})}function FC(){const[e,t]=ae.useState(!1),[a,r]=ae.useState(!1),[s,l]=ae.useState(!1),[u,d]=ae.useState(!1),h=yR({select:b=>b.location.pathname}),y=ae.useRef(!0),z=ae.useRef(null);if(ae.useEffect(()=>{GC();const b=ps();b?xh(b):t(!0);const v=()=>{const j=ps();l(j?.statistics??!1),d(j?.marketing??!1),r(!0),t(!0)};return window.addEventListener(rh,v),()=>window.removeEventListener(rh,v)},[]),ae.useEffect(()=>{if(y.current){y.current=!1;return}VC()},[h]),ae.useEffect(()=>{e&&z.current?.focus()},[e,a]),!e)return null;const m=(b,v)=>{BC(b,v),t(!1),r(!1)},g="px-4 py-2.5 rounded-md border border-border bg-surface text-foreground text-sm font-medium hover:bg-surface-hover focus-visible:outline focus-visible:outline-2 focus-visible:outline-accent";return $.jsx("div",{ref:z,tabIndex:-1,role:"dialog","aria-modal":"false","aria-labelledby":"
56cookie-title",className:"fixed inset-x-0 bottom-0 z-[60] p-4 sm:p-6 outline-none",children:$.jsxs("div",{className:"mx-auto max-w-3xl card p-5 sm:p-6 shadow-2xl bg-background",children:[$.jsx("h2",{id:"cookie-title",className:"font-semibold",children:"Pliki cookie"}),$.jsxs("p",{className:"mt-2 text-sm text-foreground-muted",children:["Używamy plików cookie do statystyk i reklam. Skrypty ruszają dopiero po Twojej zgodzie. Zgodę możesz zmienić w każdej chwili."," ",$.jsx(vt,{to:"/polityka-prywatnosci",className:"text-accent underline-offset-4 hover:underline",children:"Polityka prywatności"})]}),a&&$.jsxs("div",{className:"mt-4 space-y-3",children:[$.jsx(Cf,{label:"Niezbędne",desc:"Zapamiętanie Twojego wyboru. Zawsze włączone.",checked:!0,disabled:!0,onChange:()=>{}}),$.jsx(Cf,{label:"Statystyka",desc:"Google Analytics: anonimowe statystyki odwiedzin.",checked:s,onChange:l}),$.jsx(Cf,{label:"Marketing",desc:"Meta Pixel: pomiar skuteczności reklam.",checked:u,onChange:d})]}),$.jsxs("div",{className:"mt-5 grid grid-cols-1 sm:grid-cols-3 gap-3",children:[$.jsx("button",{type:"button",className:g,onClick:()=>m(!0,!0),children:"Akceptuję wszystkie"}),$.jsx("button",{type:"button",className:g,onClick:()=>m(!1,!1),children:"Tylko niezbędne"}),a?$.jsx("button",{type:"button",className:g,onClick:()=>m(s,u),children:"Zapisz wybór"}):$.jsx("button",{type:"button",className:g,onClick:()=>r(!0),children:"Ustawienia"})]})]})})}function Cf(e){return $.jsxs("label",{className:"flex items-start justify-between gap-4 text-sm",children:[$.jsxs("span",{children:[$.jsx("span",{className:"font-medium text-foreground",children:e.label}),$.jsx("span",{className:"block text-foreground-muted",children:e.desc})]}),$.jsx("input",{type:"checkbox",role:"switch","aria-checked":e.checked,className:"mt-1 h-5 w-5 accent-[var(--accent)]",checked:e.checked,disabled:e.disabled,onChange:t=>e.onChange(t.target.checked)})]})}const De=nR({head:()=>({meta:[{charSet:"utf-8"},{name:"viewport",content:"width=device-width, initial-scale=1"},{title:"Adam Hanczyn — doradztwo operacyjne dla właścicieli firm"},{name:"description",content:"Pomagam właścicielom rozwijać firmę, zarabiać więcej i pracować mniej. Doradztwo operacyjne 1:1 dla firm 300k+."}],links:[{rel:"stylesheet",href:"https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Inter+Tight:wght@500;600;700;800&display=swap"}]}),shellComponent:WC,notFoundComponent:()=>$.jsx("div",{className:"min-h-[60vh] flex items-center justify-center",children:$.jsxs("div",{className:"text-center",children:[$.jsx("p",{className:"eyebrow mb-6",children:"404"}),$.jsx("h1",{className:"text-4xl font-semibold",children:"Tej strony nie ma."})]})})});function WC(){return $.jsxs("html",{lang:"pl",children:[$.jsx("head",{children:$.jsx(gR,{})}),$.jsxs("body",{children:[$.jsx(IC,{}),$.jsx("main",{children:$.jsx(Ek,{})}),$.jsx(YC,{}),$.jsx(FC,{}),$.jsx(kR,{})]})]})}const XC="modulepreload",QC=function(e){return"/"+e},_g={},he=function(t,a,r){let s=Promise.resolve();if(a&&a.length>0){let h=function(y){return Promise.all(y.map(z=>Promise.resolve(z).then(m=>({status:"fulfilled",value:m}),m=>({status:"rejected",reason:m}))))};document.getElementsByTagName("link");const u=document.querySelector("meta[property=csp-nonce]"),d=u?.nonce||u?.getAttribute("nonce");s=h(a.map(y=>{if(y=QC(y),y in _g)return;_g[y]=!0;const z=y.endsWith(".css"),m=z?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${y}"]${m}`))return;const g=document.createElement("link");if(g.rel=z?"stylesheet":XC,z||(g.as="script"),g.crossOrigin="",g.href=y,d&&g.setAttribute("nonce",d),document.head.appendChild(g),z)return new Promise((b,v)=>{g.addEventListener("load",b),g.addEventListener("error",()=>v(new Error(`Unable to preload CSS for ${y}`)))})}))}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 t().catch(l)})},eN=JSON.parse(`[{"id":1,"slug":"chaos-decyzyjny-najdrozszy-koszt-firmy","title":"Chaos decyzyjny w firmie — ukryty koszt wzrostu","category":"WĄSKIE GARDŁA","categoryNum":"01","readingTime":"7 MIN","excerpt":"W wielu firmach koszt nie wynika już z samego poziomu wynagrodzeń, tylko z tego, że każda sprawa o większym ciężarze wraca na biurko właściciela albo członka zarządu. Wtedy zespół niby pracuje, ale organizacja nie ma własnej przepustowości. Ma tylko pojemność jednej lub dwóch osób.","paragraphs":["Problem zaczyna się tam, gdzie decyzje nie mają właściciela.","W wielu firmach koszt nie wynika już z samego poziomu wynagrodzeń, tylko z tego, że każda sprawa o większym ciężarze wraca na biurko właściciela albo członka zarządu. Wtedy zespół niby pracuje, ale organizacja nie ma własnej przepustowości. Ma tylko pojemność jednej lub dwóch osób.","N
56a papierze wszystko wygląda racjonalnie: ludzie są, sprzedaż jest, kalendarz jest pełny. Problem pojawia się dopiero wtedy, gdy liczba wyjątków, pytań i zatwierdzeń zaczyna być większa niż realna zdolność do ich domykania. W tym momencie firma zwalnia, choć pozornie dalej rośnie.","Chaos decyzyjny nie brzmi groźnie, dopóki nie policzysz jego ceny.","Chaos decyzyjny rzadko wygląda jak spektakularna katastrofa. Częściej przypomina serię drobnych opóźnień, zawieszonych tematów, powrotów do tych samych ustaleń i ludzi, którzy wolą zapytać jeszcze raz, niż zaryzykować samodzielny ruch. Każdy taki moment osobno wydaje się niewinny. Razem zamieniają firmę w organizację o niskiej sterowności.","Najdroższe nie jest nawet to, że decyzje trwają długo. Najdroższe jest to, że nikt nie wie, gdzie kończy się analiza, a zaczyna działanie. Kiedy zespół nie ma jasnych progów decyzyjnych, firma zaczyna płacić dwa razy: raz za pracę, drugi raz za tarcie wokół pracy.","Po czym poznać, że problem już zjada wynik.","Pierwszy sygnał jest prosty: ważne tematy niby są omówione, ale dalej nie są domknięte. Drugi: menedżerowie przychodzą z problemem, a nie z rekomendacją. Trzeci: właściciel coraz częściej jest potrzebny do spraw, które teoretycznie już dawno powinny być obsłużone niżej.","W takim układzie marża ucieka nie tylko przez błędy. Ucieka też przez czas ludzi, którzy zamiast dowozić wynik, czekają na interpretację, doprecyzowanie albo zatwierdzenie. To jest koszt niewidoczny w jednej linijce raportu, ale bardzo widoczny w zmęczeniu firmy.","Standard decyzji musi być wpisany w system, nie w charakter właściciela.","Właściciel, który wszystko wie i szybko decyduje, nie jest rozwiązaniem. Jest obejściem problemu. Działa do momentu, w którym skala firmy przestaje mieścić się w jego głowie, czasie i uwadze. Potem to samo, co wcześniej było przewagą, staje się najwęższym gardłem.","Dobra organizacja nie polega na tym, że ludzie są ostrożni i pytają o zgodę. Polega na tym, że wiedzą, co mogą rozstrzygnąć sami, co wymaga konsultacji i według jakich kryteriów ocenia się dobrą decyzję. To nie jest kwestia atmosfery. To jest kwestia konstrukcji.","Co trzeba uporządkować, żeby firma odzyskała sterowność.","Najpierw trzeba rozdzielić odpowiedzialność za decyzje według ryzyka, wpływu na klienta i wpływu na pieniądze. Potem ustawić progi eskalacji i czas reakcji. Jeśli coś ma wrócić wyżej, powinno wracać z jasną rekomendacją, a nie z samym ciężarem problemu.","Dopiero po takim porządku firma zaczyna oddychać. Mniej pytań, mniej zawieszeń, mniej ręcznego sterowania. Chaos decyzyjny nie znika od lepszych chęci. Znika wtedy, gdy decyzje przestają być nawykiem jednej osoby i stają się elementem architektury firmy."],"image":"/images/articles/art-01.webp"},{"id":2,"slug":"wlasciciel-nie-ma-zespolu-ma-kolejke","title":"Nie masz zespołu, masz kolejkę — jak rozpoznać przeciążenie właściciela","category":"ZESPÓŁ","categoryNum":"02","readingTime":"7 MIN","excerpt":"Właściciel często ma wrażenie, że bez niego wiele tematów po prostu się nie domknie. Część firm traktuje to jak dowód jakości albo zaangażowania. W praktyce to najczęściej sygnał, że organizacja nie ma dobrze ustawionych granic odpowiedzialności.","paragraphs":["Kolejka zaczyna się od źle ustawionej odpowiedzialności.","Właściciel często ma wrażenie, że bez niego wiele tematów po prostu się nie domknie. Część firm traktuje to jak dowód jakości albo zaangażowania. W praktyce to najczęściej sygnał, że organizacja nie ma dobrze ustawionych granic odpowiedzialności.","Ludzie pytają, bo nie wiedzą, gdzie kończy się ich mandat. Menedżerowie eskalują, bo nie mają jasnych kryteriów decyzji. Właściciel odpowiada, bo szybciej zrobić to samemu niż poprawiać cudze błędy. I tak powstaje kolejka, która rośnie razem z firmą.","Zaangażowanie właściciela bywa mylone z kontrolą jakości.","Wielu przedsiębiorców mówi: „u mnie to działa, bo wszystko przechodzi przeze mnie\\". To nie jest model działania. To jest model kompensacji. Firma jedzie na ręcznym spinaniu jakości przez jedną osobę, a nie na systemie, który tę jakość utrzymuje.","Problem pojawia się wtedy, gdy rośnie liczba klientów, ludzi i zależności. To, co przy małej skali wyglądało jak dbałość, przy większej skali zaczyna przypominać korek. Właściciel już nie zwiększa jakości. Zaczyna ograniczać przepustowość.","Dobry zespół też nie udźwignie złej konstrukcji pracy.","Samo doświadczenie ludzi nie wystarczy, jeśli codzienny układ pracy premiuje zależność od jednej osoby. Nawet mocni ludzie zaczną pracować ostrożnie, reaktywnie i z nadmiernym zabezpieczaniem decyzji, jeśli każda pomyłka kończy się odebraniem im sprawczości.","To dlatego problem zwykle nie leży w tym, że zespół jest za słaby. Problem leży w tym, że firma nie daje mu warunków do dojrzewania operacyjnego. Bez jasnych ról, standardów i granic odpowiedzialności ludzie nie budują samodzielności. Budują nawyk eskalacji.","Po czym poznać, że firma pracuje na kolejce.","Najprostszy test brzmi: co dzieje się z trudniejszą sprawą, kiedy właściciel jest dwa dni niedostępny. Jeśli tematy stają, firma nie ma zespołu. Ma system, który czeka na jedną osobę. To samo widać, gdy menedżer bez właściciela nie chce zatwierdzić rabatu, rozwiązać konfliktu albo domknąć reklamacji.","Kolejka ujawnia się też w kalendarzu. Coraz więcej spotkań służy tylko temu, żeby przesunąć decyzje z jednego miejsca do drugiego. Wtedy ludzie są zajęci, ale firma nie staje się bardziej sterowna. Staje się bardziej zależna.","Zespół zaczyna istnieć dopiero wtedy, gdy umie domykać.","Prawdziwy zespół nie polega na tym, że wszyscy są mili, zaangażowani i obecni. Polega na tym, że ludzie rozumieją odpowiedzialność, potrafią podjąć właściwą decyzję i biorą ciężar jej konsekwencji na swój poziom. Dopiero wtedy właściciel przestaje być centralą przełączeniową.","Jeżeli chcesz zbudować zespół, nie pytaj najpierw, kto jest lojalny. Pytaj, które decyzje mogą zostać niżej, jakie standardy są potrzebne i co dziś wraca do góry bez sensu. Zespół 
56nie zaczyna się od rekrutacji. Zaczyna się od konstrukcji odpowiedzialności."],"image":"/images/articles/art-02.webp"},{"id":3,"slug":"waskie-gardlo-nie-znika-od-motywacji","title":"Wąskie gardło w firmie — dlaczego motywacja nie rozwiązuje problemu","category":"PROCESY","categoryNum":"03","readingTime":"8 MIN","excerpt":"Kiedy firma wpada w zator operacyjny, naturalnym odruchem jest docisnąć tempo: więcej spotkań, więcej kontroli, więcej pilnych tematów, więcej motywowania. To daje krótkie przyspieszenie, ale nie usuwa przyczyny. Jeżeli przepływ jest źle zbudowany, większa energia tylko szybciej ujawnia chaos.","paragraphs":["Większa energia nie naprawia złej konstrukcji.","Kiedy firma wpada w zator operacyjny, naturalnym odruchem jest docisnąć tempo: więcej spotkań, więcej kontroli, więcej pilnych tematów, więcej motywowania. To daje krótkie przyspieszenie, ale nie usuwa przyczyny. Jeżeli przepływ jest źle zbudowany, większa energia tylko szybciej ujawnia chaos.","Dlatego wąskie gardła nie powinny być diagnozowane przez poziom zaangażowania ludzi. Najpierw trzeba zobaczyć, gdzie proces zwalnia, kto go domyka, ile jest przekazań, gdzie pojawia się oczekiwanie i ile wyjątków musi przejść przez ten sam punkt kontrolny.","Najdroższe zatory są zwykle ukryte w przekazaniach.","Firmy często szukają problemu tam, gdzie widać napięcie: na produkcji, w sprzedaży, w obsłudze klienta. Tymczasem największe zatory siedzą między etapami. W momencie przekazania odpowiedzialności, informacji albo decyzji. Tam, gdzie nikt nie pilnuje jakości wejścia i jakości wyjścia, proces zaczyna się rozłazić.","Zespół wtedy wygląda na zajęty, bo cały czas coś robi. Tyle że znacząca część energii idzie nie w wynik, tylko w korygowanie braków, dopowiadanie kontekstu i odzyskiwanie informacji, które powinny były przejść dalej od razu. To nie jest praca szybka. To jest praca obciążona tarciem.","Motywacja jest paliwem. System jest silnikiem.","Jeżeli silnik jest źle złożony, dolanie większej ilości paliwa niczego nie naprawi. Można na chwilę podnieść obroty, ale kosztem temperatury, przeciążeń i kolejnych awarii. Z firmą jest tak samo. Presja może chwilowo poprawić tempo, ale bez przebudowy przepływu tylko przyspieszy wypalenie ludzi i właściciela.","W praktyce oznacza to, że przed każdą próbą dociskania zespołu trzeba sprawdzić, czy ludzie mają w ogóle szansę dowieźć wynik bez dodatkowego chaosu. Jeśli nie mają, problemem nie jest dyscyplina. Problemem jest architektura pracy.","Wąskie gardło trzeba nazwać precyzyjnie.","Za słowo wąskie gardło często wrzuca się wszystko: za mało sprzedaży, za wolne wdrożenia, za dużo błędów, za długie odpowiedzi na maile. To jest za szerokie. Dobre rozpoznanie powinno odpowiedzieć bardzo konkretnie: gdzie temat czeka, na co czeka, kto go zatrzymuje i dlaczego właśnie tam.","Dopóki nie nazwiesz punktu blokady, będziesz leczył objawy. Spotkaniami, kontrolą, motywacją, nowym narzędziem albo kolejną osobą na pokładzie. A firma dalej będzie wpadać w ten sam zator, tylko pod inną nazwą.","Prawdziwa poprawa zaczyna się od przebudowy przepływu.","Jeżeli chcesz usunąć wąskie gardło, musisz przeprojektować system: liczbę przekazań, zakres odpowiedzialności, standard informacji wejściowej i momenty decyzyjne. Dopiero potem można przyspieszać. Inaczej firma będzie tylko szybciej wpadała w te same ściany.","Dobra przebudowa procesu nie wygląda spektakularnie. Wygląda spokojnie. Mniej wyjątków, mniej pytań, mniej powrotów do właściciela i więcej przewidywalności w wyniku. To właśnie oznacza prawdziwą przepustowość."],"image":"/images/articles/art-03.webp"},{"id":4,"slug":"proces-bez-wlasciciela-nie-jest-procesem-jest-zyczeniem","title":"Proces bez właściciela — jak rozpoznać życzenia zamiast procesów","category":"ZARZĄD","categoryNum":"04","readingTime":"7 MIN","excerpt":"W wielu organizacjach proces istnieje głównie w deklaracji. Ma nazwę, bywa opisany w kilku punktach, czasem nawet ma diagram. Problem w tym, że nikt realnie nie odpowiada za jego wynik od początku do końca. Wtedy proces nie steruje firmą. Jest tylko opowieścią o tym, jak firma chciałaby działać.","paragraphs":["Nazwa procesu nie daje jeszcze procesu.","W wielu organizacjach proces istnieje głównie w deklaracji. Ma nazwę, bywa opisany w kilku punktach, czasem nawet ma diagram. Problem w tym, że nikt realnie nie odpowiada za jego wynik od początku do końca. Wtedy proces nie steruje firmą. Jest tylko opowieścią o tym, jak firma chciałaby działać.","Jeżeli temat przechodzi przez kilka działów i na żadnym etapie nie ma właściciela, który pilnuje jakości, terminu i domknięcia, organizacja będzie działała na przerzutach. A przerzuty zawsze kosztują więcej niż odpowiedzialność.","Brak właściciela procesu zawsze tworzy czyjąś pracę ręczną.","Tę lukę najczęściej wypełnia właściciel firmy, dyrektor operacyjny albo najbardziej odpowiedzialna osoba w zespole. Zaczynają ręcznie spinać ustalenia, przypominać o terminach, doprecyzowywać standard i gasić skutki niedomknięć. Firma działa, ale za cenę stałego nadzoru z góry.","To właśnie dlatego proces bez właściciela nie jest neutralny. On aktywnie produkuje tarcie, błędy i zależność od jednej osoby, która musi wszystko spinać ręcznie. Im większa firma, tym wyższy rachunek za takie pozorne procesy.","Właściciel procesu to nie ozdobnik w tabeli.","W wielu firmach próbuje się rozwiązać temat przez wpisanie nazwiska do Excela. To jeszcze nic nie daje. Prawdziwy właściciel procesu musi mieć mandat do reagowania, poprawiania standardu i egzekwowania jakości. Inaczej odpowiada tylko z nazwy, a realnie dalej nikt niczego nie trzyma.","Taka osoba powinna wiedzieć, co jest wejściem do procesu, jaki ma być wynik, gdzie pojawiają się typowe błędy i które wskaźniki pokazują, że temat się rozjeżdża. Bez tego nadal mamy życzenie, tylko ładniej opisane.","Zarząd potrzebuje przewidywalności, nie heroicznych akcji ratunkowych.","Proces z właścicielem daje coś, czego większości firm najbardziej brakuje: przewidywalność. Nie idealność. Nie brak błędów. Przewidywalność. Zarząd ma wiedzieć, kto odpowiada za temat, kiedy proces zaczyna się rozjeżdżać i gdzie należy interweniować.","Jeżeli firma żyje od jednej akcji ratunkowej do drugiej, to nie ma procesów. Ma serię doraźnych mobilizacji. Taki model może działać przez chwilę, ale nie buduje spokojnego wzrostu. Buduje chroniczne przeciążenie.","Jak wygląda proces, 
56który naprawdę działa.","Działający proces ma właściciela, standard wejścia, standard wyjścia i jasny moment eskalacji. Wiadomo, kto ma go pilnować, co znaczy wynik akceptowalny i kiedy temat trzeba korygować, zanim wybuchnie klientowi albo zarządowi w rękach.","Dopiero wtedy proces przestaje być życzeniem. Zaczyna być mechanizmem, który porządkuje firmę i daje zarządowi sterowność, zamiast kolejnych niespodzianek na koniec miesiąca."],"image":"/images/articles/art-04.webp"},{"id":5,"slug":"produkcja-tworzywa-sztuczne-wzrost-bez-zaleznosci-od-ludzi","title":"Case study: produkcja tworzyw sztucznych — wzrost z 4 do 10 mln PLN","category":"CASE STUDY","categoryNum":"05","readingTime":"8 MIN","excerpt":"To była firma z obszaru produkcji i obróbki tworzyw sztucznych, około 35 osób, model B2B. Produkcja produkowała, zakupy kupowały, a biznes z zewnątrz wyglądał stabilnie. Problem był głębiej. Wiedza operacyjna siedziała głównie w głowach ludzi z wieloletnim stażem, procesy były słabo udokumentowane, a park maszynowy coraz mniej pasował do skali, którą właściciel chciał osiągnąć.","paragraphs":["Punkt wyjścia: firma działała, ale była zbudowana na pamięci ludzi.","To była firma z obszaru produkcji i obróbki tworzyw sztucznych, około 35 osób, model B2B. Produkcja produkowała, zakupy kupowały, a biznes z zewnątrz wyglądał stabilnie. Problem był głębiej. Wiedza operacyjna siedziała głównie w głowach ludzi z wieloletnim stażem, procesy były słabo udokumentowane, a park maszynowy coraz mniej pasował do skali, którą właściciel chciał osiągnąć.","Do tego sprzedaż nie była zbudowana systemowo. Przychód w dużej mierze trzymał się na relacjach właściciela. Wzrost był teoretycznie możliwy, ale firma nie miała jeszcze konstrukcji, która pozwalałaby rosnąć bez dokładania kolejnych godzin właściciela i bez zwiększania ryzyka operacyjnego.","Pierwsza praca nie dotyczyła maszyn. Dotyczyła decyzji.","Właściciel wiedział, że zmiana jest potrzebna, ale to nie był projekt z kategorii kupić albo nie kupić. To był ruch ingerujący w firmę budowaną latami. Dlatego praca zaczęła się od diagnozy przepustowości i punktów blokujących skalowanie, ale równolegle szła druga warstwa: rozbieranie dużych decyzji na liczby, ryzyka i scenariusze.","Nie interesowało mnie uspokajanie właściciela. Interesowało mnie sprawdzenie, czy jego obawy są zasadne, a jeśli tak, to jak je policzyć. Emocje nie znikają od tabeli. Ale kiedy liczysz warianty, koszt bezczynności i cenę błędnej decyzji, emocje przestają prowadzić proces za kierownicę. To był jeden z ciekawszych elementów tego projektu.","Wdrożenie weszło równolegle w cztery obszary.","Pierwszy obszar to transformacja parku maszynowego w stronę technologii druku 3D i rozwiązań, które ograniczały pracochłonne operacje wymagające stałego nadzoru. Drugi to dokumentacja i standaryzacja procesów produkcyjnych, tak żeby wiedza przestała być prywatnym aktywem kilku osób i weszła do systemu firmy.","Trzeci obszar dotyczył automatyzacji wybranych etapów produkcji, co przełożyło się na niższą liczbę błędów, większą powtarzalność i lepszy koszt jednostkowy. Czwarty obszar to zmiana modelu sprzedaży: odejście od sprzedaży reaktywnej opartej na właścicielu i zbudowanie procesu, na którym zaczęło działać dwóch wdrożonych handlowców.","Efekt po 24 miesiącach: większy przychód, wyższa marża, mniejsza zależność od pojedynczych ludzi.","Po dwóch latach firma zwiększyła przychód z 4 mln do 10 mln PLN. Marża wzrosła z 21% do 30%. Zatrudnienie na produkcji zostało zredukowane nie przez chaosowe cięcie kosztów, tylko przez przebudowę technologii i usunięcie pracy, która wcześniej była ręcznie dokładana do złej struktury.","Równolegle sprzedaż przestała być wyłącznie domeną właściciela. Dwóch handlowców działało już na procesie, a nie na jego prywatnych relacjach. To zmieniło charakter firmy. Nie chodziło tylko o to, że urosła. Chodziło o to, że stała się mniej krucha i bardziej odporna na rotację, absencję oraz przeciążenie jednego człowieka.","Najważniejsza zmiana nie była techniczna. Była właścicielska.","Na końcu tego procesu właściciel miał większą pewność siebie nie dlatego, że ktoś go poklepał po plecach. Miał ją dlatego, że sam przeszedł przez liczby, scenariusze i decyzje, które później potwierdziły się w wyniku. To daje inny rodzaj spokoju. Nie motywacyjny. Operacyjny.","W wielu firmach zmiana zaczyna się dopiero wtedy, gdy właściciel przestaje pytać, czy da radę, i zaczyna liczyć, co się stanie, jeśli nic nie zrobi. Tutaj właśnie to się wydarzyło. A potem reszta mogła już wejść w system."],"image":"/images/articles/art-05.webp"},{"id":6,"slug":"handel-budowlanka-czasem-wynikiem-jest-ze-firma-nie-upadla","title":"Case study: handel budowlany — jak uratować firmę przed bankructwem","category":"CASE STUDY","categoryNum":"06","readingTime":"7 MIN","excerpt":"To była firma handlowa z branży budowlanej, około 25 osób, rodzinny zarząd trzyosobowy. Klienci byli, magazyn był, historia była. Tyle że firma przestała zarabiać i nikt wewnątrz nie potrafił precyzyjnie powiedzieć dlaczego. Po audycie obraz zrobił się brutalnie czytelny: magazyn wyceniony na ponad 3 mln PLN przy miesięcznym obrocie około 2 mln, bałagan inwentaryzacyjny, księgowość prowadzona wewnętrznie z błędami i zarząd, który nie rozróżniał marży od narzutu.","paragraphs":["Punkt wyjścia: firma działała od lat, ale przestała rozumieć własne liczby.","To była firma handlowa z branży budowlanej, około 25 osób, rodzinny zarząd trzyosobowy. Klienci byli, magazyn był, historia była. Tyle że firma przestała zarabiać i nikt wewnątrz nie potrafił precyzyjnie powiedzieć dlaczego. Po audycie obraz zrobił się brutalnie czytelny: magazyn wyceniony na ponad 3 mln PLN przy miesięcznym obrocie około 2 mln, bałagan inwentaryzacyjny, księgowość prowadzona wewnętrznie z błędami i zarząd, który nie rozróżniał marży od narzutu.","To nie był problem jednej złej decyzji. To był problem braku narzędzi do oceny decyzji. Wskaźniki były nieubłagane: albo głęboka zmiana, albo bankructwo. Nie jako czarny scenariusz na slajdzie. Jako kierunek, w którym firma już realnie jechała.","Drugi problem był trudniejszy niż liczby: rodzinny zarząd działał na dwóch różnych systemach poznawczych.","Jeden z braci pracował na danych, miał dobre pomysły i rozumiał liczb
56y. Był cichy. Drugi był głośny, energiczny i skuteczny sprzedażowo, ale działał głównie na intuicji. Uważał, że skoro firma przez lata jakoś działała, to dane muszą się mylić. To klasyczny problem w firmach rodzinnych: nie konflikt kompetencji, tylko konflikt sposobu widzenia rzeczywistości.","Na trzygodzinnym spotkaniu pokazałem twarde liczby i prognozy. Cichy brat rozumiał każdy slajd. Głośny brat obraził się nie na dane, tylko na posłańca. Wymusił zakończenie współpracy. To koszt tej roboty, który czasem trzeba przyjąć w pakiecie. Kiedy pokazujesz kierunek do ściany, nie każdy dziękuje za mapę.","Zwrot przyszedł kilka miesięcy później.","Po czasie zadzwonił cichy brat. Firma zaczęła wdrażać zalecenia z audytu. Sprzedali część majątku, wpuścili gotówkę do spółki i ustabilizowali sytuację. Głośny brat nie zmienił się nagle w analityka, ale zrozumiał tyle, żeby przestać blokować ruchy konieczne do przeżycia.","Dziś operacyjnie prowadzi firmę ten brat, który rozumie liczby i potrafi na nich pracować. Drugi odpowiada za handel, bo jest w tym dobry. Nie każdy musi zarządzać całością. Czasem największym postępem jest ustawienie ludzi tam, gdzie ich mocne strony pomagają firmie, zamiast ją rozrywać.","Efekt nie wygląda spektakularnie na konferencji. Wygląda dobrze w realnym życiu.","Nie mam tu slajdu z wykresem wzrostu 300%. Mam coś ważniejszego: firmę, która była na prostej drodze do upadku i z niej zjechała. Przy takim punkcie startowym to nie jest detal. To jest wynik. Czasem najpierw trzeba odzyskać zdolność do istnienia, dopiero potem myśleć o ekspansji.","Ten case study jest ważny właśnie dlatego, że nie jest efektowny. Pokazuje, że liczby nie służą do robienia wrażenia. Służą do tego, żeby w porę zobaczyć, czy firma jeszcze jedzie, czy już tylko toczy się siłą rozpędu. Tutaj udało się zatrzymać zły kierunek, zanim rachunek zrobił się nieodwracalny."],"image":"/images/articles/art-06.webp"},{"id":7,"slug":"wskazniki-finansowe-ktore-musisz-znac-jesli-prowadzisz-wlasna-firme","title":"Wskaźniki finansowe dla właściciela firmy — co musisz wiedzieć","category":"FINANSE","categoryNum":"07","readingTime":"12 MIN","excerpt":"Wielu przedsiębiorców prowadzi firmę na wyczucie nie dlatego, że są nieodpowiedzialni, tylko dlatego, że nikt ich nie nauczył patrzeć na liczby jak na narzędzie zarządcze. Raport księgowy przychodzi raz na miesiąc, bywa spóźniony i często bardziej zaciemnia obraz, niż go wyjaśnia. Efekt jest przewidywalny: firma może rosnąć przychodowo i jednocześnie tracić płynność, mieć pełny magazyn i pusty rachunek albo zatrudniać coraz więcej ludzi i zarabiać coraz mniej na każdej złotówce sprzedaży.","paragraphs":["Większość właścicieli nie ma problemu z pracą. Ma problem z czytaniem liczb.","Wielu przedsiębiorców prowadzi firmę na wyczucie nie dlatego, że są nieodpowiedzialni, tylko dlatego, że nikt ich nie nauczył patrzeć na liczby jak na narzędzie zarządcze. Raport księgowy przychodzi raz na miesiąc, bywa spóźniony i często bardziej zaciemnia obraz, niż go wyjaśnia. Efekt jest przewidywalny: firma może rosnąć przychodowo i jednocześnie tracić płynność, mieć pełny magazyn i pusty rachunek albo zatrudniać coraz więcej ludzi i zarabiać coraz mniej na każdej złotówce sprzedaży.","Wskaźniki finansowe nie są zabawką dla księgowych. Są deską rozdzielczą właściciela. Jeśli ich nie czytasz, nie zarządzasz firmą. Reagujesz na skutki, zamiast wcześniej widzieć przyczynę.","Najpierw porządek pojęć: marża i narzut to nie to samo.","To jeden z najbardziej kosztownych błędów, jakie widzę. Ktoś mówi, że ma 30% marży, a po chwili okazuje się, że ma 30% narzutu. Jeżeli kupujesz towar za 100 zł i sprzedajesz za 130 zł, narzut wynosi 30%, ale marża już tylko 23,1%. Wzór na marżę to (cena sprzedaży minus koszt) podzielone przez cenę sprzedaży. Wzór na narzut to ta sama różnica podzielona przez koszt.","Dlaczego to ważne? Bo jeśli myślisz w narzutach, a biznes realnie działa w marżach, zaniżasz koszty w głowie i podejmujesz błędne decyzje cenowe. Przy niskich marżach taka pomyłka potrafi zjeść cały zysk szybciej, niż właściciel zdąży zrozumieć, co się właściwie wydarzyło.","Rentowność mówi, czy model w ogóle zarabia.","Najpierw patrzę na marżę brutto, bo ona pokazuje, ile zostaje po zdjęciu bezpośrednich kosztów sprzedaży lub produkcji. Jeśli tu jest za ciasno, żadna kosmetyka kosztów stałych nie uratuje wyniku. Potem wchodzi marża operacyjna, czyli EBIT w relacji do przychodu. To jeden z najważniejszych wskaźników dla właściciela, bo pokazuje, ile firma zarabia na swojej podstawowej działalności, zanim dołożymy podatki i finansowanie.","Dopiero dalej ma sens patrzeć na marżę netto i EBITDA. Marża netto mówi, ile realnie zostaje po wszystkim. EBITDA porządkuje obraz operacji przed amortyzacją i kosztami finansowania, więc jest ważna przy rozmowach z inwestorem, bankiem albo potencjalnym kupującym. Trzeba tylko pamiętać, że EBITDA nie jest gotówką. Firma może mieć ładną EBITDA i fatalną płynność, jeśli kapitał zjadają zapasy, należności albo inwestycje.","Płynność odpowiada na prostsze pytanie: czy firma przeżyje najbliższe miesiące.","Re
56ntowna firma może zbankrutować. Wystarczy, że sprzedaje z odroczonym terminem, trzyma za dużo towaru albo za wolno ściąga należności. Dlatego poza rentownością trzeba czytać wskaźnik płynności bieżącej, szybkiej i natychmiastowej. Current ratio mówi, czy aktywa obrotowe wystarczą na bieżące zobowiązania. Quick ratio zdejmuje z tego obrazka zapasy, bo ich nie zawsze da się szybko zamienić na gotówkę. Cash ratio pokazuje najbardziej konserwatywny wariant: co firma jest w stanie spłacić samą gotówką.","Tu bardzo łatwo wpaść w iluzję. Można mieć wysoki wskaźnik płynności bieżącej i jednocześnie realny problem z płaceniem, jeśli połowa aktywów obrotowych leży w magazynie, który rotuje za wolno. Właśnie dlatego szybka płynność często mówi prawdę brutalniej niż podstawowe saldo w Excelu.","Efektywność operacyjna pokazuje, gdzie firma zamraża kapitał.","Tutaj wchodzą wskaźniki rotacji. Rotacja zapasów i dni zapasu mówią, jak długo towar leży zanim zamieni się w sprzedaż. DSO pokazuje, ile dni średnio czekasz na pieniądze od klientów. DPO mówi, jak długo finansujesz się u dostawców. Z tych trzech elementów składa się cykl konwersji gotówki: DSO plus DSI minus DPO. Im niższy wynik, tym mniej pieniędzy trzeba pompować w codzienną działalność.","To jest miejsce, w którym często leży gotówka, o którą właściciel bez sensu walczy dodatkową sprzedażą albo kredytem. Skrócenie DSO o kilkanaście dni czy uporządkowanie zakupów potrafi uwolnić setki tysięcy złotych bez dokładania ani jednego nowego klienta. Zysk to opinia, gotówka to fakt. A rotacja bardzo szybko pokazuje, gdzie ta gotówka utknęła.","Zadłużenie i zwrot z kapitału trzeba czytać razem, nie osobno.","Wskaźnik ogólnego zadłużenia, pokrycie odsetek i relacja długu netto do EBITDA pokazują, jak bardzo firma jest wrażliwa na pogorszenie warunków. Jeśli EBIT ledwo pokrywa odsetki, nie trzeba wielkiego kryzysu, żeby zrobiło się ciasno. Z kolei dług netto do EBITDA to wskaźnik, na który banki patrzą bardzo uważnie, bo mówi, ile lat zajęłaby spłata długu z bieżącej zdolności operacyjnej.","Obok tego warto trzymać ROE, ROA i ROCE. ROE pokazuje zwrot na kapitale właściciela. ROA usuwa efekt dźwigni i pozwala zobaczyć czystszą efektywność aktywów. ROCE jest bardzo przydatny tam, gdzie biznes jest kapitałochłonny. Dopiero zestawienie tych miar pokazuje, czy firma naprawdę dobrze wykorzystuje zaangażowany kapitał, czy tylko dobrze wygląda dzięki finansowaniu.","Na końcu i tak wszystko wraca do cash flow i rutyny czytania liczb.","Rachunek zysków i strat pokazuje wynik memoriałowy. Cash flow pokazuje, co realnie dzieje się z pieniędzmi. Dlatego trzeba rozumieć przepływy operacyjne, inwestycyjne i finansowe oraz znać free cash flow, czyli gotówkę, która zostaje po sfinansowaniu koniecznych inwestycji. To ona odpowiada na pytanie, ile firma naprawdę ma do dyspozycji na rozwój, spłatę długu albo wypłatę dla właściciela.","Nie patrz na pojedynczy wskaźnik w oderwaniu. Patrz na trendy, porównuj się do własnej branży, szukaj sprzeczności między wskaźnikami i ustaw własne progi alarmowe. Najgorszy model to czytanie liczb raz na kwartał albo dopiero wtedy, gdy coś boli. Właściciel nie musi być księgowym. Ale musi rozumieć, co liczby mówią o jego firmie, bo to on podejmuje decyzje i to on zapłaci za ignorowanie tablicy rozdzielczej."],"image":"/images/articles/art-07.webp"},{"id":8,"slug":"zabijanie-poslanca-dlaczego-ludzie-atakuja-tego-kto-mowi-prawde","title":"Zabijanie posłańca — psychologia biznesu","category":"PSYCHOLOGIA BIZNESU","categoryNum":"08","readingTime":"16 MIN","excerpt":"Wchodzę do firmy z danymi. Liczby są nieubłagane — firma idzie w złym kierunku, model nie działa, decyzje z ostatnich dwóch lat kosztowały więcej niż ktokolwiek chce przyznać. Rozkładam to na stole. Spokojnie, bez dramatu, z konkretami. I wtedy ktoś w pokoju wybucha. Nie na dane. Na mnie.","paragraphs":["Klasyczne zabijanie posłańca. Mechanizm stary jak cywilizacja.","Wchodzę do firmy z danymi. Liczby są nieubłagane — firma idzie w złym kierunku, model nie działa, decyzje z ostatnich dwóch lat kosztowały więcej niż ktokolwiek chce przyznać. Rozkładam to na stole. Spokojnie, bez dramatu, z konkretami. I wtedy ktoś w pokoju wybucha. Nie na dane. Na mnie.","Klasyczne zabijanie posłańca. Mechanizm opisany już w starożytnej Grecji — Plutarch opisuje, jak Spartanie zabijali heroldów przynoszących niepomyślne informacje. Sofokles w Antygonie pokazuje strażnika, który boi się powiedzieć Kreonowi prawdę. Przez wieki metafora ewoluowała, ale mechanizm pozostał ten sam: kiedy rzeczywistość jest nie do przyjęcia, łatwiej zaatakować tego, kto ją przynosi, niż zmierzyć się z tym, co przynosi.","Dysonans poznawczy: mózg nie toleruje sprzeczności.","Fundament całego zjawiska. Leon Festinger opisał to w 1957 roku: dysonans poznawczy to stan napięcia psychicznego, który pojawia się, kiedy dwa przek
56onania lub przekonanie i nowa informacja są ze sobą sprzeczne. Mózg tego stanu nie toleruje — i robi wszystko, żeby go zredukować.","Właściciel firmy przez lata budował przekonanie: 'Jestem dobrym przedsiębiorcą. Moje decyzje są trafne. Firma idzie we właściwym kierunku.' To nie jest próżność — to konieczność psychologiczna. Żeby działać, trzeba wierzyć w sens swojego działania. Kiedy pojawia się ktoś z zewnątrz i mówi: 'Twoje decyzje z ostatnich trzech lat doprowadziły firmę na skraj utraty płynności' — te dwa obrazy rzeczywistości nie mogą współistnieć.","Mózg ma trzy wyjścia: zmienić przekonanie (najtrudniejsze psychologicznie), zreinterpretować nową informację (deprecjonowanie źródła), lub zaatakować posłańca (przeniesienie napięcia na zewnątrz). Większość ludzi, z którymi pracuję, nie wybiera pierwszego wyjścia przy pierwszym kontakcie z trudną prawdą.","Zagrożenie tożsamości: gdy firma to rozszerzenie Ja.","Dla właściciela firmy — szczególnie takiego, który ją zbudował od zera — krytyczna ocena biznesu to nie jest ocena biznesu. To ocena jego samego. Psychologowie nazywają to identity fusion — zlaniem tożsamości z obiektem. Kiedy firma jest rozszerzeniem Ja, atak na firmę jest atakiem na osobę.","To dlatego ten sam właściciel, który spokojnie przyjmuje krytykę konkurencji, eksploduje gdy ktoś kwestionuje jego decyzje wewnątrz firmy. Konkurencja jest zewnętrzna. Konsultant, który mówi 'twój model sprzedaży nie działa' — jest wewnątrz. Zbyt blisko. Henri Tajfel i John Turner pokazali, że ludzie silnie bronią grup, z którymi się identyfikują — bo atak na grupę to atak na tożsamość jednostki.","Efekt potwierdzenia: mózg szuka tego, co potwierdza jego przekonania.","Confirmation bias — efekt potwierdzenia — to jeden z najlepiej udokumentowanych błędów poznawczych. Mózg naturalnie szuka informacji, które potwierdzają istniejące przekonania, i odrzuca lub minimalizuje te, które im zaprzeczają.","Właściciel, który wierzy że firma idzie dobrze, przez lata zwracał uwagę na dobre miesiące, racjonalizując złe, słuchał pracowników, którzy potwierdzali jego ocenę, ignorował sygnały alarmowe. Kiedy pojawia się ktoś z pełnym obrazem — z danymi, które pokazują trend a nie pojedyncze punkty — kontrast jest brutalny. I tym bardziej bolesny, że podważa całą narrację ostatnich lat.","Reaktancja psychologiczna: gdy nacisk uruchamia opór.","Jack Brehm opisał reaktancję w 1966 roku: kiedy człowiek czuje, że jego wolność wyboru lub autonomia jest zagrożona, pojawia się opór — często odwrotnie proporcjonalny do siły nacisku. Właściciel firmy to często człowiek, który całe życie zawodowe zbudował na autonomii.","Kiedy ktoś z zewnątrz mówi mu, co ma robić — nawet jeśli ma rację — uruchamia się reaktancja. 'Nikt mi nie będzie mówił, co mam robić z moją firmą.' Im mocniej konsultant naciska, tym silniejszy opór. Paradoks: im lepsza analiza, im twardsze dane — tym większe ryzyko reaktancji u osoby, która nie jest gotowa psychicznie na zmianę.","Firmy rodzinne: gdzie mechanizmy nakładają się i wzmacniają.","Firmy rodzinne zasługują na osobny komentarz. Po pierwsze, granica między rodziną a firmą jest rozmyta. Krytyka firmy to krytyka rodziny. Zmiana struktury to zagrożenie dla relacji. Po drugie, historia firmy rodzinnej jest często historią rodzinną — ta emocjonalna warstwa sprawia, że racjonalna rozmowa o wskaźnikach finansowych odbywa się jednocześnie na poziomie tożsamości, lojalności i rodzinnej narracji.","Po trzecie, w firmach rodzinnych rzadko działają formalne mechanizmy, które w korporacjach wymuszają konfrontację z rzeczywistością. Nieprzyjemne prawdy łatwiej zamieść pod dywan. Kiedy w takim środowisku pojawia się ktoś z zewnątrz i mówi, że cesarz jest nagi — reakcja bywa gwałtowna. Nie dlatego, że ludzie są irracjonalni. Dlatego, że stawka jest nieporównywalnie wyższa.","Dla właściciela: pytania, które warto sobie zadać.","Jeśli jesteś właścicielem firmy i rozpoznajesz w sobie któryś z opisanych mechanizmów — to dobra wiadomość. Świadomość mechanizmu to pierwszy krok do wyjścia poza niego. Kilka pytań: Czy atakuję przekaz czy posłańca? Czy moje przekonanie jest oparte na danych czy na historii sukcesu? Co tracę, jeśli mam rację? Co tracę, jeśli ta osoba ma rację?","Asymetryczna analiza ryzyka: jeśli konsultant się myli, tracisz czas i pieniądze. Jeśli konsultant ma rację, a Ty go odrzucisz — możesz tracić firmę. Czy otaczam się ludźmi, którzy mi potwierdzają, czy takimi którzy mnie korygują? Homogeniczne środowisko decyzyjne to jedna z największych pułapek dla właścicieli firm.","Dla posłańca: jak dostarczać trudne informacje.","Dane bez kontekstu emocjonalnego trafiają w opór. Suche liczby uruchamiają dysonans bez oferowania wyjścia. Dobra diagnoza to nie tylko co jest nie tak — ale też dlaczego, jak do tego doszło i co można z tym zrobić. Zmiana przyjęta jako własna decyzja ma inną siłę niż zmiana narzucona. Pytania, które prowadzą właściciela do własnych wniosków, są skuteczniejsze niż gotowe rekomendacje.","Tempo ma znaczenie. Skumulowanie zbyt wielu trudnych prawd w jednym spotkaniu może przytłoczyć zdolność do ich przyjęcia. Nie każda relacja jest gotowa na każdą prawdę. Zaufanie buduje się przed trudną rozmową, nie w jej trakcie. Im wcześniej zbudujesz wiarygodność — tym łatwiej trudna informacja zostanie przyjęta jako pomoc, nie atak.","Na koniec: czasem posłaniec zostaje zabity. Czasem dzwoni telefon.","Przywykłem do zabijania posłańca. Nie dlatego, że stałem się nieczuły — ale dlatego, że rozumiem mechanizm. Wiem, że agresja skierowana w moją stronę rzadko jest o mnie. Jest o nieprzyjętej informacji, zagrożonej tożsamości i bólu, który towarzyszy konfrontacji z rzeczywistością, której człowiek nie chciał zobaczyć.","Najtrudniejsze w tej pracy nie jest dostarczanie złych wiadomości. Najtrudniejsze jest robienie tego w sposób, który daje rozmówcy szansę — żeby prawda dotarła zanim będzie za późno na działanie. Czasem nie dociera. Czasem posłaniec zostaje zabity. Czasem, po kilku miesiącach, dzwoni telefon. I cichy brat mówi, że jednak zdecydowali się na zmiany. To też jest wynik."],"image":"/images/articles/art-08.webp"},{"id":9,"slug":"audyt-wlasnego-czasu-jak-w-3-godziny-znalezc-10-godzin-tygodniowo","title":"Audyt czasu dla właściciela firmy — odzyskaj 10 godzin tygodniowo","category":"ZARZĄDZANIE CZASEM","categoryNum":"09","readingTime":"14 MIN","excerpt":"Właściciel firmy to najczęściej człowiek, który firmę zbudował. Zbudował ją własnymi rękami, własną 
56wiedzą, własną siecią kontaktów. Na początku robił wszystko sam — bo nie miał wyjścia. Sprzedawał, realizował, fakturował, reklamował, zarządzał.","paragraphs":["Dlaczego właściciel zawsze jest zajęty","Właściciel firmy to najczęściej człowiek, który firmę zbudował. Zbudował ją własnymi rękami, własną wiedzą, własną siecią kontaktów. Na początku robił wszystko sam — bo nie miał wyjścia. Sprzedawał, realizował, fakturował, reklamował, zarządzał.","Firma rosła. Pojawiały się nowe osoby. Ale nawyki pozostały. Właściciel nadal jest pierwszym punktem kontaktu dla klientów, bo 'on zna ich najlepiej'. Nadal zatwierdza każdą fakturę powyżej pewnej kwoty, bo 'trzeba kontrolować koszty'. Nadal uczestniczy w każdym ważniejszym spotkaniu, bo 'bez niego decyzje są błędne'. Nadal rozwiązuje konflikty w zespole, bo 'inaczej nie wyjdą z tego sami'.","Każda z tych rzeczy ma swoje uzasadnienie. Razem tworzą pułapkę, z której coraz trudniej wyjść — bo im bardziej właściciel jest potrzebny do wszystkiego, tym mniej firma jest zdolna działać bez niego. A im mniej firma działa bez niego, tym bardziej przekonuje się, że musi być potrzebny do wszystkiego. To błędne koło. I żeby je przerwać, trzeba najpierw zobaczyć, jak wygląda.","Czym jest audyt czasu i po co go robić","Audyt czasu to proste ćwiczenie: przez określony czas rejestrujesz wszystko, co robisz, a potem analizujesz, czy to, co robisz, jest tym, co powinieneś robić. Brzmi banalnie. Nie jest.","Większość właścicieli ma mglisty obraz swojego czasu — wiedzą, że są zajęci, wiedzą mniej więcej czym, ale nie mają twardych danych. A bez twardych danych trudno o trafną diagnozę i trudno o skuteczną zmianę. To dok
56ładnie ten sam problem, który opisuję, gdy mówię o prowadzeniu firmy bez wskaźników finansowych — zarządzanie na wyczucie zamiast na danych.","Audyt czasu to dane o Twoim najważniejszym zasobie.","Krok 1: Rejestracja — 2 tygodnie, 15 minut dziennie","Audyt zaczyna się od zebrania materiału. Potrzebujesz dwóch tygodni obserwacji — jeden tydzień może być atypowy, dwa tygodnie dają już wiarygodny obraz.","Najprościej działa arkusz lub notatka, którą wypełniasz trzy razy dziennie — rano po pierwszych dwóch godzinach pracy, po południu i na koniec dnia. Nie potrzebujesz aplikacji do śledzenia czasu co do minuty. Potrzebujesz wystarczająco dokładnego obrazu, żeby zobaczyć wzorce.","Dla każdego bloku czasu notuj: Co robiłem (konkretnie, nie 'praca operacyjna'), Ile czasu to zajęło (szacunkowo), Czy to była moja inicjatywa czy reakcja na coś z zewnątrz, Czy ktoś inny mógłby to zrobić zamiast mnie. Ten ostatni punkt jest kluczowy. Nie 'czy ktoś to teraz robi' — ale 'czy ktoś *mógłby* to robić'. To inne pytanie i prowadzi do innych wniosków.","Rejestruj wszystko. Spotkania, maile, rozmowy telefoniczne, podpisywanie dokumentów, rozwiązywanie problemów, które ktoś przyniósł do Twojego gabinetu, decyzje, które ktoś poprosił Cię o podjęcie, rzeczy, które robiłeś, bo 'zajmie mi to dwie minuty, a tłumaczenie komuś innemu zajęłoby pięć'. Szczególnie te ostatnie. 'Zajmie mi to dwie minuty' to jedna z najdroższych iluzji w zarządzaniu czasem.","Krok 2: Kategoryzacja — pierwsze 90 minut analizy","Masz dwa tygodnie danych. Teraz czas na analizę. Pierwszym krokiem jest przypisanie każdego zadania do jednej z czterech kategorii.","Kategoria A: Praca strategiczna — Rzeczy, które tylko Ty możesz robić i które mają kluczowy wpływ na kierunek firmy. To praca, dla której właściciel jest niezastąpiony — i to ona powinna zajmować lwią część jego czasu.","Kategoria B: Praca operacyjna wymagająca Ciebie — Rzeczy, które dziś wymagają Twojego udziału, ale tylko dlatego, że nikt inny nie ma kompetencji, uprawnień lub kontekstu. To zadania do systematycznego oddawania.","Kategoria C: Praca operacyjna, której nie powinieneś robić — Rzeczy, które ktoś inny mógłby robić już dziś. To największy rezerwuar odzyskanego czasu.","Kategoria D: Praca, której nie powinna robić żadna osoba w tej firmie — Rzeczy zbędne, przestarzałe, będące efektem dawnych nawyków. Nie delegować. Wyeliminować.","Krok 3: Diagnoza — kolejne 60 minut","Ile procent Twojego czasu zajmuje kategoria A? Jeśli mniej niż 30% — masz poważny problem strukturalny. Jakie są Twoje trzy największe 'pożeracze czasu' w kategorii C? Ile czasu spędzasz na reakcjach zamiast na inicjatywie? Gdzie pojawiają się te same zadania wielokrotnie? Jakie zadania wracają do Ciebie, choć już je 'oddałeś'?","Krok 4: Plan działania — ostatnie 30 minut","Zasada trzech ruchów: Wybierz nie więcej niż trzy zmiany do wdrożenia w pierwszym etapie.","Ruch 1: Eliminacja — Wybierz jedno zadanie z kategorii D i wyeliminuj je całkowicie.","Ruch 2: Twarde oddanie — Wybierz jedno zadanie z kategorii C i oddaj je konkretnej osobie z konkretnymi uprawnieniami i konkretnym oczekiwaniem rezultatu.","Ruch 3: Blokowanie czasu strategicznego — Zarezerwuj w kalendarzu konkretne bloki na pracę kategorii A — minimum dwa bloki po 90 minut tygodniowo.","Ile czasu można realnie odzyskać","Po pierwszym audycie i wdrożeniu trzech podstawowych zmian większość właścicieli odzyskuje 8 do 15 godzin tygodniowo w ciągu pierwszego miesiąca. 8 godzin tygodniowo to ponad 400 godzin rocznie. To 50 dni roboczych.","Zacznij dziś","Trzy godziny. Dwa tygodnie rejestracji, półtorej godziny analizy, pół godziny planu. Jeśli po przeczytaniu tego artykułu masz poczucie, że Twój czas wymaga przeglądu — nie odkładaj tego na 'kiedy będzie spokojniej'. Spokojniej nie będzie. Będzie tylko więcej tego samego."],"image":"/images/articles/art-09.webp"},{"id":10,"slug":"piec-powodow-dla-ktorych-wlasciciele-firm-siegaja-po-konsultanta","title":"Pięć powodów, dla których właściciele firm szukają konsultanta","category":"DIAGNOZA","categoryNum":"10","readingTime":"12 MIN","excerpt":"Właściciele firm nie dzwonią po konsultanta, kiedy wszystko gra. Dzwonią z konkretnym bólem. Ze zdaniem, które brzmi jak problem do rozwiązania w trzy tygodnie. Te zdania powtarzają się. Niezależnie od branży, wielkości firmy i stażu założyciela słyszę praktycznie te same frazy. Problem w tym, że żadna z nich nie jest pełną diagnozą. Każda jest najgłośniejszym objawem czegoś, co dzieje się głębiej.","paragraphs":["Każdy przychodzi z jednym pytaniem. Firma zawsze jest systemem.","Właściciele firm nie dzwonią po konsultanta, kiedy wszystko gra. Dzwonią z konkretnym bólem. Ze zdaniem, które brzmi jak problem do rozwiązania w trzy tygodnie. Te zdania powtarzają się. Niezależnie od branży, wielkości firmy i stażu założyciela słyszę praktycznie te same frazy. Problem w tym, że żadna z nich nie jest pełną diagnozą. Każda jest najgłośniejszym objawem czegoś, co dzieje się głębiej.","'Pracujemy po 14 godzin dziennie i dalej nie nadążamy.'","Brak czasu właściciela rzadko jest problemem ilości pracy. Jest problemem tego, że za dużo decyzji, kontaktów i informacji przepływa przez jedno biurko. Nowy człowiek wpadnie w tę samą strukturę, która już dziś pożera czas obecnego zespołu.","'Sprzedaż rośnie, marża nie.'","Marża ucieka nie w księgowości, tylko w operacjach: w niedoszacowanych projektach, niepoliczonych poprawkach, ustępstwach wobec klientów, których nikt nie kontroluje. Marża jest funkcją struktury, a nie sprawozdania.","'Zatrudniłem ludzi, ale każda ważna decyzja i tak wraca do mnie.'","Ludzie nie biorą decyzji nie dlatego, że są bierni albo niekompetentni. Biorą tyle decyzji, ile pozwala im struktura. To nie jest wina ludzi. To efekt systemu, który ich tego nauczył.","'Stoimy w miejscu i nie wiem, co dalej.'","Plateau prawie zawsze oznacza, że firma dotarła do sufitu swojej obecnej struktury. Dalszy wzrost wymaga przebudowy fundamentu, nie nowej fasady.","'Chcę wyjść z bieżącej operacji, ale firma się beze mnie zawali.'","Dopóki właściciel pozostaje centralnym punktem decyzyjnym, sprzedażowym i operacyjnym, firma nie ma wartości niezależnej od jego osoby. To problem konstrukcji własnościowej i operacyjnej, który trzeba rozplątać metodycznie.","Dlaczego analizujemy całą firmę, nawet jeśli przyszedłeś z jednym pytaniem.","Diagnoza obejmuje zawsze cztery rzeczy: jak płynie praca, kto i kiedy decyduje, gdzie ucieka pieniądz, jak wygląda zależność firmy od właściciela. Bez tej mapy każda interwencja jest hazardem.","Zarezerwuj bezpłatną diagnozę operacyjną. Pierwsze 30 minut to rozmowa o tym, gdzie realnie jesteś — nie o produkcie konsultingowym. Bez sprzedażowego nacisku. Bez gotowych scenariuszy. Tylko diagnoza tego, co widzę i co trzeba zmienić."],"image":"/images/articles/art-10.webp"},{"id":11,"slug":"mapa-paradoksu-finansowego-cashflow-kontra-zysk","title":"Cashflow vs zysk — dlaczego rentowna firma bankrutuje","category":"FINANSE","categoryNum":"11","readingTime":"9 MIN","excerpt":"To nie jest teoria. To jedna z najczęstszych sytuacji, z jakimi właściciele MŚP przychodzą do mnie po raz pierwszy. Mają wyniki. Mają klientów. Mają faktury. I mają konto, z którego nie ma co płacić.","paragraphs":["Firma może być rentowna i jednocześnie bankrutować.","To nie jest teoria. To jedna z najczęstszych sytuacji, z jakimi właściciele MŚP przychodzą do mnie po raz pierwszy. Mają wyniki. Mają klientów. Mają faktury. I mają konto, z którego nie ma co płacić.","Zysk żyje w Excelu. Cashflow żyje w banku.","Zysk to różnica między przychodami a kosztami. Oblicza się go na zasadzie memoriałowej — 
56czyli w momencie, gdy wystawiasz fakturę, nie gdy dostajesz pieniądze. Cashflow to realne pieniądze, które wpłynęły na konto minus to, co z niego wypłynęło.","Sprzedałeś za 100 000 zł z terminem płatności 60 dni. Koszty zapłaciłeś teraz. Cashflow w tym miesiącu: minus 70 000 zł. To dlatego 15. każdego miesiąca brakuje na pensje.","Trzy mechanizmy, które najbardziej bolą.","Długie terminy płatności — pracujesz dla klientów, którzy płacą w 30, 45 albo 60 dni, a koszty płacisz na bieżąco.","Wzrost sprzedaży — im szybciej rośniesz, tym więcej gotówki pochłaniasz. Każda nowa umowa wymaga zasobów zanim zafakturujesz i zanim dostaniesz pieniądze.","Zaliczki i przedpłaty — dostajesz 50% zaliczki, wykonujesz pracę, czekasz na resztę.","Rentowność mówi, czy model biznesowy ma sens. Cashflow mówi, czy firma przeżyje następny miesiąc.","Co monitorować, żeby przestać być zaskoczonym.","Minimum to prognoza cashflow na 13 tygodni. Konkretna tabela: ile wpłynie i kiedy, ile wypłynie i kiedy. Kolumna tygodniowa. Aktualizowana raz w tygodniu. Dodaj trzy wskaźniki: DSO (średni czas oczekiwania na zapłatę od klientów), DPO (średni czas, w jakim Ty płacisz dostawcom) i poziom gotówki w stosunku do miesięcznych kosztów stałych.","Sygnały, że Twoja firma ma problem z płynnością.","Płacisz dostawcom z opóźnieniem. Negocjujesz terminy płatności z każdym nowym klientem w górę. Odrzucasz nowe zlecenia, bo nie masz z czego ich prefinansować. Każdy koniec miesiąca jest inny — raz jest dobrze, raz jest napięcie.","To nie są przypadki. To jest wzorzec. I wzorzec daje się naprawić."],"image":"/images/articles/art-11.webp"},{"id":12,"slug":"jak-zmapowac-proces-w-firmie-ktorego-nikt-nigdy-nie-zapisal","title":"Mapowanie procesów w firmie — poradnik praktyczny","category":"PROCESY","categoryNum":"12","readingTime":"12 MIN","excerpt":"Wiesz, jak wygląda 'proces' w większości firm MŚP? Mieszka w głowie jednej osoby. Zazwyczaj tej, która jest w firmie najdłużej. Często tej, która właśnie się zwalnia.","paragraphs":["Jak zmapować proces w firmie, którego nikt nigdy nie zapisał","Wiesz, jak wygląda 'proces' w większości firm MŚP? Mieszka w głowie jednej osoby. Zazwyczaj tej, która jest w firmie najdłużej. Często tej, która właśnie się zwalnia.","I wtedy zaczynają się schody. Nowy pracownik pyta 'jak to robimy?' — i dostaje odpowiedź: 'no, wiesz… tak jak zawsze.' Tylko że on nie wie, jak 'zawsze'. I nikt mu nie powie, bo nikt nigdy tego nie zapisał.","To nie jest problem wiedzy. To jest problem zarządzania.","Dlaczego procesy giną w głowach, a nie na papierze","Właściciele firm rzadko celowo ukrywają wiedzę. Po prostu nigdy nie mieli czasu, żeby ją zapisać — bo zawsze była pilniejsza sprawa.","Do tego dochodzi klasyczny syndrom eksperta: osoba, która coś robi od 5 lat, nie potrafi już tego opisać krok po kroku, bo dla niej to intuicja, nie procedura.","Jak to zrobić właściwie: podejście polowe","Krok 1: Znajdź osobę, która 'to robi' — nie menedżera, nie właściciela, ale człowieka, który fizycznie wykonuje dany proces każdego dnia.","Krok 2: Patrz, nie słuchaj — nie pytaj co ktoś robi, bo opowie jak powinno być, a nie jak jest. Obserwuj. Niech pokaże na żywo.","Krok 3: Łap wyjątki, nie tylko standard — pytaj: 'Co robisz, gdy klient nie odpisuje?', 'Co gdy faktura się nie zgadza?', 'Co gdy system pada?'. Te pytania wyciągają z ludzi wiedzę, której sami nie wiedzą, że mają.","Krok 4: Zwerbalizuj na głos i zweryfikuj — przeczytaj pracownikowi co zapisałeś krok po kroku. On będzie przerywać i poprawiać. To jest złoto.","Krok 5: Narysuj to w 15 minut — kartka papieru, tablica, Miro, Google Drawings. Zapisz sekwencję: co → co → co. Cały diagram powinien zmieścić się na jednej stronie A4.","Co zrobić z gotową mapą","Sama mapa to połowa roboty. Drugą połową jest decyzja: czy ten proces w ogóle ma sens, czy tylko tak się utarło?","Kiedy widzisz go na kartce, zaczynasz dostrzegać: kroki, które dublują pracę, informacje, które przeskakują przez pięć rąk zanim dotrą do właściwej osoby, decyzje, które zawsze trafiają do Ciebie — zamiast być podjęte niżej.","Ile czasu to zajmuje?","Jeden dobrze przeprowadzony wywiad obserw
56acyjny: 45–90 minut. Czyszczenie notatek i rysowanie mapy: 30 minut. Weryfikacja: 20 minut. Łącznie: 2–3 godziny na jeden proces. Firma średniej wielkości ma zwykle 10–20 kluczowych procesów."],"image":"/images/articles/art-12.webp"},{"id":13,"slug":"mapowanie-procesow-praktyczna-metoda","title":"Mapowanie procesów w firmie — metoda praktyczna","category":"PROCESY","categoryNum":"13","readingTime":"15 MIN","excerpt":"To jest rzeczywistość większości firm MŚP. Właściciel wie, jak to działa. Jego asystent wie. Handlowiec wie. Ale nikt tego nigdy nie zapisał.","paragraphs":["Procesy żyją w głowach ludzi. Kiedy ktoś się zwolni, zabiera je ze sobą.","To jest rzeczywistość większości firm MŚP. Właściciel wie, jak to działa. Jego asystent wie. Handlowiec wie. Ale nikt tego nigdy nie zapisał.","I wtedy przychodzi email: 'Rezygnuję, koniec miesiąca.' A Ty zostałeś z pytaniami: Jak kwalifikowaliśmy leady? Kto się kontaktuje z klientem po pierwszym spotkaniu? Gdzie przechowujemy oferty?","Dlaczego firmy nie mapują procesów","Nie dlatego, że nie chcą. Dlatego, że zawsze była pilniejsza sprawa.","Czego NIE robić","Nie zwoływać spotkania z zespołem. Nie zatrudniać kogoś od 'procesów i procedur'. Nie kupować skomplikowanego systemu BPM.","Jak to zrobić właściwie: metoda obserwacyjna","Krok 1: Znajdź osobę, która fizycznie wykonuje dany proces każdego dnia.\\nKrok 2: Obserwuj — nie pytaj, co ktoś robi (opowie jak powinno być), tylko patrz na żywo.\\nKrok 3: Łap wyjątki — 'Co robisz, gdy klient nie odpisuje?', 'Co gdy faktura się nie zgadza?'\\nKrok 4: Zwerbalizuj i zweryfikuj — przeczytaj pracownikowi swoje notatki, on poprawi.\\nKrok 5: Narysuj w 15 minut — jeden diagram na jednej stronie A4.","Przykład praktyczny: proces obsługi leadu","Krok 1 — Pierwszy kontakt (odpowiedź w 24h): Lead z formularza → Asystent wysyła wstępną odpowiedź z pytaniami o kontekst.","Krok 2 — Zbieranie informacji: Handlowiec umawia rozmowę 15-30 min, notatki w CRM, pytania o budżet, timeline, kto decyduje.","Krok 3 — Kwalifikacja (decyzja w 24h): Właściciel lub senior — 'do ofertowania' czy 'poza zakresem'.","Krok 4 — Umówienie spotkania: Handlowiec wysyła propozycję przez Calendly, potwierdza termin.","Narzędzia do mapowania","Na start: Google Docs lub tabela w Wordzie — zero kosztów, zero nauki.\\nJeśli chcesz wizualizacji: Miro, Lucidchart, draw.io (darmowy).\\nZasada: wybierz to, co już jest w firmie.","Co zrobić z gotową mapą","Trzy kierunki: Analiza (szukaj miejsc, gdzie praca staje, wraca lub gubi się), Optymalizacja (usuwaj kroki bez wartości), Standaryzacja (zbuduj SOP, z którego każda nowa osoba może się nauczyć).","Sama mapa to diagnoza, nie rozwiązanie. Pokazuje, jak naprawdę działa Twoja firma — nie jak powinna działać."],"image":"/images/articles/art-13.webp"},{"id":14,"slug":"delegowanie-bez-kontroli-to-nie-zaufanie","title":"Delegowanie bez kontroli to nie zaufanie. To abdykacja.","category":"ZARZĄD","categoryNum":"14","readingTime":"6 MIN","excerpt":"Każdy właściciel firmy, który przyszedł do mnie na audyt z problemem 'mam świetny zespół, ale wyniki są do niczego', zaczyna rozmowę od tego samego zdania: 'Ja im ufam. Daję im pełną swobodę.'","paragraphs":["Problem zaczyna się od mitu 'deleguj i zapomnij'","Każdy właściciel firmy, który przyszedł do mnie na audyt z problemem 'mam świetny zespół, ale wyniki są do niczego', zaczyna rozmowę od tego samego zdania: 'Ja im ufam. Daję im pełną swobodę.'","Pełna swoboda. Brzmi pięknie. Jak manifest nowoczesnego lidera, który czytał Lencioni'ego i chodzi na konferencje o turkusowych organizacjach.","Problem w tym, że w 9 na 10 przypadków ta 'pełna swoboda' to nie model zarządzania. To bierna rezygnacja z odpowiedzialności.","Skąd się bierze mit 'deleguj i zapomnij'","Właściciele MŚP wpadają w tę pułapkę z trzech powodów. Pierwszy: wypalenie kontrolą. Przez lata mikrozarządzali wszystkim. Sprawdzali każdy mail, poprawiali każdą ofertę, siedzieli na każdym spotkaniu z klientem. W końcu — słusznie — stwierdzili, że tak nie można. I skoczyli w drugą skrajność. Zamiast zbudować system, odwrócili się plecami.","Drugi: coaching-speak. Branża co
56achingowa przez ostatnią dekadę bombardowała nas hasłami o empowerment, zaufaniu i autonomii. Piękne słowa, które w oderwaniu od kontekstu biznesowego zamieniają się w ideologię bez operacyjnego sensu. Delegowanie to nie akt wiary. To transakcja z określonymi warunkami.","Trzeci: strach przed konfliktem. Wielu właścicieli nie chce być 'tym złym'. Nie chce kontrolować, bo kontrola kojarzy im się z nieufnością, a nieufność — z byciem dyktatorem. Więc nie kontrolują. I mają 'spokój' — do momentu, gdy okazuje się, że projekt jest dwa miesiące w tyle, a klient dzwoni ze skargą.","Czym różni się delegowanie od abdykacji","Delegowanie to przekazanie zadania, uprawnień i zasobów — razem z jasno określonymi oczekiwaniami, punktami kontrolnymi i konsekwencjami. Abdykacja to przekazanie zadania i udawanie, że problem przestał istnieć.","Delegowanie wygląda tak: 'Masz odpowiedzialność za ten projekt. Budżet to 50k. Deadline to 30 września. Co dwa tygodnie chcę widzieć, gdzie jesteśmy. Jeśli cokolwiek zagrozi terminowi lub budżetowi — przychodzisz do mnie natychmiast, nie czekasz na spotkanie. Masz pełną swobodę w wyborze metod, ale wynik musi być taki i taki.'","Abdykacja wygląda tak: 'Weź to i ogarnij. Ufam ci.' Jedno zdanie versus pięć. Ale ta różnica to być albo nie być dla projektu.","Kontrola ≠ brak zaufania","Tu leży największy błąd myślowy, który drogo kosztuje właścicieli firm. Kontrola to nie jest sygnał, że komuś nie ufasz. Kontrola to część systemu, który sprawia, że zaufanie ma sens.","Wyobraź sobie, że zatrudniasz najlepszego chirurga na świecie. Dajesz mu salę operacyjną, pacjenta i mówisz: 'Ufam ci — rób, co chcesz, sprawdzę wyniki za rok.' Absurd, prawda? Nie dlatego, że mu nie ufasz. Ale dlatego, że zaufanie bez procesu, bez checkpointów, bez możliwości interwencji — to nie system. To hazard.","Biznes to nie hazard. Albo przynajmniej nie powinien nim być. Punkty kontrolne nie mówią pracownikowi 'nie ufam ci'. Mówią: 'mamy wspólny cel i wspólną odpowiedzialność za to, żeby dotrzeć do mety'. To różnica między partnerem a widmem, które podpisało umowę i zniknęło.","Jak abdykacja niszczy firmę od środka","Gdy właściciel abdykuje, dzieje się kilka rzeczy równocześnie. Po pierwsze: pracownicy tracą orientację. Człowiek bez punktów kontrolnych nie wie, czy idzie w dobrym kierunku. Może pracować przez trzy miesiące w jedną stronę, żeby na końcu usłyszeć 'ale ja miałem na myśli coś innego'. Frustracja gwarantowana. Rotacja — nieunikniona.","Po drugie: standardy erodują. Bez kontroli nie ma informacji zwrotnej. Bez informacji zwrotnej każdy 'kalibruje' się według własnego odczucia. Po roku masz zespół, w którym każdy robi po swojemu, a spójności operacyjnej zero.","Po trzecie: problemy rosną w ukryciu. Nikt nie lubi przynosić złych wiadomości. Szczególnie gdy szef wysłał sygnał, że 'ufam wam, radźcie sobie sami'. W takim klimacie problemy się ukrywają, zamiatają pod dywan, racjonalizuje. Gdy w końcu wypływają — są już trzy razy większe.","Po czwarte: odpowiedzialność znika. Jeśli nikt nie sprawdza, nikt nie ponosi konsekwencji. A firma bez konsekwencji to firma bez standardów. To wcześniej czy później firma bez przyszłości.","Zaufanie jest zarabiane — nie deklarowane","Oto jak naprawdę wygląda budowanie zaufania w organizacji. Zaczynasz od małego zadania z krótkimi pętlami kontrolnymi. Pracownik dowozi. Poszerzasz zakres, wydłużasz pętle. Dowozi znowu. Dajesz więcej autonomii. Po kilkunastu takich iteracjach masz kogoś, kto faktycznie zasługuje na dużą swobodę — bo oboje wiecie, że sobie poradzi.","To jest delegowanie oparte na danych. Nie na wierze. Zaufanie to nie jest stan wyjściowy. To wynik historii współpracy. I ta historia musi być obserwowana, żeby w ogóle mogła powstać.","Gdy dajesz komuś pełną swobodę od pierwszego dnia, nie budujesz zaufania. Budujesz relację, w której nie wiesz kompletnie nic o tej osobie, a ona nie wie, czego od niej oczekujesz. To przepis na katastrofę.","Trzy typy szkodliwych 'delegatorów', które widzę w firmach","Typ 1: Znikający właściciel. Deleguje i dosłownie znika. Nie odbiera telefonów, odpowiada na maile po tygodniu, jest 'zajęty strategią'. Jego definicja zarządzania to 'nie przeszkadzać'. Firma dryfuje. Każdy robi to, co mu w duszy gra. Kiedy właściciel w końcu się pojawia i pyta 'a dlaczego to tak wygląda?' — naprawdę nie rozumie pytania, które do niego wraca: 'a skąd mieliśmy wiedzieć, że tego chcesz?'","Typ 2: Delegator-żal. Deleguje, ale za każdym razem żałuje. Nie daje pracownikowi przestrzeni, ale też nie ma odwagi powiedzieć wprost, że chce to zrobić sam albo inaczej. Efekt? Pracownik czuje, że cokolwiek zrobi — i tak będzie źle. Kończy się albo paraliżem decyzyjnym, albo odejściem najlepszych ludzi.","Typ 3: Delegator-ideolog. Przeczytał za dużo książek o zarządzaniu i traktuje 'brak kontroli' jako cnotę. Mówi o empowerment, kiedy pracownicy potrzebują struktury. Mówi o autonomii, kiedy projekt potrzebuje twardego lejca. Wierzy, że dobre intencje zastąpią operacyjną precyzję. Wyniki mówią za siebie.","Jak delegować, żeby to działało","Jasność celu. Co dokładnie ma być dostarczone? Jaki wynik, w jakim formacie, w jakiej jakości? Jeśli nie możesz tego opisać jednym zdaniem — nie deleguj. Najpierw sam to doprecyzuj.","Jasność uprawnień. Jakie decyzje może podejmować samodzielnie? Jakie wymagają Twojej zgody? Gdzie są granice budżetowe? Kadrowe? Komunikacyjne? Bez tej mapy pracownik będzie albo paraliżował się pytaniami, albo przekraczał granice, których istnienia nie zna.","Punkty kontrolne z góry. Nie 'daj mi znać jak coś będzie' — tylko konkretne: kiedy, co, w jakiej formie. Checkpoint co dwa tygodnie, briefing przed każdą kluczową decyzją, raport na koniec miesiąca. Kalendarz ustala się przy delegowaniu, nie po fakcie.","Eskalacja bez wstydu. Pracownik musi wiedzieć, że przyjście z problemem to nie porażka — to obowiązek. Zbuduj kulturę, w której złe wiadomości są cenniejsze niż udawanie, że wszystko gra.","Konsekwencje — w obie strony. Jeśli dowozi — doceniasz i poszerzasz zakres. Jeśli nie dowozi — rozmawiasz wprost, szukasz przyczyny, decydujesz, co dalej. Ale zawsze reagujesz. Cisza po niedowiezieniu to komunikat: 'to nieważne'. I pracownik to zapamiętuje.","Co masz z kontroli?","Dlatego że Twoja praca jako właściciela to nie robienie rzeczy — to budowanie systemu, który robi rzeczy bez Ciebie. Ale system bez pętli sprzężenia zwrotnego to 
56nie system. To jeden strzał, który albo trafi, albo nie.","Kontrola to nie koszt delegowania. To fundament, na którym delegowanie w ogóle może działać. Firma, w której właściciel deleguje z prawdziwymi checkpointami, konsekwencjami i jasnymi oczekiwaniami — ta firma skaluje się. Ta firma działa, gdy właściciel jest na urlopie. Ta firma sprzedaje się za premię, a nie z desperacji.","Firma, w której właściciel 'ufa i daje pełną swobodę' — ta firma jest tak naprawdę zarządzana przez przypadek, nastroje i najgłośniejsze osoby w pokoju. Wybór jest prosty.","Na koniec — szczerze","Jeśli jesteś właścicielem, który rozpoznaje siebie w którymś z tych opisów — to dobrze. Pierwsze kroki do naprawy to zawsze diagnoza. Problem z abdykacją nie polega na tym, że chcesz źle dla swojej firmy. Polega na tym, że nikt Ci nigdy nie powiedział wprost: nie możesz zbudować firmy, która działa bez Ciebie, jeśli nie zbudujesz najpierw systemu, który możesz kontrolować.","Zaufanie to wynik. Nie punkt startowy. A delegowanie bez systemu kontroli to nie zarządzanie. To modlitwa. Jeśli Twoja firma rośnie, ale Ty nie czujesz, że masz nad nią kontrolę — to jest właśnie ten moment, żeby to zmienić. Zanim projekt, klient albo kluczowy pracownik zrobi to za Ciebie."],"image":"/images/articles/art-14.webp"},{"id":15,"slug":"twoja-firma-zarabia-milion-ty-masz-etat","title":"Twoja firma zarabia milion. Ty masz na koncie tyle co etatowiec.","category":"RENTOWNOŚĆ","categoryNum":"15","readingTime":"9 MIN","excerpt":"Twoja firma zarabia milion złotych rocznie. Ty masz na koncie tyle co pracownik etatowy. Nie jesteś wyjątkiem — to epidemia wśród właścicieli MŚP w Polsce.","paragraphs":["Twoja firma zarabia milion złotych rocznie. Ty masz na koncie tyle co pracownik etatowy.","Nie jesteś wyjątkiem. To epidemia wśród właścicieli MŚP w Polsce.","Rozmawiałem ostatnio z właścicielem agencji marketingowej. 12 pracowników, 1,8 mln przychodu. Wynagrodzenie właściciela? 8 000 zł netto. Jego szwagier na etacie w korpo zarabia więcej. Bez ryzyka, bez odpowiedzialności, bez 14-godzinnych dni.","Jak do tego dochodzi? Powoli, a potem nagle.","Trzy miejsca, gdzie ucieka twoja marża.","Większość właścicieli MŚP, kiedy słyszy \\"problem z rentownością\\", od razu myśli o kosztach. Za drogi biuro. Za wysoko opłacani pracownicy. Trzeba ciąć.","To błąd diagnozy. Koszty to rzadko problem. Problem to struktura przychodów i niewidoczne wycieki.","Wyciek nr 1: Wycena na podstawie \\"co rynek wytrzyma\\".","Kiedy ostatnio wyceniałeś projekt, zadałeś sobie pytanie: \\"ile ta praca kosztuje mnie naprawdę?\\" Nie co klient chce zapłacić — ile kosztuje wykonanie, z pełnymi kosztami pośrednimi, błędami, poprawkami, czasem zarządzania?","Większość właścicieli wycenia intuicyjnie. Patrzą na konkurencję, odejmują 10%, żeby \\"wygrać\\", i liczą że wyjdą na zero. Wygrywają przetarg. Przegrywają marżę.","Konkretny przykład: software house, projekt wyceniony na 120 000 zł. Czas zaplanowany: 800 godzin. Czas rzeczywisty po poprawkach, komunikacji i bugfixach: 1 100 godzin. Stawka godzinowa spada z 150 zł do 109 zł. Po kosztach stałych projekt wyszedł na minus. Właściciel zapłacił za to, żeby pracować.","Rozwiązanie nie jest skomplikowane: kalkuluj koszty z buforem 25–30% na \\"to co zawsze się pojawia\\". Nie jesteś złym sprzedawcą — po prostu za długo ignorowałeś prawdziwe liczby.","Wyciek nr 2: Klienci, którzy \\"płacą mało, ale za to dużo ich jest\\".","Masz 40 klientów. 30 z nich generuje 40% przychodu i 80% problemów. Dzwonią w weekendy. Zmieniają brief po trzeciej iteracji. Zawsze potrzebują \\"małej poprawki\\" za darmo.","Tych 30 klientów nie jest źródłem utrzymania — są źródłem kosztów ukrytych. Czas twoich pracowników, który mógłby iść na obsługę 10 klientów premium, tonie w mikrozarządzaniu dla klientów, którzy i tak odejdą przy pierwszej okazji do tańszego konkurenta.","Zrób test: weź swoich klientów i policz przychód na roboczogodzinę poświęconą każdemu z nich. Nie łączny przychód — przychód na godzinę realnej pracy. Wynik cię zaskoczy. Twój \\"mały, ale wierny\\" klient z budżetem 2 000 zł miesięcznie, który dzwoni codziennie, może generować stawkę efektywną 30 zł/h. Twój \\"trudny\\" klient z budżetem 15 000 zł, który wysyła briefy mailem i nie zawraca głowy — 200 zł/h.","Których chcesz więcej?","Wyciek nr 3: Ty jako wąskie gardło operacyjne.","To najtrudniejsza prawda do przyjęcia, bo dotyczy ciebie bezpośrednio.","Jeśli pracujesz 10–14 godzin dziennie, to nie jesteś zaangażowanym właścicielem — jesteś najgorzej opłacanym pracownikiem swojej firmy. Twoja firma nie ma systemu. Ma ciebie, który systemem zastępujesz.","Każda decyzja czeka na ciebie. Każda faktura prze
56chodzi przez ciebie. Każdy \\"trudny\\" klient dostaje twój numer bezpośredni. Rezultat? Firma nie może rosnąć szybciej niż ty jesteś w stanie pracować. A ty jesteś już na granicy.","Właściciel, który jest wąskim gardłem, nie skaluje biznesu — on klonuje siebie w pracy za trzykrotnie wyższą pensję niż mógłby kogoś zatrudnić.","Jak wygląda firma z dobrą rentownością?","Nie jest większa. Jest bardziej selektywna.","Znam firmy z 4 pracownikami, która zarabia netto więcej niż ich konkurencja z 15 etatami. Różnica? Pierwsza obsługuje 8 klientów premium z budżetami 10 000–30 000 zł miesięcznie. Druga ma 60 klientów \\"żeby nie zależeć od jednego\\".","Pierwsza ma właściciela, który pracuje 7 godzin dziennie i bierze urlop w sierpniu. Druga ma właściciela, który odpowiada na maile o 23:00 i nie pamięta, kiedy ostatnio był na wakacjach bez laptopa.","Rentowna firma to firma z: mniejszą liczbą klientów, ale wyższą wartością każdego z nich; procesami, które działają bez właściciela w centrum; wyceną opartą na wartości dla klienta, nie na \\"co rynek wytrzyma\\"; jasną granicą między tym, co właściciel robi, a co deleguje.","Trzy pytania, które powinieneś sobie zadać dziś.","Pierwsze: Ile wynosi moja efektywna stawka godzinowa? Podziel swój miesięczny zysk netto przez liczbę godzin, które realnie przepracowałeś. Jeśli wynik jest poniżej 100 zł/h, masz problem strukturalny — nie motywacyjny.","Drugie: Który 20% moich klientów generuje 80% problemów? Nie mówię żebyś ich zwolnił jutro. Mówię, żebyś przestał ich subsydiować kosztem klientów, którzy naprawdę doceniają twoją pracę.","Trzecie: Co by się stało, gdybym wziął tydzień urlopu bez telefonu? Jeśli odpowiedź brzmi \\"firma by się posypała\\" — właśnie zdiagnozowałeś swój największy problem biznesowy. Nie brak klientów. Nie za małe przychody. Brak systemów.","Co dalej?","Rentowność w MŚP to nie magia — to diagnoza i korekta trzech, góra pięciu miejsc, gdzie firma krwawi.","Problem w tym, że kiedy jesteś w środku, nie widzisz wycieku. Widzisz tylko, że znowu skończyłeś o 23:00 i nie wiesz dlaczego znowu brakuje kasy mimo dobrego miesiąca sprzedażowego.","Właśnie to robię w analizie rentowności: wchodzę do firmy, patrzę na liczby bez sentymentów, i mówię ci dokładnie gdzie ucieka marża i jak to zatrzymać. Bez coachingu, bez ogólników, bez 12-tygodniowych programów motywacyjnych.","Jeśli twoja firma zarabia, ale ty nie widzisz tego na swoim koncie — napisz do mnie przez [formularz kwalifikacyjny](/kwalifikacja). Zaczynamy od rozmowy, bez zobowiązań. Więcej o szczegółach znajdziesz też w [poradnikach](/poradniki)."],"image":"/images/articles/art-15.webp"},{"id":16,"slug":"dlaczego-wlasciciele-msp-sprzedaja-za-tanio","title":"Dlaczego właściciele MŚP sprzedają za tanio — i jak to zmienić bez utraty klientów","category":"CENY I WYCENA","categoryNum":"16","readingTime":"8 MIN","excerpt":"Twój klient mówi \\"za drogo\\" i ty natychmiast cofasz się o krok. To nie jest problem z rynkiem. To problem z głową — i z brakiem realnej kalkulacji kosztów.","paragraphs":["Twój klient mówi \\"za drogo\\" i ty natychmiast cofasz się o krok. Dajesz rabat, \\"bo zależy ci na relacji\\". Albo zaniżasz cenę już na starcie, bo boisz się, że nie kupi.","Gratulacje. Właśnie sam sobie podciąłeś marżę i nauczyłeś klienta, że twoja cena wyjściowa to fikcja.","To nie jest problem z rynkiem. To problem z głową.","Skąd się bierze syndrom niskiej ceny?","Większość właścicieli MŚP, z którymi rozmawiam, zaczęła od \\"brania zleceń\\". Żeby przeżyć, zgadzali się na warunki dyktowane przez klientów. Z czasem firma urosła, ale nawyk pozostał — wycenianie pod klienta, nie pod wartość.","Do tego dochodzi klasyczny błąd poznawczy: porównujesz swoją cenę do najtańszego konkurenta w Google, zamiast do wartości, którą faktycznie dostarczasz. Widzisz, że \\"rynek\\" jest po 50 zł za godzinę, więc bierzesz 60 i czujesz się odważny.","Problem w tym, że twój klient porównawczy to firma z jedną osobą, bez procesów, bez odpowiedzialności i bez ubezpieczenia. Ty masz zespół, systemy, doświadczenie i gwarancję jakości. Ale wyceniasz się jak freelancer z laptopem w kawiarni.","Trzy powody, dla których boisz się podnieść ceny.","Pierwszy: \\"Stracę klientów.\\" Być może. Ale ilu klientów już teraz pracuje z tobą za 
56stawkę, która nie pokrywa prawdziwych kosztów? Niska cena nie eliminuje odejść — tylko przyciąga klientów, którzy odejdą przy pierwszej lepszej okazji do zaoszczędzenia złotówki.","Drugi: \\"Nie jestem dość dobry żeby brać więcej.\\" To jest w twojej głowie, nie w portfelu klienta. Firmy, które zarabiają 3x więcej niż ty, często nie mają 3x lepszych wyników. Mają lepsze pozycjonowanie i pewność siebie w rozmowie o cenie.","Trzeci: \\"Klient mi ufa, nie chcę go stracić.\\" Rozumiem. Ale lojalność oparta na tym, że jesteś najtańszy, to nie jest lojalność — to uzależnienie od dyskontu. Przy pierwszej lepszej konkurencyjnej ofercie zniknie.","Jak podnieść ceny bez straty klientów — konkretnie.","Krok pierwszy: Policz swoje rzeczywiste koszty. Ile kosztuje cię godzina pracy z uwzględnieniem ZUS, nadgodzin zespołu, narzędzi, błędów i poprawek? Większość właścicieli MŚP tego nie wie. Jeśli nie wiesz ile kosztuje twoja godzina, nie masz jak wycenić projektu z zyskiem.","Krok drugi: Przestań sprzedawać czas, zacznij sprzedawać wynik. \\"Projekt strony za 8 000 zł\\" brzmi jak koszt. \\"Strona, która konwertuje ruch w leady — wdrożona w 3 tygodnie, z gwarancją poprawek przez 3 miesiące\\" brzmi jak inwestycja. Ta sama usługa, inny frame, inna rozmowa o cenie.","Krok trzeci: Wprowadź podwyżkę stopniowo dla nowych klientów. Nie rób rewolucji z dnia na dnia dla całego portfolio. Zacznij od nowych wycen — podnieś o 15–30%. Obserwuj reakcje. Okaże się, że większość nie powie nic. Bo klient, który ma budżet, nie będzie się targował o każdą złotówkę.","Krok czwarty: Miej gotową odpowiedź na \\"za drogo\\". Nie chodzi o zniżkę — chodzi o zmianę rozmowy. \\"Rozumiem, że to ważna decyzja. Co konkretnie sprawia, że cena wydaje się wysoka?\\" Albo: \\"Możemy zmniejszyć zakres, ale muszę wiedzieć, z czego rezygnujemy.\\" Nigdy nie obniżaj ceny bez redukcji zakresu — bo właśnie uczysz klienta, że cena jest negocjowalna bez powodu.","Co się dzieje gdy naprawdę podniesiesz ceny?","Odejdą najtańsi klienci — ci, którzy i tak zajmowali 80% czasu za 20% przychodu. Zostanie ci więcej czasu i energii na tych, którzy faktycznie cenią jakość.","Zyskasz margines na to, żeby wykonywać pracę dobrze — bez cięcia kosztów tam, gdzie nie powinieneś ciąć.","I — co najważniejsze — zmieni się to, jak ty sam postrzegasz wartość swojej pracy. Bo wycena to nie tylko liczba na fakturze. To sygnał, który wysyłasz rynkowi o tym, kim jesteś.","Jeśli nie wiesz, od czego zacząć — zacznij od analizy rentowności. Sprawdźmy razem, które projekty faktycznie zarabiają, a które tylko generują ruch na koncie bez zysku. Więcej na ten temat przeczytasz w artykule [Twoja firma zarabia milion. Ty masz na koncie tyle co etatowiec.](/baza-wiedzy/twoja-firma-zarabia-milion-ty-masz-etat). Szczegóły i materiały dodatkowe znajdziesz w [poradnikach](/poradniki). Masz konkretny problem? Wypełnij [formularz kwalifikacyjny](/kwalifikacja)."],"image":"/images/articles/art-16.webp"},{"id":17,"slug":"myslisz-ze-masz-firme-masz-etat-z-wlasnym-logo","title":"Myślisz, że masz firmę. Masz etat z własnym logo.","category":"SYSTEM I DELEGOWANIE","categoryNum":"17","readingTime":"10 MIN","excerpt":"Wczoraj o 22:47 dostałem wiadomość od przedsiębiorcy. Jutro spotkanie z klientem, który może odejść. Kto w zespole jest odpowiedzialny za retencję? \\"No... ja.\\"","paragraphs":["Wczoraj o 22:47 dostałem wiadomość od jednego z przedsiębiorców. Treść wiadomości: \\"Adam, nie mogę spać. Jutro mam spotkanie z klientem, który może odejść i nie wiem, co mu powiedzieć.\\"","Zapytałem: \\"Kto w twoim zespole jest odpowiedzialny za retencję klientów?\\"","Odpowiedź: \\"No... ja.\\"","\\"A kto robi wyceny?\\"","\\"Ja.\\"","\\"A kto zatwierdza umowy?\\"","\\"Ja.\\"","\\"A kto rozwiązuje konflikty w projekcie?\\"","Cisza.","Tam nie było firmy. Był człowiek z 14 współpracownikami i przekonaniem, że zarządza.","Syndrom jest starszy niż twoja firma.","Nie zacząłeś tak. Na początku byłeś solistą — robiłeś wszystko, bo nie było nikogo innego. Byłeś sprzedawcą, wykonawcą, księgowym i sprzątaczem w jednym. To miało sens.","Problem w tym, że nie przestałeś.","Firma urosła wokół ciebie, ale ciebie z centrum nie wyciągnęła. Nowi ludzie przychodzili, brali fragmenty roboty, ale decyzje, eskalacje, \\"wyjątki\\" i \\"trudne przypadki\\" — to nadal lądowało u ciebie. Bo tak działał system. Bo tak chciałeś. Bo tak było bezpieczniej.","To nie jest kwestia charakteru. To kwestia architektury.","Zbudowałeś firmę wokół siebie jako wąskiego gardła. I teraz ta firma nie może działać bez 
56ciebie. Co gorsza — ty nie możesz odpocząć bez tej firmy.","Co to naprawdę kosztuje — w złotówkach.","Właściciel, który jest operacyjnie niezbędny, pracuje średnio 11–14 godzin dziennie. Przyjmijmy 12. Przy 250 dniach roboczych rocznie — to 3 000 godzin.","Ile z tych 3 000 godzin generuje realne przychody? Ile to praca strategiczna — budowanie czegoś, czego firma sama z siebie nie zrobi? A ile to gaszenie pożarów, zatwierdzanie faktur, tłumaczenie klientowi że jego brief jest zły, i powtarzanie zespołowi tych samych rzeczy po raz dziewiętnasty?","W firmach, które audytuję, ten podział wygląda zwykle tak: 20–30% pracy właściciela to robota, którą naprawdę tylko on może wykonać. 70–80% to praca, którą mógłby wykonać ktoś inny — gdyby był system, gdyby były procesy, gdyby ktoś to kiedyś zapisał.","Policz to. Jeśli zarabiasz 15 000 zł netto miesięcznie i pracujesz 250 godzin — twoja stawka to 60 zł/h. Bardzo często dobry spawacz kosztuje więcej. I nie budzi się o 3:00 z myślą o tym, czy klient odnowi kontrakt.","Pięć objawów, które potwierdzają diagnozę.","Nie musisz mi wierzyć na słowo. Sprawdź sam.","Objaw pierwszy: Nie możesz wyjść na 2 tygodnie urlopu bez laptopa. Nie \\"nie chcesz\\" — nie możesz. Próbowałeś raz i wróciłeś do 340 nieprzeczytanych wiadomości, projektu w kryzysie i pracownika, który \\"czekał na twoją decyzję\\" przez cały czas twojej nieobecności. To nie jest firma. To jest instalacja, do której ty jesteś kablem zasilającym.","Objaw drugi: Twoi pracownicy pytają cię o rzeczy, które powinni wiedzieć sami. \\"Jak odpowiedzieć na tego maila?\\" \\"Czy mogę dać klientowi rabat?\\" \\"Co zrobimy, jeśli projekt się opóźni?\\" Jeśli te pytania trafiają do ciebie — nie masz zespołu. Masz grupę wykonawców z szefem jako centralą decyzyjną.","Objaw trzeci: Firma rośnie, ale twoje wynagrodzenie nie. Przychody wzrosły o 40% w ciągu dwóch lat. Twoje wynagrodzenie o 5%. Różnica poszła na koszty rosnącej struktury, która wymaga coraz więcej twojego zarządzania. Błędne koło zamknięte.","Objaw czwarty: Masz \\"kluczowych klientów\\", do których tylko ty dzwonisz. Bo \\"tylko ty ich rozumiesz\\". Bo \\"oni chcą rozmawiać z szefem\\". Bo \\"tak jakoś wyszło\\". Każdy z tych klientów to ładunek, który nie trafi na magazyn bez ciebie. Gdy zachorujesz — relacja zamrozi się. Gdy odejdziesz — odejdzie razem z tobą.","Objaw piąty: Twoje wakacje nie wyglądają jak wakacje. Wyglądają jak praca w ładniejszym miejscu, z gorszym WiFi. Laptop jedzie wszędzie. Telefon nadal dzwoni. Mówisz: \\"muszę odebrać\\". Twoja rodzina to wie. Ty udajesz, że nie.","Dlaczego samo \\"delegowanie\\" nie wystarczy.","Większość porad na ten temat sprowadza się do jednego słowa: deleguj. Brzmi prosto. W praktyce kończy się tak: właściciel próbuje oddać zadanie, pracownik wykonuje je źle albo w połowie, właściciel przejmuje z powrotem i wyciąga wniosek, że \\"łatwiej samemu\\".","To nie jest problem z delegowaniem. To problem z systemem.","Nie można delegować w próżnię. Delegowanie działa tylko wtedy, gdy istnieje jasno zdefiniowany standard wykonania (jak \\"dobrze\\" wygląda?), osoba z kompetencjami do podjęcia decyzji w zakresie zadania, mechanizm kontroli, który nie wymaga twojej obecności przy każdym kroku.","Bez tych trzech rzeczy każde \\"delegowanie\\" to tylko tymczasowe przesunięcie problemu. Wróci do ciebie — z odsetkami.","Prawdziwe wyjście z centrum operacyjnego zaczyna się od mapy — dosłownej listy rzeczy, które robisz, z podziałem na to, co naprawdę wymaga ciebie, i to, co wymaga systemu lub osoby z systemem. Większość właścicieli, gdy robi to ćwiczenie po raz pierwszy, jest w szoku. 70% ich tygodnia to rzeczy, które mogłyby działać bez nich — gdyby ktoś je kiedykolwiek opisał.","Firma, która działa bez ciebie, jest warta więcej.","To nie jest tylko kwestia twojego komfortu. To kwestia wartości biznesowej.","Firma zależna od właściciela jest sprzedawalna z bardzo dużym dyskontem — jeśli w ogóle. Kupujący nie kupuje przychodu, który zniknie, gdy właściciel odejdzie. Kupuje system, procesy, zespół który działa. Jeśli tego nie ma — kupuje tylko logo i bazę klientów, którą trzeba od zera przekonywać do nowego właściciela.","Nawet jeśli nie planujesz sprzedawać — wartość firmy to proxy jej zdrowia. Firma, która funkcjonuje bez ciebie przez miesiąc, to firma ze zdrową architekturą. Firma, która bez ciebie sypie się w ciągu tygodnia, to firma z tykającą bombą w centrum.","Jeden krok, który możesz zrobić dziś.","Weź kartkę. Napisz wszystko, co robiłeś w tym tygodniu — dosłownie wszystko. Każde zadanie, każde spotkanie, każdą decyzję, każdy mail, który napisałeś osobiście.","Przy każdej pozycji zadaj pytanie: \\"Czy ta firma mogłaby to zrobić beze mnie, gdyby istniał odpowiedni system lub odpowiednia osoba?\\"","Policz, ile razy odpowied
56ź brzmi \\"tak\\".","Jeśli to więcej niż połowa listy — masz jasny obraz, gdzie twój czas ucieka i dlaczego firma rośnie wolniej niż powinna.","Jeśli nie wiesz, co z tym zrobić dalej — to właśnie robię podczas diagnozy operacyjnej. Wchodzę do firmy, mapuję gdzie właściciel jest wąskim gardłem i pomagam zbudować strukturę, która działa bez niego w centrum. Nie coaching. Nie 12-tygodniowy program motywacyjny. Diagnoza i konkretny plan.","Więcej o budowaniu systemów przeczytasz w artykule [Dlaczego właściciele MŚP sprzedają za tanio](/baza-wiedzy/dlaczego-wlasciciele-msp-sprzedaja-za-tanio) i [Jak odróżnić zły miesiąc od złego modelu](/baza-wiedzy/jak-odroznic-zly-miesiac-od-zlego-modelu). Materiały dodatkowe znajdziesz w [poradnikach](/poradniki). Chcesz porozmawiać o swojej sytuacji? [Formularz kwalifikacyjny](/kwalifikacja)."],"image":"/images/articles/art-17.webp"},{"id":18,"slug":"jak-odroznic-zly-miesiac-od-zlego-modelu","title":"Jak odróżnić zły miesiąc od złego modelu biznesowego — zanim podejmiesz złą decyzję","category":"MODEL BIZNESOWY","categoryNum":"18","readingTime":"10 MIN","excerpt":"Przedsiębiorca miał 28 pracowników, 4,2 mln przychodu i przek
56onanie, że firma \\"przeżywa trudniejszy kwartał\\". Mylił zły miesiąc z chorym modelem. Ta jedna pomyłka kosztowała go rok życia i pół zespołu.","paragraphs":["Przedsiębiorca — nazwijmy go Stefanem — miał 28 pracowników, 4,2 mln przychodu rocznie i przekonanie, że jego firma po prostu \\"przeżywa trudniejszy kwartał\\".","Kiedy do mnie trafił, miał też 340 tys. zł długu wobec dostawców, zero rezerwy gotówkowej i plan ratunkowy polegający na \\"przeczekaniu\\" — bo przecież \\"rynek się kręci\\".","Mylił zły miesiąc z chorym modelem. I ta jedna pomyłka kosztowała go rok życia i pół zespołu.","Firma miała problem — ale nie tam, gdzie szukał.","Firma Stefana działała od 8 lat. Wchodziła w social media, content, kampanie płatne. Rok wcześniej wzięła duży kontrakt z sektorem państwowym — i na nim oparła 60% przychodu.","Kiedy rynek wyhamował na przełomie 2024/2025, Stefan stracił dwóch kluczowych klientów w ciągu 45 dni.","Przychód spadł z 380 tys. miesięcznie do 230 tys. Koszty stałe: 280 tys.","Reakcja? Stefan zaczął ciąć koszty — po trochu, żeby \\"nie straszyć ludzi\\". Zredukował budżety marketingowe własnej firmy. Wstrzymał rekrutacje. Odłożył inwestycje w narzędzia.","I czekał. Bo przecież \\"zaraz wróci\\".","Trzy miesiące i pogłębiające się bagno.","Podczas pierwszego spotkania zapytałem go o jedno: \\"Pokaż mi, jak wygląda twoja baza klientów — ile masz kontraktów, na jak długo, jaki udział ma każdy w przychodzie.\\"","Odpowiedź zajęła mu 40 minut, użył arkusza Excel sprzed roku.","To był pierwszy sygnał. Firma, która nie zna swojej struktury przychodów w 10 minut, ma problem systemowy — nie sezonowy.","Potem sprawdziliśmy parę liczb: 3 klientów generowało 72% przychodu. Średni czas relacji z klientem: 11 miesięcy. Wskaźnik odnowień kontraktów: 34%. Lejek sprzedaży na kolejne 90 dni: 2 oferty łącznie na 40 tys. zł.","To nie był zły miesiąc. To była firma, która od 8 lat sprzedawała projekt po projekcie, nie budując żadnych relacji retencyjnych. Klienci przychodzili, brali, co potrzebowali, i odchodzili.","Model działał, dopóki rynek rósł i nowi klienci sami pukali do drzwi. Gdy rynek wyhamował — system implodował.","Czym różni się zły miesiąc od złego modelu?","To pytanie, które każdy właściciel firmy powinien umieć odpowiedzieć w ciągu 5 minut — bez konsultanta.","Zły miesiąc ma konkretną przyczynę zewnętrzną: sezonowość, przestój klienta, problem po stronie dostawcy, jednorazowe zdarzenie. Gdy przyczyna mija — wyniki wracają. Masz dane, które to potwierdzają: historyczne wahania, wzorce, trendy.","Zły model to coś innego. Objawy są podobne — spadek przychodu, napięcia gotówkowe, frustracja. Ale gdy patrzysz na dane historyczne, widzisz, że firma nigdy naprawdę nie zbudowała mechanizmu stabilnego wzrostu. Rosła przy koniunkturze, bo koniunktura maskowała braki.","Cztery pytania, które to rozstrzygają.","Pierwsze: Jaki procent twoich przychodów pochodzi od klientów, którzy są z tobą powyżej 24 miesięcy? Jeśli mniej niż 30% — masz problem strukturalny.","Drugie: Gdybyś jutro stracił trzech największych klientów, ile miesięcy przeżyjesz bez cięcia kosztów stałych? Jeśli mniej niż 3 — twoja firma jest zakładnikiem szczęścia, nie systemu.","Trzecie: Ile sprzedaży pochodzi z aktywnego prospektingu po twojej stronie, a ile przychodzi samo? Firmy z modelem retencyjnym mają ten stosunek 50/50 lub lepiej. Firmy reaktywne żyją z inboundu i polecenia — dopóki rynek nie wyschnie.","Czwarte: Czy wiesz, który klient jest dla ciebie rentowny, a który pożera zasoby i tylko wygląda dobrze w przychodzie? Jeśli nie — nie zarządzasz firmą. Zarządzasz złudzeniem.","Co zrobiliśmy z Stefanem.","Pracowaliśmy nad modelem biznesowym.","Pierwsza decyzja była bolesna: 5 osób z zespołu musiało odejść. Nie dlatego, że były złe — ale dlatego, że Stefan przez lata utrzymywał kadrę pod przychód, którego już nie było. I którego — uczciwie — nigdy 
56nie miał pod kontrolą.","Drugie: przeprowadziliśmy audyt rentowności klientów. Z 24 aktywnych, 9 przynosiło realny zysk. Pozostałe 15 absorbowały czas, generowały małe faktury i dostarczały poczucia bycia \\"zajętym\\". Część z nich dostała podwyżkę cen. Część — eleganckie pożegnanie.","Trzecie: zbudowaliśmy prosty model retencyjny. Stefan wcześniej nie miał żadnego procesu follow-up po zakończeniu projektu. Zero. Klient odchodził, a zespół handlowy czekał, aż wróci. Wprowadziliśmy kwartalny rytm rozmów z klientami, system rekomendacji i pakiet \\"opieki stałej\\" — zamiast ciągłej sprzedaży projektowej.","W ciągu 6 miesięcy wskaźnik odnowień wzrósł z 34% do 61%.","Przychód nie wrócił do poprzednich poziomów — ale za to EBITDA stała się dodatnia po raz pierwszy od dwóch lat.","Stefan przestał czekać na lepszy rynek. Zaczął zarządzać firmą.","Jaką decyzję podjął za późno?","Jedną: że diagnoza jest ważniejsza niż działanie.","Przez 3 miesiące \\"przeczekiwania\\" Stefan podjął dziesiątki decyzji — każdą reaktywną, żadną strategiczną. Ciął, przesuwał, odkładał. Ale żadna z tych decyzji nie dotykała sedna: że jego model był strukturalnie niestabilny niezależnie od koniunktury.","Gdyby zadał sobie te cztery pytania wcześniej — zaoszczędziłby rok nerwów, dużo pieniędzy i połowę zespołu.","Problemy w MŚP rzadko wybuchają nagle. Najczęściej się tlą — przez rok, dwa, trzy. Właściciel gasi pożary, zamiast poszukać, skąd pochodzi ogień.","Jeśli czytasz to zdanie i masz w głowie myśl \\"u mnie jest inaczej, to tylko przejściowe\\" — to właśnie ten moment, żeby to sprawdzić.","Nie jutro. Dziś.","Jeśli chcesz zobaczyć, jak wygląda to w praktyce — przeczytaj artykuły [Twoja firma zarabia milion. Ty masz na koncie tyle co etatowiec.](/baza-wiedzy/twoja-firma-zarabia-milion-ty-masz-etat) oraz [Myślisz, że masz firmę. Masz etat z własnym logo.](/baza-wiedzy/myslisz-ze-masz-firme-masz-etat-z-wlasnym-logo). Więcej materiałów w [poradnikach](/poradniki). A jeśli chcesz porozmawiać o swojej sytuacji konkretnie — wypełnij [formularz kwalifikacyjny](/kwalifikacja)."],"image":"/images/articles/art-18.webp"},{"id":19,"slug":"pelny-magazyn-to-nie-sukces-to-spiaca-gotowka","title":"Pełny magazyn to nie sukces. To śpiąca gotówka.","category":"FINANSE","categoryNum":"19","readingTime":"5 MIN","excerpt":"Towar, który leży na półce, nie zarabia. Za to co miesiąc po cichu kosztuje – z konta, na którym i tak brakuje pieniędzy.","paragraphs":["Pełny magazyn wygląda jak sukces. Półki zastawione, paleta na palecie, ani jednego „niestety, nie mamy”.","Tylko że rachunków nie płaci się zdjęciem magazynu. Znam ten obraz z wielu firm. Sprzedaż jest, magazyn puchnie, a konto bankowe robi się coraz chudsze. Właściciel idzie do księgowej – ta mówi, że firma ma zysk. Idzie do banku – limit w koncie wykorzystany do ostatniej złotówki. Gdzie są pieniądze? Stoją na regałach.","Zapas to nie aktywa. To gotówka, której nie da się wydać.","Każda złotówka zamieniona w towar przestaje być złotówką. Staje się kartonem, który trzeba przechować, ubezpieczyć, przełożyć z miejsca na miejsce, policzyć przy inwentaryzacji i – przy odrobinie pecha – przecenić albo wyrzucić.","W bilansie nazywa się to „aktywa obrotowe”. Brzmi solidnie. W praktyce to pieniądze, które nie zapłacą za wynagrodzenia, ZUS, VAT ani za nową dostawę tego, co faktycznie się sprzedaje.","Jeśli firma finansuje się kredytem obrotowym albo limitem w koncie, zamrożony zapas ma cenę widoczną co miesiąc w odsetkach. Jeśli finansuje się sama, cena jest ukryta: to inwestycja, której nie zrobiła, bo nie było czym.","Dlaczego właściciele kupują za dużo?","Powody powtarzają się w każdej branży. Pierwszy: strach przed brakiem. Raz zabrakło towaru, klient poszedł do konkurencji, właściciel to zapamiętał. Od tamtej pory kupuje „na zapas” wszystko i zawsze. Drugi: rabat za ilość. „Przy większej partii jest osiem procent tanie
56j”. Rabat widać na fakturze. Kosztu leżenia towaru przez pół roku na fakturze nie ma.","Trzeci: zamawianie na oko. Zamówienie składa ten, kto akurat zobaczył pustą półkę. Nikt nie sprawdza, ile faktycznie schodzi i jak szybko.","Czwarty: sieroty. Towar kupiony pod klienta, który się rozmyślił. Leży trzeci rok, bo nikt nie ma odwagi go przecenić i przyznać, że to była pomyłka.","Standard rynkowy brzmi: „zamawiamy tyle, co zawsze”. „Zawsze” to nie metoda. To przyzwyczajenie z dobrym PR-em.","Za mało też kosztuje.","Druga strona medalu: pusta półka to utracona sprzedaż i klient, który następnym razem zadzwoni gdzie indziej. Właściciel zwykle huśta się między skrajnościami. Po kryzysie z brakiem towaru kupuje za dużo. Po kryzysie z gotówką tnie zamówienia tak mocno, że towaru znów brakuje. I tak w kółko.","Wahadło to nie system. To nastrój.","Trzy pytania zamiast przeczucia.","Zarządzanie zapasami sprowadza się do trzech pytań. Na każde da się odpowiedzieć liczbą. Pierwsze: kiedy zamawiać? Odpowiada na to punkt ponownego zamówienia: poziom zapasu, przy którym składasz zamówienie, żeby towar dojechał, zanim zejdzie ostatnia sztuka. Wzór jest prosty: średnia dzienna sprzedaż razy czas dostawy w dniach, plus zapas bezpieczeństwa.","Przykład. Sprzedajesz 12 sztuk dziennie, dostawca dowozi w 10 dni, a na wahania popytu chcesz mieć bufor 30 sztuk. 12 razy 10 to 120, plus 30. Zamawiasz, gdy na stanie zostaje 150 sztuk. Nie wtedy, gdy półka jest pusta. Nie wtedy, gdy ktoś sobie przypomni.","Drugie: ile zamawiać? Za małe partie – płacisz za transport i obsługę zamówień częściej niż trzeba. Za duże – zamrażasz gotówkę. Istnieje wielkość dostawy, przy której suma tych dwóch kosztów jest najniższa, i da się ją policzyć. Rabat za ilość też da się policzyć. Czasem się opłaca. Częściej, niż się wydaje, nie.","Trzecie: co w ogóle pilnować? Nie wszystkie pozycje są równe. Zwykle niewielka część asortymentu robi większość obrotu. To zasada orientacyjna, nie prawo natury, ale w firmach handlowych sprawdza się zaskakująco często.","Klasyfikacja ABC dzieli towar na trzy grupy. A to kilka pozycji, które robią obrót – pilnujesz ich co tydzień. B to środek. C to długi ogon, który wystarczy przejrzeć raz na kwartał. Właściciel, który pilnuje wszystkiego tak samo, nie pilnuje niczego.","Co zrobić w tym tygodniu?","Pięć kroków, zero filozofii. Krok pierwszy: wyciągnij z systemu (albo z Excela) sprzedaż każdej pozycji z ostatnich 12 miesięcy. Krok drugi: posortuj od największego obrotu – pierwsze pozycje to Twoje A. Krok trzeci: zaznacz wszystko, co nie sprzedało się ani razu przez ostatnie pół roku, i dodaj wartość zakupu. Ta suma to Twoja śpiąca gotówka. Zwykle jest większa, niż zakładasz.","Krok czwarty: dla pozycji A policz punkt zamówienia i zapas bezpieczeństwa. Dla pozycji C zdecyduj, czy w ogóle chcesz je trzymać. Krok piąty: śpiący towar przecen, sprzedaj pakietowo, zwróć dostawcy albo spisz na straty. Każda z tych opcji jest lepsza niż trzymanie go do emerytury.","Ręcznie zajmie to dzień, może dwa. Z dobrym narzędziem – kilkanaście minut.","Gdzie jest narzędzie?","Do tego służy [Zarządzanie zapasami](/narzedzia/zapasy): odpowiada na pytanie „ile towaru mieć i kiedy zamawiać”. Wylicza punkt zamówienia, zalecaną wielkość dostawy, zapas bezpieczeństwa i klasyfikację ABC. Liczby zamiast przeczucia. Narzędzia na tej stronie działają na indywidualnym dostępie – login i hasło dostają firmy, z którymi pracuję.","Pełny magazyn nie jest dowodem, że firma ma się dobrze. Pełne konto jest. Różnicę widać dopiero wtedy, kiedy ktoś policzy. Jeśli zysk jest na papierze, a gotówki brakuje – to nie jest pech, tylko mechanizm, który da się rozebrać na części. Opisz swoją sytuację w [formularzu kwalifikacyjnym](/kwalifikacja). Jeśli to, co robię, ma sens w Twojej firmie, powiem to wprost. Jeśli nie – też."],"image":"/images/articles/art-19.webp"},{"id":20,"slug":"handlowiec-nie-jest-leniwy-system-premii-nagradza-zly-wynik","title":"Twój handlowiec nie jest leniwy. Ma system premii, który nagradza zły wynik","category":"SPRZEDAŻ","categoryNum":"20","readingTime":"4 MIN","excerpt":"Premia od obrotu to zaproszenie do rabatowania. Handlowiec robi dokładnie to, za co mu płacisz, a zysk z umowy znika, zanim klient zapłaci pierwszą fakturę.","paragraphs":["Płacisz handlowcowi za obrót, a potem dziwisz się, że firma ma obrót i nie ma pieniędzy. Twój handlowiec nie jest leniwy. Jest bardzo skuteczny. Robi dokładnie to, za co mu płacisz.","Co tak naprawdę kupujesz?","Znam ten układ z wielu firm. Handlowiec dostaje procent od sprzedaży. Im większa faktura, tym większa premia. Nikt nie pyta, ile z tej faktury zostało po kosztach realizacji, rabatach, reklamacjach i trzech dodatkowych wizytach serwisu. Handlowiec wie, że nikt nie pyta. Więc przestaje pytać także samego siebie.","Przykład, liczby poglądowe: usługa wyceniona na 100 tysięcy złotych, 
56koszty realizacji 70 tysięcy, czyli 30 tysięcy marży. Handlowiec zamyka ją z rabatem 20 procent, bo klient podpisze dziś. Cena spada do 80 tysięcy, a koszty nie spadają ani o złotówkę. Zostaje 10 tysięcy, z czego 4 tysiące to jego premia w wysokości 5 procent od obrotu. On bierze swoje 4 tysiące, a Ty zostajesz z 6 tysiącami i całym ryzykiem realizacji. Do tego klient, który właśnie nauczył się, że cena to punkt wyjścia do negocjacji.","Powtórz to kilkadziesiąt razy w roku, a dostaniesz firmę, która w prezentacji ma świetną sprzedaż, a na koncie przeciętny wynik. Rośnie obrót, rośnie liczba spraw do obsłużenia, rośnie Twoje zmęczenie. Marża stoi w miejscu albo spada, bo każda kolejna umowa jest podpisywana odrobinę taniej niż poprzednia, a nikt tego nie zatrzymuje.","Dlaczego to nie jest jego wina.","System premiowy to jedyna instrukcja, którą handlowiec czyta naprawdę. Nie czyta strategii ani wartości firmy wiszących na ścianie w recepcji. Czyta, za co dostaje pieniądze. Obrót jest łatwy do policzenia, więc wszyscy go liczą. Marża wymaga pracy z księgowością i szczerej rozmowy, więc wszyscy ją odkładają. Tak powstaje firma, w której najlepszy sprzedawca bywa najdroższym pracownikiem.","Jest też drugi problem, mniej wygodny. To właściciel często sam nauczył ludzi rabatu. Raz zgodził się na obniżkę, żeby zamknąć miesiąc. Raz machnął ręką na dorzucone poprawki, bo klient był ważny. Handlowiec niczego nie wymyślił. Zobaczył, co u Ciebie działa, i to powtarza. O tym, jak właściciele sami wyceniają się poniżej wartości, pisałem w tekście [Dlaczego właściciele MŚP sprzedają za tanio](/baza-wiedzy/dlaczego-wlasciciele-msp-sprzedaja-za-tanio). Tutaj ten sam błąd robi się w dwie strony: najpierw obniżasz cenę Ty, potem Twój handlowiec, a Ty jeszcze go za to nagradzasz.","Właściciele latami szukają „lepszych handlowców\\". Zmieniają ludzi, płacą za szkolenia z technik sprzedaży, kupują kolejne motywatory. Tymczasem problem siedzi w jednej kolumnie arkusza z premiami. Szkolenie z negocjacji nie pomoże komuś, kto jest opłacany za oddawanie marży.","Jak to naprawić w tym tygodniu:","Krok pierwszy: zmień podstawę premii z obrotu na marżę. Nie musisz od razu budować skomplikowanego systemu. Weź ostatnie dziesięć umów, policz marżę każdej po kosztach realizacji i zobacz, kto i co naprawdę przyniósł firmie. Rozrzut Cię zaboli, ale lepiej zobaczyć go w arkuszu niż dopiero na koncie.","Krok drugi: ustaw próg rabatu, powyżej którego handlowiec nie decyduje sam. Na przykład do 5 procent schodzi z ceny bez pytania, do 10 procent potrzebuje Twojej zgody, powyżej nie ma rozmowy. Progi dobierz do swojej marży, to tylko ilustracja. Rabat przestaje być prezentem z cudzej kieszeni, a staje się decyzją, za którą ktoś odpowiada.","Krok trzeci: wypłacaj premię dopiero po zapłacie faktury i po zamknięciu realizacji bez dodatkowych poprawek. Sprzedaż, której klient nie opłacił albo która wróciła jako reklamacja, nie jest sprzedażą. Jest pożyczką, której firma udzieliła klientowi, a Ty płacisz za nią prowizję. Zmianę regulaminu premiowego skonsultuj z prawnikiem, bo to zmiana warunków wynagrodzenia.","Krok czwarty: porozmawiaj z handlowcami przed zmianą, nie po niej. Pokaż im przykład liczbowy i wytłumacz, że zmieniasz zasady gry, a nie zabierasz im pieniądze. Dobry handlowiec na rozsądnej marży może zarobić tyle samo, a sprzedaż stanie się dla niego bardziej przewidywalna. Ci, którzy sprzedają mądrze, zwykle się ucieszą. Ci, którzy żyli z rabatu, poznasz po reakcji.","Co sprawdzać co miesiąc:","Raz w miesiącu patrz na trzy liczby: średni rabat na handlowca, średnią marżę na umowę i odsetek faktur zapłaconych w terminie. Ta jedna strona powie Ci więcej niż raport sprzedaży z rankingiem obrotów. Ranking obrotów mówi, kto głośno sprzedaje. Marża mówi, kto zarabia dla firmy. Jeśli nie wiesz, jak liczyć marżę i co jeszcze powinno leżeć na Twoim biurku, zacznij od tekstu o [wskaźnikach finansowych, które musisz znać](/baza-wiedzy/wskazniki-finansowe-ktore-musisz-znac-jesli-prowadzisz-wlasna-firme).","Jeśli Twój system premii nagradza obrót, a o marży dowiadujesz się po fakcie, masz dziurę, przez którą wycieka zysk. Da się ją zamknąć jedną rozmową i jednym arkuszem. Wypełnij [formularz kwalifikacyjny](/kwalifikacja), a zobaczymy na liczbach, ile kosztuje Cię sprzedaż, z której tak się cieszysz."],"image":"/images/articles/art-20.webp"},{"id":21,"slug":"zatrudniles-dobrego-czlowieka-po-trzech-miesiacach-go-nie-znosisz","t
56itle":"Zatrudniłeś „dobrego człowieka”. Po trzech miesiącach go nie znosisz. Błąd był wcześniej","category":"REKRUTACJA","categoryNum":"21","readingTime":"4 MIN","excerpt":"Nie zatrudniłeś złego człowieka. Zatrudniłeś kogoś, kogo nigdy nie opisałeś. Sprawdź, dlaczego rekrutacja na wibracje kosztuje więcej, niż pokazuje pensja, i co zmienić, zanim ogłosisz kolejną.","paragraphs":["Nie zatrudniłeś złego człowieka. Zatrudniłeś kogoś, kogo nigdy nie opisałeś, a potem zdziwiłeś się, że nie spełnia oczekiwań, których nikt nigdy nie zapisał.","Znam ten układ z wielu firm. Rozmowa trwa godzinę, kandydat jest błyskotliwy, pasuje „energią”, właściciel czuje, że się dogadali. Umowa podpisana. Po trzech miesiącach właściciel patrzy na tego samego człowieka i nie rozumie, skąd w firmie wzięła się osoba tak mało samodzielna, tak wolna, tak nie na miejscu. Kandydat się nie zmienił. Zmieniło się tylko to, że rozmowa się skończyła, a zaczęła praca.","Rekrutacja na wibracje to loteria z pensją w tle.","Brak opisu stanowiska i kryteriów oznacza, że o wyborze decyduje jedno: czy kandydat Ci się spodobał. Sympatia jest świetnym kryterium przy wyborze sąsiada. Przy wyborze osoby, której płacisz co miesiąc kilka tysięcy złotych, to hazard. Najgorsze, że najlepiej wypadają ci, którzy najlepiej mówią o sobie. Umiejętność sprzedania się na rozmowie i umiejętność wykonania pracy to dwie różne umiejętności, a Ty sprawdzasz tylko pierwszą. Znam właścicieli, którzy po trzecim nietrafionym człowieku z rzędu wyciągają wniosek, że dzisiaj nikt nie chce pracować. Ludzie chcą. Tylko nikt im nie powiedział, na czym ta praca ma polegać i jak będzie oceniana.","Dlaczego właściciel wybiera sercem, a rozlicza rozumem?","Bo w rekrutacji właściciel szuka ulgi, nie kompetencji. Jest przeciążony, ma dziurę w zespole, więc w pierwszym kandydacie, który nie budzi niepokoju, widzi koniec swoich problemów. Decyzja zapada w emocjach, uzasadnienie dopisuje się potem: „miał dobre podejście”, „czułem, że to ten”. Nikt nie pyta, do czego dokładnie ma być ta osoba, po czym poznasz po trzydziestu dniach, że to działa, i co zrobisz, jeśli nie działa. Bez tego nie ma jak ocenić człowieka, więc po trzech miesiącach oceniasz go po irytacji. A irytacja to najgorszy miernik, jaki istnieje.","Dochodzi drugi mechanizm: wdrożenie. Nowy człowiek dostaje komputer, hasło do systemu i polecenie „podpatruj Zbyszka”. Zbyszek ma swoje zadania i swoje nawyki, w tym złe. Po miesiącu nowy robi dokładnie to samo co Zbyszek, łącznie z błędami, a Ty winisz nowego. O tym, jak wygląda praca bez opisanego procesu, piszę w tekście [Proces bez właściciela nie jest procesem, jest życzeniem](/baza-wiedzy/proces-bez-wlasciciela-nie-jest-procesem-jest-zyczeniem).","Błąd jest tani na początku i drogi po kwartale.","Zły wybór to nie tylko pensja. To czas, który tracisz na poprawianie, rozmowy, których unikasz, i zespół, który patrzy, co z tym zrobisz. Przykład, liczby poglądowe: osoba z pensją 8 000 zł brutto miesięcznie, którą trzymasz pół roku, zanim przyznasz się przed sobą do pomyłki, to w samej pensji kilkadziesiąt tysięcy złotych za coś, czego nie chciałeś. Do tego Twój czas i cierpliwość zespołu, których na fakturze nie zobaczysz.","Co zrobić, zanim ogłosisz następną rekrutację:","Krok pierwszy: napisz, po co to stanowisko istnieje. Jedno zdanie: jaki wynik ma zapewniać ta osoba i po czym go poznasz. Nie lista obowiązków przepisana z ogłoszenia konkurencji, tylko wynik. Jeśli nie umiesz tego napisać, nie szukasz pracownika, szukasz ulgi, i to ona wybierze za Ciebie.","Krok drugi: wypisz pięć kryteriów i nadaj każdemu wagę. Trzy twarde, czyli konkretne umiejętności albo doświadczenia, i dwa miękkie, ale opisane zachowaniem, nie przymiotnikiem. Nie „komunikatywny”, tylko „potrafi w dwóch zdaniach powiedzieć klientowi, czego firma nie zrobi”. Po rozmowie wstawiasz każdemu kryterium ocenę, zanim komukolwiek powiesz, jak Ci się rozmawiało.","Krok trzeci: zamień rozmowę na próbę. Daj kandydatowi małe zadanie z prawdziwej pracy na 30-45 minut: odpowied
56ź trudnemu klientowi, plan tygodnia, ocenę przykładowej oferty. Zobaczysz, jak myśli, a nie jak opowiada. Formę próby i ewentualne rozliczenie z kandydatem ustal z księgową lub prawnikiem.","Krok czwarty: zaplanuj pierwsze 90 dni na papierze. Co ma umieć po tygodniu, po miesiącu i po trzech miesiącach oraz kto to sprawdza. Nie Zbyszek „przy okazji”, tylko wskazana osoba z czasem w kalendarzu. To uczciwa umowa z człowiekiem: wie, czego od niego chcesz. Gdzie kończy się zaufanie, a zaczyna brak kontroli, piszę w tekście [Delegowanie bez kontroli to nie zaufanie](/baza-wiedzy/delegowanie-bez-kontroli-to-nie-zaufanie).","Nie obiecuję, że po tym nigdy nie pomylisz się w rekrutacji. Obiecuję, że pomylisz się rzadziej, szybciej to zauważysz i będziesz wiedział dlaczego. To różnica między firmą, która uczy się na błędach, a firmą, która co kwartał powtarza ten sam błąd z nowym człowiekiem. Jeśli łapiesz się na pytaniu, czy problemem są ludzie, czy sposób, w jaki ich wybierasz i wprowadzasz, to zwykle ten drugi.","Chcesz sprawdzić, gdzie w Twojej firmie rekrutacja i wdrożenie robią Ci największe szkody? Wypełnij [formularz kwalifikacyjny](/kwalifikacja). Pracuję z właścicielami, którzy chcą wyniku, nie pocieszenia."],"image":"/images/articles/art-21.webp"},{"id":22,"slug":"wydajesz-na-reklame-nie-wiesz-co-wraca-to-hazard","title":"Wydajesz na reklamę i nie wiesz, co z tego wraca. To nie marketing, to hazard","category":"MARKETING","categoryNum":"22","readingTime":"4 MIN","excerpt":"Raport agencji pokazuje kliknięcia, a Ty płacisz fakturą. Jedna prosta kalkulacja pokaże, czy reklama zarabia na siebie, czy dopłacasz do każdego nowego klienta.","paragraphs":["Wydajesz na reklamę kilkanaście tysięcy miesięcznie i nie potrafisz powiedzieć, ile z tego wróciło. To nie jest marketing. To ruletka z fakturą od agencji.","Co właściwie dostajesz w raporcie?","Znam ten układ z wielu firm. Co miesiąc przychodzi raport: zasięgi, kliknięcia, koszt kliknięcia, liczba zapytań. Wykresy rosną, kolory są ładne. Właściciel kiwa głową, bo nie ma do czego tego przyłożyć. Nikt nie liczy, ilu z tych ludzi kupiło, za ile i czy wrócili po drugi raz. Raport mierzy aktywność agencji, a nie wynik Twojej firmy.","Przykład, liczby poglądowe: wydajesz 20 tysięcy złotych miesięcznie i dostajesz 40 zapytań, czyli 500 złotych za zapytanie. Z 40 zapytań kupuje 5 osób, więc pozyskanie jednego klienta kosztuje 4 tysiące złotych. Jeśli taki klient zostawia jednorazowo 3 tysiące przychodu przy marży 30 procent, czyli 900 złotych, dopłacasz do każdego nowego klienta ponad 3 tysiące. Kampania jest „skuteczna\\". Firma jest coraz biedniejsza.","Zwróć uwagę, że w tym przykładzie nic nie jest wyjątkowo złe. Cena zapytania jest rozsądna, zapytań jest sporo, handlowiec odbiera telefony. Każdy element z osobna wygląda przyzwoicie. Dopiero zestawienie z marżą pokazuje, że cała maszyna kręci się po to, żeby pogłębiać dziurę. To dlatego tyle firm płaci za reklamę latami i nikt nie widzi problemu.","Dlaczego nikt tego nie liczy.","Bo wygodniej patrzeć na liczby, które policzył ktoś inny. Platformy reklamowe pokazują koszt kliknięcia i konwersji, bo to mają w systemie. Nie mają Twojej marży, kosztów realizacji ani informacji, kto zapłacił po sześćdziesięciu dniach. Te dane leżą u Ciebie, w księgowości i w głowie handlowca, i nikt nie łączy ich z budżetem reklamowym. W większości małych firm marketing i finanse nigdy się nie spotykają.","Jest też druga strona, mniej przyjemna. Agencja bywa rozliczana z działań albo z procentu od budżetu. Im więcej wydasz, tym więcej zarobi. To nie czyni jej złą. To czyni jej cel innym niż Twój. Ty chcesz marży po kosztach pozyskania klienta, ona chce stałego i rosnącego budżetu. O tym, jak łatwo pomylić ruch z wynikiem, pisałem w tekście [Jak odróżnić zły miesiąc od złego modelu](/baza-wiedzy/jak-odroznic-zly-miesiac-od-zlego-modelu).","Najgorsze jest to, że właściciel często odbiera pytanie o zwrot z reklamy jako brak zaufania do specjalistów. Nie jest. Pytanie „ile zarobiliśmy na tym złotówek\\" to pytanie, które zadaje każdy, kto płaci. Jeśli ktoś się na nie obraża, masz odpowied
56ź na inne pytanie.","Co zrobić w tym tygodniu:","Krok pierwszy: policz koszt pozyskania klienta, nie koszt kliknięcia ani zapytania. Weź całkowite wydatki na reklamę z ostatnich trzech miesięcy, razem z opłatą dla agencji i czasem handlowca, i podziel przez liczbę nowych klientów, którzy rzeczywiście zapłacili. Jedna liczba. Bez wykresów.","Krok drugi: sprawdź, ile taki klient zostawia w firmie, liczone marżą, nie przychodem. Weź kilkunastu ostatnich klientów, zsumuj przychody i odejmij koszty realizacji. Jeśli klienci wracają, policz powroty. Jeśli nie wracają, liczy się tylko pierwszy zakup, a to zmienia całą kalkulację.","Krok trzeci: porównaj te dwie liczby. Zasada robocza, nie prawo natury: marża z klienta powinna być wyraźnie wyższa niż koszt jego pozyskania, a im wyższa, tym zdrowszy model. Jeśli jest niższa, każda złotówka dołożona do reklamy powiększa stratę. Wtedy nie zwiększasz budżetu, tylko naprawiasz ofertę, cenę albo kanał. Jeśli nie masz pod ręką marży, zacznij od tekstu o [wskaźnikach finansowych, które musisz znać](/baza-wiedzy/wskazniki-finansowe-ktore-musisz-znac-jesli-prowadzisz-wlasna-firme).","Krok czwarty: zażądaj od agencji albo osoby prowadzącej reklamy jednej tabeli. Kanał, wydatek, liczba nowych klientów, którzy zapłacili. Jeśli nie potrafią jej dostarczyć, to często dlatego, że nie mają Twoich danych sprzedażowych. Dostarcz je. Raz w miesiącu, w jednym pliku, razem z marżą.","Co dalej z wynikami:","Zrób to samo z każdym kanałem osobno: reklama w wyszukiwarce, media społecznościowe, polecenia, targi. Polecenia bywają najtańszym źródłem klientów, a nikt ich nie liczy jako kanału, bo nie wystawiają faktury. Reklama płatna wystawia fakturę co miesiąc, więc to ją widać w budżecie. Widoczność kosztu nie jest tym samym co jego sens.","Kanały, które nie zwracają się po kosztach, ucinasz albo przebudowujesz. Tam, gdzie klient kosztuje najmniej, a zostawia najwięcej, możesz dołożyć. Budżet zmieniasz raz w miesiącu, na liczbach, a nie na wrażeniach z cudzej prezentacji. Taki rytm jest nudny. Nudne bywa też zarabianie pieniędzy.","Reklama bez policzonego zwrotu to nie inwestycja, tylko hazard. Różnica jest taka, że w kasynie przynajmniej wiesz, ile postawiłeś. Wypełnij [formularz kwalifikacyjny](/kwalifikacja), a sprawdzimy na Twoich liczbach, które złotówki pracują, a które po prostu wyciekają."],"image":"/images/articles/art-22.webp"}]`),ov=eN;function tN(e){return ov.find(t=>t.slug===e)}const pL=Array.from(new Set(ov.map(e=>e.category))),st="https://adamhanczyn.pl",nN="/og-adam-hanczyn.png",Sg="Adam Hanczyn — doradztwo operacyjne dla właścicieli firm";function sv(){const e=`${st}${nN}`;return[{property:"og:image",content:e},{property:"og:image:width",content:"1200"},{property:"og:image:height",content:"630"},{property:"og:image:alt",content:Sg},{name:"twitter:card",content:"summary_large_image"},{name:"twitter:image",content:e},{name:"twitter:image:alt",content:Sg}]}const aN={"@type":"Organization","@id":`${st}/#organization`,name:"PRACUJMNIEJ sp. z o.o.",url:st},iN={"@type":"Person","@id":`${st}/#person`,name:"Adam Hanczyn",url:`${st}/o-mnie`,image:`${st}/images/adam-portrait.png`,jobTitle:"Doradca operacyjny",worksFor:{"@id":`${st}/#organization`}};function cv(){return{type:"application/ld+json",children:JSON.stringify({"@context":"https://schema.org","@graph":[aN,iN]})}}function rN(e){return{type:"application/ld+json",children:JSON.stringify({"@context":"https://schema.org","@type":"Article",headline:e.title,description:e.excerpt.slice(0,300),image:`${st}${e.image}`,url:`${st}/baza-wiedzy/${e.slug}`,author:{"@type":"Person",name:"Adam Hanczyn",url:`${st}/o-mnie`},publisher:{"@type":"Organization",name:"PRACUJMNIEJ sp. z o.o.",url:st}})}}const oN=()=>he(()=>import("./index-CxGulhJR.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8])),sN=me()({head:()=>({meta:[{title:"Adam Hanczyn — doradztwo operacyjne dla właścicieli firm"},{name:"description",content:"Pomagam właścicielom rozwijać firmę, zarabiać więcej i pracować mniej. Konsulting 1:1 dla firm 300k+."},{property:"og:title",content:"Adam Hanczyn — doradztwo operacyjne dla właścicieli firm"},{property:"og:description",content:"Pomagam właścicielom rozwijać firmę, zarabiać więcej i pracować mniej. Konsulting 1:1 dla firm 300k+."},{property:"og:type",content:"website"},{property:"og:url",content:`${st}/`},...sv()],links:[{rel:"canonical",href:`${st}/`}],scripts:[cv()]}),component:fe(oN,"component")}),cN=()=>he(()=>import("./route-B9O-iawp.js"),[]),lN=me()({beforeLoad:async()=>{const{data:e,error:t}=await tv.auth.getUser();if(t||!e.user)throw ws({to:"/procedury/logowanie"});return{user:e.user}},component:fe(cN,"component")}),pa=Ja({type:"function"}),yL="Pierwsza Trzydziestka: do 5.11 pierwszeństwo mają osoby z dostępem na start. Od 6.11 plan jest dostępny dla wszystkich.",uN=jt({method:"GET"}).handler(Ct("2aabee8facc25802abf65037eb6e97bcf7f9d33cfc5398ee26794260b59acdb0")),mL=jt({method:"POST"}).handler(Ct("279e0934f7af155b8dc4643b13e8e95654eb9a3574486cf3bc47f0b3f5c73651")),zL=jt({method:"POST"}).middleware([pa]).handler(Ct("3a5f0ad011dea176c830963162c0483719ec9e35e93842b8fd819398f9cb29a1")),wL=jt({method:"GET"}).middleware([pa]).handler(Ct("64bcd8cfbdeedbf5b43080d7f14a9a899ec8f8ef31b0e0b4b7c8b6067003598b")),gL=jt({method:"GET"}).middleware([pa]).handler(Ct("6a108af238e2c8094591d4ca99a987b56870f34456c9f06bc748e1f5e93ed98d")),bL=jt({method:"POST"}).middleware([pa]).handler(Ct("2f1f7a59ff8e5afde3c8f27b24388f2561da6b2e2cbc95ca86f15929d2a7d19f")),kL=jt({method:"POST"}).middleware([pa]).handler(Ct("23f9954c5c9465694a22ef6f68dbfb88934b8eb24fbe94e8d77e76b41e31ea96")),vL=jt({method:"POST"}).middleware([pa]).handler(Ct("bbfbce58c1a1f65d22a2544d51a402943f483d3a2bbc1658dac3f98bb5893ae5")),jL=jt({method:"POST"}).middleware([pa]).handler(Ct("565850b61d47d308df7d20d65c6254d4139d5e39f2cb1bb4b1c52a832a039ccf")),_L="Zapisuję się na listę startową i zgadzam się na otrzymywanie informacji o abonamencie Skuteczny Przedsiębiorca. Administratorem danych jest PRACUJMNIEJ sp. z o.o. Zgodę mogę wycofać w każdej chwili.",dN=jt({method:"GET"}).handler(Ct("337569f6b447566020dd71e49f1e2556a07ef112876086dc9939faa56faf1db2")),SL=jt({method:"GET"}).handler(Ct("29cda78ec1f5cce1c7554081cac7f8b09879c41128be81310500ba9eaf912231")),TL=jt({method:"POST"}).handler(Ct("067882e8a79e8c18376ccf9b96ce48bd4a9470af22e0cab6cc7d87c2290a2654")),EL=jt({method:"GET"}).middleware([pa]).handler(Ct("cf0f6efa7acf007744e95732c3c9ff3864fef9201219599b11d07898add36b19")),AL=jt({method:"POST"}).middleware([pa]).handler(Ct("7f5a9c58f6d6f0536fe6175c0b7cf806dfe864cd00adb9c126b9dfe40d8a8727")),fN=()=>he(()=>import("./abonament-BWOxphFR.js"),__vite__mapDeps([9,10,11,12,13,14,8])),hN=()=>he(()=>import("./abonament-BSkzxm5O.js"),__vite__mapDeps([15,16])),pN=()=>he(()=>import("./abonament-rplQA7oc.js"),__vite__mapDeps([17,16])),Tg="Skuteczny Przedsiębiorca: abonament dla właścicieli firm",Eg="Narzędzia do liczenia i porządkowania firmy, szkolenia na żywo (webinary) z nagraniami i zamknięta grupa dla właścicieli firm. Dostęp na start 99 zł netto do 2.11, od 3.11 Pierwsza Trzydziestka 149 zł netto miesięcznie lub 1 490 zł netto rocznie dla pierwszych 30 osób. Tylko dla firm.",yN=me()({loader:async()=>{const[e,t]=await Promise.all([dN(),uN()]);if(!e.enabled)throw Gg();return{...e,available:t.available,betaWindowOpen:t.betaWindowOpen,regularWindowOpen:t.regularWindowOpen,priorityWindowActive:t.priorityWindowActive}},head:({loaderData:e})=>({meta:e?[{title:Tg},{name:"description",content:Eg},{property:"og:title",content:Tg},{property:"og:description",content:Eg},{property:"og:type",content:"website"},{name:"twitter:card",content:"summary"},{name:"robots",content:"noindex"}
56]:[{title:"Nie znaleziono"},{name:"robots",content:"noindex"}]}),notFoundComponent:fe(pN,"notFoundComponent"),errorComponent:fe(hN,"errorComponent"),component:fe(fN,"component")}),mN=()=>he(()=>import("./abonament-test-e3cbSkzp.js"),__vite__mapDeps([18,10,11,14])),zN=me()({head:()=>({meta:[{title:"Abonament Skuteczny Przedsiębiorca — test"},{name:"description",content:"Tymczasowa strona testowa zakupu abonamentu."},{property:"og:title",content:"Abonament — test"},{property:"og:description",content:"Tymczasowa strona testowa zakupu abonamentu."},{property:"og:type",content:"website"},{name:"twitter:card",content:"summary"},{name:"robots",content:"noindex, nofollow"}]}),component:fe(mN,"component")}),wN=()=>he(()=>import("./analiza-B_UiMMhE.js"),__vite__mapDeps([19,1,2,20,8,3])),gN=me()({head:()=>({meta:[{title:"Analiza firmy — formularz diagnostyczny"},{name:"robots",content:"noindex, nofollow"},{name:"description",content:"Formularz diagnostyczny dla klientów w procesie współpracy."}]}),component:fe(wN,"component")}),bN=()=>he(()=>import("./dpa-abonamentu-EtqasDKI.js"),__vite__mapDeps([21,22])),kN=me()({head:()=>({meta:[{property:"og:title",content:"DPA usługi Skuteczny Przedsiębiorca — PRACUJMNIEJ"},{property:"og:description",content:"Zasady powierzenia danych i korzystania z AI w usłudze Skuteczny Przedsiębiorca."},{property:"og:type",content:"website"},{name:"twitter:card",content:"summary"},{title:"Umowa powierzenia przetwarzania danych (DPA) dla usługi Skuteczny Przedsiębiorca — PRACUJMNIEJ sp. z o.o."},{name:"description",content:"Umowa powierzenia przetwarzania danych osobowych (DPA, art. 28 RODO) dla usługi abonamentowej Skuteczny Przedsiębiorca — PRACUJMNIEJ sp. z o.o."}]}),component:fe(bN,"component")}),vN={sp_beta_99:99,sp_monthly_199:199,sp_founding_149:149,sp_founding_annual_1490:1490,sp_founding_199:199,sp_annual_1990:1990},jN=()=>he(()=>import("./dziekujemy-CG6yet7n.js"),[]),_N=me()({validateSearch:e=>{const t=e.plan;return typeof t=="string"&&Object.prototype.hasOwnProperty.call(vN,t)?{plan:t}:{}},head:()=>({meta:[{title:"Dziękujemy za zakup — PRACUJMNIEJ sp. z o.o."},{name:"description",content:"Potwierdzenie płatności za abonament Skuteczny Przedsiębiorca."},{property:"og:title",content:"Dziękujemy za zakup"},{property:"og:description",content:"Sprawdź skrzynkę e-mail — wysłaliśmy link do ustawienia hasła."},{property:"og:type",content:"website"},{name:"twitter:card",content:"summary"},{name:"robots",content:"noindex"}]}),component:fe(jN,"component")}),SN=()=>he(()=>import("./jak-pracuje-Cl5TpZz8.js"),__vite__mapDeps([23,4,5,6,3])),TN=me()({head:()=>({meta:[{title:"Jak pracuję — Adam Hanczyn"},{name:"description",content:"Cztery etapy współpracy 1:1: diagnoza, projekt naprawy, wdrożenie, utrwalenie. Konkretne efekty operacyjne, nie slajdy."}]}),component:fe(SN,"component")}),EN=()=>he(()=>import("./kwalifikacja-CNZCnxfG.js"),__vite__mapDeps([24,1,2,8,3])),AN=me()({head:()=>({meta:[{title:"Kwalifikacja do współpracy — Adam Hanczyn"},{name:"description",content:"Krótki filtr dla tematów, które naprawdę mają ciężar biznesowy. Wypełnij formularz — odezwę się w ciągu 24h."}]}),component:fe(EN,"component")}),RN=()=>he(()=>import("./o-mnie-Ct9mWt4-.js"),__vite__mapDeps([25,3])),ON=me()({head:()=>({meta:[{title:"O mnie — Adam Hanczyn"},{name:"description",content:"Przedsiębiorca i doradca operacyjny. Pracuję z właścicielami firm, którzy doszli do ściany operacyjnej i potrzebują porządku, nie motywacji."},{property:"og:title",content:"O mnie — Adam Hanczyn"},{property:"og:description",content:"Przedsiębiorca i doradca operacyjny. Pracuję z właścicielami firm, którzy doszli do ściany operacyjnej i potrzebują porządku, nie motywacji."},{property:"og:type",content:"profile"},{property:"og:url",content:`${st}/o-mnie`},...sv()],links:[{rel:"canonical",href:`${st}/o-mnie`}],scripts:[cv()]}),component:fe(RN,"component")}),CN=()=>he(()=>import("./polityka-prywatnosci-C7S2ZEms.js"),[]),NN=me()({component:fe(CN,"component"),head:()=>({meta:[{property:"og:title",content:"Polityka prywatności — Adam Hanczyn"},{property:"og:description",content:"Zasady ochrony danych osobowych w serwisie Adam Hanczyn."},{property:"og:type",content:"website"},{name:"twitter:card",content:"summary"},{title:"Polityka prywatności — Adam Hanczyn"},{name:"description",content:"Polityka prywatności i informacja RODO serwisu Adam Hanczyn — konsultant biznesowy."}]})}),xN=()=>he(()=>import("./polityka-prywatnosci-abonamentu-DCHpirQM.js"),__vite__mapDeps([26,22])),DN=me()({head:()=>({meta:[{property:"og:title",content:"Polityka prywatności abonamentu — PRACUJMNIEJ"},{property:"og:description",content:"Zasady ochrony danych osobowych w serwisie Adam Hanczyn."},{property:"og:type",content:"website"},{name:"twitter:card",content:"summary"},{name:"description",content:"Zasady ochrony danych osobowych w serwisie Adam Hanczyn."},{title:"Polityka prywatności i plików cookies (abonament „Skuteczny Przedsiębiorca”) — PRACUJMNIEJ sp. z o.o."},{name:"robots",content:"noindex"}
56]}),component:fe(xN,"component")}),PN=()=>he(()=>import("./poradniki-5YVsaE6B.js"),__vite__mapDeps([27,1,2,28,3,29])),LN=me()({head:()=>({meta:[{title:"Poradniki — Adam Hanczyn"},{name:"description",content:"Praktyczne opracowania PDF dla właścicieli firm i zarządów. Krótko, konkretnie, z naciskiem na wdrożenie."}]}),component:fe(PN,"component")}),MN=()=>he(()=>import("./procedury-pQe1q7ND.js"),__vite__mapDeps([30,31])),UN=me()({component:fe(MN,"component")}),$N=()=>he(()=>import("./regulamin-abonamentu-L1M4GU0n.js"),__vite__mapDeps([32,22])),IN=me()({head:()=>({meta:[{property:"og:title",content:"Regulamin usługi Skuteczny Przedsiębiorca — PRACUJMNIEJ"},{property:"og:description",content:"Zasady korzystania z usługi Skuteczny Przedsiębiorca i gwarancji zwrotu w 14 dni."},{property:"og:type",content:"website"},{name:"twitter:card",content:"summary"},{title:"Regulamin usługi Skuteczny Przedsiębiorca — PRACUJMNIEJ sp. z o.o."},{name:"description",content:"Regulamin usługi abonamentowej Skuteczny Przedsiębiorca świadczonej przez PRACUJMNIEJ sp. z o.o. Obowiązuje od 21 października 2026 r."}]}),component:fe($N,"component")}),Ag="Dostęp na start: Skuteczny Przedsiębiorca",BN=()=>he(()=>import("./start-Drz6zXej.js"),__vite__mapDeps([33,10,11,12,13,14,8])),Rg="Dostęp na start: 99 zł netto + VAT 23% za 30 dni, do 2.11. Od 3.11 Pierwsza Trzydziestka 149 zł netto miesięcznie lub 1 490 zł netto rocznie dla pierwszych 30 osób.",HN=me()({head:()=>({meta:[{title:Ag},{name:"description",content:Rg},{property:"og:title",content:Ag},{property:"og:description",content:Rg},{property:"og:type",content:"website"},{name:"twitter:card",content:"summary"},{name:"robots",content:"noindex, nofollow"}]}),component:fe(BN,"component")}),qN=()=>he(()=>import("./subiekt-callback-EsD2enRb.js"),__vite__mapDeps([34,10,35,14])),KN=me()({head:()=>({meta:[{title:"Łączenie z Subiektem 123"},{name:"description",content:"Powrót z logowania InsERT."},{property:"og:title",content:"Łączenie z Subiektem 123"},{property:"og:description",content:"Powrót z logowania InsERT."},{property:"og:type",content:"website"},{name:"twitter:card",content:"summary"},{name:"robots",content:"noindex, nofollow"}]}),component:fe(qN,"component")}),JN=()=>he(()=>import("./narzedzia-dostepy-tde2QYhh.js"),__vite__mapDeps([36,10,37,38,39,40,7,14,41])),VN=me()({head:()=>({meta:[{title:"Klienci i dostępy — panel"},{name:"description",content:"Panel zarządzania klientami, planami i dostępem do narzędzi."},{property:"og:title",content:"Klienci i dostępy"},{property:"og:description",content:"Zarządzanie kontami klientów i dostępem do narzędzi."},{property:"og:type",content:"website"},{name:"twitter:card",content:"summary"},{name:"robots",content:"noindex"}]}),component:fe(JN,"component")}),ZN=()=>he(()=>import("./panel-klientow-BmTNe_kx.js"),__vite__mapDeps([42,10,43,14,31,20,44,41,45])),GN=me()({head:()=>({meta:[{title:"Panel klientów (admin) — Adam Hanczyn"},{name:"description",content:"Zarządzanie notatkami, plikami i postępem klientów."},{property:"og:title",content:"Panel klientów (admin)"},{property:"og:description",content:"Zarządzanie notatkami, plikami i postępem klientów."},{property:"og:type",content:"website"},{name:"twitter:card",content:"summary"}]}),component:fe(ZN,"component")}),YN=()=>he(()=>import("./platnosci-DpggZVz9.js"),__vite__mapDeps([46,13,10,35,14])),FN=me()({validateSearch:e=>({sprawa:typeof e.sprawa=="string"&&/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i.test(e.sprawa)?e.sprawa:void 0}),head:()=>({meta:[{title:"Płatności — panel"},{name:"description",content:"Panel płatności abonamentu Skuteczny Przedsiębiorca."},{property:"og:title",content:"Płatności — panel"},{property:"og:description",content:"Sprzedaż, prośby o faktury i subskrypcje."},{property:"og:type",content:"website"},{name:"twitter:card",content:"summary"},{name:"robots",content:"noindex"}]}),component:fe(YN,"component")}),WN=()=>he(()=>import("./zgloszenia-DWOMkRPS.js"),__vite__mapDeps([47,14,40,29])),XN=me()({head:()=>({meta:[{title:"Zgłoszenia — panel wewnętrzny"},{name:"description",content:"Wewnętrzny podgląd zgłoszeń z formularzy analizy, kwalifikacji i pobrań poradników."},{name:"robots",content:"noindex, nofollow"},{property:"og:title",content:"Zgłoszenia — panel wewnętrzny"},{property:"og:description",content:"Wewnętrzny podgląd zgłoszeń z formularzy."},{property:"og:type",content:"website"},{name:"twitter:card",content:"summary"}]}
56),component:fe(WN,"component")}),QN=()=>he(()=>import("./baza-wiedzy.index-CRMZ-ivJ.js"),__vite__mapDeps([48,3])),e2=me()({head:()=>({meta:[{title:"Baza wiedzy operacyjnej — Adam Hanczyn"},{name:"description",content:"Krótko, konkretnie i bez lania wody: artykuły o decyzjach, procesach, raportowaniu, finansach i wąskich gardłach w firmach."}]}),validateSearch:e=>typeof e.tag=="string"&&e.tag?{tag:e.tag}:{},component:fe(QN,"component")}),t2=()=>he(()=>import("./baza-wiedzy._slug-sK-IpjSP.js"),__vite__mapDeps([49,20,3])),n2=()=>he(()=>import("./baza-wiedzy._slug-BXZmOV9e.js"),[]),a2=()=>he(()=>import("./baza-wiedzy._slug-Thy3EEbF.js"),__vite__mapDeps([50,20])),i2=me()({loader:({params:e})=>{const t=tN(e.slug);if(!t)throw Gg();return{article:t}},head:({loaderData:e})=>{const t=e?.article;return t?{meta:[{title:`${t.title} — Baza wiedzy Adam Hanczyn`},{name:"description",content:t.excerpt.slice(0,158)},{property:"og:title",content:t.title},{property:"og:description",content:t.excerpt.slice(0,158)},{property:"og:image",content:`${st}${t.image}`},{name:"twitter:card",content:"summary_large_image"},{name:"twitter:image",content:`${st}${t.image}`},{property:"og:type",content:"article"},{property:"og:url",content:`${st}/baza-wiedzy/${t.slug}`}],links:[{rel:"canonical",href:`${st}/baza-wiedzy/${t.slug}`}],scripts:[rN(t)]}:{meta:[{title:"Artykuł — Adam Hanczyn"}]}},notFoundComponent:fe(a2,"notFoundComponent"),errorComponent:fe(n2,"errorComponent"),component:fe(t2,"component")}),r2=()=>he(()=>import("./narzedzia.index-BezILtSW.js"),__vite__mapDeps([51,37,3,52,53,54,28,55])),o2=me()({head:()=>({meta:[{title:"Narzędzia dla właścicieli firm — Adam Hanczyn"},{name:"description",content:"Kalkulatory i generatory dla właścicieli firm: rentowność, procedury, analiza finansowa i zapasy. Dostęp po zalogowaniu."},{property:"og:type",content:"website"},{name:"twitter:card",content:"summary"},{property:"og:title",content:"Narzędzia dla właścicieli firm — Adam Hanczyn"},{property:"og:description",content:"Kalkulatory i generatory, które pomogą zobaczyć liczby i procesy firmy takimi, jakie są naprawdę."}]}),component:fe(r2,"component")}),s2=()=>he(()=>import("./narzedzia.analiza-finansowa-DtqBFgK5.js"),[]),c2=me()({beforeLoad:()=>{throw ws({to:"/narzedzia/kondycja-finansowa"})},component:fe(s2,"component")}),l2=()=>he(()=>import("./narzedzia.asystent-BWDcrp-G.js"),__vite__mapDeps([56,10,57,38,37,14,52,58,28,59,2,20,60])),u2=me()({head:()=>({meta:[{title:"Asystent AI procedur — Adam Hanczyn"},{name:"description",content:"Zadaj pytanie — asystent znajdzie odpowiedź w procedurach Twojej firmy."},{property:"og:title",content:"Asystent AI procedur"},{property:"og:description",content:"Odpowiedzi na pytania pracowników na podstawie procedur firmy."}]}),component:fe(l2,"component")}),d2=()=>he(()=>import("./narzedzia.cashflow-DtqBFgK5.js"),[]),f2=me()({beforeLoad:()=>{throw ws({to:"/narzedzia/kondycja-finansowa"})},component:fe(d2,"component")}),h2=()=>he(()=>import("./narzedzia.generator-DXWhqtps.js"),__vite__mapDeps([61,10,57,38,37,14,52,58,28,59,2,62,63,29,20,64,45,65,41,3,8,7])),p2=me()({head:()=>({meta:[{title:"Generator Procedur Biznesowych — Adam Hanczyn"},{name:"description",content:"Wgraj notatki, dokument Word lub nagranie audio — AI wygeneruje pełną procedurę biznesową gotową do PDF."},{property:"og:title",content:"Generator Procedur Biznesowych"},{property:"og:description",content:"Wgraj chaotyczne notatki i nagrania — otrzymasz gotową procedurę w PDF."},{property:"og:type",content:"website"},{name:"twitter:card",content:"summary"}]}),component:fe(h2,"component")}),y2=()=>he(()=>import("./narzedzia.kalkulator-3QH1t3Gu.js"),__vite__mapDeps([66,63,57,10,38,37,14,52,1,2,20,55,8,3,64,29])),m2=me()({head:()=>({meta:[{title:"Kalkulator Rentowności Firmy — Adam Hanczyn"},{name:"description",content:"Bezpłatna analiza rentowności firmy w 8 minut. Marża, próg rentowności, luka płynnościowa i Health Score. Raport PDF do pobrania."},{property:"og:title",content:"Kalkulator Rentowności Firmy"},{property:"og:description",content:"Bezpłatna analiza w 8 minut. Raport PDF pobierzesz od razu."}]}),component:fe(y2,"component")}),z2=()=>he(()=>import("./narzedzia.kondycja-finansowa-BLm2N_oE.js"),__vite__mapDeps([67,63,10,57,38,37,14,52,2,20,54,45,7,68,29])),w2=me()({head:()=>({meta:[{title:"Kondycja finansowa firmy — Adam Hanczyn"},{name:"description",content:"Jedno narzędzie: wgraj wyciągi bankowe i dokumenty od księgowej, a otrzymasz wskaźniki finansowe z wyjaśnieniem, cashflow, prognozę i raport PDF."},{property:"og:title",content:"Kondycja finansowa firmy"},{property:"og:description",content:"Wskaźniki finansowe z wyjaśnieniem, przepływy, prognoza 3 miesięcy i raport PDF."},{property:"og:type",content:"website"},{name:"twitter:card",content:"summary"},{name:"robots",content:"noindex"}
56]}),component:fe(z2,"component")}),g2=()=>he(()=>import("./narzedzia.procedury-DVBWgqcr.js"),__vite__mapDeps([69,10,57,38,37,14,52,58,28,59,2,62,63,29,20,64,44,41,7,70])),b2=me()({head:()=>({meta:[{title:"Baza procedur — Adam Hanczyn"},{name:"description",content:"Wszystkie procedury wygenerowane na Twoim koncie w jednym miejscu."},{property:"og:title",content:"Baza procedur"},{property:"og:description",content:"Repozytorium procedur Twojej firmy."}]}),component:fe(g2,"component")}),k2=()=>he(()=>import("./narzedzia.zapasy-DcBOPCzn.js"),__vite__mapDeps([71,57,10,38,37,14,52,20,53,41,7])),v2=me()({head:()=>({meta:[{title:"Zarządzanie zapasami — Adam Hanczyn"},{name:"description",content:"Punkt zamówienia, zalecana wielkość dostawy, zapas bezpieczeństwa i klasyfikacja ABC na danych Twojej firmy."},{property:"og:title",content:"Zarządzanie zapasami"},{property:"og:description",content:"Ile towaru mieć, kiedy zamawiać i gdzie zamrażasz gotówkę bez potrzeby."},{property:"og:type",content:"website"},{name:"twitter:card",content:"summary"},{name:"robots",content:"noindex"}]}),component:fe(k2,"component")}),j2=()=>he(()=>import("./panel.index-ByP7M-Rf.js"),__vite__mapDeps([72,10,57,38,37,14,52,43,5,31,65,7,44,41])),_2=me()({head:()=>({meta:[{title:"Panel klienta — Adam Hanczyn"},{name:"description",content:"Twój panel współpracy: notatki ze spotkań, prywatne notatki, pliki na Google Drive, etap współpracy i dokumenty PDF."},{property:"og:title",content:"Panel klienta — Adam Hanczyn"},{property:"og:description",content:"Notatki ze spotkań, prace domowe, dokumenty i postęp współpracy w jednym miejscu."},{property:"og:type",content:"website"},{name:"twitter:card",content:"summary"}]}),component:fe(j2,"component")}),S2=()=>he(()=>import("./procedury.index-BbIMfMo9.js"),__vite__mapDeps([73,74,3,68,75,59,76,6,52,77,8])),T2=me()({head:()=>({meta:[{title:"Procedury — repozytorium procedur firmy z asystentem AI | Adam Hanczyn"},{name:"description",content:"Buduj repozytorium procedur firmy szybciej. Generator tworzy procedurę w 10 minut, a asystent AI odpowiada pracownikom na pytania w oparciu o procedury Twojej firmy."},{property:"og:title",content:"Procedury — repozytorium z asystentem AI"},{property:"og:description",content:"Konto firmowe, generator procedur, repozytorium i asystent AI w cenie abonamentu. Od 79 zł/mies."}]}),component:fe(S2,"component")}),E2=()=>he(()=>import("./procedury.bezpieczenstwo-CZMtf_-9.js"),__vite__mapDeps([78,20,6,52,77,29,41,39,75])),A2=me()({head:()=>({meta:[{title:"Bezpieczeństwo i prywatność danych — Procedury | Adam Hanczyn"},{name:"description",content:"Jak chronimy procedury Twojej firmy: AI nie uczy się na Twoich danych, izolacja Row-Level Security, zgodność z RODO, serwery w UE (AWS Frankfurt), DPA do pobrania."},{property:"og:title",content:"Bezpieczeństwo i prywatność — Procedury"},{property:"og:description",content:"AI nie uczy się na Twoich procedurach. RLS, RODO, serwery w UE, DPA do pobrania. Pełna dokumentacja bezpieczeństwa."}]}),component:fe(E2,"component")}),R2=()=>he(()=>import("./procedury.logowanie-DONSKVWB.js"),__vite__mapDeps([79,80,14])),O2=me()({head:()=>({meta:[{title:"Logowanie — Procedury"},{name:"robots",content:"noindex"}]}),component:fe(R2,"component")});var Og;function pe(e,t,a){function r(d,h){if(d._zod||Object.defineProperty(d,"_zod",{value:{def:h,constr:u,traits:new Set},enumerable:!1}),d._zod.traits.has(e))return;d._zod.traits.add(e),t(d,h);const y=u.prototype,z=Object.keys(y);for(let m=0;m<z.length;m++){const g=z[m];g in d||(d[g]=y[g].bind(d))}}const s=a?.Parent??Object;class l extends s{}Object.defineProperty(l,"name",{value:e});function u(d){var h;const y=a?.Parent?new l:this;r(y,d),(h=y._zod).deferred??(h.deferred=[]);for(const z of y._zod.deferred)z();return y}return Object.defineProperty(u,"init",{value:r}),Object.defineProperty(u,Symbol.hasInstance,{value:d=>a?.Parent&&d instanceof a.Parent?!0:d?._zod?.traits?.has(e)}),Object.defineProperty(u,"name",{value:e}),u}class Hr extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}
vendor: 16,518 bytes, lines 56-101
56class lv extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}}(Og=globalThis).__zod_globalConfig??(Og.__zod_globalConfig={});const Ph=globalThis.__zod_globalConfig;function Ri(e){return Ph}function uv(e){const t=Object.values(e).filter(r=>typeof r=="number");return Object.entries(e).filter(([r,s])=>t.indexOf(+r)===-1).map(([r,s])=>s)}function oh(e,t){return typeof t=="bigint"?t.toString():t}function Lh(e){return{get value(){{const t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function Mh(e){return e==null}function Uh(e){const t=e.startsWith("^")?1:0,a=e.endsWith("$")?e.length-1:e.length;return e.slice(t,a)}const Cg=Symbol("evaluating");function Be(e,t,a){let r;Object.defineProperty(e,t,{get(){if(r!==Cg)return r===void 0&&(r=Cg,r=a()),r},set(s){Object.defineProperty(e,t,{value:s})},configurable:!0})}function Di(e,t,a){Object.defineProperty(e,t,{value:a,writable:!0,enumerable:!0,configurable:!0})}function Qa(...e){const t={};for(const a of e){const r=Object.getOwnPropertyDescriptors(a);Object.assign(t,r)}return Object.defineProperties({},t)}function Ng(e){return JSON.stringify(e)}const dv="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function Tl(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}const C2=Lh(()=>{if(Ph.jitless||typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{const e=Function;return new e(""),!0}catch{return!1}});function ys(e){if(Tl(e)===!1)return!1;const t=e.constructor;if(t===void 0||typeof t!="function")return!0;const a=t.prototype;return!(Tl(a)===!1||Object.prototype.hasOwnProperty.call(a,"isPrototypeOf")===!1)}function fv(e){return ys(e)?{...e}:Array.isArray(e)?[...e]:e instanceof Map?new Map(e):e instanceof Set?new Set(e):e}const N2=new Set(["string","number","symbol"]);function x2(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function ei(e,t,a){const r=new e._zod.constr(t??e._zod.def);return(!t||a?.parent)&&(r._zod.parent=e),r}function Xt(e){const t=e;if(!t)return{};if(typeof t=="string")return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:()=>t.error}:t}function D2(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}function P2(e,t){const a=e._zod.def,r=a.checks;if(r&&r.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");const l=Qa(e._zod.def,{get shape(){const u={};for(const d in t){if(!(d in a.shape))throw new Error(`Unrecognized key: "${d}"`);t[d]&&(u[d]=a.shape[d])}return Di(this,"shape",u),u},checks:[]});return ei(e,l)}function L2(e,t){const a=e._zod.def,r=a.checks;if(r&&r.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");const l=Qa(e._zod.def,{get shape(){const u={...e._zod.def.shape};for(const d in t){if(!(d in a.shape))throw new Error(`Unrecognized key: "${d}"`);t[d]&&delete u[d]}return Di(this,"shape",u),u},checks:[]});return ei(e,l)}function M2(e,t){if(!ys(t))throw new Error("Invalid input to extend: expected a plain object");const a=e._zod.def.checks;if(a&&a.length>0){const l=e._zod.def.shape;for(const u in t)if(Object.getOwnPropertyDescriptor(l,u)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}const s=Qa(e._zod.def,{get shape(){const l={...e._zod.def.shape,...t};return Di(this,"shape",l),l}});return ei(e,s)}function U2(e,t){if(!ys(t))throw new Error("Invalid input to safeExtend: expected a plain object");const a=Qa(e._zod.def,{get shape(){const r={...e._zod.def.shape,...t};return Di(this,"shape",r),r}});return ei(e,a)}function $2(e,t){if(e._zod.def.checks?.length)throw new Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");const a=Qa(e._zod.def,{get shape(){const r={...e._zod.def.shape,...t._zod.def.shape};return Di(this,"shape",r),r},get catchall(){return t._zod.def.catchall},checks:t._zod.def.checks??[]});return ei(e,a)}function I2(e,t,a){const s=t._zod.def.checks;if(s&&s.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");const u=Qa(t._zod.def,{get shape(){const d=t._zod.def.shape,h={...d};if(a)for(const y in a){if(!(y in d))throw new Error(`Unrecognized key: "${y}"`);a[y]&&(h[y]=e?new e({type:"optional",innerType:d[y]}):d[y])}else for(const y in d)h[y]=e?new e({type:"optional",innerType:d[y]}):d[y];return Di(this,"shape",h),h},checks:[]});return ei(t,u)}function B2(e,t,a){const r=Qa(t._zod.def,{get shape(){const s=t._zod.def.shape,l={...s};if(a)for(const u in a){if(!(u in l))throw new Error(`Unrecognized key: "${u}"`);a[u]&&(l[u]=new e({type:"nonoptional",innerType:s[u]}))}else for(const u in s)l[u]=new e({type:"nonoptional",innerType:s[u]});return Di(this,"shape",l),l}});return ei(t,r)}function Lr(e,t=0){if(e.aborted===!0)return!0;for(let a=t;a<e.issues.length;a++)if(e.issues[a]?.continue!==!0)return!0;return!1}function H2(e,t=0){if(e.aborted===!0)return!0;for(let a=t;a<e.issues.length;a++)if(e.issues[a]?.continue===!1)return!0;return!1}function hv(e,t){return t.map(a=>{var r;return(r=a).path??(r.path=[]),a.path.unshift(e),a})}function tl(e){return typeof e=="string"?e:e?.message}function Oi(e,t,a){const r=e.message?e.message:tl(e.inst?._zod.def?.error?.(e))??tl(t?.error?.(e))??tl(a.customError?.(e))??tl(a.localeError?.(e))??"Invalid input",{inst:s,continue:l,input:u,...d}=e;return d.path??(d.path=[]),d.message=r,t?.reportInput&&(d.input=u),d}function $h(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function ms(...e){const[t,a,r]=e;return typeof t=="string"?{message:t,code:"custom",input:a,inst:r}:{...t}}const pv=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,oh,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},yv=pe("$ZodError",pv),mv=pe("$ZodError",pv,{Parent:Error});function q2(e,t=a=>a.message){const a={},r=[];for(const s of e.issues)s.path.length>0?(a[s.path[0]]=a[s.path[0]]||[],a[s.path[0]].push(t(s))):r.push(t(s));return{formErrors:r,fieldErrors:a}}function K2(e,t=a=>a.message){const a={_errors:[]},r=(s,l=[])=>{for(const u of s.issues)if(u.code==="invalid_union"&&u.errors.length)u.errors.map(d=>r({issues:d},[...l,...u.path]));else if(u.code==="invalid_key")r({issues:u.issues},[...l,...u.path]);else if(u.code==="invalid_element")r({issues:u.issues},[...l,...u.path]);else{const d=[...l,...u.path];if(d.length===0)a._errors.push(t(u));else{let h=a,y=0;for(;y<d.length;){const z=d[y];y===d.length-1?(h[z]=h[z]||{_errors:[]},h[z]._errors.push(t(u))):h[z]=h[z]||{_errors:[]},h=h[z],y++}}}};return r(e),a}const Ih=e=>(t,a,r,s)=>{const l=r?{...r,async:!1}:{async:!1},u=t._zod.run({value:a,issues:[]},l);if(u instanceof Promise)throw new Hr;if(u.issues.length){const d=new(s?.Err??e)(u.issues.map(h=>Oi(h,l,Ri())));throw dv(d,s?.callee),d}return u.value},Bh=e=>async(t,a,r,s)=>{const l=r?{...r,async:!0}:{async:!0};let u=t._zod.run({value:a,issues:[]},l);if(u instanceof Promise&&(u=await u),u.issues.length){const d=new(s?.Err??e)(u.issues.map(h=>Oi(h,l,Ri())));throw dv(d,s?.callee),d}return u.value},Bl=e=>(t,a,r)=>{const s=r?{...r,async:!1}:{async:!1},l=t._zod.run({value:a,issues:[]},s);if(l instanceof Promise)throw new Hr;return l.issues.length?{success:!1,error:new(e??yv)(l.issues.map(u=>Oi(u,s,Ri())))}:{success:!0,data:l.value}},J2=Bl(mv),Hl=e=>async(t,a,r)=>{const s=r?{...r,async:!0}:{async:!0};let l=t._zod.run({value:a,issues:[]},s);return l instanceof Promise&&(l=await l),l.issues.length?{success:!1,error:new e(l.issues.map(u=>Oi(u,s,Ri())))}:{success:!0,data:l.value}},V2=Hl(mv),Z2=e=>(t,a,r)=>{const s=r?{...r,direction:"backward"}:{direction:"backward"};return Ih(e)(t,a,s)},G2=e=>(t,a,r)=>Ih(e)(t,a,r),Y2=e=>async(t,a,r)=>{const s=r?{...r,direction:"backward"}:{direction:"backward"};return Bh(e)(t,a,s)},F2=e=>async(t,a,r)=>Bh(e)(t,a,r),W2=e=>(t,a,r)=>{const s=r?{...r,direction:"backward"}:{direction:"backward"};return Bl(e)(t,a,s)},X2=e=>(t,a,r)=>Bl(e)(t,a,r),Q2=e=>async(t,a,r)=>{const s=r?{...r,direction:"backward"}:{direction:"backward"};return Hl(e)(t,a,s)},ex=e=>async(t,a,r)=>Hl(e)(t,a,r),Jr=pe("$ZodCheck",(e,t)=>{var a;e._zod??(e._zod={}),e._zod.def=t,(a=e._zod).onattach??(a.onattach=[])}),tx=pe("$ZodCheckMaxLength",(e,t)=>{var a;Jr.init(e,t),(a=e._zod.def).when??(a.when=r=>{const s=r.value;return!Mh(s)&&s.length!==void 0}),e._zod.onattach.push(r=>{const s=r._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<s&&(r._zod.bag.maximum=t.maximum)}),e._zod.check=r=>{const s=r.value;if(s.length<=t.maximum)return;const u=$h(s);r.issues.push({origin:u,code:"too_big",maximum:t.maximum,inclusive:!0,input:s,inst:e,continue:!t.abort})}}),nx=pe("$ZodCheckMinLength",(e,t)=>{var a;Jr.init(e,t),(a=e._zod.def).when??(a.when=r=>{const s=r.value;return!Mh(s)&&s.length!==void 0}),e._zod.onattach.push(r=>{const s=r._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>s&&(r._zod.bag.minimum=t.minimum)}),e._zod.check=r=>{const s=r.value;if(s.length>=t.minimum)return;const u=$h(s);r.issues.push({origin:u,code:"too_small",minimum:t.minimum,inclusive:!0,input:s,inst:e,continue:!t.abort})}}),ax=pe("$ZodCheckLengthEquals",(e,t)=>{var a;Jr.init(e,t),(a=e._zod.def).when??(a.when=r=>{const s=r.value;return!Mh(s)&&s.length!==void 0}),e._zod.onattach.push(r=>{const s=r._zod.bag;s.minimum=t.length,s.maximum=t.length,s.length=t.length}),e._zod.check=r=>{const s=r.value,l=s.length;if(l===t.length)return;const u=$h(s),d=l>t.length;r.issues.push({origin:u,...d?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:r.value,inst:e,continue:!t.abort})}}),ix=pe("$ZodCheckOverwrite",(e,t)=>{Jr.init(e,t),e._zod.check=a=>{a.value=t.tx(a.value)}});class rx{constructor(t=[]){this.content=[],this.indent=0,this&&(this.args=t)}indented(t){this.indent+=1,t(this),this.indent-=1}write(t){if(typeof t=="function"){t(this,{execution:"sync"}),t(this,{execution:"async"});return}const r=t.split(`
57`).filter(u=>u),s=Math.min(...r.map(u=>u.length-u.trimStart().length)),l=r.map(u=>u.slice(s)).map(u=>" ".repeat(this.indent*2)+u);for(const u of l)this.content.push(u)}compile(){const t=Function,a=this?.args,s=[...(this?.content??[""]).map(l=>`  ${l}`)];return new t(...a,s.join(`
58`))}}const ox={major:4,minor:4,patch:3},ht=pe("$ZodType",(e,t)=>{var a;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=ox;const r=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&r.unshift(e);for(const s of r)for(const l of s._zod.onattach)l(e);if(r.length===0)(a=e._zod).deferred??(a.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{const s=(u,d,h)=>{let y=Lr(u),z;for(const m of d){if(m._zod.def.when){if(H2(u)||!m._zod.def.when(u))continue}else if(y)continue;const g=u.issues.length,b=m._zod.check(u);if(b instanceof Promise&&h?.async===!1)throw new Hr;if(z||b instanceof Promise)z=(z??Promise.resolve()).then(async()=>{await b,u.issues.length!==g&&(y||(y=Lr(u,g)))});else{if(u.issues.length===g)continue;y||(y=Lr(u,g))}}return z?z.then(()=>u):u},l=(u,d,h)=>{if(Lr(u))return u.aborted=!0,u;const y=s(d,r,h);if(y instanceof Promise){if(h.async===!1)throw new Hr;return y.then(z=>e._zod.parse(z,h))}return e._zod.parse(y,h)};e._zod.run=(u,d)=>{if(d.skipChecks)return e._zod.parse(u,d);if(d.direction==="backward"){const y=e._zod.parse({value:u.value,issues:[]},{...d,skipChecks:!0});return y instanceof Promise?y.then(z=>l(z,u,d)):l(y,u,d)}const h=e._zod.parse(u,d);if(h instanceof Promise){if(d.async===!1)throw new Hr;return h.then(y=>s(y,r,d))}return s(h,r,d)}}Be(e,"~standard",()=>({validate:s=>{try{const l=J2(e,s);return l.success?{value:l.data}:{issues:l.error?.issues}}catch{return V2(e,s).then(u=>u.success?{value:u.data}:{issues:u.error?.issues})}},vendor:"zod",version:1}))}),sx=pe("$ZodUnknown",(e,t)=>{ht.init(e,t),e._zod.parse=a=>a}),cx=pe("$ZodNever",(e,t)=>{ht.init(e,t),e._zod.parse=(a,r)=>(a.issues.push({expected:"never",code:"invalid_type",input:a.value,inst:e}),a)});function xg(e,t,a){e.issues.length&&t.issues.push(...hv(a,e.issues)),t.value[a]=e.value}const lx=pe("$ZodArray",(e,t)=>{ht.init(e,t),e._zod.parse=(a,r)=>{const s=a.value;if(!Array.isArray(s))return a.issues.push({expected:"array",code:"invalid_type",input:s,inst:e}),a;a.value=Array(s.length);const l=[];for(let u=0;u<s.length;u++){const d=s[u],h=t.element._zod.run({value:d,issues:[]},r);h instanceof Promise?l.push(h.then(y=>xg(y,a,u))):xg(h,a,u)}return l.length?Promise.all(l).then(()=>a):a}});function El(e,t,a,r,s,l){const u=a in r;if(e.issues.length){if(s&&l&&!u)return;t.issues.push(...hv(a,e.issues))}if(!u&&!s){e.issues.length||t.issues.push({code:"invalid_type",expected:"nonoptional",input:void 0,path:[a]});return}e.value===void 0?u&&(t.value[a]=void 0):t.value[a]=e.value}function zv(e){const t=Object.keys(e.shape);for(const r of t)if(!e.shape?.[r]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${r}": expected a Zod schema`);const a=D2(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(a)}}function wv(e,t,a,r,s,l){const u=[],d=s.keySet,h=s.catchall._zod,y=h.def.type,z=h.optin==="optional",m=h.optout==="optional";for(const g in t){if(g==="__proto__"||d.has(g))continue;if(y==="never"){u.push(g);continue}const b=h.run({value:t[g],issues:[]},r);b instanceof Promise?e.push(b.then(v=>El(v,a,g,t,z,m))):El(b,a,g,t,z,m)}return u.length&&a.issues.push({code:"unrecognized_keys",keys:u,input:t,inst:l}),e.length?Promise.all(e).then(()=>a):a}const ux=pe("$ZodObject",(e,t)=>{if(ht.init(e,t),!Object.getOwnPropertyDescriptor(t,"shape")?.get){const d=t.shape;Object.defineProperty(t,"shape",{get:()=>{const h={...d};return Object.defineProperty(t,"shape",{value:h}),h}})}const r=Lh(()=>zv(t));Be(e._zod,"propValues",()=>{const d=t.shape,h={};for(const y in d){const z=d[y]._zod;if(z.values){h[y]??(h[y]=new Set);for(const m of z.values)h[y].add(m)}}return h});const s=Tl,l=t.catchall;let u;e._zod.parse=(d,h)=>{u??(u=r.value);const y=d.value;if(!s(y))return d.issues.push({expected:"object",code:"invalid_type",input:y,inst:e}),d;d.value={};const z=[],m=u.shape;for(const g of u.keys){const b=m[g],v=b._zod.optin==="optional",j=b._zod.optout==="optional",_=b._zod.run({value:y[g],issues:[]},h);_ instanceof Promise?z.push(_.then(T=>El(T,d,g,y,v,j))):El(_,d,g,y,v,j)}return l?wv(z,y,d,h,r.value,e):z.length?Promise.all(z).then(()=>d):d}}),dx=pe("$ZodObjectJIT",(e,t)=>{ux.init(e,t);const a=e._zod.parse,r=Lh(()=>zv(t)),s=g=>{const b=new rx(["shape","payload","ctx"]),v=r.value,j=R=>{const M=Ng(R);return`shape[${M}]._zod.run({ value: input[${M}], issues: [] }, ctx)`};b.write("const input = payload.value;");const _=Object.create(null);let T=0;for(const R of v.keys)_[R]=`key_${T++}`;b.write("const newResult = {};");for(const R of v.keys){const M=_[R],Z=Ng(R),I=g[R],N=I?._zod?.optin==="optional",G=I?._zod?.optout==="optional";b.write(`const ${M} = ${j(R)};`),N&&G?b.write(`
59        if (${M}.issues.length) {
60          if (${Z} in input) {
61            payload.issues = payload.issues.concat(${M}.issues.map(iss => ({
62              ...iss,
63              path: iss.path ? [${Z}, ...iss.path] : [${Z}]
64            })));
65          }
66        }
67        
68        if (${M}.value === undefined) {
69          if (${Z} in input) {
70            newResult[${Z}] = undefined;
71          }
72        } else {
73          newResult[${Z}] = ${M}.value;
74        }
75        
76      `):N?b.write(`
77        if (${M}.issues.length) {
78          payload.issues = payload.issues.concat(${M}.issues.map(iss => ({
79            ...iss,
80            path: iss.path ? [${Z}, ...iss.path] : [${Z}]
81          })));
82        }
83        
84        if (${M}.value === undefined) {
85          if (${Z} in input) {
86            newResult[${Z}] = undefined;
87          }
88        } else {
89          newResult[${Z}] = ${M}.value;
90        }
91        
92      `):b.write(`
93        const ${M}_present = ${Z} in input;
94        if (${M}.issues.length) {
95          payload.issues = payload.issues.concat(${M}.issues.map(iss => ({
96            ...iss,
97            path: iss.path ? [${Z}, ...iss.path] : [${Z}]
98          })));
99        }
100        if (!${M}_present && !${M}.issues.length) {
101          payload.issues.push({
102            code: "invalid_type",
103            expected: "nonoptional",
104            input: undefined,
105            path: [${Z}]
106          });
107        }
108
109        if (${M}_present) {
110          if (${M}.value === undefined) {
111            newResult[${Z}] = undefined;
112          } else {
113            newResult[${Z}] = ${M}.value;
114          }
115        }
116
117      `)}b.write("payload.value = newResult;"),b.write("return payload;");const O=b.compile();return(R,M)=>O(g,R,M)};let l;const u=Tl,d=!Ph.jitless,y=d&&C2.value,z=t.catchall;let m;e._zod.parse=(g,b)=>{m??(m=r.value);const v=g.value;return u(v)?d&&y&&b?.async===!1&&b.jitless!==!0?(l||(l=s(t.shape)),g=l(g,b),z?wv([],v,g,b,m,e):g):a(g,b):(g.issues.push({expected:"object",code:"invalid_type",input:v,inst:e}),g)}});function Dg(e,t,a,r){for(const l of e)if(l.issues.length===0)return t.value=l.value,t;const s=e.filter(l=>!Lr(l));return s.length===1?(t.value=s[0].value,s[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:a,errors:e.map(l=>l.issues.map(u=>Oi(u,r,Ri())))}),t)}const fx=pe("$ZodUnion",(e,t)=>{ht.init(e,t),Be(e._zod,"optin",()=>t.options.some(r=>r._zod.optin==="optional")?"optional":void 0),Be(e._zod,"optout",()=>t.options.some(r=>r._zod.optout==="optional")?"optional":void 0),Be(e._zod,"values",()=>{if(t.options.every(r=>r._zod.values))return new Set(t.options.flatMap(r=>Array.from(r._zod.values)))}),Be(e._zod,"pattern",()=>{if(t.options.every(r=>r._zod.pattern)){const r=t.options.map(s=>s._zod.pattern);return new RegExp(`^(${r.map(s=>Uh(s.source)).join("|")})$`)}});const a=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(r,s)=>{if(a)return a(r,s);let l=!1;const u=[];for(const d of t.options){const h=d._zod.run({value:r.value,issues:[]},s);if(h instanceof Promise)u.push(h),l=!0;else{if(h.issues.length===0)return h;u.push(h)}}return l?Promise.all(u).then(d=>Dg(d,r,e,s)):Dg(u,r,e,s)}}),hx=pe("$ZodIntersection",(e,t)=>{ht.init(e,t),e._zod.parse=(a,r)=>{const s=a.value,l=t.left._zod.run({value:s,issues:[]},r),u=t.right._zod.run({value:s,issues:[]},r);return l instanceof Promise||u instanceof Promise?Promise.all([l,u]).then(([h,y])=>Pg(a,h,y)):Pg(a,l,u)}});function sh(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(ys(e)&&ys(t)){const a=Object.keys(t),r=Object.keys(e).filter(l=>a.indexOf(l)!==-1),s={...e,...t};for(const l of r){const u=sh(e[l],t[l]);if(!u.valid)return{valid:!1,mergeErrorPath:[l,...u.mergeErrorPath]};s[l]=u.data}return{valid:!0,data:s}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};const a=[];for(let r=0;r<e.length;r++){const s=e[r],l=t[r],u=sh(s,l);if(!u.valid)return{valid:!1,mergeErrorPath:[r,...u.mergeErrorPath]};a.push(u.data)}return{valid:!0,data:a}}return{valid:!1,mergeErrorPath:[]}}function Pg(e,t,a){const r=new Map;let s;for(const d of t.issues)if(d.code==="unrecognized_keys"){s??(s=d);for(const h of d.keys)r.has(h)||r.set(h,{}),r.get(h).l=!0}else e.issues.push(d);for(const d of a.issues)if(d.code==="unrecognized_keys")for(const h of d.keys)r.has(h)||r.set(h,{}),r.get(h).r=!0;else e.issues.push(d);const l=[...r].filter(([,d])=>d.l&&d.r).map(([d])=>d);if(l.length&&s&&e.issues.push({...s,keys:l}),Lr(e))return e;const u=sh(t.value,a.value);if(!u.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(u.mergeErrorPath)}`);return e.value=u.data,e}const px=pe("$ZodEnum",(e,t)=>{ht.init(e,t);const a=uv(t.entries),r=new Set(a);e._zod.values=r,e._zod.pattern=new RegExp(`^(${a.filter(s=>N2.has(typeof s)).map(s=>typeof s=="string"?x2(s):s.toString()).join("|")})$`),e._zod.parse=(s,l)=>{const u=s.value;return r.has(u)||s.issues.push({code:"invalid_value",values:a,input:u,inst:e}),s}}),yx=pe("$ZodTransform",(e,t)=>{ht.init(e,t),e._zod.optin="optional",e._zod.parse=(a,r)=>{if(r.direction==="backward")throw new lv(e.constructor.name);const s=t.transform(a.value,a);if(r.async)return(s instanceof Promise?s:Promise.resolve(s)).then(u=>(a.value=u,a.fallback=!0,a));if(s instanceof Promise)throw new Hr;return a.value=s,a.fallback=!0,a}});function Lg(e,t){return t===void 0&&(e.issues.length||e.fallback)?{issues:[],value:void 0}:e}const gv=pe("$ZodOptional",(e,t)=>{ht.init(e,t),e._zod.optin="optional",e._zod.optout="optional",Be(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),Be(e._zod,"pattern",()=>{const a=t.innerType._zod.pattern;return a?new RegExp(`^(${Uh(a.source)})?$`):void 0}),e._zod.parse=(a,r)=>{if(t.innerType._zod.optin==="optional"){const s=a.value,l=t.innerType._zod.run(a,r);return l instanceof Promise?l.then(u=>Lg(u,s)):Lg(l,s)}return a.value===void 0?a:t.innerType._zod.run(a,r)}}),mx=pe("$ZodExactOptional",(e,t)=>{gv.init(e,t),Be(e._zod,"values",()=>t.innerType._zod.values),Be(e._zod,"pattern",()=>t.innerType._zod.pattern),e._zod.parse=(a,r)=>t.innerType._zod.run(a,r)}),zx=pe("$ZodNullable",(e,t)=>{ht.init(e,t),Be(e._zod,"optin",()=>t.innerType._zod.optin),Be(e._zod,"optout",()=>t.innerType._zod.optout),Be(e._zod,"pattern",()=>{const a=t.innerType._zod.pattern;return a?new RegExp(`^(${Uh(a.source)}|null)$`):void 0}),Be(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(a,r)=>a.value===null?a:t.innerType._zod.run(a,r)}),wx=pe("$ZodDefault",(e,t)=>{ht.init(e,t),e._zod.optin="optional",Be(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(a,r)=>{if(r.direction==="backward")return t.innerType._zod.run(a,r);if(a.value===void 0)return a.value=t.defaultValue,a;const s=t.innerType._zod.run(a,r);return s instanceof Promise?s.then(l=>Mg(l,t)):Mg(s,t)}});function Mg(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}const gx=pe("$ZodPrefault",(e,t)=>{ht.init(e,t),e._zod.optin="optional",Be(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(a,r)=>(r.direction==="backward"||a.value===void 0&&(a.value=t.defaultValue),t.innerType._zod.run(a,r))}),bx=pe("$ZodNonOptional",(e,t)=>{ht.init(e,t),Be(e._zod,"values",()=>{const a=t.innerType._zod.values;return a?new Set([...a].filter(r=>r!==void 0)):void 0}),e._zod.parse=(a,r)=>{const s=t.innerType._zod.run(a,r);return s instanceof Promise?s.then(l=>Ug(l,e)):Ug(s,e)}});function Ug(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}const kx=pe("$ZodCatch",(e,t)=>{ht.init(e,t),e._zod.optin="optional",Be(e._zod,"optout",()=>t.innerType._zod.optout),Be(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(a,r)=>{if(r.direction==="backward")return t.innerType._zod.run(a,r);const s=t.innerType._zod.run(a,r);return s instanceof Promise?s.then(l=>(a.value=l.value,l.issues.length&&(a.value=t.catchValue({...a,error:{issues:l.issues.map(u=>Oi(u,r,Ri()))},input:a.value}),a.issues=[],a.fallback=!0),a)):(a.value=s.value,s.issues.length&&(a.value=t.catchValue({...a,error:{issues:s.issues.map(l
vendor: 10,010 bytes, lines 117-119
117=>Oi(l,r,Ri()))},input:a.value}),a.issues=[],a.fallback=!0),a)}}),vx=pe("$ZodPipe",(e,t)=>{ht.init(e,t),Be(e._zod,"values",()=>t.in._zod.values),Be(e._zod,"optin",()=>t.in._zod.optin),Be(e._zod,"optout",()=>t.out._zod.optout),Be(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(a,r)=>{if(r.direction==="backward"){const l=t.out._zod.run(a,r);return l instanceof Promise?l.then(u=>nl(u,t.in,r)):nl(l,t.in,r)}const s=t.in._zod.run(a,r);return s instanceof Promise?s.then(l=>nl(l,t.out,r)):nl(s,t.out,r)}});function nl(e,t,a){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues,fallback:e.fallback},a)}const jx=pe("$ZodReadonly",(e,t)=>{ht.init(e,t),Be(e._zod,"propValues",()=>t.innerType._zod.propValues),Be(e._zod,"values",()=>t.innerType._zod.values),Be(e._zod,"optin",()=>t.innerType?._zod?.optin),Be(e._zod,"optout",()=>t.innerType?._zod?.optout),e._zod.parse=(a,r)=>{if(r.direction==="backward")return t.innerType._zod.run(a,r);const s=t.innerType._zod.run(a,r);return s instanceof Promise?s.then($g):$g(s)}});function $g(e){return e.value=Object.freeze(e.value),e}const _x=pe("$ZodCustom",(e,t)=>{Jr.init(e,t),ht.init(e,t),e._zod.parse=(a,r)=>a,e._zod.check=a=>{const r=a.value,s=t.fn(r);if(s instanceof Promise)return s.then(l=>Ig(l,a,r,e));Ig(s,a,r,e)}});function Ig(e,t,a,r){if(!e){const s={code:"custom",input:a,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(s.params=r._zod.def.params),t.issues.push(ms(s))}}var Bg;class Sx{constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...a){const r=a[0];return this._map.set(t,r),r&&typeof r=="object"&&"id"in r&&this._idmap.set(r.id,t),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(t){const a=this._map.get(t);return a&&typeof a=="object"&&"id"in a&&this._idmap.delete(a.id),this._map.delete(t),this}get(t){const a=t._zod.parent;if(a){const r={...this.get(a)??{}};delete r.id;const s={...r,...this._map.get(t)};return Object.keys(s).length?s:void 0}return this._map.get(t)}has(t){return this._map.has(t)}}function Tx(){return new Sx}(Bg=globalThis).__zod_globalRegistry??(Bg.__zod_globalRegistry=Tx());const Yo=globalThis.__zod_globalRegistry;function Ex(e){return new e({type:"unknown"})}function Ax(e,t){return new e({type:"never",...Xt(t)})}function Rx(e,t){return new tx({check:"max_length",...Xt(t),maximum:e})}function Hg(e,t){return new nx({check:"min_length",...Xt(t),minimum:e})}function Ox(e,t){return new ax({check:"length_equals",...Xt(t),length:e})}function Cx(e){return new ix({check:"overwrite",tx:e})}function Nx(e,t,a){return new e({type:"array",element:t,...Xt(a)})}function xx(e,t,a){return new e({type:"custom",check:"custom",fn:t,...Xt(a)})}function Dx(e,t){const a=Px(r=>(r.addIssue=s=>{if(typeof s=="string")r.issues.push(ms(s,r.value,a._zod.def));else{const l=s;l.fatal&&(l.continue=!1),l.code??(l.code="custom"),l.input??(l.input=r.value),l.inst??(l.inst=a),l.continue??(l.continue=!a._zod.def.abort),r.issues.push(ms(l))}},e(r.value,r)),t);return a}function Px(e,t){const a=new Jr({check:"custom",...Xt(t)});return a._zod.check=e,a}function bv(e){let t=e?.target??"draft-2020-12";return t==="draft-4"&&(t="draft-04"),t==="draft-7"&&(t="draft-07"),{processors:e.processors??{},metadataRegistry:e?.metadata??Yo,target:t,unrepresentable:e?.unrepresentable??"throw",override:e?.override??(()=>{}),io:e?.io??"output",counter:0,seen:new Map,cycles:e?.cycles??"ref",reused:e?.reused??"inline",external:e?.external??void 0}}function St(e,t,a={path:[],schemaPath:[]}){var r;const s=e._zod.def,l=t.seen.get(e);if(l)return l.count++,a.schemaPath.includes(e)&&(l.cycle=a.path),l.schema;const u={schema:{},count:1,cycle:void 0,path:a.path};t.seen.set(e,u);const d=e._zod.toJSONSchema?.();if(d)u.schema=d;else{const z={...a,schemaPath:[...a.schemaPath,e],path:a.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,u.schema,z);else{const g=u.schema,b=t.processors[s.type];if(!b)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${s.type}`);b(e,t,g,z)}const m=e._zod.parent;m&&(u.ref||(u.ref=m),St(m,t,z),t.seen.get(m).isParent=!0)}const h=t.metadataRegistry.get(e);return h&&Object.assign(u.schema,h),t.io==="input"&&Rt(e)&&(delete u.schema.examples,delete u.schema.default),t.io==="input"&&"_prefault"in u.schema&&((r=u.schema).default??(r.default=u.schema._prefault)),delete u.schema._prefault,t.seen.get(e).schema}function kv(e,t){const a=e.seen.get(t);if(!a)throw new Error("Unprocessed schema. This is a bug in Zod.");const r=new Map;for(const u of e.seen.entries()){const d=e.metadataRegistry.get(u[0])?.id;if(d){const h=r.get(d);if(h&&h!==u[0])throw new Error(`Duplicate schema id "${d}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);r.set(d,u[0])}}const s=u=>{const d=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){const m=e.external.registry.get(u[0])?.id,g=e.external.uri??(v=>v);if(m)return{ref:g(m)};const b=u[1].defId??u[1].schema.id??`schema${e.counter++}`;return u[1].defId=b,{defId:b,ref:`${g("__shared")}#/${d}/${b}`}}if(u[1]===a)return{ref:"#"};const y=`#/${d}/`,z=u[1].schema.id??`__schema${e.counter++}`;return{defId:z,ref:y+z}},l=u=>{if(u[1].schema.$ref)return;const d=u[1],{ref:h,defId:y}=s(u);d.def={...d.schema},y&&(d.defId=y);const z=d.schema;for(const m in z)delete z[m];z.$ref=h};if(e.cycles==="throw")for(const u of e.seen.entries()){const d=u[1];if(d.cycle)throw new Error(`Cycle detected: #/${d.cycle?.join("/")}/<root>
118
119Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(const u of e.seen.entries()){const d=u[1];if(t===u[0]){l(u);continue}if(e.external){const y=e.external.registry.get(u[0])?.id;if(t!==u[0]&&y){l(u);continue}}if(e.metadataRegistry.get(u[0])?.id){l(u);continue}if(d.cycle){l(u);continue}if(d.count>1&&e.reused==="ref"){l(u);continue}}}function vv(e,t){const a=e.seen.get(t);if(!a)throw new Error("Unprocessed schema. This is a bug in Zod.");const r=d=>{const h=e.seen.get(d);if(h.ref===null)return;const y=h.def??h.schema,z={...y},m=h.ref;if(h.ref=null,m){r(m);const b=e.seen.get(m),v=b.schema;if(v.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(y.allOf=y.allOf??[],y.allOf.push(v)):Object.assign(y,v),Object.assign(y,z),d._zod.parent===m)for(const _ in y)_==="$ref"||_==="allOf"||_ in z||delete y[_];if(v.$ref&&b.def)for(const _ in y)_==="$ref"||_==="allOf"||_ in b.def&&JSON.stringify(y[_])===JSON.stringify(b.def[_])&&delete y[_]}const g=d._zod.parent;if(g&&g!==m){r(g);const b=e.seen.get(g);if(b?.schema.$ref&&(y.$ref=b.schema.$ref,b.def))for(const v in y)v==="$ref"||v==="allOf"||v in b.def&&JSON.stringify(y[v])===JSON.stringify(b.def[v])&&delete y[v]}e.override({zodSchema:d,jsonSchema:y,path:h.path??[]})};for(const d of[...e.seen.entries()].reverse())r(d[0]);const s={};if(e.target==="draft-2020-12"?s.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?s.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?s.$schema="http://json-schema.org/draft-04/schema#":e.target,e.external?.uri){const d=e.external.registry.get(t)?.id;if(!d)throw new Error("Schema is missing an `id` property");s.$id=e.external.uri(d)}Object.assign(s,a.def??a.schema);const l=e.metadataRegistry.get(t)?.id;l!==void 0&&s.id===l&&delete s.id;const u=e.external?.defs??{};for(const d of e.seen.entries()){const h=d[1];h.def&&h.defId&&(h.def.id===h.defId&&delete h.def.id,u[h.defId]=h.def)}e.external||Object.keys(u).length>0&&(e.target==="draft-2020-12"?s.$defs=u:s.definitions=u);try{const d=JSON.parse(JSON.stringify(s));return Object.defineProperty(d,"~standard",{value:{...t["~standard"],jsonSchema:{input:Al(t,"input",e.processors),output:Al(t,"output",e.processors)}},enumerable:!1,writable:!1}),d}catch{throw new Error("Error converting schema to JSON.")}}function Rt(e,t){const a=t??{seen:new Set};if(a.seen.has(e))return!1;a.seen.add(e);const r=e._zod.def;if(r.type==="transform")return!0;if(r.type==="array")return Rt(r.element,a);if(r.type==="set")return Rt(r.valueType,a);if(r.type==="lazy")return Rt(r.getter(),a);if(r.type==="promise"||r.type==="optional"||r.type==="nonoptional"||r.type==="nullable"||r.type==="readonly"||r.type==="default"||r.type==="prefault")return Rt(r.innerType,a);if(r.type==="intersection")return Rt(r.left,a)||Rt(r.right,a);if(r.type==="record"||r.type==="map")return Rt(r.keyType,a)||Rt(r.valueType,a);if(r.type==="pipe")return e._zod.traits.has("$ZodCodec")?!0:Rt(r.in,a)||Rt(r.out,a);if(r.type==="object"){for(const s in r.shape)if(Rt(r.shape[s],a))return!0;return!1}if(r.type==="union"){for(const s of r.options)if(Rt(s,a))return!0;return!1}if(r.type==="tuple"){for(const s of r.items)if(Rt(s,a))return!0;return!!(r.rest&&Rt(r.rest,a))}return!1}const Lx=(e,t={})=>a=>{const r=bv({...a,processors:t});return St(e,r),kv(r,e),vv(r,e)},Al=(e,t,a={})=>r=>{const{libraryOptions:s,target:l}=r??{},u=bv({...s??{},target:l,io:t,processors:a});return St(e,u),kv(u,e),vv(u,e)},Mx=(e,t,a,r)=>{a.not={}},Ux=(e,t,a,r)=>{},$x=(e,t,a,r)=>{const s=e._zod.def,l=uv(s.entries);l.every(u=>typeof u=="number")&&(a.type="number"),l.every(u=>typeof u=="string")&&(a.type="string"),a.enum=l},Ix=(e,t,a,r)=>{if(t.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},Bx=(e,t,a,r)=>{if(t.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},Hx=(e,t,a,r)=>{const s=a,l=e._zod.def,{minimum:u,maximum:d}=e._zod.bag;typeof u=="number"&&(s.minItems=u),typeof d=="number"&&(s.maxItems=d),s.type="array",s.items=St(l.element,t,{...r,path:[...r.path,"items"]})},qx=(e,t,a,r)=>{const s=a,l=e._zod.def;s.type="object",s.properties={};const u=l.shape;for(const y in u)s.properties[y]=St(u[y],t,{...r,path:[...r.path,"properties",y]});const d=new Set(Object.keys(u)),h=new Set([...d].filter(y=>{const z=l.shape[y]._zod;return t.io==="input"?z.optin===void 0:z.optout===void 0}));h.size>
1190&&(s.required=Array.from(h)),l.catchall?._zod.def.type==="never"?s.additionalProperties=!1:l.catchall?l.catchall&&(s.additionalProperties=St(l.catchall,t,{...r,path:[...r.path,"additionalProperties"]})):t.io==="output"&&(s.additionalProperties=!1)},Kx=(e,t,a,r)=>{const s=e._zod.def,l=s.inclusive===!1,u=s.options.map((d,h)=>St(d,t,{...r,path:[...r.path,l?"oneOf":"anyOf",h]}));l?a.oneOf=u:a.anyOf=u},Jx=(e,t,a,r)=>{const s=e._zod.def,l=St(s.left,t,{...r,path:[...r.path,"allOf",0]}),u=St(s.right,t,{...r,path:[...r.path,"allOf",1]}),d=y=>"allOf"in y&&Object.keys(y).length===1,h=[...d(l)?l.allOf:[l],...d(u)?u.allOf:[u]];a.allOf=h},Vx=(e,t,a,r)=>{const s=e._zod.def,l=St(s.innerType,t,r),u=t.seen.get(e);t.target==="openapi-3.0"?(u.ref=s.innerType,a.nullable=!0):a.anyOf=[l,{type:"null"}]},Zx=(e,t,a,r)=>{const s=e._zod.def;St(s.innerType,t,r);const l=t.seen.get(e);l.ref=s.innerType},Gx=(e,t,a,r)=>{const s=e._zod.def;St(s.innerType,t,r);const l=t.seen.get(e);l.ref=s.innerType,a.default=JSON.parse(JSON.stringify(s.defaultValue))},Yx=(e,t,a,r)=>{const s=e._zod.def;St(s.innerType,t,r);const l=t.seen.get(e);l.ref=s.innerType,t.io==="input"&&(a._prefault=JSON.parse(JSON.stringify(s.defaultValue)))},Fx=(e,t,a,r)=>{const s=e._zod.def;St(s.innerType,t,r);const l=t.seen.get(e);l.ref=s.innerType;let u;try{u=s.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}a.default=u},Wx=(e,t,a,r)=>{const s=e._zod.def,l=s.in._zod.traits.has("$ZodTransform"),u=t.io==="input"?l?s.out:s.in:s.out;St(u,t,r);const d=t.seen.get(e);d.ref=u},Xx=(e,t,a,r)=>{const s=e._zod.def;St(s.innerType,t,r);const l=t.seen.get(e);l.ref=s.innerType,a.readOnly=!0},jv=(e,t,a,r)=>{const s=e._zod.def;St(s.innerType,t,r);const l=t.seen.get(e);l.ref=s.innerType},Qx=(e,t)=>{yv.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:a=>K2(e,a)},flatten:{value:a=>q2(e,a)},addIssue:{value:a=>{e.issues.push(a),e.message=JSON.stringify(e.issues,oh,2)}},addIssues:{value:a=>{e.issues.push(...a),e.message=JSON.stringify(e.issues,oh,2)}},isEmpty:{get(){return e.issues.length===0}}})},dn=pe("ZodError",Qx,{Parent:Error}),eD=Ih(dn),tD=Bh(dn),nD=Bl(dn),aD=Hl(dn),iD=Z2(dn),rD=G2(dn),oD=Y2(dn),sD=F2(dn),cD=W2(dn),lD=X2(dn),uD=Q2(dn),dD=ex(dn),qg=new WeakMap;function Hh(e,t,a){const r=Object.getPrototypeOf(e);let s=qg.get(r);if(s||(s=new Set,qg.set(r,s)),!s.has(t)){s.add(t);for(const l in a){const u=a[l];Object.defineProperty(r,l,{configurable:!0,enumerable:!1,get(){const d=u.bind(this);return Object.defineProperty(this,l,{configurable:!0,writable:!0,enumerable:!0,value:d}),d},set(d){Object.defineProperty(this,l,{configurable:!0,writable:!0,enumerable:!0,value:d})}})}}}const pt=pe("ZodType",(e,t)=>(ht.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:Al(e,"input"),output:Al(e,"output")}}),e.toJSONSchema=Lx(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.parse=(a,r)=>eD(e,a,r,{callee:e.parse}),e.safeParse=(a,r)=>nD(e,a,r),e.parseAsync=async(a,r)=>tD(e,a,r,{callee:e.parseAsync}),e.safeParseAsync=async(a,r)=>aD(e,a,r),e.spa=e.safeParseAsync,e.encode=(a,r)=>iD(e,a,r),e.decode=(a,r)=>rD(e,a,r),e.encodeAsync=async(a,r)=>oD(e,a,r),e.decodeAsync=async(a,r)=>sD(e,a,r),e.safeEncode=(a,r)=>cD(e,a,r),e.safeDecode=(a,r)=>lD(e,a,r),e.safeEncodeAsync=async(a,r)=>uD(e,a,r),e.safeDecodeAsync=async(a,r)=>dD(e,a,r),Hh(e,"ZodType",{check(...a){const r=this.def;return this.clone(Qa(r,{checks:[...r.checks??[],...a.map(s=>typeof s=="function"?{_zod:{check:s,def:{check:"custom"},onattach:[]}}:s)]}),{parent:!0})},with(...a){return this.check(...a)},clone(a,r){return ei(this,a,r)},brand(){return this},register(a,r){return a.add(this,r),this},refine(a,r){return this.check($D(a,r))},superRefine(a,r){return this.check(ID(a,r))},overwrite(a){return this.check(Cx(a))},optional(){return Jg(this)},exactOptional(){return TD(this)},nullable(){return Vg(this)},nullish(){return Jg(Vg(this))},nonoptional(a){return ND(this,a)},array(){return mD(this)},or(a){return bD([this,a])},and(a){return vD(this,a)},transform(a){return Zg(this,_D(a))},default(a){return RD(this,a)},prefault(a){return CD(this,a)},catch(a){return DD(this,a)},pipe(a){return Zg(this,a)},readonly(){return MD(this)},describe(a){const r=this.clone();return Yo.add(r,{description:a}),r},meta(...a){if(a.length===0)return Yo.get(this);const r=this.clone();return Yo.add(r,a[0]),r},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(a){return a(this)}}),Object.defineProperty(e,"description",{get(){return Yo.get(e)?.description},configurable:!0}),e)),fD=pe("ZodUnknown",(e,t)=>{sx.init(e,t),pt.init(e,t),e._zod.processJSONSchema=(a,r,s)=>Ux()});function Kg(){return Ex(fD)}const hD=pe("ZodNever",(e,t)=>{cx.init(e,t),pt.init(e,t),e._zod.processJSONSchema=(a,r,s)=>Mx(e,a,r)});function pD(e){return Ax(hD,e)}const yD=pe("ZodArray",(e,t)=>{lx.init(e,t),pt.init(e,t),e._zod.processJSONSchema=(a,r,s)=>Hx(e,a,r,s),e.element=t.element,Hh(e,"ZodArray",{min(a,r){return this.check(Hg(a,r))},nonempty(a){return this.check(Hg(1,a))},max(a,r){return this.check(Rx(a,r))},length(a,r){return this.check(Ox(a,r))},unwrap(){return this.element}})});function mD(e,t){return Nx(yD,e,t)}const zD=pe("ZodObject",(e,t)=>{dx.init(e,t),pt.init(e,t),e._zod.processJSONSchema=(a,r,s)=>qx(e,a,r,s),Be(e,"shape",()=>t.shape),Hh(e,"ZodObject",{keyof(){return _v(Object.keys(this._zod.def.shape))},catchall(a){return this.clone({...this._zod.def,catchall:a})},passthrough(){return this.clone({...this._zod.def,catchall:Kg()})},loose(){return this.clone({...this._zod.def,catchall:Kg()})},strict(){return this.clone({...this._zod.def,catchall:pD()})},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(a){return M2(this,a)},safeExtend(a){return U2(this,a)},merge(a){return $2(this,a)},pick(a){return P2(this,a)},omit(a){return L2(this,a)},partial(...a){return I2(Sv,this,a[0])},required(...a){return B2(Tv,this,a[0])}})});function wD(e,t){const a={type:"object",shape:e??{},...Xt(t)};return new zD(a)}const gD=pe("ZodUnion",(e,t)=>{fx.init(e,t),pt.init(e,t),e._zod.processJSONSchema=(a,r,s)=>Kx(e,a,r,s),e.options=t.options});function bD(e,t){return new gD({type:"union",options:e,...Xt(t)})}const kD=pe("ZodIntersection",(e,t)=>{hx.init(e,t),pt.init(e,t),e._zod.processJSONSchema=(a,r,s)=>Jx(e,a,r,s)});function vD(e,t){return new kD({type:"intersection",left:e,right:t})}const ch=pe("ZodEnum",(e,t)=>{px.init(e,t),pt.init(e,t),e._zod.processJSONSchema=(r,s,l)=>$x(e,r,s),e.enum=t.entries,e.options=Object.values(t.entries);const a=new Set(Object.keys(t.entries));e.extract=(r,s)=>{const l={};for(const u of r)if(a.has(u))l[u]=t.entries[u];else throw new Error(`Key ${u} not found in enum`);
119return new ch({...t,checks:[],...Xt(s),entries:l})},e.exclude=(r,s)=>{const l={...t.entries};for(const u of r)if(a.has(u))delete l[u];else throw new Error(`Key ${u} not found in enum`);return new ch({...t,checks:[],...Xt(s),entries:l})}});function _v(e,t){const a=Array.isArray(e)?Object.fromEntries(e.map(r=>[r,r])):e;return new ch({type:"enum",entries:a,...Xt(t)})}const jD=pe("ZodTransform",(e,t)=>{yx.init(e,t),pt.init(e,t),e._zod.processJSONSchema=(a,r,s)=>Bx(e,a),e._zod.parse=(a,r)=>{if(r.direction==="backward")throw new lv(e.constructor.name);a.addIssue=l=>{if(typeof l=="string")a.issues.push(ms(l,a.value,t));else{const u=l;u.fatal&&(u.continue=!1),u.code??(u.code="custom"),u.input??(u.input=a.value),u.inst??(u.inst=e),a.issues.push(ms(u))}};const s=t.transform(a.value,a);return s instanceof Promise?s.then(l=>(a.value=l,a.fallback=!0,a)):(a.value=s,a.fallback=!0,a)}});function _D(e){return new jD({type:"transform",transform:e})}const Sv=pe("ZodOptional",(e,t)=>{gv.init(e,t),pt.init(e,t),e._zod.processJSONSchema=(a,r,s)=>jv(e,a,r,s),e.unwrap=()=>e._zod.def.innerType});function Jg(e){return new Sv({type:"optional",innerType:e})}const SD=pe("ZodExactOptional",(e,t)=>{mx.init(e,t),pt.init(e,t),e._zod.processJSONSchema=(a,r,s)=>jv(e,a,r,s),e.unwrap=()=>e._zod.def.innerType});function TD(e){return new SD({type:"optional",innerType:e})}const ED=pe("ZodNullable",(e,t)=>{zx.init(e,t),pt.init(e,t),e._zod.processJSONSchema=(a,r,s)=>Vx(e,a,r,s),e.unwrap=()=>e._zod.def.innerType});function Vg(e){return new ED({type:"nullable",innerType:e})}const AD=pe("ZodDefault",(e,t)=>{wx.init(e,t),pt.init(e,t),e._zod.processJSONSchema=(a,r,s)=>Gx(e,a,r,s),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function RD(e,t){return new AD({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():fv(t)}})}const OD=pe("ZodPrefault",(e,t)=>{gx.init(e,t),pt.init(e,t),e._zod.processJSONSchema=(a,r,s)=>Yx(e,a,r,s),e.unwrap=()=>e._zod.def.innerType});function CD(e,t){return new OD({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():fv(t)}})}const Tv=pe("ZodNonOptional",(e,t)=>{bx.init(e,t),pt.init(e,t),e._zod.processJSONSchema=(a,r,s)=>Zx(e,a,r,s),e.unwrap=()=>e._zod.def.innerType});function ND(e,t){return new Tv({type:"nonoptional",innerType:e,...Xt(t)})}const xD=pe("ZodCatch",(e,t)=>{kx.init(e,t),pt.init(e,t),e._zod.processJSONSchema=(a,r,s)=>Fx(e,a,r,s),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function DD(e,t){return new xD({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}const PD=pe("ZodPipe",(e,t)=>{vx.init(e,t),pt.init(e,t),e._zod.processJSONSchema=(a,r,s)=>Wx(e,a,r,s),e.in=t.in,e.out=t.out});function Zg(e,t){return new PD({type:"pipe",in:e,out:t})}const LD=pe("ZodReadonly",(e,t)=>{jx.init(e,t),pt.init(e,t),e._zod.processJSONSchema=(a,r,s)=>Xx(e,a,r,s),e.unwrap=()=>e._zod.def.innerType});function MD(e){return new LD({type:"readonly",innerType:e})}const UD=pe("ZodCustom",(e,t)=>{_x.init(e,t),pt.init(e,t),e._zod.processJSONSchema=(a,r,s)=>Ix(e,a)});function $D(e,t={}){return xx(UD,e,t)}function ID(e,t){return Dx(e,t)}const BD=()=>he(()=>import("./procedury.rejestracja-CF4jtshH.js"),__vite__mapDeps([81,80,82,74,14])),HD=wD({plan:_v(["mikro","firma","pro"]).optional()}),qD=me()({head:()=>({meta:[{title:"Załóż konto — Procedury"},{name:"robots",content:"noindex"}]}),validateSearch:e=>HD.parse(e),component:fe(BD,"component")}),KD=()=>he(()=>import("./procedury.reset-hasla-BkbTRL4n.js"),__vite__mapDeps([83,14])),JD=me()({head:()=>({meta:[{title:"Reset hasła — Procedury"},{name:"robots",content:"noindex"}]}),component:fe(KD,"component")}),VD=()=>he(()=>import("./procedury.asystent-CifRx8WV.js"),__vite__mapDeps([84,7,59,14,60])),ZD=me()({head:()=>({meta:[{title:"Asystent AI — Procedury"},{name:"robots",content:"noindex"}]}),component:fe(VD,"component")}),GD=()=>he(()=>import("./procedury.generator-DZPRYPLn.js"),__vite__mapDeps([85,68,3])),YD=me()({head:()=>({meta:[{title:"Generator — Procedury"},{name:"robots",content:"noindex"}]}),component:fe(GD,"component")}),FD=()=>he(()=>import("./procedury.panel-D8XN4uqR.js"),__vite__mapDeps([86,82,87,74,14,75,68,59,76,3])),WD=me()({head:()=>({meta:[{title:"Panel — Procedury"},{name:"robots",content:"noindex"}
119]}),component:fe(FD,"component")}),XD=()=>he(()=>import("./procedury.repozytorium-Dz6Lp5S_.js"),__vite__mapDeps([88,87,7,14,28,41])),QD=me()({head:()=>({meta:[{title:"Repozytorium procedur"},{name:"robots",content:"noindex"}]}),component:fe(XD,"component")}),eP=()=>he(()=>import("./procedury.ustawienia-CbH0RwES.js"),__vite__mapDeps([89,82,14,70])),tP=me()({head:()=>({meta:[{title:"Ustawienia — Procedury"},{name:"robots",content:"noindex"}]}),component:fe(eP,"component")}),nP=()=>he(()=>import("./procedury.zespol-btL3NmsF.js"),__vite__mapDeps([90,14])),aP=me()({head:()=>({meta:[{title:"Zespół — Procedury"},{name:"robots",content:"noindex"}]}),component:fe(nP,"component")}),iP=()=>he(()=>import("./procedury.repozytorium._id-jzIHFtIt.js"),__vite__mapDeps([91,87,20,14,70,41])),rP=me()({head:()=>({meta:[{title:"Procedura — edycja"},{name:"robots",content:"noindex"}]}),component:fe(iP,"component")}),oP=sN.update({id:"/",path:"/",getParentRoute:()=>De}),jn=lN.update({id:"/_authenticated",getParentRoute:()=>De}),sP=yN.update({id:"/abonament",path:"/abonament",getParentRoute:()=>De}),cP=zN.update({id:"/abonament-test",path:"/abonament-test",getParentRoute:()=>De}),lP=gN.update({id:"/analiza",path:"/analiza",getParentRoute:()=>De}),uP=kN.update({id:"/dpa-abonamentu",path:"/dpa-abonamentu",getParentRoute:()=>De}),dP=_N.update({id:"/dziekujemy",path:"/dziekujemy",getParentRoute:()=>De}),fP=TN.update({id:"/jak-pracuje",path:"/jak-pracuje",getParentRoute:()=>De}),hP=AN.update({id:"/kwalifikacja",path:"/kwalifikacja",getParentRoute:()=>De}),pP=ON.update({id:"/o-mnie",path:"/o-mnie",getParentRoute:()=>De}),yP=NN.update({id:"/polityka-prywatnosci",path:"/polityka-prywatnosci",getParentRoute:()=>De}),mP=DN.update({id:"/polityka-prywatnosci-abonamentu",path:"/polityka-prywatnosci-abonamentu",getParentRoute:()=>De}),zP=LN.update({id:"/poradniki",path:"/poradniki",getParentRoute:()=>De}),Vr=UN.update({id:"/procedury",path:"/procedury",getParentRoute:()=>De}),wP=IN.update({id:"/regulamin-abonamentu",path:"/regulamin-abonamentu",getParentRoute:()=>De}),gP=HN.update({id:"/start",path:"/start",getParentRoute:()=>De}),bP=KN.update({id:"/subiekt-callback",path:"/subiekt-callback",getParentRoute:()=>De}),kP=VN.update({id:"/narzedzia-dostepy",path:"/narzedzia-dostepy",getParentRoute:()=>jn}),vP=GN.update({id:"/panel-klientow",path:"/panel-klientow",getParentRoute:()=>jn}),jP=FN.update({id:"/platnosci",path:"/platnosci",getParentRoute:()=>jn}),_P=XN.update({id:"/zgloszenia",path:"/zgloszenia",getParentRoute:()=>jn}),SP=e2.update({id:"/baza-wiedzy/",path:"/baza-wiedzy/",getParentRoute:()=>De}),TP=i2.update({id:"/baza-wiedzy/$slug",path:"/baza-wiedzy/$slug",getParentRoute:()=>De}),EP=o2.update({id:"/narzedzia/",path:"/narzedzia/",getParentRoute:()=>De}),AP=c2.update({id:"/narzedzia/analiza-finansowa",path:"/narzedzia/analiza-finansowa",getParentRoute:()=>De}),RP=u2.update({id:"/narzedzia/asystent",path:"/narzedzia/asystent",getParentRoute:()=>De}),OP=f2.update({id:"/narzedzia/cashflow",path:"/narzedzia/cashflow",getParentRoute:()=>De}),CP=p2.update({id:"/narzedzia/generator",path:"/narzedzia/generator",getParentRoute:()=>De}),NP=m2.update({id:"/narzedzia/kalkulator",path:"/narzedzia/kalkulator",getParentRoute:()=>De}),xP=w2.update({id:"/narzedzia/kondycja-finansowa",path:"/narzedzia/kondycja-finansowa",getParentRoute:()=>De}),DP=b2.update({id:"/narzedzia/procedury",path:"/narzedzia/procedury",getParentRoute:()=>De}),PP=v2.update({id:"/narzedzia/zapasy",path:"/narzedzia/zapasy",getParentRoute:()=>De}),LP=_2.update({id:"/panel/",path:"/panel/",getParentRoute:()=>De}),MP=T2.update({id:"/",path:"/",getParentRoute:()=>Vr}),UP=A2.update({id:"/bezpieczenstwo",path:"/bezpieczenstwo",getParentRoute:()=>Vr}),$P=O2.update({id:"/logowanie",path:"/logowanie",getParentRoute:()=>Vr}),IP=qD.update({id:"/rejestracja",path:"/rejestracja",getParentRoute:()=>Vr}),BP=JD.update({id:"/reset-hasla",path:"/reset-hasla",getParentRoute:()=>Vr}),HP=ZD.update({id:"/procedury/asystent",path:"/procedury/asystent",getParentRoute:()=>jn}),qP=YD.update({id:"/procedury/generator",path:"/procedury/generator",getParentRoute:()=>jn}),KP=WD.update({id:"/procedury/panel",path:"/procedury/panel",getParentRoute:()=>jn}),Ev=QD.update({id:"/procedury/repozytorium",path:"/procedury/repozytorium",getParentRoute:()=>jn}),JP=tP.update({id:"/procedury/ustawienia",path:"/procedury/ustawienia",getParentRoute:()=>jn}),VP=aP.update({id:"/procedury/zespol",path:"/procedury/zespol",getParentRoute:()=>jn}),ZP=rP.update({id:"/$id",path:"/$id",getParentRoute:()=>Ev}),GP={AuthenticatedProceduryRepozytoriumIdRoute:ZP},YP=Ev._addFileChildren(GP),FP={AuthenticatedNarzedziaDostepyRoute:kP,AuthenticatedPanelKlientowRoute:vP,AuthenticatedPlatnosciRoute:jP,AuthenticatedZgloszeniaRoute:_P,AuthenticatedProceduryAsystentRoute:HP,AuthenticatedProceduryGeneratorRoute:qP,AuthenticatedProceduryPanelRoute:KP,AuthenticatedProceduryRepozytoriumRoute:YP,AuthenticatedProceduryUstawieniaRoute:JP,AuthenticatedProceduryZespolRoute:VP},WP=jn._addFileChildren(FP),XP={ProceduryBezpieczenstwoRoute:UP,ProceduryLogowanieRoute:$P,ProceduryRejestracjaRoute:IP,ProceduryResetHaslaRoute:BP,ProceduryIndexRoute:MP},QP=Vr._addFileChildren(XP),eL={IndexRoute:oP,AuthenticatedRouteRoute:WP,AbonamentRoute:sP,AbonamentTestRoute:cP,AnalizaRoute:lP,DpaAbonamentuRoute:uP,DziekujemyRoute:dP,JakPracujeRoute:fP,KwalifikacjaRoute:hP,OMnieRoute:pP,PolitykaPrywatnosciRoute:yP,PolitykaPrywatnosciAbonamentuRoute:mP,PoradnikiRoute:zP,ProceduryRoute:QP,RegulaminAbonamentuRoute:wP,StartRoute:gP,SubiektCallbackRoute:bP,BazaWiedzySlugRoute:TP,NarzedziaAnalizaFinansowaRoute:AP,NarzedziaAsystentRoute:RP,NarzedziaCashflowRoute:OP,NarzedziaGeneratorRoute:CP,NarzedziaKalkulatorRoute:NP,NarzedziaKondycjaFinansowaRoute:xP,NarzedziaProceduryRoute:DP,N
119arzedziaZapasyRoute:PP,BazaWiedzyIndexRoute:SP,NarzedziaIndexRoute:EP,PanelIndexRoute:LP},tL=De._addFileChildren(eL);function nL(){return dR({routeTree:tL,defaultPreload:"intent",scrollRestoration:!0})}async function aL(){const e=await nL();let t;if(wg){const a=await wg.getOptions();a.serializationAdapters=a.serializationAdapters??[],window.__TSS_START_OPTIONS__=a,t=a.serializationAdapters,e.options.defaultSsr=a.defaultSsr}else t=[],window.__TSS_START_OPTIONS__={serializationAdapters:t};return t.push(kA),e.options.serializationAdapters&&t.push(...e.options.serializationAdapters),e.update({basepath:"",serializationAdapters:t}),e.stores.ids.get().length||await dS(e),e}var iL=aL;function rL(){return iL().finally(()=>window.$_TSR?.h())}var Nf;function oL(){return Nf||(Nf=rL()),$.jsx(jA,{promise:Nf,children:e=>$.jsx(pR,{router:e})})}ae.startTransition(()=>{s_.hydrateRoot(document,$.jsx(ae.StrictMode,{children:$.jsx(oL,{})}))});export{pa as A,bL as B,AL as C,kL as D,jL as E,TL as F,tv as G,dL as H,lL as I,fL as J,uL as K,vt as L,kk as M,gk as N,Ek as O,vN as P,Nt as Q,yN as R,yR as S,Ag as T,bk as U,vn as V,_L as W,$C as X,mk as Y,he as _,yL as a,_N as b,FN as c,e2 as d,i2 as e,ov as f,GC as g,pL as h,sL as i,mL as j,Ct as k,av as l,Ja as m,zL as n,jt as o,wL as p,Wj as q,SL as r,uN as s,hL as t,EL as u,uh as v,$ as w,gL as x,vL as y,ae 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.