PageSourceSearch

https://max77.onhercules.app/assets/index-nk-OuTX6.js

js max77.onhercules.app collected 2026-10-03 05:06:27 UTC 487,964 bytes, 66 lines download raw bytes

vendor: 5,084 bytes, lines 1-17
1(function(){const i=document.createElement("link").relList;if(i&&i.supports&&i.supports("modulepreload"))return;for(const u of document.querySelectorAll('link[rel="modulepreload"]'))o(u);new MutationObserver(u=>{for(const f of u)if(f.type==="childList")for(const d of f.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&o(d)}).observe(document,{childList:!0,subtree:!0});function s(u){const f={};return u.integrity&&(f.integrity=u.integrity),u.referrerPolicy&&(f.referrerPolicy=u.referrerPolicy),u.crossOrigin==="use-credentials"?f.credentials="include":u.crossOrigin==="anonymous"?f.credentials="omit":f.credentials="same-origin",f}function o(u){if(u.ep)return;u.ep=!0;const f=s(u);fetch(u.href,f)}})();function Wp(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var zc={exports:{}},ar={};/**
2 * @license React
3 * react-jsx-runtime.production.js
4 *
5 * Copyright (c) Meta Platforms, Inc. and affiliates.
6 *
7 * This source code is licensed under the MIT license found in the
8 * LICENSE file in the root directory of this source tree.
9 */var Pm;function ew(){if(Pm)return ar;Pm=1;var n=Symbol.for("react.transitional.element"),i=Symbol.for("react.fragment");function s(o,u,f){var d=null;if(f!==void 0&&(d=""+f),u.key!==void 0&&(d=""+u.key),"key"in u){f={};for(var m in u)m!=="key"&&(f[m]=u[m])}else f=u;return u=f.ref,{$$typeof:n,type:o,key:d,ref:u!==void 0?u:null,props:f}}return ar.Fragment=i,ar.jsx=s,ar.jsxs=s,ar}var Vm;function tw(){return Vm||(Vm=1,zc.exports=ew()),zc.exports}var K=tw(),Lc={exports:{}},sr={},Hc={exports:{}},Bc={};/**
10 * @license React
11 * scheduler.production.js
12 *
13 * Copyright (c) Meta Platforms, Inc. and affiliates.
14 *
15 * This source code is licensed under the MIT license found in the
16 * LICENSE file in the root directory of this source tree.
17 */var Qm;function nw(){return Qm||(Qm=1,(function(n){function i(O,V){var L=O.length;O.push(V);e:for(;0<L;){var re=L-1>>>1,T=O[re];if(0<u(T,V))O[re]=V,O[L]=T,L=re;else break e}}function s(O){return O.length===0?null:O[0]}function o(O){if(O.length===0)return null;var V=O[0],L=O.pop();if(L!==V){O[0]=L;e:for(var re=0,T=O.length,Y=T>>>1;re<Y;){var W=2*(re+1)-1,B=O[W],J=W+1,ae=O[J];if(0>u(B,L))J<T&&0>u(ae,B)?(O[re]=ae,O[J]=L,re=J):(O[re]=B,O[W]=L,re=W);else if(J<T&&0>u(ae,L))O[re]=ae,O[J]=L,re=J;else break e}}return V}function u(O,V){var L=O.sortIndex-V.sortIndex;return L!==0?L:O.id-V.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var f=performance;n.unstable_now=function(){return f.now()}}else{var d=Date,m=d.now();n.unstable_now=function(){return d.now()-m}}var g=[],h=[],v=1,y=null,w=3,_=!1,E=!1,k=!1,A=!1,C=typeof setTimeout=="function"?setTimeout:null,z=typeof clearTimeout=="function"?clearTimeout:null,j=typeof setImmediate<"u"?setImmediate:null;function F(O){for(var V=s(h);V!==null;){if(V.callback===null)o(h);else if(V.startTime<=O)o(h),V.sortIndex=V.expirationTime,i(g,V);else break;V=s(h)}}function H(O){if(k=!1,F(O),!E)if(s(g)!==null)E=!0,I||(I=!0,he());else{var V=s(h);V!==null&&me(H,V.startTime-O)}}var I=!1,Z=-1,$=5,ee=-1;function ue(){return A?!0:!(n.unstable_now()-ee<$)}function ge(){if(A=!1,I){var O=n.unstable_now();ee=O;var V=!0;try{e:{E=!1,k&&(k=!1,z(Z),Z=-1),_=!0;var L=w;try{t:{for(F(O),y=s(g);y!==null&&!(y.expirationTime>O&&ue());){var re=y.callback;if(typeof re=="function"){y.callback=null,w=y.priorityLevel;var T=re(y.expirationTime<=O);if(O=n.unstable_now(),typeof T=="function"){y.callback=T,F(O),V=!0;break t}y===s(g)&&o(g),F(O)}else o(g);y=s(g)}if(y!==null)V=!0;else{var Y=s(h);Y!==null&&me(H,Y.startTime-O),V=!1}}break e}finally{y=null,w=L,_=!1}V=void 0}}finally{V?he():I=!1}}}var he;if(typeof j=="function")he=function(){j(ge)};else if(typeof MessageChannel<"u"){var ve=new MessageChannel,we=ve.port2;ve.port1.onmessage=ge,he=function(){we.postMessage(null)}}else he=function(){C(ge,0)};function me(O,V){Z=C(function(){O(n.unstable_now())},V)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(O){O.callback=null},n.unstable_forceFrameRate=function(O){0>O||125<O?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):$=0<O?Math.floor(1e3/O):5},n.unstable_getCurrentPriorityLevel=function(){return w},n.unstable_next=function(O){switch(w){case 1:case 2:case 3:var V=3;break;default:V=w}var L=w;w=V;try{return O()}finally{w=L}},n.unstable_requestPaint=function(){A=!0},n.unstable_runWithPriority=function(O,V){switch(O){case 1:case 2:case 3:case 4:case 5:break;default:O=3}var L=w;w=O;try{return V()}finally{w=L}},n.unstable_scheduleCallback=function(O,V,L){var re=n.unstable_now();switch(typeof L=="object"&&L!==null?(L=L.delay,L=typeof L=="number"&&0<L?re+L:re):L=re,O){case 1:var T=-1;break;case 2:T=250;break;case 5:T=1073741823;break;case 4:T=1e4;break;default:T=5e3}return T=L+T,O={id:v++,callback:V,priorityLevel:O,startTime:L,expirationTime:T,s
vendor: 5,777 bytes, lines 17-25
17ortIndex:-1},L>re?(O.sortIndex=L,i(h,O),s(g)===null&&O===s(h)&&(k?(z(Z),Z=-1):k=!0,me(H,L-re))):(O.sortIndex=T,i(g,O),E||_||(E=!0,I||(I=!0,he()))),O},n.unstable_shouldYield=ue,n.unstable_wrapCallback=function(O){var V=w;return function(){var L=w;w=V;try{return O.apply(this,arguments)}finally{w=L}}}})(Bc)),Bc}var Ym;function iw(){return Ym||(Ym=1,Hc.exports=nw()),Hc.exports}var jc={exports:{}},be={};/**
18 * @license React
19 * react.production.js
20 *
21 * Copyright (c) Meta Platforms, Inc. and affiliates.
22 *
23 * This source code is licensed under the MIT license found in the
24 * LICENSE file in the root directory of this source tree.
25 */var Gm;function aw(){if(Gm)return be;Gm=1;var n=Symbol.for("react.transitional.element"),i=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),f=Symbol.for("react.consumer"),d=Symbol.for("react.context"),m=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),y=Symbol.iterator;function w(T){return T===null||typeof T!="object"?null:(T=y&&T[y]||T["@@iterator"],typeof T=="function"?T:null)}var _={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},E=Object.assign,k={};function A(T,Y,W){this.props=T,this.context=Y,this.refs=k,this.updater=W||_}A.prototype.isReactComponent={},A.prototype.setState=function(T,Y){if(typeof T!="object"&&typeof T!="function"&&T!=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,T,Y,"setState")},A.prototype.forceUpdate=function(T){this.updater.enqueueForceUpdate(this,T,"forceUpdate")};function C(){}C.prototype=A.prototype;function z(T,Y,W){this.props=T,this.context=Y,this.refs=k,this.updater=W||_}var j=z.prototype=new C;j.constructor=z,E(j,A.prototype),j.isPureReactComponent=!0;var F=Array.isArray,H={H:null,A:null,T:null,S:null,V:null},I=Object.prototype.hasOwnProperty;function Z(T,Y,W,B,J,ae){return W=ae.ref,{$$typeof:n,type:T,key:Y,ref:W!==void 0?W:null,props:ae}}function $(T,Y){return Z(T.type,Y,void 0,void 0,void 0,T.props)}function ee(T){return typeof T=="object"&&T!==null&&T.$$typeof===n}function ue(T){var Y={"=":"=0",":":"=2"};return"$"+T.replace(/[=:]/g,function(W){return Y[W]})}var ge=/\/+/g;function he(T,Y){return typeof T=="object"&&T!==null&&T.key!=null?ue(""+T.key):Y.toString(36)}function ve(){}function we(T){switch(T.status){case"fulfilled":return T.value;case"rejected":throw T.reason;default:switch(typeof T.status=="string"?T.then(ve,ve):(T.status="pending",T.then(function(Y){T.status==="pending"&&(T.status="fulfilled",T.value=Y)},function(Y){T.status==="pending"&&(T.status="rejected",T.reason=Y)})),T.status){case"fulfilled":return T.value;case"rejected":throw T.reason}}throw T}function me(T,Y,W,B,J){var ae=typeof T;(ae==="undefined"||ae==="boolean")&&(T=null);var se=!1;if(T===null)se=!0;else switch(ae){case"bigint":case"string":case"number":se=!0;break;case"object":switch(T.$$typeof){case n:case i:se=!0;break;case v:return se=T._init,me(se(T._payload),Y,W,B,J)}}if(se)return J=J(T),se=B===""?"."+he(T,0):B,F(J)?(W="",se!=null&&(W=se.replace(ge,"$&/")+"/"),me(J,Y,W,"",function(Pe){return Pe})):J!=null&&(ee(J)&&(J=$(J,W+(J.key==null||T&&T.key===J.key?"":(""+J.key).replace(ge,"$&/")+"/")+se)),Y.push(J)),1;se=0;var pe=B===""?".":B+":";if(F(T))for(var le=0;le<T.length;le++)B=T[le],ae=pe+he(B,le),se+=me(B,Y,W,ae,J);else if(le=w(T),typeof le=="function")for(T=le.call(T),le=0;!(B=T.next()).done;)B=B.value,ae=pe+he(B,le++),se+=me(B,Y,W,ae,J);else if(ae==="object"){if(typeof T.then=="function")return me(we(T),Y,W,B,J);throw Y=String(T),Error("Objects are not valid as a React child (found: "+(Y==="[object Object]"?"object with keys {"+Object.keys(T).join(", ")+"}":Y)+"). If you meant to render a collection of children, use an array instead.")}return se}function O(T,Y,W){if(T==null)return T;var B=[],J=0;return me(T,B,"","",function(ae){return Y.call(W,ae,J++)}),B}function V(T){if(T._status===-1){var Y=T._result;Y=Y(),Y.then(function(W){(T._status===0||T._status===-1)&&(T._status=1,T._result=W)},function(W){(T._status===0||T._status===-1)&&(T._status=2,T._result=W)}),T._status===-1&&(T._status=0,T._result=Y)}if(T._status===1)return T._result.default;throw T._result}var L=typeof reportError=="function"?reportError:function(T){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var Y=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof T=="object"&&T!==null&&typeof T.message=="string"?String(T.message):String(T),error:T});if(!window.dispatchEvent(Y))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",T);return}console.error(T)};function re(){}return be.Children={map:O,forEach:function(T,Y,W){O(T,function(){Y.apply(this,arguments)},W)},count:function(T){var Y=0;return O(T,function(){Y++}),Y},toArray:function(T){return O(T,function(Y){return Y})||[]},only:function(T){if(!ee(T))throw Error("React.Children.only expected to receive a single React element child.");return T}},be.Component=A,be.Fragment=s,be.Profiler=u,be.PureComponent=z,be.StrictMode=o,be.Suspense=g,be.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=H,be.__COMPILER_RUNTIME={__proto__:null,c:function(T){return H.H.useMemoCache(T)}},be.cache=function(T){return function(){return T.apply(null,arguments)}},be.cloneElement=function(T,Y,W){if(T==null)throw Error("The argument must be a React element, but you passed "+T+".");var B=E({},T.props),J=T.key,ae=void 0;if(Y!=null)for(se in Y.ref!==void 0&&(ae=void 0),Y.key!==void 0&&(J=""+Y.key),Y)!I.call(Y,se)||se==="
25key"||se==="__self"||se==="__source"||se==="ref"&&Y.ref===void 0||(B[se]=Y[se]);var se=arguments.length-2;if(se===1)B.children=W;else if(1<se){for(var pe=Array(se),le=0;le<se;le++)pe[le]=arguments[le+2];B.children=pe}return Z(T.type,J,void 0,void 0,ae,B)},be.createContext=function(T){return T={$$typeof:d,_currentValue:T,_currentValue2:T,_threadCount:0,Provider:null,Consumer:null},T.Provider=T,T.Consumer={$$typeof:f,_context:T},T},be.createElement=function(T,Y,W){var B,J={},ae=null;if(Y!=null)for(B in Y.key!==void 0&&(ae=""+Y.key),Y)I.call(Y,B)&&B!=="key"&&B!=="__self"&&B!=="__source"&&(J[B]=Y[B]);var se=arguments.length-2;if(se===1)J.children=W;else if(1<se){for(var pe=Array(se),le=0;le<se;le++)pe[le]=arguments[le+2];J.children=pe}if(T&&T.defaultProps)for(B in se=T.defaultProps,se)J[B]===void 0&&(J[B]=se[B]);return Z(T,ae,void 0,void 0,null,J)},be.createRef=function(){return{current:null}},be.forwardRef=function(T){return{$$typeof:m,render:T}},be.isValidElement=ee,be.lazy=function(T){return{$$typeof:v,_payload:{_status:-1,_result:T},_init:V}},be.memo=function(T,Y){return{$$typeof:h,type:T,compare:Y===void 0?null:Y}},be.startTransition=function(T){var Y=H.T,W={};H.T=W;try{var B=T(),J=H.S;J!==null&&J(W,B),typeof B=="object"&&B!==null&&typeof B.then=="function"&&B.then(re,L)}catch(ae){L(ae)}finally{H.T=Y}},be.unstable_useCacheRefresh=function(){return H.H.useCacheRefresh()},be.use=function(T){return H.H.use(T)},be.useActionState=function(T,Y,W){return H.H.useActionState(T,Y,W)},be.useCallback=function(T,Y){return H.H.useCallback(T,Y)},be.useContext=function(T){return H.H.useContext(T)},be.useDebugValue=function(){},be.useDeferredValue=function(T,Y){return H.H.useDeferredValue(T,Y)},be.useEffect=function(T,Y,W){var B=H.H;if(typeof W=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return B.useEffect(T,Y)},be.useId=function(){return H.H.useId()},be.useImperativeHandle=function(T,Y,W){return H.H.useImperativeHandle(T,Y,W)},be.useInsertionEffect=function(T,Y){return H.H.useInsertionEffect(T,Y)},be.useLayoutEffect=function(T,Y){return H.H.useLayoutEffect(T,Y)},be.useMemo=function(T,Y){return H.H.useMemo(T,Y)},be.useOptimistic=function(T,Y){return H.H.useOptimistic(T,Y)},be.useReducer=function(T,Y,W){return H.H.useReducer(T,Y,W)},be.useRef=function(T){return H.H.useRef(T)},be.useState=function(T){return H.H.useState(T)},be.useSyncExternalStore=function(T,Y,W){return H.H.useSyncExternalStore(T,Y,W)},be.useTransition=function(){return H.H.useTransition()},be.version="19.1.1",be}var $m;function Mf(){return $m||($m=1,jc.exports=aw()),jc.exports}var Pc={exports:{}},pt={};/**
26 * @license React
27 * react-dom.production.js
28 *
29 * Copyright (c) Meta Platforms, Inc. and affiliates.
30 *
31 * This source code is licensed under the MIT license found in the
32 * LICENSE file in the root directory of this source tree.
33 */var Im;function sw(){if(Im)return pt;Im=1;var n=Mf();function i(g){var h="https://react.dev/errors/"+g;if(1<arguments.length){h+="?args[]="+encodeURIComponent(arguments[1]);for(var v=2;v<arguments.length;v++)h+="&args[]="+encodeURIComponent(arguments[v])}return"Minified React error #"+g+"; visit "+h+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(){}var o={d:{f:s,r:function(){throw Error(i(522))},D:s,C:s,L:s,m:s,X:s,S:s,M:s},p:0,findDOMNode:null},u=Symbol.for("react.portal");function f(g,h,v){var y=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:u,key:y==null?null:""+y,children:g,containerInfo:h,implementation:v}}var d=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function m(g,h){if(g==="font")return"";if(typeof h=="string")return h==="use-credentials"?h:""}return pt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=o,pt.createPortal=function(g,h){var v=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!h||h.nodeType!==1&&h.nodeType!==9&&h.nodeType!==11)throw Error(i(299));return f(g,h,null,v)},pt.flushSync=function(g){var h=d.T,v=o.p;try{if(d.T=null,o.p=2,g)return g()}finally{d.T=h,o.p=v,o.d.f()}},pt.preconnect=function(g,h){typeof g=="string"&&(h?(h=h.crossOrigin,h=typeof h=="string"?h==="use-credentials"?h:"":void 0):h=null,o.d.C(g,h))},pt.prefetchDNS=function(g){typeof g=="string"&&o.d.D(g)},pt.preinit=function(g,h){if(typeof g=="string"&&h&&typeof h.as=="string"){var v=h.as,y=m(v,h.crossOrigin),w=typeof h.integrity=="string"?h.integrity:void 0,_=typeof h.fetchPriority=="string"?h.fetchPriority:void 0;v==="style"?o.d.S(g,typeof h.precedence=="string"?h.precedence:void 0,{crossOrigin:y,integrity:w,fetchPriority:_}):v==="script"&&o.d.X(g,{crossOrigin:y,integrity:w,fetchPriority:_,nonce:typeof h.nonce=="string"?h.nonce:void 0})}},pt.preinitModule=function(g,h){if(typeof g=="string")if(typeof h=="object"&&h!==null){if(h.as==null||h.as==="script"){var v=m(h.as,h.
vendor: 17,339 bytes, lines 33-48
33crossOrigin);o.d.M(g,{crossOrigin:v,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0})}}else h==null&&o.d.M(g)},pt.preload=function(g,h){if(typeof g=="string"&&typeof h=="object"&&h!==null&&typeof h.as=="string"){var v=h.as,y=m(v,h.crossOrigin);o.d.L(g,v,{crossOrigin:y,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0,type:typeof h.type=="string"?h.type:void 0,fetchPriority:typeof h.fetchPriority=="string"?h.fetchPriority:void 0,referrerPolicy:typeof h.referrerPolicy=="string"?h.referrerPolicy:void 0,imageSrcSet:typeof h.imageSrcSet=="string"?h.imageSrcSet:void 0,imageSizes:typeof h.imageSizes=="string"?h.imageSizes:void 0,media:typeof h.media=="string"?h.media:void 0})}},pt.preloadModule=function(g,h){if(typeof g=="string")if(h){var v=m(h.as,h.crossOrigin);o.d.m(g,{as:typeof h.as=="string"&&h.as!=="script"?h.as:void 0,crossOrigin:v,integrity:typeof h.integrity=="string"?h.integrity:void 0})}else o.d.m(g)},pt.requestFormReset=function(g){o.d.r(g)},pt.unstable_batchedUpdates=function(g,h){return g(h)},pt.useFormState=function(g,h,v){return d.H.useFormState(g,h,v)},pt.useFormStatus=function(){return d.H.useHostTransitionStatus()},pt.version="19.1.1",pt}var Xm;function ey(){if(Xm)return Pc.exports;Xm=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(i){console.error(i)}}return n(),Pc.exports=sw(),Pc.exports}/**
34 * @license React
35 * react-dom-client.production.js
36 *
37 * Copyright (c) Meta Platforms, Inc. and affiliates.
38 *
39 * This source code is licensed under the MIT license found in the
40 * LICENSE file in the root directory of this source tree.
41 */var Fm;function rw(){if(Fm)return sr;Fm=1;var n=iw(),i=Mf(),s=ey();function o(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)t+="&args[]="+encodeURIComponent(arguments[a])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function u(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function f(e){var t=e,a=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(a=t.return),e=t.return;while(e)}return t.tag===3?a:null}function d(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function m(e){if(f(e)!==e)throw Error(o(188))}function g(e){var t=e.alternate;if(!t){if(t=f(e),t===null)throw Error(o(188));return t!==e?null:e}for(var a=e,r=t;;){var l=a.return;if(l===null)break;var c=l.alternate;if(c===null){if(r=l.return,r!==null){a=r;continue}break}if(l.child===c.child){for(c=l.child;c;){if(c===a)return m(l),e;if(c===r)return m(l),t;c=c.sibling}throw Error(o(188))}if(a.return!==r.return)a=l,r=c;else{for(var p=!1,b=l.child;b;){if(b===a){p=!0,a=l,r=c;break}if(b===r){p=!0,r=l,a=c;break}b=b.sibling}if(!p){for(b=c.child;b;){if(b===a){p=!0,a=c,r=l;break}if(b===r){p=!0,r=c,a=l;break}b=b.sibling}if(!p)throw Error(o(189))}}if(a.alternate!==r)throw Error(o(190))}if(a.tag!==3)throw Error(o(188));return a.stateNode.current===a?e:t}function h(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=h(e),t!==null)return t;e=e.sibling}return null}var v=Object.assign,y=Symbol.for("react.element"),w=Symbol.for("react.transitional.element"),_=Symbol.for("react.portal"),E=Symbol.for("react.fragment"),k=Symbol.for("react.strict_mode"),A=Symbol.for("react.profiler"),C=Symbol.for("react.provider"),z=Symbol.for("react.consumer"),j=Symbol.for("react.context"),F=Symbol.for("react.forward_ref"),H=Symbol.for("react.suspense"),I=Symbol.for("react.suspense_list"),Z=Symbol.for("react.memo"),$=Symbol.for("react.lazy"),ee=Symbol.for("react.activity"),ue=Symbol.for("react.memo_cache_sentinel"),ge=Symbol.iterator;function he(e){return e===null||typeof e!="object"?null:(e=ge&&e[ge]||e["@@iterator"],typeof e=="function"?e:null)}var ve=Symbol.for("react.client.reference");function we(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===ve?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case E:return"Fragment";case A:return"Profiler";case k:return"StrictMode";case H:return"Suspense";case I:return"SuspenseList";case ee:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case _:return"Portal";case j:return(e.displayName||"Context")+".Provider";case z:return(e._context.displayName||"Context")+".Consumer";case F:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Z:return t=e.displayName||null,t!==null?t:we(e.type)||"Memo";case $:t=e._payload,e=e._init;try{return we(e(t))}catch{}}return null}var me=Array.isArray,O=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,V=s.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,L={pending:!1,data:null,method:null,action:null},re=[],T=-1;function Y(e){return{current:e}}function W(e){0>T||(e.current=re[T],re[T]=null,T--)}function B(e,t){T++,re[T]=e.current,e.current=t}var J=Y(null),ae=Y(null),se=Y(null),pe=Y(null);function le(e,t){switch(B(se,t),B(ae,e),B(J,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?mm(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=mm(t),e=pm(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}W(J),B(J,e)}function Pe(){W(J),W(ae),W(se)}function vt(e){e.memoizedState!==null&&B(pe,e);var t=J.current,a=pm(t,e.type);t!==a&&(B(ae,e),B(J,a))}function bt(e){ae.current===e&&(W(J),W(ae)),pe.current===e&&(W(pe),Ws._currentValue=L)}var lt=Object.prototype.hasOwnProperty,on=n.unstable_scheduleCallback,Mi=n.unstable_cancelCallback,Rl=n.unstable_shouldYield,Tr=n.unstable_requestPaint,gt=n.unstable_now,Rr=n.unstable_getCurrentPriorityLevel,jt=n.unstable_ImmediatePriority,Ar=n.unstable_UserBlockingPriority,aa=n.unstable_NormalPriority,wt=n.unstable_LowPriority,Cn=n.unstable_IdlePriority,Al=n.log,Cl=n.unstable_setDisableYieldValue,ln=null,St=null;function Jt(e){if(typeof Al=="function"&&Cl(e),St&&typeof St.setStrictMode=="function")try{St.setStrictMode(ln,e)}catch{}}var ut=Math.clz32?Math.clz32:ei,Wn=Math.log,Cr=Math.LN2;function ei(e){return e>>>=0,e===0?32:31-(Wn(e)/Cr|0)|0}var sa=256,ra=4194304;function un(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Di(e,t,a){var r=e.pendingLanes;if(r===0)return 0;var l=0,c=e.suspendedLanes,p=e.pingedLanes;e=e.warmLanes;var b=r&134217727;return b!==0?(r=b&~c,r!==0?l=un(r):(p&=b,p!==0?l=un(p):a||(a=b&~e,a!==0&&(l=un(a))))):(b=r&~c,b!==0?l=un(b):p!==0?l=un(p):a||(a=r&~e,a!==0&&(l=un(a)))),l===0?0:t!==0&&t!==l&&(t&c)===0&&(c=l&-l,a=t&-t,c>=a||c===32&&(a&4194048)!==0)?t:l}function Ni(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function ls(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Wt(){var e=sa;return sa<<=1,(sa&4194048)===0&&(sa=256),e}function Or(){var e=ra;return ra<<=1,(ra&62914560)===0&&(ra=4194304),e}function us(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function ti(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function kr(e,t,a,r,l,c){var p=e.pendingLanes;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=a,e.entangledLanes&=a,e.errorRecoveryDisabledLanes&=a,e.shellSuspendCounter=0;var b=e.entanglements,x=e.expirationTimes,N=e.hiddenUpdates;for(a=p&~a;0<a;){var P=31-ut(a),G=1<<P;b[P]=0,x[P]=-1;var U=N[P];if(U!==null)for(N[P]=null,P=0;P<U.length;P++){var q=U[P];q!==null&&(q.lane&=-536870913)}a&=~G}r!==0&&ye(e,r,0),c!==0&&l===0&&e.tag!==0&&(e.suspendedLanes|=c&~(p&~t))}function ye(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-ut(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|a&4194090}function Ye(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var r=31-ut(a),l=1<<r;l&t|e[r]&t&&(e[r]|=t),a&=~l}}function Fe(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function ct(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Ui(){var e=V.p;return e!==0?e:(e=window.event,e===void 0?32:qm(e.type))}function We(e,t){var a=V.p;try{return V.p=e,t()}finally{V.p=a}}var Ge=Math.random().toString(36).slice(2),$e="__reactFiber$"+Ge,ze="__reactProps$"+Ge,it="__reactContainer$"+Ge,oa="__reactEvents$"+Ge,On="__reactListeners$"+Ge,nd="__reactHandles$"+Ge,id="__reactResources$"+Ge,cs="__reactMarker$"+Ge;function Ol(e){delete e[$e],delete e[ze],delete e[oa],delete e[On],delete e[nd]}function la(e){var t=e[$e];if(t)return t;for(var a=e.parentNode;a;){if(t=a[it]||a[$e]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=wm(e);e!==null;){if(a=e[$e])return a;e=wm(e)}return t}e=a,a=e.parentNode}return null}function ua(e){if(e=e[$e]||e[it]){var t=e.tag;if(t===5||t===6||t===13||t===26||t===27||t===3)return e}return null}function fs(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(o(33))}function ca(e){var t=e[id];return t||(t=e[id]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function at(e){e[cs]=!0}var ad=new Set,sd={};function qi(e,t){fa(e,t),fa(e+"Capture",t)}function fa(e,t){for(sd[e]=t,e=0;e<t.length;e++)ad.add(t[e])}var $v=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]*$"),rd={},od={};function Iv(e){return lt.call(od,e)?!0:lt.call(rd,e)?!1:$v.test(e)?od[e]=!0:(rd[e]=!0,!1)}function Mr(e,t,a){if(Iv(t))if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var r=t.toLowerCase().slice(0,5);if(r!=="data-"&&r!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+a)}}function Dr(e,t,a){if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+a)}}function kn(e,t,a,r){if(r===null)e.removeAttribute(a);else{switch(typeof r){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}e.setAttributeNS(t,a,""+r)}}var kl,ld;function da(e){if(kl===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);kl=t&&t[1]||"",ld=-1<a.stack.indexOf(`
42    at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
43`+kl+e+ld}var Ml=!1;function Dl(e,t){if(!e||Ml)return"";Ml=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var G=function(){throw Error()};if(Object.defineProperty(G.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(G,[])}catch(q){var U=q}Reflect.construct(e,[],G)}else{try{G.call()}catch(q){U=q}e.call(G.prototype)}}else{try{throw Error()}catch(q){U=q}(G=e())&&typeof G.catch=="function"&&G.catch(function(){})}}catch(q){if(q&&U&&typeof q.stack=="string")return[q.stack,U.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var l=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,"name");l&&l.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var c=r.DetermineComponentFrameRoot(),p=c[0],b=c[1];if(p&&b){var x=p.split(`
44`),N=b.split(`
45`);for(l=r=0;r<x.length&&!x[r].includes("DetermineComponentFrameRoot");)r++;for(;l<N.length&&!N[l].includes("DetermineComponentFrameRoot");)l++;if(r===x.length||l===N.length)for(r=x.length-1,l=N.length-1;1<=r&&0<=l&&x[r]!==N[l];)l--;for(;1<=r&&0<=l;r--,l--)if(x[r]!==N[l]){if(r!==1||l!==1)do if(r--,l--,0>l||x[r]!==N[l]){var P=`
46`+x[r].replace(" at new "," at ");return e.displayName&&P.includes("<anonymous>")&&(P=P.replace("<anonymous>",e.displayName)),P}while(1<=r&&0<=l);break}}}finally{Ml=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?da(a):""}function Xv(e){switch(e.tag){case 26:case 27:case 5:return da(e.type);case 16:return da("Lazy");case 13:return da("Suspense");case 19:return da("SuspenseList");case 0:case 15:return Dl(e.type,!1);case 11:return Dl(e.type.render,!1);case 1:return Dl(e.type,!0);case 31:return da("Activity");default:return""}}function ud(e){try{var t="";do t+=Xv(e),e=e.return;while(e);return t}catch(a){return`
47Error generating stack: `+a.message+`
48`+a.stack}}function Pt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function cd(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Fv(e){var t=cd(e)?"checked":"value",a=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var l=a.get,c=a.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(p){r=""+p,c.call(this,p)}}),Object.defineProperty(e,t,{enumerable:a.enumerable}),{getValue:function(){return r},setValue:function(p){r=""+p},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Nr(e){e._valueTracker||(e._valueTracker=Fv(e))}function fd(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),r="";return e&&(r=cd(e)?e.checked?"true":"false":e.value),e=r,e!==a?(t.setValue(e),!0):!1}function Ur(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var Kv=/[\n"\\]/g;function Vt(e){return e.replace(Kv,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Nl(e,t,a,r,l,c,p,b){e.name="",p!=null&&typeof p!="function"&&typeof p!="symbol"&&typeof p!="boolean"?e.type=p:e.removeAttribute("type"),t!=null?p==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Pt(t)):e.value!==""+Pt(t)&&(e.value=""+Pt(t)):p!=="submit"&&p!=="reset"||e.removeAttribute("value"),t!=null?Ul(e,p,Pt(t)):a!=null?Ul(e,p,Pt(a)):r!=null&&e.removeAttribute("value"),l==null&&c!=null&&(e.defaultChecked=!!c),l!=null&&(e.checked=l&&typeof l!="function"&&typeof l!="symbol"),b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"?e.name=""+Pt(b):e.removeAttribute("name")}function dd(e,t,a,r,l,c,p,b){if(c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(e.type=c),t!=null||a!=null){if(!(c!=="submit"&&c!=="reset"||t!=null))return;a=a!=null?""+Pt(a):"",t=t!=null?""+Pt(t):a,b||t===e.value||(e.value=t),e.defaultValue=t}r=r??l,r=typeof r!="function"&&typeof r!="symbol"&&!!r,e.checked=b?e.checked:!!r,e.defaultChecked=!!r,p!=null&&typeof p!="function"&&typeof p!="symbol"&&typeof p!="boolean"&&(e.name=p)}function Ul(e,t,a){t==="number"&&Ur(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function ha(e,t,a,r){if(e=e.options,t){t={};for(var l=0;l<a.length;l++)t["$"+a[l]]=!0;for(a=0;a<e.length;a++)l=t.hasOwnProperty("$"+e[a].value),e[a].selected!==l&&(e[a].selected=l),l&&r&&(e[a].defaultSelected=!0)}else{for(a=""+Pt(a),t=null,l=0;l<e.length;l++){if(e[l].value===a){e[l].selected=!0,r&&(e[l].defaultSelected=!0);return}t!==null||e[l].disabled||(t=e[l])}t!==null&&(t.selected=!0)}}function hd(e,t,a){if(t!=null&&(t=""+Pt(t),t!==e.value&&(e.value=t),a==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=a!=null?""+Pt(a):""}function gd(e,t,a,r){if(t==null){if(r!=null){if(a!=null)throw Error(o(92));if(me(r)){if(1<r.length)throw Error(o(93));r=r[0]}a=r}a==null&&(a=""),t=a}a=Pt(t),e.defaultValue=a,r=e.textContent,r===a&&r!==""&&r!==null&&(e.value=r)}function ga(e,t){if(t){var a=e.firstChild;
vendor: 4,140 bytes, line 48
48if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}var Zv=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 md(e,t,a){var r=t.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?r?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":r?e.setProperty(t,a):typeof a!="number"||a===0||Zv.has(t)?t==="float"?e.cssFloat=a:e[t]=(""+a).trim():e[t]=a+"px"}function pd(e,t,a){if(t!=null&&typeof t!="object")throw Error(o(62));if(e=e.style,a!=null){for(var r in a)!a.hasOwnProperty(r)||t!=null&&t.hasOwnProperty(r)||(r.indexOf("--")===0?e.setProperty(r,""):r==="float"?e.cssFloat="":e[r]="");for(var l in t)r=t[l],t.hasOwnProperty(l)&&a[l]!==r&&md(e,l,r)}else for(var c in t)t.hasOwnProperty(c)&&md(e,c,t[c])}function ql(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Jv=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
48-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"]]),Wv=/^[\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 qr(e){return Wv.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}var zl=null;function Ll(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ma=null,pa=null;function yd(e){var t=ua(e);if(t&&(e=t.stateNode)){var a=e[ze]||null;e:switch(e=t.stateNode,t.type){case"input":if(Nl(e,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),t=a.name,a.type==="radio"&&t!=null){for(a=e;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll('input[name="'+Vt(""+t)+'"][type="radio"]'),t=0;t<a.length;t++){var r=a[t];if(r!==e&&r.form===e.form){var l=r[ze]||null;if(!l)throw Error(o(90));Nl(r,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name)}}for(t=0;t<a.length;t++)r=a[t],r.form===e.form&&fd(r)}break e;case"textarea":hd(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&ha(e,!!a.multiple,t,!1)}}}var Hl=!1;function vd(e,t,a){if(Hl)return e(t,a);Hl=!0;try{var r=e(t);return r}finally{if(Hl=!1,(ma!==null||pa!==null)&&(So(),ma&&(t=ma,e=pa,pa=ma=null,yd(t),e)))for(t=0;t<e.length;t++)yd(e[t])}}function ds(e,t){var a=e.stateNode;if(a===null)return null;var r=a[ze]||null;if(r===null)return null;a=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(a&&typeof a!="function")throw Error(o(231,t,typeof a));return a}var Mn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Bl=!1;if(Mn)try{var hs={};Object.defineProperty(hs,"passive",{get:function(){Bl=!0}}),window.addEventListener("test",hs,hs),window.removeEventListener("test",hs,hs)}catch{Bl=!1}var ni=null,jl=null,zr=null;function bd(){if(zr)return zr;var e,t=jl,a=t.length,r,l="value"in ni?ni.value:ni.textContent,c=l.length;for(e=0;e<a&&t[e]===l[e];e++);var p=a-e;for(r=1;r<=p&&t[a-r]===l[c-r];r++);return zr=l.slice(e,1<r?1-r:void 0)}function Lr(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Hr(){return!0}function wd(){return!1}function Et(e){function t(a,r,l,c,p){this._reactName=a,this._targetInst=l,this.type=r,this.nativeEvent=c,this.target=p,this.currentTarget=null;for(var b in e)e.hasOwnProperty(b)&&(a=e[b],this[b]=a?a(c):c[b]);return this.isDefaultPrevented=(c.defaultPrevented!=null?c.defaultPrevented:c.returnValue===!1)?Hr:wd,this.isPropagationStopped=wd,this}return v(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=Hr)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=Hr)},persist:function(){},isPersistent:Hr}),t}var zi={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Br=Et(zi),gs=v({},zi,{view:0,detail:0}),eb=Et(gs),Pl,Vl,ms,jr=v({},gs,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Yl,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==ms&&(ms&&e.type==="mousemove"?(Pl=e.screenX-ms.screenX,Vl=e.screenY-ms.screenY):Vl=Pl=0,ms=e),Pl)},movementY:function(e){return"movementY"in e?e.movementY:Vl}}),Sd=Et(jr),tb=v({},jr,{dataTransfer:0}),nb=Et(tb),ib=v({},gs,{relatedTarget:0}),Ql=Et(ib),ab=v({},zi,{animationName:0,elapsedTime:0,pseudoElement:0}),sb=Et(ab),rb=v({},zi,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),ob=Et(rb),lb=v({},zi,{data:0}),_d=Et(lb),ub={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},cb={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"},fb={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function db(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=fb[e])?!!t[e]:!1}function Yl(){return db}var hb=v({},gs,{key:function(e){if(e.key){var t=ub[e.key]||e.key;if(t!=="Unidentified")return t}
vendor: 4,866 bytes, line 48
48return e.type==="keypress"?(e=Lr(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?cb[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Yl,charCode:function(e){return e.type==="keypress"?Lr(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Lr(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),gb=Et(hb),mb=v({},jr,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),xd=Et(mb),pb=v({},gs,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Yl}),yb=Et(pb),vb=v({},zi,{propertyName:0,elapsedTime:0,pseudoElement:0}),bb=Et(vb),wb=v({},jr,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Sb=Et(wb),_b=v({},zi,{newState:0,oldState:0}),xb=Et(_b),Eb=[9,13,27,32],Gl=Mn&&"CompositionEvent"in window,ps=null;Mn&&"documentMode"in document&&(ps=document.documentMode);var Tb=Mn&&"TextEvent"in window&&!ps,Ed=Mn&&(!Gl||ps&&8<ps&&11>=ps),Td=" ",Rd=!1;function Ad(e,t){switch(e){case"keyup":return Eb.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Cd(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ya=!1;function Rb(e,t){switch(e){case"compositionend":return Cd(t);case"keypress":return t.which!==32?null:(Rd=!0,Td);case"textInput":return e=t.data,e===Td&&Rd?null:e;default:return null}}function Ab(e,t){if(ya)return e==="compositionend"||!Gl&&Ad(e,t)?(e=bd(),zr=jl=ni=null,ya=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Ed&&t.locale!=="ko"?null:t.data;default:return null}}var Cb={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 Od(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Cb[e.type]:t==="textarea"}function kd(e,t,a,r){ma?pa?pa.push(r):pa=[r]:ma=r,t=Ao(t,"onChange"),0<t.length&&(a=new Br("onChange","change",null,a,r),e.push({event:a,listeners:t}))}var ys=null,vs=null;function Ob(e){cm(e,0)}function Pr(e){var t=fs(e);if(fd(t))return e}function Md(e,t){if(e==="change")return t}var Dd=!1;if(Mn){var $l;if(Mn){var Il="oninput"in document;if(!Il){var Nd=document.createElement("div");Nd.setAttribute("oninput","return;"),Il=typeof Nd.oninput=="function"}$l=Il}else $l=!1;Dd=$l&&(!document.documentMode||9<document.documentMode)}function Ud(){ys&&(ys.detachEvent("onpropertychange",qd),vs=ys=null)}function qd(e){if(e.propertyName==="value"&&Pr(vs)){var t=[];kd(t,vs,e,Ll(e)),vd(Ob,t)}}function kb(e,t,a){e==="focusin"?(Ud(),ys=t,vs=a,ys.attachEvent("onpropertychange",qd)):e==="focusout"&&Ud()}function Mb(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Pr(vs)}function Db(e,t){if(e==="click")return Pr(t)}function Nb(e,t){if(e==="input"||e==="change")return Pr(t)}function Ub(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var kt=typeof Object.is=="function"?Object.is:Ub;function bs(e,t){if(kt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var a=Object.keys(e),r=Object.keys(t);if(a.length!==r.length)return!1;for(r=0;r<a.length;r++){var l=a[r];if(!lt.call(t,l)||!kt(e[l],t[l]))return!1}return!0}function zd(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Ld(e,t){var a=zd(e);e=0;for(var r;a;){if(a.nodeType===3){if(r=e+a.textContent.length,e<=t&&r>=t)return{node:a,offset:t-e};e=r}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=zd(a)}}function Hd(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Hd(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Bd(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Ur(e.document);t instanceof e.HTMLIFrameElement;){try{var a=typeof t.contentWindow.location.href=="string"}catch{a=!1}if(a)e=t.contentWindow;else break;t=Ur(e.document)}return t}function Xl(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var qb=Mn&&"documentMode"in document&&11>=document.documentMode,va=null,Fl=null,ws=null,Kl=!1;
vendor: 74,707 bytes, line 48
48function jd(e,t,a){var r=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;Kl||va==null||va!==Ur(r)||(r=va,"selectionStart"in r&&Xl(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),ws&&bs(ws,r)||(ws=r,r=Ao(Fl,"onSelect"),0<r.length&&(t=new Br("onSelect","select",null,t,a),e.push({event:t,listeners:r}),t.target=va)))}function Li(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}var ba={animationend:Li("Animation","AnimationEnd"),animationiteration:Li("Animation","AnimationIteration"),animationstart:Li("Animation","AnimationStart"),transitionrun:Li("Transition","TransitionRun"),transitionstart:Li("Transition","TransitionStart"),transitioncancel:Li("Transition","TransitionCancel"),transitionend:Li("Transition","TransitionEnd")},Zl={},Pd={};Mn&&(Pd=document.createElement("div").style,"AnimationEvent"in window||(delete ba.animationend.animation,delete ba.animationiteration.animation,delete ba.animationstart.animation),"TransitionEvent"in window||delete ba.transitionend.transition);function Hi(e){if(Zl[e])return Zl[e];if(!ba[e])return e;var t=ba[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in Pd)return Zl[e]=t[a];return e}var Vd=Hi("animationend"),Qd=Hi("animationiteration"),Yd=Hi("animationstart"),zb=Hi("transitionrun"),Lb=Hi("transitionstart"),Hb=Hi("transitioncancel"),Gd=Hi("transitionend"),$d=new Map,Jl="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(" ");Jl.push("scrollEnd");function en(e,t){$d.set(e,t),qi(t,[e])}var Id=new WeakMap;function Qt(e,t){if(typeof e=="object"&&e!==null){var a=Id.get(e);return a!==void 0?a:(t={value:e,source:t,stack:ud(t)},Id.set(e,t),t)}return{value:e,source:t,stack:ud(t)}}var Yt=[],wa=0,Wl=0;function Vr(){for(var e=wa,t=Wl=wa=0;t<e;){var a=Yt[t];Yt[t++]=null;var r=Yt[t];Yt[t++]=null;var l=Yt[t];Yt[t++]=null;var c=Yt[t];if(Yt[t++]=null,r!==null&&l!==null){var p=r.pending;p===null?l.next=l:(l.next=p.next,p.next=l),r.pending=l}c!==0&&Xd(a,l,c)}}function Qr(e,t,a,r){Yt[wa++]=e,Yt[wa++]=t,Yt[wa++]=a,Yt[wa++]=r,Wl|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function eu(e,t,a,r){return Qr(e,t,a,r),Yr(e)}function Sa(e,t){return Qr(e,null,null,t),Yr(e)}function Xd(e,t,a){e.lanes|=a;var r=e.alternate;r!==null&&(r.lanes|=a);for(var l=!1,c=e.return;c!==null;)c.childLanes|=a,r=c.alternate,r!==null&&(r.childLanes|=a),c.tag===22&&(e=c.stateNode,e===null||e._visibility&1||(l=!0)),e=c,c=c.return;return e.tag===3?(c=e.stateNode,l&&t!==null&&(l=31-ut(a),e=c.hiddenUpdates,r=e[l],r===null?e[l]=[t]:r.push(t),t.lane=a|536870912),c):null}function Yr(e){if(50<Gs)throw Gs=0,rc=null,Error(o(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var _a={};function Bb(e,t,a,r){this.tag=e,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Mt(e,t,a,r){return new Bb(e,t,a,r)}function tu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Dn(e,t){var a=e.alternate;return a===null?(a=Mt(e.tag,t,e.key,e.mode),a.elementType=e.elementType,a.type=e.type,a.stateNode=e.stateNode,a.alternate=e,e.alternate=a):(a.pendingProps=t,a.type=e.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=e.flags&65011712,a.childLanes=e.childLanes,a.lanes=e.lanes,a.child=e.child,a.memoizedProps=e.memoizedProps,a.memoizedState=e.memoizedState,a.updateQueue=e.updateQueue,t=e.dependencies,a.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},a.sibling=e.sibling,a.index=e.index,a.ref=e.ref,a.refCleanup=e.refCleanup,a}function Fd(e,t){e.flags&=65011714;var a=e.alternate;return a===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=a.childLanes,e.lanes=a.lanes,e.child=a.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=a.memoizedProps,e.memoizedState=a.memoizedState,e.updateQueue=a.updateQueue,e.type=a.type,t=a.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Gr(e,t,a,r,l,c){var p=0;if(r=e,typeof e=="function")tu(e)&&(p=1);else if(typeof e=="string")p=P0(e,a,J.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case ee:return e=Mt(31,a,t,l),e.elementType=ee,e.lanes=c,e;case E:return Bi(a.children,l,c,t);case k:p=8,l|=24;break;case A:return e=Mt(12,a,t,l|2),e.elementType=A,e.lanes=c,e;case H:return e=Mt(13,a,t,l),e.elementType=H,e.lanes=c,e;case I:return e=Mt(19,a,t,l),e.elementType=I,e.lanes=c,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case C:case j:p=10;break e;case z:p=9;break e;case F:p=11;break e;case Z:p=14;break e;case $:p=16,r=null;break e}p=29,a=Error(o(130,e===null?"null":typeof e,"")),r=null}return t=Mt(p,a,t,l),t.elementType=e,t.type=r,t.lanes=c,t}function Bi(e,t,a,r){return e=Mt(7,e,r,t),e.lanes=a,e}function nu(e,t,a){return e=Mt(6,e,null,t),e.lanes=a,e}function iu(e,t,a){return t=Mt(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var xa=[],Ea=0,$r=null,Ir=0,Gt=[],$t=0,ji=null,Nn=1,Un="";function Pi(e,t){xa[Ea++]=Ir,xa[Ea++]=$r,$r=e,Ir=t}function Kd(e,t,a){Gt[$t++]=Nn,Gt[$t++]=Un,Gt[$t++]=ji,ji=e;var r=Nn;e=Un;var l=32-ut(r)-1;r&=~(1<<l),a+=1;var c=32-ut(t)+l;if(30<c){var p=l-l%5;c=(r&(1<<p)-1).toString(32),r>>=p,l-=p,Nn=1<<32-ut(t)+l|a<<l|r,Un=c+e}else Nn=1<<c|a<<l|r,Un=e}function au(e){e.return!==null&&(Pi(e,1),Kd(e,1,0))}function su(e){for(;e===$r;)$r=xa[--Ea],xa[Ea]=null,Ir=xa[--Ea],xa[Ea]=null;for(;e===ji;)ji=Gt[--$t],Gt[$t]=null,Un=Gt[--$t],Gt[$t]=null,Nn=Gt[--$t],Gt[$t]=null}var _t=null,Ve=null,Oe=!1,Vi=null,cn=!1,ru=Error(o(519));function Qi(e){var t=Error(o(418,""));throw xs(Qt(t,e)),ru}function Zd(e){var t=e.stateNode,a=e.type,r=e.memoizedProps;switch(t[$e]=e,t[ze]=r,a){case"dialog":Te("cancel",t),Te("close",t);break;case"iframe":case"object":case"embed":Te("load",t);break;case"video":case"audio":for(a=0;a<Is.length;a++)Te(Is[a],t);break;case"source":Te("error",t);break;case"img":case"image":case"link":Te("error",t),Te("load",t);break;case"details":Te("toggle",t);break;case"input":Te("invalid",t),dd(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0),Nr(t);break;case"select":Te("invalid",t);break;case"textarea":Te("invalid",t),gd(t,r.value,r.defaultValue,r.children),Nr(t)}a=r.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||t.textContent===""+a||r.suppressHydrationWarning===!0||gm(t.textContent,a)?(r.popover!=null&&(Te("beforetoggle",t),Te("toggle",t)),r.onScroll!=null&&Te("scroll",t),r.onScrollEnd!=null&&Te("scrollend",t),r.onClick!=null&&(t.onclick=Co),t=!0):t=!1,t||Qi(e)}function Jd(e){for(_t=e.return;_t;)switch(_t.tag){case 5:case 13:cn=!1;return;case 27:case 3:cn=!0;return;default:_t=_t.return}}function Ss(e){if(e!==_t)return!1;if(!Oe)return Jd(e),Oe=!0,!1;var t=e.tag,a;if((a=t!==3&&t!==27)&&((a=t===5)&&(a=e.type,a=!(a!=="form"&&a!=="button")||_c(e.type,e.memoizedProps)),a=!a),a&&Ve&&Qi(e),Jd(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8)if(a=e.data,a==="/$"){if(t===0){Ve=nn(e.nextSibling);break e}t--}else a!=="$"&&a!=="$!"&&a!=="$?"||t++;e=e.nextSibling}Ve=null}}else t===27?(t=Ve,vi(e.type)?(e=Rc,Rc=null,Ve=e):Ve=t):Ve=_t?nn(e.stateNode.nextSibling):null;return!0}function _s(){Ve=_t=null,Oe=!1}function Wd(){var e=Vi;return e!==null&&(At===null?At=e:At.push.apply(At,e),Vi=null),e}function xs(e){Vi===null?Vi=[e]:Vi.push(e)}var ou=Y(null),Yi=null,qn=null;function ii(e,t,a){B(ou,t._currentValue),t._currentValue=a}function zn(e){e._currentValue=ou.current,W(ou)}function lu(e,t,a){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===a)break;e=e.return}}function uu(e,t,a,r){var l=e.child;for(l!==null&&(l.return=e);l!==null;){var c=l.dependencies;if(c!==null){var p=l.child;c=c.firstContext;e:for(;c!==null;){var b=c;c=l;for(var x=0;x<t.length;x++)if(b.context===t[x]){c.lanes|=a,b=c.alternate,b!==null&&(b.lanes|=a),lu(c.return,a,e),r||(p=null);break e}c=b.next}}else if(l.tag===18){if(p=l.return,p===null)throw Error(o(341));p.lanes|=a,c=p.alternate,c!==null&&(c.lanes|=a),lu(p,a,e),p=null}else p=l.child;if(p!==null)p.return=l;else for(p=l;p!==null;){if(p===e){p=null;break}if(l=p.sibling,l!==null){l.return=p.return,p=l;break}p=p.return}l=p}}function Es(e,t,a,r){e=null;for(var l=t,c=!1;l!==null;){if(!c){if((l.flags&524288)!==0)c=!0;else if((l.flags&262144)!==0)break}if(l.tag===10){var p=l.alternate;if(p===null)throw Error(o(387));if(p=p.memoizedProps,p!==null){var b=l.type;kt(l.pendingProps.value,p.value)||(e!==null?e.push(b):e=[b])}}else if(l===pe.current){if(p=l.alternate,p===null)throw Error(o(387));p.memoizedState.memoizedState!==l.memoizedState.memoizedState&&(e!==null?e.push(Ws):e=[Ws])}l=l.return}e!==null&&uu(t,e,a,r),t.flags|=262144}function Xr(e){for(e=e.firstContext;e!==null;){if(!kt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Gi(e){Yi=e,qn=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function mt(e){return eh(Yi,e)}function Fr(e,t){return Yi===null&&Gi(e),eh(e,t)}function eh(e,t){var a=t._currentValue;if(t={context:t,memoizedValue:a,next:null},qn===null){if(e===null)throw Error(o(308));qn=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else qn=qn.next=t;return a}var jb=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(a,r){e.push(r)}};this.abort=function(){t.aborted=!0,e.forEach(function(a){return a()})}},Pb=n.unstable_scheduleCallback,Vb=n.unstable_NormalPriority,et={$$typeof:j,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function cu(){return{controller:new jb,data:new Map,refCount:0}}function Ts(e){e.refCount--,e.refCount===0&&Pb(Vb,function(){e.controller.abort()})}var Rs=null,fu=0,Ta=0,Ra=null;function Qb(e,t){if(Rs===null){var a=Rs=[];fu=0,Ta=hc(),Ra={status:"pending",value:void 0,then:function(r){a.push(r)}}}return fu++,t.then(th,th),t}function th(){if(--fu===0&&Rs!==null){Ra!==null&&(Ra.status="fulfilled");var e=Rs;Rs=null,Ta=0,Ra=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Yb(e,t){var a=[],r={status:"pending",value:null,reason:null,then:function(l){a.push(l)}};return e.then(function(){r.status="fulfilled",r.value=t;for(var l=0;l<a.length;l++)(0,a[l])(t)},function(l){for(r.status="rejected",r.reason=l,l=0;l<a.length;l++)(0,a[l])(void 0)}),r}var nh=O.S;O.S=function(e,t){typeof t=="object"&&t!==null&&typeof t.then=="function"&&Qb(e,t),nh!==null&&nh(e,t)};var $i=Y(null);function du(){var e=$i.current;return e!==null?e:Le.pooledCache}function Kr(e,t){t===null?B($i,$i.current):B($i,t.pool)}function ih(){var e=du();return e===null?null:{parent:et._currentValue,pool:e}}var As=Error(o(460)),ah=Error(o(474)),Zr=Error(o(542)),hu={then:function(){}};function sh(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Jr(){}function rh(e,t,a){switch(a=e[a],a===void 0?e.push(t):a!==t&&(t.then(Jr,Jr),t=a),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,lh(e),e;default:if(typeof t.status=="string")t.then(Jr,Jr);else{if(e=Le,e!==null&&100<e.shellSuspendCounter)throw Error(o(482));e=t,e.status="pending",e.then(function(r){if(t.status==="pending"){var l=t;l.status="fulfilled",l.value=r}},function(r){if(t.status==="pending"){var l=t;l.status="rejected",l.reason=r}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,lh(e),e}throw Cs=t,As}}var Cs=null;function oh(){if(Cs===null)throw Error(o(459));var e=Cs;return Cs=null,e}function lh(e){if(e===As||e===Zr)throw Error(o(483))}var ai=!1;function gu(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function mu(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function si(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function ri(e,t,a){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,(ke&2)!==0){var l=r.pending;return l===null?t.next=t:(t.next=l.next,l.next=t),r.pending=t,t=Yr(e),Xd(e,null,a),t}return Qr(e,r,t,a),Yr(e)}function Os(e,t,a){if(t=t.updateQueue,t!==null&&(t=t.shared,(a&4194048)!==0)){var r=t.lanes;r&=e.pendingLanes,a|=r,t.lanes=a,Ye(e,a)}}function pu(e,t){var a=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,a===r)){var l=null,c=null;if(a=a.firstBaseUpdate,a!==null){do{var p={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};c===null?l=c=p:c=c.next=p,a=a.next}while(a!==null);c===null?l=c=t:c=c.next=t}else l=c=t;a={baseState:r.baseState,firstBaseUpdate:l,lastBaseUpdate:c,shared:r.shared,callbacks:r.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=t:e.next=t,a.lastBaseUpdate=t}var yu=!1;function ks(){if(yu){var e=Ra;if(e!==null)throw e}}function Ms(e,t,a,r){yu=!1;var l=e.updateQueue;ai=!1;var c=l.firstBaseUpdate,p=l.lastBaseUpdate,b=l.shared.pending;if(b!==null){l.shared.pending=null;var x=b,N=x.next;x.next=null,p===null?c=N:p.next=N,p=x;var P=e.alternate;P!==null&&(P=P.updateQueue,b=P.lastBaseUpdate,b!==p&&(b===null?P.firstBaseUpdate=N:b.next=N,P.lastBaseUpdate=x))}if(c!==null){var G=l.baseState;p=0,P=N=x=null,b=c;do{var U=b.lane&-536870913,q=U!==b.lane;if(q?(Ae&U)===U:(r&U)===U){U!==0&&U===Ta&&(yu=!0),P!==null&&(P=P.next={lane:0,tag:b.tag,payload:b.payload,callback:null,next:null});e:{var de=e,ce=b;U=t;var Ue=a;switch(ce.tag){case 1:if(de=ce.payload,typeof de=="function"){G=de.call(Ue,G,U);break e}G=de;break e;case 3:de.flags=de.flags&-65537|128;case 0:if(de=ce.payload,U=typeof de=="function"?de.call(Ue,G,U):de,U==null)break e;G=v({},G,U);break e;case 2:ai=!0}}U=b.callback,U!==null&&(e.flags|=64,q&&(e.flags|=8192),q=l.callbacks,q===null?l.callbacks=[U]:q.push(U))}else q={lane:U,tag:b.tag,payload:b.payload,callback:b.callback,next:null},P===null?(N=P=q,x=G):P=P.next=q,p|=U;if(b=b.next,b===null){if(b=l.shared.pending,b===null)break;q=b,b=q.next,q.next=null,l.lastBaseUpdate=q,l.shared.pending=null}}while(!0);P===null&&(x=G),l.baseState=x,l.firstBaseUpdate=N,l.lastBaseUpdate=P,c===null&&(l.shared.lanes=0),gi|=p,e.lanes=p,e.memoizedState=G}}function uh(e,t){if(typeof e!="function")throw Error(o(191,e));e.call(t)}function ch(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)uh(a[e],t)}var Aa=Y(null),Wr=Y(0);function fh(e,t){e=Qn,B(Wr,e),B(Aa,t),Qn=e|t.baseLanes}function vu(){B(Wr,Qn),B(Aa,Aa.current)}function bu(){Qn=Wr.current,W(Aa),W(Wr)}var oi=0,Se=null,De=null,Ke=null,eo=!1,Ca=!1,Ii=!1,to=0,Ds=0,Oa=null,Gb=0;function Ie(){throw Error(o(321))}function wu(e,t){if(t===null)return!1;for(var a=0;a<t.length&&a<e.length;a++)if(!kt(e[a],t[a]))return!1;return!0}function Su(e,t,a,r,l,c){return oi=c,Se=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,O.H=e===null||e.memoizedState===null?Xh:Fh,Ii=!1,c=a(r,l),Ii=!1,Ca&&(c=hh(t,a,r,l)),dh(e),c}function dh(e){O.H=oo;var t=De!==null&&De.next!==null;if(oi=0,Ke=De=Se=null,eo=!1,Ds=0,Oa=null,t)throw Error(o(300));e===null||st||(e=e.dependencies,e!==null&&Xr(e)&&(st=!0))}function hh(e,t,a,r){Se=e;var l=0;do{if(Ca&&(Oa=null),Ds=0,Ca=!1,25<=l)throw Error(o(301));if(l+=1,Ke=De=null,e.updateQueue!=null){var c=e.updateQueue;c.lastEffect=null,c.events=null,c.stores=null,c.memoCache!=null&&(c.memoCache.index=0)}O.H=Jb,c=t(a,r)}while(Ca);return c}function $b(){var e=O.H,t=e.useState()[0];return t=typeof t.then=="function"?Ns(t):t,e=e.useState()[0],(De!==null?De.memoizedState:null)!==e&&(Se.flags|=1024),t}function _u(){var e=to!==0;return to=0,e}function xu(e,t,a){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a}function Eu(e){if(eo){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}eo=!1}oi=0,Ke=De=Se=null,Ca=!1,Ds=to=0,Oa=null}function Tt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ke===null?Se.memoizedState=Ke=e:Ke=Ke.next=e,Ke}function Ze(){if(De===null){var e=Se.alternate;e=e!==null?e.memoizedState:null}else e=De.next;var t=Ke===null?Se.memoizedState:Ke.next;if(t!==null)Ke=t,De=e;else{if(e===null)throw Se.alternate===null?Error(o(467)):Error(o(310));De=e,e={memoizedState:De.memoizedState,baseState:De.baseState,baseQueue:De.baseQueue,queue:De.queue,next:null},Ke===null?Se.memoizedState=Ke=e:Ke=Ke.next=e}return Ke}function Tu(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Ns(e){var t=Ds;return Ds+=1,Oa===null&&(Oa=[]),e=rh(Oa,e,t),t=Se,(Ke===null?t.memoizedState:Ke.next)===null&&(t=t.alternate,O.H=t===null||t.memoizedState===null?Xh:Fh),e}function no(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Ns(e);if(e.$$typeof===j)return mt(e)}throw Error(o(438,String(e)))}function Ru(e){var t=null,a=Se.updateQueue;if(a!==null&&(t=a.memoCache),t==null){var r=Se.alternate;r!==null&&(r=r.updateQueue,r!==null&&(r=r.memoCache,r!=null&&(t={data:r.data.map(function(l){return l.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),a===null&&(a=Tu(),Se.updateQueue=a),a.memoCache=t,a=t.data[t.index],a===void 0)for(a=t.data[t.index]=Array(e),r=0;r<e;r++)a[r]=ue;return t.index++,a}function Ln(e,t){return typeof t=="function"?t(e):t}function io(e){var t=Ze();return Au(t,De,e)}function Au(e,t,a){var r=e.queue;if(r===null)throw Error(o(311));r.lastRenderedReducer=a;var l=e.baseQueue,c=r.pending;if(c!==null){if(l!==null){var p=l.next;l.next=c.next,c.next=p}t.baseQueue=l=c,r.pending=null}if(c=e.baseState,l===null)e.memoizedState=c;else{t=l.next;var b=p=null,x=null,N=t,P=!1;do{var G=N.lane&-536870913;if(G!==N.lane?(Ae&G)===G:(oi&G)===G){var U=N.revertLane;if(U===0)x!==null&&(x=x.next={lane:0,revertLane:0,action:N.action,hasEagerState:N.hasEagerState,eagerState:N.eagerState,next:null}),G===Ta&&(P=!0);else if((oi&U)===U){N=N.next,U===Ta&&(P=!0);continue}else G={lane:0,revertLane:N.revertLane,action:N.action,hasEagerState:N.hasEagerState,eagerState:N.eagerState,next:null},x===null?(b=x=G,p=c):x=x.next=G,Se.lanes|=U,gi|=U;G=N.action,Ii&&a(c,G),c=N.hasEagerState?N.eagerState:a(c,G)}else U={lane:G,revertLane:N.revertLane,action:N.action,hasEagerState:N.hasEagerState,eagerState:N.eagerState,next:null},x===null?(b=x=U,p=c):x=x.next=U,Se.lanes|=G,gi|=G;N=N.next}while(N!==null&&N!==t);if(x===null?p=c:x.next=b,!kt(c,e.memoizedState)&&(st=!0,P&&(a=Ra,a!==null)))throw a;e.memoizedState=c,e.baseState=p,e.baseQueue=x,r.lastRenderedState=c}return l===null&&(r.lanes=0),[e.memoizedState,r.dispatch]}function Cu(e){var t=Ze(),a=t.queue;if(a===null)throw Error(o(311));a.lastRenderedReducer=e;var r=a.dispatch,l=a.pending,c=t.memoizedState;if(l!==null){a.pending=null;var p=l=l.next;do c=e(c,p.action),p=p.next;while(p!==l);kt(c,t.memoizedState)||(st=!0),t.memoizedState=c,t.baseQueue===null&&(t.baseState=c),a.lastRenderedState=c}return[c,r]}function gh(e,t,a){var r=Se,l=Ze(),c=Oe;if(c){if(a===void 0)throw Error(o(407));a=a()}else a=t();var p=!kt((De||l).memoizedState,a);p&&(l.memoizedState=a,st=!0),l=l.queue;var b=yh.bind(null,r,l,e);if(Us(2048,8,b,[e]),l.getSnapshot!==t||p||Ke!==null&&Ke.memoizedState.tag&1){if(r.flags|=2048,ka(9,ao(),ph.bind(null,r,l,a,t),null),Le===null)throw Error(o(349));c||(oi&124)!==0||mh(r,t,a)}return a}function mh(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=Se.updateQueue,t===null?(t=Tu(),Se.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function ph(e,t,a,r){t.value=a,t.getSnapshot=r,vh(t)&&bh(e)}function yh(e,t,a){return a(function(){vh(t)&&bh(e)})}function vh(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!kt(e,a)}catch{return!0}}function bh(e){var t=Sa(e,2);t!==null&&zt(t,e,2)}function Ou(e){var t=Tt();if(typeof e=="function"){var a=e;if(e=a(),Ii){Jt(!0);try{a()}finally{Jt(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ln,lastRenderedState:e},t}function wh(e,t,a,r){return e.baseState=a,Au(e,De,typeof r=="function"?r:Ln)}function Ib(e,t,a,r,l){if(ro(e))throw Error(o(485));if(e=t.action,e!==null){var c={payload:l,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(p){c.listeners.push(p)}};O.T!==null?a(!0):c.isTransition=!1,r(c),a=t.pending,a===null?(c.next=t.pending=c,Sh(t,c)):(c.next=a.next,t.pending=a.next=c)}}function Sh(e,t){var a=t.action,r=t.payload,l=e.state;if(t.isTransition){var c=O.T,p={};O.T=p;try{var b=a(l,r),x=O.S;x!==null&&x(p,b),_h(e,t,b)}catch(N){ku(e,t,N)}finally{O.T=c}}else try{c=a(l,r),_h(e,t,c)}catch(N){ku(e,t,N)}}function _h(e,t,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(r){xh(e,t,r)},function(r){return ku(e,t,r)}):xh(e,t,a)}function xh(e,t,a){t.status="fulfilled",t.value=a,Eh(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,Sh(e,a)))}function ku(e,t,a){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status="rejected",t.reason=a,Eh(t),t=t.next;while(t!==r)}e.action=null}function Eh(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Th(e,t){return t}function Rh(e,t){if(Oe){var a=Le.formState;if(a!==null){e:{var r=Se;if(Oe){if(Ve){t:{for(var l=Ve,c=cn;l.nodeType!==8;){if(!c){l=null;break t}if(l=nn(l.nextSibling),l===null){l=null;break t}}c=l.data,l=c==="F!"||c==="F"?l:null}if(l){Ve=nn(l.nextSibling),r=l.data==="F!";break e}}Qi(r)}r=!1}r&&(t=a[0])}}return a=Tt(),a.memoizedState=a.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Th,lastRenderedState:t},a.queue=r,a=Gh.bind(null,Se,r),r.dispatch=a,r=Ou(!1),c=qu.bind(null,Se,!1,r.queue),r=Tt(),l={state:t,dispatch:null,action:e,pending:null},r.queue=l,a=Ib.bind(null,Se,l,c,a),l.dispatch=a,r.memoizedState=e,[t,a,!1]}function Ah(e){var t=Ze();return Ch(t,De,e)}function Ch(e,t,a){if(t=Au(e,t,Th)[0],e=io(Ln)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var r=Ns(t)}catch(p){throw p===As?Zr:p}else r=t;t=Ze();var l=t.queue,c=l.dispatch;return a!==t.memoizedState&&(Se.flags|=2048,ka(9,ao(),Xb.bind(null,l,a),null)),[r,c,e]}function Xb(e,t){e.action=t}function Oh(e){var t=Ze(),a=De;if(a!==null)return Ch(t,a,e);Ze(),t=t.memoizedState,a=Ze();var r=a.queue.dispatch;return a.memoizedState=e,[t,r,!1]}function ka(e,t,a,r){return e={tag:e,create:a,deps:r,inst:t,next:null},t=Se.updateQueue,t===null&&(t=Tu(),Se.updateQueue=t),a=t.lastEffect,a===null?t.lastEffect=e.next=e:(r=a.next,a.next=e,e.next=r,t.lastEffect=e),e}function ao(){return{destroy:void 0,resource:void 0}}function kh(){return Ze().memoizedState}function so(e,t,a,r){var l=Tt();r=r===void 0?null:r,Se.flags|=e,l.memoizedState=ka(1|t,ao(),a,r)}function Us(e,t,a,r){var l=Ze();r=r===void 0?null:r;var c=l.memoizedState.inst;De!==null&&r!==null&&wu(r,De.memoizedState.deps)?l.memoizedState=ka(t,c,a,r):(Se.flags|=e,l.memoizedState=ka(1|t,c,a,r))}function Mh(e,t){so(8390656,8,e,t)}function Dh(e,t){Us(2048,8,e,t)}function Nh(e,t){return Us(4,2,e,t)}function Uh(e,t){return Us(4,4,e,t)}function qh(e,t){if(typeof t=="function"){e=e();var a=t(e);return function(){typeof a=="function"?a():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function zh(e,t,a){a=a!=null?a.concat([e]):null,Us(4,4,qh.bind(null,t,e),a)}function Mu(){}function Lh(e,t){var a=Ze();t=t===void 0?null:t;var r=a.memoizedState;return t!==null&&wu(t,r[1])?r[0]:(a.memoizedState=[e,t],e)}function Hh(e,t){var a=Ze();t=t===void 0?null:t;var r=a.memoizedState;if(t!==null&&wu(t,r[1]))return r[0];if(r=e(),Ii){Jt(!0);try{e()}finally{Jt(!1)}}return a.memoizedState=[r,t],r}function Du(e,t,a){return a===void 0||(oi&1073741824)!==0?e.memoizedState=t:(e.memoizedState=a,e=Pg(),Se.lanes|=e,gi|=e,a)}function Bh(e,t,a,r){return kt(a,t)?a:Aa.current!==null?(e=Du(e,a,r),kt(e,t)||(st=!0),e):(oi&42)===0?(st=!0,e.memoizedState=a):(e=Pg(),Se.lanes|=e,gi|=e,t)}function jh(e,t,a,r,l){var c=V.p;V.p=c!==0&&8>c?c:8;var p=O.T,b={};O.T=b,qu(e,!1,t,a);try{var x=l(),N=O.S;if(N!==null&&N(b,x),x!==null&&typeof x=="object"&&typeof x.then=="function"){var P=Yb(x,r);qs(e,t,P,qt(e))}else qs(e,t,r,qt(e))}catch(G){qs(e,t,{then:function(){},status:"rejected",reason:G},qt())}finally{V.p=c,O.T=p}}function Fb(){}function Nu(e,t,a,r){if(e.tag!==5)throw Error(o(476));var l=Ph(e).queue;jh(e,l,t,L,a===null?Fb:function(){return Vh(e),a(r)})}function Ph(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:L,baseState:L,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ln,lastRenderedState:L},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ln,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Vh(e){var t=Ph(e).next.queue;qs(e,t,{},qt())}function Uu(){return mt(Ws)}function Qh(){return Ze().memoizedState}function Yh(){return Ze().memoizedState}function Kb(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var a=qt();e=si(a);var r=ri(t,e,a);r!==null&&(zt(r,t,a),Os(r,t,a)),t={cache:cu()},e.payload=t;return}t=t.return}}function Zb(e,t,a){var r=qt();a={lane:r,revertLane:0,action:a,hasEagerState:!1,eagerState:null,next:null},ro(e)?$h(t,a):(a=eu(e,t,a,r),a!==null&&(zt(a,e,r),Ih(a,t,r)))}function Gh(e,t,a){var r=qt();qs(e,t,a,r)}function qs(e,t,a,r){var l={lane:r,revertLane:0,action:a,hasEagerState:!1,eagerState:null,next:null};if(ro(e))$h(t,l);else{var c=e.alternate;if(e.lanes===0&&(c===null||c.lanes===0)&&(c=t.lastRenderedReducer,c!==null))try{var p=t.lastRenderedState,b=c(p,a);if(l.hasEagerState=!0,l.eagerState=b,kt(b,p))return Qr(e,t,l,0),Le===null&&Vr(),!1}catch{}finally{}if(a=eu(e,t,l,r),a!==null)return zt(a,e,r),Ih(a,t,r),!0}return!1}function qu(e,t,a,r){if(r={lane:2,revertLane:hc(),action:r,hasEagerState:!1,eagerState:null,next:null},ro(e)){if(t)throw Error(o(479))}else t=eu(e,a,r,2),t!==null&&zt(t,e,2)}function ro(e){var t=e.alternate;return e===Se||t!==null&&t===Se}function $h(e,t){Ca=eo=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function Ih(e,t,a){if((a&4194048)!==0){var r=t.lanes;r&=e.pendingLanes,a|=r,t.lanes=a,Ye(e,a)}}var oo={readContext:mt,use:no,useCallback:Ie,useContext:Ie,useEffect:Ie,useImperativeHandle:Ie,useLayoutEffect:Ie,useInsertionEffect:Ie,useMemo:Ie,useReducer:Ie,useRef:Ie,useState:Ie,useDebugValue:Ie,useDeferredValue:Ie,useTransition:Ie,useSyncExternalStore:Ie,useId:Ie,useHostTransitionStatus:Ie,useFormState:Ie,useActionState:Ie,useOptimistic:Ie,useMemoCache:Ie,useCacheRefresh:Ie},Xh={readContext:mt,use:no,useCallback:function(e,t){return Tt().memoizedState=[e,t===void 0?null:t],e},useContext:mt,useEffect:Mh,useImperativeHandle:function(e,t,a){a=a!=null?a.concat([e]):null,so(4194308,4,qh.bind(null,t,e),a)},useLayoutEffect:function(e,t){return so(4194308,4,e,t)},useInsertionEffect:function(e,t){so(4,2,e,t)},useMemo:function(e,t){var a=Tt();t=t===void 0?null:t;var r=e();if(Ii){Jt(!0);try{e()}finally{Jt(!1)}}return a.memoizedState=[r,t],r},useReducer:function(e,t,a){var r=Tt();if(a!==void 0){var l=a(t);if(Ii){Jt(!0);try{a(t)}finally{Jt(!1)}}}else l=t;return r.memoizedState=r.baseState=l,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:l},r.queue=e,e=e.dispatch=Zb.bind(null,Se,e),[r.memoizedState,e]},useRef:function(e){var t=Tt();return e={current:e},t.memoizedState=e},useState:function(e){e=Ou(e);var t=e.queue,a=Gh.bind(null,Se,t);return t.dispatch=a,[e.memoizedState,a]},useDebugValue:Mu,useDeferredValue:function(e,t){var a=Tt();return Du(a,e,t)},useTransition:function(){var e=Ou(!1);return e=jh.bind(null,Se,e.queue,!0,!1),Tt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,a){var r=Se,l=Tt();if(Oe){if(a===void 0)throw Error(o(407));a=a()}else{if(a=t(),Le===null)throw Error(o(349));(Ae&124)!==0||mh(r,t,a)}l.memoizedState=a;var c={value:a,getSnapshot:t};return l.queue=c,Mh(yh.bind(null,r,c,e),[e]),r.flags|=2048,ka(9,ao(),ph.bind(null,r,c,a,t),null),a},useId:function(){var e=Tt(),t=Le.identifierPrefix;if(Oe){var a=Un,r=Nn;a=(r&~(1<<32-ut(r)-1)).toString(32)+a,t="«"+t+"R"+a,a=to++,0<a&&(t+="H"+a.toString(32)),t+="»"}else a=Gb++,t="«"+t+"r"+a.toString(32)+"»";return e.memoizedState=t},useHostTransitionStatus:Uu,useFormState:Rh,useActionState:Rh,useOptimistic:function(e){var t=Tt();t.memoizedState=t.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=a,t=qu.bind(null,Se,!0,a),a.dispatch=t,[e,t]},useMemoCache:Ru,useCacheRefresh:function(){return Tt().memoizedState=Kb.bind(null,Se)}},Fh={readContext:mt,use:no,useCallback:Lh,useContext:mt,useEffect:Dh,useImperativeHandle:zh,useInsertionEffect:Nh,useLayoutEffect:Uh,useMemo:Hh,useReducer:io,useRef:kh,useState:function(){return io(Ln)},useDebugValue:Mu,useDeferredValue:function(e,t){var a=Ze();return Bh(a,De.memoizedState,e,t)},useTransition:function(){var e=io(Ln)[0],t=Ze().memoizedState;return[typeof e=="boolean"?e:Ns(e),t]},useSyncExternalStore:gh,useId:Qh,useHostTransitionStatus:Uu,useFormState:Ah,useActionState:Ah,useOptimistic:function(e,t){var a=Ze();return wh(a,De,e,t)},useMemoCache:Ru,useCacheRefresh:Yh},Jb={readContext:mt,use:no,useCallback:Lh,useContext:mt,useEffect:Dh,useImperativeHandle:zh,useInsertionEffect:Nh,useLayoutEffect:Uh,useMemo:Hh,useReducer:Cu,useRef:kh,useState:function(){return Cu(Ln)},useDebugValue:Mu,useDeferredValue:function(e,t){var a=Ze();return De===null?Du(a,e,t):Bh(a,De.memoizedState,e,t)},useTransition:function(){var e=Cu(Ln)[0],t=Ze().memoizedState;return[typeof e=="boolean"?e:Ns(e),t]},useSyncExternalStore:gh,useId:Qh,useHostTransitionStatus:Uu,useFormState:Oh,useActionState:Oh,useOptimistic:function(e,t){var a=Ze();return De!==null?wh(a,De,e,t):(a.baseState=e,[e,a.queue.dispatch])},useMemoCache:Ru,useCacheRefresh:Yh},Ma=null,zs=0;function lo(e){var t=zs;return zs+=1,Ma===null&&(Ma=[]),rh(Ma,e,t)}function Ls(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function uo(e,t){throw t.$$typeof===y?Error(o(525)):(e=Object.prototype.toString.call(t),Error(o(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Kh(e){var t=e._init;return t(e._payload)}function Zh(e){function t(M,R){if(e){var D=M.deletions;D===null?(M.deletions=[R],M.flags|=16):D.push(R)}}function a(M,R){if(!e)return null;for(;R!==null;)t(M,R),R=R.sibling;return null}function r(M){for(var R=new Map;M!==null;)M.key!==null?R.set(M.key,M):R.set(M.index,M),M=M.sibling;return R}function l(M,R){return M=Dn(M,R),M.index=0,M.sibling=null,M}function c(M,R,D){return M.index=D,e?(D=M.alternate,D!==null?(D=D.index,D<R?(M.flags|=67108866,R):D):(M.flags|=67108866,R)):(M.flags|=1048576,R)}function p(M){return e&&M.alternate===null&&(M.flags|=67108866),M}function b(M,R,D,Q){return R===null||R.tag!==6?(R=nu(D,M.mode,Q),R.return=M,R):(R=l(R,D),R.return=M,R)}function x(M,R,D,Q){var te=D.type;return te===E?P(M,R,D.props.children,Q,D.key):R!==null&&(R.elementType===te||typeof te=="object"&&te!==null&&te.$$typeof===$&&Kh(te)===R.type)?(R=l(R,D.props),Ls(R,D),R.return=M,R):(R=Gr(D.type,D.key,D.props,null,M.mode,Q),Ls(R,D),R.return=M,R)}function N(M,R,D,Q){return R===null||R.tag!==4||R.stateNode.containerInfo!==D.containerInfo||R.stateNode.implementation!==D.implementation?(R=iu(D,M.mode,Q),R.return=M,R):(R=l(R,D.children||[]),R.return=M,R)}function P(M,R,D,Q,te){return R===null||R.tag!==7?(R=Bi(D,M.mode,Q,te),R.return=M,R):(R=l(R,D),R.return=M,R)}function G(M,R,D){if(typeof R=="string"&&R!==""||typeof R=="number"||typeof R=="bigint")return R=nu(""+R,M.mode,D),R.return=M,R;if(typeof R=="object"&&R!==null){switch(R.$$typeof){case w:return D=Gr(R.type,R.key,R.props,null,M.mode,D),Ls(D,R),D.return=M,D;case _:return R=iu(R,M.mode,D),R.return=M,R;case $:var Q=R._init;return R=Q(R._payload),G(M,R,D)}if(me(R)||he(R))return R=Bi(R,M.mode,D,null),R.return=M,R;if(typeof R.then=="function")return G(M,lo(R),D);if(R.$$typeof===j)return G(M,Fr(M,R),D);uo(M,R)}return null}function U(M,R,D,Q){var te=R!==null?R.key:null;if(typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint")return te!==null?null:b(M,R,""+D,Q);if(typeof D=="object"&&D!==null){switch(D.$$typeof){case w:return D.key===te?x(M,R,D,Q):null;case _:return D.key===te?N(M,R,D,Q):null;case $:return te=D._init,D=te(D._payload),U(M,R,D,Q)}if(me(D)||he(D))return te!==null?null:P(M,R,D,Q,null);if(typeof D.then=="function")return U(M,R,lo(D),Q);if(D.$$typeof===j)return U(M,R,Fr(M,D),Q);uo(M,D)}return null}function q(M,R,D,Q,te){if(typeof Q=="string"&&Q!==""||typeof Q=="number"||typeof Q=="bigint")return M=M.get(D)||null,b(R,M,""+Q,te);if(typeof Q=="object"&&Q!==null){switch(Q.$$typeof){case w:return M=M.get(Q.key===null?D:Q.key)||null,x(R,M,Q,te);case _:return M=M.get(Q.key===null?D:Q.key)||null,N(R,M,Q,te);case $:var xe=Q._init;return Q=xe(Q._payload),q(M,R,D,Q,te)}if(me(Q)||he(Q))return M=M.get(D)||null,P(R,M,Q,te,null);if(typeof Q.then=="function")return q(M,R,D,lo(Q),te);if(Q.$$typeof===j)return q(M,R,D,Fr(R,Q),te);uo(R,Q)}return null}function de(M,R,D,Q){for(var te=null,xe=null,oe=R,fe=R=0,ot=null;oe!==null&&fe<D.length;fe++){oe.index>fe?(ot=oe,oe=null):ot=oe.sibling;var Ce=U(M,oe,D[fe],Q);if(Ce===null){oe===null&&(oe=ot);break}e&&oe&&Ce.alternate===null&&t(M,oe),R=c(Ce,R,fe),xe===null?te=Ce:xe.sibling=Ce,xe=Ce,oe=ot}if(fe===D.length)return a(M,oe),Oe&&Pi(M,fe),te;if(oe===null){for(;fe<D.length;fe++)oe=G(M,D[fe],Q),oe!==null&&(R=c(oe,R,fe),xe===null?te=oe:xe.sibling=oe,xe=oe);return Oe&&Pi(M,fe),te}for(oe=r(oe);fe<D.length;fe++)ot=q(oe,M,fe,D[fe],Q),ot!==null&&(e&&ot.alternate!==null&&oe.delete(ot.key===null?fe:ot.key),R=c(ot,R,fe),xe===null?te=ot:xe.sibling=ot,xe=ot);return e&&oe.forEach(function(xi){return t(M,xi)}),Oe&&Pi(M,fe),te}function ce(M,R,D,Q){if(D==null)throw Error(o(151));for(var te=null,xe=null,oe=R,fe=R=0,ot=null,Ce=D.next();oe!==null&&!Ce.done;fe++,Ce=D.next()){oe.index>fe?(ot=oe,oe=null):ot=oe.sibling;var xi=U(M,oe,Ce.value,Q);if(xi===null){oe===null&&(oe=ot);break}e&&oe&&xi.alternate===null&&t(M,oe),R=c(xi,R,fe),xe===null?te=xi:xe.sibling=xi,xe=xi,oe=ot}if(Ce.done)return a(M,oe),Oe&&Pi(M,fe),te;if(oe===null){for(;!Ce.done;fe++,Ce=D.next())Ce=G(M,Ce.value,Q),Ce!==null&&(R=c(Ce,R,fe),xe===null?te=Ce:xe.sibling=Ce,xe=Ce);return Oe&&Pi(M,fe),te}for(oe=r(oe);!Ce.done;fe++,Ce=D.next())Ce=q(oe,M,fe,Ce.value,Q),Ce!==null&&(e&&Ce.alternate!==null&&oe.delete(Ce.key===null?fe:Ce.key),R=c(Ce,R,fe),xe===null?te=Ce:xe.sibling=Ce,xe=Ce);return e&&oe.forEach(function(W0){return t(M,W0)}),Oe&&Pi(M,fe),te}function Ue(M,R,D,Q){if(typeof D=="object"&&D!==null&&D.type===E&&D.key===null&&(D=D.props.children),typeof D=="object"&&D!==null){switch(D.$$typeof){case w:e:{for(var te=D.key;R!==null;){if(R.key===te){if(te=D.type,te===E){if(R.tag===7){a(M,R.sibling),Q=l(R,D.props.children),Q.return=M,M=Q;break e}}else if(R.elementType===te||typeof te=="object"&&te!==null&&te.$$typeof===$&&Kh(te)===R.type){a(M,R.sibling),Q=l(R,D.props),Ls(Q,D),Q.return=M,M=Q;break e}a(M,R);break}else t(M,R);R=R.sibling}D.type===E?(Q=Bi(D.props.children,M.mode,Q,D.key),Q.return=M,M=Q):(Q=Gr(D.type,D.key,D.props,null,M.mode,Q),Ls(Q,D),Q.return=M,M=Q)}return p(M);case _:e:{for(te=D.key;R!==null;){if(R.key===te)if(R.tag===4&&R.stateNode.containerInfo===D.containerInfo&&R.stateNode.implementation===D.implementation){a(M,R.sibling),Q=l(R,D.children||[]),Q.return=M,M=Q;break e}else{a(M,R);break}else t(M,R);R=R.sibling}Q=iu(D,M.mode,Q),Q.return=M,M=Q}return p(M);case $:return te=D._init,D=te(D._payload),Ue(M,R,D,Q)}if(me(D))return de(M,R,D,Q);if(he(D)){if(te=he(D),typeof te!="function")throw Error(o(150));return D=te.call(D),ce(M,R,D,Q)}if(typeof D.then=="function")return Ue(M,R,lo(D),Q);if(D.$$typeof===j)return Ue(M,R,Fr(M,D),Q);uo(M,D)}return typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint"?(D=""+D,R!==null&&R.tag===6?(a(M,R.sibling),Q=l(R,D),Q.return=M,M=Q):(a(M,R),Q=nu(D,M.mode,Q),Q.return=M,M=Q),p(M)):a(M,R)}return function(M,R,D,Q){try{zs=0;var te=Ue(M,R,D,Q);return Ma=null,te}catch(oe){if(oe===As||oe===Zr)throw oe;var xe=Mt(29,oe,null,M.mode);return xe.lanes=Q,xe.return=M,xe}finally{}}}var Da=Zh(!0),Jh=Zh(!1),It=Y(null),fn=null;function li(e){var t=e.alternate;B(tt,tt.current&1),B(It,e),fn===null&&(t===null||Aa.current!==null||t.memoizedState!==null)&&(fn=e)}function Wh(e){if(e.tag===22){if(B(tt,tt.current),B(It,e),fn===null){var t=e.alternate;t!==null&&t.memoizedState!==null&&(fn=e)}}else ui()}function ui(){B(tt,tt.current),B(It,It.current)}function Hn(e){W(It),fn===e&&(fn=null),W(tt)}var tt=Y(0);function co(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||a.data==="$?"||Tc(a)))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function zu(e,t,a,r){t=e.memoizedState,a=a(r,t),a=a==null?t:v({},t,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var Lu={enqueueSetState:function(e,t,a){e=e._reactInternals;var r=qt(),l=si(r);l.payload=t,a!=null&&(l.callback=a),t=ri(e,l,r),t!==null&&(zt(t,e,r),Os(t,e,r))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var r=qt(),l=si(r);l.tag=1,l.payload=t,a!=null&&(l.callback=a),t=ri(e,l,r),t!==null&&(zt(t,e,r),Os(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=qt(),r=si(a);r.tag=2,t!=null&&(r.callback=t),t=ri(e,r,a),t!==null&&(zt(t,e,a),Os(t,e,a))}};function eg(e,t,a,r,l,c,p){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,c,p):t.prototype&&t.prototype.isPureReactComponent?!bs(a,r)||!bs(l,c):!0}function tg(e,t,a,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(a,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(a,r),t.state!==e&&Lu.enqueueReplaceState(t,t.state,null)}function Xi(e,t){var a=t;if("ref"in t){a={};for(var r in t)r!=="ref"&&(a[r]=t[r])}if(e=e.defaultProps){a===t&&(a=v({},a));for(var l in e)a[l]===void 0&&(a[l]=e[l])}return a}var fo=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)};function ng(e){fo(e)}function ig(e){console.error(e)}function ag(e){fo(e)}function ho(e,t){try{var a=e.onUncaughtError;a(t.value,{componentStack:t.stack})}catch(r){setTimeout(function(){throw r})}}function sg(e,t,a){try{var r=e.onCaughtError;r(a.value,{componentStack:a.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(l){setTimeout(function(){throw l})}}function Hu(e,t,a){return a=si(a),a.tag=3,a.payload={element:null},a.callback=function(){ho(e,t)},a}function rg(e){return e=si(e),e.tag=3,e}function og(e,t,a,r){var l=a.type.getDerivedStateFromError;if(typeof l=="function"){var c=r.value;e.payload=function(){return l(c)},e.callback=function(){sg(t,a,r)}}var p=a.stateNode;p!==null&&typeof p.componentDidCatch=="function"&&(e.callback=function(){sg(t,a,r),typeof l!="function"&&(mi===null?mi=new Set([this]):mi.add(this));var b=r.stack;this.componentDidCatch(r.value,{componentStack:b!==null?b:""})})}function Wb(e,t,a,r,l){if(a.flags|=32768,r!==null&&typeof r=="object"&&typeof r.then=="function"){if(t=a.alternate,t!==null&&Es(t,a,l,!0),a=It.current,a!==null){switch(a.tag){case 13:return fn===null?lc():a.alternate===null&&Qe===0&&(Qe=3),a.flags&=-257,a.flags|=65536,a.lanes=l,r===hu?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([r]):t.add(r),cc(e,r,l)),!1;case 22:return a.flags|=65536,r===hu?a.flags|=16384:(t=a.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},a.updateQueue=t):(a=t.retryQueue,a===null?t.retryQueue=new Set([r]):a.add(r)),cc(e,r,l)),!1}throw Error(o(435,a.tag))}return cc(e,r,l),lc(),!1}if(Oe)return t=It.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=l,r!==ru&&(e=Error(o(422),{cause:r}),xs(Qt(e,a)))):(r!==ru&&(t=Error(o(423),{cause:r}),xs(Qt(t,a))),e=e.current.alternate,e.flags|=65536,l&=-l,e.lanes|=l,r=Qt(r,a),l=Hu(e.stateNode,r,l),pu(e,l),Qe!==4&&(Qe=2)),!1;var c=Error(o(520),{cause:r});if(c=Qt(c,a),Ys===null?Ys=[c]:Ys.push(c),Qe!==4&&(Qe=2),t===null)return!0;r=Qt(r,a),a=t;do{switch(a.tag){case 3:return a.flags|=65536,e=l&-l,a.lanes|=e,e=Hu(a.stateNode,r,e),pu(a,e),!1;case 1:if(t=a.type,c=a.stateNode,(a.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||c!==null&&typeof c.componentDidCatch=="function"&&(mi===null||!mi.has(c))))return a.flags|=65536,l&=-l,a.lanes|=l,l=rg(l),og(l,e,a,r),pu(a,l),!1}a=a.return}while(a!==null);return!1}var lg=Error(o(461)),st=!1;function ft(e,t,a,r){t.child=e===null?Jh(t,null,a,r):Da(t,e.child,a,r)}function ug(e,t,a,r,l){a=a.render;var c=t.ref;if("ref"in r){var p={};for(var b in r)b!=="ref"&&(p[b]=r[b])}else p=r;return Gi(t),r=Su(e,t,a,p,c,l),b=_u(),e!==null&&!st?(xu(e,t,l),Bn(e,t,l)):(Oe&&b&&au(t),t.flags|=1,ft(e,t,r,l),t.child)}function cg(e,t,a,r,l){if(e===null){var c=a.type;return typeof c=="function"&&!tu(c)&&c.defaultProps===void 0&&a.compare===null?(t.tag=15,t.type=c,fg(e,t,c,r,l)):(e=Gr(a.type,null,r,t,t.mode,l),e.ref=t.ref,e.return=t,t.child=e)}if(c=e.child,!$u(e,l)){var p=c.memoizedProps;if(a=a.compare,a=a!==null?a:bs,a(p,r)&&e.ref===t.ref)return Bn(e,t,l)}return t.flags|=1,e=Dn(c,r),e.ref=t.ref,e.return=t,t.child=e}function fg(e,t,a,r,l){if(e!==null){var c=e.memoizedProps;if(bs(c,r)&&e.ref===t.ref)if(st=!1,t.pendingProps=r=c,$u(e,l))(e.flags&131072)!==0&&(st=!0);else return t.lanes=e.lanes,Bn(e,t,l)}return Bu(e,t,a,r,l)}function dg(e,t,a){var r=t.pendingProps,l=r.children,c=e!==null?e.memoizedState:null;if(r.mode==="hidden"){if((t.flags&128)!==0){if(r=c!==null?c.baseLanes|a:a,e!==null){for(l=t.child=e.child,c=0;l!==null;)c=c|l.lanes|l.childLanes,l=l.sibling;t.childLanes=c&~r}else t.childLanes=0,t.child=null;return hg(e,t,r,a)}if((a&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Kr(t,c!==null?c.cachePool:null),c!==null?fh(t,c):vu(),Wh(t);else return t.lanes=t.childLanes=536870912,hg(e,t,c!==null?c.baseLanes|a:a,a)}else c!==null?(Kr(t,c.cachePool),fh(t,c),ui(),t.memoizedState=null):(e!==null&&Kr(t,null),vu(),ui());return ft(e,t,l,a),t.child}function hg(e,t,a,r){var l=du();return l=l===null?null:{parent:et._currentValue,pool:l},t.memoizedState={baseLanes:a,cachePool:l},e!==null&&Kr(t,null),vu(),Wh(t),e!==null&&Es(e,t,r,!0),null}function go(e,t){var a=t.ref;if(a===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error(o(284));(e===null||e.ref!==a)&&(t.flags|=4194816)}}function Bu(e,t,a,r,l){return Gi(t),a=Su(e,t,a,r,void 0,l),r=_u(),e!==null&&!st?(xu(e,t,l),Bn(e,t,l)):(Oe&&r&&au(t),t.flags|=1,ft(e,t,a,l),t.child)}function gg(e,t,a,r,l,c){return Gi(t),t.updateQueue=null,a=hh(t,r,a,l),dh(e),r=_u(),e!==null&&!st?(xu(e,t,c),Bn(e,t,c)):(Oe&&r&&au(t),t.flags|=1,ft(e,t,a,c),t.child)}function mg(e,t,a,r,l){if(Gi(t),t.stateNode===null){var c=_a,p=a.contextType;typeof p=="object"&&p!==null&&(c=mt(p)),c=new a(r,c),t.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,c.updater=Lu,t.stateNode=c,c._reactInternals=t,c=t.stateNode,c.props=r,c.state=t.memoizedState,c.refs={},gu(t),p=a.contextType,c.context=typeof p=="object"&&p!==null?mt(p):_a,c.state=t.memoizedState,p=a.getDerivedStateFromProps,typeof p=="function"&&(zu(t,a,p,r),c.state=t.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof c.getSnapshotBeforeUpdate=="function"||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(p=c.state,typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount(),p!==c.state&&Lu.enqueueReplaceState(c,c.state,null),Ms(t,r,c,l),ks(),c.state=t.memoizedState),typeof c.componentDidMount=="function"&&(t.flags|=4194308),r=!0}else if(e===null){c=t.stateNode;var b=t.memoizedProps,x=Xi(a,b);c.props=x;var N=c.context,P=a.contextType;p=_a,typeof P=="object"&&P!==null&&(p=mt(P));var G=a.getDerivedStateFromProps;P=typeof G=="function"||typeof c.getSnapshotBeforeUpdate=="function",b=t.pendingProps!==b,P||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(b||N!==p)&&tg(t,c,r,p),ai=!1;var U=t.memoizedState;c.state=U,Ms(t,r,c,l),ks(),N=t.memoizedState,b||U!==N||ai?(typeof G=="function"&&(zu(t,a,G,r),N=t.memoizedState),(x=ai||eg(t,a,x,r,U,N,p))?(P||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount()),typeof c.componentDidMount=="function"&&(t.flags|=4194308)):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=N),c.props=r,c.state=N,c.context=p,r=x):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{c=t.stateNode,mu(e,t),p=t.memoizedProps,P=Xi(a,p),c.props=P,G=t.pendingProps,U=c.context,N=a.contextType,x=_a,typeof N=="object"&&N!==null&&(x=mt(N)),b=a.getDerivedStateFromProps,(N=typeof b=="function"||typeof c.getSnapshotBeforeUpdate=="function")||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(p!==G||U!==x)&&tg(t,c,r,x),ai=!1,U=t.memoizedState,c.state=U,Ms(t,r,c,l),ks();var q=t.memoizedState;p!==G||U!==q||ai||e!==null&&e.dependencies!==null&&Xr(e.dependencies)?(typeof b=="function"&&(zu(t,a,b,r),q=t.memoizedState),(P=ai||eg(t,a,P,r,U,q,x)||e!==null&&e.dependencies!==null&&Xr(e.dependencies))?(N||typeof c.UNSAFE_componentWillUpdate!="function"&&typeof c.componentWillUpdate!="function"||(typeof c.componentWillUpdate=="function"&&c.componentWillUpdate(r,q,x),typeof c.UNSAFE_componentWillUpdate=="function"&&c.UNSAFE_componentWillUpdate(r,q,x)),typeof c.componentDidUpdate=="function"&&(t.flags|=4),typeof c.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof c.componentDidUpdate!="function"||p===e.memoizedProps&&U===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||p===e.memoizedProps&&U===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=q),c.props=r,c.state=q,c.context=x,r=P):(typeof c.componentDidUpdate!="function"||p===e.memoizedProps&&U===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||p===e.memoizedProps&&U===e.memoizedState||(t.flags|=1024),r=!1)}return c=r,go(e,t),r=(t.flags&128)!==0,c||r?(c=t.stateNode,a=r&&typeof a.getDerivedStateFromError!="function"?null:c.render(),t.flags|=1,e!==null&&r?(t.child=Da(t,e.child,null,l),t.child=Da(t,null,a,l)):ft(e,t,a,l),t.memoizedState=c.state,e=t.child):e=Bn(e,t,l),e}function pg(e,t,a,r){return _s(),t.flags|=256,ft(e,t,a,r),t.child}var ju={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Pu(e){return{baseLanes:e,cachePool:ih()}}function Vu(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=Xt),e}function yg(e,t,a){var r=t.pendingProps,l=!1,c=(t.flags&128)!==0,p;if((p=c)||(p=e!==null&&e.memoizedState===null?!1:(tt.current&2)!==0),p&&(l=!0,t.flags&=-129),p=(t.flags&32)!==0,t.flags&=-33,e===null){if(Oe){if(l?li(t):ui(),Oe){var b=Ve,x;if(x=b){e:{for(x=b,b=cn;x.nodeType!==8;){if(!b){b=null;break e}if(x=nn(x.nextSibling),x===null){b=null;break e}}b=x}b!==null?(t.memoizedState={dehydrated:b,treeContext:ji!==null?{id:Nn,overflow:Un}:null,retryLane:536870912,hydrationErrors:null},x=Mt(18,null,null,0),x.stateNode=b,x.return=t,t.child=x,_t=t,Ve=null,x=!0):x=!1}x||Qi(t)}if(b=t.memoizedState,b!==null&&(b=b.dehydrated,b!==null))return Tc(b)?t.lanes=32:t.lanes=536870912,null;Hn(t)}return b=r.children,r=r.fallback,l?(ui(),l=t.mode,b=mo({mode:"hidden",children:b},l),r=Bi(r,l,a,null),b.return=t,r.return=t,b.sibling=r,t.child=b,l=t.child,l.memoizedState=Pu(a),l.childLanes=Vu(e,p,a),t.memoizedState=ju,r):(li(t),Qu(t,b))}if(x=e.memoizedState,x!==null&&(b=x.dehydrated,b!==null)){if(c)t.flags&256?(li(t),t.flags&=-257,t=Yu(e,t,a)):t.memoizedState!==null?(ui(),t.child=e.child,t.flags|=128,t=null):(ui(),l=r.fallback,b=t.mode,r=mo({mode:"visible",children:r.children},b),l=Bi(l,b,a,null),l.flags|=2,r.return=t,l.return=t,r.sibling=l,t.child=r,Da(t,e.child,null,a),r=t.child,r.memoizedState=Pu(a),r.childLanes=Vu(e,p,a),t.memoizedState=ju,t=l);else if(li(t),Tc(b)){if(p=b.nextSibling&&b.nextSibling.dataset,p)var N=p.dgst;p=N,r=Error(o(419)),r.stack="",r.digest=p,xs({value:r,source:null,stack:null}),t=Yu(e,t,a)}else if(st||Es(e,t,a,!1),p=(a&e.childLanes)!==0,st||p){if(p=Le,p!==null&&(r=a&-a,r=(r&42)!==0?1:Fe(r),r=(r&(p.suspendedLanes|a))!==0?0:r,r!==0&&r!==x.retryLane))throw x.retryLane=r,Sa(e,r),zt(p,e,r),lg;b.data==="$?"||lc(),t=Yu(e,t,a)}else b.data==="$?"?(t.flags|=192,t.child=e.child,t=null):(e=x.treeContext,Ve=nn(b.nextSibling),_t=t,Oe=!0,Vi=null,cn=!1,e!==null&&(Gt[$t++]=Nn,Gt[$t++]=Un,Gt[$t++]=ji,Nn=e.id,Un=e.overflow,ji=t),t=Qu(t,r.children),t.flags|=4096);return t}return l?(ui(),l=r.fallback,b=t.mode,x=e.child,N=x.sibling,r=Dn(x,{mode:"hidden",children:r.children}),r.subtreeFlags=x.subtreeFlags&65011712,N!==null?l=Dn(N,l):(l=Bi(l,b,a,null),l.flags|=2),l.return=t,r.return=t,r.sibling=l,t.child=r,r=l,l=t.child,b=e.child.memoizedState,b===null?b=Pu(a):(x=b.cachePool,x!==null?(N=et._currentValue,x=x.parent!==N?{parent:N,pool:N}:x):x=ih(),b={baseLanes:b.baseLanes|a,cachePool:x}),l.memoizedState=b,l.childLanes=Vu(e,p,a),t.memoizedState=ju,r):(li(t),a=e.child,e=a.sibling,a=Dn(a,{mode:"visible",children:r.children}),a.return=t,a.sibling=null,e!==null&&(p=t.deletions,p===null?(t.deletions=[e],t.flags|=16):p.push(e)),t.child=a,t.memoizedState=null,a)}function Qu(e,t){return t=mo({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function mo(e,t){return e=Mt(22,e,null,t),e.lanes=0,e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},e}function Yu(e,t,a){return Da(t,e.child,null,a),e=Qu(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function vg(e,t,a){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),lu(e.return,t,a)}function Gu(e,t,a,r,l){var c=e.memoizedState;c===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:a,tailMode:l}:(c.isBackwards=t,c.rendering=null,c.renderingStartTime=0,c.last=r,c.tail=a,c.tailMode=l)}function bg(e,t,a){var r=t.pendingProps,l=r.revealOrder,c=r.tail;if(ft(e,t,r.children,a),r=tt.current,(r&2)!==0)r=r&1|2,t.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&vg(e,a,t);else if(e.tag===19)vg(e,a,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}switch(B(tt,r),l){case"forwards":for(a=t.child,l=null;a!==null;)e=a.alternate,e!==null&&co(e)===null&&(l=a),a=a.sibling;a=l,a===null?(l=t.child,t.child=null):(l=a.sibling,a.sibling=null),Gu(t,!1,l,a,c);break;case"backwards":for(a=null,l=t.child,t.child=null;l!==null;){if(e=l.alternate,e!==null&&co(e)===null){t.child=l;break}e=l.sibling,l.sibling=a,a=l,l=e}Gu(t,!0,a,null,c);break;case"together":Gu(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Bn(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),gi|=t.lanes,(a&t.childLanes)===0)if(e!==null){if(Es(e,t,a,!1),(a&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(o(153));if(t.child!==null){for(e=t.child,a=Dn(e,e.pendingProps),t.child=a,a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=Dn(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function $u(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Xr(e)))}function e0(e,t,a){switch(t.tag){case 3:le(t,t.stateNode.containerInfo),ii(t,et,e.memoizedState.cache),_s();break;case 27:case 5:vt(t);break;case 4:le(t,t.stateNode.containerInfo);break;case 10:ii(t,t.type,t.memoizedProps.value);break;case 13:var r=t.memoizedState;if(r!==null)return r.dehydrated!==null?(li(t),t.flags|=128,null):(a&t.child.childLanes)!==0?yg(e,t,a):(li(t),e=Bn(e,t,a),e!==null?e.sibling:null);li(t);break;case 19:var l=(e.flags&128)!==0;if(r=(a&t.childLanes)!==0,r||(Es(e,t,a,!1),r=(a&t.childLanes)!==0),l){if(r)return bg(e,t,a);t.flags|=128}if(l=t.memoizedState,l!==null&&(l.rendering=null,l.tail=null,l.lastEffect=null),B(tt,tt.current),r)break;return null;case 22:case 23:return t.lanes=0,dg(e,t,a);case 24:ii(t,et,e.memoizedState.cache)}return Bn(e,t,a)}function wg(e,t,a){if(e!==null)if(e.memoizedProps!==t.pendingProps)st=!0;else{if(!$u(e,a)&&(t.flags&128)===0)return st=!1,e0(e,t,a);st=(e.flags&131072)!==0}else st=!1,Oe&&(t.flags&1048576)!==0&&Kd(t,Ir,t.index);switch(t.lanes=0,t.tag){case 16:e:{e=t.pendingProps;var r=t.elementType,l=r._init;if(r=l(r._payload),t.type=r,typeof r=="function")tu(r)?(e=Xi(r,e),t.tag=1,t=mg(null,t,r,e,a)):(t.tag=0,t=Bu(null,t,r,e,a));else{if(r!=null){if(l=r.$$typeof,l===F){t.tag=11,t=ug(null,t,r,e,a);break e}else if(l===Z){t.tag=14,t=cg(null,t,r,e,a);break e}}throw t=we(r)||r,Error(o(306,t,""))}}return t;case 0:return Bu(e,t,t.type,t.pendingProps,a);case 1:return r=t.type,l=Xi(r,t.pendingProps),mg(e,t,r,l,a);case 3:e:{if(le(t,t.stateNode.containerInfo),e===null)throw Error(o(387));r=t.pendingProps;var c=t.memoizedState;l=c.element,mu(e,t),Ms(t,r,null,a);var p=t.memoizedState;if(r=p.cache,ii(t,et,r),r!==c.cache&&uu(t,[et],a,!0),ks(),r=p.element,c.isDehydrated)if(c={element:r,isDehydrated:!1,cache:p.cache},t.updateQueue.baseState=c,t.memoizedState=c,t.flags&256){t=pg(e,t,r,a);break e}else if(r!==l){l=Qt(Error(o(424)),t),xs(l),t=pg(e,t,r,a);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(Ve=nn(e.firstChild),_t=t,Oe=!0,Vi=null,cn=!0,a=Jh(t,null,r,a),t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if(_s(),r===l){t=Bn(e,t,a);break e}ft(e,t,r,a)}t=t.child}return t;case 26:return go(e,t),e===null?(a=Em(t.type,null,t.pendingProps,null))?t.memoizedState=a:Oe||(a=t.type,e=t.pendingProps,r=Oo(se.current).createElement(a),r[$e]=t,r[ze]=e,ht(r,a,e),at(r),t.stateNode=r):t.memoizedState=Em(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return vt(t),e===null&&Oe&&(r=t.stateNode=Sm(t.type,t.pendingProps,se.current),_t=t,cn=!0,l=Ve,vi(t.type)?(Rc=l,Ve=nn(r.firstChild)):Ve=l),ft(e,t,t.pendingProps.children,a),go(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Oe&&((l=r=Ve)&&(r=C0(r,t.type,t.pendingProps,cn),r!==null?(t.stateNode=r,_t=t,Ve=nn(r.firstChild),cn=!1,l=!0):l=!1),l||Qi(t)),vt(t),l=t.type,c=t.pendingProps,p=e!==null?e.memoizedProps:null,r=c.children,_c(l,c)?r=null:p!==null&&_c(l,p)&&(t.flags|=32),t.memoizedState!==null&&(l=Su(e,t,$b,null,null,a),Ws._currentValue=l),go(e,t),ft(e,t,r,a),t.child;case 6:return e===null&&Oe&&((e=a=Ve)&&(a=O0(a,t.pendingProps,cn),a!==null?(t.stateNode=a,_t=t,Ve=null,e=!0):e=!1),e||Qi(t)),null;case 13:return yg(e,t,a);case 4:return le(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Da(t,null,r,a):ft(e,t,r,a),t.child;case 11:return ug(e,t,t.type,t.pendingProps,a);case 7:return ft(e,t,t.pendingProps,a),t.child;case 8:return ft(e,t,t.pendingProps.children,a),t.child;case 12:return ft(e,t,t.pendingProps.children,a),t.child;case 10:return r=t.pendingProps,ii(t,t.type,r.value),ft(e,t,r.children,a),t.child;case 9:return l=t.type._context,r=t.pendingProps.children,Gi(t),l=mt(l),r=r(l),t.flags|=1,ft(e,t,r,a),t.child;case 14:return cg(e,t,t.type,t.pendingProps,a);case 15:return fg(e,t,t.type,t.pendingProps,a);case 19:return bg(e,t,a);case 31:return r=t.pendingProps,a=t.mode,r={mode:r.mode,children:r.children},e===null?(a=mo(r,a),a.ref=t.ref,t.child=a,a.return=t,t=a):(a=Dn(e.child,r),a.ref=t.ref,t.child=a,a.return=t,t=a),t;case 22:return dg(e,t,a);case 24:return Gi(t),r=mt(et),e===null?(l=du(),l===null&&(l=Le,c=cu(),l.pooledCache=c,c.refCount++,c!==null&&(l.pooledCacheLanes|=a),l=c),t.memoizedState={parent:r,cache:l},gu(t),ii(t,et,l)):((e.lanes&a)!==0&&(mu(e,t),Ms(t,null,null,a),ks()),l=e.memoizedState,c=t.memoizedState,l.parent!==r?(l={parent:r,cache:r},t.memoizedState=l,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=l),ii(t,et,r)):(r=c.cache,ii(t,et,r),r!==l.cache&&uu(t,[et],a,!0))),ft(e,t,t.pendingProps.children,a),t.child;case 29:throw t.pendingProps}throw Error(o(156,t.tag))}function jn(e){e.flags|=4}function Sg(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Om(t)){if(t=It.current,t!==null&&((Ae&4194048)===Ae?fn!==null:(Ae&62914560)!==Ae&&(Ae&536870912)===0||t!==fn))throw Cs=hu,ah;e.flags|=8192}}function po(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Or():536870912,e.lanes|=t,za|=t)}function Hs(e,t){if(!Oe)switch(e.tailMode){case"hidden":t=e.tail;for(var a=null;t!==null;)t.alternate!==null&&(a=t),t=t.sibling;a===null?e.tail=null:a.sibling=null;break;case"collapsed":a=e.tail;for(var r=null;a!==null;)a.alternate!==null&&(r=a),a=a.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Be(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=0,r=0;if(t)for(var l=e.child;l!==null;)a|=l.lanes|l.childLanes,r|=l.subtreeFlags&65011712,r|=l.flags&65011712,l.return=e,l=l.sibling;else for(l=e.child;l!==null;)a|=l.lanes|l.childLanes,r|=l.subtreeFlags,r|=l.flags,l.return=e,l=l.sibling;return e.subtreeFlags|=r,e.childLanes=a,t}function t0(e,t,a){var r=t.pendingProps;switch(su(t),t.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Be(t),null;case 1:return Be(t),null;case 3:return a=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),zn(et),Pe(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(Ss(t)?jn(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Wd())),Be(t),null;case 26:return a=t.memoizedState,e===null?(jn(t),a!==null?(Be(t),Sg(t,a)):(Be(t),t.flags&=-16777217)):a?a!==e.memoizedState?(jn(t),Be(t),Sg(t,a)):(Be(t),t.flags&=-16777217):(e.memoizedProps!==r&&jn(t),Be(t),t.flags&=-16777217),null;case 27:bt(t),a=se.current;var l=t.type;if(e!==null&&t.stateNode!=null)e.memoizedProps!==r&&jn(t);else{if(!r){if(t.stateNode===null)throw Error(o(166));return Be(t),null}e=J.current,Ss(t)?Zd(t):(e=Sm(l,r,a),t.stateNode=e,jn(t))}return Be(t),null;case 5:if(bt(t),a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&jn(t);else{if(!r){if(t.stateNode===null)throw Error(o(166));return Be(t),null}if(e=J.current,Ss(t))Zd(t);else{switch(l=Oo(se.current),e){case 1:e=l.createElementNS("http://www.w3.org/2000/svg",a);break;case 2:e=l.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;default:switch(a){case"svg":e=l.createElementNS("http://www.w3.org/2000/svg",a);break;case"math":e=l.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;case"script":e=l.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild);break;case"select":e=typeof r.is=="string"?l.createElement("select",{is:r.is}):l.createElement("select"),r.multiple?e.multiple=!0:r.size&&(e.size=r.size);break;default:e=typeof r.is=="string"?l.createElement(a,{is:r.is}):l.createElement(a)}}e[$e]=t,e[ze]=r;e:for(l=t.child;l!==null;){if(l.tag===5||l.tag===6)e.appendChild(l.stateNode);else if(l.tag!==4&&l.tag!==27&&l.child!==null){l.child.return=l,l=l.child;continue}if(l===t)break e;for(;l.sibling===null;){if(l.return===null||l.return===t)break e;l=l.return}l.sibling.return=l.return,l=l.sibling}t.stateNode=e;e:switch(ht(e,a,r),a){case"button":case"input":case"select":case"textarea":e=!!r.autoFocus;break e;case"img":e=!0;break e;default:e=!1}e&&jn(t)}}return Be(t),t.flags&=-16777217,null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&jn(t);else{if(typeof r!="string"&&t.stateNode===null)throw Error(o(166));if(e=se.current,Ss(t)){if(e=t.stateNode,a=t.memoizedProps,r=null,l=_t,l!==null)switch(l.tag){case 27:case 5:r=l.memoizedProps}e[$e]=t,e=!!(e.nodeValue===a||r!==null&&r.suppressHydrationWarning===!0||gm(e.nodeValue,a)),e||Qi(t)}else e=Oo(e).createTextNode(r),e[$e]=t,t.stateNode=e}return Be(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(l=Ss(t),r!==null&&r.dehydrated!==null){if(e===null){if(!l)throw Error(o(318));if(l=t.memoizedState,l=l!==null?l.dehydrated:null,!l)throw Error(o(317));l[$e]=t}else _s(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Be(t),l=!1}else l=Wd(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),l=!0;if(!l)return t.flags&256?(Hn(t),t):(Hn(t),null)}if(Hn(t),(t.flags&128)!==0)return t.lanes=a,t;if(a=r!==null,e=e!==null&&e.memoizedState!==null,a){r=t.child,l=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(l=r.alternate.memoizedState.cachePool.pool);var c=null;r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(c=r.memoizedState.cachePool.pool),c!==l&&(r.flags|=2048)}return a!==e&&a&&(t.child.flags|=8192),po(t,t.updateQueue),Be(t),null;case 4:return Pe(),e===null&&yc(t.stateNode.containerInfo),Be(t),null;case 10:return zn(t.type),Be(t),null;case 19:if(W(tt),l=t.memoizedState,l===null)return Be(t),null;if(r=(t.flags&128)!==0,c=l.rendering,c===null)if(r)Hs(l,!1);else{if(Qe!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(c=co(e),c!==null){for(t.flags|=128,Hs(l,!1),e=c.updateQueue,t.updateQueue=e,po(t,e),t.subtreeFlags=0,e=a,a=t.child;a!==null;)Fd(a,e),a=a.sibling;return B(tt,tt.current&1|2),t.child}e=e.sibling}l.tail!==null&&gt()>bo&&(t.flags|=128,r=!0,Hs(l,!1),t.lanes=4194304)}else{if(!r)if(e=co(c),e!==null){if(t.flags|=128,r=!0,e=e.updateQueue,t.updateQueue=e,po(t,e),Hs(l,!0),l.tail===null&&l.tailMode==="hidden"&&!c.alternate&&!Oe)return Be(t),null}else 2*gt()-l.renderingStartTime>bo&&a!==536870912&&(t.flags|=128,r=!0,Hs(l,!1),t.lanes=4194304);l.isBackwards?(c.sibling=t.child,t.child=c):(e=l.last,e!==null?e.sibling=c:t.child=c,l.last=c)}return l.tail!==null?(t=l.tail,l.rendering=t,l.tail=t.sibling,l.renderingStartTime=gt(),t.sibling=null,e=tt.current,B(tt,r?e&1|2:e&1),t):(Be(t),null);case 22:case 23:return Hn(t),bu(),r=t.memoizedState!==null,e!==null?e.memoizedState!==null!==r&&(t.flags|=8192):r&&(t.flags|=8192),r?(a&536870912)!==0&&(t.flags&128)===0&&(Be(t),t.subtreeFlags&6&&(t.flags|=8192)):Be(t),a=t.updateQueue,a!==null&&po(t,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==a&&(t.flags|=2048),e!==null&&W($i),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),zn(et),Be(t),null;case 25:return null;case 30:return null}throw Error(o(156,t.tag))}function n0(e,t){switch(su(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return zn(et),Pe(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return bt(t),null;case 13:if(Hn(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(o(340));_s()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return W(tt),null;case 4:return Pe(),null;case 10:return zn(t.type),null;case 22:case 23:return Hn(t),bu(),e!==null&&W($i),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return zn(et),null;case 25:return null;default:return null}}function _g(e,t){switch(su(t),t.tag){case 3:zn(et),Pe();break;case 26:case 27:case 5:bt(t);break;case 4:Pe();break;case 13:Hn(t);break;case 19:W(tt);break;case 10:zn(t.type);break;case 22:case 23:Hn(t),bu(),e!==null&&W($i);break;case 24:zn(et)}}function Bs(e,t){try{var a=t.updateQueue,r=a!==null?a.lastEffect:null;if(r!==null){var l=r.next;a=l;do{if((a.tag&e)===e){r=void 0;var c=a.create,p=a.inst;r=c(),p.destroy=r}a=a.next}while(a!==l)}}catch(b){qe(t,t.return,b)}}function ci(e,t,a){try{var r=t.updateQueue,l=r!==null?r.lastEffect:null;if(l!==null){var c=l.next;r=c;do{if((r.tag&e)===e){var p=r.inst,b=p.destroy;if(b!==void 0){p.destroy=void 0,l=t;var x=a,N=b;try{N()}catch(P){qe(l,x,P)}}}r=r.next}while(r!==c)}}catch(P){qe(t,t.return,P)}}function xg(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;try{ch(t,a)}catch(r){qe(e,e.return,r)}}}function Eg(e,t,a){a.props=Xi(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(r){qe(e,t,r)}}function js(e,t){try{var a=e.ref;if(a!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:r=e.stateNode;break;default:r=e.stateNode}typeof a=="function"?e.refCleanup=a(r):a.current=r}}catch(l){qe(e,t,l)}}function dn(e,t){var a=e.ref,r=e.refCleanup;if(a!==null)if(typeof r=="function")try{r()}catch(l){qe(e,t,l)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(l){qe(e,t,l)}else a.current=null}function Tg(e){var t=e.type,a=e.memoizedProps,r=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":a.autoFocus&&r.focus();break e;case"img":a.src?r.src=a.src:a.srcSet&&(r.srcset=a.srcSet)}}catch(l){qe(e,e.return,l)}}function Iu(e,t,a){try{var r=e.stateNode;x0(r,e.type,a,t),r[ze]=t}catch(l){qe(e,e.return,l)}}function Rg(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&vi(e.type)||e.tag===4}function Xu(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Rg(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&vi(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Fu(e,t,a){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(e,t):(t=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,t.appendChild(e),a=a._reactRootContainer,a!=null||t.onclick!==null||(t.onclick=Co));else if(r!==4&&(r===27&&vi(e.type)&&(a=e.stateNode,t=null),e=e.child,e!==null))for(Fu(e,t,a),e=e.sibling;e!==null;)Fu(e,t,a),e=e.sibling}function yo(e,t,a){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?a.insertBefore(e,t):a.appendChild(e);else if(r!==4&&(r===27&&vi(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(yo(e,t,a),e=e.sibling;e!==null;)yo(e,t,a),e=e.sibling}function Ag(e){var t=e.stateNode,a=e.memoizedProps;try{for(var r=e.type,l=t.attributes;l.length;)t.removeAttributeNode(l[0]);ht(t,r,a),t[$e]=e,t[ze]=a}catch(c){qe(e,e.return,c)}}var Pn=!1,Xe=!1,Ku=!1,Cg=typeof WeakSet=="function"?WeakSet:Set,rt=null;function i0(e,t){if(e=e.containerInfo,wc=qo,e=Bd(e),Xl(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var r=a.getSelection&&a.getSelection();if(r&&r.rangeCount!==0){a=r.anchorNode;var l=r.anchorOffset,c=r.focusNode;r=r.focusOffset;try{a.nodeType,c.nodeType}catch{a=null;break e}var p=0,b=-1,x=-1,N=0,P=0,G=e,U=null;t:for(;;){for(var q;G!==a||l!==0&&G.nodeType!==3||(b=p+l),G!==c||r!==0&&G.nodeType!==3||(x=p+r),G.nodeType===3&&(p+=G.nodeValue.length),(q=G.firstChild)!==null;)U=G,G=q;for(;;){if(G===e)break t;if(U===a&&++N===l&&(b=p),U===c&&++P===r&&(x=p),(q=G.nextSibling)!==null)break;G=U,U=G.parentNode}G=q}a=b===-1||x===-1?null:{start:b,end:x}}else a=null}a=a||{start:0,end:0}}else a=null;for(Sc={focusedElem:e,selectionRange:a},qo=!1,rt=t;rt!==null;)if(t=rt,e=t.child,(t.subtreeFlags&1024)!==0&&e!==null)e.return=t,rt=e;else for(;rt!==null;){switch(t=rt,c=t.alternate,e=t.flags,t.tag){case 0:break;case 11:case 15:break;case 1:if((e&1024)!==0&&c!==null){e=void 0,a=t,l=c.memoizedProps,c=c.memoizedState,r=a.stateNode;try{var de=Xi(a.type,l,a.elementType===a.type);e=r.getSnapshotBeforeUpdate(de,c),r.__reactInternalSnapshotBeforeUpdate=e}catch(ce){qe(a,a.return,ce)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,a=e.nodeType,a===9)Ec(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Ec(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(o(163))}if(e=t.sibling,e!==null){e.return=t.return,rt=e;break}rt=t.return}}function Og(e,t,a){var r=a.flags;switch(a.tag){case 0:case 11:case 15:fi(e,a),r&4&&Bs(5,a);break;case 1:if(fi(e,a),r&4)if(e=a.stateNode,t===null)try{e.componentDidMount()}catch(p){qe(a,a.return,p)}else{var l=Xi(a.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(l,t,e.__reactInternalSnapshotBeforeUpdate)}catch(p){qe(a,a.return,p)}}r&64&&xg(a),r&512&&js(a,a.return);break;case 3:if(fi(e,a),r&64&&(e=a.updateQueue,e!==null)){if(t=null,a.child!==null)switch(a.child.tag){case 27:case 5:t=a.child.stateNode;break;case 1:t=a.child.stateNode}try{ch(e,t)}catch(p){qe(a,a.return,p)}}break;case 27:t===null&&r&4&&Ag(a);case 26:case 5:fi(e,a),t===null&&r&4&&Tg(a),r&512&&js(a,a.return);break;case 12:fi(e,a);break;case 13:fi(e,a),r&4&&Dg(e,a),r&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=d0.bind(null,a),k0(e,a))));break;case 22:if(r=a.memoizedState!==null||Pn,!r){t=t!==null&&t.memoizedState!==null||Xe,l=Pn;var c=Xe;Pn=r,(Xe=t)&&!c?di(e,a,(a.subtreeFlags&8772)!==0):fi(e,a),Pn=l,Xe=c}break;case 30:break;default:fi(e,a)}}function kg(e){var t=e.alternate;t!==null&&(e.alternate=null,kg(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Ol(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var He=null,Rt=!1;function Vn(e,t,a){for(a=a.child;a!==null;)Mg(e,t,a),a=a.sibling}function Mg(e,t,a){if(St&&typeof St.onCommitFiberUnmount=="function")try{St.onCommitFiberUnmount(ln,a)}catch{}switch(a.tag){case 26:Xe||dn(a,t),Vn(e,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:Xe||dn(a,t);var r=He,l=Rt;vi(a.type)&&(He=a.stateNode,Rt=!1),Vn(e,t,a),Fs(a.stateNode),He=r,Rt=l;break;case 5:Xe||dn(a,t);case 6:if(r=He,l=Rt,He=null,Vn(e,t,a),He=r,Rt=l,He!==null)if(Rt)try{(He.nodeType===9?He.body:He.nodeName==="HTML"?He.ownerDocument.body:He).removeChild(a.stateNode)}catch(c){qe(a,t,c)}else try{He.removeChild(a.stateNode)}catch(c){qe(a,t,c)}break;case 18:He!==null&&(Rt?(e=He,bm(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),ir(e)):bm(He,a.stateNode));break;case 4:r=He,l=Rt,He=a.stateNode.containerInfo,Rt=!0,Vn(e,t,a),He=r,Rt=l;break;case 0:case 11:case 14:case 15:Xe||ci(2,a,t),Xe||ci(4,a,t),Vn(e,t,a);break;case 1:Xe||(dn(a,t),r=a.stateNode,typeof r.componentWillUnmount=="function"&&Eg(a,t,r)),Vn(e,t,a);break;case 21:Vn(e,t,a);break;case 22:Xe=(r=Xe)||a.memoizedState!==null,Vn(e,t,a),Xe=r;break;default:Vn(e,t,a)}}function Dg(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{ir(e)}catch(a){qe(t,t.return,a)}}function a0(e){switch(e.tag){case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Cg),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Cg),t;default:throw Error(o(435,e.tag))}}function Zu(e,t){var a=a0(e);t.forEach(function(r){var l=h0.bind(null,e,r);a.has(r)||(a.add(r),r.then(l,l))})}function Dt(e,t){var a=t.deletions;if(a!==null)for(var r=0;r<a.length;r++){var l=a[r],c=e,p=t,b=p;e:for(;b!==null;){switch(b.tag){case 27:if(vi(b.type)){He=b.stateNode,Rt=!1;break e}break;case 5:He=b.stateNode,Rt=!1;break e;case 3:case 4:He=b.stateNode.containerInfo,Rt=!0;break e}b=b.return}if(He===null)throw Error(o(160));Mg(c,p,l),He=null,Rt=!1,c=l.alternate,c!==null&&(c.return=null),l.return=null}if(t.subtreeFlags&13878)for(t=t.child;t!==null;)Ng(t,e),t=t.sibling}var tn=null;function Ng(e,t){var a=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Dt(t,e),Nt(e),r&4&&(ci(3,e,e.return),Bs(3,e),ci(5,e,e.return));break;case 1:Dt(t,e),Nt(e),r&512&&(Xe||a===null||dn(a,a.return)),r&64&&Pn&&(e=e.updateQueue,e!==null&&(r=e.callbacks,r!==null&&(a=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=a===null?r:a.concat(r))));break;case 26:var l=tn;if(Dt(t,e),Nt(e),r&512&&(Xe||a===null||dn(a,a.return)),r&4){var c=a!==null?a.memoizedState:null;if(r=e.memoizedState,a===null)if(r===null)if(e.stateNode===null){e:{r=e.type,a=e.memoizedProps,l=l.ownerDocument||l;t:switch(r){case"title":c=l.getElementsByTagName("title")[0],(!c||c[cs]||c[$e]||c.namespaceURI==="http://www.w3.org/2000/svg"||c.hasAttribute("itemprop"))&&(c=l.createElement(r),l.head.insertBefore(c,l.querySelector("head > title"))),ht(c,r,a),c[$e]=e,at(c),r=c;break e;case"link":var p=Am("link","href",l).get(r+(a.href||""));if(p){for(var b=0;b<p.length;b++)if(c=p[b],c.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&c.getAttribute("rel")===(a.rel==null?null:a.rel)&&c.getAttribute("title")===(a.title==null?null:a.title)&&
vendor: 4,668 bytes, line 48
48c.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){p.splice(b,1);break t}}c=l.createElement(r),ht(c,r,a),l.head.appendChild(c);break;case"meta":if(p=Am("meta","content",l).get(r+(a.content||""))){for(b=0;b<p.length;b++)if(c=p[b],c.getAttribute("content")===(a.content==null?null:""+a.content)&&c.getAttribute("name")===(a.name==null?null:a.name)&&c.getAttribute("property")===(a.property==null?null:a.property)&&c.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&c.getAttribute("charset")===(a.charSet==null?null:a.charSet)){p.splice(b,1);break t}}c=l.createElement(r),ht(c,r,a),l.head.appendChild(c);break;default:throw Error(o(468,r))}c[$e]=e,at(c),r=c}e.stateNode=r}else Cm(l,e.type,e.stateNode);else e.stateNode=Rm(l,r,e.memoizedProps);else c!==r?(c===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):c.count--,r===null?Cm(l,e.type,e.stateNode):Rm(l,r,e.memoizedProps)):r===null&&e.stateNode!==null&&Iu(e,e.memoizedProps,a.memoizedProps)}break;case 27:Dt(t,e),Nt(e),r&512&&(Xe||a===null||dn(a,a.return)),a!==null&&r&4&&Iu(e,e.memoizedProps,a.memoizedProps);break;case 5:if(Dt(t,e),Nt(e),r&512&&(Xe||a===null||dn(a,a.return)),e.flags&32){l=e.stateNode;try{ga(l,"")}catch(q){qe(e,e.return,q)}}r&4&&e.stateNode!=null&&(l=e.memoizedProps,Iu(e,l,a!==null?a.memoizedProps:l)),r&1024&&(Ku=!0);break;case 6:if(Dt(t,e),Nt(e),r&4){if(e.stateNode===null)throw Error(o(162));r=e.memoizedProps,a=e.stateNode;try{a.nodeValue=r}catch(q){qe(e,e.return,q)}}break;case 3:if(Do=null,l=tn,tn=ko(t.containerInfo),Dt(t,e),tn=l,Nt(e),r&4&&a!==null&&a.memoizedState.isDehydrated)try{ir(t.containerInfo)}catch(q){qe(e,e.return,q)}Ku&&(Ku=!1,Ug(e));break;case 4:r=tn,tn=ko(e.stateNode.containerInfo),Dt(t,e),Nt(e),tn=r;break;case 12:Dt(t,e),Nt(e);break;case 13:Dt(t,e),Nt(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(ic=gt()),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,Zu(e,r)));break;case 22:l=e.memoizedState!==null;var x=a!==null&&a.memoizedState!==null,N=Pn,P=Xe;if(Pn=N||l,Xe=P||x,Dt(t,e),Xe=P,Pn=N,Nt(e),r&8192)e:for(t=e.stateNode,t._visibility=l?t._visibility&-2:t._visibility|1,l&&(a===null||x||Pn||Xe||Fi(e)),a=null,t=e;;){if(t.tag===5||t.tag===26){if(a===null){x=a=t;try{if(c=x.stateNode,l)p=c.style,typeof p.setProperty=="function"?p.setProperty("display","none","important"):p.display="none";else{b=x.stateNode;var G=x.memoizedProps.style,U=G!=null&&G.hasOwnProperty("display")?G.display:null;b.style.display=U==null||typeof U=="boolean"?"":(""+U).trim()}}catch(q){qe(x,x.return,q)}}}else if(t.tag===6){if(a===null){x=t;try{x.stateNode.nodeValue=l?"":x.memoizedProps}catch(q){qe(x,x.return,q)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;a===t&&(a=null),t=t.return}a===t&&(a=null),t.sibling.return=t.return,t=t.sibling}r&4&&(r=e.updateQueue,r!==null&&(a=r.retryQueue,a!==null&&(r.retryQueue=null,Zu(e,a))));break;case 19:Dt(t,e),Nt(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,Zu(e,r)));break;case 30:break;case 21:break;default:Dt(t,e),Nt(e)}}function Nt(e){var t=e.flags;if(t&2){try{for(var a,r=e.return;r!==null;){if(Rg(r)){a=r;break}r=r.return}if(a==null)throw Error(o(160));switch(a.tag){case 27:var l=a.stateNode,c=Xu(e);yo(e,c,l);break;case 5:var p=a.stateNode;a.flags&32&&(ga(p,""),a.flags&=-33);var b=Xu(e);yo(e,b,p);break;case 3:case 4:var x=a.stateNode.containerInfo,N=Xu(e);Fu(e,N,x);break;default:throw Error(o(161))}}catch(P){qe(e,e.return,P)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Ug(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Ug(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function fi(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Og(e,t.alternate,t),t=t.sibling}function Fi(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:ci(4,t,t.return),Fi(t);break;case 1:dn(t,t.return);var a=t.stateNode;typeof a.componentWillUnmount=="function"&&Eg(t,t.return,a),Fi(t);break;case 27:Fs(t.stateNode);case 26:case 5:dn(t,t.return),Fi(t);break;case 22:t.memoizedState===null&&Fi(t);break;case 30:Fi(t);break;default:Fi(t)}e=e.sibling}}function di(e,t,a){for(a=a&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var r=t.alternate,l=e,c=t,p=c.flags;switch(c.tag){case 0:case 11:case 15:di(l,c,a),Bs(4,c);break;case 1:if(di(l,c,a),r=c,l=r.stateNode,typeof l.componentDidMount=="function")try{l.componentDidMount()}catch(N){qe(r,r.return,N)}if(r=c,l=r.updateQueue,l!==null){var b=r.stateNode;try{var x=l.shared.hiddenCallbacks;
vendor: 17,302 bytes, line 48
48if(x!==null)for(l.shared.hiddenCallbacks=null,l=0;l<x.length;l++)uh(x[l],b)}catch(N){qe(r,r.return,N)}}a&&p&64&&xg(c),js(c,c.return);break;case 27:Ag(c);case 26:case 5:di(l,c,a),a&&r===null&&p&4&&Tg(c),js(c,c.return);break;case 12:di(l,c,a);break;case 13:di(l,c,a),a&&p&4&&Dg(l,c);break;case 22:c.memoizedState===null&&di(l,c,a),js(c,c.return);break;case 30:break;default:di(l,c,a)}t=t.sibling}}function Ju(e,t){var a=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==a&&(e!=null&&e.refCount++,a!=null&&Ts(a))}function Wu(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Ts(e))}function hn(e,t,a,r){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)qg(e,t,a,r),t=t.sibling}function qg(e,t,a,r){var l=t.flags;switch(t.tag){case 0:case 11:case 15:hn(e,t,a,r),l&2048&&Bs(9,t);break;case 1:hn(e,t,a,r);break;case 3:hn(e,t,a,r),l&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Ts(e)));break;case 12:if(l&2048){hn(e,t,a,r),e=t.stateNode;try{var c=t.memoizedProps,p=c.id,b=c.onPostCommit;typeof b=="function"&&b(p,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(x){qe(t,t.return,x)}}else hn(e,t,a,r);break;case 13:hn(e,t,a,r);break;case 23:break;case 22:c=t.stateNode,p=t.alternate,t.memoizedState!==null?c._visibility&2?hn(e,t,a,r):Ps(e,t):c._visibility&2?hn(e,t,a,r):(c._visibility|=2,Na(e,t,a,r,(t.subtreeFlags&10256)!==0)),l&2048&&Ju(p,t);break;case 24:hn(e,t,a,r),l&2048&&Wu(t.alternate,t);break;default:hn(e,t,a,r)}}function Na(e,t,a,r,l){for(l=l&&(t.subtreeFlags&10256)!==0,t=t.child;t!==null;){var c=e,p=t,b=a,x=r,N=p.flags;switch(p.tag){case 0:case 11:case 15:Na(c,p,b,x,l),Bs(8,p);break;case 23:break;case 22:var P=p.stateNode;p.memoizedState!==null?P._visibility&2?Na(c,p,b,x,l):Ps(c,p):(P._visibility|=2,Na(c,p,b,x,l)),l&&N&2048&&Ju(p.alternate,p);break;case 24:Na(c,p,b,x,l),l&&N&2048&&Wu(p.alternate,p);break;default:Na(c,p,b,x,l)}t=t.sibling}}function Ps(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var a=e,r=t,l=r.flags;switch(r.tag){case 22:Ps(a,r),l&2048&&Ju(r.alternate,r);break;case 24:Ps(a,r),l&2048&&Wu(r.alternate,r);break;default:Ps(a,r)}t=t.sibling}}var Vs=8192;function Ua(e){if(e.subtreeFlags&Vs)for(e=e.child;e!==null;)zg(e),e=e.sibling}function zg(e){switch(e.tag){case 26:Ua(e),e.flags&Vs&&e.memoizedState!==null&&Q0(tn,e.memoizedState,e.memoizedProps);break;case 5:Ua(e);break;case 3:case 4:var t=tn;tn=ko(e.stateNode.containerInfo),Ua(e),tn=t;break;case 22:e.memoizedState===null&&(t=e.alternate,t!==null&&t.memoizedState!==null?(t=Vs,Vs=16777216,Ua(e),Vs=t):Ua(e));break;default:Ua(e)}}function Lg(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Qs(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var r=t[a];rt=r,Bg(r,e)}Lg(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Hg(e),e=e.sibling}function Hg(e){switch(e.tag){case 0:case 11:case 15:Qs(e),e.flags&2048&&ci(9,e,e.return);break;case 3:Qs(e);break;case 12:Qs(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,vo(e)):Qs(e);break;default:Qs(e)}}function vo(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var r=t[a];rt=r,Bg(r,e)}Lg(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:ci(8,t,t.return),vo(t);break;case 22:a=t.stateNode,a._visibility&2&&(a._visibility&=-3,vo(t));break;default:vo(t)}e=e.sibling}}function Bg(e,t){for(;rt!==null;){var a=rt;switch(a.tag){case 0:case 11:case 15:ci(8,a,t);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var r=a.memoizedState.cachePool.pool;r!=null&&r.refCount++}break;case 24:Ts(a.memoizedState.cache)}if(r=a.child,r!==null)r.return=a,rt=r;else e:for(a=e;rt!==null;){r=rt;var l=r.sibling,c=r.return;if(kg(r),r===a){rt=null;break e}if(l!==null){l.return=c,rt=l;break e}rt=c}}}var s0={getCacheForType:function(e){var t=mt(et),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a}},r0=typeof WeakMap=="function"?WeakMap:Map,ke=0,Le=null,Ee=null,Ae=0,Me=0,Ut=null,hi=!1,qa=!1,ec=!1,Qn=0,Qe=0,gi=0,Ki=0,tc=0,Xt=0,za=0,Ys=null,At=null,nc=!1,ic=0,bo=1/0,wo=null,mi=null,dt=0,pi=null,La=null,Ha=0,ac=0,sc=null,jg=null,Gs=0,rc=null;function qt(){if((ke&2)!==0&&Ae!==0)return Ae&-Ae;if(O.T!==null){var e=Ta;return e!==0?e:hc()}return Ui()}function Pg(){Xt===0&&(Xt=(Ae&536870912)===0||Oe?Wt():536870912);var e=It.current;return e!==null&&(e.flags|=32),Xt}function zt(e,t,a){(e===Le&&(Me===2||Me===9)||e.cancelPendingCommit!==null)&&(Ba(e,0),yi(e,Ae,Xt,!1)),ti(e,a),((ke&2)===0||e!==Le)&&(e===Le&&((ke&2)===0&&(Ki|=a),Qe===4&&yi(e,Ae,Xt,!1)),gn(e))}function Vg(e,t,a){if((ke&6)!==0)throw Error(o(327));var r=!a&&(t&124)===0&&(t&e.expiredLanes)===0||Ni(e,t),l=r?u0(e,t):uc(e,t,!0),c=r;do{if(l===0){qa&&!r&&yi(e,t,0,!1);break}else{if(a=e.current.alternate,c&&!o0(a)){l=uc(e,t,!1),c=!1;continue}if(l===2){if(c=t,e.errorRecoveryDisabledLanes&c)var p=0;else p=e.pendingLanes&-536870913,p=p!==0?p:p&536870912?536870912:0;if(p!==0){t=p;e:{var b=e;l=Ys;var x=b.current.memoizedState.isDehydrated;if(x&&(Ba(b,p).flags|=256),p=uc(b,p,!1),p!==2){if(ec&&!x){b.errorRecoveryDisabledLanes|=c,Ki|=c,l=4;break e}c=At,At=l,c!==null&&(At===null?At=c:At.push.apply(At,c))}l=p}if(c=!1,l!==2)continue}}if(l===1){Ba(e,0),yi(e,t,0,!0);break}e:{switch(r=e,c=l,c){case 0:case 1:throw Error(o(345));case 4:if((t&4194048)!==t)break;case 6:yi(r,t,Xt,!hi);break e;case 2:At=null;break;case 3:case 5:break;default:throw Error(o(329))}if((t&62914560)===t&&(l=ic+300-gt(),10<l)){if(yi(r,t,Xt,!hi),Di(r,0,!0)!==0)break e;r.timeoutHandle=ym(Qg.bind(null,r,a,At,wo,nc,t,Xt,Ki,za,hi,c,2,-0,0),l);break e}Qg(r,a,At,wo,nc,t,Xt,Ki,za,hi,c,0,-0,0)}}break}while(!0);gn(e)}function Qg(e,t,a,r,l,c,p,b,x,N,P,G,U,q){if(e.timeoutHandle=-1,G=t.subtreeFlags,(G&8192||(G&16785408)===16785408)&&(Js={stylesheets:null,count:0,unsuspend:V0},zg(t),G=Y0(),G!==null)){e.cancelPendingCommit=G(Kg.bind(null,e,t,c,a,r,l,p,b,x,P,1,U,q)),yi(e,c,p,!N);return}Kg(e,t,c,a,r,l,p,b,x)}function o0(e){for(var t=e;;){var a=t.tag;if((a===0||a===11||a===15)&&t.flags&16384&&(a=t.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var r=0;r<a.length;r++){var l=a[r],c=l.getSnapshot;l=l.value;try{if(!kt(c(),l))return!1}catch{return!1}}if(a=t.child,t.subtreeFlags&16384&&a!==null)a.return=t,t=a;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function yi(e,t,a,r){t&=~tc,t&=~Ki,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var l=t;0<l;){var c=31-ut(l),p=1<<c;r[c]=-1,l&=~p}a!==0&&ye(e,a,t)}function So(){return(ke&6)===0?($s(0),!1):!0}function oc(){if(Ee!==null){if(Me===0)var e=Ee.return;else e=Ee,qn=Yi=null,Eu(e),Ma=null,zs=0,e=Ee;for(;e!==null;)_g(e.alternate,e),e=e.return;Ee=null}}function Ba(e,t){var a=e.timeoutHandle;a!==-1&&(e.timeoutHandle=-1,T0(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),oc(),Le=e,Ee=a=Dn(e.current,null),Ae=t,Me=0,Ut=null,hi=!1,qa=Ni(e,t),ec=!1,za=Xt=tc=Ki=gi=Qe=0,At=Ys=null,nc=!1,(t&8)!==0&&(t|=t&32);var r=e.entangledLanes;if(r!==0)for(e=e.entanglements,r&=t;0<r;){var l=31-ut(r),c=1<<l;t|=e[l],r&=~c}return Qn=t,Vr(),a}function Yg(e,t){Se=null,O.H=oo,t===As||t===Zr?(t=oh(),Me=3):t===ah?(t=oh(),Me=4):Me=t===lg?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Ut=t,Ee===null&&(Qe=1,ho(e,Qt(t,e.current)))}function Gg(){var e=O.H;return O.H=oo,e===null?oo:e}function $g(){var e=O.A;return O.A=s0,e}function lc(){Qe=4,hi||(Ae&4194048)!==Ae&&It.current!==null||(qa=!0),(gi&134217727)===0&&(Ki&134217727)===0||Le===null||yi(Le,Ae,Xt,!1)}function uc(e,t,a){var r=ke;ke|=2;var l=Gg(),c=$g();(Le!==e||Ae!==t)&&(wo=null,Ba(e,t)),t=!1;var p=Qe;e:do try{if(Me!==0&&Ee!==null){var b=Ee,x=Ut;switch(Me){case 8:oc(),p=6;break e;case 3:case 2:case 9:case 6:It.current===null&&(t=!0);var N=Me;if(Me=0,Ut=null,ja(e,b,x,N),a&&qa){p=0;break e}break;default:N=Me,Me=0,Ut=null,ja(e,b,x,N)}}l0(),p=Qe;break}catch(P){Yg(e,P)}while(!0);return t&&e.shellSuspendCounter++,qn=Yi=null,ke=r,O.H=l,O.A=c,Ee===null&&(Le=null,Ae=0,Vr()),p}function l0(){for(;Ee!==null;)Ig(Ee)}function u0(e,t){var a=ke;ke|=2;var r=Gg(),l=$g();Le!==e||Ae!==t?(wo=null,bo=gt()+500,Ba(e,t)):qa=Ni(e,t);e:do try{if(Me!==0&&Ee!==null){t=Ee;var c=Ut;t:switch(Me){case 1:Me=0,Ut=null,ja(e,t,c,1);break;case 2:case 9:if(sh(c)){Me=0,Ut=null,Xg(t);break}t=function(){Me!==2&&Me!==9||Le!==e||(Me=7),gn(e)},c.then(t,t);break e;case 3:Me=7;break e;case 4:Me=5;break e;case 7:sh(c)?(Me=0,Ut=null,Xg(t)):(Me=0,Ut=null,ja(e,t,c,7));break;case 5:var p=null;switch(Ee.tag){case 26:p=Ee.memoizedState;case 5:case 27:var b=Ee;if(!p||Om(p)){Me=0,Ut=null;var x=b.sibling;if(x!==null)Ee=x;else{var N=b.return;N!==null?(Ee=N,_o(N)):Ee=null}break t}}Me=0,Ut=null,ja(e,t,c,5);break;case 6:Me=0,Ut=null,ja(e,t,c,6);break;case 8:oc(),Qe=6;break e;default:throw Error(o(462))}}c0();break}catch(P){Yg(e,P)}while(!0);return qn=Yi=null,O.H=r,O.A=l,ke=a,Ee!==null?0:(Le=null,Ae=0,Vr(),Qe)}function c0(){for(;Ee!==null&&!Rl();)Ig(Ee)}function Ig(e){var t=wg(e.alternate,e,Qn);e.memoizedProps=e.pendingProps,t===null?_o(e):Ee=t}function Xg(e){var t=e,a=t.alternate;switch(t.tag){case 15:case 0:t=gg(a,t,t.pendingProps,t.type,void 0,Ae);break;case 11:t=gg(a,t,t.pendingProps,t.type.render,t.ref,Ae);break;case 5:Eu(t);default:_g(a,t),t=Ee=Fd(t,Qn),t=wg(a,t,Qn)}e.memoizedProps=e.pendingProps,t===null?_o(e):Ee=t}function ja(e,t,a,r){qn=Yi=null,Eu(t),Ma=null,zs=0;var l=t.return;try{if(Wb(e,l,t,a,Ae)){Qe=1,ho(e,Qt(a,e.current)),Ee=null;return}}catch(c){if(l!==null)throw Ee=l,c;Qe=1,ho(e,Qt(a,e.current)),Ee=null;return}t.flags&32768?(Oe||r===1?e=!0:qa||(Ae&536870912)!==0?e=!1:(hi=e=!0,(r===2||r===9||r===3||r===6)&&(r=It.current,r!==null&&r.tag===13&&(r.flags|=16384))),Fg(t,e)):_o(t)}function _o(e){var t=e;do{if((t.flags&32768)!==0){Fg(t,hi);return}e=t.return;var a=t0(t.alternate,t,Qn);if(a!==null){Ee=a;return}if(t=t.sibling,t!==null){Ee=t;return}Ee=t=e}while(t!==null);Qe===0&&(Qe=5)}function Fg(e,t){do{var a=n0(e.alternate,e);if(a!==null){a.flags&=32767,Ee=a;return}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!t&&(e=e.sibling,e!==null)){Ee=e;return}Ee=e=a}while(e!==null);Qe=6,Ee=null}function Kg(e,t,a,r,l,c,p,b,x){e.cancelPendingCommit=null;do xo();while(dt!==0);if((ke&6)!==0)throw Error(o(327));if(t!==null){if(t===e.current)throw Error(o(177));if(c=t.lanes|t.childLanes,c|=Wl,kr(e,a,c,p,b,x),e===Le&&(Ee=Le=null,Ae=0),La=t,pi=e,Ha=a,ac=c,sc=l,jg=r,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,g0(aa,function(){return tm(),null})):(e.callbackNode=null,e.callbackPriority=0),r=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||r){r=O.T,O.T=null,l=V.p,V.p=2,p=ke,ke|=4;try{i0(e,t,a)}finally{ke=p,V.p=l,O.T=r}}dt=1,Zg(),Jg(),Wg()}}function Zg(){if(dt===1){dt=0;var e=pi,t=La,a=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||a){a=O.T,O.T=null;var r=V.p;V.p=2;var l=ke;ke|=4;try{Ng(t,e);var c=Sc,p=Bd(e.containerInfo),b=c.focusedElem,x=c.selectionRange;if(p!==b&&b&&b.ownerDocument&&Hd(b.ownerDocument.documentElement,b)){if(x!==null&&Xl(b)){var N=x.start,P=x.end;if(P===void 0&&(P=N),"selectionStart"in b)b.selectionStart=N,b.selectionEnd=Math.min(P,b.value.length);else{var G=b.ownerDocument||document,U=G&&G.defaultView||window;if(U.getSelection){var q=U.getSelection(),de=b.textContent.length,ce=Math.min(x.start,de),Ue=x.end===void 0?ce:Math.min(x.end,de);!q.extend&&ce>Ue&&(p=Ue,Ue=ce,ce=p);var M=Ld(b,ce),R=Ld(b,Ue);if(M&&R&&(q.rangeCount!==1||q.anchorNode!==M.node||q.anchorOffset!==M.offset||q.focusNode!==R.node||q.focusOffset!==R.offset)){var D=G.createRange();D.setStart(M.node,M.offset),q.removeAllRanges(),ce>Ue?(q.addRange(D),q.extend(R.node,R.offset)):(D.setEnd(R.node,R.offset),q.addRange(D))}}}}for(G=[],q=b;q=q.parentNode;)q.nodeType===1&&G.push({element:q,left:q.scrollLeft,top:q.scrollTop});for(typeof b.focus=="function"&&b.focus(),b=0;b<G.length;b++){var Q=G[b];Q.element.scrollLeft=Q.left,Q.element.scrollTop=Q.top}}qo=!!wc,Sc=wc=null}finally{ke=l,V.p=r,O.T=a}}e.current=t,dt=2}}function Jg(){if(dt===2){dt=0;var e=pi,t=La,a=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||a){a=O.T,O.T=null;var r=V.p;V.p=2;var l=ke;ke|=4;try{Og(e,t.alternate,t)}finally{ke=l,V.p=r,O.T=a}}dt=3}}function Wg(){if(dt===4||dt===3){dt=0,Tr();var e=pi,t=La,a=Ha,r=jg;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?dt=5:(dt=0,La=pi=null,em(e,e.pendingLanes));var l=e.pendingLanes;if(l===0&&(mi=null),ct(a),t=t.stateNode,St&&typeof St.onCommitFiberRoot=="function")try{St.onCommitFiberRoot(ln,t,void 0,(t.current.flags&128)===128)}catch{}if(r!==null){t=O.T,l=V.p,V.p=2,O.T=null;try{for(var c=e.onRecoverableError,p=0;p<r.length;p++){var b=r[p];c(b.value,{componentStack:b.stack})}}finally{O.T=t,V.p=l}}(Ha&3)!==0&&xo(),gn(e),l=e.pendingLanes,(a&4194090)!==0&&(l&42)!==0?e===rc?Gs++:(Gs=0,rc=e):Gs=0,$s(0)}}function em(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Ts(t)))}function xo(e){return Zg(),Jg(),Wg(),tm()}function tm(){if(dt!==5)return!1;var e=pi,t=ac;ac=0;var a=ct(Ha),r=O.T,l=V.p;try{V.p=32>a?32:a,O.T=null,a=sc,sc=null;var c=pi,p=Ha;if(dt=0,La=pi=null,Ha=0,(ke&6)!==0)throw Error(o(331));var b=ke;if(ke|=4,Hg(c.current),qg(c,c.current,p,a),ke=b,$s(0,!1),St&&typeof St.onPostCommitFiberRoot=="function")try{St.onPostCommitFiberRoot(ln,c)}catch{}return!0}finally{V.p=l,O.T=r,em(e,t)}}function nm(e,t,a){t=Qt(a,t),t=Hu(e.stateNode,t,2),e=ri(e,t,2),e!==null&&(ti(e,2),gn(e))}function qe(e,t,a){if(e.tag===3)nm(e,e,a);else for(;t!==null;){if(t.tag===3){nm(t,e,a);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(mi===null||!mi.has(r))){e=Qt(a,e),a=rg(2),r=ri(t,a,2),r!==null&&(og(a,r,t,e),ti(r,2),gn(r));break}}t=t.return}}function cc(e,t,a){var r=e.pingCache;if(r===null){r=e.pingCache=new r0;var l=new Set;r.set(t,l)}else l=r.get(t),l===void 0&&(l=new Set,r.set(t,l));l.has(a)||(ec=!0,l.add(a),e=f0.bind(null,e,t,a),t.then(e,e))}function f0(e,t,a){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,Le===e&&(Ae&a)===a&&(Qe===4||Qe===3&&(Ae&62914560)===Ae&&300>gt()-ic?(ke&2)===0&&Ba(e,0):tc|=a,za===Ae&&(za=0)),gn(e)}function im(e,t){t===0&&(t=Or()),e=Sa(e,t),e!==null&&(ti(e,t),gn(e))}function d0(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),im(e,a)}function h0(e,t){var a=0;switch(e.tag){case 13:var r=e.stateNode,l=e.memoizedState;l!==null&&(a=l.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(o(314))}r!==null&&r.delete(t),im(e,a)}function g0(e,t){return on(e,t)}var Eo=null,Pa=null,fc=!1,To=!1,dc=!1,Zi=0;function gn(e){e!==Pa&&e.next===null&&(Pa===null?Eo=Pa=e:Pa=Pa.next=e),To=!0,fc||(fc=!0,p0())}function $s(e,t){if(!dc&&To){dc=!0;do for(var a=!1,r=Eo;r!==null;){if(e!==0){var l=r.pendingLanes;if(l===0)var c=0;else{var p=r.suspendedLanes,b=r.pingedLanes;c=(1<<31-ut(42|e)+1)-1,c&=l&~(p&~b),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(a=!0,om(r,c))}else c=Ae,c=Di(r,r===Le?c:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),(c&3)===0||Ni(r,c)||(a=!0,om(r,c));r=r.next}while(a);dc=!1}}function m0(){am()}function am(){To=fc=!1;var e=0;Zi!==0&&(E0()&&(e=Zi),Zi=0);for(var t=gt(),a=null,r=Eo;r!==null;){var l=r.next,c=sm(r,t);c===0?(r.next=null,a===null?Eo=l:a.next=l,l===null&&(Pa=a)):(a=r,(e!==0||(c&3)!==0)&&(To=!0)),r=l}$s(e)}function sm(e,t){for(var a=e.suspendedLanes,r=e.pingedLanes,l=e.expirationTimes,c=e.pendingLanes&-62914561;0<c;){var p=31-ut(c),b=1<<p,x=l[p];x===-1?((b&a)===0||(b&r)!==0)&&(l[p]=ls(b,t)):x<=t&&(e.expiredLanes|=b),c&=~b}if(t=Le,a=Ae,a=Di(e,e===t?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,a===0||e===t&&(Me===2||Me===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&Mi(r),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||Ni(e,a)){if(t=a&-a,t===e.callbackPriority)return t;switch(r!==null&&Mi(r),ct(a)){case 2:case 8:a=Ar;break;case 32:a=aa;break;case 268435456:a=Cn;break;default:a=aa}return r=rm.bind(null,e),a=on(a,r),e.callbackPriority=t,e.callbackNode=a,t}return r!==null&&r!==null&&Mi(r),e.callbackPriority=2,e.callbackNode=null,2}function rm(e,t){if(dt!==0&&dt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(xo()&&e.callbackNode!==a)return null;var r=Ae;return r=Di(e,e===Le?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(Vg(e,r,t),sm(e,gt()),e.callbackNode!=null&&e.callbackNode===a?rm.bind(null,e):null)}function om(e,t){if(xo())return null;Vg(e,t,!0)}function p0(){R0(function(){(ke&6)!==0?on(jt,m0):am()})}function hc(){return Zi===0&&(Zi=Wt()),Zi}function lm(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:qr(""+e)}function um(e,t){var a=t.ownerDocument.createElement("input");
vendor: 5,174 bytes, line 48
48return a.name=t.name,a.value=t.value,e.id&&a.setAttribute("form",e.id),t.parentNode.insertBefore(a,t),e=new FormData(e),a.parentNode.removeChild(a),e}function y0(e,t,a,r,l){if(t==="submit"&&a&&a.stateNode===l){var c=lm((l[ze]||null).action),p=r.submitter;p&&(t=(t=p[ze]||null)?lm(t.formAction):p.getAttribute("formAction"),t!==null&&(c=t,p=null));var b=new Br("action","action",null,r,l);e.push({event:b,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(Zi!==0){var x=p?um(l,p):new FormData(l);Nu(a,{pending:!0,data:x,method:l.method,action:c},null,x)}}else typeof c=="function"&&(b.preventDefault(),x=p?um(l,p):new FormData(l),Nu(a,{pending:!0,data:x,method:l.method,action:c},c,x))},currentTarget:l}]})}}for(var gc=0;gc<Jl.length;gc++){var mc=Jl[gc],v0=mc.toLowerCase(),b0=mc[0].toUpperCase()+mc.slice(1);en(v0,"on"+b0)}en(Vd,"onAnimationEnd"),en(Qd,"onAnimationIteration"),en(Yd,"onAnimationStart"),en("dblclick","onDoubleClick"),en("focusin","onFocus"),en("focusout","onBlur"),en(zb,"onTransitionRun"),en(Lb,"onTransitionStart"),en(Hb,"onTransitionCancel"),en(Gd,"onTransitionEnd"),fa("onMouseEnter",["mouseout","mouseover"]),fa("onMouseLeave",["mouseout","mouseover"]),fa("onPointerEnter",["pointerout","pointerover"]),fa("onPointerLeave",["pointerout","pointerover"]),qi("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),qi("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),qi("onBeforeInput",["compositionend","keypress","textInput","paste"]),qi("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),qi("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),qi("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Is="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(" "),w0=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Is));function cm(e,t){t=(t&4)!==0;for(var a=0;a<e.length;a++){var r=e[a],l=r.event;r=r.listeners;e:{var c=void 0;if(t)for(var p=r.length-1;0<=p;p--){var b=r[p],x=b.instance,N=b.currentTarget;if(b=b.listener,x!==c&&l.isPropagationStopped())break e;c=b,l.currentTarget=N;try{c(l)}catch(P){fo(P)}l.currentTarget=null,c=x}else for(p=0;p<r.length;p++){if(b=r[p],x=b.instance,N=b.currentTarget,b=b.listener,x!==c&&l.isPropagationStopped())break e;c=b,l.currentTarget=N;try{c(l)}catch(P){fo(P)}l.currentTarget=null,c=x}}}}function Te(e,t){var a=t[oa];a===void 0&&(a=t[oa]=new Set);var r=e+"__bubble";a.has(r)||(fm(t,e,2,!1),a.add(r))}function pc(e,t,a){var r=0;t&&(r|=4),fm(a,e,r,t)}var Ro="_reactListening"+Math.random().toString(36).slice(2);function yc(e){if(!e[Ro]){e[Ro]=!0,ad.forEach(function(a){a!=="selectionchange"&&(w0.has(a)||pc(a,!1,e),pc(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Ro]||(t[Ro]=!0,pc("selectionchange",!1,t))}}function fm(e,t,a,r){switch(qm(t)){case 2:var l=I0;break;case 8:l=X0;break;default:l=Mc}a=l.bind(null,t,a,e),l=void 0,!Bl||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(l=!0),r?l!==void 0?e.addEventListener(t,a,{capture:!0,passive:l}):e.addEventListener(t,a,!0):l!==void 0?e.addEventListener(t,a,{passive:l}):e.addEventListener(t,a,!1)}function vc(e,t,a,r,l){var c=r;if((t&1)===0&&(t&2)===0&&r!==null)e:for(;;){if(r===null)return;var p=r.tag;if(p===3||p===4){var b=r.stateNode.containerInfo;if(b===l)break;if(p===4)for(p=r.return;p!==null;){var x=p.tag;if((x===3||x===4)&&p.stateNode.containerInfo===l)return;p=p.return}for(;b!==null;){if(p=la(b),p===null)return;if(x=p.tag,x===5||x===6||x===26||x===27){r=c=p;continue e}b=b.parentNode}}r=r.return}vd(function(){var N=c,P=Ll(a),G=[];e:{var U=$d.get(e);if(U!==void 0){var q=Br,de=e;switch(e){case"keypress":if(Lr(a)===0)break e;case"keydown":case"keyup":q=gb;break;case"focusin":de="focus",q=Ql;break;case"focusout":de="blur",q=Ql;break;case"beforeblur":case"afterblur":q=Ql;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":q=Sd;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":q=nb;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":q=yb;break;case Vd:case Qd:case Yd:q=sb;break;case Gd:q=bb;break;case"scroll":case"scrollend":q=eb;break;case"wheel":q=Sb;break;case"copy":case"cut":case"paste":q=ob;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":q=xd;break;case"toggle":case"beforetoggle":q=xb}var ce=(t&4)!==0,Ue=!ce&&(e==="scroll"||e==="scrollend"),M=ce?U!==null?U+"Capture":null:U;ce=[];for(var R=N,D;R!==null;){var Q=R;if(D=Q.stateNode,Q=Q.tag,Q!==5&&Q!==26&&Q!==27||D===null||M===null||(Q=ds(R,M),Q!=null&&ce.push(Xs(R,Q,D))),Ue)break;R=R.return}
vendor: 6,306 bytes, lines 48-49
480<ce.length&&(U=new q(U,de,null,a,P),G.push({event:U,listeners:ce}))}}if((t&7)===0){e:{if(U=e==="mouseover"||e==="pointerover",q=e==="mouseout"||e==="pointerout",U&&a!==zl&&(de=a.relatedTarget||a.fromElement)&&(la(de)||de[it]))break e;if((q||U)&&(U=P.window===P?P:(U=P.ownerDocument)?U.defaultView||U.parentWindow:window,q?(de=a.relatedTarget||a.toElement,q=N,de=de?la(de):null,de!==null&&(Ue=f(de),ce=de.tag,de!==Ue||ce!==5&&ce!==27&&ce!==6)&&(de=null)):(q=null,de=N),q!==de)){if(ce=Sd,Q="onMouseLeave",M="onMouseEnter",R="mouse",(e==="pointerout"||e==="pointerover")&&(ce=xd,Q="onPointerLeave",M="onPointerEnter",R="pointer"),Ue=q==null?U:fs(q),D=de==null?U:fs(de),U=new ce(Q,R+"leave",q,a,P),U.target=Ue,U.relatedTarget=D,Q=null,la(P)===N&&(ce=new ce(M,R+"enter",de,a,P),ce.target=D,ce.relatedTarget=Ue,Q=ce),Ue=Q,q&&de)t:{for(ce=q,M=de,R=0,D=ce;D;D=Va(D))R++;for(D=0,Q=M;Q;Q=Va(Q))D++;for(;0<R-D;)ce=Va(ce),R--;for(;0<D-R;)M=Va(M),D--;for(;R--;){if(ce===M||M!==null&&ce===M.alternate)break t;ce=Va(ce),M=Va(M)}ce=null}else ce=null;q!==null&&dm(G,U,q,ce,!1),de!==null&&Ue!==null&&dm(G,Ue,de,ce,!0)}}e:{if(U=N?fs(N):window,q=U.nodeName&&U.nodeName.toLowerCase(),q==="select"||q==="input"&&U.type==="file")var te=Md;else if(Od(U))if(Dd)te=Nb;else{te=Mb;var xe=kb}else q=U.nodeName,!q||q.toLowerCase()!=="input"||U.type!=="checkbox"&&U.type!=="radio"?N&&ql(N.elementType)&&(te=Md):te=Db;if(te&&(te=te(e,N))){kd(G,te,a,P);break e}xe&&xe(e,U,N),e==="focusout"&&N&&U.type==="number"&&N.memoizedProps.value!=null&&Ul(U,"number",U.value)}switch(xe=N?fs(N):window,e){case"focusin":(Od(xe)||xe.contentEditable==="true")&&(va=xe,Fl=N,ws=null);break;case"focusout":ws=Fl=va=null;break;case"mousedown":Kl=!0;break;case"contextmenu":case"mouseup":case"dragend":Kl=!1,jd(G,a,P);break;case"selectionchange":if(qb)break;case"keydown":case"keyup":jd(G,a,P)}var oe;if(Gl)e:{switch(e){case"compositionstart":var fe="onCompositionStart";break e;case"compositionend":fe="onCompositionEnd";break e;case"compositionupdate":fe="onCompositionUpdate";break e}fe=void 0}else ya?Ad(e,a)&&(fe="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(fe="onCompositionStart");fe&&(Ed&&a.locale!=="ko"&&(ya||fe!=="onCompositionStart"?fe==="onCompositionEnd"&&ya&&(oe=bd()):(ni=P,jl="value"in ni?ni.value:ni.textContent,ya=!0)),xe=Ao(N,fe),0<xe.length&&(fe=new _d(fe,e,null,a,P),G.push({event:fe,listeners:xe}),oe?fe.data=oe:(oe=Cd(a),oe!==null&&(fe.data=oe)))),(oe=Tb?Rb(e,a):Ab(e,a))&&(fe=Ao(N,"onBeforeInput"),0<fe.length&&(xe=new _d("onBeforeInput","beforeinput",null,a,P),G.push({event:xe,listeners:fe}),xe.data=oe)),y0(G,e,N,a,P)}cm(G,t)})}function Xs(e,t,a){return{instance:e,listener:t,currentTarget:a}}function Ao(e,t){for(var a=t+"Capture",r=[];e!==null;){var l=e,c=l.stateNode;if(l=l.tag,l!==5&&l!==26&&l!==27||c===null||(l=ds(e,a),l!=null&&r.unshift(Xs(e,l,c)),l=ds(e,t),l!=null&&r.push(Xs(e,l,c))),e.tag===3)return r;e=e.return}return[]}function Va(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function dm(e,t,a,r,l){for(var c=t._reactName,p=[];a!==null&&a!==r;){var b=a,x=b.alternate,N=b.stateNode;if(b=b.tag,x!==null&&x===r)break;b!==5&&b!==26&&b!==27||N===null||(x=N,l?(N=ds(a,c),N!=null&&p.unshift(Xs(a,N,x))):l||(N=ds(a,c),N!=null&&p.push(Xs(a,N,x)))),a=a.return}p.length!==0&&e.push({event:t,listeners:p})}var S0=/\r\n?/g,_0=/\u0000|\uFFFD/g;function hm(e){return(typeof e=="string"?e:""+e).replace(S0,`
49`).replace(_0,"")}function gm(e,t){return t=hm(t),hm(e)===t}function Co(){}function Ne(e,t,a,r,l,c){switch(a){case"children":typeof r=="string"?t==="body"||t==="textarea"&&r===""||ga(e,r):(typeof r=="number"||typeof r=="bigint")&&t!=="body"&&ga(e,""+r);break;case"className":Dr(e,"class",r);break;case"tabIndex":Dr(e,"tabindex",r);break;case"dir":case"role":case"viewBox":case"width":case"height":Dr(e,a,r);break;case"style":pd(e,r,c);break;case"data":if(t!=="object"){Dr(e,"data",r);break}case"src":case"href":if(r===""&&(t!=="a"||a!=="href")){e.removeAttribute(a);break}if(r==null||typeof r=="function"||typeof r=="symbol"||typeof r=="boolean"){e.removeAttribute(a);break}r=qr(""+r),e.setAttribute(a,r);break;case"action":case"formAction":if(typeof r=="function"){e.setAttribute(a,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof c=="function"&&(a==="formAction"?(t!=="input"&&Ne(e,t,"name",l.name,l,null),Ne(e,t,"formEncType",l.formEncType,l,null),Ne(e,t,"formMethod",l.formMethod,l,null),Ne(e,t,"formTarget",l.formTarget,l,null)):(Ne(e,t,"encType",l.encType,l,null),Ne(e,t,"method",l.method,l,null),Ne(e,t,"target",l.target,l,null)));if(r==null||typeof r=="symbol"||typeof r=="boolean"){e.removeAttribute(a);break}r=qr(""+r),e.setAttribute(a,r);break;case"onClick":r!=null&&(e.onclick=Co);break;case"onScroll":r!=null&&Te("scroll",e);break;case"onScrollEnd":r!=null&&Te("scrollend",e);break;case"dangerouslySetInnerHTML":if(r!=null){if(typeof r!="object"||!("__html"in r))throw Error(o(61));if(a=r.__html,a!=null){if(l.children!=null)throw Error(o(60));e.innerHTML=a}}break;case"multiple":e.multiple=r&&typeof r!="function"&&typeof r!="symbol";break;case"muted":e.muted=r&&typeof r!="function"&&typeof r!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(r==null||typeof r=="function"||typeof r=="boolean"||typeof r=="symbol"){e.removeAttribute("xlink:href");break}a=qr(""+r),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":r!=null&&typeof r!="function"&&typeof r!="symbol"?e.setAttribute(a,""+r):e.removeAttribute(a);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInl
49ine":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":r&&typeof r!="function"&&typeof r!="symbol"?e.setAttribute(a,""):e.removeAttribute(a);break;case"capture":case"download":r===!0?e.setAttribute(a,""):r!==!1&&r!=null&&typeof r!="function"&&typeof r!="symbol"?e.setAttribute(a,r):e.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":r!=null&&typeof r!="function"&&typeof r!="symbol"&&!isNaN(r)&&1<=r?e.setAttribute(a,r):e.removeAttribute(a);break;case"rowSpan":case"start":r==null||typeof r=="function"||typeof r=="symbol"||isNaN(r)?e.removeAttribute(a):e.setAttribute(a,r);break;case"popover":Te("beforetoggle",e),Te("toggle",e),Mr(e,"popover",r);break;case"xlinkActuate":kn(e,"http://www.w3.org/1999/xlink","xlink:actuate",r);break;case"xlinkArcrole":kn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",r);break;case"xlinkRole":kn(e,"http://www.w3.org/1999/xlink","xlink:role",r);break;case"xlinkShow":kn(e,"http://www.w3.org/1999/xlink","xlink:show",r);break;case"xlinkTitle":kn(e,"http://www.w3.org/1999/xlink","xlink:title",r);break;case"xlinkType":kn(e,"http://www.w3.org/1999/xlink","xlink:type",r);break;case"xmlBase":kn(e,"http://www.w3.org/XML/1998/namespace","xml:base",r);break;case"xmlLang":kn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",r);break;case"xmlSpace":kn(e,"http://www.w3.org/XML/1998/namespace","xml:space",r);break;case"is":Mr(e,"is",r);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=Jv.get(a)||a,Mr(e,a,r))}}function bc(e,t,a,r,l,c){switch(a){case"style":pd(e,r,c);break;case"dangerouslySetInnerHTML":if(r!=null){if(typeof r!="object"||!("__html"in r))throw Error(o(61));if(a=r.__html,a!=null){if(l.children!=null)throw Error(o(60));e.innerHTML=a}}break;case"children":typeof r=="string"?ga(e,r):(typeof r=="number"||typeof r=="bigint")&&ga(e,""+r);break;case"onScroll":r!=null&&Te("scroll",e);break;case"onScrollEnd":r!=null&&Te("scrollend",e);break;case"onClick":r!=null&&(e.onclick=Co);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!sd.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(l=a.endsWith("Capture"),t=a.slice(2,l?a.length-7:void 0),c=e[ze]||null,c=c!=null?c[a]:null,typeof c=="function"&&e.removeEventListener(t,c,l),typeof r=="function")){typeof c!="function"&&c!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(t,r,l);break e}a in e?e[a]=r:r===!0?e.setAttribute(a,""):Mr(e,a,r)}}}function ht(e,t,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Te("error",e),Te("load",e);var r=!1,l=!1,c;for(c in a)if(a.hasOwnProperty(c)){var p=a[c];if(p!=null)switch(c){case"src":r=!0;break;case"srcSet":l=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(o(137,t));default:Ne(e,t,c,p,a,null)}}l&&Ne(e,t,"srcSet",a.srcSet,a,null),r&&Ne(e,t,"src",a.src,a,null);return;case"input":Te("invalid",e);var b=c=p=l=null,x=null,N=null;for(r in a)if(a.hasOwnProperty(r)){var P=a[r];if(P!=null)switch(r){case"name":l=P;break;case"type":p=P;break;case"checked":x=P;break;case"defaultChecked":N=P;break;case"value":c=P;break;case"defaultValue":b=P;break;case"children":case"dangerouslySetInnerHTML":if(P!=null)throw Error(o(137,t));break;default:Ne(e,t,r,P,a,null)}}dd(e,c,b,x,N,p,l,!1),Nr(e);return;case"select":Te("invalid",e),r=p=c=null;for(l in a)if(a.hasOwnProperty(l)&&(b=a[l],b!=null))switch(l){case"value":c=b;break;case"defaultValue":p=b;break;case"multiple":r=b;default:Ne(e,t,l,b,a,null)}t=c,a=p,e.multiple=!!r,t!=null?ha(e,!!r,t,!1):a!=null&&ha(e,!!r,a,!0);return;case"textarea":Te("invalid",e),c=l=r=null;for(p in a)if(a.hasOwnProperty(p)&&(b=a[p],b!=null))switch(p){case"value":r=b;break;case"defaultValue":l=b;break;case"children":c=b;break;case"dangerouslySetInnerHTML":if(b!=null)throw Error(o(91));break;default:Ne(e,t,p,b,a,null)}gd(e,r,l,c),Nr(e);return;case"option":for(x in a)if(a.hasOwnProperty(x)&&(r=a[x],r!=null))switch(x){case"selected":e.selected=r&&typeof r!="function"&&typeof r!="symbol";break;default:Ne(e,t,x,r,a,null)}return;case"dialog":Te("beforetoggle",e),Te("toggle",e),Te("cancel",e),Te("close",e);break;case"iframe":case"object":Te("load",e);break;case"video":case"audio":for(r=0;r<Is.length;r++)Te(Is[r],e);break;case"image":Te("error",e),Te("load",e);break;case"details":Te("toggle",e);break;case"embed":case"source":case"link":Te("error",e),Te("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(N in a)if(a.hasOwnProperty(N)&&(r=a[N],r!=null))switch(N){case"children":case"dangerouslySetInnerHTML":throw Error(o(137,t));default:Ne(e,t,N,r,a,null)}return;
vendor: 25,334 bytes, line 49
49default:if(ql(t)){for(P in a)a.hasOwnProperty(P)&&(r=a[P],r!==void 0&&bc(e,t,P,r,a,void 0));return}}for(b in a)a.hasOwnProperty(b)&&(r=a[b],r!=null&&Ne(e,t,b,r,a,null))}function x0(e,t,a,r){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var l=null,c=null,p=null,b=null,x=null,N=null,P=null;for(q in a){var G=a[q];if(a.hasOwnProperty(q)&&G!=null)switch(q){case"checked":break;case"value":break;case"defaultValue":x=G;default:r.hasOwnProperty(q)||Ne(e,t,q,null,r,G)}}for(var U in r){var q=r[U];if(G=a[U],r.hasOwnProperty(U)&&(q!=null||G!=null))switch(U){case"type":c=q;break;case"name":l=q;break;case"checked":N=q;break;case"defaultChecked":P=q;break;case"value":p=q;break;case"defaultValue":b=q;break;case"children":case"dangerouslySetInnerHTML":if(q!=null)throw Error(o(137,t));break;default:q!==G&&Ne(e,t,U,q,r,G)}}Nl(e,p,b,x,N,P,c,l);return;case"select":q=p=b=U=null;for(c in a)if(x=a[c],a.hasOwnProperty(c)&&x!=null)switch(c){case"value":break;case"multiple":q=x;default:r.hasOwnProperty(c)||Ne(e,t,c,null,r,x)}for(l in r)if(c=r[l],x=a[l],r.hasOwnProperty(l)&&(c!=null||x!=null))switch(l){case"value":U=c;break;case"defaultValue":b=c;break;case"multiple":p=c;default:c!==x&&Ne(e,t,l,c,r,x)}t=b,a=p,r=q,U!=null?ha(e,!!a,U,!1):!!r!=!!a&&(t!=null?ha(e,!!a,t,!0):ha(e,!!a,a?[]:"",!1));return;case"textarea":q=U=null;for(b in a)if(l=a[b],a.hasOwnProperty(b)&&l!=null&&!r.hasOwnProperty(b))switch(b){case"value":break;case"children":break;default:Ne(e,t,b,null,r,l)}for(p in r)if(l=r[p],c=a[p],r.hasOwnProperty(p)&&(l!=null||c!=null))switch(p){case"value":U=l;break;case"defaultValue":q=l;break;case"children":break;case"dangerouslySetInnerHTML":if(l!=null)throw Error(o(91));break;default:l!==c&&Ne(e,t,p,l,r,c)}hd(e,U,q);return;case"option":for(var de in a)if(U=a[de],a.hasOwnProperty(de)&&U!=null&&!r.hasOwnProperty(de))switch(de){case"selected":e.selected=!1;break;default:Ne(e,t,de,null,r,U)}for(x in r)if(U=r[x],q=a[x],r.hasOwnProperty(x)&&U!==q&&(U!=null||q!=null))switch(x){case"selected":e.selected=U&&typeof U!="function"&&typeof U!="symbol";break;default:Ne(e,t,x,U,r,q)}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 ce in a)U=a[ce],a.hasOwnProperty(ce)&&U!=null&&!r.hasOwnProperty(ce)&&Ne(e,t,ce,null,r,U);for(N in r)if(U=r[N],q=a[N],r.hasOwnProperty(N)&&U!==q&&(U!=null||q!=null))switch(N){case"children":case"dangerouslySetInnerHTML":if(U!=null)throw Error(o(137,t));break;default:Ne(e,t,N,U,r,q)}return;default:if(ql(t)){for(var Ue in a)U=a[Ue],a.hasOwnProperty(Ue)&&U!==void 0&&!r.hasOwnProperty(Ue)&&bc(e,t,Ue,void 0,r,U);for(P in r)U=r[P],q=a[P],!r.hasOwnProperty(P)||U===q||U===void 0&&q===void 0||bc(e,t,P,U,r,q);return}}for(var M in a)U=a[M],a.hasOwnProperty(M)&&U!=null&&!r.hasOwnProperty(M)&&Ne(e,t,M,null,r,U);for(G in r)U=r[G],q=a[G],!r.hasOwnProperty(G)||U===q||U==null&&q==null||Ne(e,t,G,U,r,q)}var wc=null,Sc=null;function Oo(e){return e.nodeType===9?e:e.ownerDocument}function mm(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function pm(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function _c(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var xc=null;function E0(){var e=window.event;return e&&e.type==="popstate"?e===xc?!1:(xc=e,!0):(xc=null,!1)}var ym=typeof setTimeout=="function"?setTimeout:void 0,T0=typeof clearTimeout=="function"?clearTimeout:void 0,vm=typeof Promise=="function"?Promise:void 0,R0=typeof queueMicrotask=="function"?queueMicrotask:typeof vm<"u"?function(e){return vm.resolve(null).then(e).catch(A0)}:ym;function A0(e){setTimeout(function(){throw e})}function vi(e){return e==="head"}function bm(e,t){var a=t,r=0,l=0;do{var c=a.nextSibling;if(e.removeChild(a),c&&c.nodeType===8)if(a=c.data,a==="/$"){if(0<r&&8>r){a=r;var p=e.ownerDocument;if(a&1&&Fs(p.documentElement),a&2&&Fs(p.body),a&4)for(a=p.head,Fs(a),p=a.firstChild;p;){var b=p.nextSibling,x=p.nodeName;p[cs]||x==="SCRIPT"||x==="STYLE"||x==="LINK"&&p.rel.toLowerCase()==="stylesheet"||a.removeChild(p),p=b}}if(l===0){e.removeChild(c),ir(t);return}l--}else a==="$"||a==="$?"||a==="$!"?l++:r=a.charCodeAt(0)-48;else r=0;a=c}while(a);ir(t)}function Ec(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var a=t;switch(t=t.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":Ec(a),Ol(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function C0(e,t,a,r){for(;e.nodeType===1;){var l=a;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(r){if(!e[cs])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(c=e.getAttribute("rel"),c==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(c!==l.rel||e.getAttribute("href")!==(l.href==null||l.href===""?null:l.href)||e.getAttribute("crossorigin")!==(l.crossOrigin==null?null:l.crossOrigin)||e.getAttribute("title")!==(l.title==null?null:l.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(c=e.getAttribute("src"),(c!==(l.src==null?null:l.src)||e.getAttribute("type")!==(l.type==null?null:l.type)||e.getAttribute("crossorigin")!==(l.crossOrigin==null?null:l.crossOrigin))&&c&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var c=l.name==null?null:""+l.name;if(l.type==="hidden"&&e.getAttribute("name")===c)return e}else return e;if(e=nn(e.nextSibling),e===null)break}return null}function O0(e,t,a){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=nn(e.nextSibling),e===null))return null;return e}function Tc(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState==="complete"}function k0(e,t){var a=e.ownerDocument;if(e.data!=="$?"||a.readyState==="complete")t();else{var r=function(){t(),a.removeEventListener("DOMContentLoaded",r)};a.addEventListener("DOMContentLoaded",r),e._reactRetry=r}}function nn(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="F!"||t==="F")break;if(t==="/$")return null}}return e}var Rc=null;function wm(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="$"||a==="$!"||a==="$?"){if(t===0)return e;t--}else a==="/$"&&t++}e=e.previousSibling}return null}function Sm(e,t,a){switch(t=Oo(a),e){case"html":if(e=t.documentElement,!e)throw Error(o(452));return e;case"head":if(e=t.head,!e)throw Error(o(453));return e;case"body":if(e=t.body,!e)throw Error(o(454));return e;default:throw Error(o(451))}}function Fs(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Ol(e)}var Ft=new Map,_m=new Set;function ko(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Yn=V.d;V.d={f:M0,r:D0,D:N0,C:U0,L:q0,m:z0,X:H0,S:L0,M:B0};function M0(){var e=Yn.f(),t=So();return e||t}function D0(e){var t=ua(e);t!==null&&t.tag===5&&t.type==="form"?Vh(t):Yn.r(e)}var Qa=typeof document>"u"?null:document;function xm(e,t,a){var r=Qa;if(r&&typeof t=="string"&&t){var l=Vt(t);l='link[rel="'+e+'"][href="'+l+'"]',typeof a=="string"&&(l+='[crossorigin="'+a+'"]'),_m.has(l)||(_m.add(l),e={rel:e,crossOrigin:a,href:t},r.querySelector(l)===null&&(t=r.createElement("link"),ht(t,"link",e),at(t),r.head.appendChild(t)))}}function N0(e){Yn.D(e),xm("dns-prefetch",e,null)}function U0(e,t){Yn.C(e,t),xm("preconnect",e,t)}function q0(e,t,a){Yn.L(e,t,a);var r=Qa;if(r&&e&&t){var l='link[rel="preload"][as="'+Vt(t)+'"]';t==="image"&&a&&a.imageSrcSet?(l+='[imagesrcset="'+Vt(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(l+='[imagesizes="'+Vt(a.imageSizes)+'"]')):l+='[href="'+Vt(e)+'"]';var c=l;switch(t){case"style":c=Ya(e);break;case"script":c=Ga(e)}Ft.has(c)||(e=v({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),Ft.set(c,e),r.querySelector(l)!==null||t==="style"&&r.querySelector(Ks(c))||t==="script"&&r.querySelector(Zs(c))||(t=r.createElement("link"),ht(t,"link",e),at(t),r.head.appendChild(t)))}}function z0(e,t){Yn.m(e,t);var a=Qa;if(a&&e){var r=t&&typeof t.as=="string"?t.as:"script",l='link[rel="modulepreload"][as="'+Vt(r)+'"][href="'+Vt(e)+'"]',c=l;switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=Ga(e)}if(!Ft.has(c)&&(e=v({rel:"modulepreload",href:e},t),Ft.set(c,e),a.querySelector(l)===null)){switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(Zs(c)))return}r=a.createElement("link"),ht(r,"link",e),at(r),a.head.appendChild(r)}}}function L0(e,t,a){Yn.S(e,t,a);var r=Qa;if(r&&e){var l=ca(r).hoistableStyles,c=Ya(e);t=t||"default";var p=l.get(c);if(!p){var b={loading:0,preload:null};if(p=r.querySelector(Ks(c)))b.loading=5;else{e=v({rel:"stylesheet",href:e,"data-precedence":t},a),(a=Ft.get(c))&&Ac(e,a);var x=p=r.createElement("link");at(x),ht(x,"link",e),x._p=new Promise(function(N,P){x.onload=N,x.onerror=P}),x.addEventListener("load",function(){b.loading|=1}),x.addEventListener("error",function(){b.loading|=2}),b.loading|=4,Mo(p,t,r)}p={type:"stylesheet",instance:p,count:1,state:b},l.set(c,p)}}}function H0(e,t){Yn.X(e,t);var a=Qa;if(a&&e){var r=ca(a).hoistableScripts,l=Ga(e),c=r.get(l);c||(c=a.querySelector(Zs(l)),c||(e=v({src:e,async:!0},t),(t=Ft.get(l))&&Cc(e,t),c=a.createElement("script"),at(c),ht(c,"link",e),a.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},r.set(l,c))}}function B0(e,t){Yn.M(e,t);var a=Qa;if(a&&e){var r=ca(a).hoistableScripts,l=Ga(e),c=r.get(l);c||(c=a.querySelector(Zs(l)),c||(e=v({src:e,async:!0,type:"module"},t),(t=Ft.get(l))&&Cc(e,t),c=a.createElement("script"),at(c),ht(c,"link",e),a.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},r.set(l,c))}}function Em(e,t,a,r){var l=(l=se.current)?ko(l):null;if(!l)throw Error(o(446));switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(t=Ya(a.href),a=ca(l).hoistableStyles,r=a.get(t),r||(r={type:"style",instance:null,count:0,state:null},a.set(t,r)),r):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){e=Ya(a.href);var c=ca(l).hoistableStyles,p=c.get(e);if(p||(l=l.ownerDocument||l,p={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(e,p),(c=l.querySelector(Ks(e)))&&!c._p&&(p.instance=c,p.state.loading=5),Ft.has(e)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},Ft.set(e,a),c||j0(l,e,a,p.state))),t&&r===null)throw Error(o(528,""));return p}if(t&&r!==null)throw Error(o(529,""));return null;case"script":return t=a.async,a=a.src,typeof a=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Ga(a),a=ca(l).hoistableScripts,r=a.get(t),r||(r={type:"script",instance:null,count:0,state:null},a.set(t,r)),r):{type:"void",instance:null,count:0,state:null};default:throw Error(o(444,e))}}function Ya(e){return'href="'+Vt(e)+'"'}function Ks(e){return'link[rel="stylesheet"]['+e+"]"}function Tm(e){return v({},e,{"data-precedence":e.precedence,precedence:null})}function j0(e,t,a,r){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?r.loading=1:(t=e.createElement("link"),r.preload=t,t.addEventListener("load",function(){return r.loading|=1}),t.addEventListener("error",function(){return r.loading|=2}),ht(t,"link",a),at(t),e.head.appendChild(t))}function Ga(e){return'[src="'+Vt(e)+'"]'}function Zs(e){return"script[async]"+e}function Rm(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var r=e.querySelector('style[data-href~="'+Vt(a.href)+'"]');if(r)return t.instance=r,at(r),r;var l=v({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement("style"),at(r),ht(r,"style",l),Mo(r,a.precedence,e),t.instance=r;case"stylesheet":l=Ya(a.href);var c=e.querySelector(Ks(l));if(c)return t.state.loading|=4,t.instance=c,at(c),c;r=Tm(a),(l=Ft.get(l))&&Ac(r,l),c=(e.ownerDocument||e).createElement("link"),at(c);var p=c;return p._p=new Promise(function(b,x){p.onload=b,p.onerror=x}),ht(c,"link",r),t.state.loading|=4,Mo(c,a.precedence,e),t.instance=c;case"script":return c=Ga(a.src),(l=e.querySelector(Zs(c)))?(t.instance=l,at(l),l):(r=a,(l=Ft.get(c))&&(r=v({},a),Cc(r,l)),e=e.ownerDocument||e,l=e.createElement("script"),at(l),ht(l,"link",r),e.head.appendChild(l),t.instance=l);case"void":return null;default:throw Error(o(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(r=t.instance,t.state.loading|=4,Mo(r,a.precedence,e));return t.instance}function Mo(e,t,a){for(var r=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),l=r.length?r[r.length-1]:null,c=l,p=0;p<r.length;p++){var b=r[p];if(b.dataset.precedence===t)c=b;else if(c!==l)break}c?c.parentNode.insertBefore(e,c.nextSibling):(t=a.nodeType===9?a.head:a,t.insertBefore(e,t.firstChild))}function Ac(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Cc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Do=null;function Am(e,t,a){if(Do===null){var r=new Map,l=Do=new Map;l.set(a,r)}else l=Do,r=l.get(a),r||(r=new Map,l.set(a,r));if(r.has(e))return r;for(r.set(e,null),a=a.getElementsByTagName(e),l=0;l<a.length;l++){var c=a[l];if(!(c[cs]||c[$e]||e==="link"&&c.getAttribute("rel")==="stylesheet")&&c.namespaceURI!=="http://www.w3.org/2000/svg"){var p=c.getAttribute(t)||"";p=e+p;var b=r.get(p);b?b.push(c):r.set(p,[c])}}return r}function Cm(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function P0(e,t,a){if(a===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function Om(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}var Js=null;function V0(){}function Q0(e,t,a){if(Js===null)throw Error(o(475));var r=Js;if(t.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(t.state.loading&4)===0){if(t.instance===null){var l=Ya(a.href),c=e.querySelector(Ks(l));if(c){e=c._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(r.count++,r=No.bind(r),e.then(r,r)),t.state.loading|=4,t.instance=c,at(c);return}c=e.ownerDocument||e,a=Tm(a),(l=Ft.get(l))&&Ac(a,l),c=c.createElement("link"),at(c);var p=c;p._p=new Promise(function(b,x){p.onload=b,p.onerror=x}),ht(c,"link",a),t.instance=c}r.stylesheets===null&&(r.stylesheets=new Map),r.stylesheets.set(t,e),(e=t.state.preload)&&(t.state.loading&3)===0&&(r.count++,t=No.bind(r),e.addEventListener("load",t),e.addEventListener("error",t))}}function Y0(){if(Js===null)throw Error(o(475));var e=Js;return e.stylesheets&&e.count===0&&Oc(e,e.stylesheets),0<e.count?function(t){var a=setTimeout(function(){if(e.stylesheets&&Oc(e,e.stylesheets),e.unsuspend){var r=e.unsuspend;e.unsuspend=null,r()}},6e4);return e.unsuspend=t,function(){e.unsuspend=null,clearTimeout(a)}}:null}function No(){if(this.count--,this.count===0){if(this.stylesheets)Oc(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Uo=null;function Oc(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Uo=new Map,t.forEach(G0,e),Uo=null,No.call(e))}function G0(e,t){if(!(t.state.loading&4)){var a=Uo.get(e);if(a)var r=a.get(null);else{a=new Map,Uo.set(e,a);for(var l=e.querySelectorAll("link[data-precedence],style[data-precedence]"),c=0;c<l.length;c++){var p=l[c];(p.nodeName==="LINK"||p.getAttribute("media")!=="not all")&&(a.set(p.dataset.precedence,p),r=p)}r&&a.set(null,r)}l=t.instance,p=l.getAttribute("data-precedence"),c=a.get(p)||r,c===r&&a.set(null,l),a.set(p,l),this.count++,r=No.bind(this),l.addEventListener("load",r),l.addEventListener("error",r),c?c.parentNode.insertBefore(l,c.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(l,e.firstChild)),t.state.loading|=4}}var Ws={$$typeof:j,Provider:null,Consumer:null,_currentValue:L,_currentValue2:L,_threadCount:0};function $0(e,t,a,r,l,c,p,b){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=us(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=us(0),this.hiddenUpdates=us(null),this.identifierPrefix=r,this.onUncaughtError=l,this.onCaughtError=c,this.onRecoverableError=p,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=b,this.incompleteTransitions=new Map}function km(e,t,a,r,l,c,p,b,x,N,P,G){return e=new $0(e,t,a,p,b,x,N,G),t=1,c===!0&&(t|=24),c=Mt(3,null,null,t),e.current=c,c.stateNode=e,t=cu(),t.refCount++,e.pooledCache=t,t.refCount++,c.memoizedState={element:r,isDehydrated:a,cache:t},gu(c),e}function Mm(e){return e?(e=_a,e):_a}function Dm(e,t,a,r,l,c){l=Mm(l),r.context===null?r.context=l:r.pendingContext=l,r=si(t),r.payload={element:a},c=c===void 0?null:c,c!==null&&(r.callback=c),a=ri(e,r,t),a!==null&&(zt(a,e,t),Os(a,e,t))}function Nm(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function kc(e,t){Nm(e,t),(e=e.alternate)&&Nm(e,t)}function Um(e){if(e.tag===13){var t=Sa(e,67108864);t!==null&&zt(t,e,67108864),kc(e,67108864)}}var qo=!0;function I0(e,t,a,r){var l=O.T;O.T=null;var c=V.p;try{V.p=2,Mc(e,t,a,r)}finally{V.p=c,O.T=l}}function X0(e,t,a,r){var l=O.T;O.T=null;var c=V.p;try{V.p=8,Mc(e,t,a,r)}finally{V.p=c,O.T=l}}function Mc(e,t,a,r){if(qo){var l=Dc(r);if(l===null)vc(e,t,r,zo,a),zm(e,r);else if(K0(l,e,t,a,r))r.stopPropagation();else if(zm(e,r),t&4&&-1<F0.indexOf(e)){for(;l!==null;){var c=ua(l);if(c!==null)switch(c.tag){case 3:if(c=c.stateNode,c.current.memoizedState.isDehydrated){var p=un(c.pendingLanes);if(p!==0){var b=c;for(b.pendingLanes|=2,b.entangledLanes|=2;p;){var x=1<<31-ut(p);b.entanglements[1]|=x,p&=~x}gn(c),(ke&6)===0&&(bo=gt()+500,$s(0))}}break;case 13:b=Sa(c,2),b!==null&&zt(b,c,2),So(),kc(c,2)}if(c=Dc(r),c===null&&vc(e,t,r,zo,a),c===l)break;l=c}l!==null&&r.stopPropagation()}else vc(e,t,r,null,a)}}function Dc(e){return e=Ll(e),Nc(e)}var zo=null;function Nc(e){if(zo=null,e=la(e),e!==null){var t=f(e);if(t===null)e=null;else{var a=t.tag;if(a===13){if(e=d(t),e!==null)return e;e=null}else if(a===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return zo=e,null}function qm(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Rr()){case jt:return 2;case Ar:return 8;case aa:case wt:return 32;case Cn:return 268435456;default:return 32}default:return 32}}var Uc=!1,bi=null,wi=null,Si=null,er=new Map,tr=new Map,_i=[],F0="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 zm(e,t){switch(e){case"focusin":case"focusout":bi=null;break;case"dragenter":case"dragleave":wi=null;break;case"mouseover":case"mouseout":Si=null;break;case"pointerover":case"pointerout":er.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":tr.delete(t.pointerId)}}function nr(e,t,a,r,l,c){return e===null||e.nativeEvent!==c?(e={blockedOn:t,domEventName:a,eventSystemFlags:r,nativeEvent:c,targetContainers:[l]},t!==null&&(t=ua(t),t!==null&&Um(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,l!==null&&t.indexOf(l)===-1&&t.push(l),e)}function K0(e,t,a,r,l){switch(t){case"focusin":return bi=nr(bi,e,t,a,r,l),!0;case"dragenter":return wi=nr(wi,e,t,a,r,l),!0;case"mouseover":return Si=nr(Si,e,t,a,r,l),!0;case"pointerover":var c=l.pointerId;return er.set(c,nr(er.get(c)||null,e,t,a,r,l)),!0;case"gotpointercapture":return c=l.pointerId,tr.set(c,nr(tr.get(c)||null,e,t,a,r,l)),!0}return!1}function Lm(e){var t=la(e.target);if(t!==null){var a=f(t);if(a!==null){if(t=a.tag,t===13){if(t=d(a),t!==null){e.blockedOn=t,We(e.priority,function(){if(a.tag===13){var r=qt();r=Fe(r);var l=Sa(a,r);l!==null&&zt(l,a,r),kc(a,r)}});return}}else if(t===3&&a.stateNode.current.memoizedState.isDehydrated){e.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Lo(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=Dc(e.nativeEvent);if(a===null){a=e.nativeEvent;var r=new a.constructor(a.type,a);zl=r,a.target.dispatchEvent(r),zl=null}else return t=ua(a),t!==null&&Um(t),e.blockedOn=a,!1;t.shift()}return!0}function Hm(e,t,a){Lo(e)&&a.delete(t)}function Z0(){Uc=!1,bi!==null&&Lo(bi)&&(bi=null),wi!==null&&Lo(wi)&&(wi=null),Si!==null&&Lo(Si)&&(Si=null),er.forEach(Hm),tr.forEach(Hm)}function Ho(e,t){e.blockedOn===t&&(e.blockedOn=null,Uc||(Uc=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,Z0)))}var Bo=null;function Bm(e){Bo!==e&&(Bo=e,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){Bo===e&&(Bo=null);for(var t=0;t<e.length;t+=3){var a=e[t],r=e[t+1],l=e[t+2];if(typeof r!="function"){if(Nc(r||a)===null)continue;break}var c=ua(a);c!==null&&(e.splice(t,3),t-=3,Nu(c,{pending:!0,data:l,method:a.method,action:r},r,l))}}))}function ir(e){function t(x){return Ho(x,e)}bi!==null&&Ho(bi,e),wi!==null&&Ho(wi,e),Si!==null&&Ho(Si,e),er.forEach(t),tr.forEach(t);for(var a=0;a<_i.length;a++){var r=_i[a];r.blockedOn===e&&(r.blockedOn=null)}for(;0<_i.length&&(a=_i[0],a.blockedOn===null);)Lm(a),a.blockedOn===null&&_i.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(r=0;r<a.length;r+=3){var l=a[r],c=a[r+1],p=l[ze]||null;if(typeof c=="function")p||Bm(a);else if(p){var b=null;if(c&&c.hasAttribute("formAction")){if(l=c,p=c[ze]||null)b=p.formAction;else if(Nc(l)!==null)continue}else b=p.action;typeof b=="function"?a[r+1]=b:(a.splice(r,3),r-=3),Bm(a)}}}function qc(e){this._internalRoot=e}jo.prototype.render=qc.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(o(409));var a=t.current,r=qt();Dm(a,r,e,t,null,null)},jo.prototype.unmount=qc.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Dm(e.current,2,null,e,null,null),So(),t[it]=null}};function jo(e){this._internalRoot=e}jo.prototype.unstable_scheduleHydration=function(e){if(e){var t=Ui();e={blockedOn:null,target:e,priority:t};for(var a=0;a<_i.length&&t!==0&&t<_i[a].priority;a++);_i.splice(a,0,e),a===0&&Lm(e)}};var jm=i.version;if(jm!=="19.1.1")throw Error(o(527,jm,"19.1.1"));V.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(o(188)):(e=Object.keys(e).join(","),Error(o(268,e)));return e=g(t),e=e!==null?h(e):null,e=e===null?null:e.stateNode,e};var J0={bundleType:0,version:"19.1.1",rendererPackageName:"react-dom",currentDispatcherRef:O,reconcilerVersion:"19.1.1"};
49if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Po=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Po.isDisabled&&Po.supportsFiber)try{ln=Po.inject(J0),St=Po}catch{}}return sr.createRoot=function(e,t){if(!u(e))throw Error(o(299));var a=!1,r="",l=ng,c=ig,p=ag,b=null;return t!=null&&(t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onUncaughtError!==void 0&&(l=t.onUncaughtError),t.onCaughtError!==void 0&&(c=t.onCaughtError),t.onRecoverableError!==void 0&&(p=t.onRecoverableError),t.unstable_transitionCallbacks!==void 0&&(b=t.unstable_transitionCallbacks)),t=km(e,1,!1,null,null,a,r,l,c,p,b,null),e[it]=t.current,yc(e),new qc(t)},sr.hydrateRoot=function(e,t,a){if(!u(e))throw Error(o(299));var r=!1,l="",c=ng,p=ig,b=ag,x=null,N=null;return a!=null&&(a.unstable_strictMode===!0&&(r=!0),a.identifierPrefix!==void 0&&(l=a.identifierPrefix),a.onUncaughtError!==void 0&&(c=a.onUncaughtError),a.onCaughtError!==void 0&&(p=a.onCaughtError),a.onRecoverableError!==void 0&&(b=a.onRecoverableError),a.unstable_transitionCallbacks!==void 0&&(x=a.unstable_transitionCallbacks),a.formState!==void 0&&(N=a.formState)),t=km(e,1,!0,t,a??null,r,l,c,p,b,x,N),t.context=Mm(null),a=t.current,r=qt(),r=Fe(r),l=si(r),l.callback=null,ri(a,l,r),a=r,t.current.lanes=a,ti(t,a),gn(t),e[it]=t.current,yc(e),new jo(t)},sr.version="19.1.1",sr}var Km;function ow(){if(Km)return Lc.exports;Km=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(i){console.error(i)}}return n(),Lc.exports=rw(),Lc.exports}var lw=ow(),S=Mf();const X=Wp(S);/**
50 * react-router v7.8.2
51 *
52 * Copyright (c) Remix Software Inc.
53 *
54 * This source code is licensed under the MIT license found in the
55 * LICENSE.md file in the root directory of this source tree.
56 *
57 * @license MIT
58 */var Zm="popstate";function uw(n={}){function i(o,u){let{pathname:f,search:d,hash:m}=o.location;return sf("",{pathname:f,search:d,hash:m},u.state&&u.state.usr||null,u.state&&u.state.key||"default")}function s(o,u){return typeof u=="string"?u:fr(u)}return fw(i,s,null,n)}function je(n,i){if(n===!1||n===null||typeof n>"u")throw new Error(i)}function En(n,i){if(!n){typeof console<"u"&&console.warn(i);try{throw new Error(i)}catch{}}}function cw(){return Math.random().toString(36).substring(2,10)}function Jm(n,i){return{usr:n.state,key:n.key,idx:i}}function sf(n,i,s=null,o){return{pathname:typeof n=="string"?n:n.pathname,search:"",hash:"",...typeof i=="string"?ns(i):i,state:s,key:i&&i.key||o||cw()}}function fr({pathname:n="/",search:i="",hash:s=""}){return i&&i!=="?"&&(n+=i.charAt(0)==="?"?i:"?"+i),s&&s!=="#"&&(n+=s.charAt(0)==="#"?s:"#"+s),n}function ns(n){let i={};if(n){let s=n.indexOf("#");s>=0&&(i.hash=n.substring(s),n=n.substring(0,s));let o=n.indexOf("?");o>=0&&(i.search=n.substring(o),n=n.substring(0,o)),n&&(i.pathname=n)}return i}function fw(n,i,s,o={}){let{window:u=document.defaultView,v5Compat:f=!1}=o,d=u.history,m="POP",g=null,h=v();h==null&&(h=0,d.replaceState({...d.state,idx:h},""));function v(){return(d.state||{idx:null}).idx}function y(){m="POP";let A=v(),C=A==null?null:A-h;h=A,g&&g({action:m,location:k.location,delta:C})}function w(A,C){m="PUSH";let z=sf(k.location,A,C);h=v()+1;let j=Jm(z,h),F=k.createHref(z);try{d.pushState(j,"",F)}catch(H){if(H instanceof DOMException&&H.name==="DataCloneError")throw H;u.location.assign(F)}f&&g&&g({action:m,location:k.location,delta:1})}function _(A,C){m="REPLACE";let z=sf(k.location,A,C);h=v();let j=Jm(z,h),F=k.createHref(z);d.replaceState(j,"",F),f&&g&&g({action:m,location:k.location,delta:0})}function E(A){return dw(A)}let k={get action(){return m},get location(){return n(u,d)},listen(A){if(g)throw new Error("A history only accepts one active listener");return u.addEventListener(Zm,y),g=A,()=>{u.removeEventListener(Zm,y),g=null}},createHref(A){return i(u,A)},createURL:E,encodeLocation(A){let C=E(A);return{pathname:C.pathname,search:C.search,hash:C.hash}},push:w,replace:_,go(A){return d.go(A)}};return k}function dw(n,i=!1){let s="http://localhost";
58typeof window<"u"&&(s=window.location.origin!=="null"?window.location.origin:window.location.href),je(s,"No window.location.(origin|href) available to create URL");let o=typeof n=="string"?n:fr(n);return o=o.replace(/ $/,"%20"),!i&&o.startsWith("//")&&(o=s+o),new URL(o,s)}function ty(n,i,s="/"){return hw(n,i,s,!1)}function hw(n,i,s,o){let u=typeof i=="string"?ns(i):i,f=Xn(u.pathname||"/",s);if(f==null)return null;let d=ny(n);gw(d);let m=null;for(let g=0;m==null&&g<d.length;++g){let h=Tw(f);m=xw(d[g],h,o)}return m}function ny(n,i=[],s=[],o="",u=!1){let f=(d,m,g=u,h)=>{let v={relativePath:h===void 0?d.path||"":h,caseSensitive:d.caseSensitive===!0,childrenIndex:m,route:d};if(v.relativePath.startsWith("/")){if(!v.relativePath.startsWith(o)&&g)return;je(v.relativePath.startsWith(o),`Absolute route path "${v.relativePath}" nested under path "${o}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),v.relativePath=v.relativePath.slice(o.length)}let y=In([o,v.relativePath]),w=s.concat(v);d.children&&d.children.length>0&&(je(d.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${y}".`),ny(d.children,i,w,y,g)),!(d.path==null&&!d.index)&&i.push({path:y,score:Sw(y,d.index),routesMeta:w})};return n.forEach((d,m)=>{if(d.path===""||!d.path?.includes("?"))f(d,m);else for(let g of iy(d.path))f(d,m,!0,g)}),i}function iy(n){let i=n.split("/");if(i.length===0)return[];let[s,...o]=i,u=s.endsWith("?"),f=s.replace(/\?$/,"");if(o.length===0)return u?[f,""]:[f];let d=iy(o.join("/")),m=[];return m.push(...d.map(g=>g===""?f:[f,g].join("/"))),u&&m.push(...d),m.map(g=>n.startsWith("/")&&g===""?"/":g)}function gw(n){n.sort((i,s)=>i.score!==s.score?s.score-i.score:_w(i.routesMeta.map(o=>o.childrenIndex),s.routesMeta.map(o=>o.childrenIndex)))}var mw=/^:[\w-]+$/,pw=3,yw=2,vw=1,bw=10,ww=-2,Wm=n=>n==="*";function Sw(n,i){let s=n.split("/"),o=s.length;return s.some(Wm)&&(o+=ww),i&&(o+=yw),s.filter(u=>!Wm(u)).reduce((u,f)=>u+(mw.test(f)?pw:f===""?vw:bw),o)}function _w(n,i){return n.length===i.length&&n.slice(0,-1).every((o,u)=>o===i[u])?n[n.length-1]-i[i.length-1]:0}function xw(n,i,s=!1){let{routesMeta:o}=n,u={},f="/",d=[];for(let m=0;m<o.length;++m){let g=o[m],h=m===o.length-1,v=f==="/"?i:i.slice(f.length)||"/",y=nl({path:g.relativePath,caseSensitive:g.caseSensitive,end:h},v),w=g.route;if(!y&&h&&s&&!o[o.length-1].route.index&&(y=nl({path:g.relativePath,caseSensitive:g.caseSensitive,end:!1},v)),!y)return null;
58Object.assign(u,y.params),d.push({params:u,pathname:In([f,y.pathname]),pathnameBase:Ow(In([f,y.pathnameBase])),route:w}),y.pathnameBase!=="/"&&(f=In([f,y.pathnameBase]))}return d}function nl(n,i){typeof n=="string"&&(n={path:n,caseSensitive:!1,end:!0});let[s,o]=Ew(n.path,n.caseSensitive,n.end),u=i.match(s);if(!u)return null;let f=u[0],d=f.replace(/(.)\/+$/,"$1"),m=u.slice(1);return{params:o.reduce((h,{paramName:v,isOptional:y},w)=>{if(v==="*"){let E=m[w]||"";d=f.slice(0,f.length-E.length).replace(/(.)\/+$/,"$1")}const _=m[w];return y&&!_?h[v]=void 0:h[v]=(_||"").replace(/%2F/g,"/"),h},{}),pathname:f,pathnameBase:d,pattern:n}}function Ew(n,i=!1,s=!0){En(n==="*"||!n.endsWith("*")||n.endsWith("/*"),`Route path "${n}" will be treated as if it were "${n.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${n.replace(/\*$/,"/*")}".`);let o=[],u="^"+n.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(d,m,g)=>(o.push({paramName:m,isOptional:g!=null}),g?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return n.endsWith("*")?(o.push({paramName:"*"}),u+=n==="*"||n==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):s?u+="\\/*$":n!==""&&n!=="/"&&(u+="(?:(?=\\/|$))"),[new RegExp(u,i?void 0:"i"),o]}function Tw(n){try{return n.split("/").map(i=>decodeURIComponent(i).replace(/\//g,"%2F")).join("/")}catch(i){return En(!1,`The URL path "${n}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${i}).`),n}}function Xn(n,i){if(i==="/")return n;if(!n.toLowerCase().startsWith(i.toLowerCase()))return null;let s=i.endsWith("/")?i.length-1:i.length,o=n.charAt(s);return o&&o!=="/"?null:n.slice(s)||"/"}function Rw(n,i="/"){let{pathname:s,search:o="",hash:u=""}=typeof n=="string"?ns(n):n;return{pathname:s?s.startsWith("/")?s:Aw(s,i):i,search:kw(o),hash:Mw(u)}}function Aw(n,i){let s=i.replace(/\/+$/,"").split("/");return n.split("/").forEach(u=>{u===".."?s.length>1&&s.pop():u!=="."&&s.push(u)}),s.length>1?s.join("/"):"/"}function Vc(n,i,s,o){return`Cannot include a '${n}' character in a manually specified \`to.${i}\` field [${JSON.stringify(o)}].  Please separate it out to the \`to.${s}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function Cw(n){return n.filter((i,s)=>s===0||i.route.path&&i.route.path.length>0)}function ay(n){let i=Cw(n);return i.map((s,o)=>o===i.length-1?s.pathname:s.pathnameBase)}function sy(n,i,s,o=!1){let u;typeof n=="string"?u=ns(n):(u={...n},je(!u.pathname||!u.pathname.includes("?"),Vc("?","pathname","search",u)),je(!u.pathname||!u.pathname.includes("#"),Vc("#","pathname","hash",u)),je(!u.search||!u.search.includes("#"),Vc("#","search","hash",u)));let f=n===""||u.pathname==="",d=f?"/":u.pathname,m;if(d==null)m=s;else{let y=i.length-1;if(!o&&d.startsWith("..")){let w=d.split("/");for(;w[0]==="..";)w.shift(),y-=1;u.pathname=w.join("/")}m=y>=0?i[y]:"/"}let g=Rw(u,m),h=d&&d!=="/"&&d.endsWith("/"),v=(f||d===".")&&s.endsWith("/");return!g.pathname.endsWith("/")&&(h||v)&&(g.pathname+="/"),g}var In=n=>n.join("/").replace(/\/\/+/g,"/"),Ow=n=>n.replace(/\/+$/,"").replace(/^\/*/,"/"),kw=n=>!n||n==="?"?"":n.startsWith("?")?n:"?"+n,Mw=n=>!n||n==="#"?"":n.startsWith("#")?n:"#"+n;function Dw(n){return n!=null&&typeof n.status=="number"&&typeof n.statusText=="string"&&typeof n.internal=="boolean"&&"data"in n}var ry=["POST","PUT","PATCH","DELETE"];new Set(ry);var Nw=["GET",...ry];new Set(Nw);var is=S.createContext(null);is.displayName="DataRouter";var ml=S.createContext(null);ml.displayName="DataRouterState";S.createContext(!1);var oy=S.createContext({isTransitioning:!1});oy.displayName="ViewTransition";var Uw=S.createContext(new Map);Uw.displayName="Fetchers";var qw=S.createContext(null);qw.displayName="Await";var Rn=S.createContext(null);Rn.displayName="Navigation";var Sr=S.createContext(null);Sr.displayName="Location";var Jn=S.createContext({outlet:null,matches:[],isDataRoute:!1});Jn.displayName="Route";var Df=S.createContext(null);Df.displayName="RouteError";function zw(n,{relative:i}={}){je(_r(),"useHref() may be used only in the context of a <Router> component.");let{basename:s,navigator:o}=S.useContext(Rn),{hash:u,pathname:f,search:d}=xr(n,{relative:i}),m=f;return s!=="/"&&(m=f==="/"?s:In([s,f])),o.createHref({pathname:m,search:d,hash:u})}function _r(){return S.useContext(Sr)!=null}function ki(){return je(_r(),"useLocation() may be used only in the context of a <Router> component."),S.useContext(Sr).location}var ly="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function uy(n){S.useContext(Rn).static||S.useLayoutEffect(n)}function Lw(){let{isDataRoute:n}=S.useContext(Jn);return n?Kw():Hw()}function Hw(){je(_r(),"useNavigate() may be used only in the context of a <Router> component.");let n=S.useContext(is),{basename:i,navigator:s}=S.useContext(Rn),{matches:o}=S.useContext(Jn),{pathname:u}=ki(),f=JSON.stringify(ay(o)),d=S.useRef(!1);return uy(()=>{d.current=!0}),S.useCallback((g,h={})=>
58{if(En(d.current,ly),!d.current)return;if(typeof g=="number"){s.go(g);return}let v=sy(g,JSON.parse(f),u,h.relative==="path");n==null&&i!=="/"&&(v.pathname=v.pathname==="/"?i:In([i,v.pathname])),(h.replace?s.replace:s.push)(v,h.state,h)},[i,s,f,u,n])}S.createContext(null);function xr(n,{relative:i}={}){let{matches:s}=S.useContext(Jn),{pathname:o}=ki(),u=JSON.stringify(ay(s));return S.useMemo(()=>sy(n,JSON.parse(u),o,i==="path"),[n,u,o,i])}function Bw(n,i){return cy(n,i)}function cy(n,i,s,o,u){je(_r(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:f}=S.useContext(Rn),{matches:d}=S.useContext(Jn),m=d[d.length-1],g=m?m.params:{},h=m?m.pathname:"/",v=m?m.pathnameBase:"/",y=m&&m.route;{let z=y&&y.path||"";fy(h,!y||z.endsWith("*")||z.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${h}" (under <Route path="${z}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
59
60Please change the parent <Route path="${z}"> to <Route path="${z==="/"?"*":`${z}/*`}">.`)}let w=ki(),_;if(i){let z=typeof i=="string"?ns(i):i;je(v==="/"||z.pathname?.startsWith(v),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${v}" but pathname "${z.pathname}" was given in the \`location\` prop.`),_=z}else _=w;let E=_.pathname||"/",k=E;if(v!=="/"){let z=v.replace(/^\//,"").split("/");k="/"+E.replace(/^\//,"").split("/").slice(z.length).join("/")}let A=ty(n,{pathname:k});En(y||A!=null,`No routes matched location "${_.pathname}${_.search}${_.hash}" `),En(A==null||A[A.length-1].route.element!==void 0||A[A.length-1].route.Component!==void 0||A[A.length-1].route.lazy!==void 0,`Matched leaf route at location "${_.pathname}${_.search}${_.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let C=Yw(A&&A.map(z=>Object.assign({},z,{params:Object.assign({},g,z.params),pathname:In([v,f.encodeLocation?f.encodeLocation(z.pathname).pathname:z.pathname]),pathnameBase:z.pathnameBase==="/"?v:In([v,f.encodeLocation?f.encodeLocation(z.pathnameBase).pathname:z.pathnameBase])})),d,s,o,u);return i&&C?S.createElement(Sr.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",..._},navigationType:"POP"}},C):C}function jw(){let n=Fw(),i=Dw(n)?`${n.status} ${n.statusText}`:n instanceof Error?n.message:JSON.stringify(n),s=n instanceof Error?n.stack:null,o="rgba(200,200,200, 0.5)",u={padding:"0.5rem",backgroundColor:o},f={padding:"2px 4px",backgroundColor:o},d=null;return console.error("Error handled by React Router default ErrorBoundary:",n),d=S.createElement(S.Fragment,null,S.createElement("p",null,"💿 Hey developer 👋"),S.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",S.createElement("code",{style:f},"ErrorBoundary")," or"," ",S.createElement("code",{style:f},"errorElement")," prop on your route.")),S.createElement(S.Fragment,null,S.createElement("h2",null,"Unexpected Application Error!"),S.createElement("h3",{style:{fontStyle:"italic"}},i),s?S.createElement("pre",{style:u},s):null,d)}var Pw=S.createElement(jw,null),Vw=class extends S.Component{constructor(n){super(n),this.state={location:n.location,revalidation:n.revalidation,error:n.error}}static getDerivedStateFromError(n){return{error:n}}static getDerivedStateFromProps(n,i){return i.location!==n.location||i.revalidation!=="idle"&&n.revalidation==="idle"?{error:n.error,location:n.location,revalidation:n.revalidation}:{error:n.error!==void 0?n.error:i.error,location:i.location,revalidation:n.revalidation||i.revalidation}}componentDidCatch(n,i){this.props.unstable_onError?this.props.unstable_onError(n,i):console.error("React Router caught the following error during render",n)}render(){return this.state.error!==void 0?S.createElement(Jn.Provider,{value:this.props.routeContext},S.createElement(Df.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function Qw({routeContext:n,match:i,children:s}){let o=S.useContext(is);return o&&o.static&&o.staticContext&&(i.route.errorElement||i.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=i.route.id),S.createElement(Jn.Provider,{value:n},s)}function Yw(n,i=[],s=null,o=null,u=null){if(n==null){if(!s)return null;if(s.errors)n=s.matches;else if(i.length===0&&!s.initialized&&s.matches.length>0)n=s.matches;else return null}let f=n,d=s?.errors;if(d!=null){let h=f.findIndex(v=>v.route.id&&d?.[v.route.id]!==void 0);je(h>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(d).join(",")}`),f=f.slice(0,Math.min(f.length,h+1))}let m=!1,g=-1;if(s)for(let h=0;h<f.length;h++){let v=f[h];if((v.route.HydrateFallback||v.route.hydrateFallbackElement)&&(g=h),v.route.id){let{loaderData:y,errors:w}
60=s,_=v.route.loader&&!y.hasOwnProperty(v.route.id)&&(!w||w[v.route.id]===void 0);if(v.route.lazy||_){m=!0,g>=0?f=f.slice(0,g+1):f=[f[0]];break}}}return f.reduceRight((h,v,y)=>{let w,_=!1,E=null,k=null;s&&(w=d&&v.route.id?d[v.route.id]:void 0,E=v.route.errorElement||Pw,m&&(g<0&&y===0?(fy("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),_=!0,k=null):g===y&&(_=!0,k=v.route.hydrateFallbackElement||null)));let A=i.concat(f.slice(0,y+1)),C=()=>{let z;return w?z=E:_?z=k:v.route.Component?z=S.createElement(v.route.Component,null):v.route.element?z=v.route.element:z=h,S.createElement(Qw,{match:v,routeContext:{outlet:h,matches:A,isDataRoute:s!=null},children:z})};return s&&(v.route.ErrorBoundary||v.route.errorElement||y===0)?S.createElement(Vw,{location:s.location,revalidation:s.revalidation,component:E,error:w,children:C(),routeContext:{outlet:null,matches:A,isDataRoute:!0},unstable_onError:o}):C()},null)}function Nf(n){return`${n} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function Gw(n){let i=S.useContext(is);return je(i,Nf(n)),i}function $w(n){let i=S.useContext(ml);return je(i,Nf(n)),i}function Iw(n){let i=S.useContext(Jn);return je(i,Nf(n)),i}function Uf(n){let i=Iw(n),s=i.matches[i.matches.length-1];return je(s.route.id,`${n} can only be used on routes that contain a unique "id"`),s.route.id}function Xw(){return Uf("useRouteId")}function Fw(){let n=S.useContext(Df),i=$w("useRouteError"),s=Uf("useRouteError");return n!==void 0?n:i.errors?.[s]}function Kw(){let{router:n}=Gw("useNavigate"),i=Uf("useNavigate"),s=S.useRef(!1);return uy(()=>{s.current=!0}),S.useCallback(async(u,f={})=>{En(s.current,ly),s.current&&(typeof u=="number"?n.navigate(u):await n.navigate(u,{fromRouteId:i,...f}))},[n,i])}var ep={};function fy(n,i,s){!i&&!ep[n]&&(ep[n]=!0,En(!1,s))}S.memo(Zw);function Zw({routes:n,future:i,state:s,unstable_onError:o}){return cy(n,void 0,s,o,i)}function rf(n){je(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function Jw({basename:n="/",children:i=null,location:s,navigationType:o="POP",navigator:u,static:f=!1}){je(!_r(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let d=n.replace(/^\/*/,"/"),m=S.useMemo(()=>({basename:d,navigator:u,static:f,future:{}}),[d,u,f]);typeof s=="string"&&(s=ns(s));let{pathname:g="/",search:h="",hash:v="",state:y=null,key:w="default"}=s,_=S.useMemo(()=>{let E=Xn(g,d);return E==null?null:{location:{pathname:E,search:h,hash:v,state:y,key:w},navigationType:o}},[d,g,h,v,y,w,o]);return En(_!=null,`<Router basename="${d}"> is not able to match the URL "${g}${h}${v}" because it does not start with the basename, so the <Router> won't render anything.`),_==null?null:S.createElement(Rn.Provider,{value:m},S.createElement(Sr.Provider,{children:i,value:_}))}function Ww({children:n,location:i}){return Bw(of(n),i)}function of(n,i=[]){let s=[];return S.Children.forEach(n,(o,u)=>{if(!S.isValidElement(o))return;let f=[...i,u];if(o.type===S.Fragment){s.push.apply(s,of(o.props.children,f));return}je(o.type===rf,`[${typeof o.type=="string"?o.type:o.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),je(!o.props.index||!o.props.children,"An index route cannot have child routes.");let d={id:o.props.id||f.join("-"),caseSensitive:o.props.caseSensitive,element:o.props.element,Component:o.props.Component,index:o.props.index,path:o.props.path,loader:o.props.loader,action:o.props.action,hydrateFallbackElement:o.props.hydrateFallbackElement,HydrateFallback:o.props.HydrateFallback,errorElement:o.props.errorElement,ErrorBoundary:o.props.ErrorBoundary,hasErrorBoundary:o.props.hasErrorBoundary===!0||o.props.ErrorBoundary!=null||o.props.errorElement!=null,shouldRevalidate:o.props.shouldRevalidate,handle:o.props.handle,lazy:o.props.lazy};o.props.children&&(d.children=of(o.props.children,f)),s.push(d)}),s}var Jo="get",Wo="application/x-www-form-urlencoded";function pl(n){return n!=null&&typeof n.tagName=="string"}function eS(n){return pl(n)&&n.tagName.toLowerCase()==="button"}function tS(n){return pl(n)&&n.tagName.toLowerCase()==="form"}function nS(n){return pl(n)&&n.tagName.toLowerCase()==="input"}function iS(n){return!!(n.metaKey||n.altKey||n.ctrlKey||n.shiftKey)}function aS(n,i){return n.button===0&&(!i||i==="_self")&&!iS(n)}var Vo=null;function sS(){if(Vo===null)try{new FormData(document.createElement("form"),0),Vo=!1}catch{Vo=!0}return Vo}var rS=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Qc(n){return n!=null&&!rS.has(n)?(En(!1,`"${n}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Wo}"`),null):n}function oS(n,i){let s,o,u,f,d;if(tS(n)){let m=n.getAttribute("action");
60o=m?Xn(m,i):null,s=n.getAttribute("method")||Jo,u=Qc(n.getAttribute("enctype"))||Wo,f=new FormData(n)}else if(eS(n)||nS(n)&&(n.type==="submit"||n.type==="image")){let m=n.form;if(m==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let g=n.getAttribute("formaction")||m.getAttribute("action");if(o=g?Xn(g,i):null,s=n.getAttribute("formmethod")||m.getAttribute("method")||Jo,u=Qc(n.getAttribute("formenctype"))||Qc(m.getAttribute("enctype"))||Wo,f=new FormData(m,n),!sS()){let{name:h,type:v,value:y}=n;if(v==="image"){let w=h?`${h}.`:"";f.append(`${w}x`,"0"),f.append(`${w}y`,"0")}else h&&f.append(h,y)}}else{if(pl(n))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');s=Jo,o=null,u=Wo,d=n}return f&&u==="text/plain"&&(d=f,f=void 0),{action:o,method:s.toLowerCase(),encType:u,formData:f,body:d}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function qf(n,i){if(n===!1||n===null||typeof n>"u")throw new Error(i)}function lS(n,i,s){let o=typeof n=="string"?new URL(n,typeof window>"u"?"server://singlefetch/":window.location.origin):n;return o.pathname==="/"?o.pathname=`_root.${s}`:i&&Xn(o.pathname,i)==="/"?o.pathname=`${i.replace(/\/$/,"")}/_root.${s}`:o.pathname=`${o.pathname.replace(/\/$/,"")}.${s}`,o}async function uS(n,i){if(n.id in i)return i[n.id];try{let s=await import(n.module);return i[n.id]=s,s}catch(s){return console.error(`Error loading route module \`${n.module}\`, reloading page...`),console.error(s),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function cS(n){return n==null?!1:n.href==null?n.rel==="preload"&&typeof n.imageSrcSet=="string"&&typeof n.imageSizes=="string":typeof n.rel=="string"&&typeof n.href=="string"}async function fS(n,i,s){let o=await Promise.all(n.map(async u=>{let f=i.routes[u.route.id];if(f){let d=await uS(f,s);return d.links?d.links():[]}return[]}));return mS(o.flat(1).filter(cS).filter(u=>u.rel==="stylesheet"||u.rel==="preload").map(u=>u.rel==="stylesheet"?{...u,rel:"prefetch",as:"style"}:{...u,rel:"prefetch"}))}function tp(n,i,s,o,u,f){let d=(g,h)=>s[h]?g.route.id!==s[h].route.id:!0,m=(g,h)=>s[h].pathname!==g.pathname||s[h].route.path?.endsWith("*")&&s[h].params["*"]!==g.params["*"];return f==="assets"?i.filter((g,h)=>d(g,h)||m(g,h)):f==="data"?i.filter((g,h)=>{let v=o.routes[g.route.id];if(!v||!v.hasLoader)return!1;if(d(g,h)||m(g,h))return!0;if(g.route.shouldRevalidate){let y=g.route.shouldRevalidate({currentUrl:new URL(u.pathname+u.search+u.hash,window.origin),currentParams:s[0]?.params||{},nextUrl:new URL(n,window.origin),nextParams:g.params,defaultShouldRevalidate:!0});if(typeof y=="boolean")return y}return!0}):[]}function dS(n,i,{includeHydrateFallback:s}={}){return hS(n.map(o=>{let u=i.routes[o.route.id];if(!u)return[];let f=[u.module];return u.clientActionModule&&(f=f.concat(u.clientActionModule)),u.clientLoaderModule&&(f=f.concat(u.clientLoaderModule)),s&&u.hydrateFallbackModule&&(f=f.concat(u.hydrateFallbackModule)),u.imports&&(f=f.concat(u.imports)),f}).flat(1))}function hS(n){return[...new Set(n)]}function gS(n){let i={},s=Object.keys(n).sort();for(let o of s)i[o]=n[o];return i}function mS(n,i){let s=new Set;return new Set(i),n.reduce((o,u)=>{let f=JSON.stringify(gS(u));return s.has(f)||(s.add(f),o.push({key:f,link:u})),o},[])}function dy(){let n=S.useContext(is);return qf(n,"You must render this element inside a <DataRouterContext.Provider> element"),n}function pS(){let n=S.useContext(ml);return qf(n,"You must render this element inside a <DataRouterStateContext.Provider> element"),n}var zf=S.createContext(void 0);zf.displayName="FrameworkContext";function hy(){let n=S.useContext(zf);return qf(n,"You must render this element inside a <HydratedRouter> element"),n}function yS(n,i){let s=S.useContext(zf),[o,u]=S.useState(!1),[f,d]=S.useState(!1),{onFocus:m,onBlur:g,onMouseEnter:h,onMouseLeave:v,onTouchStart:y}=i,w=S.useRef(null);S.useEffect(()=>{if(n==="render"&&d(!0),n==="viewport"){let k=C=>{C.forEach(z=>{d(z.isIntersecting)})},A=new IntersectionObserver(k,{threshold:.5});return w.current&&A.observe(w.current),()=>{A.disconnect()}}},[n]),S.useEffect(()=>{if(o){let k=setTimeout(()=>{d(!0)},100);return()=>{clearTimeout(k)}}},[o]);let _=()=>{u(!0)},E=()=>{u(!1),d(!1)};return s?n!=="intent"?[f,w,{}]:[f,w,{onFocus:rr(m,_),onBlur:rr(g,E),onMouseEnter:rr(h,_),onMouseLeave:rr(v,E),onTouchStart:rr(y,_)}]:[!1,w,{}]}function rr(n,i){return s=>{n&&n(s),s.defaultPrevented||i(s)}}function vS({page:n,...i}){let{router:s}=dy(),o=S.useMemo(()=>ty(s.routes,n,s.basename),[s.routes,n,s.basename]);return o?S.createElement(wS,{page:n,matches:o,...i}):null}function bS(n){let{manifest:i,routeModules:s}=hy(),[o,u]=S.useState([]);return S.useEffect(()=>{let f=!1;return fS(n,i,s).then(d=>{f||u(d)}),()=>{f=!0}},[n,i,s]),o}function wS({page:n,matches:i,...s}){let o=ki(),{manifest:u,routeModules:f}=hy(),{basename:d}=dy(),{loaderData:m,matches:g}=pS(),h=S.useMemo(()=>tp(n,i,g,u,o,"data"),[n,i,g,u,o]),v=S.useMemo(()=>tp(n,i,g,u,o,"assets"),[n,i,g,u,o]),y=S.useMemo(()=>
60{if(n===o.pathname+o.search+o.hash)return[];let E=new Set,k=!1;if(i.forEach(C=>{let z=u.routes[C.route.id];!z||!z.hasLoader||(!h.some(j=>j.route.id===C.route.id)&&C.route.id in m&&f[C.route.id]?.shouldRevalidate||z.hasClientLoader?k=!0:E.add(C.route.id))}),E.size===0)return[];let A=lS(n,d,"data");return k&&E.size>0&&A.searchParams.set("_routes",i.filter(C=>E.has(C.route.id)).map(C=>C.route.id).join(",")),[A.pathname+A.search]},[d,m,o,u,h,i,n,f]),w=S.useMemo(()=>dS(v,u),[v,u]),_=bS(v);return S.createElement(S.Fragment,null,y.map(E=>S.createElement("link",{key:E,rel:"prefetch",as:"fetch",href:E,...s})),w.map(E=>S.createElement("link",{key:E,rel:"modulepreload",href:E,...s})),_.map(({key:E,link:k})=>S.createElement("link",{key:E,nonce:s.nonce,...k})))}function SS(...n){return i=>{n.forEach(s=>{typeof s=="function"?s(i):s!=null&&(s.current=i)})}}var gy=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{gy&&(window.__reactRouterVersion="7.8.2")}catch{}function _S({basename:n,children:i,window:s}){let o=S.useRef();o.current==null&&(o.current=uw({window:s,v5Compat:!0}));let u=o.current,[f,d]=S.useState({action:u.action,location:u.location}),m=S.useCallback(g=>{S.startTransition(()=>d(g))},[d]);return S.useLayoutEffect(()=>u.listen(m),[u,m]),S.createElement(Jw,{basename:n,children:i,location:f.location,navigationType:f.action,navigator:u})}var my=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Lf=S.forwardRef(function({onClick:i,discover:s="render",prefetch:o="none",relative:u,reloadDocument:f,replace:d,state:m,target:g,to:h,preventScrollReset:v,viewTransition:y,...w},_){let{basename:E}=S.useContext(Rn),k=typeof h=="string"&&my.test(h),A,C=!1;if(typeof h=="string"&&k&&(A=h,gy))try{let ee=new URL(window.location.href),ue=h.startsWith("//")?new URL(ee.protocol+h):new URL(h),ge=Xn(ue.pathname,E);ue.origin===ee.origin&&ge!=null?h=ge+ue.search+ue.hash:C=!0}catch{En(!1,`<Link to="${h}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let z=zw(h,{relative:u}),[j,F,H]=yS(o,w),I=RS(h,{replace:d,state:m,target:g,preventScrollReset:v,relative:u,viewTransition:y});function Z(ee){i&&i(ee),ee.defaultPrevented||I(ee)}let $=S.createElement("a",{...w,...H,href:A||z,onClick:C||f?i:Z,ref:SS(_,F),target:g,"data-discover":!k&&s==="render"?"true":void 0});return j&&!k?S.createElement(S.Fragment,null,$,S.createElement(vS,{page:z})):$});Lf.displayName="Link";var xS=S.forwardRef(function({"aria-current":i="page",caseSensitive:s=!1,className:o="",end:u=!1,style:f,to:d,viewTransition:m,children:g,...h},v){let y=xr(d,{relative:h.relative}),w=ki(),_=S.useContext(ml),{navigator:E,basename:k}=S.useContext(Rn),A=_!=null&&MS(y)&&m===!0,C=E.encodeLocation?E.encodeLocation(y).pathname:y.pathname,z=w.pathname,j=_&&_.navigation&&_.navigation.location?_.navigation.location.pathname:null;s||(z=z.toLowerCase(),j=j?j.toLowerCase():null,C=C.toLowerCase()),j&&k&&(j=Xn(j,k)||j);const F=C!=="/"&&C.endsWith("/")?C.length-1:C.length;let H=z===C||!u&&z.startsWith(C)&&z.charAt(F)==="/",I=j!=null&&(j===C||!u&&j.startsWith(C)&&j.charAt(C.length)==="/"),Z={isActive:H,isPending:I,isTransitioning:A},$=H?i:void 0,ee;typeof o=="function"?ee=o(Z):ee=[o,H?"active":null,I?"pending":null,A?"transitioning":null].filter(Boolean).join(" ");let ue=typeof f=="function"?f(Z):f;return S.createElement(Lf,{...h,"aria-current":$,className:ee,ref:v,style:ue,to:d,viewTransition:m},typeof g=="function"?g(Z):g)});xS.displayName="NavLink";var ES=S.forwardRef(({discover:n="render",fetcherKey:i,navigate:s,reloadDocument:o,replace:u,state:f,method:d=Jo,action:m,onSubmit:g,relative:h,preventScrollReset:v,viewTransition:y,...w},_)=>{let E=OS(),k=kS(m,{relative:h}),A=d.toLowerCase()==="get"?"get":"post",C=typeof m=="string"&&my.test(m),z=j=>{if(g&&g(j),j.defaultPrevented)return;j.preventDefault();let F=j.nativeEvent.submitter,H=F?.getAttribute("formmethod")||d;E(F||j.currentTarget,{fetcherKey:i,method:H,navigate:s,replace:u,state:f,relative:h,preventScrollReset:v,viewTransition:y})};return S.createElement("form",{ref:_,method:A,action:k,onSubmit:o?g:z,...w,"data-discover":!C&&n==="render"?"true":void 0})});ES.displayName="Form";function TS(n){return`${n} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function py(n){let i=S.useContext(is);return je(i,TS(n)),i}function RS(n,{target:i,replace:s,state:o,preventScrollReset:u,relative:f,viewTransition:d}={}){let m=Lw(),g=ki(),h=xr(n,{relative:f});return S.useCallback(v=>{if(aS(v,i)){v.preventDefault();let y=s!==void 0?s:fr(g)===fr(h);m(n,{replace:y,state:o,preventScrollReset:u,relative:f,viewTransition:d})}},[g,m,h,s,o,i,n,u,f,d])}var AS=0,CS=()=>`__${String(++AS)}__`;function OS(){let{router:n}=py("useSubmit"),{basename:i}=S.useContext(Rn),s=Xw();return S.useCallback(async(o,u={})=>{let{action:f,method:d,encType:m,formData:g,body:h}=oS(o,i);if(u.navigate===!1){let v=u.fetcherKey||CS();await n.fetch(v,s,u.action||f,{preventScrollReset:u.preventScrollReset,formData:g,body:h,formMethod:u.method||d,formEncType:u.encType||m,flushSync:u.flushSync})}else await n.navigate(u.action||f,{preventScrollReset:u.preventScrollReset,formData:g,body:h,formMethod:u.method||d,formEncType:u.encType||m,replace:u.replace,state:u.state,fromRouteId:s,flushSync:u.flushSync,viewTransition:u.viewTransition})},[n,i,s])}function kS(n,{relative:i}={}){let{basename:s}=S.useContext(Rn),o=S.useContext(Jn);je(o,"useFormAction must be used inside a RouteContext");let[u]=o.matches.slice(-1),f={...xr(n||".",{relative:i})},d=ki();if(n==null){f.search=d.search;let m=new URLSearchParams(f.search),g=m.getAll("index");if(g.some(v=>v==="")){m.delete("index"),g.filter(y=>
60y).forEach(y=>m.append("index",y));let v=m.toString();f.search=v?`?${v}`:""}}return(!n||n===".")&&u.route.index&&(f.search=f.search?f.search.replace(/^\?/,"?index&"):"?index"),s!=="/"&&(f.pathname=f.pathname==="/"?s:In([s,f.pathname])),fr(f)}function MS(n,{relative:i}={}){let s=S.useContext(oy);je(s!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`.  Did you accidentally import `RouterProvider` from `react-router`?");let{basename:o}=py("useViewTransitionState"),u=xr(n,{relative:i});if(!s.isTransitioning)return!1;let f=Xn(s.currentLocation.pathname,o)||s.currentLocation.pathname,d=Xn(s.nextLocation.pathname,o)||s.nextLocation.pathname;return nl(u.pathname,d)!=null||nl(u.pathname,f)!=null}var Hf=ey();const DS=Wp(Hf);var Sn=[],Zt=[],NS=Uint8Array,Yc="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(var $a=0,US=Yc.length;$a<US;++$a)Sn[$a]=Yc[$a],Zt[Yc.charCodeAt($a)]=$a;Zt[45]=62;Zt[95]=63;function qS(n){var i=n.length;if(i%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var s=n.indexOf("=");s===-1&&(s=i);var o=s===i?0:4-s%4;return[s,o]}function zS(n,i,s){return(i+s)*3/4-s}function dr(n){var i,s=qS(n),o=s[0],u=s[1],f=new NS(zS(n,o,u)),d=0,m=u>0?o-4:o,g;for(g=0;g<m;g+=4)i=Zt[n.charCodeAt(g)]<<18|Zt[n.charCodeAt(g+1)]<<12|Zt[n.charCodeAt(g+2)]<<6|Zt[n.charCodeAt(g+3)],f[d++]=i>>16&255,f[d++]=i>>8&255,f[d++]=i&255;return u===2&&(i=Zt[n.charCodeAt(g)]<<2|Zt[n.charCodeAt(g+1)]>>4,f[d++]=i&255),u===1&&(i=Zt[n.charCodeAt(g)]<<10|Zt[n.charCodeAt(g+1)]<<4|Zt[n.charCodeAt(g+2)]>>2,f[d++]=i>>8&255,f[d++]=i&255),f}function LS(n){return Sn[n>>18&63]+Sn[n>>12&63]+Sn[n>>6&63]+Sn[n&63]}function HS(n,i,s){for(var o,u=[],f=i;f<s;f+=3)o=(n[f]<<16&16711680)+(n[f+1]<<8&65280)+(n[f+2]&255),u.push(LS(o));return u.join("")}function hr(n){for(var i,s=n.length,o=s%3,u=[],f=16383,d=0,m=s-o;d<m;d+=f)u.push(HS(n,d,d+f>m?m:d+f));return o===1?(i=n[s-1],u.push(Sn[i>>2]+Sn[i<<4&63]+"==")):o===2&&(i=(n[s-2]<<8)+n[s-1],u.push(Sn[i>>10]+Sn[i>>4&63]+Sn[i<<2&63]+"=")),u.join("")}function Ri(n){if(n===void 0)return{};if(!yy(n))throw new Error(`The arguments to a Convex function must be an object. Received: ${n}`);return n}function BS(n){if(typeof n>"u")throw new Error("Client created with undefined deployment address. If you used an environment variable, check that it's set.");if(typeof n!="string")throw new Error(`Invalid deployment address: found ${n}".`);if(!(n.startsWith("http:")||n.startsWith("https:")))throw new Error(`Invalid deployment address: Must start with "https://" or "http://". Found "${n}".`);try{new URL(n)}catch{throw new Error(`Invalid deployment address: "${n}" is not a valid URL. If you believe this URL is correct, use the \`skipConvexDeploymentUrlCheck\` option to bypass this.`)}if(n.endsWith(".convex.site"))throw new Error(`Invalid deployment address: "${n}" ends with .convex.site, which is used for HTTP Actions. Convex deployment URLs typically end with .convex.cloud? If you believe this URL is correct, use the \`skipConvexDeploymentUrlCheck\` option to bypass this.`)}function yy(n){const i=typeof n=="object",s=Object.getPrototypeOf(n),o=s===null||s===Object.prototype||s?.constructor?.name==="Object";return i&&o}const vy=!0,Za=BigInt("-9223372036854775808"),Bf=BigInt("9223372036854775807"),lf=BigInt("0"),jS=BigInt("8"),PS=BigInt("256");function by(n){return Number.isNaN(n)||!Number.isFinite(n)||Object.is(n,-0)}function VS(n){n<lf&&(n-=Za+Za);let i=n.toString(16);i.length%2===1&&(i="0"+i);const s=new Uint8Array(new ArrayBuffer(8));let o=0;for(const u of i.match(/.{2}/g).reverse())s.set([parseInt(u,16)],o++),n>>=jS;return hr(s)}function QS(n){const i=dr(n);if(i.byteLength!==8)throw new Error(`Received ${i.byteLength} bytes, expected 8 for $integer`);let s=lf,o=lf;for(const u of i)s+=BigInt(u)*PS**o,o++;return s>Bf&&(s+=Za+Za),s}function YS(n){if(n<Za||Bf<n)throw new Error(`BigInt ${n} does not fit into a 64-bit signed integer.`);const i=new ArrayBuffer(8);
60return new DataView(i).setBigInt64(0,n,!0),hr(new Uint8Array(i))}function GS(n){const i=dr(n);if(i.byteLength!==8)throw new Error(`Received ${i.byteLength} bytes, expected 8 for $integer`);return new DataView(i.buffer).getBigInt64(0,!0)}const $S=DataView.prototype.setBigInt64?YS:VS,IS=DataView.prototype.getBigInt64?GS:QS,np=1024;function wy(n){if(n.length>np)throw new Error(`Field name ${n} exceeds maximum field name length ${np}.`);if(n.startsWith("$"))throw new Error(`Field name ${n} starts with a '$', which is reserved.`);for(let i=0;i<n.length;i+=1){const s=n.charCodeAt(i);if(s<32||s>=127)throw new Error(`Field name ${n} has invalid character '${n[i]}': Field names can only contain non-control ASCII characters`)}}function Ja(n){if(n===null||typeof n=="boolean"||typeof n=="number"||typeof n=="string")return n;if(Array.isArray(n))return n.map(o=>Ja(o));if(typeof n!="object")throw new Error(`Unexpected type of ${n}`);const i=Object.entries(n);if(i.length===1){const o=i[0][0];if(o==="$bytes"){if(typeof n.$bytes!="string")throw new Error(`Malformed $bytes field on ${n}`);return dr(n.$bytes).buffer}if(o==="$integer"){if(typeof n.$integer!="string")throw new Error(`Malformed $integer field on ${n}`);return IS(n.$integer)}if(o==="$float"){if(typeof n.$float!="string")throw new Error(`Malformed $float field on ${n}`);const u=dr(n.$float);if(u.byteLength!==8)throw new Error(`Received ${u.byteLength} bytes, expected 8 for $float`);const d=new DataView(u.buffer).getFloat64(0,vy);if(!by(d))throw new Error(`Float ${d} should be encoded as a number`);return d}if(o==="$set")throw new Error("Received a Set which is no longer supported as a Convex type.");if(o==="$map")throw new Error("Received a Map which is no longer supported as a Convex type.")}const s={};for(const[o,u]of Object.entries(n))wy(o),s[o]=Ja(u);return s}function ur(n){return JSON.stringify(n,(i,s)=>s===void 0?"undefined":typeof s=="bigint"?`${s.toString()}n`:s)}function uf(n,i,s,o){if(n===void 0){const d=s&&` (present at path ${s} in original object ${ur(i)})`;throw new Error(`undefined is not a valid Convex value${d}. To learn about Convex's supported types, see https://docs.convex.dev/using/types.`)}if(n===null)return n;if(typeof n=="bigint"){if(n<Za||Bf<n)throw new Error(`BigInt ${n} does not fit into a 64-bit signed integer.`);return{$integer:$S(n)}}if(typeof n=="number")if(by(n)){const d=new ArrayBuffer(8);return new DataView(d).setFloat64(0,n,vy),{$float:hr(new Uint8Array(d))}}else return n;if(typeof n=="boolean"||typeof n=="string")return n;if(n instanceof ArrayBuffer)return{$bytes:hr(new Uint8Array(n))};if(Array.isArray(n))return n.map((d,m)=>uf(d,i,s+`[${m}]`));if(n instanceof Set)throw new Error(Gc(s,"Set",[...n],i));if(n instanceof Map)throw new Error(Gc(s,"Map",[...n],i));if(!yy(n)){const d=n?.constructor?.name,m=d?`${d} `:"";throw new Error(Gc(s,m,n,i))}const u={},f=Object.entries(n);f.sort(([d,m],[g,h])=>d===g?0:d<g?-1:1);for(const[d,m]of f)m!==void 0&&(wy(d),u[d]=uf(m,i,s+`.${d}`));return u}function Gc(n,i,s,o){return n?`${i}${ur(s)} is not a supported Convex type (present at path ${n} in original object ${ur(o)}). To learn about Convex's supported types, see https://docs.convex.dev/using/types.`:`${i}${ur(s)} is not a supported Convex type.`}function gr(n){return uf(n,n,"")}var XS=Object.defineProperty,FS=(n,i,s)=>i in n?XS(n,i,{enumerable:!0,configurable:!0,writable:!0,value:s}):n[i]=s,$c=(n,i,s)=>FS(n,typeof i!="symbol"?i+"":i,s),ip,ap;const KS=Symbol.for("ConvexError");class cf extends(ap=Error,ip=KS,ap){constructor(i){super(typeof i=="string"?i:ur(i)),$c(this,"name","ConvexError"),$c(this,"data"),$c(this,ip,!0),this.data=i}}const Sy=()=>Array.from({length:4},()=>0);Sy();Sy();const sp="1.26.2";var ZS=Object.defineProperty,JS=(n,i,s)=>i in n?ZS(n,i,{enumerable:!0,configurable:!0,writable:!0,value:s}):n[i]=s,rp=(n,i,s)=>JS(n,typeof i!="symbol"?i+"":i,s);const WS="color:rgb(0, 145, 255)";function _y(n){switch(n){case"query":return"Q";case"mutation":return"M";case"action":return"A";case"any":return"?"}}class xy{constructor(i){rp(this,"_onLogLineFuncs"),rp(this,"_verbose"),this._onLogLineFuncs={},this._verbose=i.verbose}addLogLineListener(i){let s=Math.random().toString(36).substring(2,15);for(let o=0;o<10&&this._onLogLineFuncs[s]!==void 0;o++)s=Math.random().toString(36).substring(2,15);return this._onLogLineFuncs[s]=i,()=>{delete this._onLogLineFuncs[s]}}logVerbose(...i){if(this._verbose)for(const s of Object.values(this._onLogLineFuncs))s("debug",`${new Date().toISOString()}`,...i)}log(...i){for(const s of Object.values(this._onLogLineFuncs))s("info",...i)}warn(...i){for(const s of Object.values(this._onLogLineFuncs))s("warn",...i)}error(...i){for(const s of Object.values(this._onLogLineFuncs))s("error",...i)}}function Ey(n){const i=new xy(n);return i.addLogLineListener((s,...o)=>{switch(s){case"debug":console.debug(...o);break;case"info":console.log(...o);break;case"warn":console.warn(...o);break;case"error":console.error(...o);break;default:console.log(...o)}}),i}function Ty(n){return new xy(n)}function il(n,i,s,o,u){const f=_y(s);if(typeof u=="object"&&(u=`ConvexError ${JSON.stringify(u.errorData,null,2)}`),i==="info"){const d=u.match(/^\[.*?\] /);if(d===null){n.error(`[CONVEX ${f}(${o})] Could not parse console.log`);return}const m=u.slice(1,d[0].length-2),g=u.slice(d[0].length);n.log(`%c[CONVEX ${f}(${o})] [${m}]`,WS,g)}else n.error(`[CONVEX ${f}(${o})] ${u}`)}function e_(n,i){const s=`[CONVEX FATAL ERROR] ${i}`;return n.error(s),new Error(s)}function Xa(n,i,s){return`[CONVEX ${_y(n)}(${i})] ${s.errorMessage}
61  Called by client`}function ff(n,i){return i.data=n.errorData,i}function al(n){const i=n.split(":");let s,o;return i.length===1?(s=i[0],o="default"):(s=i.slice(0,i.length-1).join(":"),o=i[i.length-1]),s.endsWith(".js")&&(s=s.slice(0,-3)),`${s}:${o}`}function Wi(n,i){return JSON.stringify({udfPath:al(n),args:gr(i)})}var t_=Object.defineProperty,n_=(n,i,s)=>i in n?t_(n,i,{enumerable:!0,configurable:!0,writable:!0,value:s}):n[i]=s,mn=(n,i,s)=>n_(n,typeof i!="symbol"?i+"":i,s);class i_{constructor(){mn(this,"nextQueryId"),mn(this,"querySetVersion"),mn(this,"querySet"),mn(this,"queryIdToToken"),mn(this,"identityVersion"),mn(this,"auth"),mn(this,"outstandingQueriesOlderThanRestart"),mn(this,"outstandingAuthOlderThanRestart"),mn(this,"paused"),mn(this,"pendingQuerySetModifications"),this.nextQueryId=0,this.querySetVersion=0,this.identityVersion=0,this.querySet=new Map,this.queryIdToToken=new Map,this.outstandingQueriesOlderThanRestart=new Set,this.outstandingAuthOlderThanRestart=!1,this.paused=!1,this.pendingQuerySetModifications=new Map}hasSyncedPastLastReconnect(){return this.outstandingQueriesOlderThanRestart.size===0&&!this.outstandingAuthOlderThanRestart}markAuthCompletion(){this.outstandingAuthOlderThanRestart=!1}subscribe(i,s,o,u){const f=al(i),d=Wi(f,s),m=this.querySet.get(d);if(m!==void 0)return m.numSubscribers+=1,{queryToken:d,modification:null,unsubscribe:()=>this.removeSubscriber(d)};{const g=this.nextQueryId++,h={id:g,canonicalizedUdfPath:f,args:s,numSubscribers:1,journal:o,componentPath:u};this.querySet.set(d,h),this.queryIdToToken.set(g,d);const v=this.querySetVersion,y=this.querySetVersion+1,w={type:"Add",queryId:g,udfPath:f,args:[gr(s)],journal:o,componentPath:u};return this.paused?this.pendingQuerySetModifications.set(g,w):this.querySetVersion=y,{queryToken:d,modification:{type:"ModifyQuerySet",baseVersion:v,newVersion:y,modifications:[w]},unsubscribe:()=>this.removeSubscriber(d)}}}transition(i){for(const s of i.modifications)switch(s.type){case"QueryUpdated":case"QueryFailed":{this.outstandingQueriesOlderThanRestart.delete(s.queryId);const o=s.journal;if(o!==void 0){const u=this.queryIdToToken.get(s.queryId);u!==void 0&&(this.querySet.get(u).journal=o)}break}case"QueryRemoved":{this.outstandingQueriesOlderThanRestart.delete(s.queryId);break}default:throw new Error(`Invalid modification ${s.type}`)}}queryId(i,s){const o=al(i),u=Wi(o,s),f=this.querySet.get(u);return f!==void 0?f.id:null}isCurrentOrNewerAuthVersion(i){return i>=this.identityVersion}setAuth(i){this.auth={tokenType:"User",value:i};const s=this.identityVersion;
61return this.paused||(this.identityVersion=s+1),{type:"Authenticate",baseVersion:s,...this.auth}}setAdminAuth(i,s){const o={tokenType:"Admin",value:i,impersonating:s};this.auth=o;const u=this.identityVersion;return this.paused||(this.identityVersion=u+1),{type:"Authenticate",baseVersion:u,...o}}clearAuth(){this.auth=void 0,this.markAuthCompletion();const i=this.identityVersion;return this.paused||(this.identityVersion=i+1),{type:"Authenticate",tokenType:"None",baseVersion:i}}hasAuth(){return!!this.auth}isNewAuth(i){return this.auth?.value!==i}queryPath(i){const s=this.queryIdToToken.get(i);return s?this.querySet.get(s).canonicalizedUdfPath:null}queryArgs(i){const s=this.queryIdToToken.get(i);return s?this.querySet.get(s).args:null}queryToken(i){return this.queryIdToToken.get(i)??null}queryJournal(i){return this.querySet.get(i)?.journal}restart(i){this.unpause(),this.outstandingQueriesOlderThanRestart.clear();const s=[];for(const f of this.querySet.values()){const d={type:"Add",queryId:f.id,udfPath:f.canonicalizedUdfPath,args:[gr(f.args)],journal:f.journal,componentPath:f.componentPath};s.push(d),i.has(f.id)||this.outstandingQueriesOlderThanRestart.add(f.id)}this.querySetVersion=1;const o={type:"ModifyQuerySet",baseVersion:0,newVersion:1,modifications:s};if(!this.auth)return this.identityVersion=0,[o,void 0];this.outstandingAuthOlderThanRestart=!0;const u={type:"Authenticate",baseVersion:0,...this.auth};return this.identityVersion=1,[o,u]}pause(){this.paused=!0}resume(){const i=this.pendingQuerySetModifications.size>0?{type:"ModifyQuerySet",baseVersion:this.querySetVersion,newVersion:++this.querySetVersion,modifications:Array.from(this.pendingQuerySetModifications.values())}:void 0,s=this.auth!==void 0?{type:"Authenticate",baseVersion:this.identityVersion++,...this.auth}:void 0;return this.unpause(),[i,s]}unpause(){this.paused=!1,this.pendingQuerySetModifications.clear()}removeSubscriber(i){const s=this.querySet.get(i);if(s.numSubscribers>1)return s.numSubscribers-=1,null;{this.querySet.delete(i),this.queryIdToToken.delete(s.id),this.outstandingQueriesOlderThanRestart.delete(s.id);const o=this.querySetVersion,u=this.querySetVersion+1,f={type:"Remove",queryId:s.id};return this.paused?this.pendingQuerySetModifications.has(s.id)?this.pendingQuerySetModifications.delete(s.id):this.pendingQuerySetModifications.set(s.id,f):this.querySetVersion=u,{type:"ModifyQuerySet",baseVersion:o,newVersion:u,modifications:[f]}}}}var a_=Object.defineProperty,s_=(n,i,s)=>i in n?a_(n,i,{enumerable:!0,configurable:!0,writable:!0,value:s}):n[i]=s,Qo=(n,i,s)=>s_(n,typeof i!="symbol"?i+"":i,s);class r_{constructor(i,s){this.logger=i,this.markConnectionStateDirty=s,Qo(this,"inflightRequests"),Qo(this,"requestsOlderThanRestart"),Qo(this,"inflightMutationsCount",0),Qo(this,"inflightActionsCount",0),this.inflightRequests=new Map,this.requestsOlderThanRestart=new Set}request(i,s){const o=new Promise(u=>{const f=s?"Requested":"NotSent";this.inflightRequests.set(i.requestId,{message:i,status:{status:f,requestedAt:new Date,onResult:u}}),i.type==="Mutation"?this.inflightMutationsCount++:i.type==="Action"&&this.inflightActionsCount++});return this.markConnectionStateDirty(),o}onResponse(i){const s=this.inflightRequests.get(i.requestId);if(s===void 0||s.status.status==="Completed")return null;const o=s.message.type==="Mutation"?"mutation":"action",u=s.message.udfPath;for(const g of i.logLines)il(this.logger,"info",o,u,g);const f=s.status;let d,m;if(i.success)d={success:!0,logLines:i.logLines,value:Ja(i.result)},m=()=>f.onResult(d);else{const g=i.result,{errorData:h}=i;il(this.logger,"error",o,u,g),d={success:!1,errorMessage:g,errorData:h!==void 0?Ja(h):void 0,logLines:i.logLines},m=()=>f.onResult(d)}return i.type==="ActionResponse"||!i.success?(m(),this.inflightRequests.delete(i.requestId),this.requestsOlderThanRestart.delete(i.requestId),s.message.type==="Action"?this.inflightActionsCount--:s.message.type==="Mutation"&&this.inflightMutationsCount--,this.markConnectionStateDirty(),{requestId:i.requestId,result:d}
61):(s.status={status:"Completed",result:d,ts:i.ts,onResolve:m},null)}removeCompleted(i){const s=new Map;for(const[o,u]of this.inflightRequests.entries()){const f=u.status;f.status==="Completed"&&f.ts.lessThanOrEqual(i)&&(f.onResolve(),s.set(o,f.result),u.message.type==="Mutation"?this.inflightMutationsCount--:u.message.type==="Action"&&this.inflightActionsCount--,this.inflightRequests.delete(o),this.requestsOlderThanRestart.delete(o))}return s.size>0&&this.markConnectionStateDirty(),s}restart(){this.requestsOlderThanRestart=new Set(this.inflightRequests.keys());const i=[];for(const[s,o]of this.inflightRequests){if(o.status.status==="NotSent"){o.status.status="Requested",i.push(o.message);continue}if(o.message.type==="Mutation")i.push(o.message);else if(o.message.type==="Action"){if(this.inflightRequests.delete(s),this.requestsOlderThanRestart.delete(s),this.inflightActionsCount--,o.status.status==="Completed")throw new Error("Action should never be in 'Completed' state");o.status.onResult({success:!1,errorMessage:"Connection lost while action was in flight",logLines:[]})}}return this.markConnectionStateDirty(),i}resume(){const i=[];for(const[,s]of this.inflightRequests)if(s.status.status==="NotSent"){s.status.status="Requested",i.push(s.message);continue}return i}hasIncompleteRequests(){for(const i of this.inflightRequests.values())if(i.status.status==="Requested")return!0;return!1}hasInflightRequests(){return this.inflightRequests.size>0}hasSyncedPastLastReconnect(){return this.requestsOlderThanRestart.size===0}timeOfOldestInflightRequest(){if(this.inflightRequests.size===0)return null;let i=Date.now();for(const s of this.inflightRequests.values())s.status.status!=="Completed"&&s.status.requestedAt.getTime()<i&&(i=s.status.requestedAt.getTime());return new Date(i)}inflightMutations(){return this.inflightMutationsCount}inflightActions(){return this.inflightActionsCount}}const sl=Symbol.for("functionName"),o_=Symbol.for("toReferencePath");function l_(n){return n[o_]??null}function u_(n){return n.startsWith("function://")}function c_(n){let i;if(typeof n=="string")u_(n)?i={functionHandle:n}:i={name:n};else if(n[sl])i={name:n[sl]};else{const s=l_(n);if(!s)throw new Error(`${n} is not a functionReference`);i={reference:s}}return i}function Fa(n){const i=c_(n);if(i.name===void 0)throw i.functionHandle!==void 0?new Error(`Expected function reference like "api.file.func" or "internal.file.func", but received function handle ${i.functionHandle}`):i.reference!==void 0?new Error(`Expected function reference in the current component like "api.file.func" or "internal.file.func", but received reference ${i.reference}`):new Error(`Expected function reference like "api.file.func" or "internal.file.func", but received ${JSON.stringify(i)}`);if(typeof n=="string")return n;const s=n[sl];if(!s)throw new Error(`${n} is not a functionReference`);return s}function Ry(n=[]){const i={get(s,o){if(typeof o=="string"){const u=[...n,o];return Ry(u)}else if(o===sl){if(n.length<2){const d=["api",...n].join(".");throw new Error(`API path is expected to be of the form \`api.moduleName.functionName\`. Found: \`${d}\``)}const u=n.slice(0,-1).join("/"),f=n[n.length-1];return f==="default"?u:u+":"+f}else return o===Symbol.toStringTag?"FunctionReference":void 0}};return new Proxy({},i)}Ry();var f_=Object.defineProperty,d_=(n,i,s)=>i in n?f_(n,i,{enumerable:!0,configurable:!0,writable:!0,value:s}):n[i]=s,rl=(n,i,s)=>d_(n,typeof i!="symbol"?i+"":i,s);class mr{constructor(i){rl(this,"queryResults"),rl(this,"modifiedQueries"),this.queryResults=i,this.modifiedQueries=[]}getQuery(i,...s){const o=Ri(s[0]),u=Fa(i),f=this.queryResults.get(Wi(u,o));if(f!==void 0)return mr.queryValue(f.result)}getAllQueries(i){const s=[],o=Fa(i);for(const u of this.queryResults.values())u.udfPath===al(o)&&s.push({args:u.args,value:mr.queryValue(u.result)});return s}setQuery(i,s,o){const u=Ri(s),f=Fa(i),d=Wi(f,u);let m;o===void 0?m=void 0:m={success:!0,value:o,logLines:[]};const g={udfPath:f,args:u,result:m};this.queryResults.set(d,g),this.modifiedQueries.push(d)}static queryValue(i){if(i!==void 0)return i.success?i.value:void 0}}class h_{constructor(){rl(this,"queryResults"),rl(this,"optimisticUpdates"),this.queryResults=new Map,this.optimisticUpdates=[]}ingestQueryResultsFromServer(i,s){this.optimisticUpdates=this.optimisticUpdates.filter(d=>!s.has(d.mutationId));const o=this.queryResults;this.queryResults=new Map(i);const u=new mr(this.queryResults);for(const d of this.optimisticUpdates)d.update(u);const f=[];for(const[d,m]of this.queryResults){const g=o.get(d);(g===void 0||g.result!==m.result)&&f.push(d)}return f}applyOptimisticUpdate(i,s){this.optimisticUpdates.push({update:i,mutationId:s});const o=new mr(this.queryResults);return i(o),o.modifiedQueries}rawQueryResult(i){return this.queryResults.get(i)}queryResult(i){const s=this.queryResults.get(i);if(s===void 0)return;const o=s.result;if(o!==void 0){if(o.success)return o.value;throw o.errorData!==void 0?ff(o,new cf(Xa("query",s.udfPath,o))):new Error(Xa("query",s.udfPath,o))}}hasQueryResult(i){return this.queryResults.get(i)!==void 0}queryLogs(i){return this.queryResults.get(i)?.result?.logLines}}var g_=Object.defineProperty,m_=(n,i,s)=>i in n?g_(n,i,{enumerable:!0,configurable:!0,writable:!0,value:s}):n[i]=s,Ic=(n,i,s)=>m_(n,typeof i!="symbol"?i+"":i,s);class Lt{constructor(i,s){Ic(this,"low"),Ic(this,"high"),Ic(this,"__isUnsignedLong__"),this.low=i|0,this.high=s|0,this.__isUnsignedLong__=!0}static isLong(i){return(i&&i.__isUnsignedLong__)===!0}static fromBytesLE(i){return new Lt(i[0]|i[1]<<8|i[2]<<16|i[3]<<24,i[4]|i[5]<<8|i[6]<<16|i[7]<<24)}toBytesLE(){const i=this.high,s=this.low;return[s&255,s>>>8&255,s>>>16&255,s>>>24,i&255,i>>>8&255,i>>>16&255,i>>>24]}static fromNumber(i){return isNaN(i)||i<0?op:i>=p_?y_:new Lt(i%cr|0,i/cr|0)}toString(){return(BigInt(this.high)*BigInt(cr)+BigInt(this.low)).toString()}equals(i){return Lt.isLong(i)||(i=Lt.fromValue(i)),this.high>>>31===1&&i.high>>>31===1?!1:this.high===i.high&&this.low===i.low}notEquals(i){return!this.equals(i)}comp(i){return Lt.isLong(i)||(i=Lt.fromValue(i)),this.equals(i)?0:i.high>>>0>this.high>>>0||i.high===this.high&&i.low>>>0>this.low>>>0?-1:1}lessThanOrEqual(i){return this.comp(i)<=0}static fromValue(i){return typeof i=="number"?Lt.fromNumber(i):new Lt(i.low,i.high)}}const op=new Lt(0,0),lp=65536,cr=lp*lp,p_=cr*cr,y_=new Lt(-1,-1);var v_=Object.defineProperty,b_=(n,i,s)=>i in n?v_(n,i,{enumerable:!0,configurable:!0,writable:!0,value:s}):n[i]=s,Yo=(n,i,s)=>b_(n,typeof i!="symbol"?i+"":i,s);class up{constructor(i,s){Yo(this,"version"),Yo(this,"remoteQuerySet"),Yo(this,"queryPath"),Yo(this,"logger"),this.version={querySet:0,ts:Lt.fromNumber(0),identity:0},this.remoteQuerySet=new Map,this.queryPath=i,this.logger=s}transition(i){const s=i.startVersion;if(this.version.querySet!==s.querySet||this.version.ts.notEquals(s.ts)||this.version.identity!==s.identity)throw new Error(`Invalid start version: ${s.ts.toString()}:${s.querySet}`);for(const o of i.modifications)switch(o.type){case"QueryUpdated":{const u=this.queryPath(o.queryId);if(u)for(const d of o.logLines)il(this.logger,"info","query",u,d);const f=Ja(o.value??null);this.remoteQuerySet.set(o.queryId,{success:!0,value:f,logLines:o.logLines});break}case"QueryFailed":{const u=this.queryPath(o.queryId);if(u)for(const d of o.logLines)il(this.logger,"info","query",u,d);const{errorData:f}=o;this.remoteQuerySet.set(o.queryId,{success:!1,errorMessage:o.errorMessage,errorData:f!==void 0?Ja(f):void 0,logLines:o.logLines});break}case"QueryRemoved":{this.remoteQuerySet.delete(o.queryId);break}default:throw new Error(`Invalid modification ${o.type}`)}this.version=i.endVersion}remoteQueryResults(){return this.remoteQuerySet}timestamp(){return this.version.ts}}function Xc(n){const i=dr(n);return Lt.fromBytesLE(Array.from(i))}function w_(n){const i=new Uint8Array(n.toBytesLE());return hr(i)}function S_(n){switch(n.type){case"FatalError":case"AuthError":case"ActionResponse":case"Ping":return{...n};case"MutationResponse":return n.success?{...n,ts:Xc(n.ts)}:{...n};case"Transition":return{...n,startVersion:{...n.startVersion,ts:Xc(n.startVersion.ts)},endVersion:{...n.endVersion,ts:Xc(n.endVersion.ts)}}}}function __(n){switch(n.type){case"Authenticate":case"ModifyQuerySet":case"Mutation":case"Action":case"Event":return{...n};case"Connect":return n.maxObservedTimestamp!==void 0?{...n,maxObservedTimestamp:w_(n.maxObservedTimestamp)}:{...n,maxObservedTimestamp:void 0}}}var x_=Object.defineProperty,E_=(n,i,s)=>i in n?x_(n,i,{enumerable:!0,configurable:!0,writable:!0,value:s}):n[i]=s,yt=(n,i,s)=>E_(n,typeof i!="symbol"?i+"":i,s);
61const T_=1e3,R_=1001,A_=1005,C_=4040,Ay={InternalServerError:{timeout:1e3},SubscriptionsWorkerFullError:{timeout:3e3},TooManyConcurrentRequests:{timeout:3e3},CommitterFullError:{timeout:3e3},AwsTooManyRequestsException:{timeout:3e3},ExecuteFullError:{timeout:3e3},SystemTimeoutError:{timeout:3e3},ExpiredInQueue:{timeout:3e3},VectorIndexesUnavailable:{timeout:1e3},SearchIndexesUnavailable:{timeout:1e3},TableSummariesUnavailable:{timeout:1e3},VectorIndexTooLarge:{timeout:3e3},SearchIndexTooLarge:{timeout:3e3},TooManyWritesInTimePeriod:{timeout:3e3}};function O_(n){if(n===void 0)return"Unknown";for(const i of Object.keys(Ay))if(n.startsWith(i))return i;return"Unknown"}class k_{constructor(i,s,o,u,f){this.markConnectionStateDirty=f,yt(this,"socket"),yt(this,"connectionCount"),yt(this,"_hasEverConnected",!1),yt(this,"lastCloseReason"),yt(this,"defaultInitialBackoff"),yt(this,"maxBackoff"),yt(this,"retries"),yt(this,"serverInactivityThreshold"),yt(this,"reconnectDueToServerInactivityTimeout"),yt(this,"uri"),yt(this,"onOpen"),yt(this,"onResume"),yt(this,"onMessage"),yt(this,"webSocketConstructor"),yt(this,"logger"),yt(this,"onServerDisconnectError"),this.webSocketConstructor=o,this.socket={state:"disconnected"},this.connectionCount=0,this.lastCloseReason="InitialConnect",this.defaultInitialBackoff=1e3,this.maxBackoff=16e3,this.retries=0,this.serverInactivityThreshold=6e4,this.reconnectDueToServerInactivityTimeout=null,this.uri=i,this.onOpen=s.onOpen,this.onResume=s.onResume,this.onMessage=s.onMessage,this.onServerDisconnectError=s.onServerDisconnectError,this.logger=u,this.connect()}setSocketState(i){this.socket=i,this._logVerbose(`socket state changed: ${this.socket.state}, paused: ${"paused"in this.socket?this.socket.paused:void 0}`),this.markConnectionStateDirty()}connect(){if(this.socket.state==="terminated")return;if(this.socket.state!=="disconnected"&&this.socket.state!=="stopped")throw new Error("Didn't start connection from disconnected state: "+this.socket.state);const i=new this.webSocketConstructor(this.uri);this._logVerbose("constructed WebSocket"),this.setSocketState({state:"connecting",ws:i,paused:"no"}),this.resetServerInactivityTimeout(),i.onopen=()=>{if(this.logger.logVerbose("begin ws.onopen"),this.socket.state!=="connecting")throw new Error("onopen called with socket not in connecting state");this.setSocketState({state:"ready",ws:i,paused:this.socket.paused==="yes"?"uninitialized":"no"}),this.resetServerInactivityTimeout(),this.socket.paused==="no"&&(this._hasEverConnected=!0,this.onOpen({connectionCount:this.connectionCount,lastCloseReason:this.lastCloseReason})),this.lastCloseReason!=="InitialConnect"&&this.logger.log("WebSocket reconnected"),this.connectionCount+=1,this.lastCloseReason=null},i.onerror=s=>{const o=s.message;this.logger.log(`WebSocket error: ${o}`)},i.onmessage=s=>{this.resetServerInactivityTimeout();const o=S_(JSON.parse(s.data));this._logVerbose(`received ws message with type ${o.type}`),this.onMessage(o).hasSyncedPastLastReconnect&&(this.retries=0,this.markConnectionStateDirty())},i.onclose=s=>{if(this._logVerbose("begin ws.onclose"),this.lastCloseReason===null&&(this.lastCloseReason=s.reason??"OnCloseInvoked"),s.code!==T_&&s.code!==R_&&s.code!==A_&&s.code!==C_){let u=`WebSocket closed with code ${s.code}`;s.reason&&(u+=`: ${s.reason}`),this.logger.log(u),this.onServerDisconnectError&&s.reason&&this.onServerDisconnectError(u)}const o=O_(s.reason);this.scheduleReconnect(o)}}socketState(){return this.socket.state}sendMessage(i){const s={type:i.type,...i.type==="Authenticate"&&i.tokenType==="User"?{value:`...${i.value.slice(-7)}`}:{}};if(this.socket.state==="ready"&&this.socket.paused==="no"){const o=__(i),u=JSON.stringify(o);try{this.socket.ws.send(u)}catch(f){this.logger.log(`Failed to send message on WebSocket, reconnecting: ${f}`),this.closeAndReconnect("FailedToSendMessage")}return this._logVerbose(`sent message with type ${i.type}: ${JSON.stringify(s)}`),!0}return this._logVerbose(`message not sent (socket state: ${this.socket.state}, paused: ${"paused"in this.socket?this.socket.paused:void 0}): ${JSON.stringify(s)}`),!1}resetServerInactivityTimeout(){this.socket.state!=="terminated"&&(this.reconnectDueToServerInactivityTimeout!==null&&(clearTimeout(this.reconnectDueToServerInactivityTimeout),this.reconnectDueToServerInactivityTimeout=null),this.reconnectDueToServerInactivityTimeout=setTimeout(()=>{this.closeAndReconnect("InactiveServer")},this.serverInactivityThreshold))}scheduleReconnect(i){this.socket={state:"disconnected"};const s=this.nextBackoff(i);this.markConnectionStateDirty(),this.logger.log(`Attempting reconnect in ${s}ms`),setTimeout(()=>this.connect(),s)}closeAndReconnect(i){switch(this._logVerbose(`begin closeAndReconnect with reason ${i}`),this.socket.state){case"disconnected":case"terminated":case"stopped":return;case"connecting":case"ready":{this.lastCloseReason=i,this.close(),this.scheduleReconnect("client");return}default:this.socket}}close(){switch(this.socket.state){case"disconnected":case"terminated":case"stopped":return Promise.resolve();case"connecting":{const i=this.socket.ws;return new Promise(s=>
61{i.onclose=()=>{this._logVerbose("Closed after connecting"),s()},i.onopen=()=>{this._logVerbose("Opened after connecting"),i.close()}})}case"ready":{this._logVerbose("ws.close called");const i=this.socket.ws,s=new Promise(o=>{i.onclose=()=>{o()}});return i.close(),s}default:return this.socket,Promise.resolve()}}terminate(){switch(this.reconnectDueToServerInactivityTimeout&&clearTimeout(this.reconnectDueToServerInactivityTimeout),this.socket.state){case"terminated":case"stopped":case"disconnected":case"connecting":case"ready":{const i=this.close();return this.setSocketState({state:"terminated"}),i}default:throw this.socket,new Error(`Invalid websocket state: ${this.socket.state}`)}}stop(){switch(this.socket.state){case"terminated":return Promise.resolve();case"connecting":case"stopped":case"disconnected":case"ready":{const i=this.close();return this.socket={state:"stopped"},i}default:return this.socket,Promise.resolve()}}tryRestart(){switch(this.socket.state){case"stopped":break;case"terminated":case"connecting":case"ready":case"disconnected":this.logger.logVerbose("Restart called without stopping first");return;default:this.socket}this.connect()}pause(){switch(this.socket.state){case"disconnected":case"stopped":case"terminated":return;case"connecting":case"ready":{this.socket={...this.socket,paused:"yes"};return}default:{this.socket;return}}}resume(){switch(this.socket.state){case"connecting":this.socket={...this.socket,paused:"no"};return;case"ready":this.socket.paused==="uninitialized"?(this.socket={...this.socket,paused:"no"},this.onOpen({connectionCount:this.connectionCount,lastCloseReason:this.lastCloseReason})):this.socket.paused==="yes"&&(this.socket={...this.socket,paused:"no"},this.onResume());return;case"terminated":case"stopped":case"disconnected":return;default:this.socket}this.connect()}connectionState(){return{isConnected:this.socket.state==="ready",hasEverConnected:this._hasEverConnected,connectionCount:this.connectionCount,connectionRetries:this.retries}}_logVerbose(i){this.logger.logVerbose(i)}nextBackoff(i){const o=(i==="client"?100:i==="Unknown"?this.defaultInitialBackoff:Ay[i].timeout)*Math.pow(2,this.retries);this.retries+=1;const u=Math.min(o,this.maxBackoff),f=u*(Math.random()-.5);return u+f}}function M_(){return D_()}function D_(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,n=>{const i=Math.random()*16|0;return(n==="x"?i:i&3|8).toString(16)})}class lr extends Error{}lr.prototype.name="InvalidTokenError";function N_(n){return decodeURIComponent(atob(n).replace(/(.)/g,(i,s)=>{let o=s.charCodeAt(0).toString(16).toUpperCase();return o.length<2&&(o="0"+o),"%"+o}))}function U_(n){let i=n.replace(/-/g,"+").replace(/_/g,"/");switch(i.length%4){case 0:break;case 2:i+="==";break;case 3:i+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return N_(i)}catch{return atob(i)}}function Cy(n,i){if(typeof n!="string")throw new lr("Invalid token specified: must be a string");i||(i={});const s=i.header===!0?0:1,o=n.split(".")[s];if(typeof o!="string")throw new lr(`Invalid token specified: missing part #${s+1}`);let u;try{u=U_(o)}catch(f){throw new lr(`Invalid token specified: invalid base64 for part #${s+1} (${f.message})`)}try{return JSON.parse(u)}catch(f){throw new lr(`Invalid token specified: invalid json for part #${s+1} (${f.message})`)}}var q_=Object.defineProperty,z_=(n,i,s)=>i in n?q_(n,i,{enumerable:!0,configurable:!0,writable:!0,value:s}):n[i]=s,Kt=(n,i,s)=>z_(n,typeof i!="symbol"?i+"":i,s);const L_=480*60*60*1e3,cp=2;class H_{constructor(i,s,o){Kt(this,"authState",{state:"noAuth"}),Kt(this,"configVersion",0),Kt(this,"syncState"),Kt(this,"authenticate"),Kt(this,"stopSocket"),Kt(this,"tryRestartSocket"),Kt(this,"pauseSocket"),Kt(this,"resumeSocket"),Kt(this,"clearAuth"),Kt(this,"logger"),Kt(this,"refreshTokenLeewaySeconds"),Kt(this,"tokenConfirmationAttempts",0),this.syncState=i,this.authenticate=s.authenticate,this.stopSocket=s.stopSocket,this.tryRestartSocket=s.tryRestartSocket,this.pauseSocket=s.pauseSocket,this.resumeSocket=s.resumeSocket,this.clearAuth=s.clearAuth,this.logger=o.logger,this.refreshTokenLeewaySeconds=o.refreshTokenLeewaySeconds}async setConfig(i,s){this.resetAuthState(),this._logVerbose("pausing WS for auth token fetch"),this.pauseSocket();const o=await this.fetchTokenAndGuardAgainstRace(i,{forceRefreshToken:!1});o.isFromOutdatedConfig||(o.value?(this.setAuthState({state:"waitingForServerConfirmationOfCachedToken",config:{fetchToken:i,onAuthChange:s},hasRetried:!1}),this.authenticate(o.value)):(this.setAuthState({state:"initialRefetch",config:{fetchToken:i,onAuthChange:s}}),await this.refetchToken()),this._logVerbose("resuming WS after auth token fetch"),this.resumeSocket())}onTransition(i){if(this.syncState.isCurrentOrNewerAuthVersion(i.endVersion.identity)&&!(i.endVersion.identity<=i.startVersion.identity)){if(this.authState.state==="waitingForServerConfirmationOfCachedToken"){this._logVerbose("server confirmed auth token is valid"),this.refetchToken(),this.authState.config.onAuthChange(!0);return}this.authState.state==="waitingForServerConfirmationOfFreshToken"&&(this._logVerbose("server confirmed new auth token is valid"),this.scheduleTokenRefetch(this.authState.token),this.tokenConfirmationAttempts=0,this.authState.hadAuth||this.authState.config.onAuthChange(!0))}}onAuthError(i){if(i.authUpdateAttempted===!1&&(this.authState.state==="waitingForServerConfirmationOfFreshToken"||this.authState.state==="waitingForServerConfirmationOfCachedToken")){this._logVerbose("ignoring non-auth token expired error");return}const{baseVersion:s}=i;
61if(!this.syncState.isCurrentOrNewerAuthVersion(s+1)){this._logVerbose("ignoring auth error for previous auth attempt");return}this.tryToReauthenticate(i)}async tryToReauthenticate(i){if(this._logVerbose(`attempting to reauthenticate: ${i.error}`),this.authState.state==="noAuth"||this.authState.state==="waitingForServerConfirmationOfFreshToken"&&this.tokenConfirmationAttempts>=cp){this.logger.error(`Failed to authenticate: "${i.error}", check your server auth config`),this.syncState.hasAuth()&&this.syncState.clearAuth(),this.authState.state!=="noAuth"&&this.setAndReportAuthFailed(this.authState.config.onAuthChange);return}this.authState.state==="waitingForServerConfirmationOfFreshToken"&&(this.tokenConfirmationAttempts++,this._logVerbose(`retrying reauthentication, ${cp-this.tokenConfirmationAttempts} attempts remaining`)),await this.stopSocket();const s=await this.fetchTokenAndGuardAgainstRace(this.authState.config.fetchToken,{forceRefreshToken:!0});s.isFromOutdatedConfig||(s.value&&this.syncState.isNewAuth(s.value)?(this.authenticate(s.value),this.setAuthState({state:"waitingForServerConfirmationOfFreshToken",config:this.authState.config,token:s.value,hadAuth:this.authState.state==="notRefetching"||this.authState.state==="waitingForScheduledRefetch"})):(this._logVerbose("reauthentication failed, could not fetch a new token"),this.syncState.hasAuth()&&this.syncState.clearAuth(),this.setAndReportAuthFailed(this.authState.config.onAuthChange)),this.tryRestartSocket())}async refetchToken(){if(this.authState.state==="noAuth")return;this._logVerbose("refetching auth token");const i=await this.fetchTokenAndGuardAgainstRace(this.authState.config.fetchToken,{forceRefreshToken:!0});i.isFromOutdatedConfig||(i.value?this.syncState.isNewAuth(i.value)?(this.setAuthState({state:"waitingForServerConfirmationOfFreshToken",hadAuth:this.syncState.hasAuth(),token:i.value,config:this.authState.config}),this.authenticate(i.value)):this.setAuthState({state:"notRefetching",config:this.authState.config}):(this._logVerbose("refetching token failed"),this.syncState.hasAuth()&&this.clearAuth(),this.setAndReportAuthFailed(this.authState.config.onAuthChange)),this._logVerbose("restarting WS after auth token fetch (if currently stopped)"),this.tryRestartSocket())}scheduleTokenRefetch(i){if(this.authState.state==="noAuth")return;const s=this.decodeToken(i);if(!s){this.logger.error("Auth token is not a valid JWT, cannot refetch the token");return}const{iat:o,exp:u}=s;if(!o||!u){this.logger.error("Auth token does not have required fields, cannot refetch the token");return}const f=u-o;if(f<=2){this.logger.error("Auth token does not live long enough, cannot refetch the token");return}let d=Math.min(L_,(f-this.refreshTokenLeewaySeconds)*1e3);d<=0&&(this.logger.warn(`Refetching auth token immediately, configured leeway ${this.refreshTokenLeewaySeconds}s is larger than the token's lifetime ${f}s`),d=0);const m=setTimeout(()=>{this._logVerbose("running scheduled token refetch"),this.refetchToken()},d);this.setAuthState({state:"waitingForScheduledRefetch",refetchTokenTimeoutId:m,config:this.authState.config}),this._logVerbose(`scheduled preemptive auth token refetching in ${d}ms`)}async fetchTokenAndGuardAgainstRace(i,s){const o=++this.configVersion;this._logVerbose(`fetching token with config version ${o}`);const u=await i(s);return this.configVersion!==o?(this._logVerbose(`stale config version, expected ${o}, got ${this.configVersion}`),{isFromOutdatedConfig:!0}):{isFromOutdatedConfig:!1,value:u}}stop(){this.resetAuthState(),this.configVersion++,this._logVerbose(`config version bumped to ${this.configVersion}`)}setAndReportAuthFailed(i){i(!1),this.resetAuthState()}resetAuthState(){this.setAuthState({state:"noAuth"})}setAuthState(i){const s=i.state==="waitingForServerConfirmationOfFreshToken"?{hadAuth:i.hadAuth,state:i.state,token:`...${i.token.slice(-7)}`}:{state:i.state};switch(this._logVerbose(`setting auth state to ${JSON.stringify(s)}`),i.state){case"waitingForScheduledRefetch":case"notRefetching":case"noAuth":this.tokenConfirmationAttempts=0;break}this.authState.state==="waitingForScheduledRefetch"&&(clearTimeout(this.authState.refetchTokenTimeoutId),this.syncState.markAuthCompletion()),this.authState=i}decodeToken(i){try{return Cy(i)}catch(s){return this._logVerbose(`Error decoding token: ${s instanceof Error?s.message:"Unknown error"}`),null}}_logVerbose(i){this.logger.logVerbose(`${i} [v${this.configVersion}]`)}}const B_=["convexClientConstructed","convexWebSocketOpen","convexFirstMessageReceived"];function j_(n,i){const s={sessionId:i};typeof performance>"u"||!performance.mark||performance.mark(n,{detail:s})}function P_(n){let i=n.name.slice(6);return i=i.charAt(0).toLowerCase()+i.slice(1),{name:i,startTime:n.startTime}}function V_(n){if(typeof performance>"u"||!performance.getEntriesByName)return[];const i=[];for(const s of B_){const o=performance.getEntriesByName(s).filter(u=>u.entryType==="mark").filter(u=>u.detail.sessionId===n);i.push(...o)}return i.map(P_)}var Q_=Object.defineProperty,Y_=(n,i,s)=>i in n?Q_(n,i,{enumerable:!0,configurable:!0,writable:!0,value:s}):n[i]=s,Je=(n,i,s)=>Y_(n,typeof i!="symbol"?i+"":i,s);class G_{constructor(i,s,o){if(Je(this,"address"),Je(this,"state"),Je(this,"requestManager"),Je(this,"webSocketManager"),Je(this,"authenticationManager"),Je(this,"remoteQuerySet"),Je(this,"optimisticQueryResults"),Je(this,"_transitionHandlerCounter",0),Je(this,"_nextRequestId"),Je(this,"_onTransitionFns",new Map),Je(this,"_sessionId"),Je(this,"firstMessageReceived",!1),Je(this,"debug"),Je(this,"logger"),Je(this,"maxObservedTimestamp"),Je(this,"connectionStateSubscribers",new Map),Je(this,"nextConnectionStateSubscriberId",0),Je(this,"_lastPublishedConnectionState"),Je(this,"markConnectionStateDirty",()=>{Promise.resolve().then(()=>{const _=this.connectionState();if(JSON.stringify(_)!==JSON.stringify(this._lastPublishedConnectionState)){this._lastPublishedConnectionState=_;for(const E of this.connectionStateSubscribers.values())E(_)}})}),Je(this,"mark",_=>{this.debug&&j_(_,this.sessionId)}),typeof i=="object")throw new Error("Passing a ClientConfig object is no longer supported. Pass the URL of the Convex deployment as a string directly.");o?.skipConvexDeploymentUrlCheck!==!0&&BS(i),o={...o};const u=o.authRefreshTokenLeewaySeconds??2;let f=o.webSocketConstructor;if(!f&&typeof WebSocket>"u")throw new Error("No WebSocket global variable defined! To use Convex in an environment without WebSocket try the HTTP client: https://docs.convex.dev/api/classes/browser.ConvexHttpCl
61ient");f=f||WebSocket,this.debug=o.reportDebugInfoToConvex??!1,this.address=i,this.logger=o.logger===!1?Ty({verbose:o.verbose??!1}):o.logger!==!0&&o.logger?o.logger:Ey({verbose:o.verbose??!1});const d=i.search("://");if(d===-1)throw new Error("Provided address was not an absolute URL.");const m=i.substring(d+3),g=i.substring(0,d);let h;if(g==="http")h="ws";else if(g==="https")h="wss";else throw new Error(`Unknown parent protocol ${g}`);const v=`${h}://${m}/api/${sp}/sync`;this.state=new i_,this.remoteQuerySet=new up(_=>this.state.queryPath(_),this.logger),this.requestManager=new r_(this.logger,this.markConnectionStateDirty);const y=()=>{this.webSocketManager.pause(),this.state.pause()};this.authenticationManager=new H_(this.state,{authenticate:_=>{const E=this.state.setAuth(_);return this.webSocketManager.sendMessage(E),E.baseVersion},stopSocket:()=>this.webSocketManager.stop(),tryRestartSocket:()=>this.webSocketManager.tryRestart(),pauseSocket:y,resumeSocket:()=>this.webSocketManager.resume(),clearAuth:()=>{this.clearAuth()}},{logger:this.logger,refreshTokenLeewaySeconds:u}),this.optimisticQueryResults=new h_,this.addOnTransitionHandler(_=>{s(_.queries.map(E=>E.token))}),this._nextRequestId=0,this._sessionId=M_();const{unsavedChangesWarning:w}=o;if(typeof window>"u"||typeof window.addEventListener>"u"){if(w===!0)throw new Error("unsavedChangesWarning requested, but window.addEventListener not found! Remove {unsavedChangesWarning: true} from Convex client options.")}else w!==!1&&window.addEventListener("beforeunload",_=>{if(this.requestManager.hasIncompleteRequests()){_.preventDefault();const E="Are you sure you want to leave? Your changes may not be saved.";return(_||window.event).returnValue=E,E}});this.webSocketManager=new k_(v,{onOpen:_=>{this.mark("convexWebSocketOpen"),this.webSocketManager.sendMessage({..._,type:"Connect",sessionId:this._sessionId,maxObservedTimestamp:this.maxObservedTimestamp});const E=new Set(this.remoteQuerySet.remoteQueryResults().keys());this.remoteQuerySet=new up(C=>this.state.queryPath(C),this.logger);const[k,A]=this.state.restart(E);A&&this.webSocketManager.sendMessage(A),this.webSocketManager.sendMessage(k);for(const C of this.requestManager.restart())this.webSocketManager.sendMessage(C)},onResume:()=>{const[_,E]=this.state.resume();E&&this.webSocketManager.sendMessage(E),_&&this.webSocketManager.sendMessage(_);for(const k of this.requestManager.resume())this.webSocketManager.sendMessage(k)},onMessage:_=>{switch(this.firstMessageReceived||(this.firstMessageReceived=!0,this.mark("convexFirstMessageReceived"),this.reportMarks()),_.type){case"Transition":{this.observedTimestamp(_.endVersion.ts),this.authenticationManager.onTransition(_),this.remoteQuerySet.transition(_),this.state.transition(_);const E=this.requestManager.removeCompleted(this.remoteQuerySet.timestamp());this.notifyOnQueryResultChanges(E);break}case"MutationResponse":{_.success&&this.observedTimestamp(_.ts);const E=this.requestManager.onResponse(_);E!==null&&this.notifyOnQueryResultChanges(new Map([[E.requestId,E.result]]));break}case"ActionResponse":{this.requestManager.onResponse(_);break}case"AuthError":{this.authenticationManager.onAuthError(_);break}case"FatalError":{const E=e_(this.logger,_.error);throw this.webSocketManager.terminate(),E}}return{hasSyncedPastLastReconnect:this.hasSyncedPastLastReconnect()}},onServerDisconnectError:o.onServerDisconnectError},f,this.logger,this.markConnectionStateDirty),this.mark("convexClientConstructed"),o.expectAuth&&y()}hasSyncedPastLastReconnect(){return this.requestManager.hasSyncedPastLastReconnect()||this.state.hasSyncedPastLastReconnect()}observedTimestamp(i){(this.maxObservedTimestamp===void 0||this.maxObservedTimestamp.lessThanOrEqual(i))&&(this.maxObservedTimestamp=i)}getMaxObservedTimestamp(){return this.maxObservedTimestamp}notifyOnQueryResultChanges(i){const s=this.remoteQuerySet.remoteQueryResults(),o=new Map;for(const[f,d]of s){const m=this.state.queryToken(f);if(m!==null){const g={result:d,udfPath:this.state.queryPath(f),args:this.state.queryArgs(f)};o.set(m,g)}}const u=this.optimisticQueryResults.ingestQueryResultsFromServer(o,new Set(i.keys()));this.handleTransition({queries:u.map(f=>{const d=this.optimisticQueryResults.rawQueryResult(f);return{token:f,modification:{kind:"Updated",result:d.result}}}),reflectedMutations:Array.from(i).map(([f,d])=>({requestId:f,result:d})),timestamp:this.remoteQuerySet.timestamp()})}handleTransition(i){for(const s of this._onTransitionFns.values())s(i)}addOnTransitionHandler(i){const s=this._transitionHandlerCounter++;return this._onTransitionFns.set(s,i),()=>this._onTransitionFns.delete(s)}setAuth(i,s){this.authenticationManager.setConfig(i,s)}hasAuth(){return this.state.hasAuth()}setAdminAuth(i,s){const o=this.state.setAdminAuth(i,s);this.webSocketManager.sendMessage(o)}clearAuth(){const i=this.state.clearAuth();this.webSocketManager.sendMessage(i)}subscribe(i,s,o){const u=Ri(s),{modification:f,queryToken:d,unsubscribe:m}=this.state.subscribe(i,u,o?.journal,o?.componentPath);return f!==null&&this.webSocketManager.sendMessage(f),{queryToken:d,unsubscribe:()=>{const g=m();g&&this.webSocketManager.sendMessage(g)}}}localQueryResult(i,s){const o=Ri(s),u=Wi(i,o);return this.optimisticQueryResults.queryResult(u)}localQueryResultByToken(i){return this.optimisticQueryResults.queryResult(i)}hasLocalQueryResultByToken(i){return this.optimisticQueryResults.hasQueryResult(i)}localQueryLogs(i,s){const o=Ri(s),u=Wi(i,o);return this.optimisticQueryResults.queryLogs(u)}queryJournal(i,s){const o=Ri(s),u=Wi(i,o);return this.state.queryJournal(u)}connectionState(){const i=this.webSocketManager.connectionState();return{hasInflightRequests:this.requestManager.hasInflightRequests(),isWebSocketConnected:i.isConnected,hasEverConnected:i.hasEverConnected,connectionCount:i.connectionCount,connectionRetries:i.connectionRetries,timeOfOldestInflightRequest:this.requestManager.timeOfOldestInflightRequest(),inflightMutations:this.requestManager.inflightMutations(),inflightActions:this.requestManager.inflightActions()}}subscribeToConnectionState(i){const s=this.nextConnectionStateSubscriberId++;return this.connectionStateSubscribers.set(s,i),()=>{this.connectionStateSubscribers.delete(s)}}async mutation(i,s,o){const u=await this.mutationInternal(i,s,o);if(!u.success)throw u.errorData!==void 0?ff(u,new cf(Xa("mutation",i,u))):new Error(Xa("mutation",i,u));return u.value}async mutationInternal(i,s,o,u){const{mutationPromise:f}=this.enqueueMutation(i,s,o,u);return f}enqueueMutation(i,s,o,u){const f=Ri(s);this.tryReportLongDisconnect();const d=this.nextRequestId;if(this._nextRequestId++,o!==void 0){const v=o.optimisticUpdate;if(v!==void 0){const y=E=>{v(E,f)instanceof Promise&&this.logger.warn("Optimistic update handler returned a Promise. Optimistic updates should be synchronous.")},_=this.optimisticQueryResults.applyOptimisticUpdate(y,d).map(E=>{const k=this.localQueryResultByToken(E);return{token:E,modification:{kind:"Updated",result:k===void 0?void 0:{success:!0,value:k,logLines:[]}}}});this.handleTransition({queries:_,reflectedMutations:[],timestamp:this.remoteQuerySet.timestamp()})}}const m={type:"Mutation",requestId:d,udfPath:i,componentPath:u,args:[gr(f)]},g=this.webSocketManager.sendMessage(m),h=this.requestManager.request(m,g);return{requestId:d,mutationPromise:h}}async action(i,s){const o=await this.actionInternal(i,s);if(!o.success)throw o.errorData!==void 0?ff(o,new cf(Xa("action",i,o))):new Error(Xa("action",i,o));return o.value}async actionInternal(i,s,o){const u=Ri(s),f=this.nextRequestId;this._nextRequestId++,this.tryReportLongDisconnect();const d={type:"Action",requestId:f,udfPath:i,componentPath:o,args:[gr(u)]},m=this.webSocketManager.sendMessage(d);return this.requestManager.request(d,m)}async close(){return this.authenticationManager.stop(),this.webSocketManager.terminate()}get url(){return this.address}get nextRequestId(){return this._nextRequestId}get sessionId(){return this._sessionId}
61reportMarks(){if(this.debug){const i=V_(this.sessionId);this.webSocketManager.sendMessage({type:"Event",eventType:"ClientConnect",event:i})}}tryReportLongDisconnect(){if(!this.debug)return;const i=this.connectionState().timeOfOldestInflightRequest;if(i===null||Date.now()-i.getTime()<=60*1e3)return;const s=`${this.address}/api/debug_event`;fetch(s,{method:"POST",headers:{"Content-Type":"application/json","Convex-Client":`npm-${sp}`},body:JSON.stringify({event:"LongWebsocketDisconnect"})}).then(o=>{o.ok||this.logger.warn("Analytics request failed with response:",o.body)}).catch(o=>{this.logger.warn("Analytics response failed with error:",o)})}}var $_=Object.defineProperty,I_=(n,i,s)=>i in n?$_(n,i,{enumerable:!0,configurable:!0,writable:!0,value:s}):n[i]=s,Ei=(n,i,s)=>I_(n,typeof i!="symbol"?i+"":i,s);const X_=5e3;if(typeof X>"u")throw new Error("Required dependency 'react' not found");class F_{constructor(i,s){if(Ei(this,"address"),Ei(this,"cachedSync"),Ei(this,"listeners"),Ei(this,"options"),Ei(this,"closed",!1),Ei(this,"_logger"),Ei(this,"adminAuth"),Ei(this,"fakeUserIdentity"),i===void 0)throw new Error("No address provided to ConvexReactClient.\nIf trying to deploy to production, make sure to follow all the instructions found at https://docs.convex.dev/production/hosting/\nIf running locally, make sure to run `convex dev` and ensure the .env.local file is populated.");if(typeof i!="string")throw new Error(`ConvexReactClient requires a URL like 'https://happy-otter-123.convex.cloud', received something of type ${typeof i} instead.`);if(!i.includes("://"))throw new Error("Provided address was not an absolute URL.");this.address=i,this.listeners=new Map,this._logger=s?.logger===!1?Ty({verbose:s?.verbose??!1}):s?.logger!==!0&&s?.logger?s.logger:Ey({verbose:s?.verbose??!1}),this.options={...s,logger:this._logger}}get url(){return this.address}get sync(){if(this.closed)throw new Error("ConvexReactClient has already been closed.");return this.cachedSync?this.cachedSync:(this.cachedSync=new G_(this.address,i=>this.transition(i),this.options),this.adminAuth&&this.cachedSync.setAdminAuth(this.adminAuth,this.fakeUserIdentity),this.cachedSync)}setAuth(i,s){if(typeof i=="string")throw new Error("Passing a string to ConvexReactClient.setAuth is no longer supported, please upgrade to passing in an async function to handle reauthentication.");this.sync.setAuth(i,s??(()=>{}))}clearAuth(){this.sync.clearAuth()}setAdminAuth(i,s){if(this.adminAuth=i,this.fakeUserIdentity=s,this.closed)throw new Error("ConvexReactClient has already been closed.");this.cachedSync&&this.sync.setAdminAuth(i,s)}watchQuery(i,...s){const[o,u]=s,f=Fa(i);return{onUpdate:d=>{const{queryToken:m,unsubscribe:g}=this.sync.subscribe(f,o,u),h=this.listeners.get(m);return h!==void 0?h.add(d):this.listeners.set(m,new Set([d])),()=>{if(this.closed)return;const v=this.listeners.get(m);v.delete(d),v.size===0&&this.listeners.delete(m),g()}},localQueryResult:()=>{if(this.cachedSync)return this.cachedSync.localQueryResult(f,o)},localQueryLogs:()=>{if(this.cachedSync)return this.cachedSync.localQueryLogs(f,o)},journal:()=>{if(this.cachedSync)return this.cachedSync.queryJournal(f,o)}}}prewarmQuery(i){const s=i.extendSubscriptionFor??X_,u=this.watchQuery(i.query,i.args||{}).onUpdate(()=>{});setTimeout(u,s)}mutation(i,...s){const[o,u]=s,f=Fa(i);return this.sync.mutation(f,o,u)}action(i,...s){const o=Fa(i);return this.sync.action(o,...s)}query(i,...s){const o=this.watchQuery(i,...s),u=o.localQueryResult();return u!==void 0?Promise.resolve(u):new Promise((f,d)=>{const m=o.onUpdate(()=>{m();try{f(o.localQueryResult())}catch(g){d(g)}})})}connectionState(){return this.sync.connectionState()}subscribeToConnectionState(i){return this.sync.subscribeToConnectionState(i)}get logger(){return this._logger}async close(){if(this.closed=!0,this.listeners=new Map,this.cachedSync){const i=this.cachedSync;this.cachedSync=void 0,await i.close()}}transition(i){for(const s of i){const o=this.listeners.get(s);if(o)for(const u of o)u()}}}const K_=X.createContext(void 0),Z_=({client:n,children:i})=>X.createElement(K_.Provider,{value:n},i),J_=S.createContext(void 0);function W_({children:n,client:i,useAuth:s}){const{isLoading:o,isAuthenticated:u,fetchAccessToken:f}=s(),[d,m]=S.useState(null);return o&&d!==null&&m(null),!o&&!u&&d!==!1&&m(!1),X.createElement(J_.Provider,{value:{isLoading:d===null,isAuthenticated:u&&(d??!1)}},X.createElement(ex,{authProviderAuthenticated:u,fetchAccessToken:f,authProviderLoading:o,client:i,setIsConvexAuthenticated:m}),X.createElement(Z_,{client:i},n),X.createElement(tx,{authProviderAuthenticated:u,fetchAccessToken:f,authProviderLoading:o,client:i,setIsConvexAuthenticated:m}))}function ex({authProviderAuthenticated:n,fetchAccessToken:i,authProviderLoading:s,client:o,setIsConvexAuthenticated:u}){return S.useEffect(()=>{let f=!0;if(n)return o.setAuth(i,d=>{f&&u(()=>d)}),()=>{f=!1,u(d=>d?!1:null)}},[n,i,s,o,u]),null}function tx({authProviderAuthenticated:n,fetchAccessToken:i,authProviderLoading:s,client:o,setIsConvexAuthenticated:u}){return S.useEffect(()=>{if(n)return()=>{o.clearAuth(),u(()=>null)}},[n,i,s,o,u]),null}var nx=(n,i,s,o,u,f,d,m)=>{let g=document.documentElement,h=["light","dark"];
61function v(_){(Array.isArray(n)?n:[n]).forEach(E=>{let k=E==="class",A=k&&f?u.map(C=>f[C]||C):u;k?(g.classList.remove(...A),g.classList.add(f&&f[_]?f[_]:_)):g.setAttribute(E,_)}),y(_)}function y(_){m&&h.includes(_)&&(g.style.colorScheme=_)}function w(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(o)v(o);else try{let _=localStorage.getItem(i)||s,E=d&&_==="system"?w():_;v(E)}catch{}},fp=["light","dark"],Oy="(prefers-color-scheme: dark)",ix=typeof window>"u",jf=S.createContext(void 0),ax={setTheme:n=>{},themes:[]},sx=()=>{var n;return(n=S.useContext(jf))!=null?n:ax},rx=n=>S.useContext(jf)?S.createElement(S.Fragment,null,n.children):S.createElement(lx,{...n}),ox=["light","dark"],lx=({forcedTheme:n,disableTransitionOnChange:i=!1,enableSystem:s=!0,enableColorScheme:o=!0,storageKey:u="theme",themes:f=ox,defaultTheme:d=s?"system":"light",attribute:m="data-theme",value:g,children:h,nonce:v,scriptProps:y})=>{let[w,_]=S.useState(()=>cx(u,d)),[E,k]=S.useState(()=>w==="system"?Fc():w),A=g?Object.values(g):f,C=S.useCallback(H=>{let I=H;if(!I)return;H==="system"&&s&&(I=Fc());let Z=g?g[I]:I,$=i?fx(v):null,ee=document.documentElement,ue=ge=>{ge==="class"?(ee.classList.remove(...A),Z&&ee.classList.add(Z)):ge.startsWith("data-")&&(Z?ee.setAttribute(ge,Z):ee.removeAttribute(ge))};if(Array.isArray(m)?m.forEach(ue):ue(m),o){let ge=fp.includes(d)?d:null,he=fp.includes(I)?I:ge;ee.style.colorScheme=he}$?.()},[v]),z=S.useCallback(H=>{let I=typeof H=="function"?H(w):H;_(I);try{localStorage.setItem(u,I)}catch{}},[w]),j=S.useCallback(H=>{let I=Fc(H);k(I),w==="system"&&s&&!n&&C("system")},[w,n]);S.useEffect(()=>{let H=window.matchMedia(Oy);return H.addListener(j),j(H),()=>H.removeListener(j)},[j]),S.useEffect(()=>{let H=I=>{I.key===u&&(I.newValue?_(I.newValue):z(d))};return window.addEventListener("storage",H),()=>window.removeEventListener("storage",H)},[z]),S.useEffect(()=>{C(n??w)},[n,w]);let F=S.useMemo(()=>({theme:w,setTheme:z,forcedTheme:n,resolvedTheme:w==="system"?E:w,themes:s?[...f,"system"]:f,systemTheme:s?E:void 0}),[w,z,n,E,s,f]);return S.createElement(jf.Provider,{value:F},S.createElement(ux,{forcedTheme:n,storageKey:u,attribute:m,enableSystem:s,enableColorScheme:o,defaultTheme:d,value:g,themes:f,nonce:v,scriptProps:y}),h)},ux=S.memo(({forcedTheme:n,storageKey:i,attribute:s,enableSystem:o,enableColorScheme:u,defaultTheme:f,value:d,themes:m,nonce:g,scriptProps:h})=>{let v=JSON.stringify([s,i,f,n,m,d,o,u]).slice(1,-1);return S.createElement("script",{...h,suppressHydrationWarning:!0,nonce:typeof window>"u"?g:"",dangerouslySetInnerHTML:{__html:`(${nx.toString()})(${v})`}})}),cx=(n,i)=>{if(ix)return;let s;try{s=localStorage.getItem(n)||void 0}catch{}return s||i},fx=n=>{let i=document.createElement("style");return n&&i.setAttribute("nonce",n),i.appendChild(document.createTextNode("*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(i),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(i)},1)}},Fc=n=>(n||(n=window.matchMedia(Oy)),n.matches?"dark":"light");const dx="https://outgoing-tiger-891.convex.cloud",hx=new F_(dx);var gx={debug:()=>{},info:()=>{},warn:()=>{},error:()=>{}},bn,wn,ol=(n=>(n[n.NONE=0]="NONE",n[n.ERROR=1]="ERROR",n[n.WARN=2]="WARN",n[n.INFO=3]="INFO",n[n.DEBUG=4]="DEBUG",n))(ol||{});(n=>{function i(){bn=3,wn=gx}n.reset=i;function s(u){if(!(0<=u&&u<=4))throw new Error("Invalid log level");bn=u}n.setLevel=s;function o(u){wn=u}n.setLogger=o})(ol||(ol={}));var Re=class yn{constructor(i){this._name=i}debug(...i){bn>=4&&wn.debug(yn._format(this._name,this._method),...i)}info(...i){bn>=3&&wn.info(yn._format(this._name,this._method),...i)}warn(...i){bn>=2&&wn.warn(yn._format(this._name,this._method),...i)}error(...i){bn>=1&&wn.error(yn._format(this._name,this._method),...i)}throw(i){throw this.error(i),i}create(i){const s=Object.create(this);return s._method=i,s.debug("begin"),s}static createStatic(i,s){const o=new yn(`${i}.${s}`);return o.debug("begin"),o}static _format(i,s){const o=`[${i}]`;return s?`${o} ${s}:`:o}
61static debug(i,...s){bn>=4&&wn.debug(yn._format(i),...s)}static info(i,...s){bn>=3&&wn.info(yn._format(i),...s)}static warn(i,...s){bn>=2&&wn.warn(yn._format(i),...s)}static error(i,...s){bn>=1&&wn.error(yn._format(i),...s)}};ol.reset();var ll=class{static decode(n){try{return Cy(n)}catch(i){throw Re.error("JwtUtils.decode",i),i}}static async generateSignedJwt(n,i,s){const o=Ot.encodeBase64Url(new TextEncoder().encode(JSON.stringify(n))),u=Ot.encodeBase64Url(new TextEncoder().encode(JSON.stringify(i))),f=`${o}.${u}`,d=await window.crypto.subtle.sign({name:"ECDSA",hash:{name:"SHA-256"}},s,new TextEncoder().encode(f)),m=Ot.encodeBase64Url(new Uint8Array(d));return`${f}.${m}`}},mx="10000000-1000-4000-8000-100000000000",df=n=>btoa([...new Uint8Array(n)].map(i=>String.fromCharCode(i)).join("")),ky=class vn{static _randomWord(){const i=new Uint32Array(1);return crypto.getRandomValues(i),i[0]}static generateUUIDv4(){return mx.replace(/[018]/g,s=>(+s^vn._randomWord()&15>>+s/4).toString(16)).replace(/-/g,"")}static generateCodeVerifier(){return vn.generateUUIDv4()+vn.generateUUIDv4()+vn.generateUUIDv4()}static async generateCodeChallenge(i){if(!crypto.subtle)throw new Error("Crypto.subtle is available only in secure contexts (HTTPS).");try{const o=new TextEncoder().encode(i),u=await crypto.subtle.digest("SHA-256",o);return df(u).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}catch(s){throw Re.error("CryptoUtils.generateCodeChallenge",s),s}}static generateBasicAuth(i,s){const u=new TextEncoder().encode([i,s].join(":"));return df(u)}static async hash(i,s){const o=new TextEncoder().encode(s),u=await crypto.subtle.digest(i,o);return new Uint8Array(u)}static async customCalculateJwkThumbprint(i){let s;switch(i.kty){case"RSA":s={e:i.e,kty:i.kty,n:i.n};break;case"EC":s={crv:i.crv,kty:i.kty,x:i.x,y:i.y};break;case"OKP":s={crv:i.crv,kty:i.kty,x:i.x};break;case"oct":s={crv:i.k,kty:i.kty};break;default:throw new Error("Unknown jwk type")}const o=await vn.hash("SHA-256",JSON.stringify(s));return vn.encodeBase64Url(o)}static async generateDPoPProof({url:i,accessToken:s,httpMethod:o,keyPair:u,nonce:f}){let d,m;const g={jti:window.crypto.randomUUID(),htm:o??"GET",htu:i,iat:Math.floor(Date.now()/1e3)};s&&(d=await vn.hash("SHA-256",s),m=vn.encodeBase64Url(d),g.ath=m),f&&(g.nonce=f);try{const h=await crypto.subtle.exportKey("jwk",u.publicKey),v={alg:"ES256",typ:"dpop+jwt",jwk:{crv:h.crv,kty:h.kty,x:h.x,y:h.y}};return await ll.generateSignedJwt(v,g,u.privateKey)}catch(h){throw h instanceof TypeError?new Error(`Error exporting dpop public key: ${h.message}`):h}}static async generateDPoPJkt(i){try{const s=await crypto.subtle.exportKey("jwk",i.publicKey);return await vn.customCalculateJwkThumbprint(s)}catch(s){throw s instanceof TypeError?new Error(`Could not retrieve dpop keys from storage: ${s.message}`):s}}static async generateDPoPKeys(){return await window.crypto.subtle.generateKey({name:"ECDSA",namedCurve:"P-256"},!1,["sign","verify"])}};ky.encodeBase64Url=n=>df(n).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_");var Ot=ky,Ai=class{constructor(n){this._name=n,this._callbacks=[],this._logger=new Re(`Event('${this._name}')`)}addHandler(n){return this._callbacks.push(n),()=>this.removeHandler(n)}removeHandler(n){const i=this._callbacks.lastIndexOf(n);i>=0&&this._callbacks.splice(i,1)}async raise(...n){this._logger.debug("raise:",...n);for(const i of this._callbacks)await i(...n)}},dp=class{static center({...n}){var i,s,o;return n.width==null&&(n.width=(i=[800,720,600,480].find(u=>u<=window.outerWidth/1.618))!=null?i:360),(s=n.left)!=null||(n.left=Math.max(0,Math.round(window.screenX+(window.outerWidth-n.width)/2))),n.height!=null&&((o=n.top)!=null||(n.top=Math.max(0,Math.round(window.screenY+(window.outerHeight-n.height)/2)))),n}static serialize(n){return Object.entries(n).filter(([,i])=>i!=null).map(([i,s])=>`${i}=${typeof s!="boolean"?s:s?"yes":"no"}`).join(",")}},Fn=class el extends Ai{constructor(){super(...arguments),this._logger=new Re(`Timer('${this._name}')`),this._timerHandle=null,this._expiration=0,this._callback=()=>{const i=this._expiration-el.getEpochTime();this._logger.debug("timer completes in",i),this._expiration<=el.getEpochTime()&&(this.cancel(),super.raise())}}static getEpochTime(){return Math.floor(Date.now()/1e3)}init(i){const s=this._logger.create("init");i=Math.max(Math.floor(i),1);const o=el.getEpochTime()+i;if(this.expiration===o&&this._timerHandle){s.debug("skipping since already initialized for expiration at",this.expiration);return}this.cancel(),s.debug("using duration",i),this._expiration=o;const u=Math.min(i,5);this._timerHandle=setInterval(this._callback,u*1e3)}get expiration(){return this._expiration}cancel(){this._logger.create("cancel"),this._timerHandle&&(clearInterval(this._timerHandle),this._timerHandle=null)}},hf=class{static readParams(n,i="query"){if(!n)throw new TypeError("Invalid URL");const o=new URL(n,"http://127.0.0.1")[i==="fragment"?"hash":"search"];return new URLSearchParams(o.slice(1))}},Wa=";
61",ea=class extends Error{constructor(n,i){var s,o,u;if(super(n.error_description||n.error||""),this.form=i,this.name="ErrorResponse",!n.error)throw Re.error("ErrorResponse","No error passed"),new Error("No error passed");this.error=n.error,this.error_description=(s=n.error_description)!=null?s:null,this.error_uri=(o=n.error_uri)!=null?o:null,this.state=n.userState,this.session_state=(u=n.session_state)!=null?u:null,this.url_state=n.url_state}},Pf=class extends Error{constructor(n){super(n),this.name="ErrorTimeout"}},px=class{constructor(n){this._logger=new Re("AccessTokenEvents"),this._expiringTimer=new Fn("Access token expiring"),this._expiredTimer=new Fn("Access token expired"),this._expiringNotificationTimeInSeconds=n.expiringNotificationTimeInSeconds}async load(n){const i=this._logger.create("load");if(n.access_token&&n.expires_in!==void 0){const s=n.expires_in;if(i.debug("access token present, remaining duration:",s),s>0){let u=s-this._expiringNotificationTimeInSeconds;u<=0&&(u=1),i.debug("registering expiring timer, raising in",u,"seconds"),this._expiringTimer.init(u)}else i.debug("canceling existing expiring timer because we're past expiration."),this._expiringTimer.cancel();const o=s+1;i.debug("registering expired timer, raising in",o,"seconds"),this._expiredTimer.init(o)}else this._expiringTimer.cancel(),this._expiredTimer.cancel()}async unload(){this._logger.debug("unload: canceling existing access token timers"),this._expiringTimer.cancel(),this._expiredTimer.cancel()}addAccessTokenExpiring(n){return this._expiringTimer.addHandler(n)}removeAccessTokenExpiring(n){this._expiringTimer.removeHandler(n)}addAccessTokenExpired(n){return this._expiredTimer.addHandler(n)}removeAccessTokenExpired(n){this._expiredTimer.removeHandler(n)}},yx=class{constructor(n,i,s,o,u){this._callback=n,this._client_id=i,this._intervalInSeconds=o,this._stopOnError=u,this._logger=new Re("CheckSessionIFrame"),this._timer=null,this._session_state=null,this._message=d=>{d.origin===this._frame_origin&&d.source===this._frame.contentWindow&&(d.data==="error"?(this._logger.error("error message from check session op iframe"),this._stopOnError&&this.stop()):d.data==="changed"?(this._logger.debug("changed message from check session op iframe"),this.stop(),this._callback()):this._logger.debug(d.data+" message from check session op iframe"))};const f=new URL(s);this._frame_origin=f.origin,this._frame=window.document.createElement("iframe"),this._frame.style.visibility="hidden",this._frame.style.position="fixed",this._frame.style.left="-1000px",this._frame.style.top="0",this._frame.width="0",this._frame.height="0",this._frame.src=f.href}load(){return new Promise(n=>{this._frame.onload=()=>{n()},window.document.body.appendChild(this._frame),window.addEventListener("message",this._message,!1)})}start(n){if(this._session_state===n)return;this._logger.create("start"),this.stop(),this._session_state=n;const i=()=>{!this._frame.contentWindow||!this._session_state||this._frame.contentWindow.postMessage(this._client_id+" "+this._session_state,this._frame_origin)};i(),this._timer=setInterval(i,this._intervalInSeconds*1e3)}stop(){this._logger.create("stop"),this._session_state=null,this._timer&&(clearInterval(this._timer),this._timer=null)}},My=class{constructor(){this._logger=new Re("InMemoryWebStorage"),this._data={}}clear(){this._logger.create("clear"),this._data={}}getItem(n){return this._logger.create(`getItem('${n}')`),this._data[n]}setItem(n,i){this._logger.create(`setItem('${n}')`),this._data[n]=i}removeItem(n){this._logger.create(`removeItem('${n}')`),delete this._data[n]}get length(){return Object.getOwnPropertyNames(this._data).length}key(n){return Object.getOwnPropertyNames(this._data)[n]}},gf=class extends Error{constructor(n,i){super(i),this.name="ErrorDPoPNonce",this.nonce=n}},Vf=class{constructor(n=[],i=null,s={}){this._jwtHandler=i,this._extraHeaders=s,this._logger=new Re("JsonService"),this._contentTypes=[],this._contentTypes.push(...n,"application/json"),i&&this._contentTypes.push("application/jwt")}async fetchWithTimeout(n,i={}){const{timeoutInSeconds:s,...o}=i;
vendor: 11,641 bytes, line 61
61if(!s)return await fetch(n,o);const u=new AbortController,f=setTimeout(()=>u.abort(),s*1e3);try{return await fetch(n,{...i,signal:u.signal})}catch(d){throw d instanceof DOMException&&d.name==="AbortError"?new Pf("Network timed out"):d}finally{clearTimeout(f)}}async getJson(n,{token:i,credentials:s,timeoutInSeconds:o}={}){const u=this._logger.create("getJson"),f={Accept:this._contentTypes.join(", ")};i&&(u.debug("token passed, setting Authorization header"),f.Authorization="Bearer "+i),this._appendExtraHeaders(f);let d;try{u.debug("url:",n),d=await this.fetchWithTimeout(n,{method:"GET",headers:f,timeoutInSeconds:o,credentials:s})}catch(h){throw u.error("Network Error"),h}u.debug("HTTP response received, status",d.status);const m=d.headers.get("Content-Type");if(m&&!this._contentTypes.find(h=>m.startsWith(h))&&u.throw(new Error(`Invalid response Content-Type: ${m??"undefined"}, from URL: ${n}`)),d.ok&&this._jwtHandler&&m?.startsWith("application/jwt"))return await this._jwtHandler(await d.text());let g;try{g=await d.json()}catch(h){throw u.error("Error parsing JSON response",h),d.ok?h:new Error(`${d.statusText} (${d.status})`)}if(!d.ok)throw u.error("Error from server:",g),g.error?new ea(g):new Error(`${d.statusText} (${d.status}): ${JSON.stringify(g)}`);return g}async postForm(n,{body:i,basicAuth:s,timeoutInSeconds:o,initCredentials:u,extraHeaders:f}){const d=this._logger.create("postForm"),m={Accept:this._contentTypes.join(", "),"Content-Type":"application/x-www-form-urlencoded",...f};s!==void 0&&(m.Authorization="Basic "+s),this._appendExtraHeaders(m);let g;try{d.debug("url:",n),g=await this.fetchWithTimeout(n,{method:"POST",headers:m,body:i,timeoutInSeconds:o,credentials:u})}catch(w){throw d.error("Network error"),w}d.debug("HTTP response received, status",g.status);const h=g.headers.get("Content-Type");if(h&&!this._contentTypes.find(w=>h.startsWith(w)))throw new Error(`Invalid response Content-Type: ${h??"undefined"}, from URL: ${n}`);const v=await g.text();let y={};if(v)try{y=JSON.parse(v)}catch(w){throw d.error("Error parsing JSON response",w),g.ok?w:new Error(`${g.statusText} (${g.status})`)}if(!g.ok){if(d.error("Error from server:",y),g.headers.has("dpop-nonce")){const w=g.headers.get("dpop-nonce");throw new gf(w,`${JSON.stringify(y)}`)}throw y.error?new ea(y,i):new Error(`${g.statusText} (${g.status}): ${JSON.stringify(y)}`)}return y}_appendExtraHeaders(n){const i=this._logger.create("appendExtraHeaders"),s=Object.keys(this._extraHeaders),o=["accept","content-type"],u=["authorization"];s.length!==0&&s.forEach(f=>{if(o.includes(f.toLocaleLowerCase())){i.warn("Protected header could not be set",f,o);return}if(u.includes(f.toLocaleLowerCase())&&Object.keys(n).includes(f)){i.warn("Header could not be overridden",f,u);return}const d=typeof this._extraHeaders[f]=="function"?this._extraHeaders[f]():this._extraHeaders[f];d&&d!==""&&(n[f]=d)})}},vx=class{constructor(n){this._settings=n,this._logger=new Re("MetadataService"),this._signingKeys=null,this._metadata=null,this._metadataUrl=this._settings.metadataUrl,this._jsonService=new Vf(["application/jwk-set+json"],null,this._settings.extraHeaders),this._settings.signingKeys&&(this._logger.debug("using signingKeys from settings"),this._signingKeys=this._settings.signingKeys),this._settings.metadata&&(this._logger.debug("using metadata from settings"),this._metadata=this._settings.metadata),this._settings.fetchRequestCredentials&&(this._logger.debug("using fetchRequestCredentials from settings"),this._fetchRequestCredentials=this._settings.fetchRequestCredentials)}resetSigningKeys(){this._signingKeys=null}async getMetadata(){const n=this._logger.create("getMetadata");if(this._metadata)return n.debug("using cached values"),this._metadata;if(!this._metadataUrl)throw n.throw(new Error("No authority or metadataUrl configured on settings")),null;n.debug("getting metadata from",this._metadataUrl);const i=await this._jsonService.getJson(this._metadataUrl,{credentials:this._fetchRequestCredentials,timeoutInSeconds:this._settings.requestTimeoutInSeconds});return n.debug("merging remote JSON with seed metadata"),this._metadata=Object.assign({},i,this._settings.metadataSeed),this._metadata}getIssuer(){return this._getMetadataProperty("issuer")}getAuthorizationEndpoint(){return this._getMetadataProperty("authorization_endpoint")}getUserInfoEndpoint(){return this._getMetadataProperty("userinfo_endpoint")}getTokenEndpoint(n=!0){return this._getMetadataProperty("token_endpoint",n)}getCheckSessionIframe(){return this._getMetadataProperty("check_session_iframe",!0)}getEndSessionEndpoint(){return this._getMetadataProperty("end_session_endpoint",!0)}getRevocationEndpoint(n=!0){return this._getMetadataProperty("revocation_endpoint",n)}getKeysEndpoint(n=!0){return this._getMetadataProperty("jwks_uri",n)}async _getMetadataProperty(n,i=!1){const s=this._logger.create(`_getMetadataProperty('${n}')`),o=await this.getMetadata();if(s.debug("resolved"),o[n]===void 0){if(i===!0){s.warn("Metadata does not contain optional property");return}s.throw(new Error("Metadata does not contain property "+n))}return o[n]}async getSigningKeys(){const n=this._logger.create("getSigningKeys");if(this._signingKeys)return n.debug("returning signingKeys from cache"),this._signingKeys;const i=await this.getKeysEndpoint(!1);n.debug("got jwks_uri",i);const s=await this._jsonService.getJson(i,{timeoutInSeconds:this._settings.requestTimeoutInSeconds});if(n.debug("got key set",s),!Array.isArray(s.keys))throw n.throw(new Error("Missing keys on keyset")),null;return this._signingKeys=s.keys,this._signingKeys}},Dy=class{constructor({prefix:n="oidc.",store:i=localStorage}={}){this._logger=new Re("WebStorageStateStore"),this._store=i,this._prefix=n}async set(n,i){this._logger.create(`set('${n}')`),n=this._prefix+n,await this._store.setItem(n,i)}async get(n){return this._logger.create(`get('${n}')`),n=this._prefix+n,await this._store.getItem(n)}async remove(n){this._logger.create(`remove('${n}')`),n=this._prefix+n;const i=await this._store.getItem(n);return await this._store.removeItem(n),i}async getAllKeys(){this._logger.create("getAllKeys");const n=await this._store.length,i=[];for(let s=0;s<n;s++){const o=await this._store.key(s);o&&o.indexOf(this._prefix)===0&&i.push(o.substr(this._prefix.length))}return i}},bx="code",wx="openid",Sx="client_secret_post",_x=900,mf=class{constructor({authority:n,metadataUrl:i,metadata:s,signingKeys:o,metadataSeed:u,client_id:f,client_secret:d,response_type:m=bx,scope:g=wx,redirect_uri:h,post_logout_redirect_uri:v,client_authentication:y=Sx,prompt:w,display:_,max_age:E,ui_locales:k,acr_values:A,resource:C,response_mode:z,filterProtocolClaims:j=!0,loadUserInfo:F=!1,requestTimeoutInSeconds:H,staleStateAgeInSeconds:I=_x,mergeClaimsStrategy:Z={array:"replace"},disablePKCE:$=!1,stateStore:ee,revokeTokenAdditionalContentTypes:ue,fetchRequestCredentials:ge,refreshTokenAllowedScope:he,extraQueryParams:ve={},extraTokenParams:we={},extraHeaders:me={},dpop:O,omitScopeWhenRequesting:V=!1}){var L;if(this.authority=n,i?this.metadataUrl=i:(this.metadataUrl=n,n&&(this.metadataUrl.endsWith("/")||(this.metadataUrl+="/"),this.metadataUrl+=".well-known/openid-configuration")),this.metadata=s,this.metadataSeed=u,this.signingKeys=o,this.client_id=f,this.client_secret=d,this.response_type=m,this.scope=g,this.redirect_uri=h,this.post_logout_redirect_uri=v,this.client_authentication=y,this.prompt=w,this.display=_,this.max_age=E,this.ui_locales=k,this.acr_values=A,this.resource=C,this.response_mode=z,this.filterProtocolClaims=j??!0,this.loadUserInfo=!!F,this.staleStateAgeInSeconds=I,this.mergeClaimsStrategy=Z,this.omitScopeWhenRequesting=V,this.disablePKCE=!!$,this.revokeTokenAdditionalContentTypes=ue,this.fetchRequestCredentials=ge||"same-origin",this.requestTimeoutInSeconds=H,ee)this.stateStore=ee;else{const re=typeof window<"u"?window.localStorage:new My;this.stateStore=new Dy({store:re})}if(this.refreshTokenAllowedScope=he,this.extraQueryParams=ve,this.extraTokenParams=we,this.extraHeaders=me,this.dpop=O,this.dpop&&!((L=this.dpop)!=null&&L.store))throw new Error("A DPoPStore is required when dpop is enabled")}},xx=class{constructor(n,i){this._settings=n,this._metadataService=i,this._logger=new Re("UserInfoService"),this._getClaimsFromJwt=async s=>{const o=this._logger.create("_getClaimsFromJwt");try{const u=ll.decode(s);return o.debug("JWT decoding successful"),u}catch(u){throw o.error("Error parsing JWT response"),u}},this._jsonService=new Vf(void 0,this._getClaimsFromJwt,this._settings.extraHeaders)}async getClaims(n){const i=this._logger.create("getClaims");n||this._logger.throw(new Error("No token passed"));const s=await this._metadataService.getUserInfoEndpoint();i.debug("got userinfo url",s);const o=await this._jsonService.getJson(s,{token:n,credentials:this._settings.fetchRequestCredentials,timeoutInSeconds:this._settings.requestTimeoutInSeconds});return i.debug("got claims",o),o}},Ny=class{constructor(n,i){this._settings=n,this._metadataService=i,this._logger=new Re("TokenClient"),this._jsonService=new Vf(this._settings.revokeTokenAdditionalContentTypes,null,this._settings.extraHeaders)}async exchangeCode({grant_type:n="authorization_code",redirect_uri:i=this._settings.redirect_uri,client_id:s=this._settings.client_id,client_secret:o=this._settings.client_secret,extraHeaders:u,...f}){const d=this._logger.create("exchangeCode");s||d.throw(new Error("A client_id is required")),i||d.throw(new Error("A redirect_uri is required")),f.code||d.throw(new Error("A code is required"));const m=new URLSearchParams({grant_type:n,redirect_uri:i});for(const[y,w]of Object.entries(f))w!=null&&m.set(y,w);let g;switch(this._settings.client_authentication){case"client_secret_basic":if(o==null)throw d.throw(new Error("A client_secret is required")),null;g=Ot.generateBasicAuth(s,o);break;case"client_secret_post":m.append("client_id",s),o&&m.append("client_secret",o);break}const h=await this._metadataService.getTokenEndpoint(!1);d.debug("got token endpoint");const v=await this._jsonService.postForm(h,{body:m,basicAuth:g,timeoutInSeconds:this._settings.requestTimeoutInSeconds,initCredentials:this._settings.fetchRequestCredentials,extraHeaders:u});return d.debug("got response"),v}async exchangeCredentials({grant_type:n="password",client_id:i=this._settings.client_id,client_secret:s=this._settings.client_secret,scope:o=this._settings.scope,...u}){const f=this._logger.create("exchangeCredentials");i||f.throw(new Error("A client_id is required"));const d=new URLSearchParams({grant_type:n});this._settings.omitScopeWhenRequesting||d.set("scope",o);for(const[v,y]of Object.entries(u))y!=null&&d.set(v,y);let m;switch(this._settings.client_authentication){case"client_secret_basic":if(s==null)throw f.throw(new Error("A client_secret is required")),null;m=Ot.generateBasicAuth(i,s);break;case"client_secret_post":d.append("client_id",i),s&&d.append("client_secret",s);break}const g=await this._metadataService.getTokenEndpoint(!1);f.debug("got token endpoint");const h=await this._jsonService.postForm(g,{body:d,basicAuth:m,timeoutInSeconds:this._settings.requestTimeoutInSeconds,initCredentials:this._settings.fetchRequestCredentials});return f.debug("got response"),h}async exchangeRefreshToken({grant_type:n="refresh_token",client_id:i=this._settings.client_id,client_secret:s=this._settings.client_secret,timeoutInSeconds:o,extraHeaders:u,...f}){const d=this._logger.create("exchangeRefreshToken");i||d.throw(new Error("A client_id is required")),f.refresh_token||d.throw(new Error("A refresh_token is required"));const m=new URLSearchParams({grant_type:n});
61for(const[y,w]of Object.entries(f))Array.isArray(w)?w.forEach(_=>m.append(y,_)):w!=null&&m.set(y,w);let g;switch(this._settings.client_authentication){case"client_secret_basic":if(s==null)throw d.throw(new Error("A client_secret is required")),null;g=Ot.generateBasicAuth(i,s);break;case"client_secret_post":m.append("client_id",i),s&&m.append("client_secret",s);break}const h=await this._metadataService.getTokenEndpoint(!1);d.debug("got token endpoint");const v=await this._jsonService.postForm(h,{body:m,basicAuth:g,timeoutInSeconds:o,initCredentials:this._settings.fetchRequestCredentials,extraHeaders:u});return d.debug("got response"),v}async revoke(n){var i;const s=this._logger.create("revoke");n.token||s.throw(new Error("A token is required"));const o=await this._metadataService.getRevocationEndpoint(!1);s.debug(`got revocation endpoint, revoking ${(i=n.token_type_hint)!=null?i:"default token type"}`);const u=new URLSearchParams;for(const[f,d]of Object.entries(n))d!=null&&u.set(f,d);u.set("client_id",this._settings.client_id),this._settings.client_secret&&u.set("client_secret",this._settings.client_secret),await this._jsonService.postForm(o,{body:u,timeoutInSeconds:this._settings.requestTimeoutInSeconds}),s.debug("got response")}},Ex=class{constructor(n,i,s){this._settings=n,this._metadataService=i,this._claimsService=s,this._logger=new Re("ResponseValidator"),this._userInfoService=new xx(this._settings,this._metadataService),this._tokenClient=new Ny(this._settings,this._metadataService)}async validateSigninResponse(n,i,s){const o=this._logger.create("validateSigninResponse");this._processSigninState(n,i),o.debug("state processed"),await this._processCode(n,i,s),o.debug("code processed"),n.isOpenId&&this._validateIdTokenAttributes(n),o.debug("tokens validated"),await this._processClaims(n,i?.skipUserInfo,n.isOpenId),o.debug("claims processed")}async validateCredentialsResponse(n,i){const s=this._logger.create("validateCredentialsResponse"),o=n.isOpenId&&!!n.id_token;o&&this._validateIdTokenAttributes(n),s.debug("tokens validated"),await this._processClaims(n,i,o),s.debug("claims processed")}async validateRefreshResponse(n,i){var s,o;const u=this._logger.create("validateRefreshResponse");n.userState=i.data,(s=n.session_state)!=null||(n.session_state=i.session_state),(o=n.scope)!=null||(n.scope=i.scope),n.isOpenId&&n.id_token&&(this._validateIdTokenAttributes(n,i.id_token),u.debug("ID Token validated")),n.id_token||(n.id_token=i.id_token,n.profile=i.profile);const f=n.isOpenId&&!!n.id_token;await this._processClaims(n,!1,f),u.debug("claims processed")}validateSignoutResponse(n,i){const s=this._logger.create("validateSignoutResponse");if(i.id!==n.state&&s.throw(new Error("State does not match")),s.debug("state validated"),n.userState=i.data,n.error)throw s.warn("Response was error",n.error),new ea(n)}_processSigninState(n,i){var s;const o=this._logger.create("_processSigninState");if(i.id!==n.state&&o.throw(new Error("State does not match")),i.client_id||o.throw(new Error("No client_id on state")),i.authority||o.throw(new Error("No authority on state")),this._settings.authority!==i.authority&&o.throw(new Error("authority mismatch on settings vs. signin state")),this._settings.client_id&&this._settings.client_id!==i.client_id&&o.throw(new Error("client_id mismatch on settings vs. signin state")),o.debug("state validated"),n.userState=i.data,n.url_state=i.url_state,(s=n.scope)!=null||(n.scope=i.scope),n.error)throw o.warn("Response was error",n.error),new ea(n);i.code_verifier&&!n.code&&o.throw(new Error("Expected code in response"))}async _processClaims(n,i=!1,s=!0){const o=this._logger.create("_processClaims");if(n.profile=this._claimsService.filterProtocolClaims(n.profile),i||!this._settings.loadUserInfo||!n.access_token){o.debug("not loading user info");return}o.debug("loading user info");const u=await this._userInfoService.getClaims(n.access_token);o.debug("user info claims received from user info endpoint"),s&&u.sub!==n.profile.sub&&o.throw(new Error("subject from UserInfo response does not match subject in ID Token")),n.profile=this._claimsService.mergeClaims(n.profile,this._claimsService.filterProtocolClaims(u)),o.debug("user info claims received, updated profile:",n.profile)}async _processCode(n,i,s){const o=this._logger.create("_processCode");if(n.code){o.debug("Validating code");const u=await this._tokenClient.exchangeCode({client_id:i.client_id,client_secret:i.client_secret,code:n.code,redirect_uri:i.redirect_uri,code_verifier:i.code_verifier,extraHeaders:s,...i.extraTokenParams});Object.assign(n,u)}else o.debug("No code to process")}_validateIdTokenAttributes(n,i){var s;const o=this._logger.create("_validateIdTokenAttributes");o.debug("decoding ID Token JWT");const u=ll.decode((s=n.id_token)!=null?s:"");if(u.sub||o.throw(new Error("ID Token is missing a subject claim")),i){const f=ll.decode(i);u.sub!==f.sub&&o.throw(new Error("sub in id_token does not match current sub")),u.auth_time&&u.auth_time!==f.auth_time&&o.throw(new Error("auth_time in id_token does not match original auth_time")),u.azp&&u.azp!==f.azp&&o.throw(new Error("azp in id_token does not match original azp")),!u.azp&&f.azp&&o.throw(new Error("azp not in id_token, but present in original id_token"))}n.profile=u}},ul=class pf{constructor(i){this.id=i.id||Ot.generateUUIDv4(),this.data=i.data,i.created&&i.created>0?this.created=i.created:this.created=Fn.getEpochTime(),this.request_type=i.request_type,this.url_state=i.url_state}toStorageString(){return new Re("State").create("toStorageString"),JSON.stringify({id:this.id,data:this.data,created:this.created,request_type:this.request_type,url_state:this.url_state})}static fromStorageString(i){return Re.createStatic("State","fromStorageString"),Promise.resolve(new pf(JSON.parse(i)))}static async clearStaleState(i,s){const o=Re.createStatic("State","clearStaleState"),u=Fn.getEpochTime()-s,f=await i.getAllKeys();o.debug("got keys",f);for(let d=0;d<f.length;d++){const m=f[d],g=await i.get(m);let h=!1;if(g)try{const v=await pf.fromStorageString(g);o.debug("got item from key:",m,v.created),v.created<=u&&(h=!0)}catch(v){o.error("Error parsing state for key:",m,v),h=!0}else o.debug("no item in storage for key:",m),h=!0;h&&(o.debug("removed item for key:",m),i.remove(m))}}},Uy=class yf extends ul{constructor(i){super(i),this.code_verifier=i.code_verifier,this.co
61de_challenge=i.code_challenge,this.authority=i.authority,this.client_id=i.client_id,this.redirect_uri=i.redirect_uri,this.scope=i.scope,this.client_secret=i.client_secret,this.extraTokenParams=i.extraTokenParams,this.response_mode=i.response_mode,this.skipUserInfo=i.skipUserInfo}static async create(i){const s=i.code_verifier===!0?Ot.generateCodeVerifier():i.code_verifier||void 0,o=s?await Ot.generateCodeChallenge(s):void 0;return new yf({...i,code_verifier:s,code_challenge:o})}toStorageString(){return new Re("SigninState").create("toStorageString"),JSON.stringify({id:this.id,data:this.data,created:this.created,request_type:this.request_type,url_state:this.url_state,code_verifier:this.code_verifier,authority:this.authority,client_id:this.client_id,redirect_uri:this.redirect_uri,scope:this.scope,client_secret:this.client_secret,extraTokenParams:this.extraTokenParams,response_mode:this.response_mode,skipUserInfo:this.skipUserInfo})}static fromStorageString(i){Re.createStatic("SigninState","fromStorageString");const s=JSON.parse(i);return yf.create(s)}},qy=class zy{constructor(i){this.url=i.url,this.state=i.state}static async create({url:i,authority:s,client_id:o,redirect_uri:u,response_type:f,scope:d,state_data:m,response_mode:g,request_type:h,client_secret:v,nonce:y,url_state:w,resource:_,skipUserInfo:E,extraQueryParams:k,extraTokenParams:A,disablePKCE:C,dpopJkt:z,omitScopeWhenRequesting:j,...F}){if(!i)throw this._logger.error("create: No url passed"),new Error("url");if(!o)throw this._logger.error("create: No client_id passed"),new Error("client_id");if(!u)throw this._logger.error("create: No redirect_uri passed"),new Error("redirect_uri");if(!f)throw this._logger.error("create: No response_type passed"),new Error("response_type");if(!d)throw this._logger.error("create: No scope passed"),new Error("scope");if(!s)throw this._logger.error("create: No authority passed"),new Error("authority");const H=await Uy.create({data:m,request_type:h,url_state:w,code_verifier:!C,client_id:o,authority:s,redirect_uri:u,response_mode:g,client_secret:v,scope:d,extraTokenParams:A,skipUserInfo:E}),I=new URL(i);I.searchParams.append("client_id",o),I.searchParams.append("redirect_uri",u),I.searchParams.append("response_type",f),j||I.searchParams.append("scope",d),y&&I.searchParams.append("nonce",y),z&&I.searchParams.append("dpop_jkt",z);let Z=H.id;w&&(Z=`${Z}${Wa}${w}`),I.searchParams.append("state",Z),H.code_challenge&&(I.searchParams.append("code_challenge",H.code_challenge),I.searchParams.append("code_challenge_method","S256")),_&&(Array.isArray(_)?_:[_]).forEach(ee=>I.searchParams.append("resource",ee));for(const[$,ee]of Object.entries({response_mode:g,...F,...k}))ee!=null&&I.searchParams.append($,ee.toString());return new zy({url:I.href,state:H})}};qy._logger=new Re("SigninRequest");var Tx=qy,Rx="openid",Kc=class{constructor(n){if(this.access_token="",this.token_type="",this.profile={},this.state=n.get("state"),this.session_state=n.get("session_state"),this.state){const i=decodeURIComponent(this.state).split(Wa);this.state=i[0],i.length>1&&(this.url_state=i.slice(1).join(Wa))}this.error=n.get("error"),this.error_description=n.get("error_description"),this.error_uri=n.get("error_uri"),this.code=n.get("code")}get expires_in(){if(this.expires_at!==void 0)return this.expires_at-Fn.getEpochTime()}set expires_in(n){typeof n=="string"&&(n=Number(n)),n!==void 0&&n>=0&&(this.expires_at=Math.floor(n)+Fn.getEpochTime())}get isOpenId(){var n;return((n=this.scope)==null?void 0:n.split(" ").includes(Rx))||!!this.id_token}},Ax=class{constructor({url:n,state_data:i,id_token_hint:s,post_logout_redirect_uri:o,extraQueryParams:u,request_type:f,client_id:d,url_state:m}){if(this._logger=new Re("SignoutRequest"),!n)throw this._logger.error("ctor: No url passed"),new Error("url");const g=new URL(n);if(s&&g.searchParams.append("id_token_hint",s),d&&g.searchParams.append("client_id",d),o&&(g.searchParams.append("post_logout_redirect_uri",o),i||m)){this.state=new ul({data:i,request_type:f,url_state:m});let h=this.state.id;m&&(h=`${h}${Wa}${m}`),g.searchParams.append("state",h)}for(const[h,v]of Object.entries({...u}))v!=null&&g.searchParams.append(h,v.toString());this.url=g.href}},Cx=class{constructor(n){if(this.state=n.get("state"),this.state){const i=decodeURIComponent(this.state).split(Wa);this.state=i[0],i.length>1&&(this.url_state=i.slice(1).join(Wa))}this.error=n.get("error"),this.error_description=n.get("error_description"),this.error_uri=n.get("error_uri")}},Ox=["nbf","jti","auth_time","nonce","acr","amr","azp","at_hash"],kx=["sub","iss","aud","exp","iat"],Mx=class{constructor(n){this._settings=n,this._logger=new Re("ClaimsService")}filterProtocolClaims(n){const i={...n};if(this._settings.filterProtocolClaims){let s;Array.isArray(this._settings.filterProtocolClaims)?s=this._settings.filterProtocolClaims:s=Ox;for(const o of s)kx.includes(o)||delete i[o]}return i}mergeClaims(n,i){const s={...n};for(const[o,u]of Object.entries(i))if(s[o]!==u)if(Array.isArray(s[o])||Array.isArray(u))if(this._settings.mergeClaimsStrategy.array=="replace")s[o]=u;else{const f=Array.isArray(s[o])?s[o]:[s[o]];for(const d of Array.isArray(u)?u:[u])f.includes(d)||f.push(d);s[o]=f}else typeof s[o]=="object"&&typeof u=="object"?s[o]=this.mergeClaims(s[o],u):s[o]=u;return s}},Ly=class{constructor(n,i){this.keys=n,this.nonce=i}},Dx=class{constructor(n,i){this._logger=new Re("OidcClient"),this.settings=n instanceof mf?n:new mf(n),this.metadataService=i??new vx(this.settings),this._claimsService=new Mx(this.settings),this._val
vendor: 4,443 bytes, line 61
61idator=new Ex(this.settings,this.metadataService,this._claimsService),this._tokenClient=new Ny(this.settings,this.metadataService)}async createSigninRequest({state:n,request:i,request_uri:s,request_type:o,id_token_hint:u,login_hint:f,skipUserInfo:d,nonce:m,url_state:g,response_type:h=this.settings.response_type,scope:v=this.settings.scope,redirect_uri:y=this.settings.redirect_uri,prompt:w=this.settings.prompt,display:_=this.settings.display,max_age:E=this.settings.max_age,ui_locales:k=this.settings.ui_locales,acr_values:A=this.settings.acr_values,resource:C=this.settings.resource,response_mode:z=this.settings.response_mode,extraQueryParams:j=this.settings.extraQueryParams,extraTokenParams:F=this.settings.extraTokenParams,dpopJkt:H,omitScopeWhenRequesting:I=this.settings.omitScopeWhenRequesting}){const Z=this._logger.create("createSigninRequest");if(h!=="code")throw new Error("Only the Authorization Code flow (with PKCE) is supported");const $=await this.metadataService.getAuthorizationEndpoint();Z.debug("Received authorization endpoint",$);const ee=await Tx.create({url:$,authority:this.settings.authority,client_id:this.settings.client_id,redirect_uri:y,response_type:h,scope:v,state_data:n,url_state:g,prompt:w,display:_,max_age:E,ui_locales:k,id_token_hint:u,login_hint:f,acr_values:A,dpopJkt:H,resource:C,request:i,request_uri:s,extraQueryParams:j,extraTokenParams:F,request_type:o,response_mode:z,client_secret:this.settings.client_secret,skipUserInfo:d,nonce:m,disablePKCE:this.settings.disablePKCE,omitScopeWhenRequesting:I});await this.clearStaleState();const ue=ee.state;return await this.settings.stateStore.set(ue.id,ue.toStorageString()),ee}async readSigninResponseState(n,i=!1){const s=this._logger.create("readSigninResponseState"),o=new Kc(hf.readParams(n,this.settings.response_mode));if(!o.state)throw s.throw(new Error("No state in response")),null;const u=await this.settings.stateStore[i?"remove":"get"](o.state);if(!u)throw s.throw(new Error("No matching state found in storage")),null;return{state:await Uy.fromStorageString(u),response:o}}async processSigninResponse(n,i,s=!0){const o=this._logger.create("processSigninResponse"),{state:u,response:f}=await this.readSigninResponseState(n,s);if(o.debug("received state from storage; validating response"),this.settings.dpop&&this.settings.dpop.store){const d=await this.getDpopProof(this.settings.dpop.store);i={...i,DPoP:d}}try{await this._validator.validateSigninResponse(f,u,i)}catch(d){if(d instanceof gf&&this.settings.dpop){const m=await this.getDpopProof(this.settings.dpop.store,d.nonce);i.DPoP=m,await this._validator.validateSigninResponse(f,u,i)}else throw d}return f}async getDpopProof(n,i){let s,o;return(await n.getAllKeys()).includes(this.settings.client_id)?(o=await n.get(this.settings.client_id),o.nonce!==i&&i&&(o.nonce=i,await n.set(this.settings.client_id,o))):(s=await Ot.generateDPoPKeys(),o=new Ly(s,i),await n.set(this.settings.client_id,o)),await Ot.generateDPoPProof({url:await this.metadataService.getTokenEndpoint(!1),httpMethod:"POST",keyPair:o.keys,nonce:o.nonce})}async processResourceOwnerPasswordCredentials({username:n,password:i,skipUserInfo:s=!1,extraTokenParams:o={}}){const u=await this._tokenClient.exchangeCredentials({username:n,password:i,...o}),f=new Kc(new URLSearchParams);return Object.assign(f,u),await this._validator.validateCredentialsResponse(f,s),f}async useRefreshToken({state:n,redirect_uri:i,resource:s,timeoutInSeconds:o,extraHeaders:u,extraTokenParams:f}){var d;const m=this._logger.create("useRefreshToken");let g;if(this.settings.refreshTokenAllowedScope===void 0)g=n.scope;else{const y=this.settings.refreshTokenAllowedScope.split(" ");g=(((d=n.scope)==null?void 0:d.split(" "))||[]).filter(_=>y.includes(_)).join(" ")}if(this.settings.dpop&&this.settings.dpop.store){const y=await this.getDpopProof(this.settings.dpop.store);u={...u,DPoP:y}}let h;try{h=await this._tokenClient.exchangeRefreshToken({refresh_token:n.refresh_token,scope:g,redirect_uri:i,resource:s,timeoutInSeconds:o,extraHeaders:u,...f})}catch(y){if(y instanceof gf&&this.settings.dpop)u.DPoP=await this.getDpopProof(this.settings.dpop.store,y.nonce),h=await this._tokenClient.exchangeRefreshToken({refresh_token:n.refresh_token,scope:g,redirect_uri:i,resource:s,timeoutInSeconds:o,extraHeaders:u,...f});else throw y}const v=new Kc(new URLSearchParams);return Object.assign(v,h),m.debug("validating response",v),await this._val
61idator.validateRefreshResponse(v,{...n,scope:g}),v}async createSignoutRequest({state:n,id_token_hint:i,client_id:s,request_type:o,url_state:u,post_logout_redirect_uri:f=this.settings.post_logout_redirect_uri,extraQueryParams:d=this.settings.extraQueryParams}={}){const m=this._logger.create("createSignoutRequest"),g=await this.metadataService.getEndSessionEndpoint();if(!g)throw m.throw(new Error("No end session endpoint")),null;m.debug("Received end session endpoint",g),!s&&f&&!i&&(s=this.settings.client_id);const h=new Ax({url:g,id_token_hint:i,client_id:s,post_logout_redirect_uri:f,state_data:n,extraQueryParams:d,request_type:o,url_state:u});await this.clearStaleState();const v=h.state;return v&&(m.debug("Signout request has state to persist"),await this.settings.stateStore.set(v.id,v.toStorageString())),h}async readSignoutResponseState(n,i=!1){const s=this._logger.create("readSignoutResponseState"),o=new Cx(hf.readParams(n,this.settings.response_mode));if(!o.state){if(s.debug("No state in response"),o.error)throw s.warn("Response was error:",o.error),new ea(o);return{state:void 0,response:o}}const u=await this.settings.stateStore[i?"remove":"get"](o.state);if(!u)throw s.throw(new Error("No matching state found in storage")),null;return{state:await ul.fromStorageString(u),response:o}}async processSignoutResponse(n){const i=this._logger.create("processSignoutResponse"),{state:s,response:o}=await this.readSignoutResponseState(n,!0);return s?(i.debug("Received state from storage; validating response"),this._validator.validateSignoutResponse(o,s)):i.debug("No state from storage; skipping response validation"),o}clearStaleState(){return this._logger.create("clearStaleState"),ul.clearStaleState(this.settings.stateStore,this.settings.staleStateAgeInSeconds)}async revokeToken(n,i){return this._logger.create("revokeToken"),await this._tokenClient.revoke({token:n,token_type_hint:i})}},Nx=class{constructor(n){this._userManager=n,this._logger=new Re("SessionMonitor"),this._start=async i=>{const s=i.session_state;if(!s)return;const o=this._logger.create("_start");if(i.profile?(this._sub=i.profile.sub,o.debug("session_state",s,", sub",this._sub)):(this._sub=void 0,o.debug("session_state",s,", anonymous user")),this._checkSessionIFrame){this._checkSessionIFrame.start(s);return}try{const u=await this._userManager.metadataService.getCheckSessionIframe();if(u){o.debug("initializing check session iframe");const f=this._userManager.settings.client_id,d=this._userManager.settings.checkSessionIntervalInSeconds,m=this._userManager.settings.stopCheckSessionOnError,g=new yx(this._callback,f,u,d,m);await g.load(),this._checkSessionIFrame=g,g.start(s)}else o.warn("no check session iframe found in the metadata")}catch(u){o.error("Error from getCheckSessionIframe:",u instanceof Error?u.message:u)}},this._stop=()=>{const i=this._logger.create("_stop");if(this._sub=void 0,this._checkSessionIFrame&&this._checkSessionIFrame.stop(),this._userManager.settings.monitorAnonymousSession){const s=setInterval(async()=>{clearInterval(s);try{const o=await this._userManager.querySessionStatus();if(o){const u={session_state:o.session_state,profile:o.sub?{sub:o.sub}:null};this._start(u)}}catch(o){i.error("error from querySessionStatus",o instanceof Error?o.message:o)}},1e3)}},this._callback=async()=>{const i=this._logger.create("_callback");try{const s=await this._userManager.querySessionStatus();let o=!0;s&&this._checkSessionIFrame?s.sub===this._sub?(o=!1,this._checkSessionIFrame.start(s.session_state),i.debug("same sub still logged in at OP, session state has changed, restarting check session iframe; session_state",s.session_state),await this._userManager.events._raiseUserSessionChanged()):i.debug("different subject signed into OP",s.sub):i.debug("subject no longer signed into OP"),o?this._sub?await this._userManager.events._raiseUserSignedOut():await this._userManager.events._raiseUserSignedIn():i.debug("no change in session detected, no event to raise")}catch(s){this._sub&&(i.debug("Error calling queryCurrentSigninSession; raising signed out event",s),await this._userManager.events._raiseUserSignedOut())}},n||this._logger.throw(new Error("No user manager passed")),this._userManager.events.addUserLoaded(this._start),this._userManager.events.addUserUnloaded(this._stop),this._init().catch(i=>{this._logger.error(i)})}async _init(){this._logger.create("_init");const n=await this._userManager.getUser();if(n)this._start(n);else if(this._userManager.settings.monitorAnonymousSession){const i=await this._userManager.querySessionStatus();if(i){const s={session_state:i.session_state,profile:i.sub?{sub:i.sub}:null};this._start(s)}}}},Zc=class Hy{constructor(i){var s;this.id_token=i.id_token,this.session_state=(s=i.session_state)!=null?s:null,this.access_token=i.access_token,this.refresh_token=i.refresh_token,this.token_type=i.token_type,this.scope=i.scope,this.profile=i.profile,this.expires_at=i.expires_at,this.state=i.userState,this.url_state=i.url_state}get expires_in(){if(this.expires_at!==void 0)return this.expires_at-Fn.getEpochTime()}set expires_in(i){i!==void 0&&(this.expires_at=Math.floor(i)+Fn.getEpochTime())}get expired(){const i=this.expires_in;if(i!==void 0)return i<=0}get scopes(){var i,s;return(s=(i=this.scope)==null?void 0:i.split(" "))!=null?s:[]}toStorageString(){return new Re("User").create("toStorageString"),JSON.stringify({id_token:this.id_token,session_state:this.session_state,access_token:this.access_token,refresh_token:this.refresh_token,token_type:this.token_type,scope:this.scope,profile:this.profile,expires_at:this.expires_at})}static fromStorageString(i){return Re.createStatic("User","fromStorageString"),new Hy(JSON.parse(i))}},hp="oidc-client",By=class{constructor(){this._abort=new Ai("Window navigation aborted"),this._disposeHandlers=new Set,this._window=null}async navigate(n){const i=this._logger.create("navigate");if(!this._window)throw new Error("Attempted to navigate on a disposed window");i.debug("setting URL in window"),this._window.location.replace(n.url);const{url:s,keepOpen:o}=await new Promise((u,f)=>{const d=g=>{var h;const v=g.data,y=(h=n.scriptOrigin)!=null?h:window.location.origin;if(!(g.origin!==y||v?.source!==hp)){try{const w=hf.readParams(v.url,n.response_mode).get("state");if(w||i.warn("no state found in response url"),g.source!==this._window&&w!==n.state)return}catch{this._dispose(),f(new Error("Invalid response from window"))}u(v)}};window.addEventListener("message",d,!1),this._disposeHandlers.add(()=>window.removeEventListener("message",d,!1));const m=new BroadcastChannel(`oidc-client-popup-${n.state}`);m.addEventListener("message",d,!1),this._disposeHandlers.add(()=>m.close()),this._disposeHandlers.add(this._abort.addHandler(g=>{this._dispose(),f(g)}))});return i.debug("got response from window"),this._dispose(),o||this.close(),{url:s}}_dispose(){this._logger.create("_dispose");for(const n of this._disposeHandlers)n();this._disposeHandlers.clear()}static _notifyParent(n,i,s=!1,o=window.location.origin){const u={source:hp,url:i,keepOpen:s},f=new Re("_notifyParent");
61if(n)f.debug("With parent. Using parent.postMessage."),n.postMessage(u,o);else{f.debug("No parent. Using BroadcastChannel.");const d=new URL(i).searchParams.get("state");if(!d)throw new Error("No parent and no state in URL. Can't complete notification.");const m=new BroadcastChannel(`oidc-client-popup-${d}`);m.postMessage(u),m.close()}}},jy={location:!1,toolbar:!1,height:640,closePopupWindowAfterInSeconds:-1},Py="_blank",Ux=60,qx=2,Vy=10,zx=class extends mf{constructor(n){const{popup_redirect_uri:i=n.redirect_uri,popup_post_logout_redirect_uri:s=n.post_logout_redirect_uri,popupWindowFeatures:o=jy,popupWindowTarget:u=Py,redirectMethod:f="assign",redirectTarget:d="self",iframeNotifyParentOrigin:m=n.iframeNotifyParentOrigin,iframeScriptOrigin:g=n.iframeScriptOrigin,requestTimeoutInSeconds:h,silent_redirect_uri:v=n.redirect_uri,silentRequestTimeoutInSeconds:y,automaticSilentRenew:w=!0,validateSubOnSilentRenew:_=!0,includeIdTokenInSilentRenew:E=!1,monitorSession:k=!1,monitorAnonymousSession:A=!1,checkSessionIntervalInSeconds:C=qx,query_status_response_type:z="code",stopCheckSessionOnError:j=!0,revokeTokenTypes:F=["access_token","refresh_token"],revokeTokensOnSignout:H=!1,includeIdTokenInSilentSignout:I=!1,accessTokenExpiringNotificationTimeInSeconds:Z=Ux,userStore:$}=n;if(super(n),this.popup_redirect_uri=i,this.popup_post_logout_redirect_uri=s,this.popupWindowFeatures=o,this.popupWindowTarget=u,this.redirectMethod=f,this.redirectTarget=d,this.iframeNotifyParentOrigin=m,this.iframeScriptOrigin=g,this.silent_redirect_uri=v,this.silentRequestTimeoutInSeconds=y||h||Vy,this.automaticSilentRenew=w,this.validateSubOnSilentRenew=_,this.includeIdTokenInSilentRenew=E,this.monitorSession=k,this.monitorAnonymousSession=A,this.checkSessionIntervalInSeconds=C,this.stopCheckSessionOnError=j,this.query_status_response_type=z,this.revokeTokenTypes=F,this.revokeTokensOnSignout=H,this.includeIdTokenInSilentSignout=I,this.accessTokenExpiringNotificationTimeInSeconds=Z,$)this.userStore=$;else{const ee=typeof window<"u"?window.sessionStorage:new My;this.userStore=new Dy({store:ee})}}},gp=class Qy extends By{constructor({silentRequestTimeoutInSeconds:i=Vy}){super(),this._logger=new Re("IFrameWindow"),this._timeoutInSeconds=i,this._frame=Qy.createHiddenIframe(),this._window=this._frame.contentWindow}static createHiddenIframe(){const i=window.document.createElement("iframe");return i.style.visibility="hidden",i.style.position="fixed",i.style.left="-1000px",i.style.top="0",i.width="0",i.height="0",window.document.body.appendChild(i),i}async navigate(i){this._logger.debug("navigate: Using timeout of:",this._timeoutInSeconds);const s=setTimeout(()=>void this._abort.raise(new Pf("IFrame timed out without a response")),this._timeoutInSeconds*1e3);return this._disposeHandlers.add(()=>clearTimeout(s)),await super.navigate(i)}close(){var i;this._frame&&(this._frame.parentNode&&(this._frame.addEventListener("load",s=>{var o;const u=s.target;(o=u.parentNode)==null||o.removeChild(u),this._abort.raise(new Error("IFrame removed from DOM"))},!0),(i=this._frame.contentWindow)==null||i.location.replace("about:blank")),this._frame=null),this._window=null}static notifyParent(i,s){return super._notifyParent(window.parent,i,!1,s)}},Lx=class{constructor(n){this._settings=n,this._logger=new Re("IFrameNavigator")}async prepare({silentRequestTimeoutInSeconds:n=this._settings.silentRequestTimeoutInSeconds}){return new gp({silentRequestTimeoutInSeconds:n})}async callback(n){this._logger.create("callback"),gp.notifyParent(n,this._settings.iframeNotifyParentOrigin)}},Hx=500,Bx=1e3,mp=class extends By{constructor({popupWindowTarget:n=Py,popupWindowFeatures:i={},popupSignal:s}){super(),this._logger=new Re("PopupWindow");const o=dp.center({...jy,...i});this._window=window.open(void 0,n,dp.serialize(o)),s&&s.addEventListener("abort",()=>{var u;this._abort.raise(new Error((u=s.reason)!=null?u:"Popup aborted"))}),i.closePopupWindowAfterInSeconds&&i.closePopupWindowAfterInSeconds>0&&setTimeout(()=>{if(!this._window||typeof this._window.closed!="boolean"||this._window.closed){this._abort.raise(new Error("Popup blocked by user"));return}this.close()},i.closePopupWindowAfterInSeconds*Bx)}async navigate(n){var i;(i=this._window)==null||i.focus();const s=setInterval(()=>{(!this._window||this._window.closed)&&(this._logger.debug("Popup closed by user or isolated by redirect"),o(),this._disposeHandlers.delete(o))},Hx),o=()=>clearInterval(s);return this._disposeHandlers.add(o),await super.navigate(n)}close(){this._window&&(this._window.closed||(this._window.close(),this._abort.raise(new Error("Popup closed")))),this._window=null}static notifyOpener(n,i){super._notifyParent(window.opener,n,i),!i&&!window.opener&&window.close()}}
61,jx=class{constructor(n){this._settings=n,this._logger=new Re("PopupNavigator")}async prepare({popupWindowFeatures:n=this._settings.popupWindowFeatures,popupWindowTarget:i=this._settings.popupWindowTarget,popupSignal:s}){return new mp({popupWindowFeatures:n,popupWindowTarget:i,popupSignal:s})}async callback(n,{keepOpen:i=!1}){this._logger.create("callback"),mp.notifyOpener(n,i)}},Px=class{constructor(n){this._settings=n,this._logger=new Re("RedirectNavigator")}async prepare({redirectMethod:n=this._settings.redirectMethod,redirectTarget:i=this._settings.redirectTarget}){var s;this._logger.create("prepare");let o=window.self;i==="top"&&(o=(s=window.top)!=null?s:window.self);const u=o.location[n].bind(o.location);let f;return{navigate:async d=>{this._logger.create("navigate");const m=new Promise((g,h)=>{f=h});return u(d.url),await m},close:()=>{this._logger.create("close"),f?.(new Error("Redirect aborted")),o.stop()}}}async callback(){}},Vx=class extends px{constructor(n){super({expiringNotificationTimeInSeconds:n.accessTokenExpiringNotificationTimeInSeconds}),this._logger=new Re("UserManagerEvents"),this._userLoaded=new Ai("User loaded"),this._userUnloaded=new Ai("User unloaded"),this._silentRenewError=ne
61w Ai("Silent renew error"),this._userSignedIn=new Ai("User signed in"),this._userSignedOut=new Ai("User signed out"),this._userSessionChanged=new Ai("User session changed")}async load(n,i=!0){await super.load(n),i&&await this._userLoaded.raise(n)}async unload(){await super.unload(),await this._userUnloaded.raise()}addUserLoaded(n){return this._userLoaded.addHandler(n)}removeUserLoaded(n){return this._userLoaded.removeHandler(n)}addUserUnloaded(n){return this._userUnloaded.addHandler(n)}removeUserUnloaded(n){return this._userUnloaded.removeHandler(n)}addSilentRenewError(n){return this._silentRenewError.addHandler(n)}removeSilentRenewError(n){return this._silentRenewError.removeHandler(n)}async _raiseSilentRenewError(n){await this._silentRenewError.raise(n)}addUserSignedIn(n){return this._userSignedIn.addHandler(n)}removeUserSignedIn(n){this._userSignedIn.removeHandler(n)}async _raiseUserSignedIn(){await this._userSignedIn.raise()}addUserSignedOut(n){return this._userSignedOut.addHandler(n)}removeUserSignedOut(n){this._userSignedOut.removeHandler(n)}async _raiseUserSignedOut(){await this._userSignedOut.raise()}addUserSessionChanged(n){return this._userSessionChanged.addHandler(n)}removeUserSessionChanged(n){this._userSessionChanged.removeHandler(n)}async _raiseUserSessionChanged(){await this._userSessionChanged.raise()}},Qx=class{constructor(n){this._userManager=n,this._logger=new Re("SilentRenewService"),this._isStarted=!1,this._retryTimer=new Fn("Retry Silent Renew"),this._tokenExpiring=async()=>{const i=this._logger.create("_tokenExpiring");try{await this._userManager.signinSilent(),i.debug("silent token renewal successful")}catch(s){if(s instanceof Pf){i.warn("ErrorTimeout from signinSilent:",s,"retry in 5s"),this._retryTimer.init(5);return}i.error("Error from signinSilent:",s),await this._userManager.events._raiseSilentRenewError(s)}}}async start(){const n=this._logger.create("start");if(!this._isStarted){this._isStarted=!0,this._userManager.events.addAccessTokenExpiring(this._tokenExpiring),this._retryTimer.addHandler(this._tokenExpiring);try{await this._userManager.getUser()}catch(i){n.error("getUser error",i)}}}stop(){this._isStarted&&(this._retryTimer.cancel(),this._retryTimer.removeHandler(this._tokenExpiring),this._userManager.events.removeAccessTokenExpiring(this._tokenExpiring),this._isStarted=!1)}},Yx=class{constructor(n){this.refresh_token=n.refresh_token,this.id_token=n.id_token,this.session_state=n.session_state,this.scope=n.scope,this.profile=n.profile,this.data=n.state}},Gx=class{constructor(n,i,s,o){this._logger=new Re("UserManager"),this.settings=new zx(n),this._client=new Dx(n),this._redirectNavigator=i??new Px(this.settings),this._popupNavigator=s??new jx(this.settings),this._iframeNavigator=o??new Lx(this.settings),this._events=new Vx(this.settings),this._silentRenewService=new Qx(this),this.settings.automaticSilentRenew&&this.startSilentRenew(),this._sessionMonitor=null,this.settings.monitorSession&&(this._sessionMonitor=new Nx(this))}get events(){return this._events}get metadataService(){return this._client.metadataService}async getUser(n=!1){const i=this._logger.create("getUser"),s=await this._loadUser();return s?(i.info("user loaded"),await this._events.load(s,n),s):(i.info("user not found in storage"),null)}async removeUser(){const n=this._logger.create("removeUser");await this.storeUser(null),n.info("user removed from storage"),await this._events.unload()}async signinRedirect(n={}){var i;this._logger.create("signinRedirect");const{redirectMethod:s,...o}=n;let u;(i=this.settings.dpop)!=null&&i.bind_authorization_code&&(u=await this.generateDPoPJkt(this.settings.dpop));const f=await this._redirectNavigator.prepare({redirectMethod:s});await this._signinStart({request_type:"si:r",dpopJkt:u,...o},f)}async signinRedirectCallback(n=window.location.href){const i=this._logger.create("signinRedirectCallback"),s=await this._signinEnd(n);return s.profile&&s.profile.sub?i.info("success, signed in subject",s.profile.sub):i.info("no subject"),s}async signinResourceOwnerCredentials({username:n,password:i,skipUserInfo:s=!1}){const o=this._logger.create("signinResourceOwnerCredential"),u=await this._client.processResourceOwnerPasswordCredentials({username:n,password:i,skipUserInfo:s,extraTokenParams:this.settings.extraTokenParams});o.debug("got signin response");const f=await this._buildUser(u);return f.profile&&f.profile.sub?o.info("success, signed in subject",f.profile.sub):o.info("no subject"),f}async signinPopup(n={}){var i;const s=this._logger.create("signinPopup");let o;(i=this.settings.dpop)!=null&&i.bind_authorization_code&&(o=await this.generateDPoPJkt(this.settings.dpop));const{popupWindowFeatures:u,popupWindowTarget:f,popupSignal:d,...m}=n,g=this.settings.popup_redirect_uri;g||s.throw(new Error("No popup_redirect_uri configured"));const h=await this._popupNavigator.prepare({popupWindowFeatures:u,popupWindowTarget:f,popupSignal:d}),v=await this._signin({request_type:"si:p",redirect_uri:g,display:"popup",dpopJkt:o,...m},h);return v&&(v.profile&&v.profile.sub?s.info("success, signed in subject",v.profile.sub):s.info("no subject")),v}async signinPopupCallback(n=window.location.href,i=!1){const s=this._logger.create("signinPopupCallback");await this._popupNavigator.callback(n,{keepOpen:i}),s.info("success")}async signinSilent(n={}){var i,s;const o=this._logger.create("signinSilent"),{silentRequestTimeoutInSeconds:u,...f}=n;let d=await this._loadUser();if(d?.refresh_token){o.debug("using refresh token");const y=new Yx(d);return await this._useRefreshToken({state:y,redirect_uri:f.redirect_uri,resource:f.resource,extraTokenParams:f.extraTokenParams,timeoutInSeconds:u})}let m;(i=this.settings.dpop)!=null&&i.bind_authorization_code&&(m=await this.generateDPoPJkt(this.settings.dpop));const g=this.settings.silent_redirect_uri;g||o.throw(new Error("No silent_redirect_uri configured"));let h;
61d&&this.settings.validateSubOnSilentRenew&&(o.debug("subject prior to silent renew:",d.profile.sub),h=d.profile.sub);const v=await this._iframeNavigator.prepare({silentRequestTimeoutInSeconds:u});return d=await this._signin({request_type:"si:s",redirect_uri:g,prompt:"none",id_token_hint:this.settings.includeIdTokenInSilentRenew?d?.id_token:void 0,dpopJkt:m,...f},v,h),d&&((s=d.profile)!=null&&s.sub?o.info("success, signed in subject",d.profile.sub):o.info("no subject")),d}async _useRefreshToken(n){const i=await this._client.useRefreshToken({timeoutInSeconds:this.settings.silentRequestTimeoutInSeconds,...n}),s=new Zc({...n.state,...i});return await this.storeUser(s),await this._events.load(s),s}async signinSilentCallback(n=window.location.href){const i=this._logger.create("signinSilentCallback");await this._iframeNavigator.callback(n),i.info("success")}async signinCallback(n=window.location.href){const{state:i}=await this._client.readSigninResponseState(n);switch(i.request_type){case"si:r":return await this.signinRedirectCallback(n);case"si:p":await this.signinPopupCallback(n);break;case"si:s":await this.signinSilentCallback(n);break;default:throw new Error("invalid response_type in state")}}async signoutCallback(n=window.location.href,i=!1){const{state:s}=await this._client.readSignoutResponseState(n);if(s)switch(s.request_type){case"so:r":return await this.signoutRedirectCallback(n);case"so:p":await this.signoutPopupCallback(n,i);break;case"so:s":await this.signoutSilentCallback(n);break;default:throw new Error("invalid response_type in state")}}async querySessionStatus(n={}){const i=this._logger.create("querySessionStatus"),{silentRequestTimeoutInSeconds:s,...o}=n,u=this.settings.silent_redirect_uri;u||i.throw(new Error("No silent_redirect_uri configured"));const f=await this._loadUser(),d=await this._iframeNavigator.prepare({silentRequestTimeoutInSeconds:s}),m=await this._signinStart({request_type:"si:s",redirect_uri:u,prompt:"none",id_token_hint:this.settings.includeIdTokenInSilentRenew?f?.id_token:void 0,response_type:this.settings.query_status_response_type,scope:"openid",skipUserInfo:!0,...o},d);try{const g={},h=await this._client.processSigninResponse(m.url,g);return i.debug("got signin response"),h.session_state&&h.profile.sub?(i.info("success for subject",h.profile.sub),{session_state:h.session_state,sub:h.profile.sub}):(i.info("success, user not authenticated"),null)}catch(g){if(this.settings.monitorAnonymousSession&&g instanceof ea)switch(g.error){case"login_required":case"consent_required":case"interaction_required":case"account_selection_required":return i.info("success for anonymous user"),{session_state:g.session_state}}throw g}}async _signin(n,i,s){const o=await this._signinStart(n,i);return await this._signinEnd(o.url,s)}async _signinStart(n,i){const s=this._logger.create("_signinStart");try{const o=await this._client.createSigninRequest(n);return s.debug("got signin request"),await i.navigate({url:o.url,state:o.state.id,response_mode:o.state.response_mode,scriptOrigin:this.settings.iframeScriptOrigin})}catch(o){throw s.debug("error after preparing navigator, closing navigator window"),i.close(),o}}async _signinEnd(n,i){const s=this._logger.create("_signinEnd"),o={},u=await this._client.processSigninResponse(n,o);return s.debug("got signin response"),await this._buildUser(u,i)}async _buildUser(n,i){const s=this._logger.create("_buildUser"),o=new Zc(n);if(i){if(i!==o.profile.sub)throw s.debug("current user does not match user returned from signin. sub from signin:",o.profile.sub),new ea({...n,error:"login_required"});s.debug("current user matches user returned from signin")}return await this.storeUser(o),s.debug("user stored"),await this._events.load(o),o}async signoutRedirect(n={}){const i=this._logger.create("signoutRedirect"),{redirectMethod:s,...o}=n,u=await this._redirectNavigator.prepare({redirectMethod:s});await this._signoutStart({request_type:"so:r",post_logout_redirect_uri:this.settings.post_logout_redirect_uri,...o},u),i.info("success")}async signoutRedirectCallback(n=window.location.href){const i=this._logger.create("signoutRedirectCallback"),s=await this._signoutEnd(n);return i.info("success"),s}async signoutPopup(n={}){const i=this._logger.create("signoutPopup"),{popupWindowFeatures:s,popupWindowTarget:o,popupSignal:u,...f}=n,d=this.settings.popup_post_logout_redirect_uri,m=await this._popupNavigator.prepare({popupWindowFeatures:s,popupWindowTarget:o,popupSignal:u});await this._signout({request_type:"so:p",post_logout_redirect_uri:d,state:d==null?void 0:{},...f},m),i.info("success")}async signoutPopupCallback(n=window.location.href,i=!1){const s=this._logger.create("signoutPopupCallback");await this._popupNavigator.callback(n,{keepOpen:i}),s.info("success")}async _signout(n,i){const s=await this._signoutStart(n,i);return await this._signoutEnd(s.url)}async _signoutStart(n={},i){var s;const o=this._logger.create("_signoutStart");try{const u=await this._loadUser();o.debug("loaded current user from storage"),this.settings.revokeTokensOnSignout&&await this._revokeInternal(u);const f=n.id_token_hint||u&&u.id_token;f&&(o.debug("setting id_token_hint in signout request"),n.id_token_hint=f),await this.removeUser(),o.debug("user removed, creating signout request");
61const d=await this._client.createSignoutRequest(n);return o.debug("got signout request"),await i.navigate({url:d.url,state:(s=d.state)==null?void 0:s.id,scriptOrigin:this.settings.iframeScriptOrigin})}catch(u){throw o.debug("error after preparing navigator, closing navigator window"),i.close(),u}}async _signoutEnd(n){const i=this._logger.create("_signoutEnd"),s=await this._client.processSignoutResponse(n);return i.debug("got signout response"),s}async signoutSilent(n={}){var i;const s=this._logger.create("signoutSilent"),{silentRequestTimeoutInSeconds:o,...u}=n,f=this.settings.includeIdTokenInSilentSignout?(i=await this._loadUser())==null?void 0:i.id_token:void 0,d=this.settings.popup_post_logout_redirect_uri,m=await this._iframeNavigator.prepare({silentRequestTimeoutInSeconds:o});await this._signout({request_type:"so:s",post_logout_redirect_uri:d,id_token_hint:f,...u},m),s.info("success")}async signoutSilentCallback(n=window.location.href){const i=this._logger.create("signoutSilentCallback");await this._iframeNavigator.callback(n),i.info("success")}async revokeTokens(n){const i=await this._loadUser();await this._revokeInternal(i,n)}async _revokeInternal(n,i=this.settings.revokeTokenTypes){const s=this._logger.create("_revokeInternal");if(!n)return;const o=i.filter(u=>typeof n[u]=="string");if(!o.length){s.debug("no need to revoke due to no token(s)");return}for(const u of o)await this._client.revokeToken(n[u],u),s.info(`${u} revoked successfully`),u!=="access_token"&&(n[u]=null);await this.storeUser(n),s.debug("user stored"),await this._events.load(n)}startSilentRenew(){this._logger.create("startSilentRenew"),this._silentRenewService.start()}stopSilentRenew(){this._silentRenewService.stop()}get _userStoreKey(){return`user:${this.settings.authority}:${this.settings.client_id}`}async _loadUser(){const n=this._logger.create("_loadUser"),i=await this.settings.userStore.get(this._userStoreKey);return i?(n.debug("user storageString loaded"),Zc.fromStorageString(i)):(n.debug("no user storageString"),null)}async storeUser(n){const i=this._logger.create("storeUser");if(n){i.debug("storing user");const s=n.toStorageString();await this.settings.userStore.set(this._userStoreKey,s)}else this._logger.debug("removing user"),await this.settings.userStore.remove(this._userStoreKey),this.settings.dpop&&await this.settings.dpop.store.remove(this.settings.client_id)}async clearStaleState(){await this._client.clearStaleState()}async dpopProof(n,i,s,o){var u,f;const d=await((f=(u=this.settings.dpop)==null?void 0:u.store)==null?void 0:f.get(this.settings.client_id));if(d)return await Ot.generateDPoPProof({url:n,accessToken:i?.access_token,httpMethod:s,keyPair:d.keys,nonce:o})}async generateDPoPJkt(n){let i=await n.store.get(this.settings.client_id);if(!i){const s=await Ot.generateDPoPKeys();i=new Ly(s),await n.store.set(this.settings.client_id,i)}return await Ot.generateDPoPJkt(i.keys)}},Qf=X.createContext(void 0);Qf.displayName="AuthContext";var $x={isLoading:!0,isAuthenticated:!1},Ix=(n,i)=>{switch(i.type){case"INITIALISED":case"USER_LOADED":return{...n,user:i.user,isLoading:!1,isAuthenticated:i.user?!i.user.expired:!1,error:void 0};case"USER_SIGNED_OUT":case"USER_UNLOADED":return{...n,user:void 0,isAuthenticated:!1};case"NAVIGATOR_INIT":return{...n,isLoading:!0,activeNavigator:i.method};case"NAVIGATOR_CLOSE":return{...n,isLoading:!1,activeNavigator:void 0};case"ERROR":{const s=i.error;return s.toString=()=>`${s.name}: ${s.message}`,{...n,isLoading:!1,error:s}}default:{const s=new TypeError(`unknown type ${i.type}`),o={name:s.name,message:s.message,innerError:s,stack:s.stack,source:"unknown"};return o.toString=()=>`${o.name}: ${o.message}`,{...n,isLoading:!1,error:o}}}},Xx=(n=window.location)=>{let i=new URLSearchParams(n.search);return!!((i.get("code")||i.get("error"))&&i.get("state")||(i=new URLSearchParams(n.hash.replace("#","?")),(i.get("code")||i.get("error"))&&i.get("state")))},Fx=Yf("signinCallback","Sign-in failed"),Kx=Yf("signoutCallback","Sign-out failed"),Zx=Yf("renewSilent","Renew silent failed");function Yy(n,i){return{name:Jc(n,"name",()=>"Error"),message:Jc(n,"message",()=>i),stack:Jc(n,"stack",()=>new Error().stack),innerError:n}}function Yf(n,i){return s=>({...Yy(s,i),source:n})}
61function Jc(n,i,s){if(n&&typeof n=="object"){const o=n[i];if(typeof o=="string")return o}return s()}var Jx=["clearStaleState","querySessionStatus","revokeTokens","startSilentRenew","stopSilentRenew"],Wx=["signinPopup","signinSilent","signinRedirect","signinResourceOwnerCredentials","signoutPopup","signoutRedirect","signoutSilent"],pp=n=>()=>{throw new Error(`UserManager#${n} was called from an unsupported context. If this is a server-rendered page, defer this call with useEffect() or pass a custom UserManager implementation.`)},yp=typeof window>"u"?null:Gx,e1=n=>{const{children:i,onSigninCallback:s,skipSigninCallback:o,matchSignoutCallback:u,onSignoutCallback:f,onRemoveUser:d,userManager:m=null,...g}=n,[h]=X.useState(()=>m??(yp?new yp(g):{settings:g})),[v,y]=X.useReducer(Ix,$x),w=X.useMemo(()=>Object.assign({settings:h.settings,events:h.events},Object.fromEntries(Jx.map(A=>{var C,z;return[A,(z=(C=h[A])==null?void 0:C.bind(h))!=null?z:pp(A)]})),Object.fromEntries(Wx.map(A=>[A,h[A]?async C=>{y({type:"NAVIGATOR_INIT",method:A});try{return await h[A](C)}catch(z){return y({type:"ERROR",error:{...Yy(z,`Unknown error while executing ${A}(...).`),source:A,args:C}}),null}finally{y({type:"NAVIGATOR_CLOSE"})}}:pp(A)]))),[h]),_=X.useRef(!1);X.useEffect(()=>{!h||_.current||(_.current=!0,(async()=>{try{let A=null;Xx()&&!o&&(A=await h.signinCallback(),s&&await s(A)),A=A||await h.getUser(),y({type:"INITIALISED",user:A})}catch(A){y({type:"ERROR",error:Fx(A)})}try{if(u&&u(h.settings)){const A=await h.signoutCallback();f&&await f(A)}}catch(A){y({type:"ERROR",error:Kx(A)})}})())},[h,o,s,f,u]),X.useEffect(()=>{if(!h)return;const A=F=>{y({type:"USER_LOADED",user:F})};h.events.addUserLoaded(A);const C=()=>{y({type:"USER_UNLOADED"})};h.events.addUserUnloaded(C);const z=()=>{y({type:"USER_SIGNED_OUT"})};h.events.addUserSignedOut(z);const j=F=>{y({type:"ERROR",error:Zx(F)})};return h.events.addSilentRenewError(j),()=>{h.events.removeUserLoaded(A),h.events.removeUserUnloaded(C),h.events.removeUserSignedOut(z),h.events.removeSilentRenewError(j)}},[h]);const E=X.useCallback(async()=>{await h.removeUser(),d&&await d()},[h,d]),k=X.useMemo(()=>({...v,...w,removeUser:E}),[v,w,E]);return X.createElement(Qf.Provider,{value:k},i)},t1=()=>{const n=X.useContext(Qf);return n||console.warn("AuthProvider context is undefined, please verify you are calling useAuth() as child of a <AuthProvider> component."),n};function n1(){const n=t1(),i=n.user?.id_token,s=S.useCallback(async({})=>i??null,[i]);return S.useMemo(()=>({...n,fetchAccessToken:s}),[n,s])}function i1(n){if(typeof document>"u")return;let i=document.head||document.getElementsByTagName("head")[0],s=document.createElement("style");s.type="text/css",i.appendChild(s),s.styleSheet?s.styleSheet.cssText=n:s.appendChild(document.createTextNode(n))}const a1=n=>{switch(n){case"success":return o1;case"info":return u1;case"warning":return l1;case"error":return c1;default:return null}},s1=Array(12).fill(0),r1=({visible:n,className:i})=>X.createElement("div",{className:["sonner-loading-wrapper",i].filter(Boolean).join(" "),"data-visible":n},X.createElement("div",{className:"sonner-spinner"},s1.map((s,o)=>X.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${o}`})))),o1=X.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},X.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),l1=X.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},X.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),u1=X.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},X.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),c1=X.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},X.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),f1=X.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},X.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),X.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),d1=()=>{const[n,i]=X.useState(document.hidden);return X.useEffect(()=>{const s=()=>{i(document.hidden)};
vendor: 3,892 bytes, line 61
61return document.addEventListener("visibilitychange",s),()=>window.removeEventListener("visibilitychange",s)},[]),n};let vf=1;class h1{constructor(){this.subscribe=i=>(this.subscribers.push(i),()=>{const s=this.subscribers.indexOf(i);this.subscribers.splice(s,1)}),this.publish=i=>{this.subscribers.forEach(s=>s(i))},this.addToast=i=>{this.publish(i),this.toasts=[...this.toasts,i]},this.create=i=>{var s;const{message:o,...u}=i,f=typeof i?.id=="number"||((s=i.id)==null?void 0:s.length)>0?i.id:vf++,d=this.toasts.find(g=>g.id===f),m=i.dismissible===void 0?!0:i.dismissible;return this.dismissedToasts.has(f)&&this.dismissedToasts.delete(f),d?this.toasts=this.toasts.map(g=>g.id===f?(this.publish({...g,...i,id:f,title:o}),{...g,...i,id:f,dismissible:m,title:o}):g):this.addToast({title:o,...u,dismissible:m,id:f}),f},this.dismiss=i=>(i?(this.dismissedToasts.add(i),requestAnimationFrame(()=>this.subscribers.forEach(s=>s({id:i,dismiss:!0})))):this.toasts.forEach(s=>{this.subscribers.forEach(o=>o({id:s.id,dismiss:!0}))}),i),this.message=(i,s)=>this.create({...s,message:i}),this.error=(i,s)=>this.create({...s,message:i,type:"error"}),this.success=(i,s)=>this.create({...s,type:"success",message:i}),this.info=(i,s)=>this.create({...s,type:"info",message:i}),this.warning=(i,s)=>this.create({...s,type:"warning",message:i}),this.loading=(i,s)=>this.create({...s,type:"loading",message:i}),this.promise=(i,s)=>{if(!s)return;let o;s.loading!==void 0&&(o=this.create({...s,promise:i,type:"loading",message:s.loading,description:typeof s.description!="function"?s.description:void 0}));const u=Promise.resolve(i instanceof Function?i():i);let f=o!==void 0,d;const m=u.then(async h=>{if(d=["resolve",h],X.isValidElement(h))f=!1,this.create({id:o,type:"default",message:h});else if(m1(h)&&!h.ok){f=!1;const y=typeof s.error=="function"?await s.error(`HTTP error! status: ${h.status}`):s.error,w=typeof s.description=="function"?await s.description(`HTTP error! status: ${h.status}`):s.description,E=typeof y=="object"&&!X.isValidElement(y)?y:{message:y};this.create({id:o,type:"error",description:w,...E})}else if(h instanceof Error){f=!1;const y=typeof s.error=="function"?await s.error(h):s.error,w=typeof s.description=="function"?await s.description(h):s.description,E=typeof y=="object"&&!X.isValidElement(y)?y:{message:y};this.create({id:o,type:"error",description:w,...E})}else if(s.success!==void 0){f=!1;const y=typeof s.success=="function"?await s.success(h):s.success,w=typeof s.description=="function"?await s.description(h):s.description,E=typeof y=="object"&&!X.isValidElement(y)?y:{message:y};this.create({id:o,type:"success",description:w,...E})}}).catch(async h=>{if(d=["reject",h],s.error!==void 0){f=!1;const v=typeof s.error=="function"?await s.error(h):s.error,y=typeof s.description=="function"?await s.description(h):s.description,_=typeof v=="object"&&!X.isValidElement(v)?v:{message:v};this.create({id:o,type:"error",description:y,..._})}}).finally(()=>{f&&(this.dismiss(o),o=void 0),s.finally==null||s.finally.call(s)}),g=()=>new Promise((h,v)=>m.then(()=>d[0]==="reject"?v(d[1]):h(d[1])).catch(v));return typeof o!="string"&&typeof o!="number"?{unwrap:g}:Object.assign(o,{unwrap:g})},this.custom=(i,s)=>{const o=s?.id||vf++;return this.create({jsx:i(o),id:o,...s}),o},this.getActiveToasts=()=>this.toasts.filter(i=>!this.dismissedToasts.has(i.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const Ct=new h1,g1=(n,i)=>{const s=i?.id||vf++;return Ct.addToast({title:n,...i,id:s}),s},m1=n=>n&&typeof n=="object"&&"ok"in n&&typeof n.ok=="boolean"&&"status"in n&&typeof n.status=="number",p1=g1,y1=()=>Ct.toasts,v1=()=>Ct.getActiveToasts(),b1=Object.assign(p1,{success:Ct.success,info:Ct.info,warning:Ct.warning,error:Ct.error,custom:Ct.custom,message:Ct.message,promise:Ct.promise,dismiss:Ct.dismiss,loading:Ct.loading},{getHistory:y1,getToasts:v1});i1
vendor: 4,787 bytes, line 61
61("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;
vendor: 10,086 bytes, line 61
61left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");function 
vendor: 587 bytes, line 61
61Go(n){return n.label!==void 0}const w1=3,S1="24px",_1="16px",vp=4e3,x1=356,E1=14,T1=45,R1=200;function pn(...n){return n.filter(Boolean).join(" ")}function A1(n){const[i,s]=n.split("-"),o=[];return i&&o.push(i),s&&o.push(s),o}const C1=n=>{var i,s,o,u,f,d,m,g,h;const{invert:v,toast:y,unstyled:w,interacting:_,setHeights:E,visibleToasts:k,heights:A,index:C,toasts:z,expanded:j,removeToast:F,defaultRichColors:H,closeButton:I,style:Z,cancelButtonStyle:$,actionButtonStyle:ee,className:ue="",descriptionClassName:ge="",duration:he,position:ve,gap:we,expandByDefault:me,classNames:O,icons:V,
vendor: 4,414 bytes, line 61
61closeButtonAriaLabel:L="Close toast"}=n,[re,T]=X.useState(null),[Y,W]=X.useState(null),[B,J]=X.useState(!1),[ae,se]=X.useState(!1),[pe,le]=X.useState(!1),[Pe,vt]=X.useState(!1),[bt,lt]=X.useState(!1),[on,Mi]=X.useState(0),[Rl,Tr]=X.useState(0),gt=X.useRef(y.duration||he||vp),Rr=X.useRef(null),jt=X.useRef(null),Ar=C===0,aa=C+1<=k,wt=y.type,Cn=y.dismissible!==!1,Al=y.className||"",Cl=y.descriptionClassName||"",ln=X.useMemo(()=>A.findIndex(ye=>ye.toastId===y.id)||0,[A,y.id]),St=X.useMemo(()=>{var ye;return(ye=y.closeButton)!=null?ye:I},[y.closeButton,I]),Jt=X.useMemo(()=>y.duration||he||vp,[y.duration,he]),ut=X.useRef(0),Wn=X.useRef(0),Cr=X.useRef(0),ei=X.useRef(null),[sa,ra]=ve.split("-"),un=X.useMemo(()=>A.reduce((ye,Ye,Fe)=>Fe>=ln?ye:ye+Ye.height,0),[A,ln]),Di=d1(),Ni=y.invert||v,ls=wt==="loading";Wn.current=X.useMemo(()=>ln*we+un,[ln,un]),X.useEffect(()=>{gt.current=Jt},[Jt]),X.useEffect(()=>{J(!0)},[]),X.useEffect(()=>{const ye=jt.current;if(ye){const Ye=ye.getBoundingClientRect().height;return Tr(Ye),E(Fe=>[{toastId:y.id,height:Ye,position:y.position},...Fe]),()=>E(Fe=>Fe.filter(ct=>ct.toastId!==y.id))}},[E,y.id]),X.useLayoutEffect(()=>{if(!B)return;const ye=jt.current,Ye=ye.style.height;ye.style.height="auto";const Fe=ye.getBoundingClientRect().height;ye.style.height=Ye,Tr(Fe),E(ct=>ct.find(We=>We.toastId===y.id)?ct.map(We=>We.toastId===y.id?{...We,height:Fe}:We):[{toastId:y.id,height:Fe,position:y.position},...ct])},[B,y.title,y.description,E,y.id,y.jsx,y.action,y.cancel]);const Wt=X.useCallback(()=>{se(!0),Mi(Wn.current),E(ye=>ye.filter(Ye=>Ye.toastId!==y.id)),setTimeout(()=>{F(y)},R1)},[y,F,E,Wn]);X.useEffect(()=>{if(y.promise&&wt==="loading"||y.duration===1/0||y.type==="loading")return;let ye;return j||_||Di?(()=>{if(Cr.current<ut.current){const ct=new Date().getTime()-ut.current;gt.current=gt.current-ct}Cr.current=new Date().getTime()})():(()=>{gt.current!==1/0&&(ut.current=new Date().getTime(),ye=setTimeout(()=>{y.onAutoClose==null||y.onAutoClose.call(y,y),Wt()},gt.current))})(),()=>clearTimeout(ye)},[j,_,y,wt,Di,Wt]),X.useEffect(()=>{y.delete&&(Wt(),y.onDismiss==null||y.onDismiss.call(y,y))},[Wt,y.delete]);function Or(){var ye;if(V?.loading){var Ye;return X.createElement("div",{className:pn(O?.loader,y==null||(Ye=y.classNames)==null?void 0:Ye.loader,"sonner-loader"),"data-visible":wt==="loading"},V.loading)}return X.createElement(r1,{className:pn(O?.loader,y==null||(ye=y.classNames)==null?void 0:ye.loader),visible:wt==="loading"})}const us=y.icon||V?.[wt]||a1(wt);var ti,kr;return X.createElement("li",{tabIndex:0,ref:jt,className:pn(ue,Al,O?.toast,y==null||(i=y.classNames)==null?void 0:i.toast,O?.default,O?.[wt],y==null||(s=y.classNames)==null?void 0:s[wt]),"data-sonner-toast":"","data-rich-colors":(ti=y.richColors)!=null?ti:H,"data-styled":!(y.jsx||y.unstyled||w),"data-mounted":B,"data-promise":!!y.promise,"data-swiped":bt,"data-removed":ae,"data-visible":aa,"data-y-position":sa,"data-x-position":ra,"data-index":C,"data-front":Ar,"data-swiping":pe,"data-dismissible":Cn,"data-type":wt,"data-invert":Ni,"data-swipe-out":Pe,"data-swipe-direction":Y,"data-expanded":!!(j||me&&B),"data-testid":y.testId,style:{"--index":C,"--toasts-before":C,"--z-index":z.length-C,"--offset":`${ae?on:Wn.current}px`,"--initial-height":me?"auto":`${Rl}px`,...Z,...y.style},onDragEnd:()=>{le(!1),T(null),ei.current=null},onPointerDown:ye=>{ye.button!==2&&(ls||!Cn||(Rr.current=new Date,Mi(Wn.current),ye.target.setPointerCapture(ye.pointerId),ye.target.tagName!=="BUTTON"&&(le(!0),ei.current={x:ye.clientX,y:ye.clientY})))},onPointerUp:()=>{var ye,Ye,Fe;if(Pe||!Cn)return;ei.current=null;const ct=Number(((ye=jt.current)==null?void 0:ye.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),Ui=Number(((Ye=jt.current)==null?void 0:Ye.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),We=new Date().getTime()-((Fe=Rr.current)==null?void 0:Fe.getTime()),Ge=re==="x"?ct:Ui,$e=Math.abs(Ge)/We;if(Math.abs(Ge)>=T1||$e>.11){Mi(Wn.current),y.onDismiss==null||y.onDismiss.call(y,y),W(re==="x"?ct>0?"right":"left":Ui>0?"down":"up"),Wt(),vt(!0);return}else{var ze,it;(ze=jt.current)==null||ze.style.setProperty("--swipe-amount-x","0px"),(it=jt.current)==null||it.style.setProperty("--swipe-amount-y","0px")}lt(!1),le(!1),T(null)},onPointerMove:ye=>{var Ye,Fe,ct;if(!ei.current||!Cn||((Ye=window.getSelection())==null?void 0:Ye.toString().length)>0)return;
vendor: 7,557 bytes, line 61
61const We=ye.clientY-ei.current.y,Ge=ye.clientX-ei.current.x;var $e;const ze=($e=n.swipeDirections)!=null?$e:A1(ve);!re&&(Math.abs(Ge)>1||Math.abs(We)>1)&&T(Math.abs(Ge)>Math.abs(We)?"x":"y");let it={x:0,y:0};const oa=On=>1/(1.5+Math.abs(On)/20);if(re==="y"){if(ze.includes("top")||ze.includes("bottom"))if(ze.includes("top")&&We<0||ze.includes("bottom")&&We>0)it.y=We;else{const On=We*oa(We);it.y=Math.abs(On)<Math.abs(We)?On:We}}else if(re==="x"&&(ze.includes("left")||ze.includes("right")))if(ze.includes("left")&&Ge<0||ze.includes("right")&&Ge>0)it.x=Ge;else{const On=Ge*oa(Ge);it.x=Math.abs(On)<Math.abs(Ge)?On:Ge}(Math.abs(it.x)>0||Math.abs(it.y)>0)&&lt(!0),(Fe=jt.current)==null||Fe.style.setProperty("--swipe-amount-x",`${it.x}px`),(ct=jt.current)==null||ct.style.setProperty("--swipe-amount-y",`${it.y}px`)}},St&&!y.jsx&&wt!=="loading"?X.createElement("button",{"aria-label":L,"data-disabled":ls,"data-close-button":!0,onClick:ls||!Cn?()=>{}:()=>{Wt(),y.onDismiss==null||y.onDismiss.call(y,y)},className:pn(O?.closeButton,y==null||(o=y.classNames)==null?void 0:o.closeButton)},(kr=V?.close)!=null?kr:f1):null,(wt||y.icon||y.promise)&&y.icon!==null&&(V?.[wt]!==null||y.icon)?X.createElement("div",{"data-icon":"",className:pn(O?.icon,y==null||(u=y.classNames)==null?void 0:u.icon)},y.promise||y.type==="loading"&&!y.icon?y.icon||Or():null,y.type!=="loading"?us:null):null,X.createElement("div",{"data-content":"",className:pn(O?.content,y==null||(f=y.classNames)==null?void 0:f.content)},X.createElement("div",{"data-title":"",className:pn(O?.title,y==null||(d=y.classNames)==null?void 0:d.title)},y.jsx?y.jsx:typeof y.title=="function"?y.title():y.title),y.description?X.createElement("div",{"data-description":"",className:pn(ge,Cl,O?.description,y==null||(m=y.classNames)==null?void 0:m.description)},typeof y.description=="function"?y.description():y.description):null),X.isValidElement(y.cancel)?y.cancel:y.cancel&&Go(y.cancel)?X.createElement("button",{"data-button":!0,"data-cancel":!0,style:y.cancelButtonStyle||$,onClick:ye=>{Go(y.cancel)&&Cn&&(y.cancel.onClick==null||y.cancel.onClick.call(y.cancel,ye),Wt())},className:pn(O?.cancelButton,y==null||(g=y.classNames)==null?void 0:g.cancelButton)},y.cancel.label):null,X.isValidElement(y.action)?y.action:y.action&&Go(y.action)?X.createElement("button",{"data-button":!0,"data-action":!0,style:y.actionButtonStyle||ee,onClick:ye=>{Go(y.action)&&(y.action.onClick==null||y.action.onClick.call(y.action,ye),!ye.defaultPrevented&&Wt())},className:pn(O?.actionButton,y==null||(h=y.classNames)==null?void 0:h.actionButton)},y.action.label):null)};function bp(){if(typeof window>"u"||typeof document>"u")return"ltr";const n=document.documentElement.getAttribute("dir");return n==="auto"||!n?window.getComputedStyle(document.documentElement).direction:n}function O1(n,i){const s={};return[n,i].forEach((o,u)=>{const f=u===1,d=f?"--mobile-offset":"--offset",m=f?_1:S1;function g(h){["top","right","bottom","left"].forEach(v=>{s[`${d}-${v}`]=typeof h=="number"?`${h}px`:h})}typeof o=="number"||typeof o=="string"?g(o):typeof o=="object"?["top","right","bottom","left"].forEach(h=>{o[h]===void 0?s[`${d}-${h}`]=m:s[`${d}-${h}`]=typeof o[h]=="number"?`${o[h]}px`:o[h]}):g(m)}),s}const k1=X.forwardRef(function(i,s){const{id:o,invert:u,position:f="bottom-right",hotkey:d=["altKey","KeyT"],expand:m,closeButton:g,className:h,offset:v,mobileOffset:y,theme:w="light",richColors:_,duration:E,style:k,visibleToasts:A=w1,toastOptions:C,dir:z=bp(),gap:j=E1,icons:F,containerAriaLabel:H="Notifications"}=i,[I,Z]=X.useState([]),$=X.useMemo(()=>o?I.filter(B=>B.toasterId===o):I.filter(B=>!B.toasterId),[I,o]),ee=X.useMemo(()=>Array.from(new Set([f].concat($.filter(B=>B.position).map(B=>B.position)))),[$,f]),[ue,ge]=X.useState([]),[he,ve]=X.useState(!1),[we,me]=X.useState(!1),[O,V]=X.useState(w!=="system"?w:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),L=X.useRef(null),re=d.join("+").replace(/Key/g,"").replace(/Digit/g,""),T=X.useRef(null),Y=X.useRef(!1),W=X.useCallback(B=>{Z(J=>{var ae;return(ae=J.find(se=>se.id===B.id))!=null&&ae.delete||Ct.dismiss(B.id),J.filter(({id:se})=>se!==B.id)})},[]);return X.useEffect(()=>Ct.subscribe(B=>{if(B.dismiss){requestAnimationFrame(()=>{Z(J=>J.map(ae=>ae.id===B.id?{...ae,delete:!0}:ae))});return}setTimeout(()=>{DS.flushSync(()=>{Z(J=>{const ae=J.findIndex(se=>se.id===B.id);return ae!==-1?[...J.slice(0,ae),{...J[ae],...B},...J.slice(ae+1)]:[B,...J]})})})}),[I]),X.useEffect(()=>{if(w!=="system"){V(w);return}if(w==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?V("dark"):V("light")),typeof window>"u")return;const B=window.matchMedia("(prefers-color-scheme: dark)");try{B.addEventListener("change",({matches:J})=>{V(J?"dark":"light")})}catch{B.addListener(({matches:ae})=>{try{V(ae?"dark":"light")}catch(se){console.error(se)}})}},[w]),X.useEffect(()=>{I.length<=1&&ve(!1)},[I]),X.useEffect(()=>{const B=J=>{var ae;if(d.every(le=>J[le]||J.code===le)){var pe;ve(!0),(pe=L.current)==null||pe.focus()}J.code==="Escape"&&(document.activeElement===L.current||(ae=L.current)!=null&&ae.contains(document.activeElement))&&ve(!1)};return document.addEventListener("keydown",B),()=>document.removeEventListener("keydown",B)},[d]),X.useEffect(()=>{if(L.current)return()=>{T.current&&(T.current.focus({preventScroll:!0}),T.current=null,Y.current=!1)}},[L.current]),X.createElement("section",{ref:s,"aria-label":`${H} ${re}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},ee.map((B,J)=>{var ae;const[se,pe]=B.split("-");return $.length?X.createElement("ol",{key:B,dir:z==="auto"?bp():z,tabIndex:-1,ref:L,className:h,"data-sonner-toaster":!0,"data-sonner-theme":O,"data-y-position":se,"data-x-position":pe,style:{"--front-toast-height":`${((ae=ue[0])==null?void 0:ae.height)||0}px`,"--width":`${x1}px`,"--gap":`${j}px`,...k,...O1(v,y)},onBlur:le=>{Y.current&&!le.currentTarget.contains(le.relatedTarget)&&(Y.current=!1,T.current&&(T.current.focus({preventScroll:!0}),T.current=null))},onFocus:le=>{le.target instanceof HTMLElement&&le.target.dataset.dismissible==="false"||Y.current||(Y.current=!0,T.current=le.relatedTarget)},onMouseEnter:()=>ve(!0),onMouseMove:()=>ve(!0),onMouseLeave:()=>{we||ve(!1)},onDragEnd:()=>ve(!1),onPointerDown:le=>{le.target instanceof HTMLElement&&le.target.dataset.dismissible==="false"||me(!0)},onPointerUp:()=>me(!1)},$.filter(le=>!le.position&&J===0||le.position===B).map((le,Pe)=>{var vt,bt;return X.createElement(C1,{key:le.id,icons:F,index:Pe,toast:le,defaultRichColors:_,duration:(vt=C?.duration)!=null?vt:E,className:C?.className,descriptionClassName:C?.descriptionClassName,invert:u,visibleToasts:A,closeButton:(bt=C?.closeButton)!=null?bt:g,interacting:we,position:B,style:C?.style,unstyled:C?.unstyled,classNames:C?.classNames,cancelButtonStyle:C?.cancelButtonStyle,actionButtonStyle:C?.actionButtonStyle,closeButtonAriaLabel:C?.closeButtonAriaLabel,removeToast:W,toasts:$.filter(lt=>lt.position==le.position),heights:ue.filter(lt=>lt.position==le.position),setHeights:ge,expandByDefault:m,gap:j,expanded:he,swipeDirections:i.swipeDirections})})):null}))}),M1=({...n})=>{const{theme:i="system"}=sx();return K.jsx(k1,{"data-hercules-id":"src/components/ui/sonner.tsx:8:4","data-hercules-name":"Sonner",theme:i,className:"toaster group",style:{"--normal-bg":"var(--popover)","--normal-text":"var(--popover-foreground)","--normal-border":"var(--border)"},...n})};
vendor: 4,674 bytes, line 61
61function wp(n,i){if(typeof n=="function")return n(i);n!=null&&(n.current=i)}function Gy(...n){return i=>{let s=!1;const o=n.map(u=>{const f=wp(u,i);return!s&&typeof f=="function"&&(s=!0),f});if(s)return()=>{for(let u=0;u<o.length;u++){const f=o[u];typeof f=="function"?f():wp(n[u],null)}}}}function na(...n){return S.useCallback(Gy(...n),n)}function $y(n){const i=N1(n),s=S.forwardRef((o,u)=>{const{children:f,...d}=o,m=S.Children.toArray(f),g=m.find(q1);if(g){const h=g.props.children,v=m.map(y=>y===g?S.Children.count(h)>1?S.Children.only(null):S.isValidElement(h)?h.props.children:null:y);return K.jsx(i,{...d,ref:u,children:S.isValidElement(h)?S.cloneElement(h,void 0,v):null})}return K.jsx(i,{...d,ref:u,children:f})});return s.displayName=`${n}.Slot`,s}var D1=$y("Slot");function N1(n){const i=S.forwardRef((s,o)=>{const{children:u,...f}=s;if(S.isValidElement(u)){const d=L1(u),m=z1(f,u.props);return u.type!==S.Fragment&&(m.ref=o?Gy(o,d):d),S.cloneElement(u,m)}return S.Children.count(u)>1?S.Children.only(null):null});return i.displayName=`${n}.SlotClone`,i}var Iy=Symbol("radix.slottable");function U1(n){const i=({children:s})=>K.jsx(K.Fragment,{children:s});return i.displayName=`${n}.Slottable`,i.__radixId=Iy,i}function q1(n){return S.isValidElement(n)&&typeof n.type=="function"&&"__radixId"in n.type&&n.type.__radixId===Iy}function z1(n,i){const s={...i};for(const o in i){const u=n[o],f=i[o];/^on[A-Z]/.test(o)?u&&f?s[o]=(...m)=>{const g=f(...m);return u(...m),g}:u&&(s[o]=u):o==="style"?s[o]={...u,...f}:o==="className"&&(s[o]=[u,f].filter(Boolean).join(" "))}return{...n,...s}}function L1(n){let i=Object.getOwnPropertyDescriptor(n.props,"ref")?.get,s=i&&"isReactWarning"in i&&i.isReactWarning;return s?n.ref:(i=Object.getOwnPropertyDescriptor(n,"ref")?.get,s=i&&"isReactWarning"in i&&i.isReactWarning,s?n.props.ref:n.props.ref||n.ref)}var H1=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],ia=H1.reduce((n,i)=>{const s=$y(`Primitive.${i}`),o=S.forwardRef((u,f)=>{const{asChild:d,...m}=u,g=d?s:i;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),K.jsx(g,{...m,ref:f})});return o.displayName=`Primitive.${i}`,{...n,[i]:o}},{});function B1(n,i){n&&Hf.flushSync(()=>n.dispatchEvent(i))}var j1=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),P1="VisuallyHidden",Xy=S.forwardRef((n,i)=>K.jsx(ia.span,{...n,ref:i,style:{...j1,...n.style}}));Xy.displayName=P1;var V1=Xy;function Fy(n,i=[]){let s=[];function o(f,d){const m=S.createContext(d),g=s.length;s=[...s,d];const h=y=>{const{scope:w,children:_,...E}=y,k=w?.[n]?.[g]||m,A=S.useMemo(()=>E,Object.values(E));return K.jsx(k.Provider,{value:A,children:_})};h.displayName=f+"Provider";function v(y,w){const _=w?.[n]?.[g]||m,E=S.useContext(_);if(E)return E;if(d!==void 0)return d;throw new Error(`\`${y}\` must be used within \`${f}\``)}return[h,v]}const u=()=>{const f=s.map(d=>S.createContext(d));return function(m){const g=m?.[n]||f;return S.useMemo(()=>({[`__scope${n}`]:{...m,[n]:g}}),[m,g])}};return u.scopeName=n,[o,Q1(u,...i)]}function Q1(...n){const i=n[0];if(n.length===1)return i;const s=()=>{const o=n.map(u=>({useScope:u(),scopeName:u.scopeName}));return function(f){const d=o.reduce((m,{useScope:g,scopeName:h})=>{const y=g(f)[`__scope${h}`];return{...m,...y}},{});return S.useMemo(()=>({[`__scope${i.scopeName}`]:d}),[d])}};return s.scopeName=i.scopeName,s}function $n(n,i,{checkForDefaultPrevented:s=!0}={}){return function(u){if(n?.(u),s===!1||!u.defaultPrevented)return i?.(u)}}var pr=globalThis?.document?S.useLayoutEffect:()=>{};function Y1(n,i){return S.useReducer((s,o)=>i[s][o]??s,n)}var Ky=n=>{const{present:i,children:s}=n,o=G1(i),u=typeof s=="function"?s({present:o.isPresent}):S.Children.only(s),f=na(o.ref,$1(u));return typeof s=="function"||o.isPresent?S.cloneElement(u,{ref:f}):null};Ky.displayName="Presence";function G1(n){const[i,s]=S.useState(),o=S.useRef(null),u=S.useRef(n),f=S.useRef("none"),d=n?"mounted":"unmounted",[m,g]=Y1(d,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return S.useEffect(()=>{const h=$o(o.current);f.current=m==="mounted"?h:"none"},[m]),pr(()=>{const h=o.current,v=u.current;if(v!==n){const w=f.current,_=$o(h);n?g("MOUNT"):_==="none"||h?.display==="none"?g("UNMOUNT"):g(v&&w!==_?"ANIMATION_OUT":"UNMOUNT"),u.current=n}},[n,g]),pr(()=>{if(i){let h;const v=i.ownerDocument.defaultView??window,y=_=>{const k=$o(o.current).includes(CSS.escape(_.animationName));
vendor: 4,194 bytes, line 61
61if(_.target===i&&k&&(g("ANIMATION_END"),!u.current)){const A=i.style.animationFillMode;i.style.animationFillMode="forwards",h=v.setTimeout(()=>{i.style.animationFillMode==="forwards"&&(i.style.animationFillMode=A)})}},w=_=>{_.target===i&&(f.current=$o(o.current))};return i.addEventListener("animationstart",w),i.addEventListener("animationcancel",y),i.addEventListener("animationend",y),()=>{v.clearTimeout(h),i.removeEventListener("animationstart",w),i.removeEventListener("animationcancel",y),i.removeEventListener("animationend",y)}}else g("ANIMATION_END")},[i,g]),{isPresent:["mounted","unmountSuspended"].includes(m),ref:S.useCallback(h=>{o.current=h?getComputedStyle(h):null,s(h)},[])}}function $o(n){return n?.animationName||"none"}function $1(n){let i=Object.getOwnPropertyDescriptor(n.props,"ref")?.get,s=i&&"isReactWarning"in i&&i.isReactWarning;return s?n.ref:(i=Object.getOwnPropertyDescriptor(n,"ref")?.get,s=i&&"isReactWarning"in i&&i.isReactWarning,s?n.props.ref:n.props.ref||n.ref)}function yl(n){const i=S.useRef(n);return S.useEffect(()=>{i.current=n}),S.useMemo(()=>(...s)=>i.current?.(...s),[])}function I1(n,i=globalThis?.document){const s=yl(n);S.useEffect(()=>{const o=u=>{u.key==="Escape"&&s(u)};return i.addEventListener("keydown",o,{capture:!0}),()=>i.removeEventListener("keydown",o,{capture:!0})},[s,i])}var X1="DismissableLayer",bf="dismissableLayer.update",F1="dismissableLayer.pointerDownOutside",K1="dismissableLayer.focusOutside",Sp,Zy=S.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Jy=S.forwardRef((n,i)=>{const{disableOutsidePointerEvents:s=!1,onEscapeKeyDown:o,onPointerDownOutside:u,onFocusOutside:f,onInteractOutside:d,onDismiss:m,...g}=n,h=S.useContext(Zy),[v,y]=S.useState(null),w=v?.ownerDocument??globalThis?.document,[,_]=S.useState({}),E=na(i,Z=>y(Z)),k=Array.from(h.layers),[A]=[...h.layersWithOutsidePointerEventsDisabled].slice(-1),C=k.indexOf(A),z=v?k.indexOf(v):-1,j=h.layersWithOutsidePointerEventsDisabled.size>0,F=z>=C,H=W1(Z=>{const $=Z.target,ee=[...h.branches].some(ue=>ue.contains($));!F||ee||(u?.(Z),d?.(Z),Z.defaultPrevented||m?.())},w),I=eE(Z=>{const $=Z.target;[...h.branches].some(ue=>ue.contains($))||(f?.(Z),d?.(Z),Z.defaultPrevented||m?.())},w);return I1(Z=>{z===h.layers.size-1&&(o?.(Z),!Z.defaultPrevented&&m&&(Z.preventDefault(),m()))},w),S.useEffect(()=>{if(v)return s&&(h.layersWithOutsidePointerEventsDisabled.size===0&&(Sp=w.body.style.pointerEvents,w.body.style.pointerEvents="none"),h.layersWithOutsidePointerEventsDisabled.add(v)),h.layers.add(v),_p(),()=>{s&&h.layersWithOutsidePointerEventsDisabled.size===1&&(w.body.style.pointerEvents=Sp)}},[v,w,s,h]),S.useEffect(()=>()=>{v&&(h.layers.delete(v),h.layersWithOutsidePointerEventsDisabled.delete(v),_p())},[v,h]),S.useEffect(()=>{const Z=()=>_({});return document.addEventListener(bf,Z),()=>document.removeEventListener(bf,Z)},[]),K.jsx(ia.div,{...g,ref:E,style:{pointerEvents:j?F?"auto":"none":void 0,...n.style},onFocusCapture:$n(n.onFocusCapture,I.onFocusCapture),onBlurCapture:$n(n.onBlurCapture,I.onBlurCapture),onPointerDownCapture:$n(n.onPointerDownCapture,H.onPointerDownCapture)})});Jy.displayName=X1;var Z1="DismissableLayerBranch",J1=S.forwardRef((n,i)=>{const s=S.useContext(Zy),o=S.useRef(null),u=na(i,o);return S.useEffect(()=>{const f=o.current;if(f)return s.branches.add(f),()=>{s.branches.delete(f)}},[s.branches]),K.jsx(ia.div,{...n,ref:u})});J1.displayName=Z1;function W1(n,i=globalThis?.document){const s=yl(n),o=S.useRef(!1),u=S.useRef(()=>{});return S.useEffect(()=>{const f=m=>{if(m.target&&!o.current){let g=function(){Wy(F1,s,h,{discrete:!0})};const h={originalEvent:m};m.pointerType==="touch"?(i.removeEventListener("click",u.current),u.current=g,i.addEventListener("click",u.current,{once:!0})):g()}else i.removeEventListener("click",u.current);o.current=!1},d=window.setTimeout(()=>{i.addEventListener("pointerdown",f)},0);return()=>{window.clearTimeout(d),i.removeEventListener("pointerdown",f),i.removeEventListener("click",u.current)}},[i,s]),{onPointerDownCapture:()=>o.current=!0}}function eE(n,i=globalThis?.document){const s=yl(n),o=S.useRef(!1);return S.useEffect(()=>{const u=f=>
vendor: 5,725 bytes, line 61
61{f.target&&!o.current&&Wy(K1,s,{originalEvent:f},{discrete:!1})};return i.addEventListener("focusin",u),()=>i.removeEventListener("focusin",u)},[i,s]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}function _p(){const n=new CustomEvent(bf);document.dispatchEvent(n)}function Wy(n,i,s,{discrete:o}){const u=s.originalEvent.target,f=new CustomEvent(n,{bubbles:!1,cancelable:!0,detail:s});i&&u.addEventListener(n,i,{once:!0}),o?B1(u,f):u.dispatchEvent(f)}function tE(n){const[i,s]=S.useState(void 0);return pr(()=>{if(n){s({width:n.offsetWidth,height:n.offsetHeight});const o=new ResizeObserver(u=>{if(!Array.isArray(u)||!u.length)return;const f=u[0];let d,m;if("borderBoxSize"in f){const g=f.borderBoxSize,h=Array.isArray(g)?g[0]:g;d=h.inlineSize,m=h.blockSize}else d=n.offsetWidth,m=n.offsetHeight;s({width:d,height:m})});return o.observe(n,{box:"border-box"}),()=>o.unobserve(n)}else s(void 0)},[n]),i}const nE=["top","right","bottom","left"],Ci=Math.min,Ht=Math.max,cl=Math.round,Io=Math.floor,xn=n=>({x:n,y:n}),iE={left:"right",right:"left",bottom:"top",top:"bottom"},aE={start:"end",end:"start"};function wf(n,i,s){return Ht(n,Ci(i,s))}function Kn(n,i){return typeof n=="function"?n(i):n}function Zn(n){return n.split("-")[0]}function as(n){return n.split("-")[1]}function Gf(n){return n==="x"?"y":"x"}function $f(n){return n==="y"?"height":"width"}const sE=new Set(["top","bottom"]);function _n(n){return sE.has(Zn(n))?"y":"x"}function If(n){return Gf(_n(n))}function rE(n,i,s){s===void 0&&(s=!1);const o=as(n),u=If(n),f=$f(u);let d=u==="x"?o===(s?"end":"start")?"right":"left":o==="start"?"bottom":"top";return i.reference[f]>i.floating[f]&&(d=fl(d)),[d,fl(d)]}function oE(n){const i=fl(n);return[Sf(n),i,Sf(i)]}function Sf(n){return n.replace(/start|end/g,i=>aE[i])}const xp=["left","right"],Ep=["right","left"],lE=["top","bottom"],uE=["bottom","top"];function cE(n,i,s){switch(n){case"top":case"bottom":return s?i?Ep:xp:i?xp:Ep;case"left":case"right":return i?lE:uE;default:return[]}}function fE(n,i,s,o){const u=as(n);let f=cE(Zn(n),s==="start",o);return u&&(f=f.map(d=>d+"-"+u),i&&(f=f.concat(f.map(Sf)))),f}function fl(n){return n.replace(/left|right|bottom|top/g,i=>iE[i])}function dE(n){return{top:0,right:0,bottom:0,left:0,...n}}function ev(n){return typeof n!="number"?dE(n):{top:n,right:n,bottom:n,left:n}}function dl(n){const{x:i,y:s,width:o,height:u}=n;return{width:o,height:u,top:s,left:i,right:i+o,bottom:s+u,x:i,y:s}}function Tp(n,i,s){let{reference:o,floating:u}=n;const f=_n(i),d=If(i),m=$f(d),g=Zn(i),h=f==="y",v=o.x+o.width/2-u.width/2,y=o.y+o.height/2-u.height/2,w=o[m]/2-u[m]/2;let _;switch(g){case"top":_={x:v,y:o.y-u.height};break;case"bottom":_={x:v,y:o.y+o.height};break;case"right":_={x:o.x+o.width,y};break;case"left":_={x:o.x-u.width,y};break;default:_={x:o.x,y:o.y}}switch(as(i)){case"start":_[d]-=w*(s&&h?-1:1);break;case"end":_[d]+=w*(s&&h?-1:1);break}return _}const hE=async(n,i,s)=>{const{placement:o="bottom",strategy:u="absolute",middleware:f=[],platform:d}=s,m=f.filter(Boolean),g=await(d.isRTL==null?void 0:d.isRTL(i));let h=await d.getElementRects({reference:n,floating:i,strategy:u}),{x:v,y}=Tp(h,o,g),w=o,_={},E=0;for(let k=0;k<m.length;k++){const{name:A,fn:C}=m[k],{x:z,y:j,data:F,reset:H}=await C({x:v,y,initialPlacement:o,placement:w,strategy:u,middlewareData:_,rects:h,platform:d,elements:{reference:n,floating:i}});v=z??v,y=j??y,_={..._,[A]:{..._[A],...F}},H&&E<=50&&(E++,typeof H=="object"&&(H.placement&&(w=H.placement),H.rects&&(h=H.rects===!0?await d.getElementRects({reference:n,floating:i,strategy:u}):H.rects),{x:v,y}=Tp(h,w,g)),k=-1)}return{x:v,y,placement:w,strategy:u,middlewareData:_}};async function yr(n,i){var s;i===void 0&&(i={});const{x:o,y:u,platform:f,rects:d,elements:m,strategy:g}=n,{boundary:h="clippingAncestors",rootBoundary:v="viewport",elementContext:y="floating",altBoundary:w=!1,padding:_=0}=Kn(i,n),E=ev(_),A=m[w?y==="floating"?"reference":"floating":y],C=dl(await f.getClippingRect({element:(s=await(f.isElement==null?void 0:f.isElement(A)))==null||s?A:A.contextElement||await(f.getDocumentElement==null?void 0:f.getDocumentElement(m.floating)),boundary:h,rootBoundary:v,strategy:g})),z=y==="floating"?{x:o,y:u,width:d.floating.width,height:d.floating.height}:d.reference,j=await(f.getOffsetParent==null?void 0:f.getOffsetParent(m.floating)),F=await(f.isElement==null?void 0:f.isElement(j))?await(f.getScale==null?void 0:f.getScale(j))||{x:1,y:1}:{x:1,y:1},H=dl(f.convertOffsetParentRelativeRectToViewportRelativeRect?await f.convertOffsetParentRelativeRectToViewportRelativeRect({elements:m,rect:z,offsetParent:j,strategy:g}):z);return{top:(C.top-H.top+E.top)/F.y,bottom:(H.bottom-C.bottom+E.bottom)/F.y,left:(C.left-H.left+E.left)/F.x,right:(H.right-C.right+E.right)/F.x}}const gE=n=>({name:"arrow",options:n,async fn(i){const{x:s,y:o,placement:u,rects:f,platform:d,elements:m,middlewareData:g}=i,{element:h,padding:v=0}=Kn(n,i)||{};if(h==null)return{};const y=ev(v),w={x:s,y:o},_=If(u),E=$f(_),k=await d.getDimensions(h),A=_==="y",C=A?"top":"left",z=A?"bottom":"right",j=A?"clientHeight":"clientWidth",F=f.reference[E]+f.reference[_]-w[_]-f.floating[E],H=w[_]-f.reference[_],I=await(d.getOffsetParent==null?void 0:d.getOffsetParent(h));let Z=I?I[j]:0;(!Z||!await(d.isElement==null?void 0:d.isElement(I)))&&(Z=m.floating[j]||f.floating[E]);const $=F/2-H/2,ee=Z/2-k[E]/2-1,ue=Ci(y[C],ee),ge=Ci(y[z],ee),he=ue,ve=Z-k[E]-ge,we=Z/2-k[E]/2+$,me=wf(he,we,ve),O=!g.arrow&&as(u)!=null&&we!==me&&f.reference[E]/2-(we<he?ue:ge)-k[E]/2<0,V=O?we<he?we-he:we-ve:0;return{[_]:w[_]+V,data:{[_]:me,centerOffset:we-me-V,...O&&{alignmentOffset:V}},reset:O}}}),mE=function(n){return n===void 0&&(n={}),{name:"flip",options:n,async fn(i){var s,o;
vendor: 13,313 bytes, line 61
61const{placement:u,middlewareData:f,rects:d,initialPlacement:m,platform:g,elements:h}=i,{mainAxis:v=!0,crossAxis:y=!0,fallbackPlacements:w,fallbackStrategy:_="bestFit",fallbackAxisSideDirection:E="none",flipAlignment:k=!0,...A}=Kn(n,i);if((s=f.arrow)!=null&&s.alignmentOffset)return{};const C=Zn(u),z=_n(m),j=Zn(m)===m,F=await(g.isRTL==null?void 0:g.isRTL(h.floating)),H=w||(j||!k?[fl(m)]:oE(m)),I=E!=="none";!w&&I&&H.push(...fE(m,k,E,F));const Z=[m,...H],$=await yr(i,A),ee=[];let ue=((o=f.flip)==null?void 0:o.overflows)||[];if(v&&ee.push($[C]),y){const we=rE(u,d,F);ee.push($[we[0]],$[we[1]])}if(ue=[...ue,{placement:u,overflows:ee}],!ee.every(we=>we<=0)){var ge,he;const we=(((ge=f.flip)==null?void 0:ge.index)||0)+1,me=Z[we];if(me&&(!(y==="alignment"?z!==_n(me):!1)||ue.every(L=>_n(L.placement)===z?L.overflows[0]>0:!0)))return{data:{index:we,overflows:ue},reset:{placement:me}};let O=(he=ue.filter(V=>V.overflows[0]<=0).sort((V,L)=>V.overflows[1]-L.overflows[1])[0])==null?void 0:he.placement;if(!O)switch(_){case"bestFit":{var ve;const V=(ve=ue.filter(L=>{if(I){const re=_n(L.placement);return re===z||re==="y"}return!0}).map(L=>[L.placement,L.overflows.filter(re=>re>0).reduce((re,T)=>re+T,0)]).sort((L,re)=>L[1]-re[1])[0])==null?void 0:ve[0];V&&(O=V);break}case"initialPlacement":O=m;break}if(u!==O)return{reset:{placement:O}}}return{}}}};function Rp(n,i){return{top:n.top-i.height,right:n.right-i.width,bottom:n.bottom-i.height,left:n.left-i.width}}function Ap(n){return nE.some(i=>n[i]>=0)}const pE=function(n){return n===void 0&&(n={}),{name:"hide",options:n,async fn(i){const{rects:s}=i,{strategy:o="referenceHidden",...u}=Kn(n,i);switch(o){case"referenceHidden":{const f=await yr(i,{...u,elementContext:"reference"}),d=Rp(f,s.reference);return{data:{referenceHiddenOffsets:d,referenceHidden:Ap(d)}}}case"escaped":{const f=await yr(i,{...u,altBoundary:!0}),d=Rp(f,s.floating);return{data:{escapedOffsets:d,escaped:Ap(d)}}}default:return{}}}}},tv=new Set(["left","top"]);async function yE(n,i){const{placement:s,platform:o,elements:u}=n,f=await(o.isRTL==null?void 0:o.isRTL(u.floating)),d=Zn(s),m=as(s),g=_n(s)==="y",h=tv.has(d)?-1:1,v=f&&g?-1:1,y=Kn(i,n);let{mainAxis:w,crossAxis:_,alignmentAxis:E}=typeof y=="number"?{mainAxis:y,crossAxis:0,alignmentAxis:null}:{mainAxis:y.mainAxis||0,crossAxis:y.crossAxis||0,alignmentAxis:y.alignmentAxis};return m&&typeof E=="number"&&(_=m==="end"?E*-1:E),g?{x:_*v,y:w*h}:{x:w*h,y:_*v}}const vE=function(n){return n===void 0&&(n=0),{name:"offset",options:n,async fn(i){var s,o;const{x:u,y:f,placement:d,middlewareData:m}=i,g=await yE(i,n);return d===((s=m.offset)==null?void 0:s.placement)&&(o=m.arrow)!=null&&o.alignmentOffset?{}:{x:u+g.x,y:f+g.y,data:{...g,placement:d}}}}},bE=function(n){return n===void 0&&(n={}),{name:"shift",options:n,async fn(i){const{x:s,y:o,placement:u}=i,{mainAxis:f=!0,crossAxis:d=!1,limiter:m={fn:A=>{let{x:C,y:z}=A;return{x:C,y:z}}},...g}=Kn(n,i),h={x:s,y:o},v=await yr(i,g),y=_n(Zn(u)),w=Gf(y);let _=h[w],E=h[y];if(f){const A=w==="y"?"top":"left",C=w==="y"?"bottom":"right",z=_+v[A],j=_-v[C];_=wf(z,_,j)}if(d){const A=y==="y"?"top":"left",C=y==="y"?"bottom":"right",z=E+v[A],j=E-v[C];E=wf(z,E,j)}const k=m.fn({...i,[w]:_,[y]:E});return{...k,data:{x:k.x-s,y:k.y-o,enabled:{[w]:f,[y]:d}}}}}},wE=function(n){return n===void 0&&(n={}),{options:n,fn(i){const{x:s,y:o,placement:u,rects:f,middlewareData:d}=i,{offset:m=0,mainAxis:g=!0,crossAxis:h=!0}=Kn(n,i),v={x:s,y:o},y=_n(u),w=Gf(y);let _=v[w],E=v[y];const k=Kn(m,i),A=typeof k=="number"?{mainAxis:k,crossAxis:0}:{mainAxis:0,crossAxis:0,...k};if(g){const j=w==="y"?"height":"width",F=f.reference[w]-f.floating[j]+A.mainAxis,H=f.reference[w]+f.reference[j]-A.mainAxis;_<F?_=F:_>H&&(_=H)}if(h){var C,z;const j=w==="y"?"width":"height",F=tv.has(Zn(u)),H=f.reference[y]-f.floating[j]+(F&&((C=d.offset)==null?void 0:C[y])||0)+(F?0:A.crossAxis),I=f.reference[y]+f.reference[j]+(F?0:((z=d.offset)==null?void 0:z[y])||0)-(F?A.crossAxis:0);E<H?E=H:E>I&&(E=I)}return{[w]:_,[y]:E}}}},SE=function(n){return n===void 0&&(n={}),{name:"size",options:n,async fn(i){var s,o;const{placement:u,rects:f,platform:d,elements:m}=i,{apply:g=()=>{},...h}=Kn(n,i),v=await yr(i,h),y=Zn(u),w=as(u),_=_n(u)==="y",{width:E,height:k}=f.floating;let A,C;y==="top"||y==="bottom"?(A=y,C=w===(await(d.isRTL==null?void 0:d.isRTL(m.floating))?"start":"end")?"left":"right"):(C=y,A=w==="end"?"top":"bottom");const z=k-v.top-v.bottom,j=E-v.left-v.right,F=Ci(k-v[A],z),H=Ci(E-v[C],j),I=!i.middlewareData.shift;let Z=F,$=H;if((s=i.middlewareData.shift)!=null&&s.enabled.x&&($=j),(o=i.middlewareData.shift)!=null&&o.enabled.y&&(Z=z),I&&!w){const ue=Ht(v.left,0),ge=Ht(v.right,0),he=Ht(v.top,0),ve=Ht(v.bottom,0);_?$=E-2*(ue!==0||ge!==0?ue+ge:Ht(v.left,v.right)):Z=k-2*(he!==0||ve!==0?he+ve:Ht(v.top,v.bottom))}await g({...i,availableWidth:$,availableHeight:Z});const ee=await d.getDimensions(m.floating);return E!==ee.width||k!==ee.height?{reset:{rects:!0}}:{}}}};function vl(){return typeof window<"u"}function ss(n){return nv(n)?(n.nodeName||"").toLowerCase():"#document"}function Bt(n){var i;return(n==null||(i=n.ownerDocument)==null?void 0:i.defaultView)||window}function An(n){var i;return(i=(nv(n)?n.ownerDocument:n.document)||window.document)==null?void 0:i.documentElement}function nv(n){return vl()?n instanceof Node||n instanceof Bt(n).Node:!1}function sn(n){return vl()?n instanceof Element||n instanceof Bt(n).Element:!1}function Tn(n){return vl()?n instanceof HTMLElement||n instanceof Bt(n).HTMLElement:!1}function Cp(n){return!vl()||typeof ShadowRoot>"u"?!1:n instanceof ShadowRoot||n instanceof Bt(n).ShadowRoot}const _E=new Set(["inline","contents"]);function Er(n){const{overflow:i,overflowX:s,overflowY:o,display:u}=rn(n);return/auto|scroll|overlay|hidden|clip/.test(i+o+s)&&!_E.has(u)}const xE=new Set(["table","td","th"]);function EE(n){return xE.has(ss(n))}const TE=[":popover-open",":modal"];function bl(n){return TE.some(i=>{try{return n.matches(i)}catch{return!1}})}const RE=["transform","translate","scale","rotate","perspective"],AE=["transform","translate","scale","rotate","perspective","filter"],CE=["paint","layout","strict","content"];function Xf(n){const i=Ff(),s=sn(n)?rn(n):n;return RE.some(o=>s[o]?s[o]!=="none":!1)||(s.containerType?s.containerType!=="normal":!1)||!i&&(s.backdropFilter?s.backdropFilter!=="none":!1)||!i&&(s.filter?s.filter!=="none":!1)||AE.some(o=>(s.willChange||"").includes(o))||CE.some(o=>(s.contain||"").includes(o))}function OE(n){let i=Oi(n);for(;Tn(i)&&!es(i);){if(Xf(i))return i;if(bl(i))return null;i=Oi(i)}return null}function Ff(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const kE=new Set(["html","body","#document"]);function es(n){return kE.has(ss(n))}function rn(n){return Bt(n).getComputedStyle(n)}function wl(n){return sn(n)?{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}:{scrollLeft:n.scrollX,scrollTop:n.scrollY}}function Oi(n){if(ss(n)==="html")return n;const i=n.assignedSlot||n.parentNode||Cp(n)&&n.host||An(n);return Cp(i)?i.host:i}function iv(n){const i=Oi(n);return es(i)?n.ownerDocument?n.ownerDocument.body:n.body:Tn(i)&&Er(i)?i:iv(i)}function vr(n,i,s){var o;i===void 0&&(i=[]),s===void 0&&(s=!0);const u=iv(n),f=u===((o=n.ownerDocument)==null?void 0:o.body),d=Bt(u);if(f){const m=_f(d);return i.concat(d,d.visualViewport||[],Er(u)?u:[],m&&s?vr(m):[])}return i.concat(u,vr(u,[],s))}function _f(n){return n.parent&&Object.getPrototypeOf(n.parent)?n.frameElement:null}function av(n){const i=rn(n);let s=parseFloat(i.width)||0,o=parseFloat(i.height)||0;const u=Tn(n),f=u?n.offsetWidth:s,d=u?n.offsetHeight:o,m=cl(s)!==f||cl(o)!==d;return m&&(s=f,o=d),{width:s,height:o,$:m}}function Kf(n){return sn(n)?n:n.contextElement}function Ka(n){const i=Kf(n);if(!Tn(i))return xn(1);const s=i.getBoundingClientRect(),{width:o,height:u,$:f}=av(i);let d=(f?cl(s.width):s.width)/o,m=(f?cl(s.height):s.height)/u;return(!d||!Number.isFinite(d))&&(d=1),(!m||!Number.isFinite(m))&&(m=1),{x:d,y:m}}const ME=xn(0);function sv(n){const i=Bt(n);return!Ff()||!i.visualViewport?ME:{x:i.visualViewport.offsetLeft,y:i.visualViewport.offsetTop}}function DE(n,i,s){return i===void 0&&(i=!1),!s||i&&s!==Bt(n)?!1:i}function ta(n,i,s,o){i===void 0&&(i=!1),s===void 0&&(s=!1);const u=n.getBoundingClientRect(),f=Kf(n);let d=xn(1);i&&(o?sn(o)&&(d=Ka(o)):d=Ka(n));const m=DE(f,s,o)?sv(f):xn(0);let g=(u.left+m.x)/d.x,h=(u.top+m.y)/d.y,v=u.width/d.x,y=u.height/d.y;if(f){const w=Bt(f),_=o&&sn(o)?Bt(o):o;let E=w,k=_f(E);for(;k&&o&&_!==E;){const A=Ka(k),C=k.getBoundingClientRect(),z=rn(k),j=C.left+(k.clientLeft+parseFloat(z.paddingLeft))*A.x,F=C.top+(k.clientTop+parseFloat(z.paddingTop))*A.y;g*=A.x,h*=A.y,v*=A.x,y*=A.y,g+=j,h+=F,E=Bt(k),k=_f(E)}}return dl({width:v,height:y,x:g,y:h})}function Sl(n,i){const s=wl(n).scrollLeft;return i?i.left+s:ta(An(n)).left+s}function rv(n,i){const s=n.getBoundingClientRect(),o=s.left+i.scrollLeft-Sl(n,s),u=s.top+i.scrollTop;return{x:o,y:u}}function NE(n){let{elements:i,rect:s,offsetParent:o,strategy:u}=n;const f=u==="fixed",d=An(o),m=i?bl(i.floating):!1;if(o===d||m&&f)return s;let g={scrollLeft:0,scrollTop:0},h=xn(1);const v=xn(0),y=Tn(o);if((y||!y&&!f)&&((ss(o)!=="body"||Er(d))&&(g=wl(o)),Tn(o))){const _=ta(o);h=Ka(o),v.x=_.x+o.clientLeft,v.y=_.y+o.clientTop}const w=d&&!y&&!f?rv(d,g):xn(0);return{width:s.width*h.x,height:s.height*h.y,x:s.x*h.x-g.scrollLeft*h.x+v.x+w.x,y:s.y*h.y-g.scrollTop*h.y+v.y+w.y}}function UE(n){return Array.from(n.getClientRects())}function qE(n){const i=An(n),s=wl(n),o=n.ownerDocument.body,u=Ht(i.scrollWidth,i.clientWidth,o.scrollWidth,o.clientWidth),f=Ht(i.scrollHeight,i.clientHeight,o.scrollHeight,o.clientHeight);let d=-s.scrollLeft+Sl(n);const m=-s.scrollTop;return rn(o).direction==="rtl"&&(d+=Ht(i.clientWidth,o.clientWidth)-u),{width:u,height:f,x:d,y:m}}const Op=25;function zE(n,i){const s=Bt(n),o=An(n),u=s.visualViewport;let f=o.clientWidth,d=o.clientHeight,m=0,g=0;if(u){f=u.width,d=u.height;const v=Ff();(!v||v&&i==="fixed")&&(m=u.offsetLeft,g=u.offsetTop)}const h=Sl(o);if(h<=0){const v=o.ownerDocument,y=v.body,w=getComputedStyle(y),_=v.compatMode==="CSS1Compat"&&parseFloat(w.marginLeft)+parseFloat(w.marginRight)||0,E=Math.abs(o.clientWidth-y.clientWidth-_);E<=Op&&(f-=E)}else h<=Op&&(f+=h);return{width:f,height:d,x:m,y:g}}const LE=new Set(["absolute","fixed"]);function HE(n,i){const s=ta(n,!0,i==="fixed"),o=s.top+n.clientTop,u=s.left+n.clientLeft,f=Tn(n)?Ka(n):xn(1),d=n.clientWidth*f.x,m=n.clientHeight*f.y,g=u*f.x,h=o*f.y;return{width:d,height:m,x:g,y:h}}function kp(n,i,s){let o;if(i==="viewport")o=zE(n,s);else if(i==="document")o=qE(An(n));else if(sn(i))o=HE(i,s);else{const u=sv(n);o={x:i.x-u.x,y:i.y-u.y,width:i.width,height:i.height}}return dl(o)}function ov(n,i){const s=Oi(n);return s===i||!sn(s)||es(s)?!1:rn(s).position==="fixed"||ov(s,i)}function BE(n,i){const s=i.get(n);if(s)return s;let o=vr(n,[],!1).filter(m=>sn(m)&&ss(m)!=="body"),u=null;const f=rn(n).position==="fixed";let d=f?Oi(n):n;for(;sn(d)&&!es(d);){const m=rn(d),g=Xf(d);!g&&m.position==="fixed"&&(u=null),(f?!g&&!u:!g&&m.position==="static"&&!!u&&LE.has(u.position)||Er(d)&&!g&&ov(n,d))?o=o.filter(v=>v!==d):u=m,d=Oi(d)}return i.set(n,o),o}function jE(n){let{element:i,boundary:s,rootBoundary:o,strategy:u}=n;const d=[...s==="clippingAncestors"?bl(i)?[]:BE(i,this._c):[].concat(s),o],m=d[0],g=d.reduce((h,v)=>{const y=kp(i,v,u);return h.top=Ht(y.top,h.top),h.right=Ci(y.right,h.right),h.bottom=Ci(y.bottom,h.bottom),h.left=Ht(y.left,h.left),h},kp(i,m,u));return{width:g.right-g.left,height:g.bottom-g.top,x:g.left,y:g.top}}function PE(n){const{width:i,height:s}=av(n);return{width:i,height:s}}function VE(n,i,s){const o=Tn(i),u=An(i),f=s==="fixed",d=ta(n,!0,f,i);let m={scrollLeft:0,scrollTop:0};const g=xn(0);function h(){g.x=Sl(u)}if(o||!o&&!f)if((ss(i)!=="body"||Er(u))&&(m=wl(i)),o){const _=ta(i,!0,f,i);g.x=_.x+i.clientLeft,g.y=_.y+i.clientTop}else u&&h();f&&!o&&u&&h();const v=u&&!o&&!f?rv(u,m):xn(0),y=d.left+m.scrollLeft-g.x-v.x,w=d.top+m.scrollTop-g.y-v.y;return{x:y,y:w,width:d.width,height:d.height}}function Wc(n){return rn(n).position==="static"}function Mp(n,i){if(!Tn(n)||rn(n).position==="fixed")return null;if(i)return i(n);let s=n.offsetParent;return An(n)===s&&(s=s.ownerDocument.body),s}function lv(n,i){const s=Bt(n);if(bl(n))return s;if(!Tn(n)){let u=Oi(n);for(;u&&!es(u);){if(sn(u)&&!Wc(u))return u;u=Oi(u)}return s}let o=Mp(n,i);for(;o&&EE(o)&&Wc(o);)o=Mp(o,i);return o&&es(o)&&Wc(o)&&!Xf(o)?s:o||OE(n)||s}const QE=async function(n){const i=this.getOffsetParent||lv,s=this.getDimensions,o=await s(n.floating);return{reference:VE(n.reference,await i(n.floating),n.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function YE(n){return rn(n).direction==="rtl"}const GE={convertOffsetParentRelativeRectToViewportRelativeRect:NE,getDocumentElement:An,getClippingRect:jE,getOffsetParent:lv,getElementRects:QE,getClientRects:UE,getDimensions:PE,getScale:Ka,isElement:sn,isRTL:YE};function uv(n,i){return n.x===i.x&&n.y===i.y&&n.width===i.width&&n.height===i.height}function $E(n,i){let s=null,o;const u=An(n);function f(){var m;clearTimeout(o),(m=s)==null||m.disconnect(),s=null}function d(m,g){m===void 0&&(m=!1),g===void 0&&(g=1),f();const h=n.getBoundingClientRect(),{left:v,top:y,width:w,height:_}=h;if(m||i(),!w||!_)return;
vendor: 7,427 bytes, line 61
61const E=Io(y),k=Io(u.clientWidth-(v+w)),A=Io(u.clientHeight-(y+_)),C=Io(v),j={rootMargin:-E+"px "+-k+"px "+-A+"px "+-C+"px",threshold:Ht(0,Ci(1,g))||1};let F=!0;function H(I){const Z=I[0].intersectionRatio;if(Z!==g){if(!F)return d();Z?d(!1,Z):o=setTimeout(()=>{d(!1,1e-7)},1e3)}Z===1&&!uv(h,n.getBoundingClientRect())&&d(),F=!1}try{s=new IntersectionObserver(H,{...j,root:u.ownerDocument})}catch{s=new IntersectionObserver(H,j)}s.observe(n)}return d(!0),f}function IE(n,i,s,o){o===void 0&&(o={});const{ancestorScroll:u=!0,ancestorResize:f=!0,elementResize:d=typeof ResizeObserver=="function",layoutShift:m=typeof IntersectionObserver=="function",animationFrame:g=!1}=o,h=Kf(n),v=u||f?[...h?vr(h):[],...vr(i)]:[];v.forEach(C=>{u&&C.addEventListener("scroll",s,{passive:!0}),f&&C.addEventListener("resize",s)});const y=h&&m?$E(h,s):null;let w=-1,_=null;d&&(_=new ResizeObserver(C=>{let[z]=C;z&&z.target===h&&_&&(_.unobserve(i),cancelAnimationFrame(w),w=requestAnimationFrame(()=>{var j;(j=_)==null||j.observe(i)})),s()}),h&&!g&&_.observe(h),_.observe(i));let E,k=g?ta(n):null;g&&A();function A(){const C=ta(n);k&&!uv(k,C)&&s(),k=C,E=requestAnimationFrame(A)}return s(),()=>{var C;v.forEach(z=>{u&&z.removeEventListener("scroll",s),f&&z.removeEventListener("resize",s)}),y?.(),(C=_)==null||C.disconnect(),_=null,g&&cancelAnimationFrame(E)}}const XE=vE,FE=bE,KE=mE,ZE=SE,JE=pE,Dp=gE,WE=wE,eT=(n,i,s)=>{const o=new Map,u={platform:GE,...s},f={...u.platform,_c:o};return hE(n,i,{...u,platform:f})};var tT=typeof document<"u",nT=function(){},tl=tT?S.useLayoutEffect:nT;function hl(n,i){if(n===i)return!0;if(typeof n!=typeof i)return!1;if(typeof n=="function"&&n.toString()===i.toString())return!0;let s,o,u;if(n&&i&&typeof n=="object"){if(Array.isArray(n)){if(s=n.length,s!==i.length)return!1;for(o=s;o--!==0;)if(!hl(n[o],i[o]))return!1;return!0}if(u=Object.keys(n),s=u.length,s!==Object.keys(i).length)return!1;for(o=s;o--!==0;)if(!{}.hasOwnProperty.call(i,u[o]))return!1;for(o=s;o--!==0;){const f=u[o];if(!(f==="_owner"&&n.$$typeof)&&!hl(n[f],i[f]))return!1}return!0}return n!==n&&i!==i}function cv(n){return typeof window>"u"?1:(n.ownerDocument.defaultView||window).devicePixelRatio||1}function Np(n,i){const s=cv(n);return Math.round(i*s)/s}function ef(n){const i=S.useRef(n);return tl(()=>{i.current=n}),i}function iT(n){n===void 0&&(n={});const{placement:i="bottom",strategy:s="absolute",middleware:o=[],platform:u,elements:{reference:f,floating:d}={},transform:m=!0,whileElementsMounted:g,open:h}=n,[v,y]=S.useState({x:0,y:0,strategy:s,placement:i,middlewareData:{},isPositioned:!1}),[w,_]=S.useState(o);hl(w,o)||_(o);const[E,k]=S.useState(null),[A,C]=S.useState(null),z=S.useCallback(L=>{L!==I.current&&(I.current=L,k(L))},[]),j=S.useCallback(L=>{L!==Z.current&&(Z.current=L,C(L))},[]),F=f||E,H=d||A,I=S.useRef(null),Z=S.useRef(null),$=S.useRef(v),ee=g!=null,ue=ef(g),ge=ef(u),he=ef(h),ve=S.useCallback(()=>{if(!I.current||!Z.current)return;const L={placement:i,strategy:s,middleware:w};ge.current&&(L.platform=ge.current),eT(I.current,Z.current,L).then(re=>{const T={...re,isPositioned:he.current!==!1};we.current&&!hl($.current,T)&&($.current=T,Hf.flushSync(()=>{y(T)}))})},[w,i,s,ge,he]);tl(()=>{h===!1&&$.current.isPositioned&&($.current.isPositioned=!1,y(L=>({...L,isPositioned:!1})))},[h]);const we=S.useRef(!1);tl(()=>(we.current=!0,()=>{we.current=!1}),[]),tl(()=>{if(F&&(I.current=F),H&&(Z.current=H),F&&H){if(ue.current)return ue.current(F,H,ve);ve()}},[F,H,ve,ue,ee]);const me=S.useMemo(()=>({reference:I,floating:Z,setReference:z,setFloating:j}),[z,j]),O=S.useMemo(()=>({reference:F,floating:H}),[F,H]),V=S.useMemo(()=>{const L={position:s,left:0,top:0};if(!O.floating)return L;const re=Np(O.floating,v.x),T=Np(O.floating,v.y);return m?{...L,transform:"translate("+re+"px, "+T+"px)",...cv(O.floating)>=1.5&&{willChange:"transform"}}:{position:s,left:re,top:T}},[s,m,O.floating,v.x,v.y]);return S.useMemo(()=>({...v,update:ve,refs:me,elements:O,floatingStyles:V}),[v,ve,me,O,V])}const aT=n=>{function i(s){return{}.hasOwnProperty.call(s,"current")}return{name:"arrow",options:n,fn(s){const{element:o,padding:u}=typeof n=="function"?n(s):n;return o&&i(o)?o.current!=null?Dp({element:o.current,padding:u}).fn(s):{}:o?Dp({element:o,padding:u}).fn(s):{}}}},sT=(n,i)=>({...XE(n),options:[n,i]}),rT=(n,i)=>({...FE(n),options:[n,i]}),oT=(n,i)=>({...WE(n),options:[n,i]}),lT=(n,i)=>({...KE(n),options:[n,i]}),uT=(n,i)=>({...ZE(n),options:[n,i]}),cT=(n,i)=>({...JE(n),options:[n,i]}),fT=(n,i)=>({...aT(n),options:[n,i]});var dT="Arrow",fv=S.forwardRef((n,i)=>{const{children:s,width:o=10,height:u=5,...f}=n;return K.jsx(ia.svg,{...f,ref:i,width:o,height:u,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:n.asChild?s:K.jsx("polygon",{points:"0,0 30,0 15,10"})})});fv.displayName=dT;var hT=fv,dv="Popper",[hv,gv]=Fy(dv),[fA,mv]=hv(dv),pv="PopperAnchor",yv=S.forwardRef((n,i)=>{const{__scopePopper:s,virtualRef:o,...u}=n,f=mv(pv,s),d=S.useRef(null),m=na(i,d),g=S.useRef(null);return S.useEffect(()=>{const h=g.current;g.current=o?.current||d.current,h!==g.current&&f.onAnchorChange(g.current)}),o?null:K.jsx(ia.div,{...u,ref:m})});yv.displayName=pv;var Zf="PopperContent",[gT,mT]=hv(Zf),vv=S.forwardRef((n,i)=>{const{__scopePopper:s,side:o="bottom",sideOffset:u=0,align:f="center",alignOffset:d=0,arrowPadding:m=0,avoidCollisions:g=!0,collisionBoundary:h=[],collisionPadding:v=0,sticky:y="partial",hideWhenDetached:w=!1,updatePositionStrategy:_="optimized",onPlaced:E,...k}=n,A=mv(Zf,s),[C,z]=S.useState(null),j=na(i,pe=>z(pe)),[F,H]=S.useState(null),I=tE(F),Z=I?.width??0,$=I?.height??0,ee=o+(f!=="center"?"-"+f:""),ue=typeof v=="number"?v:{top:0,right:0,bottom:0,left:0,...v},ge=Array.isArray(h)?h:[h],he=ge.length>0,ve={padding:ue,boundary:ge.filter(yT),altBoundary:he},{refs:we,floatingStyles:me,placement:O,isPositioned:V,middlewareData:L}=iT({strategy:"fixed",placement:ee,whileElementsMounted:(...pe)=>IE(...pe,{animationFrame:_==="always"}),elements:{reference:A.anchor},middleware:[sT({mainAxis:u+$,alignmentAxis:d}),g&&rT({mainAxis:!0,crossAxis:!1,limiter:y==="partial"?oT():void 0,...ve}),g&&lT({...ve}),uT({...ve,apply:({elements:pe,rects:le,availableWidth:Pe,availableHeight:vt})=>{const{width:bt,height:lt}=le.reference,on=pe.floating.style;on.setProperty("--radix-popper-available-width",`${Pe}px`),on.setProperty("--radix-popper-available-height",`${vt}px`),on.setProperty("--radix-popper-anchor-width",`${bt}px`),on.setProperty("--radix-popper-anchor-height",`${lt}px`)}}),F&&fT({element:F,padding:m}),vT({arrowWidth:Z,arrowHeight:$}),w&&cT({strategy:"referenceHidden",...ve})]}),[re,T]=Sv(O),Y=yl(E);pr(()=>{V&&Y?.()},[V,Y]);const W=L.arrow?.x,B=L.arrow?.y,J=L.arrow?.centerOffset!==0,[ae,se]=S.useState();return pr(()=>{C&&se(window.getComputedStyle(C).zIndex)},[C]),K.jsx("div",{ref:we.setFloating,"data-radix-popper-content-wrapper":"",style:{...me,transform:V?me.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ae,"--radix-popper-transform-origin":[L.transformOrigin?.x,L.transformOrigin?.y].join(" "),...L.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:n.dir,children:K.jsx(gT,{scope:s,placedSide:re,onArrowChange:H,arrowX:W,arrowY:B,shouldHideArrow:J,children:K.jsx(ia.div,{"data-side":re,"data-align":T,...k,ref:j,style:{...k.style,animation:V?void 0:"none"}})})})});vv.displayName=Zf;var bv="PopperArrow",pT={top:"bottom",right:"left",bottom:"top",left:"r
61ight"},wv=S.forwardRef(function(i,s){const{__scopePopper:o,...u}=i,f=mT(bv,o),d=pT[f.placedSide];return K.jsx("span",{ref:f.onArrowChange,style:{position:"absolute",left:f.arrowX,top:f.arrowY,[d]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[f.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[f.placedSide],visibility:f.shouldHideArrow?"hidden":void 0},children:K.jsx(hT,{...u,ref:s,style:{...u.style,display:"block"}})})});wv.displayName=bv;function yT(n){return n!==null}var vT=n=>({name:"transformOrigin",options:n,fn(i){const{placement:s,rects:o,middlewareData:u}=i,d=u.arrow?.centerOffset!==0,m=d?0:n.arrowWidth,g=d?0:n.arrowHeight,[h,v]=Sv(s),y={start:"0%",center:"50%",end:"100%"}[v],w=(u.arrow?.x??0)+m/2,_=(u.arrow?.y??0)+g/2;let E="",k="";return h==="bottom"?(E=d?y:`${w}px`,k=`${-g}px`):h==="top"?(E=d?y:`${w}px`,k=`${o.floating.height+g}px`):h==="right"?(E=`${-g}px`,k=d?y:`${_}px`):h==="left"&&(E=`${o.floating.width+g}px`,k=d?y:`${_}px`),{data:{x:E,y:k}}}});function Sv(n){const[i,s="center"]=n.split("-");return[i,s]}var bT=yv,wT=vv,ST=wv,[_l,dA]=Fy("Tooltip",[gv]),Jf=gv(),_v="TooltipProvider",_T=700,Up="tooltip.open",[xT,xv]=_l(_v),Ev=n=>{const{__scopeTooltip:i,delayDuration:s=_T,skipDelayDuration:o=300,disableHoverableContent:u=!1,children:f}=n,d=S.useRef(!0),m=S.useRef(!1),g=S.useRef(0);return S.useEffect(()=>{const h=g.current;return()=>window.clearTimeout(h)},[]),K.jsx(xT,{scope:i,isOpenDelayedRef:d,delayDuration:s,onOpen:S.useCallback(()=>{window.clearTimeout(g.current),d.current=!1},[]),onClose:S.useCallback(()=>{window.clearTimeout(g.current),g.current=window.setTimeout(()=>d.current=!0,o)},[o]),isPointerInTransitRef:m,onPointerInTransitChange:S.useCallback(h=>{m.current=h},[]),disableHoverableContent:u,children:f})};Ev.displayName=_v;var Tv="Tooltip",[hA,xl]=_l(Tv),xf="TooltipTrigger",ET=S.forwardRef((n,i)=>{const{__scopeTooltip:s,...o}=n,u=xl(xf,s),f=xv(xf,s),d=Jf(s),m=S.useRef(null),g=na(i,m,u.onTriggerChange),h=S.useRef(!1),v=S.useRef(!1),y=S.useCallback(()=>h.current=!1,[]);return S.useEffect(()=>()=>document.removeEventListener("pointerup",y),[y]),K.jsx(bT,{asChild:!0,...d,children:K.jsx(ia.button,{"aria-describedby":u.open?u.contentId:void 0,"data-state":u.stateAttribute,...o,ref:g,onPointerMove:$n(n.onPointerMove,w=>{w.pointerType!=="touch"&&!v.current&&!f.isPointerInTransitRef.current&&(u.onTriggerEnter(),v.current=!0)}),onPointerLeave:$n(n.onPointerLeave,()=>{u.onTriggerLeave(),v.current=!1}),onPointerDown:$n(n.onPointerDown,()=>{u.open&&u.onClose(),h.current=!0,document.addEventListener("pointerup",y,{once:!0})}),onFocus:$n(n.onFocus,()=>{h.current||u.onOpen()}),onBlur:$n(n.onBlur,u.onClose),onClick:$n(n.onClick,u.onClose)})})});ET.displayName=xf;var TT="TooltipPortal",[gA,RT]=_l(TT,{forceMount:void 0}),ts="TooltipContent",AT=S.forwardRef((n,i)=>{const s=RT(ts,n.__scopeTooltip),{forceMount:o=s.forceMount,side:u="top",...f}=n,d=xl(ts,n.__scopeTooltip);return K.jsx(Ky,{present:o||d.open,children:d.disableHoverableContent?K.jsx(Rv,{side:u,...f,ref:i}):K.jsx(CT,{side:u,...f,ref:i})})}),CT=S.forwardRef((n,i)=>{const s=xl(ts,n.__scopeTooltip),o=xv(ts,n.__scopeTooltip),u=S.useRef(null),f=na(i,u),[d,m]=S.useState(null),{trigger:g,onClose:h}=s,v=u.current,{onPointerInTransitChange:y}=o,w=S.useCallback(()=>{m(null),y(!1)},[y]),_=S.useCallback((E,k)=>{const A=E.currentTarget,C={x:E.clientX,y:E.clientY},z=NT(C,A.getBoundingClientRect()),j=UT(C,z),F=qT(k.getBoundingClientRect()),H=LT([...j,...F]);m(H),y(!0)},[y]);return S.useEffect(()=>()=>w(),[w]),S.useEffect(()=>{if(g&&v){const E=A=>_(A,v),k=A=>_(A,g);return g.addEventListener("pointerleave",E),v.addEventListener("pointerleave",k),()=>{g.removeEventListener("pointerleave",E),v.removeEventListener("pointerleave",k)}}},[g,v,_,w]),S.useEffect(()=>{if(d){const E=k=>{const A=k.target,C={x:k.clientX,y:k.clientY},z=g?.contains(A)||v?.contains(A),j=!zT(C,d);z?w():j&&(w(),h())};return document.addEventListener("pointermove",E),()=>document.removeEventListener("pointermove",E)}},[g,v,d,h,w]),K.jsx(Rv,{...n,ref:f})}),[OT,kT]=_l(Tv,{isInside:!1}),MT=U1("TooltipContent"),Rv=S.forwardRef((n,i)=>{const{__scopeTooltip:s,children:o,"aria-label":u,onEscapeKeyDown:f,onPointerDownOutside:d,...m}=n,g=xl(ts,s),h=Jf(s),{onClose:v}=g;return S.useEffect(()=>(document.addEventListener(Up,v),()=>document.removeEventListener(Up,v)),[v]),S.useEffect(()=>{if(g.trigger){const y=w=>{w.target?.contains(g.trigger)&&v()};return window.addEventListener("scroll",y,{capture:!0}),()=>window.removeEventListener("scroll",y,{capture:!0})}},[g.trigger,v]),K.jsx(Jy,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:f,onPointerDownOutside:d,onFocusOutside:y=>y.preventDefault(),onDismiss:v,children:K.jsxs(wT,{"data-state":g.
vendor: 10,026 bytes, line 61
61stateAttribute,...h,...m,ref:i,style:{...m.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[K.jsx(MT,{children:o}),K.jsx(OT,{scope:s,isInside:!0,children:K.jsx(V1,{id:g.contentId,role:"tooltip",children:u||o})})]})})});AT.displayName=ts;var Av="TooltipArrow",DT=S.forwardRef((n,i)=>{const{__scopeTooltip:s,...o}=n,u=Jf(s);return kT(Av,s).isInside?null:K.jsx(ST,{...u,...o,ref:i})});DT.displayName=Av;function NT(n,i){const s=Math.abs(i.top-n.y),o=Math.abs(i.bottom-n.y),u=Math.abs(i.right-n.x),f=Math.abs(i.left-n.x);switch(Math.min(s,o,u,f)){case f:return"left";case u:return"right";case s:return"top";case o:return"bottom";default:throw new Error("unreachable")}}function UT(n,i,s=5){const o=[];switch(i){case"top":o.push({x:n.x-s,y:n.y+s},{x:n.x+s,y:n.y+s});break;case"bottom":o.push({x:n.x-s,y:n.y-s},{x:n.x+s,y:n.y-s});break;case"left":o.push({x:n.x+s,y:n.y-s},{x:n.x+s,y:n.y+s});break;case"right":o.push({x:n.x-s,y:n.y-s},{x:n.x-s,y:n.y+s});break}return o}function qT(n){const{top:i,right:s,bottom:o,left:u}=n;return[{x:u,y:i},{x:s,y:i},{x:s,y:o},{x:u,y:o}]}function zT(n,i){const{x:s,y:o}=n;let u=!1;for(let f=0,d=i.length-1;f<i.length;d=f++){const m=i[f],g=i[d],h=m.x,v=m.y,y=g.x,w=g.y;v>o!=w>o&&s<(y-h)*(o-v)/(w-v)+h&&(u=!u)}return u}function LT(n){const i=n.slice();return i.sort((s,o)=>s.x<o.x?-1:s.x>o.x?1:s.y<o.y?-1:s.y>o.y?1:0),HT(i)}function HT(n){if(n.length<=1)return n.slice();const i=[];for(let o=0;o<n.length;o++){const u=n[o];for(;i.length>=2;){const f=i[i.length-1],d=i[i.length-2];if((f.x-d.x)*(u.y-d.y)>=(f.y-d.y)*(u.x-d.x))i.pop();else break}i.push(u)}i.pop();const s=[];for(let o=n.length-1;o>=0;o--){const u=n[o];for(;s.length>=2;){const f=s[s.length-1],d=s[s.length-2];if((f.x-d.x)*(u.y-d.y)>=(f.y-d.y)*(u.x-d.x))s.pop();else break}s.push(u)}return s.pop(),i.length===1&&s.length===1&&i[0].x===s[0].x&&i[0].y===s[0].y?i:i.concat(s)}var BT=Ev;function Cv(n){var i,s,o="";if(typeof n=="string"||typeof n=="number")o+=n;else if(typeof n=="object")if(Array.isArray(n)){var u=n.length;for(i=0;i<u;i++)n[i]&&(s=Cv(n[i]))&&(o&&(o+=" "),o+=s)}else for(s in n)n[s]&&(o&&(o+=" "),o+=s);return o}function Ov(){for(var n,i,s=0,o="",u=arguments.length;s<u;s++)(n=arguments[s])&&(i=Cv(n))&&(o&&(o+=" "),o+=i);return o}const Wf="-",jT=n=>{const i=VT(n),{conflictingClassGroups:s,conflictingClassGroupModifiers:o}=n;return{getClassGroupId:d=>{const m=d.split(Wf);return m[0]===""&&m.length!==1&&m.shift(),kv(m,i)||PT(d)},getConflictingClassGroupIds:(d,m)=>{const g=s[d]||[];return m&&o[d]?[...g,...o[d]]:g}}},kv=(n,i)=>{if(n.length===0)return i.classGroupId;const s=n[0],o=i.nextPart.get(s),u=o?kv(n.slice(1),o):void 0;if(u)return u;if(i.validators.length===0)return;const f=n.join(Wf);return i.validators.find(({validator:d})=>d(f))?.classGroupId},qp=/^\[(.+)\]$/,PT=n=>{if(qp.test(n)){const i=qp.exec(n)[1],s=i?.substring(0,i.indexOf(":"));if(s)return"arbitrary.."+s}},VT=n=>{const{theme:i,classGroups:s}=n,o={nextPart:new Map,validators:[]};for(const u in s)Ef(s[u],o,u,i);return o},Ef=(n,i,s,o)=>{n.forEach(u=>{if(typeof u=="string"){const f=u===""?i:zp(i,u);f.classGroupId=s;return}if(typeof u=="function"){if(QT(u)){Ef(u(o),i,s,o);return}i.validators.push({validator:u,classGroupId:s});return}Object.entries(u).forEach(([f,d])=>{Ef(d,zp(i,f),s,o)})})},zp=(n,i)=>{let s=n;return i.split(Wf).forEach(o=>{s.nextPart.has(o)||s.nextPart.set(o,{nextPart:new Map,validators:[]}),s=s.nextPart.get(o)}),s},QT=n=>n.isThemeGetter,YT=n=>{if(n<1)return{get:()=>{},set:()=>{}};let i=0,s=new Map,o=new Map;const u=(f,d)=>{s.set(f,d),i++,i>n&&(i=0,o=s,s=new Map)};return{get(f){let d=s.get(f);if(d!==void 0)return d;if((d=o.get(f))!==void 0)return u(f,d),d},set(f,d){s.has(f)?s.set(f,d):u(f,d)}}},Tf="!",Rf=":",GT=Rf.length,$T=n=>{const{prefix:i,experimentalParseClassName:s}=n;let o=u=>{const f=[];let d=0,m=0,g=0,h;for(let E=0;E<u.length;E++){let k=u[E];if(d===0&&m===0){if(k===Rf){f.push(u.slice(g,E)),g=E+GT;continue}if(k==="/"){h=E;continue}}k==="["?d++:k==="]"?d--:k==="("?m++:k===")"&&m--}const v=f.length===0?u:u.substring(g),y=IT(v),w=y!==v,_=h&&h>g?h-g:void 0;return{modifiers:f,hasImportantModifier:w,baseClassName:y,maybePostfixModifierPosition:_}};if(i){const u=i+Rf,f=o;o=d=>d.startsWith(u)?f(d.substring(u.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:d,maybePostfixModifierPosition:void 0}}if(s){const u=o;o=f=>s({className:f,parseClassName:u})}return o},IT=n=>n.endsWith(Tf)?n.substring(0,n.length-1):n.startsWith(Tf)?n.substring(1):n,XT=n=>{const i=Object.fromEntries(n.orderSensitiveModifiers.map(o=>[o,!0]));return o=>{if(o.length<=1)return o;const u=[];let f=[];return o.forEach(d=>{d[0]==="["||i[d]?(u.push(...f.sort(),d),f=[]):f.push(d)}),u.push(...f.sort()),u}},FT=n=>({cache:YT(n.cacheSize),parseClassName:$T(n),sortModifiers:XT(n),...jT(n)}),KT=/\s+/,ZT=(n,i)=>{const{parseClassName:s,getClassGroupId:o,getConflictingClassGroupIds:u,sortModifiers:f}=i,d=[],m=n.trim().split(KT);let g="";for(let h=m.length-1;h>=0;h-=1){const v=m[h],{isExternal:y,modifiers:w,hasImportantModifier:_,baseClassName:E,maybePostfixModifierPosition:k}=s(v);if(y){g=v+(g.length>0?" "+g:g);continue}let A=!!k,C=o(A?E.substring(0,k):E);if(!C){if(!A){g=v+(g.length>0?" "+g:g);continue}if(C=o(E),!C){g=v+(g.length>0?" "+g:g);continue}A=!1}const z=f(w).join(":"),j=_?z+Tf:z,F=j+C;if(d.includes(F))continue;d.push(F);const H=u(C,A);for(let I=0;I<H.length;++I){const Z=H[I];d.push(j+Z)}g=v+(g.length>0?" "+g:g)}return g};function JT(){let n=0,i,s,o="";for(;n<arguments.length;)(i=arguments[n++])&&(s=Mv(i))&&(o&&(o+=" "),o+=s);return o}const Mv=n=>{if(typeof n=="string")return n;let i,s="";for(let o=0;o<n.length;o++)n[o]&&(i=Mv(n[o]))&&(s&&(s+=" "),s+=i);return s};function WT(n,...i){let s,o,u,f=d;function d(g){const h=i.reduce((v,y)=>y(v),n());return s=FT(h),o=s.cache.get,u=s.cache.set,f=m,m(g)}function m(g){const h=o(g);if(h)return h;const v=ZT(g,s);return u(g,v),v}return function(){return f(JT.apply(null,arguments))}}const nt=n=>{const i=s=>s[n]||[];return i.isThemeGetter=!0,i},Dv=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Nv=/^\((?:(\w[\w-]*):)?(.+)\)$/i,eR=/^\d+\/\d+$/,tR=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,nR=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,iR=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,aR=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,sR=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ia=n=>eR.test(n),_e=n=>!!n&&!Number.isNaN(Number(n)),Ti=n=>!!n&&Number.isInteger(Number(n)),tf=n=>n.endsWith("%")&&_e(n.slice(0,-1)),Gn=n=>tR.test(n),rR=()=>!0,oR=n=>nR.test(n)&&!iR.test(n),Uv=()=>!1,lR=n=>aR.test(n),uR=n=>sR.test(n),cR=n=>!ne(n)&&!ie(n),fR=n=>rs(n,Lv,Uv),ne=n=>Dv.test(n),Ji=n=>rs(n,Hv,oR),nf=n=>rs(n,pR,_e),Lp=n=>rs(n,qv,Uv),dR=n=>rs(n,zv,uR),Xo=n=>rs(n,Bv,lR),ie=n=>Nv.test(n),or=n=>os(n,Hv),hR=n=>os(n,yR),Hp=n=>os(n,qv),gR=n=>os(n,Lv),mR=n=>os(n,zv),Fo=n=>os(n,Bv,!0),rs=(n,i,s)=>{const o=Dv.exec(n);return o?o[1]?i(o[1]):s(o[2]):!1},os=(n,i,s=!1)=>{const o=Nv.exec(n);return o?o[1]?i(o[1]):s:!1},qv=n=>n==="position"||n==="percentage",zv=n=>n==="image"||n==="url",Lv=n=>n==="length"||n==="size"||n==="bg-size",Hv=n=>n==="length",pR=n=>n==="number",yR=n=>n==="family-name",Bv=n=>n==="shadow",vR=()=>{const n=nt("color"),i=nt("font"),s=nt("text"),o=nt("font-weight"),u=nt("tracking"),f=nt("leading"),d=nt("breakpoint"),m=nt("container"),g=nt("spacing"),h=nt("radius"),v=nt("shadow"),y=nt("inset-shadow"),w=nt("text-shadow"),_=nt("drop-shadow"),E=nt("blur"),k=nt("perspective"),A=nt("aspect"),C=nt("ease"),z=nt("animate"),j=()=>["auto","avoid","all","avoid-page","page","left","right","column"],F=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],H=()=>[...F(),ie,ne],I=()=>["auto","hidden","clip","visible","scroll"],Z=()=>["auto","contain","none"],$=()=>[ie,ne,g],ee=()=>[Ia,"full","auto",...$()],ue=()=>[Ti,"none","subgrid",ie,ne],ge=()=>["auto",{span:["full",Ti,ie,ne]},Ti,ie,ne],he=()=>[Ti,"auto",ie,ne],ve=()=>["auto","min","max","fr",ie,ne],we=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],me=()=>["start","end","center","stretch","center-safe","end-safe"],O=()=>["auto",...$()],V=()=>[Ia,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...$()],L=()=>[n,ie,ne],re=()=>[...F(),Hp,Lp,{position:[ie,ne]}],T=()=>["no-repeat",{repeat:["","x","y","space","round"]}],Y=()=>["auto","cover","contain",gR,fR,{size:[ie,ne]}],W=()=>[tf,or,Ji],B=()=>["","none","full",h,ie,ne],J=()=>["",_e,or,Ji],ae=()=>["solid","dashed","dotted","double"],se=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],pe=()=>[_e,tf,Hp,Lp],le=()=>["","none",E,ie,ne],Pe=()=>["none",_e,ie,ne],vt=()=>["none",_e,ie,ne],bt=()=>[_e,ie,ne],lt=()=>[Ia,"full",...$()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Gn],breakpoint:[Gn],color:[rR],container:[Gn],"drop-shadow":[Gn],ease:["in","out","in-out"],font:[cR],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Gn],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Gn],shadow:[Gn],spacing:["px",_e],text:[Gn],"text-shadow":[Gn],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Ia,ne,ie,A]}
vendor: 12,874 bytes, line 61
61],container:["container"],columns:[{columns:[_e,ne,ie,m]}],"break-after":[{"break-after":j()}],"break-before":[{"break-before":j()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:H()}],overflow:[{overflow:I()}],"overflow-x":[{"overflow-x":I()}],"overflow-y":[{"overflow-y":I()}],overscroll:[{overscroll:Z()}],"overscroll-x":[{"overscroll-x":Z()}],"overscroll-y":[{"overscroll-y":Z()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:ee()}],"inset-x":[{"inset-x":ee()}],"inset-y":[{"inset-y":ee()}],start:[{start:ee()}],end:[{end:ee()}],top:[{top:ee()}],right:[{right:ee()}],bottom:[{bottom:ee()}],left:[{left:ee()}],visibility:["visible","invisible","collapse"],z:[{z:[Ti,"auto",ie,ne]}],basis:[{basis:[Ia,"full","auto",m,...$()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[_e,Ia,"auto","initial","none",ne]}],grow:[{grow:["",_e,ie,ne]}],shrink:[{shrink:["",_e,ie,ne]}],order:[{order:[Ti,"first","last","none",ie,ne]}],"grid-cols":[{"grid-cols":ue()}],"col-start-end":[{col:ge()}],"col-start":[{"col-start":he()}],"col-end":[{"col-end":he()}],"grid-rows":[{"grid-rows":ue()}],"row-start-end":[{row:ge()}],"row-start":[{"row-start":he()}],"row-end":[{"row-end":he()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":ve()}],"auto-rows":[{"auto-rows":ve()}],gap:[{gap:$()}],"gap-x":[{"gap-x":$()}],"gap-y":[{"gap-y":$()}],"justify-content":[{justify:[...we(),"normal"]}],"justify-items":[{"justify-items":[...me(),"normal"]}],"justify-self":[{"justify-self":["auto",...me()]}],"align-content":[{content:["normal",...we()]}],"align-items":[{items:[...me(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...me(),{baseline:["","last"]}]}],"place-content":[{"place-content":we()}],"place-items":[{"place-items":[...me(),"baseline"]}],"place-self":[{"place-self":["auto",...me()]}],p:[{p:$()}],px:[{px:$()}],py:[{py:$()}],ps:[{ps:$()}],pe:[{pe:$()}],pt:[{pt:$()}],pr:[{pr:$()}],pb:[{pb:$()}],pl:[{pl:$()}],m:[{m:O()}],mx:[{mx:O()}],my:[{my:O()}],ms:[{ms:O()}],me:[{me:O()}],mt:[{mt:O()}],mr:[{mr:O()}],mb:[{mb:O()}],ml:[{ml:O()}],"space-x":[{"space-x":$()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":$()}],"space-y-reverse":["space-y-reverse"],size:[{size:V()}],w:[{w:[m,"screen",...V()]}],"min-w":[{"min-w":[m,"screen","none",...V()]}],"max-w":[{"max-w":[m,"screen","none","prose",{screen:[d]},...V()]}],h:[{h:["screen","lh",...V()]}],"min-h":[{"min-h":["screen","lh","none",...V()]}],"max-h":[{"max-h":["screen","lh",...V()]}],"font-size":[{text:["base",s,or,Ji]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[o,ie,nf]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",tf,ne]}],"font-family":[{font:[hR,ne,i]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[u,ie,ne]}],"line-clamp":[{"line-clamp":[_e,"none",ie,nf]}],leading:[{leading:[f,...$()]}],"list-image":[{"list-image":["none",ie,ne]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",ie,ne]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:L()}],"text-color":[{text:L()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ae(),"wavy"]}],"text-decoration-thickness":[{decoration:[_e,"from-font","auto",ie,Ji]}],"text-decoration-color":[{decoration:L()}],"underline-offset":[{"underline-offset":[_e,"auto",ie,ne]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:$()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ie,ne]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",ie,ne]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:re()}],"bg-repeat":[{bg:T()}],"bg-size":[{bg:Y()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Ti,ie,ne],radial:["",ie,ne],conic:[Ti,ie,ne]},mR,dR]}],"bg-color":[{bg:L()}],"gradient-from-pos":[{from:W()}],"gradient-via-pos":[{via:W()}],"gradient-to-pos":[{to:W()}],"gradient-from":[{from:L()}],"gradient-via":[{via:L()}],"gradient-to":[{to:L()}],rounded:[{rounded:B()}],"rounded-s":[{"rounded-s":B()}],"rounded-e":[{"rounded-e":B()}],"rounded-t":[{"rounded-t":B()}],"rounded-r":[{"rounded-r":B()}],"rounded-b":[{"rounded-b":B()}],"rounded-l":[{"rounded-l":B()}],"rounded-ss":[{"rounded-ss":B()}],"rounded-se":[{"rounded-se":B()}],"rounded-ee":[{"rounded-ee":B()}],"rounded-es":[{"rounded-es":B()}],"rounded-tl":[{"rounded-tl":B()}],"rounded-tr":[{"rounded-tr":B()}],"rounded-br":[{"rounded-br":B()}],"rounded-bl":[{"rounded-bl":B()}],"border-w":[{border:J()}],"border-w-x":[{"border-x":J()}],"border-w-y":[{"border-y":J()}],"border-w-s":[{"border-s":J()}],"border-w-e":[{"border-e":J()}],"border-w-t":[{"border-t":J()}],"border-w-r":[{"border-r":J()}],"border-w-b":[{"border-b":J()}],"border-w-l":[{"border-l":J()}],"divide-x":[{"divide-x":J()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":J()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ae(),"hidden","none"]}],"divide-style":[{divide:[...ae(),"hidden","none"]}],"border-color":[{border:L()}],"border-color-x":[{"border-x":L()}],"border-color-y":[{"border-y":L()}],"border-color-s":[{"border-s":L()}],"border-color-e":[{"border-e":L()}],"border-color-t":[{"border-t":L()}],"border-color-r":[{"border-r":L()}],"border-color-b":[{"border-b":L()}],"border-color-l":[{"border-l":L()}],"divide-color":[{divide:L()}],"outline-style":[{outline:[...ae(),"none","hidden"]}],"outline-offset":[{"outline-offset":[_e,ie,ne]}],"outline-w":[{outline:["",_e,or,Ji]}],"outline-color":[{outline:L()}],shadow:[{shadow:["","none",v,Fo,Xo]}],"shadow-color":[{shadow:L()}],"inset-shadow":[{"inset-shadow":["none",y,Fo,Xo]}],"inset-shadow-color":[{"inset-shadow":L()}],"ring-w":[{ring:J()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:L()}],"ring-offset-w":[{"ring-offset":[_e,Ji]}],"ring-offset-color":[{"ring-offset":L()}],"inset-ring-w":[{"inset-ring":J()}],"inset-ring-color":[{"inset-ring":L()}],"text-shadow":[{"text-shadow":["none",w,Fo,Xo]}],"text-shadow-color":[{"text-shadow":L()}],opacity:[{opacity:[_e,ie,ne]}],"mix-blend":[{"mix-blend":[...se(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":se()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[_e]}],"mask-image-linear-from-pos":[{"mask-linear-from":pe()}],"mask-image-linear-to-pos":[{"mask-linear-to":pe()}],"mask-image-linear-from-color":[{"mask-linear-from":L()}],"mask-image-linear-to-color":[{"mask-linear-to":L()}],"mask-image-t-from-pos":[{"mask-t-from":pe()}],"mask-image-t-to-pos":[{"mask-t-to":pe()}],"mask-image-t-from-color":[{"mask-t-from":L()}],"mask-image-t-to-color":[{"mask-t-to":L()}],"mask-image-r-from-pos":[{"mask-r-from":pe()}],"mask-image-r-to-pos":[{"mask-r-to":pe()}],"mask-image-r-from-color":[{"mask-r-from":L()}],"mask-image-r-to-color":[{"mask-r-to":L()}],"mask-image-b-from-pos":[{"mask-b-from":pe()}],"mask-image-b-to-pos":[{"mask-b-to":pe()}],"mask-image-b-from-color":[{"mask-b-from":L()}],"mask-image-b-to-color":[{"mask-b-to":L()}],"mask-image-l-from-pos":[{"mask-l-from":pe()}],"mask-image-l-to-pos":[{"mask-l-to":pe()}],"mask-image-l-from-color":[{"mask-l-from":L()}],"mask-image-l-to-color":[{"mask-l-to":L()}],"mask-image-x-from-pos":[{"mask-x-from":pe()}],"mask-image-x-to-pos":[{"mask-x-to":pe()}],"mask-image-x-from-color":[{"mask-x-from":L()}],"mask-image-x-to-color":[{"mask-x-to":L()}],"mask-image-y-from-pos":[{"mask-y-from":pe()}],"mask-image-y-to-pos":[{"mask-y-to":pe()}],"mask-image-y-from-color":[{"mask-y-from":L()}],"mask-image-y-to-color":[{"mask-y-to":L()}],"mask-image-radial":[{"mask-radial":[ie,ne]}],"mask-image-radial-from-pos":[{"mask-radial-from":pe()}],"mask-image-radial-to-pos":[{"mask-radial-to":pe()}],"mask-image-radial-from-color":[{"mask-radial-from":L()}],"mask-image-radial-to-color":[{"mask-radial-to":L()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":F()}],"mask-image-conic-pos":[{"mask-conic":[_e]}],"mask-image-conic-from-pos":[{"mask-conic-from":pe()}],"mask-image-conic-to-pos":[{"mask-conic-to":pe()}],"mask-image-conic-from-color":[{"mask-conic-from":L()}],"mask-image-conic-to-color":[{"mask-conic-to":L()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:re()}],"mask-repeat":[{mask:T()}],"mask-size":[{mask:Y()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",ie,ne]}],filter:[{filter:["","none",ie,ne]}],blur:[{blur:le()}],brightness:[{brightness:[_e,ie,ne]}],contrast:[{contrast:[_e,ie,ne]}],"drop-shadow":[{"drop-shadow":["","none",_,Fo,Xo]}],"drop-shadow-color":[{"drop-shadow":L()}],grayscale:[{grayscale:["",_e,ie,ne]}],"hue-rotate":[{"hue-rotate":[_e,ie,ne]}],invert:[{invert:["",_e,ie,ne]}],saturate:[{saturate:[_e,ie,ne]}],sepia:[{sepia:["",_e,ie,ne]}],"backdrop-filter":[{"backdrop-filter":["","none",ie,ne]}],"backdrop-blur":[{"backdrop-blur":le()}],"backdrop-brightness":[{"backdrop-brightness":[_e,ie,ne]}],"backdrop-contrast":[{"backdrop-contrast":[_e,ie,ne]}],"backdrop-grayscale":[{"backdrop-grayscale":["",_e,ie,ne]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[_e,ie,ne]}],"backdrop-invert":[{"backdrop-invert":["",_e,ie,ne]}],"backdrop-opacity":[{"backdrop-opacity":[_e,ie,ne]}],"backdrop-saturate":[{"backdrop-saturate":[_e,ie,ne]}],"backdrop-sepia":[{"backdrop-sepia":["",_e,ie,ne]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":$()}],"border-spacing-x":[{"border-spacing-x":$()}],"border-spacing-y":[{"border-spacing-y":$()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",ie,ne]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[_e,"initial",ie,ne]}],ease:[{ease:["linear","initial",C,ie,ne]}],delay:[{delay:[_e,ie,ne]}],animate:[{animate:["none",z,ie,ne]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[k,ie,ne]}],"perspective-origin":[{"perspective-origin":H()}],rotate:[{rotate:Pe()}],"rotate-x":[{"rotate-x":Pe()}],"rotate-y":[{"rotate-y":Pe()}],"rotate-z":[{"rotate-z":Pe()}],scale:[{scale:vt()}],"scale-x":[{"scale-x":vt()}],"scale-y":[{"scale-y":vt()}],"scale-z":[{"scale-z":vt()}],"scale-3d":["scale-3d"],skew:[{skew:bt()}],"skew-x":[{"skew-x":bt()}],"skew-y":[{"skew-y":bt()}],transform:[{transform:[ie,ne,"","none","gpu","cpu"]}],"transform-origin":[{origin:H()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:lt()}],"translate-x":[{"translate-x":lt()}],"translate-y":[{"translate-y":lt()}],"translate-z":[{"translate-z":lt()}],"translate-none":["translate-none"],accent:[{accent:L()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:L()}
vendor: 16,989 bytes, line 61
61],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",ie,ne]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":$()}],"scroll-mx":[{"scroll-mx":$()}],"scroll-my":[{"scroll-my":$()}],"scroll-ms":[{"scroll-ms":$()}],"scroll-me":[{"scroll-me":$()}],"scroll-mt":[{"scroll-mt":$()}],"scroll-mr":[{"scroll-mr":$()}],"scroll-mb":[{"scroll-mb":$()}],"scroll-ml":[{"scroll-ml":$()}],"scroll-p":[{"scroll-p":$()}],"scroll-px":[{"scroll-px":$()}],"scroll-py":[{"scroll-py":$()}],"scroll-ps":[{"scroll-ps":$()}],"scroll-pe":[{"scroll-pe":$()}],"scroll-pt":[{"scroll-pt":$()}],"scroll-pr":[{"scroll-pr":$()}],"scroll-pb":[{"scroll-pb":$()}],"scroll-pl":[{"scroll-pl":$()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",ie,ne]}],fill:[{fill:["none",...L()]}],"stroke-w":[{stroke:[_e,or,Ji,nf]}],stroke:[{stroke:["none",...L()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},bR=WT(vR);function wR(...n){return bR(Ov(n))}function SR({delayDuration:n=0,...i}){return K.jsx(BT,{"data-hercules-id":"src/components/ui/tooltip.tsx:11:4","data-hercules-name":"TooltipPrimitive.Provider","data-slot":"tooltip-provider",delayDuration:n,...i})}const _R={authority:"https://01kwf75pta1mkjyg3wrnbqtnhk.hercules-auth.com",client_id:"iYPrZUOHkgqrubRpqgtMTQDkYHQBCxRp",redirect_uri:window.location.origin,response_type:"code",scope:"openid profile email"};function xR({children:n}){const i=S.useCallback(()=>{window.history.replaceState({},document.title,window.location.pathname)},[]),s=S.useCallback(()=>{window.location.pathname=""},[]);return K.jsx(e1,{"data-hercules-id":"src/components/providers/auth.tsx:24:4","data-hercules-name":"ReactAuthProvider",..._R,onSigninCallback:i,onSignoutCallback:s,children:n})}var El=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(n){return this.listeners.add(n),this.onSubscribe(),()=>{this.listeners.delete(n),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},ER={setTimeout:(n,i)=>setTimeout(n,i),clearTimeout:n=>clearTimeout(n),setInterval:(n,i)=>setInterval(n,i),clearInterval:n=>clearInterval(n)},TR=class{#e=ER;#t=!1;setTimeoutProvider(n){this.#e=n}setTimeout(n,i){return this.#e.setTimeout(n,i)}clearTimeout(n){this.#e.clearTimeout(n)}setInterval(n,i){return this.#e.setInterval(n,i)}clearInterval(n){this.#e.clearInterval(n)}},Af=new TR;function RR(n){setTimeout(n,0)}var Tl=typeof window>"u"||"Deno"in globalThis;function an(){}function AR(n,i){return typeof n=="function"?n(i):n}function CR(n){return typeof n=="number"&&n>=0&&n!==1/0}function OR(n,i){return Math.max(n+(i||0)-Date.now(),0)}function Cf(n,i){return typeof n=="function"?n(i):n}function kR(n,i){return typeof n=="function"?n(i):n}function Bp(n,i){const{type:s="all",exact:o,fetchStatus:u,predicate:f,queryKey:d,stale:m}=n;if(d){if(o){if(i.queryHash!==ed(d,i.options))return!1}else if(!wr(i.queryKey,d))return!1}if(s!=="all"){const g=i.isActive();if(s==="active"&&!g||s==="inactive"&&g)return!1}return!(typeof m=="boolean"&&i.isStale()!==m||u&&u!==i.state.fetchStatus||f&&!f(i))}function jp(n,i){const{exact:s,status:o,predicate:u,mutationKey:f}=n;if(f){if(!i.options.mutationKey)return!1;if(s){if(br(i.options.mutationKey)!==br(f))return!1}else if(!wr(i.options.mutationKey,f))return!1}return!(o&&i.state.status!==o||u&&!u(i))}function ed(n,i){return(i?.queryKeyHashFn||br)(n)}function br(n){return JSON.stringify(n,(i,s)=>Of(s)?Object.keys(s).sort().reduce((o,u)=>(o[u]=s[u],o),{}):s)}function wr(n,i){return n===i?!0:typeof n!=typeof i?!1:n&&i&&typeof n=="object"&&typeof i=="object"?Object.keys(i).every(s=>wr(n[s],i[s])):!1}var MR=Object.prototype.hasOwnProperty;function jv(n,i){if(n===i)return n;const s=Pp(n)&&Pp(i);if(!s&&!(Of(n)&&Of(i)))return i;const u=(s?n:Object.keys(n)).length,f=s?i:Object.keys(i),d=f.length,m=s?new Array(d):{};let g=0;for(let h=0;h<d;h++){const v=s?h:f[h],y=n[v],w=i[v];if(y===w){m[v]=y,(s?h<u:MR.call(n,v))&&g++;continue}if(y===null||w===null||typeof y!="object"||typeof w!="object"){m[v]=w;continue}const _=jv(y,w);m[v]=_,_===y&&g++}return u===d&&g===u?n:m}function Pp(n){return Array.isArray(n)&&n.length===Object.keys(n).length}function Of(n){if(!Vp(n))return!1;const i=n.constructor;if(i===void 0)return!0;const s=i.prototype;return!(!Vp(s)||!s.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(n)!==Object.prototype)}function Vp(n){return Object.prototype.toString.call(n)==="[object Object]"}function DR(n){return new Promise(i=>{Af.setTimeout(i,n)})}function NR(n,i,s){return typeof s.structuralSharing=="function"?s.structuralSharing(n,i):s.structuralSharing!==!1?jv(n,i):i}function UR(n,i,s=0){const o=[...n,i];return s&&o.length>s?o.slice(1):o}function qR(n,i,s=0){const o=[i,...n];return s&&o.length>s?o.slice(0,-1):o}var td=Symbol();function Pv(n,i){return!n.queryFn&&i?.initialPromise?()=>i.initialPromise:!n.queryFn||n.queryFn===td?()=>Promise.reject(new Error(`Missing queryFn: '${n.queryHash}'`)):n.queryFn}var zR=class extends El{#e;#t;#n;constructor(){super(),this.#n=n=>{if(!Tl&&window.addEventListener){const i=()=>n();return window.addEventListener("visibilitychange",i,!1),()=>{window.removeEventListener("visibilitychange",i)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(n){this.#n=n,this.#t?.(),this.#t=n(i=>{typeof i=="boolean"?this.setFocused(i):this.onFocus()})}setFocused(n){this.#e!==n&&(this.#e=n,this.onFocus())}onFocus(){const n=this.isFocused();this.listeners.forEach(i=>{i(n)})}isFocused(){return typeof this.#e=="boolean"?this.#e:globalThis.document?.visibilityState!=="hidden"}},Vv=new zR;function LR(){let n,i;const s=new Promise((u,f)=>{n=u,i=f});s.status="pending",s.catch(()=>{});function o(u){Object.assign(s,u),delete s.resolve,delete s.reject}return s.resolve=u=>{o({status:"fulfilled",value:u}),n(u)},s.reject=u=>{o({status:"rejected",reason:u}),i(u)},s}var HR=RR;function BR(){let n=[],i=0,s=m=>{m()},o=m=>{m()},u=HR;const f=m=>{i?n.push(m):u(()=>{s(m)})},d=()=>{const m=n;n=[],m.length&&u(()=>{o(()=>{m.forEach(g=>{s(g)})})})};return{batch:m=>{let g;i++;try{g=m()}finally{i--,i||d()}return g},batchCalls:m=>(...g)=>{f(()=>{m(...g)})},schedule:f,setNotifyFunction:m=>{s=m},setBatchNotifyFunction:m=>{o=m},setScheduler:m=>{u=m}}}var xt=BR(),jR=class extends El{#e=!0;#t;#n;constructor(){super(),this.#n=n=>{if(!Tl&&window.addEventListener){const i=()=>n(!0),s=()=>n(!1);return window.addEventListener("online",i,!1),window.addEventListener("offline",s,!1),()=>{window.removeEventListener("online",i),window.removeEventListener("offline",s)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(n){this.#n=n,this.#t?.(),this.#t=n(this.setOnline.bind(this))}setOnline(n){this.#e!==n&&(this.#e=n,this.listeners.forEach(s=>{s(n)}))}isOnline(){return this.#e}},gl=new jR;function PR(n){return Math.min(1e3*2**n,3e4)}function Qv(n){return(n??"online")==="online"?gl.isOnline():!0}var kf=class extends Error{constructor(n){super("CancelledError"),this.revert=n?.revert,this.silent=n?.silent}};function Yv(n){let i=!1,s=0,o;const u=LR(),f=()=>u.status!=="pending",d=k=>{if(!f()){const A=new kf(k);w(A),n.onCancel?.(A)}},m=()=>{i=!0},g=()=>{i=!1},h=()=>Vv.isFocused()&&(n.networkMode==="always"||gl.isOnline())&&n.canRun(),v=()=>Qv(n.networkMode)&&n.canRun(),y=k=>{f()||(o?.(),u.resolve(k))},w=k=>{f()||(o?.(),u.reject(k))},_=()=>new Promise(k=>{o=A=>{(f()||h())&&k(A)},n.onPause?.()}).then(()=>{o=void 0,f()||n.onContinue?.()}),E=()=>{if(f())return;let k;const A=s===0?n.initialPromise:void 0;try{k=A??n.fn()}catch(C){k=Promise.reject(C)}Promise.resolve(k).then(y).catch(C=>{if(f())return;const z=n.retry??(Tl?0:3),j=n.retryDelay??PR,F=typeof j=="function"?j(s,C):j,H=z===!0||typeof z=="number"&&s<z||typeof z=="function"&&z(s,C);if(i||!H){w(C);return}s++,n.onFail?.(s,C),DR(F).then(()=>h()?void 0:_()).then(()=>{i?w(C):E()})})};return{promise:u,status:()=>u.status,cancel:d,continue:()=>(o?.(),u),cancelRetry:m,continueRetry:g,canStart:v,start:()=>(v()?E():_().then(E),u)}}var Gv=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),CR(this.gcTime)&&(this.#e=Af.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(n){this.gcTime=Math.max(this.gcTime||0,n??(Tl?1/0:300*1e3))}clearGcTimeout(){this.#e&&(Af.clearTimeout(this.#e),this.#e=void 0)}},VR=class extends Gv{#e;#t;#n;#a;#i;#r;#o;constructor(n){super(),this.#o=!1,this.#r=n.defaultOptions,this.setOptions(n.options),this.observers=[],this.#a=n.client,this.#n=this.#a.getQueryCache(),this.queryKey=n.queryKey,this.queryHash=n.queryHash,this.#e=Qp(this.options),this.state=n.state??this.#e,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#i?.promise}setOptions(n){if(this.options={...this.#r,...n},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const i=Qp(this.options);i.data!==void 0&&(this.setData(i.data,{updatedAt:i.dataUpdatedAt,manual:!0}),this.#e=i)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#n.remove(this)}setData(n,i){const s=NR(this.state.data,n,this.options);return this.#s({data:s,type:"success",dataUpdatedAt:i?.updatedAt,manual:i?.manual}),s}setState(n,i){this.#s({type:"setState",state:n,setStateOptions:i})}cancel(n){const i=this.#i?.promise;return this.#i?.cancel(n),i?i.then(an).catch(an):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#e)}isActive(){return this.observers.some(n=>kR(n.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===td||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(n=>Cf(n.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(n=>n.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(n=0){return this.state.data===void 0?!0:n==="static"?!1:this.state.isInvalidated?!0:!OR(this.state.dataUpdatedAt,n)}onFocus(){this.observers.find(i=>i.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#i?.continue()}onOnline(){this.observers.find(i=>i.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#i?.continue()}addObserver(n){this.observers.includes(n)||(this.observers.push(n),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",query:this,observer:n}))}removeObserver(n){this.observers.includes(n)&&(this.observers=this.observers.filter(i=>i!==n),this.observers.length||(this.#i&&(this.#o?this.#i.cancel({revert:!0}):this.#i.cancelRetry()),this.scheduleGc()),this.#n.notify({type:"observerRemoved",query:this,observer:n}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#s({type:"invalidate"})}async fetch(n,i){if(this.state.fetchStatus!=="idle"&&this.#i?.status()!=="rejected"){if(this.state.data!==void 0&&i?.cancelRefetch)this.cancel({silent:!0});else if(this.#i)return this.#i.continueRetry(),this.#i.promise}if(n&&this.setOptions(n),!this.options.queryFn){const m=this.observers.find(g=>g.options.queryFn);m&&this.setOptions(m.options)}const s=new AbortController,o=m=>{Object.defineProperty(m,"signal",{enumerable:!0,get:()=>(this.#o=!0,s.signal)})},u=()=>{const m=Pv(this.options,i),h=(()=>{const v={client:this.#a,queryKey:this.queryKey,meta:this.meta};return o(v),v})();return this.#o=!1,this.options.persister?this.options.persister(m,h,this):m(h)},d=(()=>{const m={fetchOptions:i,options:this.options,queryKey:this.queryKey,client:this.#a,state:this.state,fetchFn:u};return o(m),m})();this.options.behavior?.onFetch(d,this),this.#t=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==d.fetchOptions?.meta)&&this.#s({type:"fetch",meta:d.fetchOptions?.meta}),this.#i=Yv({initialPromise:i?.initialPromise,fn:d.fetchFn,onCancel:m=>{m instanceof kf&&m.revert&&this.setState({...this.#t,fetchStatus:"idle"}),s.abort()},onFail:(m,g)=>{this.#s({type:"failed",failureCount:m,error:g})},onPause:()=>{this.#s({type:"pause"})},onContinue:()=>{this.#s({type:"continue"})},retry:d.options.retry,retryDelay:d.options.retryDelay,networkMode:d.options.networkMode,canRun:()=>!0});try{const m=await this.#i.start();if(m===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(m),this.#n.config.onSuccess?.(m,this),this.#n.config.onSettled?.(m,this.state.error,this),m}catch(m){if(m instanceof kf){if(m.silent)return this.#i.promise;if(m.revert){if(this.state.data===void 0)throw m;return this.state.data}}throw this.#s({type:"error",error:m}),this.#n.config.onError?.(m,this),this.#n.config.onSettled?.(this.state.data,m,this),m}finally{this.scheduleGc()}}#s(n){const i=s=>{switch(n.type){case"failed":return{...s,fetchFailureCount:n.failureCount,fetchFailureReason:n.error};case"pause":return{...s,fetchStatus:"paused"};case"continue":return{...s,fetchStatus:"fetching"};case"fetch":return{...s,...QR(s.data,this.options),fetchMeta:n.meta??null};case"success":const o={...s,data:n.data,dataUpdateCount:s.dataUpdateCount+1,dataUpdatedAt:n.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!n.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#t=n.manual?o:void 0,o;case"error":const u=n.error;
vendor: 4,702 bytes, line 61
61return{...s,error:u,errorUpdateCount:s.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:s.fetchFailureCount+1,fetchFailureReason:u,fetchStatus:"idle",status:"error"};case"invalidate":return{...s,isInvalidated:!0};case"setState":return{...s,...n.state}}};this.state=i(this.state),xt.batch(()=>{this.observers.forEach(s=>{s.onQueryUpdate()}),this.#n.notify({query:this,type:"updated",action:n})})}};function QR(n,i){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Qv(i.networkMode)?"fetching":"paused",...n===void 0&&{error:null,status:"pending"}}}function Qp(n){const i=typeof n.initialData=="function"?n.initialData():n.initialData,s=i!==void 0,o=s?typeof n.initialDataUpdatedAt=="function"?n.initialDataUpdatedAt():n.initialDataUpdatedAt:0;return{data:i,dataUpdateCount:0,dataUpdatedAt:s?o??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:s?"success":"pending",fetchStatus:"idle"}}function Yp(n){return{onFetch:(i,s)=>{const o=i.options,u=i.fetchOptions?.meta?.fetchMore?.direction,f=i.state.data?.pages||[],d=i.state.data?.pageParams||[];let m={pages:[],pageParams:[]},g=0;const h=async()=>{let v=!1;const y=E=>{Object.defineProperty(E,"signal",{enumerable:!0,get:()=>(i.signal.aborted?v=!0:i.signal.addEventListener("abort",()=>{v=!0}),i.signal)})},w=Pv(i.options,i.fetchOptions),_=async(E,k,A)=>{if(v)return Promise.reject();if(k==null&&E.pages.length)return Promise.resolve(E);const z=(()=>{const I={client:i.client,queryKey:i.queryKey,pageParam:k,direction:A?"backward":"forward",meta:i.options.meta};return y(I),I})(),j=await w(z),{maxPages:F}=i.options,H=A?qR:UR;return{pages:H(E.pages,j,F),pageParams:H(E.pageParams,k,F)}};if(u&&f.length){const E=u==="backward",k=E?YR:Gp,A={pages:f,pageParams:d},C=k(o,A);m=await _(A,C,E)}else{const E=n??f.length;do{const k=g===0?d[0]??o.initialPageParam:Gp(o,m);if(g>0&&k==null)break;m=await _(m,k),g++}while(g<E)}return m};i.options.persister?i.fetchFn=()=>i.options.persister?.(h,{client:i.client,queryKey:i.queryKey,meta:i.options.meta,signal:i.signal},s):i.fetchFn=h}}}function Gp(n,{pages:i,pageParams:s}){const o=i.length-1;return i.length>0?n.getNextPageParam(i[o],i,s[o],s):void 0}function YR(n,{pages:i,pageParams:s}){return i.length>0?n.getPreviousPageParam?.(i[0],i,s[0],s):void 0}var GR=class extends Gv{#e;#t;#n;constructor(n){super(),this.mutationId=n.mutationId,this.#t=n.mutationCache,this.#e=[],this.state=n.state||$R(),this.setOptions(n.options),this.scheduleGc()}setOptions(n){this.options=n,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(n){this.#e.includes(n)||(this.#e.push(n),this.clearGcTimeout(),this.#t.notify({type:"observerAdded",mutation:this,observer:n}))}removeObserver(n){this.#e=this.#e.filter(i=>i!==n),this.scheduleGc(),this.#t.notify({type:"observerRemoved",mutation:this,observer:n})}optionalRemove(){this.#e.length||(this.state.status==="pending"?this.scheduleGc():this.#t.remove(this))}continue(){return this.#n?.continue()??this.execute(this.state.variables)}async execute(n){const i=()=>{this.#a({type:"continue"})};this.#n=Yv({fn:()=>this.options.mutationFn?this.options.mutationFn(n):Promise.reject(new Error("No mutationFn found")),onFail:(u,f)=>{this.#a({type:"failed",failureCount:u,error:f})},onPause:()=>{this.#a({type:"pause"})},onContinue:i,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#t.canRun(this)});const s=this.state.status==="pending",o=!this.#n.canStart();try{if(s)i();else{this.#a({type:"pending",variables:n,isPaused:o}),await this.#t.config.onMutate?.(n,this);const f=await this.options.onMutate?.(n);f!==this.state.context&&this.#a({type:"pending",context:f,variables:n,isPaused:o})}const u=await this.#n.start();return await this.#t.config.onSuccess?.(u,n,this.state.context,this),await this.options.onSuccess?.(u,n,this.state.context),await this.#t.config.onSettled?.(u,null,this.state.variables,this.state.context,this),await this.options.onSettled?.(u,null,n,this.state.context),this.#a({type:"success",data:u}),u}catch(u){try{throw await this.#t.config.onError?.(u,n,this.state.context,this),await this.options.onError?.(u,n,this.state.context),await this.#t.config.onSettled?.(void 0,u,this.state.variables,this.state.context,this),await this.options.onSettled?.(void 0,u,n,this.state.context),u}finally{this.#a({type:"error",error:u})}}finally{this.#t.runNext(this)}}#a(n){const i=s=>{switch(n.type){case"failed":return{...s,failureCount:n.failureCount,failureReason:n.error};case"pause":return{...s,isPaused:!0};case"continue":return{...s,isPaused:!1};
vendor: 8,520 bytes, line 61
61case"pending":return{...s,context:n.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:n.isPaused,status:"pending",variables:n.variables,submittedAt:Date.now()};case"success":return{...s,data:n.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...s,data:void 0,error:n.error,failureCount:s.failureCount+1,failureReason:n.error,isPaused:!1,status:"error"}}};this.state=i(this.state),xt.batch(()=>{this.#e.forEach(s=>{s.onMutationUpdate(n)}),this.#t.notify({mutation:this,type:"updated",action:n})})}};function $R(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var IR=class extends El{constructor(n={}){super(),this.config=n,this.#e=new Set,this.#t=new Map,this.#n=0}#e;#t;#n;build(n,i,s){const o=new GR({mutationCache:this,mutationId:++this.#n,options:n.defaultMutationOptions(i),state:s});return this.add(o),o}add(n){this.#e.add(n);const i=Ko(n);if(typeof i=="string"){const s=this.#t.get(i);s?s.push(n):this.#t.set(i,[n])}this.notify({type:"added",mutation:n})}remove(n){if(this.#e.delete(n)){const i=Ko(n);if(typeof i=="string"){const s=this.#t.get(i);if(s)if(s.length>1){const o=s.indexOf(n);o!==-1&&s.splice(o,1)}else s[0]===n&&this.#t.delete(i)}}this.notify({type:"removed",mutation:n})}canRun(n){const i=Ko(n);if(typeof i=="string"){const o=this.#t.get(i)?.find(u=>u.state.status==="pending");return!o||o===n}else return!0}runNext(n){const i=Ko(n);return typeof i=="string"?this.#t.get(i)?.find(o=>o!==n&&o.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){xt.batch(()=>{this.#e.forEach(n=>{this.notify({type:"removed",mutation:n})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(n){const i={exact:!0,...n};return this.getAll().find(s=>jp(i,s))}findAll(n={}){return this.getAll().filter(i=>jp(n,i))}notify(n){xt.batch(()=>{this.listeners.forEach(i=>{i(n)})})}resumePausedMutations(){const n=this.getAll().filter(i=>i.state.isPaused);return xt.batch(()=>Promise.all(n.map(i=>i.continue().catch(an))))}};function Ko(n){return n.options.scope?.id}var XR=class extends El{constructor(n={}){super(),this.config=n,this.#e=new Map}#e;build(n,i,s){const o=i.queryKey,u=i.queryHash??ed(o,i);let f=this.get(u);return f||(f=new VR({client:n,queryKey:o,queryHash:u,options:n.defaultQueryOptions(i),state:s,defaultOptions:n.getQueryDefaults(o)}),this.add(f)),f}add(n){this.#e.has(n.queryHash)||(this.#e.set(n.queryHash,n),this.notify({type:"added",query:n}))}remove(n){const i=this.#e.get(n.queryHash);i&&(n.destroy(),i===n&&this.#e.delete(n.queryHash),this.notify({type:"removed",query:n}))}clear(){xt.batch(()=>{this.getAll().forEach(n=>{this.remove(n)})})}get(n){return this.#e.get(n)}getAll(){return[...this.#e.values()]}find(n){const i={exact:!0,...n};return this.getAll().find(s=>Bp(i,s))}findAll(n={}){const i=this.getAll();return Object.keys(n).length>0?i.filter(s=>Bp(n,s)):i}notify(n){xt.batch(()=>{this.listeners.forEach(i=>{i(n)})})}onFocus(){xt.batch(()=>{this.getAll().forEach(n=>{n.onFocus()})})}onOnline(){xt.batch(()=>{this.getAll().forEach(n=>{n.onOnline()})})}},FR=class{#e;#t;#n;#a;#i;#r;#o;#s;constructor(n={}){this.#e=n.queryCache||new XR,this.#t=n.mutationCache||new IR,this.#n=n.defaultOptions||{},this.#a=new Map,this.#i=new Map,this.#r=0}mount(){this.#r++,this.#r===1&&(this.#o=Vv.subscribe(async n=>{n&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#s=gl.subscribe(async n=>{n&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#r--,this.#r===0&&(this.#o?.(),this.#o=void 0,this.#s?.(),this.#s=void 0)}isFetching(n){return this.#e.findAll({...n,fetchStatus:"fetching"}).length}isMutating(n){return this.#t.findAll({...n,status:"pending"}).length}getQueryData(n){const i=this.defaultQueryOptions({queryKey:n});return this.#e.get(i.queryHash)?.state.data}ensureQueryData(n){const i=this.defaultQueryOptions(n),s=this.#e.build(this,i),o=s.state.data;return o===void 0?this.fetchQuery(n):(n.revalidateIfStale&&s.isStaleByTime(Cf(i.staleTime,s))&&this.prefetchQuery(i),Promise.resolve(o))}getQueriesData(n){return this.#e.findAll(n).map(({queryKey:i,state:s})=>{const o=s.data;return[i,o]})}setQueryData(n,i,s){const o=this.defaultQueryOptions({queryKey:n}),f=this.#e.get(o.queryHash)?.state.data,d=AR(i,f);if(d!==void 0)return this.#e.build(this,o).setData(d,{...s,manual:!0})}setQueriesData(n,i,s){return xt.batch(()=>this.#e.findAll(n).map(({queryKey:o})=>[o,this.setQueryData(o,i,s)]))}getQueryState(n){const i=this.defaultQueryOptions({queryKey:n});return this.#e.get(i.queryHash)?.state}removeQueries(n){const i=this.#e;xt.batch(()=>{i.findAll(n).forEach(s=>{i.remove(s)})})}resetQueries(n,i){const s=this.#e;return xt.batch(()=>(s.findAll(n).forEach(o=>{o.reset()}),this.refetchQueries({type:"active",...n},i)))}cancelQueries(n,i={}){const s={revert:!0,...i},o=xt.batch(()=>this.#e.findAll(n).map(u=>u.cancel(s)));return Promise.all(o).then(an).catch(an)}invalidateQueries(n,i={}){return xt.batch(()=>(this.#e.findAll(n).forEach(s=>{s.invalidate()}),n?.refetchType==="none"?Promise.resolve():this.refetchQueries({...n,type:n?.refetchType??n?.type??"active"},i)))}refetchQueries(n,i={}){const s={...i,cancelRefetch:i.cancelRefetch??!0},o=xt.batch(()=>this.#e.findAll(n).filter(u=>!u.isDisabled()&&!u.isStatic()).map(u=>{let f=u.fetch(void 0,s);return s.throwOnError||(f=f.catch(an)),u.state.fetchStatus==="paused"?Promise.resolve():f}));return Promise.all(o).then(an)}fetchQuery(n){const i=this.defaultQueryOptions(n);i.retry===void 0&&(i.retry=!1);const s=this.#e.build(this,i);return s.isStaleByTime(Cf(i.staleTime,s))?s.fetch(i):Promise.resolve(s.state.data)}prefetchQuery(n){return this.fetchQuery(n).then(an).catch(an)}fetchInfiniteQuery(n){return n.behavior=Yp(n.pages),this.fetchQuery(n)}prefetchInfiniteQuery(n){return this.fetchInfiniteQuery(n).then(an).catch(an)}ensureInfiniteQueryData(n){return n.behavior=Yp(n.pages),this.ensureQueryData(n)}resumePausedMutations(){return gl.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(n){this.#n=n}setQueryDefaults(n,i){this.#a.set(br(n),{queryKey:n,defaultOptions:i})}getQueryDefaults(n){const i=[...this.#a.values()],s={};return i.forEach(o=>{wr(n,o.queryKey)&&Object.assign(s,o.defaultOptions)}),s}setMutationDefaults(n,i){this.#i.set(br(n),{mutationKey:n,defaultOptions:i})}getMutationDefaults(n){const i=[...this.#i.values()],s={};return i.forEach(o=>{wr(n,o.mutationKey)&&Object.assign(s,o.defaultOptions)}),s}defaultQueryOptions(n){if(n._defaulted)return n;const i={...this.#n.queries,...this.getQueryDefaults(n.queryKey),...n,_defaulted:!0};return i.queryHash||(i.queryHash=ed(i.queryKey,i)),i.refetchOnReconnect===void 0&&(i.refetchOnReconnect=i.networkMode!=="always"),i.throwOnError===void 0&&(i.throwOnError=!!i.suspense),!i.networkMode&&i.persister&&(i.networkMode="offlineFirst"),i.queryFn===td&&(i.enabled=!1),i}defaultMutationOptions(n){return n?._defaulted?n:{...this.#n.mutations,...n?.mutationKey&&this.getMutationDefaults(n.mutationKey),...n,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},KR=S.createContext(void 0),ZR=({client:n,children:i})=>(S.useEffect(()=>(n.mount(),()=>{n.unmount()}),[n]),K.jsx(KR.Provider,{value:n,children:i}));const JR=new FR;function WR({children:n}){return K.jsx(ZR,{"data-hercules-id":"src/components/providers/query-client.tsx:14:4","data-hercules-name":"ReactQueryClientProvider",client:JR,children:n})}function eA({children:n}){return K.jsx(xR,{"data-hercules-id":"src/components/providers/default.tsx:13:4","data-hercules-name":"AuthProvider",children:K.jsx(W_,{"data-hercules-id":"src/components/providers/default.tsx:14:6","data-hercules-name":"ConvexProviderWithAuth",client:hx,useAuth:n1,children:K.jsx(WR,{"data-hercules-id":"src/components/providers/default.tsx:15:8","data-hercules-name":"QueryClientProvider",children:K.jsx(SR,{"data-hercules-id":"src/components/providers/default.tsx:16:10","data-hercules-name":"TooltipProvider",children:K.jsxs(rx,{"data-hercules-id":"src/components/providers/default.tsx:17:12","data-hercules-name":"ThemeProvider",attribute:"class",defaultTheme:"system",enableSystem:!0,children:[K.jsx(M1,{"data-hercules-id":"src/components/providers/default.tsx:18:14","data-hercules-name":"Toaster"}),n]})})})})})}function tA(){const n=S.useRef(!1);S.useEffect(()=>
61{if(!("serviceWorker"in navigator))return;const i=()=>{n.current||(n.current=!0,b1("A new version is available!",{duration:1/0,action:{label:"Refresh",onClick:()=>window.location.reload()}}))};navigator.serviceWorker.register("/sw.js").then(s=>{if(console.log("Service Worker registered:",s),s.waiting){i();return}s.addEventListener("updatefound",()=>{const o=s.installing;o&&o.addEventListener("statechange",()=>{o.state==="installed"&&navigator.serviceWorker.controller&&i()})})}).catch(s=>console.log("Service Worker registration failed:",s))},[])}const nA="#0e0b05",$p="linear-gradient(135deg, #b8860b 0%, #ffd700 30%, #fffacd 52%, #ffd700 72%, #b8860b 100%)",Ip="linear-gradient(90deg, #b8860b 0%, #ffd700 35%, #fffacd 55%, #ffd700 75%, #b8860b 100%)",iA=[{badge:"HOT PROMO",title:"Gates Of Olympus x1000 — 100,000 Coin",price:"Rp 90.000",original:"Rp 145.000",sold:76,remaining:24},{badge:"LIMIT BERBATAS",title:"Mahjong Ways 2 — 10,000 Coin",price:"Rp 9.000",original:"Rp 25.000",sold:45,remaining:55}];function aA({ctaUrl:n}){return K.jsxs("section",{"data-hercules-id":"src/pages/_components/FlashPromo.tsx:28:4","data-hercules-name":"section",className:"px-4 py-6",children:[K.jsx("h2",{"data-hercules-id":"src/pages/_components/FlashPromo.tsx:29:6","data-hercules-name":"h2",className:"text-center text-xl uppercase tracking-widest font-extrabold mb-5",style:{background:Ip,WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",filter:"drop-shadow(0 0 8px rgba(255,215,0,0.3))"},children:"⚡ FLASH PROMO"}),K.jsx("div",{"data-hercules-id":"src/pages/_components/FlashPromo.tsx:41:6","data-hercules-name":"div",className:"flex flex-col gap-4",children:iA.map(i=>K.jsxs("div",{"data-hercules-id":"src/pages/_components/FlashPromo.tsx:43:10","data-hercules-name":"div",className:"p-5 flex items-center justify-between gap-4",style:{clipPath:"polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px))",background:`linear-gradient(135deg, ${nA}, #1c1408)`,border:"1.5px solid rgba(184,134,11,0.6)",boxShadow:"0 0 18px rgba(255,215,0,0.07)"},children:[K.jsxs("div",{"data-hercules-id":"src/pages/_components/FlashPromo.tsx:54:12","data-hercules-name":"div",className:"flex-1 min-w-0",children:[K.jsx("span",{"data-hercules-id":"src/pages/_components/FlashPromo.tsx:55:14","data-hercules-name":"span",className:"text-[10px] bg-red-700 text-white font-black px-2 py-0.5 tracking-widest uppercase mb-2 inline-block",children:i.badge}),K.jsx("h3",{"data-hercules-id":"src/pages/_components/FlashPromo.tsx:58:14","data-hercules-name":"h3",className:"font-black text-sm uppercase text-white tracking-wide leading-tight mb-3",children:i.title}),K.jsxs("div",{"data-hercules-id":"src/pages/_components/FlashPromo.tsx:61:14","data-hercules-name":"div",className:"flex items-baseline gap-2 mb-3",children:[K.jsx("span",{"data-hercules-id":"src/pages/_components/FlashPromo.tsx:62:16","data-hercules-name":"span",className:"text-xl font-black",style:{background:Ip,WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent"},children:i.price}),K.jsx("span",{"data-hercules-id":"src/pages/_components/FlashPromo.tsx:72:16","data-hercules-name":"span",className:"text-xs text-slate-500 line-through",children:i.original})]}),K.jsxs("div",{"data-hercules-id":"src/pages/_components/FlashPromo.tsx:76:14","data-hercules-name":"div",children:[K.jsxs("div",{"data-hercules-id":"src/pages/_components/FlashPromo.tsx:77:16","data-hercules-name":"div",className:"flex justify-between text-[10px] text-slate-400 mb-1 font-mono",children:[K.jsxs("span",{"data-hercules-id":"src/pages/_components/FlashPromo.tsx:78:18","data-hercules-name":"span",children:["TERJUAL ",i.sold,"%"]}),K.jsxs("span",{"data-hercules-id":"src/pages/_components/FlashPromo.tsx:79:18","data-hercules-name":"span",children:["SISA ",i.remaining," UNIT"]})]}),K.jsx("div",{"data-hercules-id":"src/pages/_components/FlashPromo.tsx:81:16","data-hercules-name":"div",className:"w-full h-1.5",style:{background:"#050301",border:"1px solid rgba(184,134,11,0.3)"},children:K.jsx("div",{"data-hercules-id":"src/pages/_components/FlashPromo.tsx:88:18","data-hercules-name":"div",className:"h-full",style:{width:`${i.sold}%`,background:$p,boxShadow:"0 0 8px rgba(255,215,0,0.5)"}})})]})]}),K.jsx("a",{"data-hercules-id":"src/pages/_components/FlashPromo.tsx:99:12","data-hercules-name":"a",href:n,target:"_blank",rel:"noopener noreferrer",className:"font-black text-xs uppercase tracking-widest py-3 px-5 shrink-0 cursor-pointer",style:{clipPath:"pol
61ygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px))",background:$p,color:"#1a0e00",boxShadow:"0 0 12px rgba(255,215,0,0.35)"},children:"AMBIL"})]},i.title))})]})}const Zo="https://grouplangit.com/viplinkmax",Xp="#0e0b05",Fp="linear-gradient(135deg, #b8860b 0%, #ffd700 30%, #fffacd 52%, #ffd700 72%, #b8860b 100%)",af="linear-gradient(90deg, #b8860b 0%, #ffd700 35%, #fffacd 55%, #ffd700 75%, #b8860b 100%)",Kp="⚡ TOPUP INSTANT · AMAN & TERPERCAYA · HARGA TERMURAH · PROSES OTOMATIS · 24/7 ONLINE · MULTI-PAYMENT · ";function sA(){return K.jsxs("div",{"data-hercules-id":"src/pages/Index.tsx:15:4","data-hercules-name":"div",className:"min-h-screen text-slate-100 antialiased flex flex-col",style:{background:"#050301"},children:[K.jsxs("nav",{"data-hercules-id":"src/pages/Index.tsx:20:6","data-hercules-name":"nav",className:"px-4 py-2 flex items-center justify-between sticky top-0 z-50 border-b",style:{background:"rgba(5,3,1,0.97)",borderColor:"rgba(255,215,0,0.35)",boxShadow:"0 4px 24px rgba(184,134,11,0.2)"},children:[K.jsx("img",{"data-hercules-id":"src/pages/Index.tsx:29:8","data-hercules-name":"img",src:"https://i.postimg.cc/KYJwDynp/max77-listed.png",alt:"MAX77",className:"h-10 object-contain"}),K.jsx("a",{"data-hercules-id":"src/pages/Index.tsx:34:8","data-hercules-name":"a",href:Zo,target:"_blank",rel:"noopener noreferrer",className:"font-black text-xs tracking-widest uppercase px-4 py-2 cursor-pointer",style:{clipPath:"polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px))",background:Fp,color:"#1a0e00",boxShadow:"0 0 14px rgba(255,215,0,0.5)"},children:"⚡ GAS TOP UP"})]}),K.jsxs("div",{"data-hercules-id":"src/pages/Index.tsx:51:6","data-hercules-name":"div",className:"relative w-full",children:[K.jsx("img",{"data-hercules-id":"src/pages/Index.tsx:52:8","data-hercules-name":"img",src:"https://i.postimg.cc/3xS57Mfs/topup.webp",alt:"Top Up Game Terlengkap",className:"w-full object-cover",style:{maxHeight:"480px",objectPosition:"top"}}),K.jsx("div",{"data-hercules-id":"src/pages/Index.tsx:58:8","data-hercules-name":"div",className:"absolute bottom-0 left-0 right-0 h-28",style:{background:"linear-gradient(to top, #050301, transparent)"}})]}),K.jsxs("div",{"data-hercules-id":"src/pages/Index.tsx:65:6","data-hercules-name":"div",className:"flex gap-3 px-4 py-4",id:"topup",children:[K.jsx("a",{"data-hercules-id":"src/pages/Index.tsx:66:8","data-hercules-name":"a",href:Zo,target:"_blank",rel:"noopener noreferrer",className:"flex-1 text-center font-black text-sm tracking-widest uppercase py-3 cursor-pointer",style:{clipPath:"polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px))",background:Fp,color:"#1a0e00",boxShadow:"0 0 18px rgba(255,215,0,0.4)"},children:"⚡ TOP UP SEKARANG"}),K.jsx("a",{"data-hercules-id":"src/pages/Index.tsx:80:8","data-hercules-name":"a",href:Zo,target:"_blank",rel:"noopener noreferrer",className:"flex-1 text-center font-black text-sm tracking-widest uppercase py-3 cursor-pointer",style:{clipPath:"polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px))",background:"transparent",border:"2px solid #b8860b",boxShadow:"0 0 10px rgba(255,215,0,0.15) inset"},children:K.jsx("span",{"data-hercules-id":"src/pages/Index.tsx:92:10","data-hercules-name":"span",style:{background:af,WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent"},children:"💬 HUBUNGI CS"})})]}),K.jsx("div",{"data-hercules-id":"src/pages/Index.tsx:105:6","data-hercules-name":"div",className:"overflow-hidden border-y py-2",style:{borderColor:"rgba(255,215,0,0.2)",background:Xp},children:K.jsxs("div",{"data-hercules-id":"src/pages/Index.tsx:109:8","data-hercules-name":"div",className:"whitespace-nowrap font-black text-xs tracking-widest uppercase",style:{display:"inline-block",animation:"marquee 18s linear infinite",background:af,WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent"},children:[Kp,Kp]})}),K.jsx(aA,{"data-hercules-id":"src/pages/Index.tsx:124:6","data-hercules-name":"FlashPromo",ctaUrl:Zo}),K.jsx("footer",{"data-hercules-id":"src/pages/Index.tsx:127:6","data-hercules-name":"footer",className:"border-t py-4 text-center text-[11px] tracking-widest font-bold uppercase mt-auto",style:{background:Xp,borderColor:"rgba(255,215,0,0.25)"},children:K.jsxs("span",{"data-hercules-id":"src/pages/Index.tsx:131:8","data-hercules-name":"span",style:{background:af,WebkitBackgroun
61dClip:"text",WebkitTextFillColor:"transparent"},children:["© ",new Date().getFullYear()," MAX77 OFFICIAL"]})}),K.jsx("style",{"data-hercules-id":"src/pages/Index.tsx:142:6","data-hercules-name":"style",children:`
62        @keyframes marquee {
63          0% { transform: translateX(0); }
64          100% { transform: translateX(-50%); }
65        }
66      `})]})}const Zp=n=>typeof n=="boolean"?`${n}`:n===0?"0":n,Jp=Ov,rA=(n,i)=>s=>{var o;if(i?.variants==null)return Jp(n,s?.class,s?.className);const{variants:u,defaultVariants:f}=i,d=Object.keys(u).map(h=>{const v=s?.[h],y=f?.[h];if(v===null)return null;const w=Zp(v)||Zp(y);return u[h][w]}),m=s&&Object.entries(s).reduce((h,v)=>{let[y,w]=v;return w===void 0||(h[y]=w),h},{}),g=i==null||(o=i.compoundVariants)===null||o===void 0?void 0:o.reduce((h,v)=>{let{class:y,className:w,..._}=v;return Object.entries(_).every(E=>{let[k,A]=E;return Array.isArray(A)?A.includes({...f,...m}[k]):{...f,...m}[k]===A})?[...h,y,w]:h},[]);return Jp(n,d,g,s?.class,s?.className)},oA=rA("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive cursor-pointer disabled:cursor-auto",{variants:{variant:{default:"bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",destructive:"bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9"}},defaultVariants:{variant:"default",size:"default"}});function lA({className:n,variant:i,size:s,asChild:o=!1,...u}){const f=o?D1:"button";return K.jsx(f,{"data-hercules-id":"src/components/ui/button.tsx:51:4","data-hercules-name":"Comp","data-slot":"button",className:wR(oA({variant:i,size:s,className:n})),...u})}function uA(){const n=ki();return S.useEffect(()=>{console.error("404 Error: User attempted to access non-existent route:",n.pathname)},[n.pathname]),K.jsx("div",{"data-hercules-id":"src/pages/NotFound.tsx:17:4","data-hercules-name":"div",className:"min-h-screen flex items-center justify-center bg-background",children:K.jsxs("div",{"data-hercules-id":"src/pages/NotFound.tsx:18:6","data-hercules-name":"div",className:"text-center space-y-6",children:[K.jsxs("div",{"data-hercules-id":"src/pages/NotFound.tsx:19:8","data-hercules-name":"div",className:"space-y-2",children:[K.jsx("h1",{"data-hercules-id":"src/pages/NotFound.tsx:20:10","data-hercules-name":"h1",className:"text-6xl font-bold text-muted-foreground",children:"404"}),K.jsx("h2",{"data-hercules-id":"src/pages/NotFound.tsx:21:10","data-hercules-name":"h2",className:"text-2xl font-semibold",children:"Page Not Found"})]}),K.jsx("p",{"data-hercules-id":"src/pages/NotFound.tsx:23:8","data-hercules-name":"p",className:"text-lg text-muted-foreground max-w-md mx-auto",children:"This page does not exist."}),K.jsx("div",{"data-hercules-id":"src/pages/NotFound.tsx:26:8","data-hercules-name":"div",className:"pt-4",children:K.jsx(lA,{"data-hercules-id":"src/pages/NotFound.tsx:27:10","data-hercules-name":"Button",asChild:!0,children:K.jsx(Lf,{"data-hercules-id":"src/pages/NotFound.tsx:28:12","data-hercules-name":"Link",to:"/",children:"Return to Home"})})})]})})}function cA(){return tA(),K.jsx(eA,{"data-hercules-id":"src/App.tsx:11:4","data-hercules-name":"DefaultProviders",children:K.jsx(_S,{"data-hercules-id":"src/App.tsx:12:6","data-hercules-name":"BrowserRouter",children:K.jsxs(Ww,{"data-hercules-id":"src/App.tsx:13:8","data-hercules-name":"Routes",children:[K.jsx(rf,{"data-hercules-id":"src/App.tsx:14:10","data-hercules-name":"Route",path:"/",element:K.jsx(sA,{"data-hercules-id":"src/App.tsx:14:35","data-hercules-name":"Index"})}),K.jsx(rf,{"data-hercules-id":"src/App.tsx:16:10","data-hercules-name":"Route",path:"*",element:K.jsx(uA,{"data-hercules-id":"src/App.tsx:16:35","data-hercules-name":"NotFound"})})]})})})}lw.createRoot(document.getElementById("root")).render(K.jsx(cA,{"data-hercules-id":"src/main.tsx:5:52","data-hercules-name":"App"}));

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.