PageSourceSearch

https://it-reality-check.base44.app/assets/index-BGhKbJG3.js

js it-reality-check.base44.app collected 2026-10-03 03:14:57 UTC 433,291 bytes, 234 lines download raw bytes

vendor: 6,254 bytes, lines 1-9
1var Hh=r=>{throw TypeError(r)};var Au=(r,n,s)=>n.has(r)||Hh("Cannot "+s);var S=(r,n,s)=>(Au(r,n,"read from private field"),s?s.call(r):n.get(r)),he=(r,n,s)=>n.has(r)?Hh("Cannot add the same private member more than once"):n instanceof WeakSet?n.add(r):n.set(r,s),J=(r,n,s,i)=>(Au(r,n,"write to private field"),i?i.call(r,s):n.set(r,s),s),Ne=(r,n,s)=>(Au(r,n,"access private method"),s);var da=(r,n,s,i)=>({set _(l){J(r,n,l,s)},get _(){return S(r,n,i)}});function v0(r,n){for(var s=0;s<n.length;s++){const i=n[s];if(typeof i!="string"&&!Array.isArray(i)){for(const l in i)if(l!=="default"&&!(l in r)){const u=Object.getOwnPropertyDescriptor(i,l);u&&Object.defineProperty(r,l,u.get?u:{enumerable:!0,get:()=>i[l]})}}}return Object.freeze(Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}))}(function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))i(l);new MutationObserver(l=>{for(const u of l)if(u.type==="childList")for(const d of u.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&i(d)}).observe(document,{childList:!0,subtree:!0});function s(l){const u={};return l.integrity&&(u.integrity=l.integrity),l.referrerPolicy&&(u.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?u.credentials="include":l.crossOrigin==="anonymous"?u.credentials="omit":u.credentials="same-origin",u}function i(l){if(l.ep)return;l.ep=!0;const u=s(l);fetch(l.href,u)}})();function Rm(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var Ou={exports:{}},Co={},Iu={exports:{}},Ee={};/**
2 * @license React
3 * react.production.min.js
4 *
5 * Copyright (c) Facebook, Inc. and its 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 Vh;function w0(){if(Vh)return Ee;Vh=1;var r=Symbol.for("react.element"),n=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),u=Symbol.for("react.provider"),d=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),w=Symbol.iterator;function T(N){return N===null||typeof N!="object"?null:(N=w&&N[w]||N["@@iterator"],typeof N=="function"?N:null)}var F={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},C=Object.assign,_={};function b(N,U,pe){this.props=N,this.context=U,this.refs=_,this.updater=pe||F}b.prototype.isReactComponent={},b.prototype.setState=function(N,U){if(typeof N!="object"&&typeof N!="function"&&N!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,N,U,"setState")},b.prototype.forceUpdate=function(N){this.updater.enqueueForceUpdate(this,N,"forceUpdate")};function j(){}j.prototype=b.prototype;function B(N,U,pe){this.props=N,this.context=U,this.refs=_,this.updater=pe||F}var I=B.prototype=new j;I.constructor=B,C(I,b.prototype),I.isPureReactComponent=!0;var M=Array.isArray,Q=Object.prototype.hasOwnProperty,se={current:null},ie={key:!0,ref:!0,__self:!0,__source:!0};function z(N,U,pe){var de,ae={},fe=null,je=null;if(U!=null)for(de in U.ref!==void 0&&(je=U.ref),U.key!==void 0&&(fe=""+U.key),U)Q.call(U,de)&&!ie.hasOwnProperty(de)&&(ae[de]=U[de]);var Ce=arguments.length-2;if(Ce===1)ae.children=pe;else if(1<Ce){for(var we=Array(Ce),Ge=0;Ge<Ce;Ge++)we[Ge]=arguments[Ge+2];ae.children=we}if(N&&N.defaultProps)for(de in Ce=N.defaultProps,Ce)ae[de]===void 0&&(ae[de]=Ce[de]);return{$$typeof:r,type:N,key:fe,ref:je,props:ae,_owner:se.current}}function Y(N,U){return{$$typeof:r,type:N.type,key:U,ref:N.ref,props:N.props,_owner:N._owner}}function le(N){return typeof N=="object"&&N!==null&&N.$$typeof===r}function K(N){var U={"=":"=0",":":"=2"};return"$"+N.replace(/[=:]/g,function(pe){return U[pe]})}var be=/\/+/g;function ye(N,U){return typeof N=="object"&&N!==null&&N.key!=null?K(""+N.key):U.toString(36)}function ve(N,U,pe,de,ae){var fe=typeof N;(fe==="undefined"||fe==="boolean")&&(N=null);var je=!1;if(N===null)je=!0;else switch(fe){case"string":case"number":je=!0;break;case"object":switch(N.$$typeof){case r:case n:je=!0}}if(je)return je=N,ae=ae(je),N=de===""?"."+ye(je,0):de,M(ae)?(pe="",N!=null&&(pe=N.replace(be,"$&/")+"/"),ve(ae,U,pe,"",function(Ge){return Ge})):ae!=null&&(le(ae)&&(ae=Y(ae,pe+(!ae.key||je&&je.key===ae.key?"":(""+ae.key).replace(be,"$&/")+"/")+N)),U.push(ae)),1;if(je=0,de=de===""?".":de+":",M(N))for(var Ce=0;Ce<N.length;Ce++){fe=N[Ce];var we=de+ye(fe,Ce);je+=ve(fe,U,pe,we,ae)}else if(we=T(N),typeof we=="function")for(N=we.call(N),Ce=0;!(fe=N.next()).done;)fe=fe.value,we=de+ye(fe,Ce++),je+=ve(fe,U,pe,we,ae);else if(fe==="object")throw U=String(N),Error("Objects are not valid as a React child (found: "+(U==="[object Object]"?"object with keys {"+Object.keys(N).join(", ")+"}":U)+"). If you meant to render a collection of children, use an array instead.");return je}function ke(N,U,pe){if(N==null)return N;var de=[],ae=0;return ve(N,de,"","",function(fe){return U.call(pe,fe,ae++)}),de}function xe(N){if(N._status===-1){var U=N._result;U=U(),U.then(function(pe){(N._status===0||N._status===-1)&&(N._status=1,N._result=pe)},function(pe){(N._status===0||N._status===-1)&&(N._status=2,N._result=pe)}),N._status===-1&&(N._status=0,N._result=U)}if(N._status===1)return N._result.default;throw N._result}var _e={current:null},H={transition:null},Z={ReactCurrentDispatcher:_e,ReactCurrentBatchConfig:H,ReactCurrentOwner:se};function D(){throw Error("act(...) is not supported in production builds of React.")}return Ee.Children={map:ke,forEach:function(N,U,pe){ke(N,function(){U.apply(this,arguments)},pe)},count:function(N){var U=0;return ke(N,function(){U++}),U},toArray:function(N){return ke(N,function(U){return U})||[]},only:function(N){if(!le(N))throw Error("React.Children.only expected to receive a single React element child.");return N}},Ee.Component=b,Ee.Fragment=s,Ee.Profiler=l,Ee.PureComponent=B,Ee.StrictMode=i,Ee.Suspense=m,Ee.__SECRET_INT
vendor: 5,758 bytes, lines 9-25
9ERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Z,Ee.act=D,Ee.cloneElement=function(N,U,pe){if(N==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+N+".");var de=C({},N.props),ae=N.key,fe=N.ref,je=N._owner;if(U!=null){if(U.ref!==void 0&&(fe=U.ref,je=se.current),U.key!==void 0&&(ae=""+U.key),N.type&&N.type.defaultProps)var Ce=N.type.defaultProps;for(we in U)Q.call(U,we)&&!ie.hasOwnProperty(we)&&(de[we]=U[we]===void 0&&Ce!==void 0?Ce[we]:U[we])}var we=arguments.length-2;if(we===1)de.children=pe;else if(1<we){Ce=Array(we);for(var Ge=0;Ge<we;Ge++)Ce[Ge]=arguments[Ge+2];de.children=Ce}return{$$typeof:r,type:N.type,key:ae,ref:fe,props:de,_owner:je}},Ee.createContext=function(N){return N={$$typeof:d,_currentValue:N,_currentValue2:N,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},N.Provider={$$typeof:u,_context:N},N.Consumer=N},Ee.createElement=z,Ee.createFactory=function(N){var U=z.bind(null,N);return U.type=N,U},Ee.createRef=function(){return{current:null}},Ee.forwardRef=function(N){return{$$typeof:p,render:N}},Ee.isValidElement=le,Ee.lazy=function(N){return{$$typeof:v,_payload:{_status:-1,_result:N},_init:xe}},Ee.memo=function(N,U){return{$$typeof:g,type:N,compare:U===void 0?null:U}},Ee.startTransition=function(N){var U=H.transition;H.transition={};try{N()}finally{H.transition=U}},Ee.unstable_act=D,Ee.useCallback=function(N,U){return _e.current.useCallback(N,U)},Ee.useContext=function(N){return _e.current.useContext(N)},Ee.useDebugValue=function(){},Ee.useDeferredValue=function(N){return _e.current.useDeferredValue(N)},Ee.useEffect=function(N,U){return _e.current.useEffect(N,U)},Ee.useId=function(){return _e.current.useId()},Ee.useImperativeHandle=function(N,U,pe){return _e.current.useImperativeHandle(N,U,pe)},Ee.useInsertionEffect=function(N,U){return _e.current.useInsertionEffect(N,U)},Ee.useLayoutEffect=function(N,U){return _e.current.useLayoutEffect(N,U)},Ee.useMemo=function(N,U){return _e.current.useMemo(N,U)},Ee.useReducer=function(N,U,pe){return _e.current.useReducer(N,U,pe)},Ee.useRef=function(N){return _e.current.useRef(N)},Ee.useState=function(N){return _e.current.useState(N)},Ee.useSyncExternalStore=function(N,U,pe){return _e.current.useSyncExternalStore(N,U,pe)},Ee.useTransition=function(){return _e.current.useTransition()},Ee.version="18.3.1",Ee}var Wh;function Pc(){return Wh||(Wh=1,Iu.exports=w0()),Iu.exports}/**
10 * @license React
11 * react-jsx-runtime.production.min.js
12 *
13 * Copyright (c) Facebook, Inc. and its 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 Qh;function x0(){if(Qh)return Co;Qh=1;var r=Pc(),n=Symbol.for("react.element"),s=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,l=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,u={key:!0,ref:!0,__self:!0,__source:!0};function d(p,m,g){var v,w={},T=null,F=null;g!==void 0&&(T=""+g),m.key!==void 0&&(T=""+m.key),m.ref!==void 0&&(F=m.ref);for(v in m)i.call(m,v)&&!u.hasOwnProperty(v)&&(w[v]=m[v]);if(p&&p.defaultProps)for(v in m=p.defaultProps,m)w[v]===void 0&&(w[v]=m[v]);return{$$typeof:n,type:p,key:T,ref:F,props:w,_owner:l.current}}return Co.Fragment=s,Co.jsx=d,Co.jsxs=d,Co}var Yh;function b0(){return Yh||(Yh=1,Ou.exports=x0()),Ou.exports}var h=b0(),A=Pc();const k0=Rm(A),jm=v0({__proto__:null,default:k0},[A]);var fa={},Lu={exports:{}},_t={},Mu={exports:{}},Du={};/**
18 * @license React
19 * scheduler.production.min.js
20 *
21 * Copyright (c) Facebook, Inc. and its 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 Kh;function S0(){return Kh||(Kh=1,(function(r){function n(H,Z){var D=H.length;H.push(Z);e:for(;0<D;){var N=D-1>>>1,U=H[N];if(0<l(U,Z))H[N]=Z,H[D]=U,D=N;else break e}}function s(H){return H.length===0?null:H[0]}function i(H){if(H.length===0)return null;var Z=H[0],D=H.pop();if(D!==Z){H[0]=D;e:for(var N=0,U=H.length,pe=U>>>1;N<pe;){var de=2*(N+1)-1,ae=H[de],fe=de+1,je=H[fe];if(0>l(ae,D))fe<U&&0>l(je,ae)?(H[N]=je,H[fe]=D,N=fe):(H[N]=ae,H[de]=D,N=de);else if(fe<U&&0>l(je,D))H[N]=je,H[fe]=D,N=fe;else break e}}return Z}function l(H,Z){var D=H.sortIndex-Z.sortIndex;return D!==0?D:H.id-Z.id}if(typeof performance=="object"&&typeof performance.now=="function"){var u=performance;r.unstable_now=function(){return u.now()}}else{var d=Date,p=d.now();r.unstable_now=function(){return d.now()-p}}var m=[],g=[],v=1,w=null,T=3,F=!1,C=!1,_=!1,b=typeof setTimeout=="function"?setTimeout:null,j=typeof clearTimeout=="function"?clearTimeout:null,B=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function I(H){for(var Z=s(g);Z!==null;){if(Z.callback===null)i(g);else if(Z.startTime<=H)i(g),Z.sortIndex=Z.expirationTime,n(m,Z);else break;Z=s(g)}}function M(H){if(_=!1,I(H),!C)if(s(m)!==null)C=!0,xe(Q);else{var Z=s(g);Z!==null&&_e(M,Z.startTime-H)}}function Q(H,Z){C=!1,_&&(_=!1,j(z),z=-1),F=!0;var D=T;try{for(I(Z),w=s(m);w!==null&&(!(w.expirationTime>Z)||H&&!K());){var N=w.callback;if(typeof N=="function"){w.callback=null,T=w.priorityLevel;var U=N(w.expirationTime<=Z);Z=r.unstable_now(),typeof U=="function"?w.callback=U:w===s(m)&&i(m),I(Z)}else i(m);w=s(m)}if(w!==null)var pe=!0;else{var de=s(g);de!==null&&_e(M,de.startTime-Z),pe=!1}return pe}finally{w=null,T=D,F=!1}}var se=!1,ie=null,z=-1,Y=5,le=-1;function K(){return!(r.unstable_now()-le<Y)}function be(){if(ie!==null){var H=r.unstable_now();le=H;var Z=!0;try{Z=ie(!0,H)}finally{Z?ye():(se=!1,ie=null)}}else se=!1}var ye;
vendor: 49,658 bytes, lines 25-38
25if(typeof B=="function")ye=function(){B(be)};else if(typeof MessageChannel<"u"){var ve=new MessageChannel,ke=ve.port2;ve.port1.onmessage=be,ye=function(){ke.postMessage(null)}}else ye=function(){b(be,0)};function xe(H){ie=H,se||(se=!0,ye())}function _e(H,Z){z=b(function(){H(r.unstable_now())},Z)}r.unstable_IdlePriority=5,r.unstable_ImmediatePriority=1,r.unstable_LowPriority=4,r.unstable_NormalPriority=3,r.unstable_Profiling=null,r.unstable_UserBlockingPriority=2,r.unstable_cancelCallback=function(H){H.callback=null},r.unstable_continueExecution=function(){C||F||(C=!0,xe(Q))},r.unstable_forceFrameRate=function(H){0>H||125<H?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Y=0<H?Math.floor(1e3/H):5},r.unstable_getCurrentPriorityLevel=function(){return T},r.unstable_getFirstCallbackNode=function(){return s(m)},r.unstable_next=function(H){switch(T){case 1:case 2:case 3:var Z=3;break;default:Z=T}var D=T;T=Z;try{return H()}finally{T=D}},r.unstable_pauseExecution=function(){},r.unstable_requestPaint=function(){},r.unstable_runWithPriority=function(H,Z){switch(H){case 1:case 2:case 3:case 4:case 5:break;default:H=3}var D=T;T=H;try{return Z()}finally{T=D}},r.unstable_scheduleCallback=function(H,Z,D){var N=r.unstable_now();switch(typeof D=="object"&&D!==null?(D=D.delay,D=typeof D=="number"&&0<D?N+D:N):D=N,H){case 1:var U=-1;break;case 2:U=250;break;case 5:U=1073741823;break;case 4:U=1e4;break;default:U=5e3}return U=D+U,H={id:v++,callback:Z,priorityLevel:H,startTime:D,expirationTime:U,sortIndex:-1},D>N?(H.sortIndex=D,n(g,H),s(m)===null&&H===s(g)&&(_?(j(z),z=-1):_=!0,_e(M,D-N))):(H.sortIndex=U,n(m,H),C||F||(C=!0,xe(Q))),H},r.unstable_shouldYield=K,r.unstable_wrapCallback=function(H){var Z=T;return function(){var D=T;T=Z;try{return H.apply(this,arguments)}finally{T=D}}}})(Du)),Du}var Gh;function _0(){return Gh||(Gh=1,Mu.exports=S0()),Mu.exports}/**
26 * @license React
27 * react-dom.production.min.js
28 *
29 * Copyright (c) Facebook, Inc. and its 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 Jh;function E0(){if(Jh)return _t;Jh=1;var r=Pc(),n=_0();function s(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,o=1;o<arguments.length;o++)t+="&args[]="+encodeURIComponent(arguments[o]);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."}var i=new Set,l={};function u(e,t){d(e,t),d(e+"Capture",t)}function d(e,t){for(l[e]=t,e=0;e<t.length;e++)i.add(t[e])}var p=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),m=Object.prototype.hasOwnProperty,g=/^[: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]*$/,v={},w={};function T(e){return m.call(w,e)?!0:m.call(v,e)?!1:g.test(e)?w[e]=!0:(v[e]=!0,!1)}function F(e,t,o,a){if(o!==null&&o.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return a?!1:o!==null?!o.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function C(e,t,o,a){if(t===null||typeof t>"u"||F(e,t,o,a))return!0;if(a)return!1;if(o!==null)switch(o.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function _(e,t,o,a,c,f,y){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=a,this.attributeNamespace=c,this.mustUseProperty=o,this.propertyName=e,this.type=t,this.sanitizeURL=f,this.removeEmptyString=y}var b={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){b[e]=new _(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];b[t]=new _(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){b[e]=new _(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){b[e]=new _(e,2,!1,e,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){b[e]=new _(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){b[e]=new _(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){b[e]=new _(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){b[e]=new _(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){b[e]=new _(e,5,!1,e.toLowerCase(),null,!1,!1)});var j=/[\-:]([a-z])/g;function B(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(j,B);b[t]=new _(t,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(j,B);b[t]=new _(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(j,B);b[t]=new _(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){b[e]=new _(e,1,!1,e.toLowerCase(),null,!1,!1)}),b.xlinkHref=new _("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){b[e]=new _(e,1,!1,e.toLowerCase(),null,!0,!0)});function I(e,t,o,a){var c=b.hasOwnProperty(t)?b[t]:null;(c!==null?c.type!==0:a||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(C(t,o,c,a)&&(o=null),a||c===null?T(t)&&(o===null?e.removeAttribute(t):e.setAttribute(t,""+o)):c.mustUseProperty?e[c.propertyName]=o===null?c.type===3?!1:"":o:(t=c.attributeName,a=c.attributeNamespace,o===null?e.removeAttribute(t):(c=c.type,o=c===3||c===4&&o===!0?"":""+o,a?e.setAttributeNS(a,t,o):e.setAttribute(t,o))))}var M=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Q=Symbol.for("react.element"),se=Symbol.for("react.portal"),ie=Symbol.for("react.fragment"),z=Symbol.for("react.strict_mode"),Y=Symbol.for("react.profiler"),le=Symbol.for("react.provider"),K=Symbol.for("react.context"),be=Symbol.for("react.forward_ref"),ye=Symbol.for("react.suspense"),ve=Symbol.for("react.suspense_list"),ke=Symbol.for("react.memo"),xe=Symbol.for("react.lazy"),_e=Symbol.for("react.offscreen"),H=Symbol.iterator;function Z(e){return e===null||typeof e!="object"?null:(e=H&&e[H]||e["@@iterator"],typeof e=="function"?e:null)}var D=Object.assign,N;function U(e){if(N===void 0)try{throw Error()}catch(o){var t=o.stack.trim().match(/\n( *(at )?)/);N=t&&t[1]||""}return`
34`+N+e}var pe=!1;function de(e,t){if(!e||pe)return"";pe=!0;var o=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(O){var a=O}Reflect.construct(e,[],t)}else{try{t.call()}catch(O){a=O}e.call(t.prototype)}else{try{throw Error()}catch(O){a=O}e()}}catch(O){if(O&&a&&typeof O.stack=="string"){for(var c=O.stack.split(`
35`),f=a.stack.split(`
36`),y=c.length-1,x=f.length-1;1<=y&&0<=x&&c[y]!==f[x];)x--;for(;1<=y&&0<=x;y--,x--)if(c[y]!==f[x]){if(y!==1||x!==1)do if(y--,x--,0>x||c[y]!==f[x]){var k=`
37`+c[y].replace(" at new "," at ");return e.displayName&&k.includes("<anonymous>")&&(k=k.replace("<anonymous>",e.displayName)),k}while(1<=y&&0<=x);break}}}finally{pe=!1,Error.prepareStackTrace=o}return(e=e?e.displayName||e.name:"")?U(e):""}function ae(e){switch(e.tag){case 5:return U(e.type);case 16:return U("Lazy");case 13:return U("Suspense");case 19:return U("SuspenseList");case 0:case 2:case 15:return e=de(e.type,!1),e;case 11:return e=de(e.type.render,!1),e;case 1:return e=de(e.type,!0),e;default:return""}}function fe(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case ie:return"Fragment";case se:return"Portal";case Y:return"Profiler";case z:return"StrictMode";case ye:return"Suspense";case ve:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case K:return(e.displayName||"Context")+".Consumer";case le:return(e._context.displayName||"Context")+".Provider";case be:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ke:return t=e.displayName||null,t!==null?t:fe(e.type)||"Memo";case xe:t=e._payload,e=e._init;try{return fe(e(t))}catch{}}return null}function je(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return fe(t);case 8:return t===z?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Ce(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function we(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Ge(e){var t=we(e)?"checked":"value",o=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),a=""+e[t];if(!e.hasOwnProperty(t)&&typeof o<"u"&&typeof o.get=="function"&&typeof o.set=="function"){var c=o.get,f=o.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return c.call(this)},set:function(y){a=""+y,f.call(this,y)}}),Object.defineProperty(e,t,{enumerable:o.enumerable}),{getValue:function(){return a},setValue:function(y){a=""+y},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ot(e){e._valueTracker||(e._valueTracker=Ge(e))}function rn(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var o=t.getValue(),a="";return e&&(a=we(e)?e.checked?"true":"false":e.value),e=a,e!==o?(t.setValue(e),!0):!1}function Ht(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}}function Vt(e,t){var o=t.checked;return D({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:o??e._wrapperState.initialChecked})}function Ds(e,t){var o=t.defaultValue==null?"":t.defaultValue,a=t.checked!=null?t.checked:t.defaultChecked;o=Ce(t.value!=null?t.value:o),e._wrapperState={initialChecked:a,initialValue:o,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Fs(e,t){t=t.checked,t!=null&&I(e,"checked",t,!1)}function Wr(e,t){Fs(e,t);var o=Ce(t.value),a=t.type;if(o!=null)a==="number"?(o===0&&e.value===""||e.value!=o)&&(e.value=""+o):e.value!==""+o&&(e.value=""+o);else if(a==="submit"||a==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Qr(e,t.type,o):t.hasOwnProperty("defaultValue")&&Qr(e,t.type,Ce(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Us(e,t,o){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var a=t.type;if(!(a!=="submit"&&a!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,o||t===e.value||(e.value=t),e.defaultValue=t}o=e.name,o!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,o!==""&&(e.name=o)}function Qr(e,t,o){(t!=="number"||Ht(e.ownerDocument)!==e)&&(o==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+o&&(e.defaultValue=""+o))}var Pn=Array.isArray;function yn(e,t,o,a){if(e=e.options,t){t={};for(var c=0;c<o.length;c++)t["$"+o[c]]=!0;for(o=0;o<e.length;o++)c=t.hasOwnProperty("$"+e[o].value),e[o].selected!==c&&(e[o].selected=c),c&&a&&(e[o].defaultSelected=!0)}else{for(o=""+Ce(o),t=null,c=0;c<e.length;c++){if(e[c].value===o){e[c].selected=!0,a&&(e[c].defaultSelected=!0);return}t!==null||e[c].disabled||(t=e[c])}t!==null&&(t.selected=!0)}}function Yr(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(s(91));return D({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function zs(e,t){var o=t.value;if(o==null){if(o=t.children,t=t.defaultValue,o!=null){if(t!=null)throw Error(s(92));if(Pn(o)){if(1<o.length)throw Error(s(93));o=o[0]}t=o}t==null&&(t=""),o=t}e._wrapperState={initialValue:Ce(o)}}function ti(e,t){var o=Ce(t.value),a=Ce(t.defaultValue);o!=null&&(o=""+o,o!==e.value&&(e.value=o),t.defaultValue==null&&e.defaultValue!==o&&(e.defaultValue=o)),a!=null&&(e.defaultValue=""+a)}function ni(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function nd(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function qa(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?nd(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var ri,rd=(function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,o,a,c){MSApp.execUnsafeLocalFunction(function(){return e(t,o,a,c)})}:e})(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(ri=ri||document.createElement("div"),ri.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ri.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Bs(e,t){if(t){var o=e.firstChild;if(o&&o===e.lastChild&&o.nodeType===3){o.nodeValue=t;return}}e.textContent=t}var $s={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},kg=["Webkit","ms","Moz","O"];Object.keys($s).forEach(function(e){kg.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),$s[t]=$s[e]})});function sd(e,t,o){return t==null||typeof t=="boolean"||t===""?"":o||typeof t!="number"||t===0||$s.hasOwnProperty(e)&&$s[e]?(""+t).trim():t+"px"}function od(e,t){e=e.style;for(var o in t)if(t.hasOwnProperty(o)){var a=o.indexOf("--")===0,c=sd(o,t[o],a);o==="float"&&(o="cssFloat"),a?e.setProperty(o,c):e[o]=c}}var Sg=D({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Ha(e,t){if(t){if(Sg[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(s(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(s(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(s(61))}if(t.style!=null&&typeof t.style!="object")throw Error(s(62))}}function Va(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";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 Wa=null;function Qa(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ya=null,Kr=null,Gr=null;function id(e){if(e=co(e)){if(typeof Ya!="function")throw Error(s(280));var t=e.stateNode;t&&(t=Ci(t),Ya(e.stateNode,e.type,t))}}function ad(e){Kr?Gr?Gr.push(e):Gr=[e]:Kr=e}function ld(){if(Kr){var e=Kr,t=Gr;if(Gr=Kr=null,id(e),t)for(e=0;e<t.length;e++)id(t[e])}}function ud(e,t){return e(t)}function cd(){}var Ka=!1;function dd(e,t,o){if(Ka)return e(t,o);Ka=!0;try{return ud(e,t,o)}finally{Ka=!1,(Kr!==null||Gr!==null)&&(cd(),ld())}}function qs(e,t){var o=e.stateNode;if(o===null)return null;var a=Ci(o);if(a===null)return null;o=a[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":(a=!a.disabled)||(e=e.type,a=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!a;break e;default:e=!1}if(e)return null;if(o&&typeof o!="function")throw Error(s(231,t,typeof o));return o}var Ga=!1;if(p)try{var Hs={};Object.defineProperty(Hs,"passive",{get:function(){Ga=!0}}),window.addEventListener("test",Hs,Hs),window.removeEventListener("test",Hs,Hs)}catch{Ga=!1}function _g(e,t,o,a,c,f,y,x,k){var O=Array.prototype.slice.call(arguments,3);try{t.apply(o,O)}catch(q){this.onError(q)}}var Vs=!1,si=null,oi=!1,Ja=null,Eg={onError:function(e){Vs=!0,si=e}};function Cg(e,t,o,a,c,f,y,x,k){Vs=!1,si=null,_g.apply(Eg,arguments)}function Ng(e,t,o,a,c,f,y,x,k){if(Cg.apply(this,arguments),Vs){if(Vs){var O=si;Vs=!1,si=null}else throw Error(s(198));oi||(oi=!0,Ja=O)}}function pr(e){var t=e,o=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(o=t.return),e=t.return;while(e)}return t.tag===3?o:null}function fd(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 hd(e){if(pr(e)!==e)throw Error(s(188))}function Tg(e){var t=e.alternate;if(!t){if(t=pr(e),t===null)throw Error(s(188));return t!==e?null:e}for(var o=e,a=t;;){var c=o.return;if(c===null)break;var f=c.alternate;if(f===null){if(a=c.return,a!==null){o=a;continue}break}if(c.child===f.child){for(f=c.child;f;){if(f===o)return hd(c),e;if(f===a)return hd(c),t;f=f.sibling}throw Error(s(188))}if(o.return!==a.return)o=c,a=f;else{for(var y=!1,x=c.child;x;){if(x===o){y=!0,o=c,a=f;break}if(x===a){y=!0,a=c,o=f;break}x=x.sibling}if(!y){for(x=f.child;x;){if(x===o){y=!0,o=f,a=c;break}if(x===a){y=!0,a=f,o=c;break}x=x.sibling}if(!y)throw Error(s(189))}}if(o.alternate!==a)throw Error(s(190))}if(o.tag!==3)throw Error(s(188));return o.stateNode.current===o?e:t}function pd(e){return e=Tg(e),e!==null?md(e):null}function md(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=md(e);if(t!==null)return t;e=e.sibling}return null}var yd=n.unstable_scheduleCallback,gd=n.unstable_cancelCallback,Rg=n.unstable_shouldYield,jg=n.unstable_requestPaint,He=n.unstable_now,Pg=n.unstable_getCurrentPriorityLevel,Xa=n.unstable_ImmediatePriority,vd=n.unstable_UserBlockingPriority,ii=n.unstable_NormalPriority,Ag=n.unstable_LowPriority,wd=n.unstable_IdlePriority,ai=null,sn=null;function Og(e){if(sn&&typeof sn.onCommitFiberRoot=="function")try{sn.onCommitFiberRoot(ai,e,void 0,(e.current.flags&128)===128)}catch{}}var Wt=Math.clz32?Math.clz32:Mg,Ig=Math.log,Lg=Math.LN2;function Mg(e){return e>>>=0,e===0?32:31-(Ig(e)/Lg|0)|0}var li=64,ui=4194304;function Ws(e){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:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function ci(e,t){var o=e.pendingLanes;if(o===0)return 0;var a=0,c=e.suspendedLanes,f=e.pingedLanes,y=o&268435455;if(y!==0){var x=y&~c;x!==0?a=Ws(x):(f&=y,f!==0&&(a=Ws(f)))}else y=o&~c,y!==0?a=Ws(y):f!==0&&(a=Ws(f));if(a===0)return 0;if(t!==0&&t!==a&&(t&c)===0&&(c=a&-a,f=t&-t,c>=f||c===16&&(f&4194240)!==0))return t;if((a&4)!==0&&(a|=o&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=a;0<t;)o=31-Wt(t),c=1<<o,a|=e[o],t&=~c;return a}function Dg(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64: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:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Fg(e,t){for(var o=e.suspendedLanes,a=e.pingedLanes,c=e.expirationTimes,f=e.pendingLanes;0<f;){var y=31-Wt(f),x=1<<y,k=c[y];k===-1?((x&o)===0||(x&a)!==0)&&(c[y]=Dg(x,t)):k<=t&&(e.expiredLanes|=x),f&=~x}}function Za(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function xd(){var e=li;return li<<=1,(li&4194240)===0&&(li=64),e}function el(e){for(var t=[],o=0;31>o;o++)t.push(e);return t}function Qs(e,t,o){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Wt(t),e[t]=o}function Ug(e,t){var o=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var a=e.eventTimes;for(e=e.expirationTimes;0<o;){var c=31-Wt(o),f=1<<c;t[c]=0,a[c]=-1,e[c]=-1,o&=~f}}function tl(e,t){var o=e.entangledLanes|=t;for(e=e.entanglements;o;){var a=31-Wt(o),c=1<<a;c&t|e[a]&t&&(e[a]|=t),o&=~c}}var Ie=0;function bd(e){return e&=-e,1<e?4<e?(e&268435455)!==0?16:536870912:4:1}var kd,nl,Sd,_d,Ed,rl=!1,di=[],An=null,On=null,In=null,Ys=new Map,Ks=new Map,Ln=[],zg="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 submit".split(" ");function Cd(e,t){switch(e){case"focusin":case"focusout":An=null;break;case"dragenter":case"dragleave":On=null;break;case"mouseover":case"mouseout":In=null;break;case"pointerover":case"pointerout":Ys.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ks.delete(t.pointerId)}}function Gs(e,t,o,a,c,f){return e===null||e.nativeEvent!==f?(e={blockedOn:t,domEventName:o,eventSystemFlags:a,nativeEvent:f,targetContainers:[c]},t!==null&&(t=co(t),t!==null&&nl(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,c!==null&&t.indexOf(c)===-1&&t.push(c),e)}function Bg(e,t,o,a,c){switch(t){case"focusin":return An=Gs(An,e,t,o,a,c),!0;case"dragenter":return On=Gs(On,e,t,o,a,c),!0;case"mouseover":return In=Gs(In,e,t,o,a,c),!0;case"pointerover":var f=c.pointerId;return Ys.set(f,Gs(Ys.get(f)||null,e,t,o,a,c)),!0;case"gotpointercapture":return f=c.pointerId,Ks.set(f,Gs(Ks.get(f)||null,e,t,o,a,c)),!0}return!1}function Nd(e){var t=mr(e.target);if(t!==null){var o=pr(t);if(o!==null){if(t=o.tag,t===13){if(t=fd(o),t!==null){e.blockedOn=t,Ed(e.priority,function(){Sd(o)});return}}else if(t===3&&o.stateNode.current.memoizedState.isDehydrated){e.blockedOn=o.tag===3?o.stateNode.containerInfo:null;return}}}e.blockedOn=null}function fi(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var o=ol(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(o===null){o=e.nativeEvent;var a=new o.constructor(o.type,o);Wa=a,o.target.dispatchEvent(a),Wa=null}else return t=co(o),t!==null&&nl(t),e.blockedOn=o,!1;t.shift()}return!0}function Td(e,t,o){fi(e)&&o.delete(t)}function $g(){rl=!1,An!==null&&fi(An)&&(An=null),On!==null&&fi(On)&&(On=null),In!==null&&fi(In)&&(In=null),Ys.forEach(Td),Ks.forEach(Td)}function Js(e,t){e.blockedOn===t&&(e.blockedOn=null,rl||(rl=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,$g)))}function Xs(e){function t(c){return Js(c,e)}if(0<di.length){Js(di[0],e);for(var o=1;o<di.length;o++){var a=di[o];a.blockedOn===e&&(a.blockedOn=null)}}for(An!==null&&Js(An,e),On!==null&&Js(On,e),In!==null&&Js(In,e),Ys.forEach(t),Ks.forEach(t),o=0;o<Ln.length;o++)a=Ln[o],a.blockedOn===e&&(a.blockedOn=null);for(;0<Ln.length&&(o=Ln[0],o.blockedOn===null);)Nd(o),o.blockedOn===null&&Ln.shift()}var Jr=M.ReactCurrentBatchConfig,hi=!0;function qg(e,t,o,a){var c=Ie,f=Jr.transition;Jr.transition=null;try{Ie=1,sl(e,t,o,a)}finally{Ie=c,Jr.transition=f}}function Hg(e,t,o,a){var c=Ie,f=Jr.transition;Jr.transition=null;try{Ie=4,sl(e,t,o,a)}finally{Ie=c,Jr.transition=f}}function sl(e,t,o,a){if(hi){var c=ol(e,t,o,a);if(c===null)kl(e,t,a,pi,o),Cd(e,a);else if(Bg(c,e,t,o,a))a.stopPropagation();else if(Cd(e,a),t&4&&-1<zg.indexOf(e)){for(;c!==null;){var f=co(c);if(f!==null&&kd(f),f=ol(e,t,o,a),f===null&&kl(e,t,a,pi,o),f===c)break;c=f}c!==null&&a.stopPropagation()}else kl(e,t,a,null,o)}}var pi=null;function ol(e,t,o,a){if(pi=null,e=Qa(a),e=mr(e),e!==null)if(t=pr(e),t===null)e=null;else if(o=t.tag,o===13){if(e=fd(t),e!==null)return e;e=null}else if(o===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return pi=e,null}function Rd(e){switch(e){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"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 1;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"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Pg()){case Xa:return 1;case vd:return 4;case ii:case Ag:return 16;case wd:return 536870912;default:return 16}default:return 16}}var Mn=null,il=null,mi=null;function jd(){if(mi)return mi;var e,t=il,o=t.length,a,c="value"in Mn?Mn.value:Mn.textContent,f=c.length;for(e=0;e<o&&t[e]===c[e];e++);var y=o-e;for(a=1;a<=y&&t[o-a]===c[f-a];a++);return mi=c.slice(e,1<a?1-a:void 0)}function yi(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 gi(){return!0}function Pd(){return!1}function Rt(e){function t(o,a,c,f,y){this._reactName=o,this._targetInst=c,this.type=a,this.nativeEvent=f,this.target=y,this.currentTarget=null;for(var x in e)e.hasOwnProperty(x)&&(o=e[x],this[x]=o?o(f):f[x]);return this.isDefaultPrevented=(f.defaultPrevented!=null?f.defaultPrevented:f.returnValue===!1)?gi:Pd,this.isPropagationStopped=Pd,this}return D(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var o=this.nativeEvent;o&&(o.preventDefault?o.preventDefault():typeof o.returnValue!="unknown"&&(o.returnValue=!1),this.isDefaultPrevented=gi)},stopPropagation:function(){var o=this.nativeEvent;o&&(o.stopPropagation?o.stopPropagation():typeof o.cancelBubble!="unknown"&&(o.cancelBubble=!0),this.isPropagationStopped=gi)},persist:function(){},isPersistent:gi}),t}var Xr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},al=Rt(Xr),Zs=D({},Xr,{view:0,detail:0}),Vg=Rt(Zs),ll,ul,eo,vi=D({},Zs,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:dl,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!==eo&&(eo&&e.type==="mousemove"?(ll=e.screenX-eo.screenX,ul=e.screenY-eo.screenY):ul=ll=0,eo=e),ll)},movementY:function(e){return"movementY"in e?e.movementY:ul}}),Ad=Rt(vi),Wg=D({},vi,{dataTransfer:0}),Qg=Rt(Wg),Yg=D({},Zs,{relatedTarget:0}),cl=Rt(Yg),Kg=D({},Xr,{animationName:0,elapsedTime:0,pseudoElement:0}),Gg=Rt(Kg),Jg=D({},Xr,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Xg=Rt(Jg),Zg=D({},Xr,{data:0}),Od=Rt(Zg),ev={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},tv={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"},nv={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function rv(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=nv[e])?!!t[e]:!1}function dl(){return rv}var sv=D({},Zs,{key:function(e){if(e.key){var t=ev[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=yi(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?tv[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:dl,charCode:function(e){return e.type==="keypress"?yi(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?yi(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),ov=Rt(sv),iv=D({},vi,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Id=Rt(iv),av=D({},Zs,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:dl}),lv=Rt(av),uv=D({},Xr,{propertyName:0,elapsedTime:0,pseudoElement:0}),cv=Rt(uv),dv=D({},vi,{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}),fv=Rt(dv),hv=[9,13,27,32],fl=p&&"CompositionEvent"in window,to=null;p&&"documentMode"in document&&(to=document.documentMode);var pv=p&&"TextEvent"in window&&!to,Ld=p&&(!fl||to&&8<to&&11>=to),Md=" ",Dd=!1;function Fd(e,t){switch(e){case"keyup":return hv.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ud(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Zr=!1;function mv(e,t){switch(e){case"compositionend":return Ud(t);case"keypress":return t.which!==32?null:(Dd=!0,Md);case"textInput":return e=t.data,e===Md&&Dd?null:e;default:return null}}function yv(e,t){if(Zr)return e==="compositionend"||!fl&&Fd(e,t)?(e=jd(),mi=il=Mn=null,Zr=!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 Ld&&t.locale!=="ko"?null:t.data;default:return null}}var gv={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 zd(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!gv[e.type]:t==="textarea"}function Bd(e,t,o,a){ad(a),t=Si(t,"onChange"),0<t.length&&(o=new al("onChange","change",null,o,a),e.push({event:o,listeners:t}))}var no=null,ro=null;function vv(e){of(e,0)}function wi(e){var t=ss(e);if(rn(t))return e}function wv(e,t){if(e==="change")return t}var $d=!1;if(p){var hl;if(p){var pl="oninput"in document;if(!pl){var qd=document.createElement("div");qd.setAttribute("oninput","return;"),pl=typeof qd.oninput=="function"}hl=pl}else hl=!1;$d=hl&&(!document.documentMode||9<document.documentMode)}function Hd(){no&&(no.detachEvent("onpropertychange",Vd),ro=no=null)}function Vd(e){if(e.propertyName==="value"&&wi(ro)){var t=[];Bd(t,ro,e,Qa(e)),dd(vv,t)}}function xv(e,t,o){e==="focusin"?(Hd(),no=t,ro=o,no.attachEvent("onpropertychange",Vd)):e==="focusout"&&Hd()}function bv(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return wi(ro)}function kv(e,t){if(e==="click")return wi(t)}function Sv(e,t){if(e==="input"||e==="change")return wi(t)}function _v(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Qt=typeof Object.is=="function"?Object.is:_v;function so(e,t){if(Qt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var o=Object.keys(e),a=Object.keys(t);if(o.length!==a.length)return!1;for(a=0;a<o.length;a++){var c=o[a];if(!m.call(t,c)||!Qt(e[c],t[c]))return!1}return!0}function Wd(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Qd(e,t){var o=Wd(e);e=0;for(var a;o;){if(o.nodeType===3){if(a=e+o.textContent.length,e<=t&&a>=t)return{node:o,offset:t-e};e=a}e:{for(;o;){if(o.nextSibling){o=o.nextSibling;break e}o=o.parentNode}o=void 0}o=Wd(o)}}function Yd(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Yd(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Kd(){for(var e=window,t=Ht();t instanceof e.HTMLIFrameElement;){try{var o=typeof t.contentWindow.location.href=="string"}catch{o=!1}if(o)e=t.contentWindow;else break;t=Ht(e.document)}return t}function ml(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")}function Ev(e){var t=Kd(),o=e.focusedElem,a=e.selectionRange;if(t!==o&&o&&o.ownerDocument&&Yd(o.ownerDocument.documentElement,o)){if(a!==null&&ml(o)){if(t=a.start,e=a.end,e===void 0&&(e=t),"selectionStart"in o)o.selectionStart=t,o.selectionEnd=Math.min(e,o.value.length);else if(e=(t=o.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var c=o.textContent.length,f=Math.min(a.start,c);a=a.end===void 0?f:Math.min(a.end,c),!e.extend&&f>a&&(c=a,a=f,f=c),c=Qd(o,f);var y=Qd(o,a);c&&y&&(e.rangeCount!==1||e.anchorNode!==c.node||e.anchorOffset!==c.offset||e.focusNode!==y.node||e.focusOffset!==y.offset)&&(t=t.createRange(),t.setStart(c.node,c.offset),e.removeAllRanges(),f>a?(e.addRange(t),e.extend(y.node,y.offset)):(t.setEnd(y.node,y.offset),e.addRange(t)))}}for(t=[],e=o;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof o.focus=="function"&&o.focus(),o=0;o<t.length;o++)e=t[o],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var Cv=p&&"documentMode"in document&&11>=document.documentMode,es=null,yl=null,oo=null,gl=!1;function Gd(e,t,o){var a=o.window===o?o.document:o.nodeType===9?o:o.ownerDocument;gl||es==null||es!==Ht(a)||(a=es,"selectionStart"in a&&ml(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),oo&&so(oo,a)||(oo=a,a=Si(yl,"onSelect"),0<a.length&&(t=new al("onSelect","select",null,t,o),e.push({event:t,listeners:a}),t.target=es)))}function xi(e,t){var o={};return o[e.toLowerCase()]=t.toLowerCase(),o["Webkit"+e]="webkit"+t,o["Moz"+e]="moz"+t,o}var ts={animationend:xi("Animation","AnimationEnd"),animationiteration:xi("Animation","AnimationIteration"),animationstart:xi("Animation","AnimationStart"),transitionend:xi("Transition","TransitionEnd")},vl={},Jd={};p&&(Jd=document.createElement("div").style,"AnimationEvent"in window||(delete ts.animationend.animation,delete ts.animationiteration.animation,delete ts.animationstart.animation),"TransitionEvent"in window||delete ts.transitionend.transition);function bi(e){if(vl[e])return vl[e];if(!ts[e])return e;var t=ts[e],o;for(o in t)if(t.hasOwnProperty(o)&&o in Jd)return vl[e]=t[o];return e}var Xd=bi("animationend"),Zd=bi("animationiteration"),ef=bi("animationstart"),tf=bi("transitionend"),nf=new Map,rf="abort auxClick 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(" ");function Dn(e,t){nf.set(e,t),u(t,[e])}for(var wl=0;wl<rf.length;wl++){var xl=rf[wl],Nv=xl.toLowerCase(),Tv=xl[0].toUpperCase()+xl.slice(1);Dn(Nv,"on"+Tv)}Dn(Xd,"onAnimationEnd"),Dn(Zd,"onAnimationIteration"),Dn(ef,"onAnimationStart"),Dn("dblclick","onDoubleClick"),Dn("focusin","onFocus"),Dn("focusout","onBlur"),Dn(tf,"onTransitionEnd"),d("onMouseEnter",["mouseout","mouseover"]),d("onMouseLeave",["mouseout","mouseover"]),d("onPointerEnter",["pointerout","pointerover"]),d("onPointerLeave",["pointerout","pointerover"]),u("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),u("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),u("onBeforeInput",["compositionend","keypress","textInput","paste"]),u("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),u("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),u("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var io="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(" "),Rv=new Set("cancel close invalid load scroll toggle".split(" ").concat(io));function sf(e,t,o){var a=e.type||"unknown-event";e.currentTarget=o,Ng(a,t,void 0,e),e.currentTarget=null}function of(e,t){t=(t&4)!==0;for(var o=0;o<e.length;o++){var a=e[o],c=a.event;a=a.listeners;e:{var f=void 0;if(t)for(var y=a.length-1;0<=y;y--){var x=a[y],k=x.instance,O=x.currentTarget;if(x=x.listener,k!==f&&c.isPropagationStopped())break e;sf(c,x,O),f=k}else for(y=0;y<a.length;y++){if(x=a[y],k=x.instance,O=x.currentTarget,x=x.listener,k!==f&&c.isPropagationStopped())break e;sf(c,x,O),f=k}}}if(oi)throw e=Ja,oi=!1,Ja=null,e}function De(e,t){var o=t[Tl];o===void 0&&(o=t[Tl]=new Set);var a=e+"__bubble";o.has(a)||(af(t,e,2,!1),o.add(a))}function bl(e,t,o){var a=0;t&&(a|=4),af(o,e,a,t)}var ki="_reactListening"+Math.random().toString(36).slice(2);function ao(e){if(!e[ki]){e[ki]=!0,i.forEach(function(o){o!=="selectionchange"&&(Rv.has(o)||bl(o,!1,e),bl(o,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[ki]||(t[ki]=!0,bl("selectionchange",!1,t))}}function af(e,t,o,a){switch(Rd(t)){case 1:var c=qg;break;case 4:c=Hg;break;default:c=sl}o=c.bind(null,t,o,e),c=void 0,!Ga||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(c=!0),a?c!==void 0?e.addEventListener(t,o,{capture:!0,passive:c}):e.addEventListener(t,o,!0):c!==void 0?e.addEventListener(t,o,{passive:c}):e.addEventListener(t,o,!1)}function kl(e,t,o,a,c){var f=a;if((t&1)===0&&(t&2)===0&&a!==null)e:for(;;){if(a===null)return;var y=a.tag;if(y===3||y===4){var x=a.stateNode.containerInfo;if(x===c||x.nodeType===8&&x.parentNode===c)break;if(y===4)for(y=a.return;y!==null;){var k=y.tag;if((k===3||k===4)&&(k=y.stateNode.containerInfo,k===c||k.nodeType===8&&k.parentNode===c))return;y=y.return}for(;x!==null;){if(y=mr(x),y===null)return;if(k=y.tag,k===5||k===6){a=f=y;continue e}x=x.parentNode}}a=a.return}dd(function(){var O=f,q=Qa(o),V=[];e:{var $=nf.get(e);if($!==void 0){var G=al,ee=e;switch(e){case"keypress":if(yi(o)===0)break e;case"keydown":case"keyup":G=ov;break;case"focusin":ee="focus",G=cl;break;case"focusout":ee="blur",G=cl;break;case"beforeblur":case"afterblur":G=cl;break;case"click":if(o.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":G=Ad;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":G=Qg;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":G=lv;break;case Xd:case Zd:case ef:G=Gg;break;case tf:G=cv;break;case"scroll":G=Vg;break;case"wheel":G=fv;break;case"copy":case"cut":case"paste":G=Xg;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":G=Id}var re=(t&4)!==0,Ve=!re&&e==="scroll",R=re?$!==null?$+"Capture":null:$;re=[];for(var E=O,P;E!==null;){P=E;var W=P.stateNode;if(P.tag===5&&W!==null&&(P=W,R!==null&&(W=qs(E,R),W!=null&&re.push(lo(E,W,P)))),Ve)break;E=E.return}0<re.length&&($=new G($,ee,null,o,q),V.push({event:$,listeners:re}))}}if((t&7)===0){e:{if($=e==="mouseover"||e==="pointerover",G=e==="mouseout"||e==="pointerout",$&&o!==Wa&&(ee=o.relatedTarget||o.fromElement)&&(mr(ee)||ee[gn]))break e;if((G||$)&&($=q.window===q?q:($=q.ownerDocument)?$.defaultView||$.parentWindow:window,G?(ee=o.relatedTarget||o.toElement,G=O,ee=ee?mr(ee):null,ee!==null&&(Ve=pr(ee),ee!==Ve||ee.tag!==5&&ee.tag!==6)&&(ee=null)):(G=null,ee=O),G!==ee)){if(re=Ad,W="onMouseLeave",R="onMouseEnter",E="mouse",(e==="pointerout"||e==="pointerover")&&(re=Id,W="onPointerLeave",R="onPointerEnter",E="pointer"),Ve=G==null?$:ss(G),P=ee==null?$:ss(ee),$=new re(W,E+"leave",G,o,q),$.target=Ve,$.relatedTarget=P,W=null,mr(q)===O&&(re=new re(R,E+"enter",ee,o,q),re.target=P,re.relatedTarget=Ve,W=re),Ve=W,G&&ee)t:{for(re=G,R=ee,E=0,P=re;P;P=ns(P))E++;for(P=0,W=R;W;W=ns(W))P++;for(;0<E-P;)re=ns(re),E--;for(;0<P-E;)R=ns(R),P--;for(;E--;){if(re===R||R!==null&&re===R.alternate)break t;re=ns(re),R=ns(R)}re=null}else re=null;G!==null&&lf(V,$,G,re,!1),ee!==null&&Ve!==null&&lf(V,Ve,ee,re,!0)}}e:{if($=O?ss(O):window,G=$.nodeName&&$.nodeName.toLowerCase(),G==="select"||G==="input"&&$.type==="file")var oe=wv;else if(zd($))if($d)oe=Sv;else{oe=bv;var ue=xv}else(G=$.nodeName)&&G.toLowerCase()==="input"&&($.type==="checkbox"||$.type==="radio")&&(oe=kv);if(oe&&(oe=oe(e,O))){Bd(V,oe,o,q);break e}ue&&ue(e,$,O),e==="focusout"&&(ue=$._wrapperState)&&ue.controlled&&$.type==="number"&&Qr($,"number",$.value)}switch(ue=O?ss(O):window,e){case"focusin":(zd(ue)||ue.contentEditable==="true")&&(es=ue,yl=O,oo=null);break;case"focusout":oo=yl=es=null;break;case"mousedown":gl=!0;break;case"contextmenu":case"mouseup":case"dragend":gl=!1,Gd(V,o,q);break;case"selectionchange":if(Cv)break;case"keydown":case"keyup":Gd(V,o,q)}var ce;if(fl)e:{switch(e){case"compositionstart":var ge="onCompositionStart";break e;case"compositionend":ge="onCompositionEnd";break e;case"compositionupdate":ge="onCompositionUpdate";break e}ge=void 0}else Zr?Fd(e,o)&&(ge="onCompositionEnd"):e==="keydown"&&o.keyCode===229&&(ge="onCompositionStart");ge&&(Ld&&o.locale!=="ko"&&(Zr||ge!=="onCompositionStart"?ge==="onCompositionEnd"&&Zr&&(ce=jd()):(Mn=q,il="value"in Mn?Mn.value:Mn.textContent,Zr=!0)),ue=Si(O,ge),0<ue.length&&(ge=new Od(ge,e,null,o,q),V.push({event:ge,listeners:ue}),ce?ge.data=ce:(ce=Ud(o),ce!==null&&(ge.data=ce)))),(ce=pv?mv(e,o):yv(e,o))&&(O=Si(O,"onBeforeInput"),0<O.length&&(q=new Od("onBeforeInput","beforeinput",null,o,q),V.push({event:q,listeners:O}),q.data=ce))}of(V,t)})}function lo(e,t,o){return{instance:e,listener:t,currentTarget:o}}function Si(e,t){for(var o=t+"Capture",a=[];e!==null;){var c=e,f=c.stateNode;c.tag===5&&f!==null&&(c=f,f=qs(e,o),f!=null&&a.unshift(lo(e,f,c)),f=qs(e,t),f!=null&&a.push(lo(e,f,c))),e=e.return}return a}function ns(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function lf(e,t,o,a,c){for(var f=t._reactName,y=[];o!==null&&o!==a;){var x=o,k=x.alternate,O=x.stateNode;if(k!==null&&k===a)break;x.tag===5&&O!==null&&(x=O,c?(k=qs(o,f),k!=null&&y.unshift(lo(o,k,x))):c||(k=qs(o,f),k!=null&&y.push(lo(o,k,x)))),o=o.return}y.length!==0&&e.push({event:t,listeners:y})}var jv=/\r\n?/g,Pv=/\u0000|\uFFFD/g;function uf(e){return(typeof e=="string"?e:""+e).replace(jv,`
38`).replace(Pv,"")}function _i(e,t,o){if(t=uf(t),uf(e)!==t&&o)throw Error(s(425))}function Ei(){}var Sl=null,_l=null;function El(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Cl=typeof setTimeout=="function"?setTimeout:void 0,Av=typeof clearTimeout=="function"?clearTimeout:void 0,cf=typeof Promise=="function"?Promise:void 0,Ov=typeof queueMicrotask=="function"?queueMicrotask:typeof cf<"u"?function(e){return cf.resolve(null).then(e).catch(Iv)}:Cl;function Iv(e){setTimeout(function(){throw e})}function Nl(e,t){var o=t,a=0;do{var c=o.nextSibling;if(e.removeChild(o),c&&c.nodeType===8)if(o=c.data,o==="/$"){if(a===0){e.removeChild(c),Xs(t);return}a--}else o!=="$"&&o!=="$?"&&o!=="$!"||a++;o=c}while(o);Xs(t)}function Fn(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==="$?")break;if(t==="/$")return null}}return e}function df(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var o=e.data;if(o==="$"||o==="$!"||o==="$?"){if(t===0)return e;t--}else o==="/$"&&t++}e=e.previousSibling}return null}var rs=Math.random().toString(36).slice(2),on="__reactFiber$"+rs,uo="__reactProps$"+rs,gn="__reactContainer$"+rs,Tl="__reactEvents$"+rs,Lv="__reactListeners$"+rs,Mv="__reactHandles$"+rs;function mr(e){var t=e[on];if(t)return t;for(var o=e.parentNode;o;){if(t=o[gn]||o[on]){if(o=t.alternate,t.child!==null||o!==null&&o.child!==null)for(e=df(e);e!==null;){if(o=e[on])return o;e=df(e)}return t}e=o,o=e.parentNode}return null}function co(e){return e=e[on]||e[gn],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function ss(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(s(33))}function Ci(e){return e[uo]||null}var Rl=[],os=-1;function Un(e){return{current:e}}function Fe(e){0>os||(e.current=Rl[os],Rl[os]=null,os--)}function Me(e,t){os++,Rl[os]=e.current,e.current=t}var zn={},ct=Un(zn),wt=Un(!1),yr=zn;function is(e,t){var o=e.type.contextTypes;if(!o)return zn;var a=e.stateNode;if(a&&a.__reactInternalMemoizedUnmaskedChildContext===t)return a.__reactInternalMemoizedMaskedChildContext;var c={},f;for(f in o)c[f]=t[f];return a&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=c),c}function xt(e){return e=e.childContextTypes,e!=null}function Ni(){Fe(wt),Fe(ct)}function ff(e,t,o){if(ct.current!==zn)throw Error(s(168));Me(ct,t),Me(wt,o)}function hf(e,t,o){var a=e.stateNode;if(t=t.childContextTypes,typeof a.getChildContext!="function")return o;a=a.getChildContext();for(var c in a)if(!(c in t))throw Error(s(108,je(e)||"Unknown",c));return D({},o,a)}function Ti(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||zn,yr=ct.current,Me(ct,e),Me(wt,wt.current),!0}function pf(e,t,o){var a=e.stateNode;if(!a)throw Error(s(169));o?(e=hf(e,t,yr),a.__reactInternalMemoizedMergedChildContext=e,Fe(wt),Fe(ct),Me(ct,e)):Fe(wt),Me(wt,o)}var vn=null,Ri=!1,jl=!1;
vendor: 5,979 bytes, line 38
38function mf(e){vn===null?vn=[e]:vn.push(e)}function Dv(e){Ri=!0,mf(e)}function Bn(){if(!jl&&vn!==null){jl=!0;var e=0,t=Ie;try{var o=vn;for(Ie=1;e<o.length;e++){var a=o[e];do a=a(!0);while(a!==null)}vn=null,Ri=!1}catch(c){throw vn!==null&&(vn=vn.slice(e+1)),yd(Xa,Bn),c}finally{Ie=t,jl=!1}}return null}var as=[],ls=0,ji=null,Pi=0,It=[],Lt=0,gr=null,wn=1,xn="";function vr(e,t){as[ls++]=Pi,as[ls++]=ji,ji=e,Pi=t}function yf(e,t,o){It[Lt++]=wn,It[Lt++]=xn,It[Lt++]=gr,gr=e;var a=wn;e=xn;var c=32-Wt(a)-1;a&=~(1<<c),o+=1;var f=32-Wt(t)+c;if(30<f){var y=c-c%5;f=(a&(1<<y)-1).toString(32),a>>=y,c-=y,wn=1<<32-Wt(t)+c|o<<c|a,xn=f+e}else wn=1<<f|o<<c|a,xn=e}function Pl(e){e.return!==null&&(vr(e,1),yf(e,1,0))}function Al(e){for(;e===ji;)ji=as[--ls],as[ls]=null,Pi=as[--ls],as[ls]=null;for(;e===gr;)gr=It[--Lt],It[Lt]=null,xn=It[--Lt],It[Lt]=null,wn=It[--Lt],It[Lt]=null}var jt=null,Pt=null,Ue=!1,Yt=null;function gf(e,t){var o=Ut(5,null,null,0);o.elementType="DELETED",o.stateNode=t,o.return=e,t=e.deletions,t===null?(e.deletions=[o],e.flags|=16):t.push(o)}function vf(e,t){switch(e.tag){case 5:var o=e.type;return t=t.nodeType!==1||o.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,jt=e,Pt=Fn(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,jt=e,Pt=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(o=gr!==null?{id:wn,overflow:xn}:null,e.memoizedState={dehydrated:t,treeContext:o,retryLane:1073741824},o=Ut(18,null,null,0),o.stateNode=t,o.return=e,e.child=o,jt=e,Pt=null,!0):!1;default:return!1}}function Ol(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Il(e){if(Ue){var t=Pt;if(t){var o=t;if(!vf(e,t)){if(Ol(e))throw Error(s(418));t=Fn(o.nextSibling);var a=jt;t&&vf(e,t)?gf(a,o):(e.flags=e.flags&-4097|2,Ue=!1,jt=e)}}else{if(Ol(e))throw Error(s(418));e.flags=e.flags&-4097|2,Ue=!1,jt=e}}}function wf(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;jt=e}function Ai(e){if(e!==jt)return!1;if(!Ue)return wf(e),Ue=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!El(e.type,e.memoizedProps)),t&&(t=Pt)){if(Ol(e))throw xf(),Error(s(418));for(;t;)gf(e,t),t=Fn(t.nextSibling)}if(wf(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var o=e.data;if(o==="/$"){if(t===0){Pt=Fn(e.nextSibling);break e}t--}else o!=="$"&&o!=="$!"&&o!=="$?"||t++}e=e.nextSibling}Pt=null}}else Pt=jt?Fn(e.stateNode.nextSibling):null;return!0}function xf(){for(var e=Pt;e;)e=Fn(e.nextSibling)}function us(){Pt=jt=null,Ue=!1}function Ll(e){Yt===null?Yt=[e]:Yt.push(e)}var Fv=M.ReactCurrentBatchConfig;function fo(e,t,o){if(e=o.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(o._owner){if(o=o._owner,o){if(o.tag!==1)throw Error(s(309));var a=o.stateNode}if(!a)throw Error(s(147,e));var c=a,f=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===f?t.ref:(t=function(y){var x=c.refs;y===null?delete x[f]:x[f]=y},t._stringRef=f,t)}if(typeof e!="string")throw Error(s(284));if(!o._owner)throw Error(s(290,e))}return e}function Oi(e,t){throw e=Object.prototype.toString.call(t),Error(s(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function bf(e){var t=e._init;return t(e._payload)}function kf(e){function t(R,E){if(e){var P=R.deletions;P===null?(R.deletions=[E],R.flags|=16):P.push(E)}}function o(R,E){if(!e)return null;for(;E!==null;)t(R,E),E=E.sibling;return null}function a(R,E){for(R=new Map;E!==null;)E.key!==null?R.set(E.key,E):R.set(E.index,E),E=E.sibling;return R}function c(R,E){return R=Kn(R,E),R.index=0,R.sibling=null,R}function f(R,E,P){return R.index=P,e?(P=R.alternate,P!==null?(P=P.index,P<E?(R.flags|=2,E):P):(R.flags|=2,E)):(R.flags|=1048576,E)}function y(R){return e&&R.alternate===null&&(R.flags|=2),R}function x(R,E,P,W){return E===null||E.tag!==6?(E=Cu(P,R.mode,W),E.return=R,E):(E=c(E,P),E.return=R,E)}function k(R,E,P,W){var oe=P.type;return oe===ie?q(R,E,P.props.children,W,P.key):E!==null&&(E.elementType===oe||typeof oe=="object"&&oe!==null&&oe.$$typeof===xe&&bf(oe)===E.type)?(W=c(E,P.props),W.ref=fo(R,E,P),W.return=R,W):(W=ra(P.type,P.key,P.props,null,R.mode,W),W.ref=fo(R,E,P),W.return=R,W)}function O(R,E,P,W){return E===null||E.tag!==4||E.stateNode.containerInfo!==P.containerInfo||E.stateNode.implementation!==P.implementation?(E=Nu(P,R.mode,W),E.return=R,E):(E=c(E,P.children||[]),E.return=R,E)}function q(R,E,P,W,oe){return E===null||E.tag!==7?(E=Cr(P,R.mode,W,oe),E.return=R,E):(E=c(E,P),E.return=R,E)}function V(R,E,P){if(typeof E=="string"&&E!==""||typeof E=="number")return E=Cu(""+E,R.mode,P),E.return=R,E;if(typeof E=="object"&&E!==null){switch(E.$$typeof){case Q:return P=ra(E.type,E.key,E.props,null,R.mode,P),P.ref=fo(R,null,E),P.return=R,P;case se:return E=Nu(E,R.mode,P),E.return=R,E;case xe:var W=E._init;return V(R,W(E._payload),P)}if(Pn(E)||Z(E))return E=Cr(E,R.mode,P,null),E.return=R,E;Oi(R,E)}return null}function $(R,E,P,W){var oe=E!==null?E.key:null;if(typeof P=="string"&&P!==""||typeof P=="number")return oe!==null?null:x(R,E,""+P,W);if(typeof P=="object"&&P!==null){switch(P.$$typeof){case Q:return P.key===oe?k(R,E,P,W):null;case se:return P.key===oe?O(R,E,P,W):null;case xe:return oe=P._init,$(R,E,oe(P._payload),W)}if(Pn(P)||Z(P))return oe!==null?null:q(R,E,P,W,null);Oi(R,P)}return null}function G(R,E,P,W,oe){if(typeof W=="string"&&W!==""||typeof W=="number")return R=R.get(P)||null,x(E,R,""+W,oe);if(typeof W=="object"&&W!==null){switch(W.$$typeof){case Q:return R=R.get(W.key===null?P:W.key)||null,k(E,R,W,oe);case se:return R=R.get(W.key===null?P:W.key)||null,O(E,R,W,oe);case xe:var ue=W._init;return G(R,E,P,ue(W._payload),oe)}if(Pn(W)||Z(W))return R=R.get(P)||null,q(E,R,W,oe,null);Oi(E,W)}return null}function ee(R,E,P,W){for(var oe=null,ue=null,ce=E,ge=E=0,nt=null;ce!==null&&ge<P.length;ge++){ce.index>ge?(nt=ce,ce=null):nt=ce.sibling;
vendor: 6,044 bytes, line 38
38var Ae=$(R,ce,P[ge],W);if(Ae===null){ce===null&&(ce=nt);break}e&&ce&&Ae.alternate===null&&t(R,ce),E=f(Ae,E,ge),ue===null?oe=Ae:ue.sibling=Ae,ue=Ae,ce=nt}if(ge===P.length)return o(R,ce),Ue&&vr(R,ge),oe;if(ce===null){for(;ge<P.length;ge++)ce=V(R,P[ge],W),ce!==null&&(E=f(ce,E,ge),ue===null?oe=ce:ue.sibling=ce,ue=ce);return Ue&&vr(R,ge),oe}for(ce=a(R,ce);ge<P.length;ge++)nt=G(ce,R,ge,P[ge],W),nt!==null&&(e&&nt.alternate!==null&&ce.delete(nt.key===null?ge:nt.key),E=f(nt,E,ge),ue===null?oe=nt:ue.sibling=nt,ue=nt);return e&&ce.forEach(function(Gn){return t(R,Gn)}),Ue&&vr(R,ge),oe}function re(R,E,P,W){var oe=Z(P);if(typeof oe!="function")throw Error(s(150));if(P=oe.call(P),P==null)throw Error(s(151));for(var ue=oe=null,ce=E,ge=E=0,nt=null,Ae=P.next();ce!==null&&!Ae.done;ge++,Ae=P.next()){ce.index>ge?(nt=ce,ce=null):nt=ce.sibling;var Gn=$(R,ce,Ae.value,W);if(Gn===null){ce===null&&(ce=nt);break}e&&ce&&Gn.alternate===null&&t(R,ce),E=f(Gn,E,ge),ue===null?oe=Gn:ue.sibling=Gn,ue=Gn,ce=nt}if(Ae.done)return o(R,ce),Ue&&vr(R,ge),oe;if(ce===null){for(;!Ae.done;ge++,Ae=P.next())Ae=V(R,Ae.value,W),Ae!==null&&(E=f(Ae,E,ge),ue===null?oe=Ae:ue.sibling=Ae,ue=Ae);return Ue&&vr(R,ge),oe}for(ce=a(R,ce);!Ae.done;ge++,Ae=P.next())Ae=G(ce,R,ge,Ae.value,W),Ae!==null&&(e&&Ae.alternate!==null&&ce.delete(Ae.key===null?ge:Ae.key),E=f(Ae,E,ge),ue===null?oe=Ae:ue.sibling=Ae,ue=Ae);return e&&ce.forEach(function(g0){return t(R,g0)}),Ue&&vr(R,ge),oe}function Ve(R,E,P,W){if(typeof P=="object"&&P!==null&&P.type===ie&&P.key===null&&(P=P.props.children),typeof P=="object"&&P!==null){switch(P.$$typeof){case Q:e:{for(var oe=P.key,ue=E;ue!==null;){if(ue.key===oe){if(oe=P.type,oe===ie){if(ue.tag===7){o(R,ue.sibling),E=c(ue,P.props.children),E.return=R,R=E;break e}}else if(ue.elementType===oe||typeof oe=="object"&&oe!==null&&oe.$$typeof===xe&&bf(oe)===ue.type){o(R,ue.sibling),E=c(ue,P.props),E.ref=fo(R,ue,P),E.return=R,R=E;break e}o(R,ue);break}else t(R,ue);ue=ue.sibling}P.type===ie?(E=Cr(P.props.children,R.mode,W,P.key),E.return=R,R=E):(W=ra(P.type,P.key,P.props,null,R.mode,W),W.ref=fo(R,E,P),W.return=R,R=W)}return y(R);case se:e:{for(ue=P.key;E!==null;){if(E.key===ue)if(E.tag===4&&E.stateNode.containerInfo===P.containerInfo&&E.stateNode.implementation===P.implementation){o(R,E.sibling),E=c(E,P.children||[]),E.return=R,R=E;break e}else{o(R,E);break}else t(R,E);E=E.sibling}E=Nu(P,R.mode,W),E.return=R,R=E}return y(R);case xe:return ue=P._init,Ve(R,E,ue(P._payload),W)}if(Pn(P))return ee(R,E,P,W);if(Z(P))return re(R,E,P,W);Oi(R,P)}return typeof P=="string"&&P!==""||typeof P=="number"?(P=""+P,E!==null&&E.tag===6?(o(R,E.sibling),E=c(E,P),E.return=R,R=E):(o(R,E),E=Cu(P,R.mode,W),E.return=R,R=E),y(R)):o(R,E)}return Ve}var cs=kf(!0),Sf=kf(!1),Ii=Un(null),Li=null,ds=null,Ml=null;function Dl(){Ml=ds=Li=null}function Fl(e){var t=Ii.current;Fe(Ii),e._currentValue=t}function Ul(e,t,o){for(;e!==null;){var a=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,a!==null&&(a.childLanes|=t)):a!==null&&(a.childLanes&t)!==t&&(a.childLanes|=t),e===o)break;e=e.return}}function fs(e,t){Li=e,Ml=ds=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(bt=!0),e.firstContext=null)}function Mt(e){var t=e._currentValue;if(Ml!==e)if(e={context:e,memoizedValue:t,next:null},ds===null){if(Li===null)throw Error(s(308));ds=e,Li.dependencies={lanes:0,firstContext:e}}else ds=ds.next=e;return t}var wr=null;function zl(e){wr===null?wr=[e]:wr.push(e)}function _f(e,t,o,a){var c=t.interleaved;return c===null?(o.next=o,zl(t)):(o.next=c.next,c.next=o),t.interleaved=o,bn(e,a)}function bn(e,t){e.lanes|=t;var o=e.alternate;for(o!==null&&(o.lanes|=t),o=e,e=e.return;e!==null;)e.childLanes|=t,o=e.alternate,o!==null&&(o.childLanes|=t),o=e,e=e.return;return o.tag===3?o.stateNode:null}var $n=!1;function Bl(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Ef(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function kn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function qn(e,t,o){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(Pe&2)!==0){var c=a.pending;return c===null?t.next=t:(t.next=c.next,c.next=t),a.pending=t,bn(e,o)}return c=a.interleaved,c===null?(t.next=t,zl(a)):(t.next=c.next,c.next=t),a.interleaved=t,bn(e,o)}function Mi(e,t,o){if(t=t.updateQueue,t!==null&&(t=t.shared,(o&4194240)!==0)){var a=t.lanes;a&=e.pendingLanes,o|=a,t.lanes=o,tl(e,o)}}function Cf(e,t){var o=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,o===a)){var c=null,f=null;if(o=o.firstBaseUpdate,o!==null){do{var y={eventTime:o.eventTime,lane:o.lane,tag:o.tag,payload:o.payload,callback:o.callback,next:null};f===null?c=f=y:f=f.next=y,o=o.next}while(o!==null);f===null?c=f=t:f=f.next=t}else c=f=t;o={baseState:a.baseState,firstBaseUpdate:c,lastBaseUpdate:f,shared:a.shared,effects:a.effects},e.updateQueue=o;return}e=o.lastBaseUpdate,e===null?o.firstBaseUpdate=t:e.next=t,o.lastBaseUpdate=t}function Di(e,t,o,a){var c=e.updateQueue;$n=!1;var f=c.firstBaseUpdate,y=c.lastBaseUpdate,x=c.shared.pending;if(x!==null){c.shared.pending=null;var k=x,O=k.next;k.next=null,y===null?f=O:y.next=O,y=k;var q=e.alternate;q!==null&&(q=q.updateQueue,x=q.lastBaseUpdate,x!==y&&(x===null?q.firstBaseUpdate=O:x.next=O,q.lastBaseUpdate=k))}if(f!==null){var V=c.baseState;y=0,q=O=k=null,x=f;do{var $=x.lane,G=x.eventTime;if((a&$)===$){q!==null&&(q=q.next={eventTime:G,lane:0,tag:x.tag,payload:x.payload,callback:x.callback,next:null});e:{var ee=e,re=x;switch($=t,G=o,re.tag){case 1:if(ee=re.payload,typeof ee=="function"){V=ee.call(G,V,$);break e}V=ee;break e;case 3:ee.flags=ee.flags&-65537|128;case 0:if(ee=re.payload,$=typeof ee=="function"?ee.call(G,V,$):ee,$==null)break e;V=D({},V,$);break e;case 2:$n=!0}}x.callback!==null&&x.lane!==0&&(e.flags|=64,$=c.effects,$===null?c.effects=[x]:$.push(x))}
vendor: 8,757 bytes, line 38
38else G={eventTime:G,lane:$,tag:x.tag,payload:x.payload,callback:x.callback,next:null},q===null?(O=q=G,k=V):q=q.next=G,y|=$;if(x=x.next,x===null){if(x=c.shared.pending,x===null)break;$=x,x=$.next,$.next=null,c.lastBaseUpdate=$,c.shared.pending=null}}while(!0);if(q===null&&(k=V),c.baseState=k,c.firstBaseUpdate=O,c.lastBaseUpdate=q,t=c.shared.interleaved,t!==null){c=t;do y|=c.lane,c=c.next;while(c!==t)}else f===null&&(c.shared.lanes=0);kr|=y,e.lanes=y,e.memoizedState=V}}function Nf(e,t,o){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var a=e[t],c=a.callback;if(c!==null){if(a.callback=null,a=o,typeof c!="function")throw Error(s(191,c));c.call(a)}}}var ho={},an=Un(ho),po=Un(ho),mo=Un(ho);function xr(e){if(e===ho)throw Error(s(174));return e}function $l(e,t){switch(Me(mo,t),Me(po,e),Me(an,ho),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:qa(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=qa(t,e)}Fe(an),Me(an,t)}function hs(){Fe(an),Fe(po),Fe(mo)}function Tf(e){xr(mo.current);var t=xr(an.current),o=qa(t,e.type);t!==o&&(Me(po,e),Me(an,o))}function ql(e){po.current===e&&(Fe(an),Fe(po))}var ze=Un(0);function Fi(e){for(var t=e;t!==null;){if(t.tag===13){var o=t.memoizedState;if(o!==null&&(o=o.dehydrated,o===null||o.data==="$?"||o.data==="$!"))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}var Hl=[];function Vl(){for(var e=0;e<Hl.length;e++)Hl[e]._workInProgressVersionPrimary=null;Hl.length=0}var Ui=M.ReactCurrentDispatcher,Wl=M.ReactCurrentBatchConfig,br=0,Be=null,Je=null,et=null,zi=!1,yo=!1,go=0,Uv=0;function dt(){throw Error(s(321))}function Ql(e,t){if(t===null)return!1;for(var o=0;o<t.length&&o<e.length;o++)if(!Qt(e[o],t[o]))return!1;return!0}function Yl(e,t,o,a,c,f){if(br=f,Be=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Ui.current=e===null||e.memoizedState===null?qv:Hv,e=o(a,c),yo){f=0;do{if(yo=!1,go=0,25<=f)throw Error(s(301));f+=1,et=Je=null,t.updateQueue=null,Ui.current=Vv,e=o(a,c)}while(yo)}if(Ui.current=qi,t=Je!==null&&Je.next!==null,br=0,et=Je=Be=null,zi=!1,t)throw Error(s(300));return e}function Kl(){var e=go!==0;return go=0,e}function ln(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return et===null?Be.memoizedState=et=e:et=et.next=e,et}function Dt(){if(Je===null){var e=Be.alternate;e=e!==null?e.memoizedState:null}else e=Je.next;var t=et===null?Be.memoizedState:et.next;if(t!==null)et=t,Je=e;else{if(e===null)throw Error(s(310));Je=e,e={memoizedState:Je.memoizedState,baseState:Je.baseState,baseQueue:Je.baseQueue,queue:Je.queue,next:null},et===null?Be.memoizedState=et=e:et=et.next=e}return et}function vo(e,t){return typeof t=="function"?t(e):t}function Gl(e){var t=Dt(),o=t.queue;if(o===null)throw Error(s(311));o.lastRenderedReducer=e;var a=Je,c=a.baseQueue,f=o.pending;if(f!==null){if(c!==null){var y=c.next;c.next=f.next,f.next=y}a.baseQueue=c=f,o.pending=null}if(c!==null){f=c.next,a=a.baseState;var x=y=null,k=null,O=f;do{var q=O.lane;if((br&q)===q)k!==null&&(k=k.next={lane:0,action:O.action,hasEagerState:O.hasEagerState,eagerState:O.eagerState,next:null}),a=O.hasEagerState?O.eagerState:e(a,O.action);else{var V={lane:q,action:O.action,hasEagerState:O.hasEagerState,eagerState:O.eagerState,next:null};k===null?(x=k=V,y=a):k=k.next=V,Be.lanes|=q,kr|=q}O=O.next}while(O!==null&&O!==f);k===null?y=a:k.next=x,Qt(a,t.memoizedState)||(bt=!0),t.memoizedState=a,t.baseState=y,t.baseQueue=k,o.lastRenderedState=a}if(e=o.interleaved,e!==null){c=e;do f=c.lane,Be.lanes|=f,kr|=f,c=c.next;while(c!==e)}else c===null&&(o.lanes=0);return[t.memoizedState,o.dispatch]}function Jl(e){var t=Dt(),o=t.queue;if(o===null)throw Error(s(311));o.lastRenderedReducer=e;var a=o.dispatch,c=o.pending,f=t.memoizedState;if(c!==null){o.pending=null;var y=c=c.next;do f=e(f,y.action),y=y.next;while(y!==c);Qt(f,t.memoizedState)||(bt=!0),t.memoizedState=f,t.baseQueue===null&&(t.baseState=f),o.lastRenderedState=f}return[f,a]}function Rf(){}function jf(e,t){var o=Be,a=Dt(),c=t(),f=!Qt(a.memoizedState,c);if(f&&(a.memoizedState=c,bt=!0),a=a.queue,Xl(Of.bind(null,o,a,e),[e]),a.getSnapshot!==t||f||et!==null&&et.memoizedState.tag&1){if(o.flags|=2048,wo(9,Af.bind(null,o,a,c,t),void 0,null),tt===null)throw Error(s(349));(br&30)!==0||Pf(o,t,c)}return c}function Pf(e,t,o){e.flags|=16384,e={getSnapshot:t,value:o},t=Be.updateQueue,t===null?(t={lastEffect:null,stores:null},Be.updateQueue=t,t.stores=[e]):(o=t.stores,o===null?t.stores=[e]:o.push(e))}function Af(e,t,o,a){t.value=o,t.getSnapshot=a,If(t)&&Lf(e)}function Of(e,t,o){return o(function(){If(t)&&Lf(e)})}function If(e){var t=e.getSnapshot;e=e.value;try{var o=t();return!Qt(e,o)}catch{return!0}}function Lf(e){var t=bn(e,1);t!==null&&Xt(t,e,1,-1)}function Mf(e){var t=ln();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:vo,lastRenderedState:e},t.queue=e,e=e.dispatch=$v.bind(null,Be,e),[t.memoizedState,e]}function wo(e,t,o,a){return e={tag:e,create:t,destroy:o,deps:a,next:null},t=Be.updateQueue,t===null?(t={lastEffect:null,stores:null},Be.updateQueue=t,t.lastEffect=e.next=e):(o=t.lastEffect,o===null?t.lastEffect=e.next=e:(a=o.next,o.next=e,e.next=a,t.lastEffect=e)),e}function Df(){return Dt().memoizedState}function Bi(e,t,o,a){var c=ln();Be.flags|=e,c.memoizedState=wo(1|t,o,void 0,a===void 0?null:a)}function $i(e,t,o,a){var c=Dt();a=a===void 0?null:a;var f=void 0;if(Je!==null){var y=Je.memoizedState;if(f=y.destroy,a!==null&&Ql(a,y.deps)){c.memoizedState=wo(t,o,f,a);return}}Be.flags|=e,c.memoizedState=wo(1|t,o,f,a)}function Ff(e,t){return Bi(8390656,8,e,t)}function Xl(e,t){return $i(2048,8,e,t)}function Uf(e,t){return $i(4,2,e,t)}function zf(e,t){return $i(4,4,e,t)}function Bf(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function $f(e,t,o){return o=o!=null?o.concat([e]):null,$i(4,4,Bf.bind(null,t,e),o)}function Zl(){}function qf(e,t){var o=Dt();t=t===void 0?null:t;var a=o.memoizedState;return a!==null&&t!==null&&Ql(t,a[1])?a[0]:(o.memoizedState=[e,t],e)}function Hf(e,t){var o=Dt();t=t===void 0?null:t;var a=o.memoizedState;return a!==null&&t!==null&&Ql(t,a[1])?a[0]:(e=e(),o.memoizedState=[e,t],e)}function Vf(e,t,o){return(br&21)===0?(e.baseState&&(e.baseState=!1,bt=!0),e.memoizedState=o):(Qt(o,t)||(o=xd(),Be.lanes|=o,kr|=o,e.baseState=!0),t)}function zv(e,t){var o=Ie;Ie=o!==0&&4>o?o:4,e(!0);var a=Wl.transition;Wl.transition={};try{e(!1),t()}finally{Ie=o,Wl.transition=a}}function Wf(){return Dt().memoizedState}function Bv(e,t,o){var a=Qn(e);if(o={lane:a,action:o,hasEagerState:!1,eagerState:null,next:null},Qf(e))Yf(t,o);else if(o=_f(e,t,o,a),o!==null){var c=gt();Xt(o,e,a,c),Kf(o,t,a)}}function $v(e,t,o){var a=Qn(e),c={lane:a,action:o,hasEagerState:!1,eagerState:null,next:null};if(Qf(e))Yf(t,c);else{var f=e.alternate;if(e.lanes===0&&(f===null||f.lanes===0)&&(f=t.lastRenderedReducer,f!==null))try{var y=t.lastRenderedState,x=f(y,o);if(c.hasEagerState=!0,c.eagerState=x,Qt(x,y)){var k=t.interleaved;k===null?(c.next=c,zl(t)):(c.next=k.next,k.next=c),t.interleaved=c;return}}catch{}finally{}o=_f(e,t,c,a),o!==null&&(c=gt(),Xt(o,e,a,c),Kf(o,t,a))}}function Qf(e){var t=e.alternate;return e===Be||t!==null&&t===Be}function Yf(e,t){yo=zi=!0;var o=e.pending;o===null?t.next=t:(t.next=o.next,o.next=t),e.pending=t}function Kf(e,t,o){if((o&4194240)!==0){var a=t.lanes;a&=e.pendingLanes,o|=a,t.lanes=o,tl(e,o)}}var qi={readContext:Mt,useCallback:dt,useContext:dt,useEffect:dt,useImperativeHandle:dt,useInsertionEffect:dt,useLayoutEffect:dt,useMemo:dt,useReducer:dt,useRef:dt,useState:dt,useDebugValue:dt,useDeferredValue:dt,useTransition:dt,useMutableSource:dt,useSyncExternalStore:dt,useId:dt,unstable_isNewReconciler:!1},qv={readContext:Mt,useCallback:function(e,t){return ln().memoizedState=[e,t===void 0?null:t],e},useContext:Mt,useEffect:Ff,useImperativeHandle:function(e,t,o){return o=o!=null?o.concat([e]):null,Bi(4194308,4,Bf.bind(null,t,e),o)},useLayoutEffect:function(e,t){return Bi(4194308,4,e,t)},useInsertionEffect:function(e,t){return Bi(4,2,e,t)},useMemo:function(e,t){var o=ln();return t=t===void 0?null:t,e=e(),o.memoizedState=[e,t],e},useReducer:function(e,t,o){var a=ln();return t=o!==void 0?o(t):t,a.memoizedState=a.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},a.queue=e,e=e.dispatch=Bv.bind(null,Be,e),[a.memoizedState,e]}
vendor: 5,350 bytes, lines 38-40
38,useRef:function(e){var t=ln();return e={current:e},t.memoizedState=e},useState:Mf,useDebugValue:Zl,useDeferredValue:function(e){return ln().memoizedState=e},useTransition:function(){var e=Mf(!1),t=e[0];return e=zv.bind(null,e[1]),ln().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,o){var a=Be,c=ln();if(Ue){if(o===void 0)throw Error(s(407));o=o()}else{if(o=t(),tt===null)throw Error(s(349));(br&30)!==0||Pf(a,t,o)}c.memoizedState=o;var f={value:o,getSnapshot:t};return c.queue=f,Ff(Of.bind(null,a,f,e),[e]),a.flags|=2048,wo(9,Af.bind(null,a,f,o,t),void 0,null),o},useId:function(){var e=ln(),t=tt.identifierPrefix;if(Ue){var o=xn,a=wn;o=(a&~(1<<32-Wt(a)-1)).toString(32)+o,t=":"+t+"R"+o,o=go++,0<o&&(t+="H"+o.toString(32)),t+=":"}else o=Uv++,t=":"+t+"r"+o.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Hv={readContext:Mt,useCallback:qf,useContext:Mt,useEffect:Xl,useImperativeHandle:$f,useInsertionEffect:Uf,useLayoutEffect:zf,useMemo:Hf,useReducer:Gl,useRef:Df,useState:function(){return Gl(vo)},useDebugValue:Zl,useDeferredValue:function(e){var t=Dt();return Vf(t,Je.memoizedState,e)},useTransition:function(){var e=Gl(vo)[0],t=Dt().memoizedState;return[e,t]},useMutableSource:Rf,useSyncExternalStore:jf,useId:Wf,unstable_isNewReconciler:!1},Vv={readContext:Mt,useCallback:qf,useContext:Mt,useEffect:Xl,useImperativeHandle:$f,useInsertionEffect:Uf,useLayoutEffect:zf,useMemo:Hf,useReducer:Jl,useRef:Df,useState:function(){return Jl(vo)},useDebugValue:Zl,useDeferredValue:function(e){var t=Dt();return Je===null?t.memoizedState=e:Vf(t,Je.memoizedState,e)},useTransition:function(){var e=Jl(vo)[0],t=Dt().memoizedState;return[e,t]},useMutableSource:Rf,useSyncExternalStore:jf,useId:Wf,unstable_isNewReconciler:!1};function Kt(e,t){if(e&&e.defaultProps){t=D({},t),e=e.defaultProps;for(var o in e)t[o]===void 0&&(t[o]=e[o]);return t}return t}function eu(e,t,o,a){t=e.memoizedState,o=o(a,t),o=o==null?t:D({},t,o),e.memoizedState=o,e.lanes===0&&(e.updateQueue.baseState=o)}var Hi={isMounted:function(e){return(e=e._reactInternals)?pr(e)===e:!1},enqueueSetState:function(e,t,o){e=e._reactInternals;var a=gt(),c=Qn(e),f=kn(a,c);f.payload=t,o!=null&&(f.callback=o),t=qn(e,f,c),t!==null&&(Xt(t,e,c,a),Mi(t,e,c))},enqueueReplaceState:function(e,t,o){e=e._reactInternals;var a=gt(),c=Qn(e),f=kn(a,c);f.tag=1,f.payload=t,o!=null&&(f.callback=o),t=qn(e,f,c),t!==null&&(Xt(t,e,c,a),Mi(t,e,c))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var o=gt(),a=Qn(e),c=kn(o,a);c.tag=2,t!=null&&(c.callback=t),t=qn(e,c,a),t!==null&&(Xt(t,e,a,o),Mi(t,e,a))}};function Gf(e,t,o,a,c,f,y){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(a,f,y):t.prototype&&t.prototype.isPureReactComponent?!so(o,a)||!so(c,f):!0}function Jf(e,t,o){var a=!1,c=zn,f=t.contextType;return typeof f=="object"&&f!==null?f=Mt(f):(c=xt(t)?yr:ct.current,a=t.contextTypes,f=(a=a!=null)?is(e,c):zn),t=new t(o,f),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Hi,e.stateNode=t,t._reactInternals=e,a&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=c,e.__reactInternalMemoizedMaskedChildContext=f),t}function Xf(e,t,o,a){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(o,a),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(o,a),t.state!==e&&Hi.enqueueReplaceState(t,t.state,null)}function tu(e,t,o,a){var c=e.stateNode;c.props=o,c.state=e.memoizedState,c.refs={},Bl(e);var f=t.contextType;typeof f=="object"&&f!==null?c.context=Mt(f):(f=xt(t)?yr:ct.current,c.context=is(e,f)),c.state=e.memoizedState,f=t.getDerivedStateFromProps,typeof f=="function"&&(eu(e,t,f,o),c.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof c.getSnapshotBeforeUpdate=="function"||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(t=c.state,typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount(),t!==c.state&&Hi.enqueueReplaceState(c,c.state,null),Di(e,o,c,a),c.state=e.memoizedState),typeof c.componentDidMount=="function"&&(e.flags|=4194308)}function ps(e,t){try{var o="",a=t;do o+=ae(a),a=a.return;while(a);var c=o}catch(f){c=`
39Error generating stack: `+f.message+`
40`+f.stack}return{value:e,source:t,stack:c,digest:null}}function nu(e,t,o){return{value:e,source:null,stack:o??null,digest:t??null}}function ru(e,t){try{console.error(t.value)}catch(o){setTimeout(function(){throw o})}}var Wv=typeof WeakMap=="function"?WeakMap:Map;function Zf(e,t,o){o=kn(-1,o),o.tag=3,o.payload={element:null};var a=t.value;return o.callback=function(){Ji||(Ji=!0,vu=a),ru(e,t)},o}function eh(e,t,o){o=kn(-1,o),o.tag=3;var a=e.type.getDerivedStateFromError;if(typeof a=="function"){var c=t.value;o.payload=function(){return a(c)},o.callback=function(){ru(e,t)}}var f=e.stateNode;return f!==null&&typeof f.componentDidCatch=="function"&&(o.callback=function(){ru(e,t),typeof a!="function"&&(Vn===null?Vn=new Set([this]):Vn.add(this));var y=t.stack;this.componentDidCatch(t.value,{componentStack:y!==null?y:""})}),o}function th(e,t,o){var a=e.pingCache;if(a===null){a=e.pingCache=new Wv;var c=new Set;a.set(t,c)}else c=a.get(t),c===void 0&&(c=new Set,a.set(t,c));
vendor: 42,643 bytes, line 40
40c.has(o)||(c.add(o),e=i0.bind(null,e,t,o),t.then(e,e))}function nh(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function rh(e,t,o,a,c){return(e.mode&1)===0?(e===t?e.flags|=65536:(e.flags|=128,o.flags|=131072,o.flags&=-52805,o.tag===1&&(o.alternate===null?o.tag=17:(t=kn(-1,1),t.tag=2,qn(o,t,1))),o.lanes|=1),e):(e.flags|=65536,e.lanes=c,e)}var Qv=M.ReactCurrentOwner,bt=!1;function yt(e,t,o,a){t.child=e===null?Sf(t,null,o,a):cs(t,e.child,o,a)}function sh(e,t,o,a,c){o=o.render;var f=t.ref;return fs(t,c),a=Yl(e,t,o,a,f,c),o=Kl(),e!==null&&!bt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~c,Sn(e,t,c)):(Ue&&o&&Pl(t),t.flags|=1,yt(e,t,a,c),t.child)}function oh(e,t,o,a,c){if(e===null){var f=o.type;return typeof f=="function"&&!Eu(f)&&f.defaultProps===void 0&&o.compare===null&&o.defaultProps===void 0?(t.tag=15,t.type=f,ih(e,t,f,a,c)):(e=ra(o.type,null,a,t,t.mode,c),e.ref=t.ref,e.return=t,t.child=e)}if(f=e.child,(e.lanes&c)===0){var y=f.memoizedProps;if(o=o.compare,o=o!==null?o:so,o(y,a)&&e.ref===t.ref)return Sn(e,t,c)}return t.flags|=1,e=Kn(f,a),e.ref=t.ref,e.return=t,t.child=e}function ih(e,t,o,a,c){if(e!==null){var f=e.memoizedProps;if(so(f,a)&&e.ref===t.ref)if(bt=!1,t.pendingProps=a=f,(e.lanes&c)!==0)(e.flags&131072)!==0&&(bt=!0);else return t.lanes=e.lanes,Sn(e,t,c)}return su(e,t,o,a,c)}function ah(e,t,o){var a=t.pendingProps,c=a.children,f=e!==null?e.memoizedState:null;if(a.mode==="hidden")if((t.mode&1)===0)t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Me(ys,At),At|=o;else{if((o&1073741824)===0)return e=f!==null?f.baseLanes|o:o,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Me(ys,At),At|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},a=f!==null?f.baseLanes:o,Me(ys,At),At|=a}else f!==null?(a=f.baseLanes|o,t.memoizedState=null):a=o,Me(ys,At),At|=a;return yt(e,t,c,o),t.child}function lh(e,t){var o=t.ref;(e===null&&o!==null||e!==null&&e.ref!==o)&&(t.flags|=512,t.flags|=2097152)}function su(e,t,o,a,c){var f=xt(o)?yr:ct.current;return f=is(t,f),fs(t,c),o=Yl(e,t,o,a,f,c),a=Kl(),e!==null&&!bt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~c,Sn(e,t,c)):(Ue&&a&&Pl(t),t.flags|=1,yt(e,t,o,c),t.child)}function uh(e,t,o,a,c){if(xt(o)){var f=!0;Ti(t)}else f=!1;if(fs(t,c),t.stateNode===null)Wi(e,t),Jf(t,o,a),tu(t,o,a,c),a=!0;else if(e===null){var y=t.stateNode,x=t.memoizedProps;y.props=x;var k=y.context,O=o.contextType;typeof O=="object"&&O!==null?O=Mt(O):(O=xt(o)?yr:ct.current,O=is(t,O));var q=o.getDerivedStateFromProps,V=typeof q=="function"||typeof y.getSnapshotBeforeUpdate=="function";V||typeof y.UNSAFE_componentWillReceiveProps!="function"&&typeof y.componentWillReceiveProps!="function"||(x!==a||k!==O)&&Xf(t,y,a,O),$n=!1;var $=t.memoizedState;y.state=$,Di(t,a,y,c),k=t.memoizedState,x!==a||$!==k||wt.current||$n?(typeof q=="function"&&(eu(t,o,q,a),k=t.memoizedState),(x=$n||Gf(t,o,x,a,$,k,O))?(V||typeof y.UNSAFE_componentWillMount!="function"&&typeof y.componentWillMount!="function"||(typeof y.componentWillMount=="function"&&y.componentWillMount(),typeof y.UNSAFE_componentWillMount=="function"&&y.UNSAFE_componentWillMount()),typeof y.componentDidMount=="function"&&(t.flags|=4194308)):(typeof y.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=a,t.memoizedState=k),y.props=a,y.state=k,y.context=O,a=x):(typeof y.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{y=t.stateNode,Ef(e,t),x=t.memoizedProps,O=t.type===t.elementType?x:Kt(t.type,x),y.props=O,V=t.pendingProps,$=y.context,k=o.contextType,typeof k=="object"&&k!==null?k=Mt(k):(k=xt(o)?yr:ct.current,k=is(t,k));var G=o.getDerivedStateFromProps;(q=typeof G=="function"||typeof y.getSnapshotBeforeUpdate=="function")||typeof y.UNSAFE_componentWillReceiveProps!="function"&&typeof y.componentWillReceiveProps!="function"||(x!==V||$!==k)&&Xf(t,y,a,k),$n=!1,$=t.memoizedState,y.state=$,Di(t,a,y,c);var ee=t.memoizedState;x!==V||$!==ee||wt.current||$n?(typeof G=="function"&&(eu(t,o,G,a),ee=t.memoizedState),(O=$n||Gf(t,o,O,a,$,ee,k)||!1)?(q||typeof y.UNSAFE_componentWillUpdate!="function"&&typeof y.componentWillUpdate!="function"||(typeof y.componentWillUpdate=="function"&&y.componentWillUpdate(a,ee,k),typeof y.UNSAFE_componentWillUpdate=="function"&&y.UNSAFE_componentWillUpdate(a,ee,k)),typeof y.componentDidUpdate=="function"&&(t.flags|=4),typeof y.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof y.componentDidUpdate!="function"||x===e.memoizedProps&&$===e.memoizedState||(t.flags|=4),typeof y.getSnapshotBeforeUpdate!="function"||x===e.memoizedProps&&$===e.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=ee),y.props=a,y.state=ee,y.context=k,a=O):(typeof y.componentDidUpdate!="function"||x===e.memoizedProps&&$===e.memoizedState||(t.flags|=4),typeof y.getSnapshotBeforeUpdate!="function"||x===e.memoizedProps&&$===e.memoizedState||(t.flags|=1024),a=!1)}return ou(e,t,o,a,f,c)}function ou(e,t,o,a,c,f){lh(e,t);var y=(t.flags&128)!==0;if(!a&&!y)return c&&pf(t,o,!1),Sn(e,t,f);a=t.stateNode,Qv.current=t;var x=y&&typeof o.getDerivedStateFromError!="function"?null:a.render();return t.flags|=1,e!==null&&y?(t.child=cs(t,e.child,null,f),t.child=cs(t,null,x,f)):yt(e,t,x,f),t.memoizedState=a.state,c&&pf(t,o,!0),t.child}function ch(e){var t=e.stateNode;t.pendingContext?ff(e,t.pendingContext,t.pendingContext!==t.context):t.context&&ff(e,t.context,!1),$l(e,t.containerInfo)}function dh(e,t,o,a,c){return us(),Ll(c),t.flags|=256,yt(e,t,o,a),t.child}var iu={dehydrated:null,treeContext:null,retryLane:0};function au(e){return{baseLanes:e,cachePool:null,transitions:null}}function fh(e,t,o){var a=t.pendingProps,c=ze.current,f=!1,y=(t.flags&128)!==0,x;if((x=y)||(x=e!==null&&e.memoizedState===null?!1:(c&2)!==0),x?(f=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(c|=1),Me(ze,c&1),e===null)return Il(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?((t.mode&1)===0?t.lanes=1:e.data==="$!"?t.lanes=8:t.lanes=1073741824,null):(y=a.children,e=a.fallback,f?(a=t.mode,f=t.child,y={mode:"hidden",children:y},(a&1)===0&&f!==null?(f.childLanes=0,f.pendingProps=y):f=sa(y,a,0,null),e=Cr(e,a,o,null),f.return=t,e.return=t,f.sibling=e,t.child=f,t.child.memoizedState=au(o),t.memoizedState=iu,e):lu(t,y));if(c=e.memoizedState,c!==null&&(x=c.dehydrated,x!==null))return Yv(e,t,y,a,x,c,o);if(f){f=a.fallback,y=t.mode,c=e.child,x=c.sibling;var k={mode:"hidden",children:a.children};return(y&1)===0&&t.child!==c?(a=t.child,a.childLanes=0,a.pendingProps=k,t.deletions=null):(a=Kn(c,k),a.subtreeFlags=c.subtreeFlags&14680064),x!==null?f=Kn(x,f):(f=Cr(f,y,o,null),f.flags|=2),f.return=t,a.return=t,a.sibling=f,t.child=a,a=f,f=t.child,y=e.child.memoizedState,y=y===null?au(o):{baseLanes:y.baseLanes|o,cachePool:null,transitions:y.transitions},f.memoizedState=y,f.childLanes=e.childLanes&~o,t.memoizedState=iu,a}return f=e.child,e=f.sibling,a=Kn(f,{mode:"visible",children:a.children}),(t.mode&1)===0&&(a.lanes=o),a.return=t,a.sibling=null,e!==null&&(o=t.deletions,o===null?(t.deletions=[e],t.flags|=16):o.push(e)),t.child=a,t.memoizedState=null,a}function lu(e,t){return t=sa({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Vi(e,t,o,a){return a!==null&&Ll(a),cs(t,e.child,null,o),e=lu(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Yv(e,t,o,a,c,f,y){if(o)return t.flags&256?(t.flags&=-257,a=nu(Error(s(422))),Vi(e,t,y,a)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(f=a.fallback,c=t.mode,a=sa({mode:"visible",children:a.children},c,0,null),f=Cr(f,c,y,null),f.flags|=2,a.return=t,f.return=t,a.sibling=f,t.child=a,(t.mode&1)!==0&&cs(t,e.child,null,y),t.child.memoizedState=au(y),t.memoizedState=iu,f);if((t.mode&1)===0)return Vi(e,t,y,null);if(c.data==="$!"){if(a=c.nextSibling&&c.nextSibling.dataset,a)var x=a.dgst;return a=x,f=Error(s(419)),a=nu(f,a,void 0),Vi(e,t,y,a)}if(x=(y&e.childLanes)!==0,bt||x){if(a=tt,a!==null){switch(y&-y){case 4:c=2;break;case 16:c=8;break;case 64: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:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:c=32;break;case 536870912:c=268435456;break;default:c=0}c=(c&(a.suspendedLanes|y))!==0?0:c,c!==0&&c!==f.retryLane&&(f.retryLane=c,bn(e,c),Xt(a,e,c,-1))}return _u(),a=nu(Error(s(421))),Vi(e,t,y,a)}return c.data==="$?"?(t.flags|=128,t.child=e.child,t=a0.bind(null,e),c._reactRetry=t,null):(e=f.treeContext,Pt=Fn(c.nextSibling),jt=t,Ue=!0,Yt=null,e!==null&&(It[Lt++]=wn,It[Lt++]=xn,It[Lt++]=gr,wn=e.id,xn=e.overflow,gr=t),t=lu(t,a.children),t.flags|=4096,t)}function hh(e,t,o){e.lanes|=t;var a=e.alternate;a!==null&&(a.lanes|=t),Ul(e.return,t,o)}function uu(e,t,o,a,c){var f=e.memoizedState;f===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:o,tailMode:c}:(f.isBackwards=t,f.rendering=null,f.renderingStartTime=0,f.last=a,f.tail=o,f.tailMode=c)}function ph(e,t,o){var a=t.pendingProps,c=a.revealOrder,f=a.tail;if(yt(e,t,a.children,o),a=ze.current,(a&2)!==0)a=a&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&&hh(e,o,t);else if(e.tag===19)hh(e,o,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}a&=1}if(Me(ze,a),(t.mode&1)===0)t.memoizedState=null;else switch(c){case"forwards":for(o=t.child,c=null;o!==null;)e=o.alternate,e!==null&&Fi(e)===null&&(c=o),o=o.sibling;o=c,o===null?(c=t.child,t.child=null):(c=o.sibling,o.sibling=null),uu(t,!1,c,o,f);break;case"backwards":for(o=null,c=t.child,t.child=null;c!==null;){if(e=c.alternate,e!==null&&Fi(e)===null){t.child=c;break}e=c.sibling,c.sibling=o,o=c,c=e}uu(t,!0,o,null,f);break;case"together":uu(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Wi(e,t){(t.mode&1)===0&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Sn(e,t,o){if(e!==null&&(t.dependencies=e.dependencies),kr|=t.lanes,(o&t.childLanes)===0)return null;if(e!==null&&t.child!==e.child)throw Error(s(153));if(t.child!==null){for(e=t.child,o=Kn(e,e.pendingProps),t.child=o,o.return=t;e.sibling!==null;)e=e.sibling,o=o.sibling=Kn(e,e.pendingProps),o.return=t;o.sibling=null}return t.child}function Kv(e,t,o){switch(t.tag){case 3:ch(t),us();break;case 5:Tf(t);break;case 1:xt(t.type)&&Ti(t);break;case 4:$l(t,t.stateNode.containerInfo);break;case 10:var a=t.type._context,c=t.memoizedProps.value;Me(Ii,a._currentValue),a._currentValue=c;break;case 13:if(a=t.memoizedState,a!==null)return a.dehydrated!==null?(Me(ze,ze.current&1),t.flags|=128,null):(o&t.child.childLanes)!==0?fh(e,t,o):(Me(ze,ze.current&1),e=Sn(e,t,o),e!==null?e.sibling:null);Me(ze,ze.current&1);break;case 19:if(a=(o&t.childLanes)!==0,(e.flags&128)!==0){if(a)return ph(e,t,o);t.flags|=128}if(c=t.memoizedState,c!==null&&(c.rendering=null,c.tail=null,c.lastEffect=null),Me(ze,ze.current),a)break;return null;case 22:case 23:return t.lanes=0,ah(e,t,o)}return Sn(e,t,o)}var mh,cu,yh,gh;mh=function(e,t){for(var o=t.child;o!==null;){if(o.tag===5||o.tag===6)e.appendChild(o.stateNode);else if(o.tag!==4&&o.child!==null){o.child.return=o,o=o.child;continue}if(o===t)break;for(;o.sibling===null;){if(o.return===null||o.return===t)return;o=o.return}o.sibling.return=o.return,o=o.sibling}},cu=function(){},yh=function(e,t,o,a){var c=e.memoizedProps;if(c!==a){e=t.stateNode,xr(an.current);var f=null;switch(o){case"input":c=Vt(e,c),a=Vt(e,a),f=[];break;case"select":c=D({},c,{value:void 0}),a=D({},a,{value:void 0}),f=[];break;case"textarea":c=Yr(e,c),a=Yr(e,a),f=[];break;default:typeof c.onClick!="function"&&typeof a.onClick=="function"&&(e.onclick=Ei)}Ha(o,a);var y;o=null;for(O in c)if(!a.hasOwnProperty(O)&&c.hasOwnProperty(O)&&c[O]!=null)if(O==="style"){var x=c[O];for(y in x)x.hasOwnProperty(y)&&(o||(o={}),o[y]="")}else O!=="dangerouslySetInnerHTML"&&O!=="children"&&O!=="suppressContentEditableWarning"&&O!=="suppressHydrationWarning"&&O!=="autoFocus"&&(l.hasOwnProperty(O)?f||(f=[]):(f=f||[]).push(O,null));for(O in a){var k=a[O];if(x=c!=null?c[O]:void 0,a.hasOwnProperty(O)&&k!==x&&(k!=null||x!=null))if(O==="style")if(x){for(y in x)!x.hasOwnProperty(y)||k&&k.hasOwnProperty(y)||(o||(o={}),o[y]="");for(y in k)k.hasOwnProperty(y)&&x[y]!==k[y]&&(o||(o={}),o[y]=k[y])}else o||(f||(f=[]),f.push(O,o)),o=k;else O==="dangerouslySetInnerHTML"?(k=k?k.__html:void 0,x=x?x.__html:void 0,k!=null&&x!==k&&(f=f||[]).push(O,k)):O==="children"?typeof k!="string"&&typeof k!="number"||(f=f||[]).push(O,""+k):O!=="suppressContentEditableWarning"&&O!=="suppressHydrationWarning"&&(l.hasOwnProperty(O)?(k!=null&&O==="onScroll"&&De("scroll",e),f||x===k||(f=[])):(f=f||[]).push(O,k))}o&&(f=f||[]).push("style",o);var O=f;(t.updateQueue=O)&&(t.flags|=4)}},gh=function(e,t,o,a){o!==a&&(t.flags|=4)};function xo(e,t){if(!Ue)switch(e.tailMode){case"hidden":t=e.tail;for(var o=null;t!==null;)t.alternate!==null&&(o=t),t=t.sibling;o===null?e.tail=null:o.sibling=null;break;case"collapsed":o=e.tail;for(var a=null;o!==null;)o.alternate!==null&&(a=o),o=o.sibling;a===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:a.sibling=null}}function ft(e){var t=e.alternate!==null&&e.alternate.child===e.child,o=0,a=0;if(t)for(var c=e.child;c!==null;)o|=c.lanes|c.childLanes,a|=c.subtreeFlags&14680064,a|=c.flags&14680064,c.return=e,c=c.sibling;else for(c=e.child;c!==null;)o|=c.lanes|c.childLanes,a|=c.subtreeFlags,a|=c.flags,c.return=e,c=c.sibling;return e.subtreeFlags|=a,e.childLanes=o,t}function Gv(e,t,o){var a=t.pendingProps;switch(Al(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ft(t),null;case 1:return xt(t.type)&&Ni(),ft(t),null;case 3:return a=t.stateNode,hs(),Fe(wt),Fe(ct),Vl(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(Ai(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Yt!==null&&(bu(Yt),Yt=null))),cu(e,t),ft(t),null;case 5:ql(t);var c=xr(mo.current);if(o=t.type,e!==null&&t.stateNode!=null)yh(e,t,o,a,c),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!a){if(t.stateNode===null)throw Error(s(166));return ft(t),null}if(e=xr(an.current),Ai(t)){a=t.stateNode,o=t.type;var f=t.memoizedProps;switch(a[on]=t,a[uo]=f,e=(t.mode&1)!==0,o){case"dialog":De("cancel",a),De("close",a);break;case"iframe":case"object":case"embed":De("load",a);break;case"video":case"audio":for(c=0;c<io.length;c++)De(io[c],a);break;case"source":De("error",a);break;case"img":case"image":case"link":De("error",a),De("load",a);break;case"details":De("toggle",a);break;case"input":Ds(a,f),De("invalid",a);break;case"select":a._wrapperState={wasMultiple:!!f.multiple},De("invalid",a);break;case"textarea":zs(a,f),De("invalid",a)}Ha(o,f),c=null;for(var y in f)if(f.hasOwnProperty(y)){var x=f[y];y==="children"?typeof x=="string"?a.textContent!==x&&(f.suppressHydrationWarning!==!0&&_i(a.textContent,x,e),c=["children",x]):typeof x=="number"&&a.textContent!==""+x&&(f.suppressHydrationWarning!==!0&&_i(a.textContent,x,e),c=["children",""+x]):l.hasOwnProperty(y)&&x!=null&&y==="onScroll"&&De("scroll",a)}switch(o){case"input":Ot(a),Us(a,f,!0);break;case"textarea":Ot(a),ni(a);break;case"select":case"option":break;default:typeof f.onClick=="function"&&(a.onclick=Ei)}a=c,t.updateQueue=a,a!==null&&(t.flags|=4)}else{y=c.nodeType===9?c:c.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=nd(o)),e==="http://www.w3.org/1999/xhtml"?o==="script"?(e=y.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof a.is=="string"?e=y.createElement(o,{is:a.is}):(e=y.createElement(o),o==="select"&&(y=e,a.multiple?y.multiple=!0:a.size&&(y.size=a.size))):e=y.createElementNS(e,o),e[on]=t,e[uo]=a,mh(e,t,!1,!1),t.stateNode=e;e:{switch(y=Va(o,a),o){case"dialog":De("cancel",e),De("close",e),c=a;break;case"iframe":case"object":case"embed":De("load",e),c=a;break;case"video":case"audio":for(c=0;c<io.length;c++)De(io[c],e);c=a;break;case"source":De("error",e),c=a;break;case"img":case"image":case"link":De("error",e),De("load",e),c=a;break;case"details":De("toggle",e),c=a;break;case"input":Ds(e,a),c=Vt(e,a),De("invalid",e);break;case"option":c=a;break;case"select":e._wrapperState={wasMultiple:!!a.multiple},c=D({},a,{value:void 0}),De("invalid",e);break;case"textarea":zs(e,a),c=Yr(e,a),De("invalid",e);break;default:c=a}Ha(o,c),x=c;for(f in x)if(x.hasOwnProperty(f)){var k=x[f];f==="style"?od(e,k):f==="dangerouslySetInnerHTML"?(k=k?k.__html:void 0,k!=null&&rd(e,k)):f==="children"?typeof k=="string"?(o!=="textarea"||k!=="")&&Bs(e,k):typeof k=="number"&&Bs(e,""+k):f!=="suppressContentEditableWarning"&&f!=="suppressHydrationWarning"&&f!=="autoFocus"&&(l.hasOwnProperty(f)?k!=null&&f==="onScroll"&&De("scroll",e):k!=null&&I(e,f,k,y))}switch(o){case"input":Ot(e),Us(e,a,!1);break;case"textarea":Ot(e),ni(e);break;case"option":a.value!=null&&e.setAttribute("value",""+Ce(a.value));break;case"select":e.multiple=!!a.multiple,f=a.value,f!=null?yn(e,!!a.multiple,f,!1):a.defaultValue!=null&&yn(e,!!a.multiple,a.defaultValue,!0);break;default:typeof c.onClick=="function"&&(e.onclick=Ei)}switch(o){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}}a&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return ft(t),null;case 6:if(e&&t.stateNode!=null)gh(e,t,e.memoizedProps,a);else{if(typeof a!="string"&&t.stateNode===null)throw Error(s(166));if(o=xr(mo.current),xr(an.current),Ai(t)){if(a=t.stateNode,o=t.memoizedProps,a[on]=t,(f=a.nodeValue!==o)&&(e=jt,e!==null))switch(e.tag){case 3:_i(a.nodeValue,o,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&_i(a.nodeValue,o,(e.mode&1)!==0)}f&&(t.flags|=4)}else a=(o.nodeType===9?o:o.ownerDocument).createTextNode(a),a[on]=t,t.stateNode=a}return ft(t),null;case 13:if(Fe(ze),a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Ue&&Pt!==null&&(t.mode&1)!==0&&(t.flags&128)===0)xf(),us(),t.flags|=98560,f=!1;else if(f=Ai(t),a!==null&&a.dehydrated!==null){if(e===null){if(!f)throw Error(s(318));if(f=t.memoizedState,f=f!==null?f.dehydrated:null,!f)throw Error(s(317));f[on]=t}else us(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;ft(t),f=!1}else Yt!==null&&(bu(Yt),Yt=null),f=!0;if(!f)return t.flags&65536?t:null}return(t.flags&128)!==0?(t.lanes=o,t):(a=a!==null,a!==(e!==null&&e.memoizedState!==null)&&a&&(t.child.flags|=8192,(t.mode&1)!==0&&(e===null||(ze.current&1)!==0?Xe===0&&(Xe=3):_u())),t.updateQueue!==null&&(t.flags|=4),ft(t),null);case 4:return hs(),cu(e,t),e===null&&ao(t.stateNode.containerInfo),ft(t),null;case 10:return Fl(t.type._context),ft(t),null;case 17:return xt(t.type)&&Ni(),ft(t),null;case 19:if(Fe(ze),f=t.memoizedState,f===null)return ft(t),null;if(a=(t.flags&128)!==0,y=f.rendering,y===null)if(a)xo(f,!1);else{if(Xe!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(y=Fi(e),y!==null){for(t.flags|=128,xo(f,!1),a=y.updateQueue,a!==null&&(t.updateQueue=a,t.flags|=4),t.subtreeFlags=0,a=o,o=t.child;o!==null;)f=o,e=a,f.flags&=14680066,y=f.alternate,y===null?(f.childLanes=0,f.lanes=e,f.child=null,f.subtreeFlags=0,f.memoizedProps=null,f.memoizedState=null,f.updateQueue=null,f.dependencies=null,f.stateNode=null):(f.childLanes=y.childLanes,f.lanes=y.lanes,f.child=y.child,f.subtreeFlags=0,f.deletions=null,f.memoizedProps=y.memoizedProps,f.memoizedState=y.memoizedState,f.updateQueue=y.updateQueue,f.type=y.type,e=y.dependencies,f.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),o=o.sibling;return Me(ze,ze.current&1|2),t.child}e=e.sibling}f.tail!==null&&He()>gs&&(t.flags|=128,a=!0,xo(f,!1),t.lanes=4194304)}else{if(!a)if(e=Fi(y),e!==null){if(t.flags|=128,a=!0,o=e.updateQueue,o!==null&&(t.updateQueue=o,t.flags|=4),xo(f,!0),f.tail===null&&f.tailMode==="hidden"&&!y.alternate&&!Ue)return ft(t),null}else 2*He()-f.renderingStartTime>gs&&o!==1073741824&&(t.flags|=128,a=!0,xo(f,!1),t.lanes=4194304);f.isBackwards?(y.sibling=t.child,t.child=y):(o=f.last,o!==null?o.sibling=y:t.child=y,f.last=y)}return f.tail!==null?(t=f.tail,f.rendering=t,f.tail=t.sibling,f.renderingStartTime=He(),t.sibling=null,o=ze.current,Me(ze,a?o&1|2:o&1),t):(ft(t),null);case 22:case 23:return Su(),a=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==a&&(t.flags|=8192),a&&(t.mode&1)!==0?(At&1073741824)!==0&&(ft(t),t.subtreeFlags&6&&(t.flags|=8192)):ft(t),null;case 24:return null;case 25:return null}throw Error(s(156,t.tag))}function Jv(e,t){switch(Al(t),t.tag){case 1:return xt(t.type)&&Ni(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return hs(),Fe(wt),Fe(ct),Vl(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return ql(t),null;case 13:if(Fe(ze),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(s(340));us()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Fe(ze),null;case 4:return hs(),null;case 10:return Fl(t.type._context),null;case 22:case 23:return Su(),null;case 24:return null;default:return null}}var Qi=!1,ht=!1,Xv=typeof WeakSet=="function"?WeakSet:Set,X=null;function ms(e,t){var o=e.ref;if(o!==null)if(typeof o=="function")try{o(null)}catch(a){$e(e,t,a)}else o.current=null}function du(e,t,o){try{o()}catch(a){$e(e,t,a)}}var vh=!1;function Zv(e,t){if(Sl=hi,e=Kd(),ml(e)){if("selectionStart"in e)var o={start:e.selectionStart,end:e.selectionEnd};else e:{o=(o=e.ownerDocument)&&o.defaultView||window;var a=o.getSelection&&o.getSelection();if(a&&a.rangeCount!==0){o=a.anchorNode;var c=a.anchorOffset,f=a.focusNode;a=a.focusOffset;try{o.nodeType,f.nodeType}catch{o=null;break e}var y=0,x=-1,k=-1,O=0,q=0,V=e,$=null;t:for(;;){for(var G;V!==o||c!==0&&V.nodeType!==3||(x=y+c),V!==f||a!==0&&V.nodeType!==3||(k=y+a),V.nodeType===3&&(y+=V.nodeValue.length),(G=V.firstChild)!==null;)$=V,V=G;for(;;){if(V===e)break t;if($===o&&++O===c&&(x=y),$===f&&++q===a&&(k=y),(G=V.nextSibling)!==null)break;V=$,$=V.parentNode}V=G}o=x===-1||k===-1?null:{start:x,end:k}}else o=null}o=o||{start:0,end:0}}else o=null;for(_l={focusedElem:e,selectionRange:o},hi=!1,X=t;X!==null;)if(t=X,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,X=e;else for(;X!==null;){t=X;try{var ee=t.alternate;if((t.flags&1024)!==0)switch(t.tag){case 0:case 11:case 15:break;case 1:if(ee!==null){var re=ee.memoizedProps,Ve=ee.memoizedState,R=t.stateNode,E=R.getSnapshotBeforeUpdate(t.elementType===t.type?re:Kt(t.type,re),Ve);R.__reactInternalSnapshotBeforeUpdate=E}break;case 3:var P=t.stateNode.containerInfo;P.nodeType===1?P.textContent="":P.nodeType===9&&P.documentElement&&P.removeChild(P.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(s(163))}}catch(W){$e(t,t.return,W)}if(e=t.sibling,e!==null){e.return=t.return,X=e;break}X=t.return}return ee=vh,vh=!1,ee}function bo(e,t,o){var a=t.updateQueue;if(a=a!==null?a.lastEffect:null,a!==null){var c=a=a.next;do{if((c.tag&e)===e){var f=c.destroy;c.destroy=void 0,f!==void 0&&du(t,o,f)}c=c.next}while(c!==a)}}function Yi(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var o=t=t.next;do{if((o.tag&e)===e){var a=o.create;o.destroy=a()}o=o.next}while(o!==t)}}function fu(e){var t=e.ref;if(t!==null){var o=e.stateNode;switch(e.tag){case 5:e=o;break;default:e=o}typeof t=="function"?t(e):t.current=e}}function wh(e){var t=e.alternate;t!==null&&(e.alternate=null,wh(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[on],delete t[uo],delete t[Tl],delete t[Lv],delete t[Mv])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function xh(e){return e.tag===5||e.tag===3||e.tag===4}function bh(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||xh(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.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 hu(e,t,o){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?o.nodeType===8?o.parentNode.insertBefore(e,t):o.insertBefore(e,t):(o.nodeType===8?(t=o.parentNode,t.insertBefore(e,o)):(t=o,t.appendChild(e)),o=o._reactRootContainer,o!=null||t.onclick!==null||(t.onclick=Ei));else if(a!==4&&(e=e.child,e!==null))for(hu(e,t,o),e=e.sibling;e!==null;)hu(e,t,o),e=e.sibling}function pu(e,t,o){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?o.insertBefore(e,t):o.appendChild(e);else if(a!==4&&(e=e.child,e!==null))for(pu(e,t,o),e=e.sibling;e!==null;)pu(e,t,o),e=e.sibling}var it=null,Gt=!1;function Hn(e,t,o){for(o=o.child;o!==null;)kh(e,t,o),o=o.sibling}function kh(e,t,o){if(sn&&typeof sn.onCommitFiberUnmount=="function")try{sn.onCommitFiberUnmount(ai,o)}catch{}switch(o.tag){case 5:ht||ms(o,t);case 6:var a=it,c=Gt;it=null,Hn(e,t,o),it=a,Gt=c,it!==null&&(Gt?(e=it,o=o.stateNode,e.nodeType===8?e.parentNode.removeChild(o):e.removeChild(o)):it.removeChild(o.stateNode));break;case 18:it!==null&&(Gt?(e=it,o=o.stateNode,e.nodeType===8?Nl(e.parentNode,o):e.nodeType===1&&Nl(e,o),Xs(e)):Nl(it,o.stateNode));break;case 4:a=it,c=Gt,it=o.stateNode.containerInfo,Gt=!0,Hn(e,t,o),it=a,Gt=c;break;case 0:case 11:case 14:case 15:if(!ht&&(a=o.updateQueue,a!==null&&(a=a.lastEffect,a!==null))){c=a=a.next;do{var f=c,y=f.destroy;f=f.tag,y!==void 0&&((f&2)!==0||(f&4)!==0)&&du(o,t,y),c=c.next}while(c!==a)}Hn(e,t,o);break;case 1:if(!ht&&(ms(o,t),a=o.stateNode,typeof a.componentWillUnmount=="function"))try{a.props=o.memoizedProps,a.state=o.memoizedState,a.componentWillUnmount()}catch(x){$e(o,t,x)}Hn(e,t,o);break;case 21:Hn(e,t,o);break;case 22:o.mode&1?(ht=(a=ht)||o.memoizedState!==null,Hn(e,t,o),ht=a):Hn(e,t,o);break;default:Hn(e,t,o)}}function Sh(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var o=e.stateNode;o===null&&(o=e.stateNode=new Xv),t.forEach(function(a){var c=l0.bind(null,e,a);o.has(a)||(o.add(a),a.then(c,c))})}}function Jt(e,t){var o=t.deletions;if(o!==null)for(var a=0;a<o.length;a++){var c=o[a];try{var f=e,y=t,x=y;e:for(;x!==null;){switch(x.tag){case 5:it=x.stateNode,Gt=!1;break e;case 3:it=x.stateNode.containerInfo,Gt=!0;break e;case 4:it=x.stateNode.containerInfo,Gt=!0;break e}x=x.return}if(it===null)throw Error(s(160));kh(f,y,c),it=null,Gt=!1;var k=c.alternate;k!==null&&(k.return=null),c.return=null}catch(O){$e(c,t,O)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)_h(t,e),t=t.sibling}function _h(e,t){var o=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Jt(t,e),un(e),a&4){try{bo(3,e,e.return),Yi(3,e)}catch(re){$e(e,e.return,re)}try{bo(5,e,e.return)}catch(re){$e(e,e.return,re)}}break;case 1:Jt(t,e),un(e),a&512&&o!==null&&ms(o,o.return);break;case 5:if(Jt(t,e),un(e),a&512&&o!==null&&ms(o,o.return),e.flags&32){var c=e.stateNode;try{Bs(c,"")}catch(re){$e(e,e.return,re)}}if(a&4&&(c=e.stateNode,c!=null)){var f=e.memoizedProps,y=o!==null?o.memoizedProps:f,x=e.type,k=e.updateQueue;if(e.updateQueue=null,k!==null)try{x==="input"&&f.type==="radio"&&f.name!=null&&Fs(c,f),Va(x,y);var O=Va(x,f);for(y=0;y<k.length;y+=2){var q=k[y],V=k[y+1];q==="style"?od(c,V):q==="dangerouslySetInnerHTML"?rd(c,V):q==="children"?Bs(c,V):I(c,q,V,O)}switch(x){case"input":Wr(c,f);break;case"textarea":ti(c,f);break;case"select":var $=c._wrapperState.wasMultiple;c._wrapperState.wasMultiple=!!f.multiple;var G=f.value;G!=null?yn(c,!!f.multiple,G,!1):$!==!!f.multiple&&(f.defaultValue!=null?yn(c,!!f.multiple,f.defaultValue,!0):yn(c,!!f.multiple,f.multiple?[]:"",!1))}c[uo]=f}catch(re){$e(e,e.return,re)}}break;case 6:if(Jt(t,e),un(e),a&4){if(e.stateNode===null)throw Error(s(162));c=e.stateNode,f=e.memoizedProps;try{c.nodeValue=f}catch(re){$e(e,e.return,re)}}break;case 3:if(Jt(t,e),un(e),a&4&&o!==null&&o.memoizedState.isDehydrated)try{Xs(t.containerInfo)}catch(re){$e(e,e.return,re)}break;case 4:Jt(t,e),un(e);break;case 13:Jt(t,e),un(e),c=e.child,c.flags&8192&&(f=c.memoizedState!==null,c.stateNode.isHidden=f,!f||c.alternate!==null&&c.alternate.memoizedState!==null||(gu=He())),a&4&&Sh(e);break;case 22:if(q=o!==null&&o.memoizedState!==null,e.mode&1?(ht=(O=ht)||q,Jt(t,e),ht=O):Jt(t,e),un(e),a&8192){if(O=e.memoizedState!==null,(e.stateNode.isHidden=O)&&!q&&(e.mode&1)!==0)for(X=e,q=e.child;q!==null;){for(V=X=q;X!==null;){switch($=X,G=$.child,$.tag){case 0:case 11:case 14:case 15:bo(4,$,$.return);break;case 1:ms($,$.return);var ee=$.stateNode;if(typeof ee.componentWillUnmount=="function"){a=$,o=$.return;try{t=a,ee.props=t.memoizedProps,ee.state=t.memoizedState,ee.componentWillUnmount()}catch(re){$e(a,o,re)}}break;case 5:ms($,$.return);break;case 22:if($.memoizedState!==null){Nh(V);continue}}G!==null?(G.return=$,X=G):Nh(V)}q=q.sibling}e:for(q=null,V=e;;){if(V.tag===5){if(q===null){q=V;try{c=V.stateNode,O?(f=c.style,typeof f.setProperty=="function"?f.setProperty("display","none","important"):f.display="none"):(x=V.stateNode,k=V.memoizedProps.style,y=k!=null&&k.hasOwnProperty("display")?k.display:null,x.style.display=sd("display",y))}catch(re){$e(e,e.return,re)}}}else if(V.tag===6){if(q===null)try{V.stateNode.nodeValue=O?"":V.memoizedProps}catch(re){$e(e,e.return,re)}}else if((V.tag!==22&&V.tag!==23||V.memoizedState===null||V===e)&&V.child!==null){V.child.return=V,V=V.child;continue}if(V===e)break e;for(;V.sibling===null;){if(V.return===null||V.return===e)break e;q===V&&(q=null),V=V.return}q===V&&(q=null),V.sibling.return=V.return,V=V.sibling}}break;case 19:Jt(t,e),un(e),a&4&&Sh(e);break;case 21:break;default:Jt(t,e),un(e)}}function un(e){var t=e.flags;if(t&2){try{e:{for(var o=e.return;o!==null;){if(xh(o)){var a=o;break e}o=o.return}throw Error(s(160))}switch(a.tag){case 5:var c=a.stateNode;a.flags&32&&(Bs(c,""),a.flags&=-33);var f=bh(e);pu(e,f,c);break;case 3:case 4:var y=a.stateNode.containerInfo,x=bh(e);hu(e,x,y);break;default:throw Error(s(161))}}catch(k){$e(e,e.return,k)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function e0(e,t,o){X=e,Eh(e)}function Eh(e,t,o){for(var a=(e.mode&1)!==0;X!==null;){var c=X,f=c.child;if(c.tag===22&&a){var y=c.memoizedState!==null||Qi;if(!y){var x=c.alternate,k=x!==null&&x.memoizedState!==null||ht;x=Qi;var O=ht;if(Qi=y,(ht=k)&&!O)for(X=c;X!==null;)y=X,k=y.child,y.tag===22&&y.memoizedState!==null?Th(c):k!==null?(k.return=y,X=k):Th(c);for(;f!==null;)X=f,Eh(f),f=f.sibling;X=c,Qi=x,ht=O}Ch(e)}else(c.subtreeFlags&8772)!==0&&f!==null?(f.return=c,X=f):Ch(e)}}function Ch(e){for(;X!==null;){var t=X;if((t.flags&8772)!==0){var o=t.alternate;try{if((t.flags&8772)!==0)switch(t.tag){case 0:case 11:case 15:ht||Yi(5,t);break;case 1:var a=t.stateNode;if(t.flags&4&&!ht)if(o===null)a.componentDidMount();else{var c=t.elementType===t.type?o.memoizedProps:Kt(t.type,o.memoizedProps);a.componentDidUpdate(c,o.memoizedState,a.__reactInternalSnapshotBeforeUpdate)}var f=t.updateQueue;f!==null&&Nf(t,f,a);break;case 3:var y=t.updateQueue;if(y!==null){if(o=null,t.child!==null)switch(t.child.tag){case 5:o=t.child.stateNode;break;case 1:o=t.child.stateNode}Nf(t,y,o)}break;case 5:var x=t.stateNode;if(o===null&&t.flags&4){o=x;var k=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":k.autoFocus&&o.focus();break;case"img":k.src&&(o.src=k.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var O=t.alternate;if(O!==null){var q=O.memoizedState;if(q!==null){var V=q.dehydrated;V!==null&&Xs(V)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(s(163))}ht||t.flags&512&&fu(t)}catch($){$e(t,t.return,$)}}if(t===e){X=null;break}if(o=t.sibling,o!==null){o.return=t.return,X=o;break}X=t.return}}function Nh(e){for(;X!==null;){var t=X;if(t===e){X=null;break}var o=t.sibling;if(o!==null){o.return=t.return,X=o;break}X=t.return}}function Th(e){for(;X!==null;){var t=X;try{switch(t.tag){case 0:case 11:case 15:var o=t.return;try{Yi(4,t)}catch(k){$e(t,o,k)}break;case 1:var a=t.stateNode;if(typeof a.componentDidMount=="function"){var c=t.return;try{a.componentDidMount()}catch(k){$e(t,c,k)}}var f=t.return;try{fu(t)}catch(k){$e(t,f,k)}break;case 5:var y=t.return;try{fu(t)}catch(k){$e(t,y,k)}}}catch(k){$e(t,t.return,k)}if(t===e){X=null;break}var x=t.sibling;if(x!==null){x.return=t.return,X=x;break}X=t.return}}var t0=Math.ceil,Ki=M.ReactCurrentDispatcher,mu=M.ReactCurrentOwner,Ft=M.ReactCurrentBatchConfig,Pe=0,tt=null,Qe=null,at=0,At=0,ys=Un(0),Xe=0,ko=null,kr=0,Gi=0,yu=0,So=null,kt=null,gu=0,gs=1/0,_n=null,Ji=!1,vu=null,Vn=null,Xi=!1,Wn=null,Zi=0,_o=0,wu=null,ea=-1,ta=0;function gt(){return(Pe&6)!==0?He():ea!==-1?ea:ea=He()}function Qn(e){return(e.mode&1)===0?1:(Pe&2)!==0&&at!==0?at&-at:Fv.transition!==null?(ta===0&&(ta=xd()),ta):(e=Ie,e!==0||(e=window.event,e=e===void 0?16:Rd(e.type)),e)}function Xt(e,t,o,a){if(50<_o)throw _o=0,wu=null,Error(s(185));Qs(e,o,a),((Pe&2)===0||e!==tt)&&(e===tt&&((Pe&2)===0&&(Gi|=o),Xe===4&&Yn(e,at)),St(e,a),o===1&&Pe===0&&(t.mode&1)===0&&(gs=He()+500,Ri&&Bn()))}function St(e,t){var o=e.callbackNode;Fg(e,t);var a=ci(e,e===tt?at:0);if(a===0)o!==null&&gd(o),e.callbackNode=null,e.callbackPriority=0;else if(t=a&-a,e.callbackPriority!==t){if(o!=null&&gd(o),t===1)e.tag===0?Dv(jh.bind(null,e)):mf(jh.bind(null,e)),Ov(function(){(Pe&6)===0&&Bn()}),o=null;else{switch(bd(a)){case 1:o=Xa;break;case 4:o=vd;break;case 16:o=ii;break;case 536870912:o=wd;break;default:o=ii}o=Fh(o,Rh.bind(null,e))}e.callbackPriority=t,e.callbackNode=o}}function Rh(e,t){if(ea=-1,ta=0,(Pe&6)!==0)throw Error(s(327));var o=e.callbackNode;if(vs()&&e.callbackNode!==o)return null;var a=ci(e,e===tt?at:0);if(a===0)return null;if((a&30)!==0||(a&e.expiredLanes)!==0||t)t=na(e,a);else{t=a;var c=Pe;Pe|=2;var f=Ah();(tt!==e||at!==t)&&(_n=null,gs=He()+500,_r(e,t));do try{s0();break}catch(x){Ph(e,x)}while(!0);Dl(),Ki.current=f,Pe=c,Qe!==null?t=0:(tt=null,at=0,t=Xe)}if(t!==0){if(t===2&&(c=Za(e),c!==0&&(a=c,t=xu(e,c))),t===1)throw o=ko,_r(e,0),Yn(e,a),St(e,He()),o;if(t===6)Yn(e,a);else{if(c=e.current.alternate,(a&30)===0&&!n0(c)&&(t=na(e,a),t===2&&(f=Za(e),f!==0&&(a=f,t=xu(e,f))),t===1))throw o=ko,_r(e,0),Yn(e,a),St(e,He()),o;switch(e.finishedWork=c,e.finishedLanes=a,t){case 0:case 1:throw Error(s(345));case 2:Er(e,kt,_n);break;case 3:if(Yn(e,a),(a&130023424)===a&&(t=gu+500-He(),10<t)){if(ci(e,0)!==0)break;if(c=e.suspendedLanes,(c&a)!==a){gt(),e.pingedLanes|=e.suspendedLanes&c;break}e.timeoutHandle=Cl(Er.bind(null,e,kt,_n),t);break}Er(e,kt,_n);break;case 4:if(Yn(e,a),(a&4194240)===a)break;for(t=e.eventTimes,c=-1;0<a;){var y=31-Wt(a);f=1<<y,y=t[y],y>c&&(c=y),a&=~f}if(a=c,a=He()-a,a=(120>a?120:480>a?480:1080>a?1080:1920>a?1920:3e3>a?3e3:4320>a?4320:1960*t0(a/1960))-a,10<a){e.timeoutHandle=Cl(Er.bind(null,e,kt,_n),a);break}Er(e,kt,_n);break;case 5:Er(e,kt,_n);break;default:throw Error(s(329))}}}return St(e,He()),e.callbackNode===o?Rh.bind(null,e):null}function xu(e,t){var o=So;return e.current.memoizedState.isDehydrated&&(_r(e,t).flags|=256),e=na(e,t),e!==2&&(t=kt,kt=o,t!==null&&bu(t)),e}function bu(e){kt===null?kt=e:kt.push.apply(kt,e)}function n0(e){for(var t=e;;){if(t.flags&16384){var o=t.updateQueue;if(o!==null&&(o=o.stores,o!==null))for(var a=0;a<o.length;a++){var c=o[a],f=c.getSnapshot;c=c.value;try{if(!Qt(f(),c))return!1}catch{return!1}}}if(o=t.child,t.subtreeFlags&16384&&o!==null)o.return=t,t=o;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 Yn(e,t){for(t&=~yu,t&=~Gi,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var o=31-Wt(t),a=1<<o;e[o]=-1,t&=~a}}function jh(e){if((Pe&6)!==0)throw Error(s(327));vs();var t=ci(e,0);if((t&1)===0)return St(e,He()),null;var o=na(e,t);if(e.tag!==0&&o===2){var a=Za(e);a!==0&&(t=a,o=xu(e,a))}if(o===1)throw o=ko,_r(e,0),Yn(e,t),St(e,He()),o;if(o===6)throw Error(s(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Er(e,kt,_n),St(e,He()),null}function ku(e,t){var o=Pe;Pe|=1;try{return e(t)}finally{Pe=o,Pe===0&&(gs=He()+500,Ri&&Bn())}}function Sr(e){Wn!==null&&Wn.tag===0&&(Pe&6)===0&&vs();var t=Pe;Pe|=1;var o=Ft.transition,a=Ie;try{if(Ft.transition=null,Ie=1,e)return e()}finally{Ie=a,Ft.transition=o,Pe=t,(Pe&6)===0&&Bn()}}function Su(){At=ys.current,Fe(ys)}function _r(e,t){e.finishedWork=null,e.finishedLanes=0;var o=e.timeoutHandle;if(o!==-1&&(e.timeoutHandle=-1,Av(o)),Qe!==null)for(o=Qe.return;o!==null;){var a=o;switch(Al(a),a.tag){case 1:a=a.type.childContextTypes,a!=null&&Ni();break;case 3:hs(),Fe(wt),Fe(ct),Vl();break;case 5:ql(a);break;case 4:hs();break;case 13:Fe(ze);break;case 19:Fe(ze);break;case 10:Fl(a.type._context);break;case 22:case 23:Su()}o=o.return}if(tt=e,Qe=e=Kn(e.current,null),at=At=t,Xe=0,ko=null,yu=Gi=kr=0,kt=So=null,wr!==null){for(t=0;t<wr.length;t++)if(o=wr[t],a=o.interleaved,a!==null){o.interleaved=null;var c=a.next,f=o.pending;if(f!==null){var y=f.next;f.next=c,a.next=y}o.pending=a}wr=null}return e}function Ph(e,t){do{var o=Qe;try{if(Dl(),Ui.current=qi,zi){for(var a=Be.memoizedState;a!==null;){var c=a.queue;c!==null&&(c.pending=null),a=a.next}zi=!1}if(br=0,et=Je=Be=null,yo=!1,go=0,mu.current=null,o===null||o.return===null){Xe=1,ko=t,Qe=null;break}e:{var f=e,y=o.return,x=o,k=t;if(t=at,x.flags|=32768,k!==null&&typeof k=="object"&&typeof k.then=="function"){var O=k,q=x,V=q.tag;if((q.mode&1)===0&&(V===0||V===11||V===15)){var $=q.alternate;$?(q.updateQueue=$.updateQueue,q.memoizedState=$.memoizedState,q.lanes=$.lanes):(q.updateQueue=null,q.memoizedState=null)}var G=nh(y);if(G!==null){G.flags&=-257,rh(G,y,x,f,t),G.mode&1&&th(f,O,t),t=G,k=O;var ee=t.updateQueue;if(ee===null){var re=new Set;re.add(k),t.updateQueue=re}else ee.add(k);break e}else{if((t&1)===0){th(f,O,t),_u();break e}k=Error(s(426))}}else if(Ue&&x.mode&1){var Ve=nh(y);if(Ve!==null){(Ve.flags&65536)===0&&(Ve.flags|=256),rh(Ve,y,x,f,t),Ll(ps(k,x));break e}}f=k=ps(k,x),Xe!==4&&(Xe=2),So===null?So=[f]:So.push(f),f=y;do{switch(f.tag){case 3:f.flags|=65536,t&=-t,f.lanes|=t;var R=Zf(f,k,t);Cf(f,R);break e;case 1:x=k;var E=f.type,P=f.stateNode;if((f.flags&128)===0&&(typeof E.getDerivedStateFromError=="function"||P!==null&&typeof P.componentDidCatch=="function"&&(Vn===null||!Vn.has(P)))){f.flags|=65536,t&=-t,f.lanes|=t;var W=eh(f,x,t);Cf(f,W);break e}}f=f.return}while(f!==null)}Ih(o)}catch(oe){t=oe,Qe===o&&o!==null&&(Qe=o=o.return);continue}break}while(!0)}function Ah(){var e=Ki.current;return Ki.current=qi,e===null?qi:e}function _u(){(Xe===0||Xe===3||Xe===2)&&(Xe=4),tt===null||(kr&268435455)===0&&(Gi&268435455)===0||Yn(tt,at)}function na(e,t){var o=Pe;Pe|=2;var a=Ah();(tt!==e||at!==t)&&(_n=null,_r(e,t));do try{r0();break}catch(c){Ph(e,c)}while(!0);if(Dl(),Pe=o,Ki.current=a,Qe!==null)throw Error(s(261));return tt=null,at=0,Xe}function r0(){for(;Qe!==null;)Oh(Qe)}function s0(){for(;Qe!==null&&!Rg();)Oh(Qe)}function Oh(e){var t=Dh(e.alternate,e,At);e.memoizedProps=e.pendingProps,t===null?Ih(e):Qe=t,mu.current=null}function Ih(e){var t=e;do{var o=t.alternate;if(e=t.return,(t.flags&32768)===0){if(o=Gv(o,t,At),o!==null){Qe=o;return}}else{if(o=Jv(o,t),o!==null){o.flags&=32767,Qe=o;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Xe=6,Qe=null;return}}if(t=t.sibling,t!==null){Qe=t;return}Qe=t=e}while(t!==null);Xe===0&&(Xe=5)}function Er(e,t,o){var a=Ie,c=Ft.transition;try{Ft.transition=null,Ie=1,o0(e,t,o,a)}finally{Ft.transition=c,Ie=a}return null}function o0(e,t,o,a){do vs();while(Wn!==null);if((Pe&6)!==0)throw Error(s(327));o=e.finishedWork;var c=e.finishedLanes;if(o===null)return null;if(e.finishedWork=null,e.finishedLanes=0,o===e.current)throw Error(s(177));e.callbackNode=null,e.callbackPriority=0;var f=o.lanes|o.childLanes;if(Ug(e,f),e===tt&&(Qe=tt=null,at=0),(o.subtreeFlags&2064)===0&&(o.flags&2064)===0||Xi||(Xi=!0,Fh(ii,function(){return vs(),null})),f=(o.flags&15990)!==0,(o.subtreeFlags&15990)!==0||f){f=Ft.transition,Ft.transition=null;var y=Ie;Ie=1;var x=Pe;Pe|=4,mu.current=null,Zv(e,o),_h(o,e),Ev(_l),hi=!!Sl,_l=Sl=null,e.current=o,e0(o),jg(),Pe=x,Ie=y,Ft.transition=f}else e.current=o;if(Xi&&(Xi=!1,Wn=e,Zi=c),f=e.pendingLanes,f===0&&(Vn=null),Og(o.stateNode),St(e,He()),t!==null)for(a=e.onRecoverableError,o=0;o<t.length;o++)c=t[o],a(c.value,{componentStack:c.stack,digest:c.digest});if(Ji)throw Ji=!1,e=vu,vu=null,e;return(Zi&1)!==0&&e.tag!==0&&vs(),f=e.pendingLanes,(f&1)!==0?e===wu?_o++:(_o=0,wu=e):_o=0,Bn(),null}function vs(){if(Wn!==null){var e=bd(Zi),t=Ft.transition,o=Ie;try{if(Ft.transition=null,Ie=16>e?16:e,Wn===null)var a=!1;else{if(e=Wn,Wn=null,Zi=0,(Pe&6)!==0)throw Error(s(331));var c=Pe;for(Pe|=4,X=e.current;X!==null;){var f=X,y=f.child;if((X.flags&16)!==0){var x=f.deletions;if(x!==null){for(var k=0;k<x.length;k++){var O=x[k];for(X=O;X!==null;){var q=X;switch(q.tag){case 0:case 11:case 15:bo(8,q,f)}var V=q.child;if(V!==null)V.return=q,X=V;else for(;X!==null;){q=X;var $=q.sibling,G=q.return;if(wh(q),q===O){X=null;break}if($!==null){$.return=G,X=$;break}X=G}}}var ee=f.alternate;if(ee!==null){var re=ee.child;if(re!==null){ee.child=null;do{var Ve=re.sibling;re.sibling=null,re=Ve}while(re!==null)}}X=f}}if((f.subtreeFlags&2064)!==0&&y!==null)y.return=f,X=y;else e:for(;X!==null;){if(f=X,(f.flags&2048)!==0)switch(f.tag){case 0:case 11:case 15:bo(9,f,f.return)}var R=f.sibling;if(R!==null){R.return=f.return,X=R;break e}X=f.return}}var E=e.current;for(X=E;X!==null;){y=X;var P=y.child;if((y.subtreeFlags&2064)!==0&&P!==null)P.return=y,X=P;else e:for(y=E;X!==null;){if(x=X,(x.flags&2048)!==0)try{switch(x.tag){case 0:case 11:case 15:Yi(9,x)}}catch(oe){$e(x,x.return,oe)}if(x===y){X=null;break e}var W=x.sibling;if(W!==null){W.return=x.return,X=W;break e}X=x.return}}if(Pe=c,Bn(),sn&&typeof sn.onPostCommitFiberRoot=="function")try{sn.onPostCommitFiberRoot(ai,e)}catch{}a=!0}return a}finally{Ie=o,Ft.transition=t}}return!1}function Lh(e,t,o){t=ps(o,t),t=Zf(e,t,1),e=qn(e,t,1),t=gt(),e!==null&&(Qs(e,1,t),St(e,t))}function $e(e,t,o){if(e.tag===3)Lh(e,e,o);else for(;t!==null;){if(t.tag===3){Lh(t,e,o);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(Vn===null||!Vn.has(a))){e=ps(o,e),e=eh(t,e,1),t=qn(t,e,1),e=gt(),t!==null&&(Qs(t,1,e),St(t,e));break}}t=t.return}}function i0(e,t,o){var a=e.pingCache;a!==null&&a.delete(t),t=gt(),e.pingedLanes|=e.suspendedLanes&o,tt===e&&(at&o)===o&&(Xe===4||Xe===3&&(at&130023424)===at&&500>He()-gu?_r(e,0):yu|=o),St(e,t)}
vendor: 4,477 bytes, line 40
40function Mh(e,t){t===0&&((e.mode&1)===0?t=1:(t=ui,ui<<=1,(ui&130023424)===0&&(ui=4194304)));var o=gt();e=bn(e,t),e!==null&&(Qs(e,t,o),St(e,o))}function a0(e){var t=e.memoizedState,o=0;t!==null&&(o=t.retryLane),Mh(e,o)}function l0(e,t){var o=0;switch(e.tag){case 13:var a=e.stateNode,c=e.memoizedState;c!==null&&(o=c.retryLane);break;case 19:a=e.stateNode;break;default:throw Error(s(314))}a!==null&&a.delete(t),Mh(e,o)}var Dh;Dh=function(e,t,o){if(e!==null)if(e.memoizedProps!==t.pendingProps||wt.current)bt=!0;else{if((e.lanes&o)===0&&(t.flags&128)===0)return bt=!1,Kv(e,t,o);bt=(e.flags&131072)!==0}else bt=!1,Ue&&(t.flags&1048576)!==0&&yf(t,Pi,t.index);switch(t.lanes=0,t.tag){case 2:var a=t.type;Wi(e,t),e=t.pendingProps;var c=is(t,ct.current);fs(t,o),c=Yl(null,t,a,e,c,o);var f=Kl();return t.flags|=1,typeof c=="object"&&c!==null&&typeof c.render=="function"&&c.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,xt(a)?(f=!0,Ti(t)):f=!1,t.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,Bl(t),c.updater=Hi,t.stateNode=c,c._reactInternals=t,tu(t,a,e,o),t=ou(null,t,a,!0,f,o)):(t.tag=0,Ue&&f&&Pl(t),yt(null,t,c,o),t=t.child),t;case 16:a=t.elementType;e:{switch(Wi(e,t),e=t.pendingProps,c=a._init,a=c(a._payload),t.type=a,c=t.tag=c0(a),e=Kt(a,e),c){case 0:t=su(null,t,a,e,o);break e;case 1:t=uh(null,t,a,e,o);break e;case 11:t=sh(null,t,a,e,o);break e;case 14:t=oh(null,t,a,Kt(a.type,e),o);break e}throw Error(s(306,a,""))}return t;case 0:return a=t.type,c=t.pendingProps,c=t.elementType===a?c:Kt(a,c),su(e,t,a,c,o);case 1:return a=t.type,c=t.pendingProps,c=t.elementType===a?c:Kt(a,c),uh(e,t,a,c,o);case 3:e:{if(ch(t),e===null)throw Error(s(387));a=t.pendingProps,f=t.memoizedState,c=f.element,Ef(e,t),Di(t,a,null,o);var y=t.memoizedState;if(a=y.element,f.isDehydrated)if(f={element:a,isDehydrated:!1,cache:y.cache,pendingSuspenseBoundaries:y.pendingSuspenseBoundaries,transitions:y.transitions},t.updateQueue.baseState=f,t.memoizedState=f,t.flags&256){c=ps(Error(s(423)),t),t=dh(e,t,a,o,c);break e}else if(a!==c){c=ps(Error(s(424)),t),t=dh(e,t,a,o,c);break e}else for(Pt=Fn(t.stateNode.containerInfo.firstChild),jt=t,Ue=!0,Yt=null,o=Sf(t,null,a,o),t.child=o;o;)o.flags=o.flags&-3|4096,o=o.sibling;else{if(us(),a===c){t=Sn(e,t,o);break e}yt(e,t,a,o)}t=t.child}return t;case 5:return Tf(t),e===null&&Il(t),a=t.type,c=t.pendingProps,f=e!==null?e.memoizedProps:null,y=c.children,El(a,c)?y=null:f!==null&&El(a,f)&&(t.flags|=32),lh(e,t),yt(e,t,y,o),t.child;case 6:return e===null&&Il(t),null;case 13:return fh(e,t,o);case 4:return $l(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=cs(t,null,a,o):yt(e,t,a,o),t.child;case 11:return a=t.type,c=t.pendingProps,c=t.elementType===a?c:Kt(a,c),sh(e,t,a,c,o);case 7:return yt(e,t,t.pendingProps,o),t.child;case 8:return yt(e,t,t.pendingProps.children,o),t.child;case 12:return yt(e,t,t.pendingProps.children,o),t.child;case 10:e:{if(a=t.type._context,c=t.pendingProps,f=t.memoizedProps,y=c.value,Me(Ii,a._currentValue),a._currentValue=y,f!==null)if(Qt(f.value,y)){if(f.children===c.children&&!wt.current){t=Sn(e,t,o);break e}}else for(f=t.child,f!==null&&(f.return=t);f!==null;){var x=f.dependencies;if(x!==null){y=f.child;for(var k=x.firstContext;k!==null;){if(k.context===a){if(f.tag===1){k=kn(-1,o&-o),k.tag=2;var O=f.updateQueue;if(O!==null){O=O.shared;var q=O.pending;q===null?k.next=k:(k.next=q.next,q.next=k),O.pending=k}}f.lanes|=o,k=f.alternate,k!==null&&(k.lanes|=o),Ul(f.return,o,t),x.lanes|=o;break}k=k.next}}else if(f.tag===10)y=f.type===t.type?null:f.child;else if(f.tag===18){if(y=f.return,y===null)throw Error(s(341));y.lanes|=o,x=y.alternate,x!==null&&(x.lanes|=o),Ul(y,o,t),y=f.sibling}else y=f.child;if(y!==null)y.return=f;else for(y=f;y!==null;){if(y===t){y=null;break}if(f=y.sibling,f!==null){f.return=y.return,y=f;break}y=y.return}f=y}yt(e,t,c.children,o),t=t.child}return t;case 9:return c=t.type,a=t.pendingProps.children,fs(t,o),c=Mt(c),a=a(c),t.flags|=1,yt(e,t,a,o),t.child;case 14:return a=t.type,c=Kt(a,t.pendingProps),c=Kt(a.type,c),oh(e,t,a,c,o);case 15:return ih(e,t,t.type,t.pendingProps,o);case 17:return a=t.type,c=t.pendingProps,c=t.elementType===a?c:Kt(a,c),Wi(e,t),t.tag=1,xt(a)?(e=!0,Ti(t)):e=!1,fs(t,o),Jf(t,a,c),tu(t,a,c,o),ou(null,t,a,!0,e,o);case 19:return ph(e,t,o);case 22:return ah(e,t,o)}throw Error(s(156,t.tag))};function Fh(e,t){return yd(e,t)}function u0(e,t,o,a){this.tag=e,this.key=o,this.sibling=this.child=this.return=this.stateNode=this.t
vendor: 9,697 bytes, line 40
40ype=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ut(e,t,o,a){return new u0(e,t,o,a)}function Eu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function c0(e){if(typeof e=="function")return Eu(e)?1:0;if(e!=null){if(e=e.$$typeof,e===be)return 11;if(e===ke)return 14}return 2}function Kn(e,t){var o=e.alternate;return o===null?(o=Ut(e.tag,t,e.key,e.mode),o.elementType=e.elementType,o.type=e.type,o.stateNode=e.stateNode,o.alternate=e,e.alternate=o):(o.pendingProps=t,o.type=e.type,o.flags=0,o.subtreeFlags=0,o.deletions=null),o.flags=e.flags&14680064,o.childLanes=e.childLanes,o.lanes=e.lanes,o.child=e.child,o.memoizedProps=e.memoizedProps,o.memoizedState=e.memoizedState,o.updateQueue=e.updateQueue,t=e.dependencies,o.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},o.sibling=e.sibling,o.index=e.index,o.ref=e.ref,o}function ra(e,t,o,a,c,f){var y=2;if(a=e,typeof e=="function")Eu(e)&&(y=1);else if(typeof e=="string")y=5;else e:switch(e){case ie:return Cr(o.children,c,f,t);case z:y=8,c|=8;break;case Y:return e=Ut(12,o,t,c|2),e.elementType=Y,e.lanes=f,e;case ye:return e=Ut(13,o,t,c),e.elementType=ye,e.lanes=f,e;case ve:return e=Ut(19,o,t,c),e.elementType=ve,e.lanes=f,e;case _e:return sa(o,c,f,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case le:y=10;break e;case K:y=9;break e;case be:y=11;break e;case ke:y=14;break e;case xe:y=16,a=null;break e}throw Error(s(130,e==null?e:typeof e,""))}return t=Ut(y,o,t,c),t.elementType=e,t.type=a,t.lanes=f,t}function Cr(e,t,o,a){return e=Ut(7,e,a,t),e.lanes=o,e}function sa(e,t,o,a){return e=Ut(22,e,a,t),e.elementType=_e,e.lanes=o,e.stateNode={isHidden:!1},e}function Cu(e,t,o){return e=Ut(6,e,null,t),e.lanes=o,e}function Nu(e,t,o){return t=Ut(4,e.children!==null?e.children:[],e.key,t),t.lanes=o,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function d0(e,t,o,a,c){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=el(0),this.expirationTimes=el(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=el(0),this.identifierPrefix=a,this.onRecoverableError=c,this.mutableSourceEagerHydrationData=null}function Tu(e,t,o,a,c,f,y,x,k){return e=new d0(e,t,o,x,k),t===1?(t=1,f===!0&&(t|=8)):t=0,f=Ut(3,null,null,t),e.current=f,f.stateNode=e,f.memoizedState={element:a,isDehydrated:o,cache:null,transitions:null,pendingSuspenseBoundaries:null},Bl(f),e}function f0(e,t,o){var a=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:se,key:a==null?null:""+a,children:e,containerInfo:t,implementation:o}}function Uh(e){if(!e)return zn;e=e._reactInternals;e:{if(pr(e)!==e||e.tag!==1)throw Error(s(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(xt(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(s(171))}if(e.tag===1){var o=e.type;if(xt(o))return hf(e,o,t)}return t}function zh(e,t,o,a,c,f,y,x,k){return e=Tu(o,a,!0,e,c,f,y,x,k),e.context=Uh(null),o=e.current,a=gt(),c=Qn(o),f=kn(a,c),f.callback=t??null,qn(o,f,c),e.current.lanes=c,Qs(e,c,a),St(e,a),e}function oa(e,t,o,a){var c=t.current,f=gt(),y=Qn(c);return o=Uh(o),t.context===null?t.context=o:t.pendingContext=o,t=kn(f,y),t.payload={element:e},a=a===void 0?null:a,a!==null&&(t.callback=a),e=qn(c,t,y),e!==null&&(Xt(e,c,y,f),Mi(e,c,y)),y}function ia(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function Bh(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var o=e.retryLane;e.retryLane=o!==0&&o<t?o:t}}function Ru(e,t){Bh(e,t),(e=e.alternate)&&Bh(e,t)}function h0(){return null}var $h=typeof reportError=="function"?reportError:function(e){console.error(e)};function ju(e){this._internalRoot=e}aa.prototype.render=ju.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(s(409));oa(e,t,null,null)},aa.prototype.unmount=ju.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Sr(function(){oa(null,e,null,null)}),t[gn]=null}};function aa(e){this._internalRoot=e}aa.prototype.unstable_scheduleHydration=function(e){if(e){var t=_d();e={blockedOn:null,target:e,priority:t};for(var o=0;o<Ln.length&&t!==0&&t<Ln[o].priority;o++);Ln.splice(o,0,e),o===0&&Nd(e)}};function Pu(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function la(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function qh(){}function p0(e,t,o,a,c){if(c){if(typeof a=="function"){var f=a;a=function(){var O=ia(y);f.call(O)}}var y=zh(t,a,e,0,null,!1,!1,"",qh);return e._reactRootContainer=y,e[gn]=y.current,ao(e.nodeType===8?e.parentNode:e),Sr(),y}for(;c=e.lastChild;)e.removeChild(c);if(typeof a=="function"){var x=a;a=function(){var O=ia(k);x.call(O)}}var k=Tu(e,0,!1,null,null,!1,!1,"",qh);return e._reactRootContainer=k,e[gn]=k.current,ao(e.nodeType===8?e.parentNode:e),Sr(function(){oa(t,k,o,a)}),k}function ua(e,t,o,a,c){var f=o._reactRootContainer;if(f){var y=f;if(typeof c=="function"){var x=c;c=function(){var k=ia(y);x.call(k)}}oa(t,y,e,c)}else y=p0(o,t,e,c,a);return ia(y)}kd=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var o=Ws(t.pendingLanes);o!==0&&(tl(t,o|1),St(t,He()),(Pe&6)===0&&(gs=He()+500,Bn()))}break;case 13:Sr(function(){var a=bn(e,1);if(a!==null){var c=gt();Xt(a,e,1,c)}}),Ru(e,1)}},nl=function(e){if(e.tag===13){var t=bn(e,134217728);if(t!==null){var o=gt();Xt(t,e,134217728,o)}Ru(e,134217728)}},Sd=function(e){if(e.tag===13){var t=Qn(e),o=bn(e,t);if(o!==null){var a=gt();Xt(o,e,t,a)}Ru(e,t)}},_d=function(){return Ie},Ed=function(e,t){var o=Ie;try{return Ie=e,t()}finally{Ie=o}},Ya=function(e,t,o){switch(t){case"input":if(Wr(e,o),t=o.name,o.type==="radio"&&t!=null){for(o=e;o.parentNode;)o=o.parentNode;for(o=o.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<o.length;t++){var a=o[t];if(a!==e&&a.form===e.form){var c=Ci(a);if(!c)throw Error(s(90));rn(a),Wr(a,c)}}}break;case"textarea":ti(e,o);break;case"select":t=o.value,t!=null&&yn(e,!!o.multiple,t,!1)}},ud=ku,cd=Sr;var m0={usingClientEntryPoint:!1,Events:[co,ss,Ci,ad,ld,ku]},Eo={findFiberByHostInstance:mr,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},y0={bundleType:Eo.bundleType,version:Eo.version,rendererPackageName:Eo.rendererPackageName,rendererConfig:Eo.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:M.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=pd(e),e===null?null:e.stateNode},findFiberByHostInstance:Eo.findFiberByHostInstance||h0,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var ca=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ca.isDisabled&&ca.supportsFiber)try{ai=ca.inject(y0),sn=ca}catch{}}return _t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=m0,_t.createPortal=function(e,t){var o=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Pu(t))throw Error(s(200));return f0(e,t,null,o)},_t.createRoot=function(e,t){if(!Pu(e))throw Error(s(299));var o=!1,a="",c=$h;return t!=null&&(t.unstable_strictMode===!0&&(o=!0),t.identifierPrefix!==void 0&&(a=t.identifierPrefix),t.onRecoverableError!==void 0&&(c=t.onRecoverableError)),t=Tu(e,1,!1,null,null,o,!1,a,c),e[gn]=t.current,ao(e.nodeType===8?e.parentNode:e),new ju(t)},_t.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(s(188)):(e=Object.keys(e).join(","),Error(s(268,e)));return e=pd(t),e=e===null?null:e.stateNode,e},_t.flushSync=function(e){return Sr(e)},_t.hydrate=function(e,t,o){if(!la(t))throw Error(s(200));return ua(null,e,t,!0,o)},_t.hydrateRoot=function(e,t,o){if(!Pu(e))throw Error(s(405));var a=o!=null&&o.hydratedSources||null,c=!1,f="",y=$h;if(o!=null&&(o.unstable_strictMode===!0&&(c=!0),o.identifierPrefix!==void 0&&(f=o.identifierPrefix),o.onRecoverableError!==void 0&&(y=o.onRecoverableError)),t=zh(t,null,e,1,o??null,c,!1,f,y),e[gn]=t.current,ao(e),a)for(e=0;e<a.length;e++)o=a[e],c=o._getVersion,c=c(o._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[o,c]:t.mutableSourceEagerHydrationData.push(o,c);return new aa(t)},_t.render=function(e,t,o){if(!la(t))throw Error(s(200));return ua(null,e,t,!1,o)},_t.unmountComponentAtNode=function(e){if(!la(e))throw Error(s(40));return e._reactRootContainer?(Sr(function(){ua(null,null,e,!1,function(){e._reactRootContainer=null,e[gn]=null})}),!0):!1},_t.unstable_batchedUpdates=ku,_t.unstable_renderSubtreeIntoContainer=function(e,t,o,a){if(!la(o))throw Error(s(200));if(e==null||e._reactInternals===void 0)throw Error(s(38));return ua(e,t,o,!1,a)},_t.version="18.3.1-next-f1338f8080-20240426",_t}var Xh;
40function Pm(){if(Xh)return Lu.exports;Xh=1;function r(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(r)}catch(n){console.error(n)}}return r(),Lu.exports=E0(),Lu.exports}var Zh;function C0(){if(Zh)return fa;Zh=1;var r=Pm();return fa.createRoot=r.createRoot,fa.hydrateRoot=r.hydrateRoot,fa}var N0=C0();const T0=Rm(N0),R0=20,j0=1e6,Rn={ADD_TOAST:"ADD_TOAST",UPDATE_TOAST:"UPDATE_TOAST",DISMISS_TOAST:"DISMISS_TOAST",REMOVE_TOAST:"REMOVE_TOAST"};let Fu=0;function P0(){return Fu=(Fu+1)%Number.MAX_VALUE,Fu.toString()}const Uu=new Map,ep=r=>{if(Uu.has(r))return;const n=setTimeout(()=>{Uu.delete(r),Mo({type:Rn.REMOVE_TOAST,toastId:r})},j0);Uu.set(r,n)},A0=(r,n)=>{switch(n.type){case Rn.ADD_TOAST:return{...r,toasts:[n.toast,...r.toasts].slice(0,R0)};case Rn.UPDATE_TOAST:return{...r,toasts:r.toasts.map(s=>s.id===n.toast.id?{...s,...n.toast}:s)};case Rn.DISMISS_TOAST:{const{toastId:s}=n;return s?ep(s):r.toasts.forEach(i=>{ep(i.id)}),{...r,toasts:r.toasts.map(i=>i.id===s||s===void 0?{...i,open:!1}:i)}}case Rn.REMOVE_TOAST:return n.toastId===void 0?{...r,toasts:[]}:{...r,toasts:r.toasts.filter(s=>s.id!==n.toastId)}}},wa=[];let xa={toasts:[]};function Mo(r){xa=A0(xa,r),wa.forEach(n=>{n(xa)})}function O0({...r}){const n=P0(),s=l=>Mo({type:Rn.UPDATE_TOAST,toast:{...l,id:n}}),i=()=>Mo({type:Rn.DISMISS_TOAST,toastId:n});return Mo({type:Rn.ADD_TOAST,toast:{...r,id:n,open:!0,onOpenChange:l=>{l||i()}}}),{id:n,dismiss:i,update:s}}function I0(){const[r,n]=A.useState(xa);return A.useEffect(()=>(wa.push(n),()=>{const s=wa.indexOf(n);s>-1&&wa.splice(s,1)}),[r]),{...r,toast:O0,dismiss:s=>Mo({type:Rn.DISMISS_TOAST,toastId:s})}}function Am(r){var n,s,i="";if(typeof r=="string"||typeof r=="number")i+=r;else if(typeof r=="object")if(Array.isArray(r)){var l=r.length;for(n=0;n<l;n++)r[n]&&(s=Am(r[n]))&&(i&&(i+=" "),i+=s)}else for(s in r)r[s]&&(i&&(i+=" "),i+=s);return i}function Om(){for(var r,n,s=0,i="",l=arguments.length;s<l;s++)(r=arguments[s])&&(n=Am(r))&&(i&&(i+=" "),i+=n);return i}const tp=r=>typeof r=="boolean"?`${r}`:r===0?"0":r,np=Om,Ac=(r,n)=>s=>{var i;if((n==null?void 0:n.variants)==null)return np(r,s==null?void 0:s.class,s==null?void 0:s.className);const{variants:l,defaultVariants:u}=n,d=Object.keys(l).map(g=>{const v=s==null?void 0:s[g],w=u==null?void 0:u[g];if(v===null)return null;const T=tp(v)||tp(w);return l[g][T]}),p=s&&Object.entries(s).reduce((g,v)=>{let[w,T]=v;return T===void 0||(g[w]=T),g},{}),m=n==null||(i=n.compoundVariants)===null||i===void 0?void 0:i.reduce((g,v)=>{let{class:w,className:T,...F}=v;return Object.entries(F).every(C=>{let[_,b]=C;return Array.isArray(b)?b.includes({...u,...p}[_]):{...u,...p}[_]===b})?[...g,w,T]:g},[]);return np(r,d,m,s==null?void 0:s.class,s==null?void 0:s.className)};/**
41 * @license lucide-react v0.475.0 - ISC
42 *
43 * This source code is licensed under the ISC license.
44 * See the LICENSE file in the root directory of this source tree.
45 */const L0=r=>r.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Im=(...r)=>r.filter((n,s,i)=>!!n&&n.trim()!==""&&i.indexOf(n)===s).join(" ").trim();/**
46 * @license lucide-react v0.475.0 - ISC
47 *
48 * This source code is licensed under the ISC license.
49 * See the LICENSE file in the root directory of this source tree.
50 */var M0={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
51 * @license lucide-react v0.475.0 - ISC
52 *
53 * This source code is licensed under the ISC license.
54 * See the LICENSE file in the root directory of this source tree.
55 */const D0=A.forwardRef(({color:r="currentColor",size:n=24,strokeWidth:s=2,absoluteStrokeWidth:i,className:l="",children:u,iconNode:d,...p},m)=>A.createElement("svg",{ref:m,...M0,width:n,height:n,stroke:r,strokeWidth:i?Number(s)*24/Number(n):s,className:Im("lucide",l),...p},[...d.map(([g,v])=>A.createElement(g,v)),...Array.isArray(u)?u:[u]]));/**
56 * @license lucide-react v0.475.0 - ISC
57 *
58 * This source code is licensed under the ISC license.
59 * See the LICENSE file in the root directory of this source tree.
60 */const ot=(r,n)=>{const s=A.forwardRef(({className:i,...l},u)=>A.createElement(D0,{ref:u,iconNode:n,className:Im(`lucide-${L0(r)}`,i),...l}));return s.displayName=`${r}`,s};/**
61 * @license lucide-react v0.475.0 - ISC
62 *
63 * This source code is licensed under the ISC license.
64 * See the LICENSE file in the root directory of this source tree.
65 */const F0=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],rp=ot("ArrowLeft",F0);/**
66 * @license lucide-react v0.475.0 - ISC
67 *
68 * This source code is licensed under the ISC license.
69 * See the LICENSE file in the root directory of this source tree.
70 */const U0=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],sp=ot("ArrowRight",U0);/**
71 * @license lucide-react v0.475.0 - ISC
72 *
73 * This source code is licensed under the ISC license.
74 * See the LICENSE file in the root directory of this source tree.
75 */const z0=[["path",{d:"M16 20V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16",key:"jecpp"}],["rect",{width:"20",height:"14",x:"2",y:"6",rx:"2",key:"i6l2r4"}]],B0=ot("Briefcase",z0);/**
76 * @license lucide-react v0.475.0 - ISC
77 *
78 * This source code is licensed under the ISC license.
79 * See the LICENSE file in the root directory of this source tree.
80 */const $0=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]],op=ot("Calendar",$0);/**
81 * @license lucide-react v0.475.0 - ISC
82 *
83 * This source code is licensed under the ISC license.
84 * See the LICENSE file in the root directory of this source tree.
85 */const q0=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],H0=ot("ChevronDown",q0);/**
86 * @license lucide-react v0.475.0 - ISC
87 *
88 * This source code is licensed under the ISC license.
89 * See the LICENSE file in the root directory of this source tree.
90 */const V0=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],W0=ot("ChevronUp",V0);/**
91 * @license lucide-react v0.475.0 - ISC
92 *
93 * This source code is licensed under the ISC license.
94 * See the LICENSE file in the root directory of this source tree.
95 */const Q0=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],Y0=ot("CircleAlert",Q0);/**
96 * @license lucide-react v0.475.0 - ISC
97 *
98 * This source code is licensed under the ISC license.
99 * See the LICENSE file in the root directory of this source tree.
100 */const K0=[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],ws=ot("CircleCheckBig",K0);/**
101 * @license lucide-react v0.475.0 - ISC
102 *
103 * This source code is licensed under the ISC license.
104 * See the LICENSE file in the root directory of this source tree.
105 */const G0=[["line",{x1:"12",x2:"12",y1:"2",y2:"22",key:"7eqyqh"}],["path",{d:"M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6",key:"1b0p4s"}]],Ta=ot("DollarSign",G0);/**
106 * @license lucide-react v0.475.0 - ISC
107 *
108 * This source code is licensed under the ISC license.
109 * See the LICENSE file in the root directory of this source tree.
110 */const J0=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],X0=ot("ExternalLink",J0);/**
111 * @license lucide-react v0.475.0 - ISC
112 *
113 * This source code is licensed under the ISC license.
114 * See the LICENSE file in the root directory of this source tree.
115 */const Z0=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M12 18v-6",key:"17g6i2"}],["path",{d:"m9 15 3 3 3-3",key:"1npd3o"}]],ip=ot("FileDown",Z0);/**
116 * @license lucide-react v0.475.0 - ISC
117 *
118 * This source code is licensed under the ISC license.
119 * See the LICENSE file in the root directory of this source tree.
120 */const ew=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],Lm=ot("LoaderCircle",ew);/**
121 * @license lucide-react v0.475.0 - ISC
122 *
123 * This source code is licensed under the ISC license.
124 * See the LICENSE file in the root directory of this source tree.
125 */const tw=[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]],nw=ot("MapPin",tw);/**
126 * @license lucide-react v0.475.0 - ISC
127 *
128 * This source code is licensed under the ISC license.
129 * See the LICENSE file in the root directory of this source tree.
130 */const rw=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"6",key:"1vlfrh"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]],sw=ot("Target",rw);/**
131 * @license lucide-react v0.475.0 - ISC
132 *
133 * This source code is licensed under the ISC license.
134 * See the LICENSE file in the root directory of this source tree.
135 */const ow=[["polyline",{points:"22 17 13.5 8.5 8.5 13.5 2 7",key:"1r2t7k"}],["polyline",{points:"16 17 22 17 22 11",key:"11uiuu"}]],iw=ot("TrendingDown",ow);/**
136 * @license lucide-react v0.475.0 - ISC
137 *
138 * This source code is licensed under the ISC license.
139 * See the LICENSE file in the root directory of this source tree.
140 */const aw=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],lw=ot("TriangleAlert",aw);/**
141 * @license lucide-react v0.475.0 - ISC
142 *
143 * This source code is licensed under the ISC license.
144 * See the LICENSE file in the root directory of this source tree.
145 */const uw=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]],Mm=ot("Users",uw);/**
146 * @license lucide-react v0.475.0 - ISC
147 *
148 * This source code is licensed under the ISC license.
149 * See the LICENSE file in the root directory of this source tree.
150 */const cw=[["path",{d:"M18 6 6 18",key:"1bl5f8"}
vendor: 3,665 bytes, line 150
150],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],dw=ot("X",cw),fw=(r,n)=>{const s=new Array(r.length+n.length);for(let i=0;i<r.length;i++)s[i]=r[i];for(let i=0;i<n.length;i++)s[r.length+i]=n[i];return s},hw=(r,n)=>({classGroupId:r,validator:n}),Dm=(r=new Map,n=null,s)=>({nextPart:r,validators:n,classGroupId:s}),Ra="-",ap=[],pw="arbitrary..",mw=r=>{const n=gw(r),{conflictingClassGroups:s,conflictingClassGroupModifiers:i}=r;return{getClassGroupId:d=>{if(d.startsWith("[")&&d.endsWith("]"))return yw(d);const p=d.split(Ra),m=p[0]===""&&p.length>1?1:0;return Fm(p,m,n)},getConflictingClassGroupIds:(d,p)=>{if(p){const m=i[d],g=s[d];return m?g?fw(g,m):m:g||ap}return s[d]||ap}}},Fm=(r,n,s)=>{if(r.length-n===0)return s.classGroupId;const l=r[n],u=s.nextPart.get(l);if(u){const g=Fm(r,n+1,u);if(g)return g}const d=s.validators;if(d===null)return;const p=n===0?r.join(Ra):r.slice(n).join(Ra),m=d.length;for(let g=0;g<m;g++){const v=d[g];if(v.validator(p))return v.classGroupId}},yw=r=>r.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const n=r.slice(1,-1),s=n.indexOf(":"),i=n.slice(0,s);return i?pw+i:void 0})(),gw=r=>{const{theme:n,classGroups:s}=r;return vw(s,n)},vw=(r,n)=>{const s=Dm();for(const i in r){const l=r[i];Oc(l,s,i,n)}return s},Oc=(r,n,s,i)=>{const l=r.length;for(let u=0;u<l;u++){const d=r[u];ww(d,n,s,i)}},ww=(r,n,s,i)=>{if(typeof r=="string"){xw(r,n,s);return}if(typeof r=="function"){bw(r,n,s,i);return}kw(r,n,s,i)},xw=(r,n,s)=>{const i=r===""?n:Um(n,r);i.classGroupId=s},bw=(r,n,s,i)=>{if(Sw(r)){Oc(r(i),n,s,i);return}n.validators===null&&(n.validators=[]),n.validators.push(hw(s,r))},kw=(r,n,s,i)=>{const l=Object.entries(r),u=l.length;for(let d=0;d<u;d++){const[p,m]=l[d];Oc(m,Um(n,p),s,i)}},Um=(r,n)=>{let s=r;const i=n.split(Ra),l=i.length;for(let u=0;u<l;u++){const d=i[u];let p=s.nextPart.get(d);p||(p=Dm(),s.nextPart.set(d,p)),s=p}return s},Sw=r=>"isThemeGetter"in r&&r.isThemeGetter===!0,_w=r=>{if(r<1)return{get:()=>{},set:()=>{}};let n=0,s=Object.create(null),i=Object.create(null);const l=(u,d)=>{s[u]=d,n++,n>r&&(n=0,i=s,s=Object.create(null))};return{get(u){let d=s[u];if(d!==void 0)return d;if((d=i[u])!==void 0)return l(u,d),d},set(u,d){u in s?s[u]=d:l(u,d)}}},Zu="!",lp=":",Ew=[],up=(r,n,s,i,l)=>({modifiers:r,hasImportantModifier:n,baseClassName:s,maybePostfixModifierPosition:i,isExternal:l}),Cw=r=>{const{prefix:n,experimentalParseClassName:s}=r;let i=l=>{const u=[];let d=0,p=0,m=0,g;const v=l.length;for(let _=0;_<v;_++){const b=l[_];if(d===0&&p===0){if(b===lp){u.push(l.slice(m,_)),m=_+1;continue}if(b==="/"){g=_;continue}}b==="["?d++:b==="]"?d--:b==="("?p++:b===")"&&p--}const w=u.length===0?l:l.slice(m);let T=w,F=!1;w.endsWith(Zu)?(T=w.slice(0,-1),F=!0):w.startsWith(Zu)&&(T=w.slice(1),F=!0);const C=g&&g>m?g-m:void 0;return up(u,F,T,C)};if(n){const l=n+lp,u=i;i=d=>d.startsWith(l)?u(d.slice(l.length)):up(Ew,!1,d,void 0,!0)}if(s){const l=i;i=u=>s({className:u,parseClassName:l})}return i},Nw=r=>{const n=new Map;return r.orderSensitiveModifiers.forEach((s,i)=>{n.set(s,1e6+i)}),s=>{const i=[];let l=[];for(let u=0;u<s.length;u++){const d=s[u],p=d[0]==="[",m=n.has(d);p||m?(l.length>0&&(l.sort(),i.push(...l),l=[]),i.push(d)):l.push(d)}return l.length>0&&(l.sort(),i.push(...l)),i}},Tw=r=>({cache:_w(r.cacheSize),parseClassName:Cw(r),sortModifiers:Nw(r),...mw(r)}),Rw=/\s+/,jw=(r,n)=>{const{parseClassName:s,getClassGroupId:i,getConflictingClassGroupIds:l,sortModifiers:u}=n,d=[],p=r.trim().split(Rw);let m="";for(let g=p.length-1;g>=0;g-=1){const v=p[g],{isExternal:w,modifiers:T,hasImportantModifier:F,baseClassName:C,maybePostfixModifierPosition:_}=s(v);if(w){m=v+(m.length>0?" "+m:m);continue}let b=!!_,j=i(b?C.substring(0,_):C);
vendor: 4,228 bytes, line 150
150if(!j){if(!b){m=v+(m.length>0?" "+m:m);continue}if(j=i(C),!j){m=v+(m.length>0?" "+m:m);continue}b=!1}const B=T.length===0?"":T.length===1?T[0]:u(T).join(":"),I=F?B+Zu:B,M=I+j;if(d.indexOf(M)>-1)continue;d.push(M);const Q=l(j,b);for(let se=0;se<Q.length;++se){const ie=Q[se];d.push(I+ie)}m=v+(m.length>0?" "+m:m)}return m},Pw=(...r)=>{let n=0,s,i,l="";for(;n<r.length;)(s=r[n++])&&(i=zm(s))&&(l&&(l+=" "),l+=i);return l},zm=r=>{if(typeof r=="string")return r;let n,s="";for(let i=0;i<r.length;i++)r[i]&&(n=zm(r[i]))&&(s&&(s+=" "),s+=n);return s},Aw=(r,...n)=>{let s,i,l,u;const d=m=>{const g=n.reduce((v,w)=>w(v),r());return s=Tw(g),i=s.cache.get,l=s.cache.set,u=p,p(m)},p=m=>{const g=i(m);if(g)return g;const v=jw(m,s);return l(m,v),v};return u=d,(...m)=>u(Pw(...m))},Ow=[],Ze=r=>{const n=s=>s[r]||Ow;return n.isThemeGetter=!0,n},Bm=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,$m=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Iw=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,Lw=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Mw=/\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$/,Dw=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Fw=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Uw=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Jn=r=>Iw.test(r),Se=r=>!!r&&!Number.isNaN(Number(r)),Xn=r=>!!r&&Number.isInteger(Number(r)),zu=r=>r.endsWith("%")&&Se(r.slice(0,-1)),En=r=>Lw.test(r),qm=()=>!0,zw=r=>Mw.test(r)&&!Dw.test(r),Ic=()=>!1,Bw=r=>Fw.test(r),$w=r=>Uw.test(r),qw=r=>!te(r)&&!ne(r),Hw=r=>hr(r,Wm,Ic),te=r=>Bm.test(r),Nr=r=>hr(r,Qm,zw),cp=r=>hr(r,Xw,Se),Vw=r=>hr(r,Km,qm),Ww=r=>hr(r,Ym,Ic),dp=r=>hr(r,Hm,Ic),Qw=r=>hr(r,Vm,$w),ha=r=>hr(r,Gm,Bw),ne=r=>$m.test(r),No=r=>$r(r,Qm),Yw=r=>$r(r,Ym),fp=r=>$r(r,Hm),Kw=r=>$r(r,Wm),Gw=r=>$r(r,Vm),pa=r=>$r(r,Gm,!0),Jw=r=>$r(r,Km,!0),hr=(r,n,s)=>{const i=Bm.exec(r);return i?i[1]?n(i[1]):s(i[2]):!1},$r=(r,n,s=!1)=>{const i=$m.exec(r);return i?i[1]?n(i[1]):s:!1},Hm=r=>r==="position"||r==="percentage",Vm=r=>r==="image"||r==="url",Wm=r=>r==="length"||r==="size"||r==="bg-size",Qm=r=>r==="length",Xw=r=>r==="number",Ym=r=>r==="family-name",Km=r=>r==="number"||r==="weight",Gm=r=>r==="shadow",Zw=()=>{const r=Ze("color"),n=Ze("font"),s=Ze("text"),i=Ze("font-weight"),l=Ze("tracking"),u=Ze("leading"),d=Ze("breakpoint"),p=Ze("container"),m=Ze("spacing"),g=Ze("radius"),v=Ze("shadow"),w=Ze("inset-shadow"),T=Ze("text-shadow"),F=Ze("drop-shadow"),C=Ze("blur"),_=Ze("perspective"),b=Ze("aspect"),j=Ze("ease"),B=Ze("animate"),I=()=>["auto","avoid","all","avoid-page","page","left","right","column"],M=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],Q=()=>[...M(),ne,te],se=()=>["auto","hidden","clip","visible","scroll"],ie=()=>["auto","contain","none"],z=()=>[ne,te,m],Y=()=>[Jn,"full","auto",...z()],le=()=>[Xn,"none","subgrid",ne,te],K=()=>["auto",{span:["full",Xn,ne,te]},Xn,ne,te],be=()=>[Xn,"auto",ne,te],ye=()=>["auto","min","max","fr",ne,te],ve=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],ke=()=>["start","end","center","stretch","center-safe","end-safe"],xe=()=>["auto",...z()],_e=()=>[Jn,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...z()],H=()=>[Jn,"screen","full","dvw","lvw","svw","min","max","fit",...z()],Z=()=>[Jn,"screen","full","lh","dvh","lvh","svh","min","max","fit",...z()],D=()=>[r,ne,te],N=()=>[...M(),fp,dp,{position:[ne,te]}],U=()=>["no-repeat",{repeat:["","x","y","space","round"]}],pe=()=>["auto","cover","contain",Kw,Hw,{size:[ne,te]}],de=()=>[zu,No,Nr],ae=()=>["","none","full",g,ne,te],fe=()=>["",Se,No,Nr],je=()=>["solid","dashed","dotted","double"],Ce=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],we=()=>[Se,zu,fp,dp],Ge=()=>["","none",C,ne,te],Ot=()=>["none",Se,ne,te],rn=()=>["none",Se,ne,te],Ht=()=>[Se,ne,te],Vt=()=>[Jn,"full",...z()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[En],breakpoint:[En],c
vendor: 6,621 bytes, line 150
150olor:[qm],container:[En],"drop-shadow":[En],ease:["in","out","in-out"],font:[qw],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[En],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[En],shadow:[En],spacing:["px",Se],text:[En],"text-shadow":[En],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Jn,te,ne,b]}],container:["container"],columns:[{columns:[Se,te,ne,p]}],"break-after":[{"break-after":I()}],"break-before":[{"break-before":I()}],"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:Q()}],overflow:[{overflow:se()}],"overflow-x":[{"overflow-x":se()}],"overflow-y":[{"overflow-y":se()}],overscroll:[{overscroll:ie()}],"overscroll-x":[{"overscroll-x":ie()}],"overscroll-y":[{"overscroll-y":ie()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:Y()}],"inset-x":[{"inset-x":Y()}],"inset-y":[{"inset-y":Y()}],start:[{"inset-s":Y(),start:Y()}],end:[{"inset-e":Y(),end:Y()}],"inset-bs":[{"inset-bs":Y()}],"inset-be":[{"inset-be":Y()}],top:[{top:Y()}],right:[{right:Y()}],bottom:[{bottom:Y()}],left:[{left:Y()}],visibility:["visible","invisible","collapse"],z:[{z:[Xn,"auto",ne,te]}],basis:[{basis:[Jn,"full","auto",p,...z()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Se,Jn,"auto","initial","none",te]}],grow:[{grow:["",Se,ne,te]}],shrink:[{shrink:["",Se,ne,te]}],order:[{order:[Xn,"first","last","none",ne,te]}],"grid-cols":[{"grid-cols":le()}],"col-start-end":[{col:K()}],"col-start":[{"col-start":be()}],"col-end":[{"col-end":be()}],"grid-rows":[{"grid-rows":le()}],"row-start-end":[{row:K()}],"row-start":[{"row-start":be()}],"row-end":[{"row-end":be()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":ye()}],"auto-rows":[{"auto-rows":ye()}],gap:[{gap:z()}],"gap-x":[{"gap-x":z()}],"gap-y":[{"gap-y":z()}],"justify-content":[{justify:[...ve(),"normal"]}],"justify-items":[{"justify-items":[...ke(),"normal"]}],"justify-self":[{"justify-self":["auto",...ke()]}],"align-content":[{content:["normal",...ve()]}],"align-items":[{items:[...ke(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...ke(),{baseline:["","last"]}]}],"place-content":[{"place-content":ve()}],"place-items":[{"place-items":[...ke(),"baseline"]}],"place-self":[{"place-self":["auto",...ke()]}],p:[{p:z()}],px:[{px:z()}],py:[{py:z()}],ps:[{ps:z()}],pe:[{pe:z()}],pbs:[{pbs:z()}],pbe:[{pbe:z()}],pt:[{pt:z()}],pr:[{pr:z()}],pb:[{pb:z()}],pl:[{pl:z()}],m:[{m:xe()}],mx:[{mx:xe()}],my:[{my:xe()}],ms:[{ms:xe()}],me:[{me:xe()}],mbs:[{mbs:xe()}],mbe:[{mbe:xe()}],mt:[{mt:xe()}],mr:[{mr:xe()}],mb:[{mb:xe()}],ml:[{ml:xe()}],"space-x":[{"space-x":z()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":z()}],"space-y-reverse":["space-y-reverse"],size:[{size:_e()}],"inline-size":[{inline:["auto",...H()]}],"min-inline-size":[{"min-inline":["auto",...H()]}],"max-inline-size":[{"max-inline":["none",...H()]}],"block-size":[{block:["auto",...Z()]}],"min-block-size":[{"min-block":["auto",...Z()]}],"max-block-size":[{"max-block":["none",...Z()]}],w:[{w:[p,"screen",..._e()]}],"min-w":[{"min-w":[p,"screen","none",..._e()]}],"max-w":[{"max-w":[p,"screen","none","prose",{screen:[d]},..._e()]}],h:[{h:["screen","lh",..._e()]}],"min-h":[{"min-h":["screen","lh","none",..._e()]}],"max-h":[{"max-h":["screen","lh",..._e()]}],"font-size":[{text:["base",s,No,Nr]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[i,Jw,Vw]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",zu,te]}],"font-family":[{font:[Yw,Ww,n]}],"font-features":[{"font-features":[te]}],"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:[l,ne,te]}],"line-clamp":[{"line-clamp":[Se,"none",ne,cp]}],leading:[{leading:[u,...z()]}],"list-image":[{"list-image":["none",ne,te]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",ne,te]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:D()}],"text-color":[{text:D()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...je(),"wavy"]}],"text-decoration-thickness":[{decoration:[Se,"from-font","auto",ne,Nr]}],"text-decoration-color":[{decoration:D()}],"underline-offset":[{"underline-offset":[Se,"auto",ne,te]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:z()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ne,te]}],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",ne,te]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:N()}],"bg-repeat":[{bg:U()}],"bg-size":[{bg:pe()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Xn,ne,te],radial:["",ne,te],conic:[Xn,ne,te]},Gw,Qw]}],"bg-color":[{bg:D()}
150],"gradient-from-pos":[{from:de()}],"gradient-via-pos":[{via:de()}],"gradient-to-pos":[{to:de()}],"gradient-from":[{from:D()}],"gradient-via":[{via:D()}],"gradient-to":[{to:D()}],rounded:[{rounded:ae()}],"rounded-s":[{"rounded-s":ae()}],"rounded-e":[{"rounded-e":ae()}],"rounded-t":[{"rounded-t":ae()}],"rounded-r":[{"rounded-r":ae()}],"rounded-b":[{"rounded-b":ae()}],"rounded-l":[{"rounded-l":ae()}],"rounded-ss":[{"rounded-ss":ae()}],"rounded-se":[{"rounded-se":ae()}],"rounded-ee":[{"rounded-ee":ae()}],"rounded-es":[{"rounded-es":ae()}],"rounded-tl":[{"rounded-tl":ae()}],"rounded-tr":[{"rounded-tr":ae()}],"rounded-br":[{"rounded-br":ae()}],"rounded-bl":[{"rounded-bl":ae()}],"border-w":[{border:fe()}],"border-w-x":[{"border-x":fe()}],"border-w-y":[{"border-y":fe()}],"border-w-s":[{"border-s":fe()}],"border-w-e":[{"border-e":fe()}],"border-w-bs":[{"border-bs":fe()}],"border-w-be":[{"border-be":fe()}],"border-w-t":[{"border-t":fe()}],"border-w-r":[{"border-r":fe()}],"border-w-b":[{"border-b":fe()}],"border-w-l":[{"border-l":fe()}],"divide-x":[{"divide-x":fe()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":fe()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...je(),"hidden","none"]}],"divide-style":[{divide:[...je(),"hidden","none"]}],"border-color":[{border:D()}],"border-color-x":[{"border-x":D()}],"border-color-y":[{"border-y":D()}],"border-color-s":[{"border-s":D()}],"border-color-e":[{"border-e":D()}],"border-color-bs":[{"border-bs":D()}],"border-color-be":[{"border-be":D()}],"border-color-t":[{"border-t":D()}],"border-color-r":[{"border-r":D()}],"border-color-b":[{"border-b":D()}],"border-color-l":[{"border-l":D()}
vendor: 5,628 bytes, line 150
150],"divide-color":[{divide:D()}],"outline-style":[{outline:[...je(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Se,ne,te]}],"outline-w":[{outline:["",Se,No,Nr]}],"outline-color":[{outline:D()}],shadow:[{shadow:["","none",v,pa,ha]}],"shadow-color":[{shadow:D()}],"inset-shadow":[{"inset-shadow":["none",w,pa,ha]}],"inset-shadow-color":[{"inset-shadow":D()}],"ring-w":[{ring:fe()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:D()}],"ring-offset-w":[{"ring-offset":[Se,Nr]}],"ring-offset-color":[{"ring-offset":D()}],"inset-ring-w":[{"inset-ring":fe()}],"inset-ring-color":[{"inset-ring":D()}],"text-shadow":[{"text-shadow":["none",T,pa,ha]}],"text-shadow-color":[{"text-shadow":D()}],opacity:[{opacity:[Se,ne,te]}],"mix-blend":[{"mix-blend":[...Ce(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Ce()}],"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":[Se]}],"mask-image-linear-from-pos":[{"mask-linear-from":we()}],"mask-image-linear-to-pos":[{"mask-linear-to":we()}],"mask-image-linear-from-color":[{"mask-linear-from":D()}],"mask-image-linear-to-color":[{"mask-linear-to":D()}],"mask-image-t-from-pos":[{"mask-t-from":we()}],"mask-image-t-to-pos":[{"mask-t-to":we()}],"mask-image-t-from-color":[{"mask-t-from":D()}],"mask-image-t-to-color":[{"mask-t-to":D()}],"mask-image-r-from-pos":[{"mask-r-from":we()}],"mask-image-r-to-pos":[{"mask-r-to":we()}],"mask-image-r-from-color":[{"mask-r-from":D()}],"mask-image-r-to-color":[{"mask-r-to":D()}],"mask-image-b-from-pos":[{"mask-b-from":we()}],"mask-image-b-to-pos":[{"mask-b-to":we()}],"mask-image-b-from-color":[{"mask-b-from":D()}],"mask-image-b-to-color":[{"mask-b-to":D()}],"mask-image-l-from-pos":[{"mask-l-from":we()}],"mask-image-l-to-pos":[{"mask-l-to":we()}],"mask-image-l-from-color":[{"mask-l-from":D()}],"mask-image-l-to-color":[{"mask-l-to":D()}],"mask-image-x-from-pos":[{"mask-x-from":we()}],"mask-image-x-to-pos":[{"mask-x-to":we()}],"mask-image-x-from-color":[{"mask-x-from":D()}],"mask-image-x-to-color":[{"mask-x-to":D()}],"mask-image-y-from-pos":[{"mask-y-from":we()}],"mask-image-y-to-pos":[{"mask-y-to":we()}],"mask-image-y-from-color":[{"mask-y-from":D()}],"mask-image-y-to-color":[{"mask-y-to":D()}],"mask-image-radial":[{"mask-radial":[ne,te]}],"mask-image-radial-from-pos":[{"mask-radial-from":we()}],"mask-image-radial-to-pos":[{"mask-radial-to":we()}],"mask-image-radial-from-color":[{"mask-radial-from":D()}],"mask-image-radial-to-color":[{"mask-radial-to":D()}],"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":M()}],"mask-image-conic-pos":[{"mask-conic":[Se]}],"mask-image-conic-from-pos":[{"mask-conic-from":we()}],"mask-image-conic-to-pos":[{"mask-conic-to":we()}],"mask-image-conic-from-color":[{"mask-conic-from":D()}],"mask-image-conic-to-color":[{"mask-conic-to":D()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:N()}],"mask-repeat":[{mask:U()}],"mask-size":[{mask:pe()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",ne,te]}],filter:[{filter:["","none",ne,te]}],blur:[{blur:Ge()}],brightness:[{brightness:[Se,ne,te]}],contrast:[{contrast:[Se,ne,te]}],"drop-shadow":[{"drop-shadow":["","none",F,pa,ha]}],"drop-shadow-color":[{"drop-shadow":D()}],grayscale:[{grayscale:["",Se,ne,te]}],"hue-rotate":[{"hue-rotate":[Se,ne,te]}],invert:[{invert:["",Se,ne,te]}],saturate:[{saturate:[Se,ne,te]}],sepia:[{sepia:["",Se,ne,te]}],"backdrop-filter":[{"backdrop-filter":["","none",ne,te]}],"backdrop-blur":[{"backdrop-blur":Ge()}],"backdrop-brightness":[{"backdrop-brightness":[Se,ne,te]}],"backdrop-contrast":[{"backdrop-contrast":[Se,ne,te]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Se,ne,te]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Se,ne,te]}],"backdrop-invert":[{"backdrop-invert":["",Se,ne,te]}],"backdrop-opacity":[{"backdrop-opacity":[Se,ne,te]}],"backdrop-saturate":[{"backdrop-saturate":[Se,ne,te]}],"backdrop-sepia":[{"backdrop-sepia":["",Se,ne,te]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":z()}],"border-spacing-x":[{"border-spacing-x":z()}],"border-spacing-y":[{"border-spacing-y":z()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",ne,te]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Se,"initial",ne,te]}],ease:[{ease:["linear","initial",j,ne,te]}],delay:[{delay:[Se,ne,te]}],animate:[{animate:["none",B,ne,te]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[_,ne,te]}],"perspective-origin":[{"perspective-origin":Q()}],rotate:[{rotate:Ot()}],"rotate-x":[{"rotate-x":Ot()}],"rotate-y":[{"rotate-y":Ot()}],"rotate-z":[{"rotate-z":Ot()}],scale:[{scale:rn()}],"scale-x":[{"scale-x":rn()}],"scale-y":[{"scale-y":rn()}],"scale-z":[{"scale-z":rn()}],"scale-3d":["scale-3d"],skew:[{skew:Ht()}],"skew-x":[{"skew-x":Ht()}],"skew-y":[{"skew-y":Ht()}],transform:[{transform:[ne,te,"","none","gpu","cpu"]}],"transform-origin":[{origin:Q()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Vt()}],"translate-x":[{"translate-x":Vt()}],"translate-y":[{"translate-y":Vt()}],"translate-z":[{"translate-z":Vt()}
vendor: 7,083 bytes, line 150
150],"translate-none":["translate-none"],accent:[{accent:D()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:D()}],"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",ne,te]}],"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":z()}],"scroll-mx":[{"scroll-mx":z()}],"scroll-my":[{"scroll-my":z()}],"scroll-ms":[{"scroll-ms":z()}],"scroll-me":[{"scroll-me":z()}],"scroll-mbs":[{"scroll-mbs":z()}],"scroll-mbe":[{"scroll-mbe":z()}],"scroll-mt":[{"scroll-mt":z()}],"scroll-mr":[{"scroll-mr":z()}],"scroll-mb":[{"scroll-mb":z()}],"scroll-ml":[{"scroll-ml":z()}],"scroll-p":[{"scroll-p":z()}],"scroll-px":[{"scroll-px":z()}],"scroll-py":[{"scroll-py":z()}],"scroll-ps":[{"scroll-ps":z()}],"scroll-pe":[{"scroll-pe":z()}],"scroll-pbs":[{"scroll-pbs":z()}],"scroll-pbe":[{"scroll-pbe":z()}],"scroll-pt":[{"scroll-pt":z()}],"scroll-pr":[{"scroll-pr":z()}],"scroll-pb":[{"scroll-pb":z()}],"scroll-pl":[{"scroll-pl":z()}],"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",ne,te]}],fill:[{fill:["none",...D()]}],"stroke-w":[{stroke:[Se,No,Nr,cp]}],stroke:[{stroke:["none",...D()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},ex=Aw(Zw);function jn(...r){return ex(Om(r))}const Jm=A.forwardRef(({...r},n)=>h.jsx("div",{ref:n,className:"fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",...r}));Jm.displayName="ToastProvider";const Xm=A.forwardRef(({...r},n)=>h.jsx("div",{ref:n,className:"fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",...r}));Xm.displayName="ToastViewport";const tx=Ac("group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),Zm=A.forwardRef(({className:r,variant:n,...s},i)=>h.jsx("div",{ref:i,className:jn(tx({variant:n}),r),...s}));Zm.displayName="Toast";const nx=A.forwardRef(({className:r,...n},s)=>h.jsx("div",{ref:s,className:jn("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors hover:bg-secondary focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive",r),...n}));nx.displayName="ToastAction";const ey=A.forwardRef(({className:r,...n},s)=>h.jsx("button",{ref:s,className:jn("absolute right-2 top-2 rounded-md p-1 text-foreground
150/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-2 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",r),"toast-close":"",...n,children:h.jsx(dw,{className:"h-4 w-4"})}));ey.displayName="ToastClose";const ty=A.forwardRef(({className:r,...n},s)=>h.jsx("div",{ref:s,className:jn("text-sm font-semibold",r),...n}));ty.displayName="ToastTitle";const ny=A.forwardRef(({className:r,...n},s)=>h.jsx("div",{ref:s,className:jn("text-sm opacity-90",r),...n}));ny.displayName="ToastDescription";function rx(){const{toasts:r}=I0();return h.jsxs(Jm,{children:[r.map(function({id:n,title:s,description:i,action:l,...u}){return h.jsxs(Zm,{...u,children:[h.jsxs("div",{className:"grid gap-1",children:[s&&h.jsx(ty,{children:s}),i&&h.jsx(ny,{children:i})]}),l,h.jsx(ey,{})]},n)}),h.jsx(Xm,{})]})}var Yo=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(r){return this.listeners.add(r),this.onSubscribe(),()=>{this.listeners.delete(r),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},sx={setTimeout:(r,n)=>setTimeout(r,n),clearTimeout:r=>clearTimeout(r),setInterval:(r,n)=>setInterval(r,n),clearInterval:r=>clearInterval(r)},tr,jc,wm,ox=(wm=class{constructor(){he(this,tr,sx);he(this,jc,!1)}setTimeoutProvider(r){J(this,tr,r)}setTimeout(r,n){return S(this,tr).setTimeout(r,n)}clearTimeout(r){S(this,tr).clearTimeout(r)}setInterval(r,n){return S(this,tr).setInterval(r,n)}clearInterval(r){S(this,tr).clearInterval(r)}},tr=new WeakMap,jc=new WeakMap,wm),Tr=new ox;function ix(r){setTimeout(r,0)}var zr=typeof window>"u"||"Deno"in globalThis;function Ct(){}function ax(r,n){return typeof r=="function"?r(n):r}function ec(r){return typeof r=="number"&&r>=0&&r!==1/0}function ry(r,n){return Math.max(r+(n||0)-Date.now(),0)}function cr(r,n){return typeof r=="function"?r(n):r}function $t(r,n){return typeof r=="function"?r(n):r}function hp(r,n){const{type:s="all",exact:i,fetchStatus:l,predicate:u,queryKey:d,stale:p}=r;if(d){if(i){if(n.queryHash!==Lc(d,n.options))return!1}else if(!Uo(n.queryKey,d))return!1}if(s!=="all"){const m=n.isActive();if(s==="active"&&!m||s==="inactive"&&m)return!1}return!(typeof p=="boolean"&&n.isStale()!==p||l&&l!==n.state.fetchStatus||u&&!u(n))}function pp(r,n){const{exact:s,status:i,predicate:l,mutationKey:u}=r;if(u){if(!n.options.mutationKey)return!1;if(s){if(Fo(n.options.mutationKey)!==Fo(u))return!1}else if(!Uo(n.options.mutationKey,u))return!1}return!(i&&n.state.status!==i||l&&!l(n))}function Lc(r,n){return((n==null?void 0:n.queryKeyHashFn)||Fo)(r)}function Fo(r){return JSON.stringify(r,(n,s)=>nc(s)?Object.keys(s).sort().reduce((i,l)=>(i[l]=s[l],i),{}):s)}function Uo(r,n){return r===n?!0:typeof r!=typeof n?!1:r&&n&&typeof r=="object"&&typeof n=="object"?Object.keys(n).every(s=>Uo(r[s],n[s])):!1}var lx=Object.prototype.hasOwnProperty;function sy(r,n,s=0){if(r===n)return r;if(s>500)return n;const i=mp(r)&&mp(n);if(!i&&!(nc(r)&&nc(n)))return n;const u=(i?r:Object.keys(r)).length,d=i?n:Object.keys(n),p=d.length,m=i?new Array(p):{};let g=0;for(let v=0;v<p;v++){const w=i?v:d[v],T=r[w],F=n[w];if(T===F){m[w]=T,(i?v<u:lx.call(r,w))&&g++;continue}if(T===null||F===null||typeof T!="object"||typeof F!="object"){m[w]=F;continue}const C=sy(T,F,s+1);m[w]=C,C===T&&g++}return u===p&&g===u?r:m}function tc(r,n){if(!n||Object.keys(r).length!==Object.keys(n).length)return!1;for(const s in r)if(r[s]!==n[s])return!1;return!0}function mp(r){return Array.isArray(r)&&r.length===Object.keys(r).length}function nc(r){if(!yp(r))return!1;const n=r.constructor;if(n===void 0)return!0;const s=n.prototype;return!(!yp(s)||!s.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(r)!==Object.prototype)}function yp(r){return Object.prototype.toString.call(r)==="[object Object]"}function ux(r){return new Promise(n=>{Tr.setTimeout(n,r)})}function rc(r,n,s){return typeof s.structuralSharing=="function"?s.structuralSharing(r,n):s.structuralSharing!==!1?sy(r,n):n}function cx(r,n,s=0){const i=[...r,n];return s&&i.length>s?i.slice(1):i}function dx(r,n,s=0){const i=[n,...r];return s&&i.length>s?i.slice(0,-1):i}var Mc=Symbol();function oy(r,n){return!r.queryFn&&(n!=null&&n.initialPromise)?()=>n.initialPromise:!r.queryFn||r.queryFn===Mc?()=>Promise.reject(new Error(`Missing queryFn: '${r.queryHash}'`)):r.queryFn}function iy(r,n){return typeof r=="function"?r(...n):!!r}function fx(r,n,s){let i=!1,l;return Object.defineProperty(r,"signal",{enumerable:!0,get:()=>(l??(l=n()),i||(i=!0,l.aborted?s():l.addEventListener("abort",s,{once:!0})),l)}),r}var jr,nr,bs,xm,hx=(xm=class extends Yo{constructor(){super();he(this,jr);he(this,nr);he(this,bs);J(this,bs,n=>{if(!zr&&window.addEventListener){const s=()=>n();return window.addEventListener("visibilitychange",s,!1),()=>{window.removeEventListener("visibilitychange",s)}}})}onSubscribe(){S(this,nr)||this.setEventListener(S(this,bs))}onUnsubscribe(){var n;this.hasListeners()||((n=S(this,nr))==null||n.call(this),J(this,nr,void 0))}setEventListener(n){var s;J(this,bs,n),(s=S(this,nr))==null||s.call(this),J(this,nr,n(i=>{typeof i=="boolean"?this.setFocused(i):this.onFocus()}))}setFocused(n){S(this,jr)!==n&&(J(this,jr,n),this.onFocus())}onFocus(){const n=this.isFocused();
vendor: 4,995 bytes, line 150
150this.listeners.forEach(s=>{s(n)})}isFocused(){var n;return typeof S(this,jr)=="boolean"?S(this,jr):((n=globalThis.document)==null?void 0:n.visibilityState)!=="hidden"}},jr=new WeakMap,nr=new WeakMap,bs=new WeakMap,xm),Dc=new hx;function sc(){let r,n;const s=new Promise((l,u)=>{r=l,n=u});s.status="pending",s.catch(()=>{});function i(l){Object.assign(s,l),delete s.resolve,delete s.reject}return s.resolve=l=>{i({status:"fulfilled",value:l}),r(l)},s.reject=l=>{i({status:"rejected",reason:l}),n(l)},s}var px=ix;function mx(){let r=[],n=0,s=p=>{p()},i=p=>{p()},l=px;const u=p=>{n?r.push(p):l(()=>{s(p)})},d=()=>{const p=r;r=[],p.length&&l(()=>{i(()=>{p.forEach(m=>{s(m)})})})};return{batch:p=>{let m;n++;try{m=p()}finally{n--,n||d()}return m},batchCalls:p=>(...m)=>{u(()=>{p(...m)})},schedule:u,setNotifyFunction:p=>{s=p},setBatchNotifyFunction:p=>{i=p},setScheduler:p=>{l=p}}}var ut=mx(),ks,rr,Ss,bm,yx=(bm=class extends Yo{constructor(){super();he(this,ks,!0);he(this,rr);he(this,Ss);J(this,Ss,n=>{if(!zr&&window.addEventListener){const s=()=>n(!0),i=()=>n(!1);return window.addEventListener("online",s,!1),window.addEventListener("offline",i,!1),()=>{window.removeEventListener("online",s),window.removeEventListener("offline",i)}}})}onSubscribe(){S(this,rr)||this.setEventListener(S(this,Ss))}onUnsubscribe(){var n;this.hasListeners()||((n=S(this,rr))==null||n.call(this),J(this,rr,void 0))}setEventListener(n){var s;J(this,Ss,n),(s=S(this,rr))==null||s.call(this),J(this,rr,n(this.setOnline.bind(this)))}setOnline(n){S(this,ks)!==n&&(J(this,ks,n),this.listeners.forEach(i=>{i(n)}))}isOnline(){return S(this,ks)}},ks=new WeakMap,rr=new WeakMap,Ss=new WeakMap,bm),ja=new yx;function gx(r){return Math.min(1e3*2**r,3e4)}function ay(r){return(r??"online")==="online"?ja.isOnline():!0}var oc=class extends Error{constructor(r){super("CancelledError"),this.revert=r==null?void 0:r.revert,this.silent=r==null?void 0:r.silent}};function ly(r){let n=!1,s=0,i;const l=sc(),u=()=>l.status!=="pending",d=_=>{var b;if(!u()){const j=new oc(_);T(j),(b=r.onCancel)==null||b.call(r,j)}},p=()=>{n=!0},m=()=>{n=!1},g=()=>Dc.isFocused()&&(r.networkMode==="always"||ja.isOnline())&&r.canRun(),v=()=>ay(r.networkMode)&&r.canRun(),w=_=>{u()||(i==null||i(),l.resolve(_))},T=_=>{u()||(i==null||i(),l.reject(_))},F=()=>new Promise(_=>{var b;i=j=>{(u()||g())&&_(j)},(b=r.onPause)==null||b.call(r)}).then(()=>{var _;i=void 0,u()||(_=r.onContinue)==null||_.call(r)}),C=()=>{if(u())return;let _;const b=s===0?r.initialPromise:void 0;try{_=b??r.fn()}catch(j){_=Promise.reject(j)}Promise.resolve(_).then(w).catch(j=>{var se;if(u())return;const B=r.retry??(zr?0:3),I=r.retryDelay??gx,M=typeof I=="function"?I(s,j):I,Q=B===!0||typeof B=="number"&&s<B||typeof B=="function"&&B(s,j);if(n||!Q){T(j);return}s++,(se=r.onFail)==null||se.call(r,s,j),ux(M).then(()=>g()?void 0:F()).then(()=>{n?T(j):C()})})};return{promise:l,status:()=>l.status,cancel:d,continue:()=>(i==null||i(),l),cancelRetry:p,continueRetry:m,canStart:v,start:()=>(v()?C():F().then(C),l)}}var Pr,km,uy=(km=class{constructor(){he(this,Pr)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),ec(this.gcTime)&&J(this,Pr,Tr.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(r){this.gcTime=Math.max(this.gcTime||0,r??(zr?1/0:300*1e3))}clearGcTimeout(){S(this,Pr)&&(Tr.clearTimeout(S(this,Pr)),J(this,Pr,void 0))}},Pr=new WeakMap,km),Ar,_s,Bt,Or,rt,qo,Ir,Zt,Cn,Sm,vx=(Sm=class extends uy{constructor(n){super();he(this,Zt);he(this,Ar);he(this,_s);he(this,Bt);he(this,Or);he(this,rt);he(this,qo);he(this,Ir);J(this,Ir,!1),J(this,qo,n.defaultOptions),this.setOptions(n.options),this.observers=[],J(this,Or,n.client),J(this,Bt,S(this,Or).getQueryCache()),this.queryKey=n.queryKey,this.queryHash=n.queryHash,J(this,Ar,vp(this.options)),this.state=n.state??S(this,Ar),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var n;return(n=S(this,rt))==null?void 0:n.promise}setOptions(n){if(this.options={...S(this,qo),...n},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const s=vp(this.options);s.data!==void 0&&(this.setState(gp(s.data,s.dataUpdatedAt)),J(this,Ar,s))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&S(this,Bt).remove(this)}setData(n,s){const i=rc(this.state.data,n,this.options);return Ne(this,Zt,Cn).call(this,{data:i,type:"success",dataUpdatedAt:s==null?void 0:s.updatedAt,manual:s==null?void 0:s.manual}),i}setState(n,s){Ne(this,Zt,Cn).call(this,{type:"setState",state:n,setStateOptions:s})}cancel(n){var i,l;const s=(i=S(this,rt))==null?void 0:i.promise;return(l=S(this,rt))==null||l.cancel(n),s?s.then(Ct).catch(Ct):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(S(this,Ar))}isActive(){return this.observers.some(n=>$t(n.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Mc||this.state.dataUpdateCount+this.state.errorUpdate
vendor: 3,167 bytes, line 150
150Count===0}isStatic(){return this.getObserversCount()>0?this.observers.some(n=>cr(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:!ry(this.state.dataUpdatedAt,n)}onFocus(){var s;const n=this.observers.find(i=>i.shouldFetchOnWindowFocus());n==null||n.refetch({cancelRefetch:!1}),(s=S(this,rt))==null||s.continue()}onOnline(){var s;const n=this.observers.find(i=>i.shouldFetchOnReconnect());n==null||n.refetch({cancelRefetch:!1}),(s=S(this,rt))==null||s.continue()}addObserver(n){this.observers.includes(n)||(this.observers.push(n),this.clearGcTimeout(),S(this,Bt).notify({type:"observerAdded",query:this,observer:n}))}removeObserver(n){this.observers.includes(n)&&(this.observers=this.observers.filter(s=>s!==n),this.observers.length||(S(this,rt)&&(S(this,Ir)?S(this,rt).cancel({revert:!0}):S(this,rt).cancelRetry()),this.scheduleGc()),S(this,Bt).notify({type:"observerRemoved",query:this,observer:n}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Ne(this,Zt,Cn).call(this,{type:"invalidate"})}async fetch(n,s){var m,g,v,w,T,F,C,_,b,j,B,I;if(this.state.fetchStatus!=="idle"&&((m=S(this,rt))==null?void 0:m.status())!=="rejected"){if(this.state.data!==void 0&&(s!=null&&s.cancelRefetch))this.cancel({silent:!0});else if(S(this,rt))return S(this,rt).continueRetry(),S(this,rt).promise}if(n&&this.setOptions(n),!this.options.queryFn){const M=this.observers.find(Q=>Q.options.queryFn);M&&this.setOptions(M.options)}const i=new AbortController,l=M=>{Object.defineProperty(M,"signal",{enumerable:!0,get:()=>(J(this,Ir,!0),i.signal)})},u=()=>{const M=oy(this.options,s),se=(()=>{const ie={client:S(this,Or),queryKey:this.queryKey,meta:this.meta};return l(ie),ie})();return J(this,Ir,!1),this.options.persister?this.options.persister(M,se,this):M(se)},p=(()=>{const M={fetchOptions:s,options:this.options,queryKey:this.queryKey,client:S(this,Or),state:this.state,fetchFn:u};return l(M),M})();(g=this.options.behavior)==null||g.onFetch(p,this),J(this,_s,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((v=p.fetchOptions)==null?void 0:v.meta))&&Ne(this,Zt,Cn).call(this,{type:"fetch",meta:(w=p.fetchOptions)==null?void 0:w.meta}),J(this,rt,ly({initialPromise:s==null?void 0:s.initialPromise,fn:p.fetchFn,onCancel:M=>{M instanceof oc&&M.revert&&this.setState({...S(this,_s),fetchStatus:"idle"}),i.abort()},onFail:(M,Q)=>{Ne(this,Zt,Cn).call(this,{type:"failed",failureCount:M,error:Q})},onPause:()=>{Ne(this,Zt,Cn).call(this,{type:"pause"})},onContinue:()=>{Ne(this,Zt,Cn).call(this,{type:"continue"})},retry:p.options.retry,retryDelay:p.options.retryDelay,networkMode:p.options.networkMode,canRun:()=>!0}));try{const M=await S(this,rt).start();if(M===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(M),(F=(T=S(this,Bt).config).onSuccess)==null||F.call(T,M,this),(_=(C=S(this,Bt).config).onSettled)==null||_.call(C,M,this.state.error,this),M}
150catch(M){if(M instanceof oc){if(M.silent)return S(this,rt).promise;if(M.revert){if(this.state.data===void 0)throw M;return this.state.data}}throw Ne(this,Zt,Cn).call(this,{type:"error",error:M}),(j=(b=S(this,Bt).config).onError)==null||j.call(b,M,this),(I=(B=S(this,Bt).config).onSettled)==null||I.call(B,this.state.data,M,this),M}finally{this.scheduleGc()}}},Ar=new WeakMap,_s=new WeakMap,Bt=new WeakMap,Or=new WeakMap,rt=new WeakMap,qo=new WeakMap,Ir=new WeakMap,Zt=new WeakSet,Cn=function(n){const s=i=>{switch(n.type){case"failed":return{...i,fetchFailureCount:n.failureCount,fetchFailureReason:n.error};case"pause":return{...i,fetchStatus:"paused"};case"continue":return{...i,fetchStatus:"fetching"};case"fetch":return{...i,...cy(i.data,this.options),fetchMeta:n.meta??null};case"success":const l={...i,...gp(n.data,n.dataUpdatedAt),dataUpdateCount:i.dataUpdateCount+1,...!n.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return J(this,_s,n.manual?l:void 0),l;case"error":const u=n.error;return{...i,error:u,errorUpdateCount:i.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:i.fetchFailureCount+1,fetchFailureReason:u,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...i,isInvalidated:!0};case"setState":return{...i,...n.state}}};this.state=s(this.state),ut.batch(()=>{this.observers.forEach(i=>{i.onQueryUpdate()}),S(this,Bt).notify({query:this,type:"updated",action:n})})},Sm);function cy(r,n){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:ay(n.networkMode)?"fetching":"paused",...r===void 0&&{error:null,status:"pending"}}}function gp(r,n){return{data:r,dataUpdatedAt:n??Date.now(),error:null,isInvalidated:!1,status:"success"}}function vp(r){const n=typeof r.initialData=="function"?r.initialData():r.initialData,s=n!==void 0,i=s?typeof r.initialDataUpdatedAt=="function"?r.initialDataUpdatedAt():r.initialDataUpdatedAt:0;return{data:n,dataUpdateCount:0,dataUpdatedAt:s?i??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:s?"success":"pending",fetchStatus:"idle"}}var Et,Te,Ho,vt,Lr,Es,Nn,sr,Vo,Cs,Ns,Mr,Dr,or,Ts,Oe,Po,ic,ac,lc,uc,cc,dc,fc,dy,_m,wx=(_m=class extends Yo{constructor(n,s){super();he(this,Oe);he(this,Et);he(this,Te);he(this,Ho);he(this,vt);he(this,Lr);he(this,Es);he(this,Nn);he(this,sr);he(this,Vo);he(this,Cs);he(this,Ns);he(this,Mr);he(this,Dr);he(this,or);he(this,Ts,new Set);this.options=s,J(this,Et,n),J(this,sr,null),J(this,Nn,sc()),this.bindMethods(),this.setOptions(s)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(S(this,Te).addObserver(this),wp(S(this,Te),this.options)?Ne(this,Oe,Po).call(this):this.updateResult(),Ne(this,Oe,uc).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return hc(S(this,Te),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return hc(S(this,Te),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,Ne(this,Oe,cc).call(this),Ne(this,Oe,dc).call(this),S(this,Te).removeObserver(this)}setOptions(n){const s=this.options,i=S(this,Te);if(this.options=S(this,Et).defaultQueryOptions(n),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof $t(this.options.enabled,S(this,Te))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");Ne(this,Oe,fc).call(this),S(this,Te).setOptions(this.options),s._defaulted&&!tc(this.options,s)&&S(this,Et).getQueryCache().notify({type:"observerOptionsUpdated",query:S(this,Te),observer:this});const l=this.hasListeners();l&&xp(S(this,Te),i,this.options,s)&&Ne(this,Oe,Po).call(this),this.updateResult(),l&&(S(this,Te)!==i||$t(this.options.enabled,S(this,Te))!==$t(s.enabled,S(this,Te))||cr(this.options.staleTime,S(this,Te))!==cr(s.staleTime,S(this,Te)))&&Ne(this,Oe,ic).call(this);const u=Ne(this,Oe,ac).call(this);l&&(S(this,Te)!==i||$t(this.options.enabled,S(this,Te))!==$t(s.enabled,S(this,Te))||u!==S(this,or))&&Ne(this,Oe,lc).call(this,u)}getOptimisticResult(n){const s=S(this,Et).getQueryCache().build(S(this,Et),n),i=this.createResult(s,n);return bx(this,i)&&(J(this,vt,i),J(this,Es,this.options),J(this,Lr,S(this,Te).state)),i}getCurrentResult(){return S(this,vt)}trackResult(n,s){return new Proxy(n,{get:(i,l)=>(this.trackProp(l),s==null||s(l),l==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&S(this,Nn).status==="pending"&&S(this,Nn).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(i,l))})}trackProp(n){S(this,Ts).add(n)}getCurrentQuery(){return S(this,Te)}refetch({...n}={}){return this.fetch({...n})}fetchOptimistic(n){const s=S(this,Et).defaultQueryOptions(n),i=S(this,Et).getQueryCache().build(S(this,Et),s);return i.fetch().then(()=>this.createResult(i,s))}fetch(n){return Ne(this,Oe,Po).call(this,{...n,cancelRefetch:n.cancelRefetch??!0}).then(()=>(this.updateResult(),S(this,vt)))}createResult(n,s){var Y;const i=S(this,Te),l=this.options,u=S(this,vt),d=S(this,Lr),p=S(this,Es),g=n!==i?n.state:S(this,Ho),{state:v}=n;let w={...v},T=!1,F;if(s._optimisticResults){const le=this.hasListeners(),K=!le&&wp(n,s),be=le&&xp(n,i,s,l);(K||be)&&(w={...w,...cy(v.data,n.options)}),s._optimisticResults==="isRestoring"&&(w.fetchStatus="idle")}let{error:C,errorUpdatedAt:_,status:b}=w;F=w.data;let j=!1;if(s.placeholderData!==void 0&&F===void 0&&b==="pending"){let le;u!=null&&u.isPlaceholderData&&s.placeholderData===(p==null?void 0:p.placeholderData)?(le=u.data,j=!0):le=typeof s.placeholderData=="function"?s.placeholderData((Y=S(this,Ns))==null?void 0:Y.state.data,S(this,Ns)):s.placeholderData,le!==void 0&&(b="success",F=rc(u==null?void 0:u.data,le,s),T=!0)}if(s.select&&F!==void 0&&!j)if(u&&F===(d==null?void 0:d.data)&&s.select===S(this,Vo))F=S(this,Cs);else try{J(this,Vo,s.select),F=s.select(F),F=rc(u==null?void 0:u.data,F,s),J(this,Cs,F),J(this,sr,null)}catch(le){J(this,sr,le)}S(this,sr)&&(C=S(this,sr),F=S(this,Cs),_=Date.now(),b="error");const B=w.fetchStatus==="fetching",I=b==="pending",M=b==="error",Q=I&&B,se=F!==void 0,z={status:b,fetchStatus:w.fetchStatus,isPending:I,isSuccess:b==="success",isError:M,isInitialLoading:Q,isLoading:Q,data:F,dataUpdatedAt:w.dataUpdatedAt,error:C,errorUpdatedAt:_,failureCount:w.fetchFailureCount,failureReason:w.fetchFailureReason,errorUpdate
vendor: 9,447 bytes, line 150
150Count:w.errorUpdateCount,isFetched:w.dataUpdateCount>0||w.errorUpdateCount>0,isFetchedAfterMount:w.dataUpdateCount>g.dataUpdateCount||w.errorUpdateCount>g.errorUpdateCount,isFetching:B,isRefetching:B&&!I,isLoadingError:M&&!se,isPaused:w.fetchStatus==="paused",isPlaceholderData:T,isRefetchError:M&&se,isStale:Fc(n,s),refetch:this.refetch,promise:S(this,Nn),isEnabled:$t(s.enabled,n)!==!1};if(this.options.experimental_prefetchInRender){const le=z.data!==void 0,K=z.status==="error"&&!le,be=ke=>{K?ke.reject(z.error):le&&ke.resolve(z.data)},ye=()=>{const ke=J(this,Nn,z.promise=sc());be(ke)},ve=S(this,Nn);switch(ve.status){case"pending":n.queryHash===i.queryHash&&be(ve);break;case"fulfilled":(K||z.data!==ve.value)&&ye();break;case"rejected":(!K||z.error!==ve.reason)&&ye();break}}return z}updateResult(){const n=S(this,vt),s=this.createResult(S(this,Te),this.options);if(J(this,Lr,S(this,Te).state),J(this,Es,this.options),S(this,Lr).data!==void 0&&J(this,Ns,S(this,Te)),tc(s,n))return;J(this,vt,s);const i=()=>{if(!n)return!0;const{notifyOnChangeProps:l}=this.options,u=typeof l=="function"?l():l;if(u==="all"||!u&&!S(this,Ts).size)return!0;const d=new Set(u??S(this,Ts));return this.options.throwOnError&&d.add("error"),Object.keys(S(this,vt)).some(p=>{const m=p;return S(this,vt)[m]!==n[m]&&d.has(m)})};Ne(this,Oe,dy).call(this,{listeners:i()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&Ne(this,Oe,uc).call(this)}},Et=new WeakMap,Te=new WeakMap,Ho=new WeakMap,vt=new WeakMap,Lr=new WeakMap,Es=new WeakMap,Nn=new WeakMap,sr=new WeakMap,Vo=new WeakMap,Cs=new WeakMap,Ns=new WeakMap,Mr=new WeakMap,Dr=new WeakMap,or=new WeakMap,Ts=new WeakMap,Oe=new WeakSet,Po=function(n){Ne(this,Oe,fc).call(this);let s=S(this,Te).fetch(this.options,n);return n!=null&&n.throwOnError||(s=s.catch(Ct)),s},ic=function(){Ne(this,Oe,cc).call(this);const n=cr(this.options.staleTime,S(this,Te));if(zr||S(this,vt).isStale||!ec(n))return;const i=ry(S(this,vt).dataUpdatedAt,n)+1;J(this,Mr,Tr.setTimeout(()=>{S(this,vt).isStale||this.updateResult()},i))},ac=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(S(this,Te)):this.options.refetchInterval)??!1},lc=function(n){Ne(this,Oe,dc).call(this),J(this,or,n),!(zr||$t(this.options.enabled,S(this,Te))===!1||!ec(S(this,or))||S(this,or)===0)&&J(this,Dr,Tr.setInterval(()=>{(this.options.refetchIntervalInBackground||Dc.isFocused())&&Ne(this,Oe,Po).call(this)},S(this,or)))},uc=function(){Ne(this,Oe,ic).call(this),Ne(this,Oe,lc).call(this,Ne(this,Oe,ac).call(this))},cc=function(){S(this,Mr)&&(Tr.clearTimeout(S(this,Mr)),J(this,Mr,void 0))},dc=function(){S(this,Dr)&&(Tr.clearInterval(S(this,Dr)),J(this,Dr,void 0))},fc=function(){const n=S(this,Et).getQueryCache().build(S(this,Et),this.options);if(n===S(this,Te))return;const s=S(this,Te);J(this,Te,n),J(this,Ho,n.state),this.hasListeners()&&(s==null||s.removeObserver(this),n.addObserver(this))},dy=function(n){ut.batch(()=>{n.listeners&&this.listeners.forEach(s=>{s(S(this,vt))}),S(this,Et).getQueryCache().notify({query:S(this,Te),type:"observerResultsUpdated"})})},_m);function xx(r,n){return $t(n.enabled,r)!==!1&&r.state.data===void 0&&!(r.state.status==="error"&&n.retryOnMount===!1)}function wp(r,n){return xx(r,n)||r.state.data!==void 0&&hc(r,n,n.refetchOnMount)}function hc(r,n,s){if($t(n.enabled,r)!==!1&&cr(n.staleTime,r)!=="static"){const i=typeof s=="function"?s(r):s;return i==="always"||i!==!1&&Fc(r,n)}return!1}function xp(r,n,s,i){return(r!==n||$t(i.enabled,r)===!1)&&(!s.suspense||r.state.status!=="error")&&Fc(r,s)}function Fc(r,n){return $t(n.enabled,r)!==!1&&r.isStaleByTime(cr(n.staleTime,r))}function bx(r,n){return!tc(r.getCurrentResult(),n)}function bp(r){return{onFetch:(n,s)=>{var v,w,T,F,C;const i=n.options,l=(T=(w=(v=n.fetchOptions)==null?void 0:v.meta)==null?void 0:w.fetchMore)==null?void 0:T.direction,u=((F=n.state.data)==null?void 0:F.pages)||[],d=((C=n.state.data)==null?void 0:C.pageParams)||[];let p={pages:[],pageParams:[]},m=0;const g=async()=>{let _=!1;const b=I=>{fx(I,()=>n.signal,()=>_=!0)},j=oy(n.options,n.fetchOptions),B=async(I,M,Q)=>{if(_)return Promise.reject();if(M==null&&I.pages.length)return Promise.resolve(I);const ie=(()=>{const K={client:n.client,queryKey:n.queryKey,pageParam:M,direction:Q?"backward":"forward",meta:n.options.meta};return b(K),K})(),z=await j(ie),{maxPages:Y}=n.options,le=Q?dx:cx;return{pages:le(I.pages,z,Y),pageParams:le(I.pageParams,M,Y)}};if(l&&u.length){const I=l==="backward",M=I?kx:kp,Q={pages:u,pageParams:d},se=M(i,Q);p=await B(Q,se,I)}else{const I=r??u.length;do{const M=m===0?d[0]??i.initialPageParam:kp(i,p);if(m>0&&M==null)break;p=await B(p,M),m++}while(m<I)}return p};n.options.persister?n.fetchFn=()=>{var _,b;return(b=(_=n.options).persister)==null?void 0:b.call(_,g,{client:n.client,queryKey:n.queryKey,meta:n.options.meta,signal:n.signal},s)}:n.fetchFn=g}}}function kp(r,{pages:n,pageParams:s}){const i=n.length-1;return n.length>0?r.getNextPageParam(n[i],n,s[i],s):void 0}function kx(r,{pages:n,pageParams:s}){var i;return n.length>0?(i=r.getPreviousPageParam)==null?void 0:i.call(r,n[0],n,s[0],s):void 0}var Wo,cn,pt,Fr,dn,er,Em,Sx=(Em=class extends uy{constructor(n){super();he(this,dn);he(this,Wo);he(this,cn);he(this,pt);he(this,Fr);J(this,Wo,n.client),this.mutationId=n.mutationId,J(this,pt,n.mutationCache),J(this,cn,[]),this.state=n.state||_x(),this.setOptions(n.options),this.scheduleGc()}setOptions(n){this.options=n,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(n){S(this,cn).includes(n)||(S(this,cn).push(n),this.clearGcTimeout(),S(this,pt).notify({type:"observerAdded",mutation:this,observer:n}))}removeObserver(n){J(this,cn,S(this,cn).filter(s=>s!==n)),this.scheduleGc(),S(this,pt).notify({type:"observerRemoved",mutation:this,observer:n})}optionalRemove(){S(this,cn).length||(this.state.status==="pending"?this.scheduleGc():S(this,pt).remove(this))}continue(){var n;return((n=S(this,Fr))==null?void 0:n.continue())??this.execute(this.state.variables)}async execute(n){var d,p,m,g,v,w,T,F,C,_,b,j,B,I,M,Q,se,ie;const s=()=>{Ne(this,dn,er).call(this,{type:"continue"})},i={client:S(this,Wo),meta:this.options.meta,mutationKey:this.options.mutationKey};J(this,Fr,ly({fn:()=>this.options.mutationFn?this.options.mutationFn(n,i):Promise.reject(new Error("No mutationFn found")),onFail:(z,Y)=>{Ne(this,dn,er).call(this,{type:"failed",failureCount:z,error:Y})},onPause:()=>{Ne(this,dn,er).call(this,{type:"pause"})},onContinue:s,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>S(this,pt).canRun(this)}));const l=this.state.status==="pending",u=!S(this,Fr).canStart();try{if(l)s();else{Ne(this,dn,er).call(this,{type:"pending",variables:n,isPaused:u}),S(this,pt).config.onMutate&&await S(this,pt).config.onMutate(n,this,i);const Y=await((p=(d=this.options).onMutate)==null?void 0:p.call(d,n,i));Y!==this.state.context&&Ne(this,dn,er).call(this,{type:"pending",context:Y,variables:n,isPaused:u})}const z=await S(this,Fr).start();return await((g=(m=S(this,pt).config).onSuccess)==null?void 0:g.call(m,z,n,this.state.context,this,i)),await((w=(v=this.options).onSuccess)==null?void 0:w.call(v,z,n,this.state.context,i)),await((F=(T=S(this,pt).config).onSettled)==null?void 0:F.call(T,z,null,this.state.variables,this.state.context,this,i)),await((_=(C=this.options).onSettled)==null?void 0:_.call(C,z,null,n,this.state.context,i)),Ne(this,dn,er).call(this,{type:"success",data:z}),z}catch(z){try{await((j=(b=S(this,pt).config).onError)==null?void 0:j.call(b,z,n,this.state.context,this,i))}catch(Y){Promise.reject(Y)}try{await((I=(B=this.options).onError)==null?void 0:I.call(B,z,n,this.state.context,i))}catch(Y){Promise.reject(Y)}try{await((Q=(M=S(this,pt).config).onSettled)==null?void 0:Q.call(M,void 0,z,this.state.variables,this.state.context,this,i))}catch(Y){Promise.reject(Y)}try{await((ie=(se=this.options).onSettled)==null?void 0:ie.call(se,void 0,z,n,this.state.context,i))}catch(Y){Promise.reject(Y)}throw Ne(this,dn,er).call(this,{type:"error",error:z}),z}finally{S(this,pt).runNext(this)}}},Wo=new WeakMap,cn=new WeakMap,pt=new WeakMap,Fr=new WeakMap,dn=new WeakSet,er=function(n){const s=i=>{switch(n.type){case"failed":return{...i,failureCount:n.failureCount,failureReason:n.error};case"pause":return{...i,isPaused:!0};case"continue":return{...i,isPaused:!1};case"pending":return{...i,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{...i,data:n.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...i,data:void 0,error:n.error,failureCount:i.failureCount+1,failureReason:n.error,isPaused:!1,status:"error"}}};this.state=s(this.state),ut.batch(()=>{S(this,cn).forEach(i=>{i.onMutationUpdate(n)}),S(this,pt).notify({mutation:this,type:"updated",action:n})})},Em);function _x(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Tn,en,Qo,Cm,Ex=(Cm=class extends Yo{constructor(n={}){super();he(this,Tn);he(this,en);he(this,Qo);this.config=n,J(this,Tn,new Set),J(this,en,new Map),J(this,Qo,0)}build(n,s,i){const l=new Sx({client:n,mutationCache:this,mutationId:++da(this,Qo)._,options:n.defaultMutationOptions(s),state:i}
150);return this.add(l),l}add(n){S(this,Tn).add(n);const s=ma(n);if(typeof s=="string"){const i=S(this,en).get(s);i?i.push(n):S(this,en).set(s,[n])}this.notify({type:"added",mutation:n})}remove(n){if(S(this,Tn).delete(n)){const s=ma(n);if(typeof s=="string"){const i=S(this,en).get(s);if(i)if(i.length>1){const l=i.indexOf(n);l!==-1&&i.splice(l,1)}else i[0]===n&&S(this,en).delete(s)}}this.notify({type:"removed",mutation:n})}canRun(n){const s=ma(n);if(typeof s=="string"){const i=S(this,en).get(s),l=i==null?void 0:i.find(u=>u.state.status==="pending");return!l||l===n}else return!0}runNext(n){var i;const s=ma(n);if(typeof s=="string"){const l=(i=S(this,en).get(s))==null?void 0:i.find(u=>u!==n&&u.state.isPaused);return(l==null?void 0:l.continue())??Promise.resolve()}else return Promise.resolve()}clear(){ut.batch(()=>{S(this,Tn).forEach(n=>{this.notify({type:"removed",mutation:n})}),S(this,Tn).clear(),S(this,en).clear()})}getAll(){return Array.from(S(this,Tn))}find(n){const s={exact:!0,...n};return this.getAll().find(i=>pp(s,i))}findAll(n={}){return this.getAll().filter(s=>pp(n,s))}notify(n){ut.batch(()=>{this.listeners.forEach(s=>{s(n)})})}resumePausedMutations(){const n=this.getAll().filter(s=>s.state.isPaused);return ut.batch(()=>Promise.all(n.map(s=>s.continue().catch(Ct))))}},Tn=new WeakMap,en=new WeakMap,Qo=new WeakMap,Cm);function ma(r){var n;return(n=r.options.scope)==null?void 0:n.id}var fn,Nm,Cx=(Nm=class extends Yo{constructor(n={}){super();he(this,fn);this.config=n,J(this,fn,new Map)}build(n,s,i){const l=s.queryKey,u=s.queryHash??Lc(l,s);let d=this.get(u);return d||(d=new vx({client:n,queryKey:l,queryHash:u,options:n.defaultQueryOptions(s),state:i,defaultOptions:n.getQueryDefaults(l)}),this.add(d)),d}add(n){S(this,fn).has(n.queryHash)||(S(this,fn).set(n.queryHash,n),this.notify({type:"added",query:n}))}remove(n){const s=S(this,fn).get(n.queryHash);s&&(n.destroy(),s===n&&S(this,fn).delete(n.queryHash),this.notify({type:"removed",query:n}))}clear(){ut.batch(()=>{this.getAll().forEach(n=>{this.remove(n)})})}get(n){return S(this,fn).get(n)}getAll(){return[...S(this,fn).values()]}find(n){const s={exact:!0,...n};return this.getAll().find(i=>hp(s,i))}findAll(n={}){const s=this.getAll();return Object.keys(n).length>0?s.filter(i=>hp(n,i)):s}notify(n){ut.batch(()=>{this.listeners.forEach(s=>{s(n)})})}onFocus(){ut.batch(()=>{this.getAll().forEach(n=>{n.onFocus()})})}onOnline(){ut.batch(()=>{this.getAll().forEach(n=>{n.onOnline()})})}},fn=new WeakMap,Nm),qe,ir,ar,Rs,js,lr,Ps,As,Tm,Nx=(Tm=class{constructor(r={}){he(this,qe);he(this,ir);he(this,ar);he(this,Rs);he(this,js);he(this,lr);he(this,Ps);he(this,As);J(this,qe,r.queryCache||new Cx),J(this,ir,r.mutationCache||new Ex),J(this,ar,r.defaultOptions||{}),J(this,Rs,new Map),J(this,js,new Map),J(this,lr,0)}mount(){da(this,lr)._++,S(this,lr)===1&&(J(this,Ps,Dc.subscribe(async r=>{r&&(await this.resumePausedMutations(),S(this,qe).onFocus())})),J(this,As,ja.subscribe(async r=>{r&&(await this.resumePausedMutations(),S(this,qe).onOnline())})))}unmount(){var r,n;da(this,lr)._--,S(this,lr)===0&&((r=S(this,Ps))==null||r.call(this),J(this,Ps,void 0),(n=S(this,As))==null||n.call(this),J(this,As,void 0))}isFetching(r){return S(this,qe).findAll({...r,fetchStatus:"fetching"}).length}isMutating(r){return S(this,ir).findAll({...r,status:"pending"}).length}getQueryData(r){var s;const n=this.defaultQueryOptions({queryKey:r});return(s=S(this,qe).get(n.queryHash))==null?void 0:s.state.data}ensureQueryData(r){const n=this.defaultQueryOptions(r),s=S(this,qe).build(this,n),i=s.state.data;return i===void 0?this.fetchQuery(r):(r.revalidateIfStale&&s.isStaleByTime(cr(n.staleTime,s))&&this.prefetchQuery(n),Promise.resolve(i))}getQueriesData(r){return S(this,qe).findAll(r).map(({queryKey:n,state:s})=>{const i=s.data;return[n,i]})}setQueryData(r,n,s){const i=this.defaultQueryOptions({queryKey:r}),l=S(this,qe).get(i.queryHash),u=l==null?void 0:l.state.data,d=ax(n,u);if(d!==void 0)return S(this,qe).build(this,i).setData(d,{...s,manual:!0})}setQueriesData(r,n,s){return ut.batch(()=>S(this,qe).findAll(r).map(({queryKey:i})=>[i,this.setQueryData(i,n,s)]))}getQueryState(r){var s;const n=this.defaultQueryOptions({queryKey:r});return(s=S(this,qe).get(n.queryHash))==null?void 0:s.state}removeQueries(r){const n=S(this,qe);ut.batch(()=>{n.findAll(r).forEach(s=>
150{n.remove(s)})})}resetQueries(r,n){const s=S(this,qe);return ut.batch(()=>(s.findAll(r).forEach(i=>{i.reset()}),this.refetchQueries({type:"active",...r},n)))}cancelQueries(r,n={}){const s={revert:!0,...n},i=ut.batch(()=>S(this,qe).findAll(r).map(l=>l.cancel(s)));return Promise.all(i).then(Ct).catch(Ct)}invalidateQueries(r,n={}){return ut.batch(()=>(S(this,qe).findAll(r).forEach(s=>{s.invalidate()}),(r==null?void 0:r.refetchType)==="none"?Promise.resolve():this.refetchQueries({...r,type:(r==null?void 0:r.refetchType)??(r==null?void 0:r.type)??"active"},n)))}refetchQueries(r,n={}){const s={...n,cancelRefetch:n.cancelRefetch??!0},i=ut.batch(()=>S(this,qe).findAll(r).filter(l=>!l.isDisabled()&&!l.isStatic()).map(l=>{let u=l.fetch(void 0,s);return s.throwOnError||(u=u.catch(Ct)),l.state.fetchStatus==="paused"?Promise.resolve():u}));return Promise.all(i).then(Ct)}fetchQuery(r){const n=this.defaultQueryOptions(r);n.retry===void 0&&(n.retry=!1);const s=S(this,qe).build(this,n);return s.isStaleByTime(cr(n.staleTime,s))?s.fetch(n):Promise.resolve(s.state.data)}prefetchQuery(r){return this.fetchQuery(r).then(Ct).catch(Ct)}fetchInfiniteQuery(r){return r.behavior=bp(r.pages),this.fetchQuery(r)}prefetchInfiniteQuery(r){return this.fetchInfiniteQuery(r).then(Ct).catch(Ct)}ensureInfiniteQueryData(r){return r.behavior=bp(r.pages),this.ensureQueryData(r)}resumePausedMutations(){return ja.isOnline()?S(this,ir).resumePausedMutations():Promise.resolve()}getQueryCache(){return S(this,qe)}getMutationCache(){return S(this,ir)}getDefaultOptions(){return S(this,ar)}setDefaultOptions(r){J(this,ar,r)}setQueryDefaults(r,n){S(this,Rs).set(Fo(r),{queryKey:r,defaultOptions:n})}getQueryDefaults(r){const n=[...S(this,Rs).values()],s={};return n.forEach(i=>{Uo(r,i.queryKey)&&Object.assign(s,i.defaultOptions)}),s}setMutationDefaults(r,n){S(this,js).set(Fo(r),{mutationKey:r,defaultOptions:n})}getMutationDefaults(r){const n=[...S(this,js).values()],s={};return n.forEach(i=>{Uo(r,i.mutationKey)&&Object.assign(s,i.defaultOptions)}),s}defaultQueryOptions(r){if(r._defaulted)return r;const n={...S(this,ar).queries,...this.getQueryDefaults(r.queryKey),...r,_defaulted:!0};return n.queryHash||(n.queryHash=Lc(n.queryKey,n)),n.refetchOnReconnect===void 0&&(n.refetchOnReconnect=n.networkMode!=="always"),n.throwOnError===void 0&&(n.throwOnError=!!n.suspense),!n.networkMode&&n.persister&&(n.networkMode="offlineFirst"),n.queryFn===Mc&&(n.enabled=!1),n}defaultMutationOptions(r){return r!=null&&r._defaulted?r:{...S(this,ar).mutations,...(r==null?void 0:r.mutationKey)&&this.getMutationDefaults(r.mutationKey),...r,_defaulted:!0}}clear(){S(this,qe).clear(),S(this,ir).clear()}},qe=new WeakMap,ir=new WeakMap,ar=new WeakMap,Rs=new WeakMap,js=new WeakMap,lr=new WeakMap,Ps=new WeakMap,As=new WeakMap,Tm),fy=A.createContext(void 0),Tx=r=>{const n=A.useContext(fy);if(!n)throw new Error("No QueryClient set, use QueryClientProvider to set one");return n},Rx=({client:r,children:n})=>(A.useEffect(()=>(r.mount(),()=>{r.unmount()}),[r]),h.jsx(fy.Provider,{value:r,children:n})),hy=A.createContext(!1),jx=()=>A.useContext(hy);hy.Provider;function Px(){let r=!1;return{clearReset:()=>{r=!1},reset:()=>{r=!0},isReset:()=>r}}var Ax=A.createContext(Px()),Ox=()=>A.useContext(Ax),Ix=(r,n,s)=>{const i=s!=null&&s.state.error&&typeof r.throwOnError=="function"?iy(r.throwOnError,[s.state.error,s]):r.throwOnError;(r.suspense||r.experimental_prefetchInRender||i)&&(n.isReset()||(r.retryOnMount=!1))},Lx=r=>{A.useEffect(()=>{r.clearReset()},[r])},Mx=({result:r,errorResetBoundary:n,throwOnError:s,query:i,suspense:l})=>r.isError&&!n.isReset()&&!r.isFetching&&i&&(l&&r.data===void 0||iy(s,[r.error,i])),Dx=r=>{if(r.suspense){const s=l=>l==="static"?l:Math.max(l??1e3,1e3),i=r.staleTime;r.staleTime=typeof i=="function"?(...l)=>s(i(...l)):s(i),typeof r.gcTime=="number"&&(r.gcTime=Math.max(r.gcTime,1e3))}},Fx=(r,n)=>r.isLoading&&r.isFetching&&!n,Ux=(r,n)=>(r==null?void 0:r.suspense)&&n.isPending,Sp=(r,n,s)=>n.fetchOptimistic(r).catch(()=>{s.clearReset()});function zx(r,n,s){var T,F,C,_;const i=jx(),l=Ox(),u=Tx(),d=u.defaultQueryOptions(r);(F=(T=u.getDefaultOptions().queries)==null?void 0:T._experimental_beforeQuery)==null||F.call(T,d);const p=u.getQueryCache().get(d.queryHash);d._optimisticResults=i?"isRestoring":"optimistic",Dx(d),Ix(d,l,p),Lx(l);const m=!u.getQueryCache().get(d.queryHash),[g]=A.useState(()=>new n(u,d)),v=g.getOptimisticResult(d),w=!i&&r.subscribed!==!1;if(A.useSyncExternalStore(A.useCallback(b=>{const j=w?g.subscribe(ut.batchCalls(b)):Ct;return g.updateResult(),j},[g,w]),()=>g.getCurrentResult(),()=>g.getCurrentResult()),A.useEffect(()=>{g.setOptions(d)},[d,g]),Ux(d,v))throw Sp(d,g,l);if(Mx({result:v,errorResetBoundary:l,throwOnError:d.throwOnError,query:p,suspense:d.suspense}))throw v.error;if((_=(C=u.getDefaultOptions().queries)==null?void 0:C._experimental_afterQuery)==null||_.call(C,d,v),d.experimental_prefetchInRender&&!zr&&Fx(v,i)){const b=m?Sp(d,g,l):p==null?void 0:p.promise;b==null||b.catch(Ct).finally(()=>{g.updateResult()})}return d.notifyOnChangeProps?v:g.trackResult(v)}function Bx(r,n){return zx(r,wx)}const $x=new Nx({defaultOptions:{queries:{refetchOnWindowFocus:!1,retry:1}}});Pm();/**
151 * @remix-run/router v1.23.2
152 *
153 * Copyright (c) Remix Software Inc.
154 *
155 * This source code is licensed under the MIT license found in the
156 * LICENSE.md file in the root directory of this source tree.
157 *
158 * @license MIT
159 */function zo(){return zo=Object.assign?Object.assign.bind():function(r){for(var n=1;n<arguments.length;n++){var s=arguments[n];for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&(r[i]=s[i])}return r},zo.apply(this,arguments)}var ur;(function(r){r.Pop="POP",r.Push="PUSH",r.Replace="REPLACE"})(ur||(ur={}));const _p="popstate";function qx(r){r===void 0&&(r={});function n(i,l){let{pathname:u,search:d,hash:p}=i.location;return pc("",{pathname:u,search:d,hash:p},l.state&&l.state.usr||null,l.state&&l.state.key||"default")}function s(i,l){return typeof l=="string"?l:Pa(l)}return Vx(n,s,null,r)}function Ke(r,n){if(r===!1||r===null||typeof r>"u")throw new Error(n)}function Uc(r,n){if(!r){typeof console<"u"&&console.warn(n);try{throw new Error(n)}catch{}}}function Hx(){return Math.random().toString(36).substr(2,8)}function Ep(r,n){return{usr:r.state,key:r.key,idx:n}}function pc(r,n,s,i){return s===void 0&&(s=null),zo({pathname:typeof r=="string"?r:r.pathname,search:"",hash:""},typeof n=="string"?Is(n):n,{state:s,key:n&&n.key||i||Hx()})}function Pa(r){let{pathname:n="/",search:s="",hash:i=""}=r;return s&&s!=="?"&&(n+=s.charAt(0)==="?"?s:"?"+s),i&&i!=="#"&&(n+=i.charAt(0)==="#"?i:"#"+i),n}function Is(r){let n={};if(r){let s=r.indexOf("#");s>=0&&(n.hash=r.substr(s),r=r.substr(0,s));let i=r.indexOf("?");i>=0&&(n.search=r.substr(i),r=r.substr(0,i)),r&&(n.pathname=r)}return n}function Vx(r,n,s,i){i===void 0&&(i={});let{window:l=document.defaultView,v5Compat:u=!1}=i,d=l.history,p=ur.Pop,m=null,g=v();g==null&&(g=0,d.replaceState(zo({},d.state,{idx:g}),""));function v(){return(d.state||{idx:null}).idx}function w(){p=ur.Pop;let b=v(),j=b==null?null:b-g;g=b,m&&m({action:p,location:_.location,delta:j})}function T(b,j){p=ur.Push;let B=pc(_.location,b,j);g=v()+1;let I=Ep(B,g),M=_.createHref(B);try{d.pushState(I,"",M)}catch(Q){if(Q instanceof DOMException&&Q.name==="DataCloneError")throw Q;l.location.assign(M)}u&&m&&m({action:p,location:_.location,delta:1})}function F(b,j){p=ur.Replace;let B=pc(_.location,b,j);g=v();let I=Ep(B,g),M=_.createHref(B);d.replaceState(I,"",M),u&&m&&m({action:p,location:_.location,delta:0})}function C(b){let j=l.location.origin!=="null"?l.location.origin:l.location.href,B=typeof b=="string"?b:Pa(b);return B=B.replace(/ $/,"%20"),Ke(j,"No window.location.(origin|href) available to create URL for href: "+B),new URL(B,j)}let _={get action(){return p},get location(){return r(l,d)},listen(b){if(m)throw new Error("A history only accepts one active listener");return l.addEventListener(_p,w),m=b,()=>{l.removeEventListener(_p,w),m=null}},createHref(b){return n(l,b)},createURL:C,encodeLocation(b){let j=C(b);return{pathname:j.pathname,search:j.search,hash:j.hash}},push:T,replace:F,go(b){return d.go(b)}};return _}var Cp;(function(r){r.data="data",r.deferred="deferred",r.redirect="redirect",r.error="error"})(Cp||(Cp={}));function Wx(r,n,s){return s===void 0&&(s="/"),Qx(r,n,s)}function Qx(r,n,s,i){let l=typeof n=="string"?Is(n):n,u=zc(l.pathname||"/",s);if(u==null)return null;let d=py(r);Yx(d);let p=null;for(let m=0;p==null&&m<d.length;++m){let g=ib(u);p=rb(d[m],g)}return p}function py(r,n,s,i){n===void 0&&(n=[]),s===void 0&&(s=[]),i===void 0&&(i="");let l=(u,d,p)=>
vendor: 1,825 bytes, line 159
159{let m={relativePath:p===void 0?u.path||"":p,caseSensitive:u.caseSensitive===!0,childrenIndex:d,route:u};m.relativePath.startsWith("/")&&(Ke(m.relativePath.startsWith(i),'Absolute route path "'+m.relativePath+'" nested under path '+('"'+i+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),m.relativePath=m.relativePath.slice(i.length));let g=dr([i,m.relativePath]),v=s.concat(m);u.children&&u.children.length>0&&(Ke(u.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+g+'".')),py(u.children,n,v,g)),!(u.path==null&&!u.index)&&n.push({path:g,score:tb(g,u.index),routesMeta:v})};return r.forEach((u,d)=>{var p;if(u.path===""||!((p=u.path)!=null&&p.includes("?")))l(u,d);else for(let m of my(u.path))l(u,d,m)}),n}function my(r){let n=r.split("/");if(n.length===0)return[];let[s,...i]=n,l=s.endsWith("?"),u=s.replace(/\?$/,"");if(i.length===0)return l?[u,""]:[u];let d=my(i.join("/")),p=[];return p.push(...d.map(m=>m===""?u:[u,m].join("/"))),l&&p.push(...d),p.map(m=>r.startsWith("/")&&m===""?"/":m)}function Yx(r){r.sort((n,s)=>n.score!==s.score?s.score-n.score:nb(n.routesMeta.map(i=>i.childrenIndex),s.routesMeta.map(i=>i.childrenIndex)))}const Kx=/^:[\w-]+$/,Gx=3,Jx=2,Xx=1,Zx=10,eb=-2,Np=r=>r==="*";function tb(r,n){let s=r.split("/"),i=s.length;return s.some(Np)&&(i+=eb),n&&(i+=Jx),s.filter(l=>!Np(l)).reduce((l,u)=>l+(Kx.test(u)?Gx:u===""?Xx:Zx),i)}function nb(r,n){return r.length===n.length&&r.slice(0,-1).every((i,l)=>i===n[l])?r[r.length-1]-n[n.length-1]:0}function rb(r,n,s){let{routesMeta:i}=r,l={},u="/",d=[];for(let p=0;p<i.length;++p){let m=i[p],g=p===i.length-1,v=u==="/"?n:n.slice(u.length)||"/",w=sb({path:m.relativePath,caseSensitive:m.caseSensitive,end:g},v),T=m.route;if(!w)return null;
vendor: 7,087 bytes, lines 159-168
159Object.assign(l,w.params),d.push({params:l,pathname:dr([u,w.pathname]),pathnameBase:db(dr([u,w.pathnameBase])),route:T}),w.pathnameBase!=="/"&&(u=dr([u,w.pathnameBase]))}return d}function sb(r,n){typeof r=="string"&&(r={path:r,caseSensitive:!1,end:!0});let[s,i]=ob(r.path,r.caseSensitive,r.end),l=n.match(s);if(!l)return null;let u=l[0],d=u.replace(/(.)\/+$/,"$1"),p=l.slice(1);return{params:i.reduce((g,v,w)=>{let{paramName:T,isOptional:F}=v;if(T==="*"){let _=p[w]||"";d=u.slice(0,u.length-_.length).replace(/(.)\/+$/,"$1")}const C=p[w];return F&&!C?g[T]=void 0:g[T]=(C||"").replace(/%2F/g,"/"),g},{}),pathname:u,pathnameBase:d,pattern:r}}function ob(r,n,s){n===void 0&&(n=!1),s===void 0&&(s=!0),Uc(r==="*"||!r.endsWith("*")||r.endsWith("/*"),'Route path "'+r+'" will be treated as if it were '+('"'+r.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+r.replace(/\*$/,"/*")+'".'));let i=[],l="^"+r.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(d,p,m)=>(i.push({paramName:p,isOptional:m!=null}),m?"/?([^\\/]+)?":"/([^\\/]+)"));return r.endsWith("*")?(i.push({paramName:"*"}),l+=r==="*"||r==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):s?l+="\\/*$":r!==""&&r!=="/"&&(l+="(?:(?=\\/|$))"),[new RegExp(l,n?void 0:"i"),i]}function ib(r){try{return r.split("/").map(n=>decodeURIComponent(n).replace(/\//g,"%2F")).join("/")}catch(n){return Uc(!1,'The URL path "'+r+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+n+").")),r}}function zc(r,n){if(n==="/")return r;if(!r.toLowerCase().startsWith(n.toLowerCase()))return null;let s=n.endsWith("/")?n.length-1:n.length,i=r.charAt(s);return i&&i!=="/"?null:r.slice(s)||"/"}const ab=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,lb=r=>ab.test(r);function ub(r,n){n===void 0&&(n="/");let{pathname:s,search:i="",hash:l=""}=typeof r=="string"?Is(r):r,u;if(s)if(lb(s))u=s;else{if(s.includes("//")){let d=s;s=s.replace(/\/\/+/g,"/"),Uc(!1,"Pathnames cannot have embedded double slashes - normalizing "+(d+" -> "+s))}s.startsWith("/")?u=Tp(s.substring(1),"/"):u=Tp(s,n)}else u=n;return{pathname:u,search:fb(i),hash:hb(l)}}function Tp(r,n){let s=n.replace(/\/+$/,"").split("/");return r.split("/").forEach(l=>{l===".."?s.length>1&&s.pop():l!=="."&&s.push(l)}),s.length>1?s.join("/"):"/"}function Bu(r,n,s,i){return"Cannot include a '"+r+"' character in a manually specified "+("`to."+n+"` field ["+JSON.stringify(i)+"].  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 cb(r){return r.filter((n,s)=>s===0||n.route.path&&n.route.path.length>0)}function yy(r,n){let s=cb(r);return n?s.map((i,l)=>l===s.length-1?i.pathname:i.pathnameBase):s.map(i=>i.pathnameBase)}function gy(r,n,s,i){i===void 0&&(i=!1);let l;typeof r=="string"?l=Is(r):(l=zo({},r),Ke(!l.pathname||!l.pathname.includes("?"),Bu("?","pathname","search",l)),Ke(!l.pathname||!l.pathname.includes("#"),Bu("#","pathname","hash",l)),Ke(!l.search||!l.search.includes("#"),Bu("#","search","hash",l)));let u=r===""||l.pathname==="",d=u?"/":l.pathname,p;if(d==null)p=s;else{let w=n.length-1;if(!i&&d.startsWith("..")){let T=d.split("/");for(;T[0]==="..";)T.shift(),w-=1;l.pathname=T.join("/")}p=w>=0?n[w]:"/"}let m=ub(l,p),g=d&&d!=="/"&&d.endsWith("/"),v=(u||d===".")&&s.endsWith("/");return!m.pathname.endsWith("/")&&(g||v)&&(m.pathname+="/"),m}const dr=r=>r.join("/").replace(/\/\/+/g,"/"),db=r=>r.replace(/\/+$/,"").replace(/^\/*/,"/"),fb=r=>!r||r==="?"?"":r.startsWith("?")?r:"?"+r,hb=r=>!r||r==="#"?"":r.startsWith("#")?r:"#"+r;function pb(r){return r!=null&&typeof r.status=="number"&&typeof r.statusText=="string"&&typeof r.internal=="boolean"&&"data"in r}const vy=["post","put","patch","delete"];new Set(vy);const mb=["get",...vy];new Set(mb);/**
160 * React Router v6.30.3
161 *
162 * Copyright (c) Remix Software Inc.
163 *
164 * This source code is licensed under the MIT license found in the
165 * LICENSE.md file in the root directory of this source tree.
166 *
167 * @license MIT
168 */function Bo(){return Bo=Object.assign?Object.assign.bind():function(r){for(var n=1;n<arguments.length;n++){var s=arguments[n];for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&(r[i]=s[i])}return r},Bo.apply(this,arguments)}const Bc=A.createContext(null),yb=A.createContext(null),qr=A.createContext(null),La=A.createContext(null),Hr=A.createContext({outlet:null,matches:[],isDataRoute:!1}),wy=A.createContext(null);function gb(r,n){let{relative:s}=n===void 0?{}:n;Ko()||Ke(!1);let{basename:i,navigator:l}=A.useContext(qr),{hash:u,pathname:d,search:p}=by(r,{relative:s}),m=d;return i!=="/"&&(m=d==="/"?i:dr([i,d])),l.createHref({pathname:m,search:p,hash:u})}function Ko(){return A.useContext(La)!=null}function Vr(){return Ko()||Ke(!1),A.useContext(La).location}function xy(r){A.useContext(qr).static||A.useLayoutEffect(r)}function $c(){let{isDataRoute:r}=A.useContext(Hr);return r?jb():vb()}function vb(){Ko()||Ke(!1);let r=A.useContext(Bc),{basename:n,future:s,navigator:i}=A.useContext(qr),{matches:l}=A.useContext(Hr),{pathname:u}=Vr(),d=JSON.stringify(yy(l,s.v7_relativeSplatPath)),p=A.useRef(!1);return xy(()=>{p.current=!0}),A.useCallback(function(g,v){if(v===void 0&&(v={}),!p.current)return;if(typeof g=="number"){i.go(g);return}let w=gy(g,JSON.parse(d),u,v.relative==="path");r==null&&n!=="/"&&(w.pathname=w.pathname==="/"?n:dr([n,w.pathname])),(v.replace?i.replace:i.push)(w,v.state,v)},[n,i,d,u,r])}function by(r,n){let{relative:s}=n===void 0?{}:n,{future:i}=A.useContext(qr),{matches:l}=A.useContext(Hr),{pathname:u}=Vr(),d=JSON.stringify(yy(l,i.v7_relativeSplatPath));return A.useMemo(()=>gy(r,JSON.parse(d),u,s==="path"),[r,d,u,s])}function wb(r,n){return xb(r,n)}function xb(r,n,s,i){Ko()||Ke(!1);let{navigator:l}=A.useContext(qr),{matches:u}=A.useContext(Hr),d=u[u.length-1],p=d?d.params:{};d&&d.pathname;let m=d?d.pathnameBase:"/";d&&d.route;let g=Vr(),v;if(n){var w;let b=typeof n=="string"?Is(n):n;m==="/"||(w=b.pathname)!=null&&w.startsWith(m)||Ke(!1),v=b}else v=g;let T=v.pathname||"/",F=T;if(m!=="/"){let b=m.replace(/^\//,"").split("/");F="/"+T.replace(/^\//,"").split("/").slice(b.length).join("/")}let C=Wx(r,{pathname:F}),_=Eb(C&&C.map(b=>Object.assign({},b,{params:Object.assign({},p,b.params),pathname:dr([m,l.encodeLocation?l.encodeLocation(b.pathname).pathname:b.pathname]),pathnameBase:b.pathnameBase==="/"?m:dr([m,l.encodeLocation?l.encodeLocation(b.pathnameBase).pathname:b.pathnameBase])})),u,s,i);return n&&_?A.createElement(La.Provider,{value:{location:Bo({pathname:"/",search:"",hash:"",state:null,key:"default"},v),navigationType:ur.Pop}},_):_}function bb(){let r=Rb(),n=pb(r)?r.status+" "+r.statusText:r instanceof Error?r.message:JSON.stringify(r),s=r instanceof Error?r.stack:null,l={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return A.createElement(A.Fragment,null,A.createElement("h2",null,"Unexpected Application 
168Error!"),A.createElement("h3",{style:{fontStyle:"italic"}},n),s?A.createElement("pre",{style:l},s):null,null)}const kb=A.createElement(bb,null);class Sb extends A.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,s){return s.location!==n.location||s.revalidation!=="idle"&&n.revalidation==="idle"?{error:n.error,location:n.location,revalidation:n.revalidation}:{error:n.error!==void 0?n.error:s.error,location:s.location,revalidation:n.revalidation||s.revalidation}}componentDidCatch(n,s){console.error("React Router caught the following error during render",n,s)}render(){return this.state.error!==void 0?A.createElement(Hr.Provider,{value:this.props.routeContext},A.createElement(wy.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function _b(r){let{routeContext:n,match:s,children:i}=r,l=A.useContext(Bc);return l&&l.static&&l.staticContext&&(s.route.errorElement||s.route.ErrorBoundary)&&(l.staticContext._deepestRenderedBoundaryId=s.route.id),A.createElement(Hr.Provider,{value:n},i)}function Eb(r,n,s,i){var l;if(n===void 0&&(n=[]),s===void 0&&(s=null),i===void 0&&(i=null),r==null){var u;if(!s)return null;if(s.errors)r=s.matches;else if((u=i)!=null&&u.v7_partialHydration&&n.length===0&&!s.initialized&&s.matches.length>0)r=s.matches;else return null}let d=r,p=(l=s)==null?void 0:l.errors;if(p!=null){let v=d.findIndex(w=>w.route.id&&(p==null?void 0:p[w.route.id])!==void 0);v>=0||Ke(!1),d=d.slice(0,Math.min(d.length,v+1))}let m=!1,g=-1;if(s&&i&&i.v7_partialHydration)for(let v=0;v<d.length;v++){let w=d[v];if((w.route.HydrateFallback||w.route.hydrateFallbackElement)&&(g=v),w.route.id){let{loaderData:T,errors:F}=s,C=w.route.loader&&T[w.route.id]===void 0&&(!F||F[w.route.id]===void 0);if(w.route.lazy||C){m=!0,g>=0?d=d.slice(0,g+1):d=[d[0]];break}}}return d.reduceRight((v,w,T)=>{let F,C=!1,_=null,b=null;s&&(F=p&&w.route.id?p[w.route.id]:void 0,_=w.route.errorElement||kb,m&&(g<0&&T===0?(Pb("route-fallback"),C=!0,b=null):g===T&&(C=!0,b=w.route.hydrateFallbackElement||null)));let j=n.concat(d.slice(0,T+1)),B=()=>{let I;return F?I=_:C?I=b:w.route.Component?I=A.createElement(w.route.Component,null):w.route.element?I=w.route.element:I=v,A.createElement(_b,{match:w,routeContext:{outlet:v,matches:j,isDataRoute:s!=null},children:I})};return s&&(w.route.ErrorBoundary||w.route.errorElement||T===0)?A.createElement(Sb,{location:s.location,revalidation:s.revalidation,component:_,error:F,children:B(),routeContext:{outlet:null,matches:j,isDataRoute:!0}}):B()},null)}var ky=(function(r){return r.UseBlocker="useBlocker",r.UseRevalidator="useRevalidator",r.UseNavigateStable="useNavigate",r})(ky||{}),Sy=(function(r){return r.UseBlocker="useBlocker",r.UseLoaderData="useLoaderData",r.UseActionData="useActionData",r.UseRouteError="useRouteError",r.UseNavigation="useNavigation",r.UseRouteLoaderData="useRouteLoaderData",r.UseMatches="useMatches",r.UseRevalidator="useRevalidator",r.UseNavigateStable="useNavigate",r.UseRouteId="useRouteId",r})(Sy||{});function Cb(r){let n=A.useContext(Bc);return n||Ke(!1),n}function Nb(r){let n=A.useContext(yb);return n||Ke(!1),n}function Tb(r){let n=A.useContext(Hr);return n||Ke(!1),n}function _y(r){let n=Tb(),s=n.matches[n.matches.length-1];return s.route.id||Ke(!1),s.route.id}function Rb(){var r;let n=A.useContext(wy),s=Nb(),i=_y();return n!==void 0?n:(r=s.errors)==null?void 0:r[i]}function jb(){let{router:r}=Cb(ky.UseNavigateStable),n=_y(Sy.UseNavigateStable),s=A.useRef(!1);return xy(()=>{s.current=!0}),A.useCallback(function(l,u){u===void 0&&(u={}),s.current&&(typeof l=="number"?r.navigate(l):r.navigate(l,Bo({fromRouteId:n},u)))},[r,n])}const Rp={};function Pb(r,n,s){Rp[r]||(Rp[r]=!0)}function Ab(r,n){r==null||r.v7_startTransition,r==null||r.v7_relativeSplatPath}function Ao(r){Ke(!1)}function Ob(r){let{basename:n="/",children:s=null,location:i,navigationType:l=ur.Pop,navigator:u,static:d=!1,future:p}=r;Ko()&&Ke(!1);let m=n.replace(/^\/*/,"/"),g=A.useMemo(()=>({basename:m,navigator:u,static:d,future:Bo({v7_relativeSplatPath:!1},p)}),[m,p,u,d]);typeof i=="string"&&(i=Is(i));let{pathname:v="/",search:w="",hash:T="",state:F=null,key:C="default"}=i,_=A.useMemo(()=>{let b=zc(v,m);return b==null?null:{location:{pathname:b,search:w,hash:T,state:F,key:C},navigationType:l}},[m,v,w,T,F,C,l]);return _==null?null:A.createElement(qr.Provider,{value:g},A.createElement(La.Provider,{children:s,value:_}))}function Ib(r){let{children:n,location:s}=r;return wb(mc(n),s)}new Promise(()=>{});function mc(r,n){n===void 0&&(n=[]);let s=[];
168return A.Children.forEach(r,(i,l)=>{if(!A.isValidElement(i))return;let u=[...n,l];if(i.type===A.Fragment){s.push.apply(s,mc(i.props.children,u));return}i.type!==Ao&&Ke(!1),!i.props.index||!i.props.children||Ke(!1);let d={id:i.props.id||u.join("-"),caseSensitive:i.props.caseSensitive,element:i.props.element,Component:i.props.Component,index:i.props.index,path:i.props.path,loader:i.props.loader,action:i.props.action,errorElement:i.props.errorElement,ErrorBoundary:i.props.ErrorBoundary,hasErrorBoundary:i.props.ErrorBoundary!=null||i.props.errorElement!=null,shouldRevalidate:i.props.shouldRevalidate,handle:i.props.handle,lazy:i.props.lazy};i.props.children&&(d.children=mc(i.props.children,u)),s.push(d)}),s}/**
169 * React Router DOM v6.30.3
170 *
171 * Copyright (c) Remix Software Inc.
172 *
173 * This source code is licensed under the MIT license found in the
174 * LICENSE.md file in the root directory of this source tree.
175 *
176 * @license MIT
177 */function yc(){return yc=Object.assign?Object.assign.bind():function(r){for(var n=1;n<arguments.length;n++){var s=arguments[n];for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&(r[i]=s[i])}return r},yc.apply(this,arguments)}function Lb(r,n){if(r==null)return{};var s={},i=Object.keys(r),l,u;for(u=0;u<i.length;u++)l=i[u],!(n.indexOf(l)>=0)&&(s[l]=r[l]);return s}function Mb(r){return!!(r.metaKey||r.altKey||r.ctrlKey||r.shiftKey)}function Db(r,n){return r.button===0&&(!n||n==="_self")&&!Mb(r)}function gc(r){return r===void 0&&(r=""),new URLSearchParams(typeof r=="string"||Array.isArray(r)||r instanceof URLSearchParams?r:Object.keys(r).reduce((n,s)=>{let i=r[s];return n.concat(Array.isArray(i)?i.map(l=>[s,l]):[[s,i]])},[]))}function Fb(r,n){let s=gc(r);return n&&n.forEach((i,l)=>{s.has(l)||n.getAll(l).forEach(u=>{s.append(l,u)})}),s}const Ub=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],zb="6";try{window.__reactRouterVersion=zb}catch{}const Bb="startTransition",jp=jm[Bb];function $b(r){let{basename:n,children:s,future:i,window:l}=r,u=A.useRef();u.current==null&&(u.current=qx({window:l,v5Compat:!0}));let d=u.current,[p,m]=A.useState({action:d.action,location:d.location}),{v7_startTransition:g}=i||{},v=A.useCallback(w=>{g&&jp?jp(()=>m(w)):m(w)},[m,g]);return A.useLayoutEffect(()=>d.listen(v),[d,v]),A.useEffect(()=>Ab(i),[i]),A.createElement(Ob,{basename:n,children:s,location:p.location,navigationType:p.action,navigator:d,future:i})}const qb=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Hb=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Pp=A.forwardRef(function(n,s){let{onClick:i,relative:l,reloadDocument:u,replace:d,state:p,target:m,to:g,preventScrollReset:v,viewTransition:w}=n,T=Lb(n,Ub),{basename:F}=A.useContext(qr),C,_=!1;if(typeof g=="string"&&Hb.test(g)&&(C=g,qb))try{let I=new URL(window.location.href),M=g.startsWith("//")?new URL(I.protocol+g):new URL(g),Q=zc(M.pathname,F);M.origin===I.origin&&Q!=null?g=Q+M.search+M.hash:_=!0}catch{}let b=gb(g,{relative:l}),j=Vb(g,{replace:d,state:p,target:m,preventScrollReset:v,relative:l,viewTransition:w});function B(I){i&&i(I),I.defaultPrevented||j(I)}return A.createElement("a",yc({},T,{href:C||b,onClick:_||u?i:B,ref:s,target:m}))});var Ap;(function(r){r.UseScrollRestoration="useScrollRestoration",r.UseSubmit="useSubmit",r.UseSubmitFetcher="useSubmitFetcher",r.UseFetcher="useFetcher",r.useViewTransitionState="useViewTransitionState"})(Ap||(Ap={}));var Op;(function(r){r.UseFetcher="useFetcher",r.UseFetchers="useFetchers",r.UseScrollRestoration="useScrollRestoration"})(Op||(Op={}));function Vb(r,n){let{target:s,replace:i,state:l,preventScrollReset:u,relative:d,viewTransition:p}=n===void 0?{}:n,m=$c(),g=Vr(),v=by(r,{relative:d});return A.useCallback(w=>{if(Db(w,s)){w.preventDefault();let T=i!==void 0?i:Pa(g)===Pa(v);m(r,{replace:T,state:l,preventScrollReset:u,relative:d,viewTransition:p})}},[g,m,v,i,l,s,r,u,d,p])}function Wb(r){let n=A.useRef(gc(r)),s=A.useRef(!1),i=Vr(),l=A.useMemo(()=>Fb(i.search,s.current?null:n.current),[i.search]),u=$c(),d=A.useCallback((p,m)=>{const g=gc(typeof p=="function"?p(l):p);s.current=!0,u("?"+g,m)},[u,l]);return[l,d]}function Ey(r,n){return function(){return r.apply(n,arguments)}}const{toString:Qb}=Object.prototype,{getPrototypeOf:qc}=Object,{iterator:Ma,toStringTag:Cy}=Symbol,Da=(r=>n=>{const s=Qb.call(n);return r[s]||(r[s]=s.slice(8,-1).toLowerCase())})(Object.create(null)),nn=r=>(r=r.toLowerCase(),n=>Da(n)===r),Fa=r=>n=>typeof n===r,{isArray:Ls}=Array,Os=Fa("undefined");function Go(r){return r!==null&&!Os(r)&&r.constructor!==null&&!Os(r.constructor)&&Nt(r.constructor.isBuffer)&&r.constructor.isBuffer(r)}const Ny=nn("ArrayBuffer");function Yb(r){let n;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?n=ArrayBuffer.isView(r):n=r&&r.buffer&&Ny(r.buffer),n}
vendor: 11,860 bytes, line 177
177const Kb=Fa("string"),Nt=Fa("function"),Ty=Fa("number"),Jo=r=>r!==null&&typeof r=="object",Gb=r=>r===!0||r===!1,ba=r=>{if(Da(r)!=="object")return!1;const n=qc(r);return(n===null||n===Object.prototype||Object.getPrototypeOf(n)===null)&&!(Cy in r)&&!(Ma in r)},Jb=r=>{if(!Jo(r)||Go(r))return!1;try{return Object.keys(r).length===0&&Object.getPrototypeOf(r)===Object.prototype}catch{return!1}},Xb=nn("Date"),Zb=nn("File"),e1=nn("Blob"),t1=nn("FileList"),n1=r=>Jo(r)&&Nt(r.pipe),r1=r=>{let n;return r&&(typeof FormData=="function"&&r instanceof FormData||Nt(r.append)&&((n=Da(r))==="formdata"||n==="object"&&Nt(r.toString)&&r.toString()==="[object FormData]"))},s1=nn("URLSearchParams"),[o1,i1,a1,l1]=["ReadableStream","Request","Response","Headers"].map(nn),u1=r=>r.trim?r.trim():r.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Xo(r,n,{allOwnKeys:s=!1}={}){if(r===null||typeof r>"u")return;let i,l;if(typeof r!="object"&&(r=[r]),Ls(r))for(i=0,l=r.length;i<l;i++)n.call(null,r[i],i,r);else{if(Go(r))return;const u=s?Object.getOwnPropertyNames(r):Object.keys(r),d=u.length;let p;for(i=0;i<d;i++)p=u[i],n.call(null,r[p],p,r)}}function Ry(r,n){if(Go(r))return null;n=n.toLowerCase();const s=Object.keys(r);let i=s.length,l;for(;i-- >0;)if(l=s[i],n===l.toLowerCase())return l;return null}const Rr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,jy=r=>!Os(r)&&r!==Rr;function vc(){const{caseless:r,skipUndefined:n}=jy(this)&&this||{},s={},i=(l,u)=>{if(u==="__proto__"||u==="constructor"||u==="prototype")return;const d=r&&Ry(s,u)||u;ba(s[d])&&ba(l)?s[d]=vc(s[d],l):ba(l)?s[d]=vc({},l):Ls(l)?s[d]=l.slice():(!n||!Os(l))&&(s[d]=l)};for(let l=0,u=arguments.length;l<u;l++)arguments[l]&&Xo(arguments[l],i);return s}const c1=(r,n,s,{allOwnKeys:i}={})=>(Xo(n,(l,u)=>{s&&Nt(l)?Object.defineProperty(r,u,{value:Ey(l,s),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(r,u,{value:l,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:i}),r),d1=r=>(r.charCodeAt(0)===65279&&(r=r.slice(1)),r),f1=(r,n,s,i)=>{r.prototype=Object.create(n.prototype,i),Object.defineProperty(r.prototype,"constructor",{value:r,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(r,"super",{value:n.prototype}),s&&Object.assign(r.prototype,s)},h1=(r,n,s,i)=>{let l,u,d;const p={};if(n=n||{},r==null)return n;do{for(l=Object.getOwnPropertyNames(r),u=l.length;u-- >0;)d=l[u],(!i||i(d,r,n))&&!p[d]&&(n[d]=r[d],p[d]=!0);r=s!==!1&&qc(r)}while(r&&(!s||s(r,n))&&r!==Object.prototype);return n},p1=(r,n,s)=>{r=String(r),(s===void 0||s>r.length)&&(s=r.length),s-=n.length;const i=r.indexOf(n,s);return i!==-1&&i===s},m1=r=>{if(!r)return null;if(Ls(r))return r;let n=r.length;if(!Ty(n))return null;const s=new Array(n);for(;n-- >0;)s[n]=r[n];return s},y1=(r=>n=>r&&n instanceof r)(typeof Uint8Array<"u"&&qc(Uint8Array)),g1=(r,n)=>{const i=(r&&r[Ma]).call(r);let l;for(;(l=i.next())&&!l.done;){const u=l.value;n.call(r,u[0],u[1])}},v1=(r,n)=>{let s;const i=[];for(;(s=r.exec(n))!==null;)i.push(s);return i},w1=nn("HTMLFormElement"),x1=r=>r.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(s,i,l){return i.toUpperCase()+l}),Ip=(({hasOwnProperty:r})=>(n,s)=>r.call(n,s))(Object.prototype),b1=nn("RegExp"),Py=(r,n)=>{const s=Object.getOwnPropertyDescriptors(r),i={};Xo(s,(l,u)=>{let d;(d=n(l,u,r))!==!1&&(i[u]=d||l)}),Object.defineProperties(r,i)},k1=r=>{Py(r,(n,s)=>{if(Nt(r)&&["arguments","caller","callee"].indexOf(s)!==-1)return!1;const i=r[s];if(Nt(i)){if(n.enumerable=!1,"writable"in n){n.writable=!1;return}n.set||(n.set=()=>{throw Error("Can not rewrite read-only method '"+s+"'")})}})},S1=(r,n)=>{const s={},i=l=>{l.forEach(u=>{s[u]=!0})};return Ls(r)?i(r):i(String(r).split(n)),s},_1=()=>{},E1=(r,n)=>r!=null&&Number.isFinite(r=+r)?r:n;function C1(r){return!!(r&&Nt(r.append)&&r[Cy]==="FormData"&&r[Ma])}const N1=r=>{const n=new Array(10),s=(i,l)=>{if(Jo(i)){if(n.indexOf(i)>=0)return;if(Go(i))return i;if(!("toJSON"in i)){n[l]=i;const u=Ls(i)?[]:{};return Xo(i,(d,p)=>{const m=s(d,l+1);!Os(m)&&(u[p]=m)}),n[l]=void 0,u}}return i};return s(r,0)},T1=nn("AsyncFunction"),R1=r=>r&&(Jo(r)||Nt(r))&&Nt(r.then)&&Nt(r.catch),Ay=((r,n)=>r?setImmediate:n?((s,i)=>(Rr.addEventListener("message",({source:l,data:u})=>{l===Rr&&u===s&&i.length&&i.shift()()},!1),l=>{i.push(l),Rr.postMessage(s,"*")}))(`axios@${Math.random()}`,[]):s=>setTimeout(s))(typeof setImmediate=="function",Nt(Rr.postMessage)),j1=typeof queueMicrotask<"u"?queueMicrotask.bind(Rr):typeof process<"u"&&process.nextTick||Ay,P1=r=>r!=null&&Nt(r[Ma]),L={isArray:Ls,isArrayBuffer:Ny,isBuffer:Go,isFormData:r1,isArrayBufferView:Yb,isString:Kb,isNumber:Ty,isBoolean:Gb,isObject:Jo,isPlainObject:ba,isEmptyObject:Jb,isReadableStream:o1,isRequest:i1,isResponse:a1,isHeaders:l1,isUndefined:Os,isDate:Xb,isFile:Zb,isBlob:e1,isRegExp:b1,isFunction:Nt,isStream:n1,isURLSearchParams:s1,isTypedArray:y1,isFileList:t1,forEach:Xo,merge:vc,extend:c1,trim:u1,stripBOM:d1,inherits:f1,toFlatObject:h1,kindOf:Da,kindOfTest:nn,endsWith:p1,toArray:m1,forEachEntry:g1,matchAll:v1,isHTMLForm:w1,hasOwnProperty:Ip,hasOwnProp:Ip,reduceDescriptors:Py,freezeMethods:k1,toObjectSet:S1,toCamelCase:x1,noop:_1,toFiniteNumber:E1,findKey:Ry,global:Rr,isContextDefined:jy,isSpecCompliantForm:C1,toJSONObject:N1,isAsyncFn:T1,isThenable:R1,setImmediate:Ay,asap:j1,isIterable:P1};let me=class Oy extends Error{static from(n,s,i,l,u,d){const p=new Oy(n.message,s||n.code,i,l,u);return p.cause=n,p.name=n.name,d&&Object.assign(p,d),p}constructor(n,s,i,l,u){super(n),this.name="AxiosError",this.isAxiosError=!0,s&&(this.code=s),i&&(this.config=i),l&&(this.request=l),u&&(this.response=u,this.status=u.status)}toJSON(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:L.toJSONObject(this.config),code:this.code,status:this.status}}};me.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";me.ERR_BAD_OPTION="ERR_BAD_OPTION";me.ECONNABORTED="ECONNABORTED";me.ETIMEDOUT="ETIMEDOUT";me.ERR_NETWORK="ERR_NETWORK";me.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";me.ERR_DEPRECATED="ERR_DEPRECATED";me.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";me.ERR_BAD_REQUEST="ERR_BAD_REQUEST";me.ERR_CANCELED="ERR_CANCELED";me.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";me.ERR_INVALID_URL="ERR_INVALID_URL";const A1=null;function wc(r){return L.isPlainObject(r)||L.isArray(r)}function Iy(r){return L.endsWith(r,"[]")?r.slice(0,-2):r}function Lp(r,n,s){return r?r.concat(n).map(function(l,u){return l=Iy(l),!s&&u?"["+l+"]":l}).join(s?".":""):n}function O1(r){return L.isArray(r)&&!r.some(wc)}const I1=L.toFlatObject(L,{},null,function(n){return/^is[A-Z]/.test(n)});function Ua(r,n,s){if(!L.isObject(r))throw new TypeError("target must be an object");n=n||new FormData,s=L.toFlatObject(s,{metaTokens:!0,dots:!1,indexes:!1},!1,function(_,b){return!L.isUndefined(b[_])});const i=s.metaTokens,l=s.visitor||v,u=s.dots,d=s.indexes,m=(s.Blob||typeof Blob<"u"&&Blob)&&L.isSpecCompliantForm(n);if(!L.isFunction(l))throw new TypeError("visitor must be a function");function g(C){if(C===null)return"";if(L.isDate(C))return C.toISOString();if(L.isBoolean(C))return C.toString();if(!m&&L.isBlob(C))throw new me("Blob is not supported. Use a Buffer instead.");return L.isArrayBuffer(C)||L.isTypedArray(C)?m&&typeof Blob=="function"?new Blob([C]):Buffer.from(C):C}function v(C,_,b){let j=C;if(C&&!b&&typeof C=="object"){if(L.endsWith(_,"{}"))_=i?_:_.slice(0,-2),C=JSON.stringify(C);else if(L.isArray(C)&&O1(C)||(L.isFileList(C)||L.endsWith(_,"[]"))&&(j=L.toArray(C)))return _=Iy(_),j.forEach(function(I,M){!(L.isUndefined(I)||I===null)&&n.append(d===!0?Lp([_],M,u):d===null?_:_+"[]",g(I))}),!1}return wc(C)?!0:(n.append(Lp(b,_,u),g(C)),!1)}const w=[],T=Object.assign(I1,{defaultVisitor:v,convertValue:g,isVisitable:wc});function F(C,_){if(!L.isUndefined(C)){if(w.indexOf(C)!==-1)throw Error("Circular reference detected in "+_.join("."));w.push(C),L.forEach(C,function(j,B){(!(L.isUndefined(j)||j===null)&&l.call(n,j,L.isString(B)?B.trim():B,_,T))===!0&&F(j,_?_.concat(B):[B])}),w.pop()}}if(!L.isObject(r))throw new TypeError("data must be an object");return F(r),n}function Mp(r){const n={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(r).replace(/[!'()~]|%20|%00/g,function(i){return n[i]})}function Hc(r,n){this._pairs=[],r&&Ua(r,this,n)}const Ly=Hc.prototype;Ly.append=function(n,s){this._pairs.push([n,s])};Ly.toString=function(n){const s=n?function(i){return n.call(this,i,Mp)}:Mp;return this._pairs.map(function(l){return s(l[0])+"="+s(l[1])},"").join("&")};function L1(r){return encodeURIComponent(r).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function My(r,n,s){if(!n)return r;const i=s&&s.encode||L1,l=L.isFunction(s)?{serialize:s}:s,u=l&&l.serialize;let d;if(u?d=u(n,l):d=L.isURLSearchParams(n)?n.toString():new Hc(n,l).toString(i),d){const p=r.indexOf("#");p!==-1&&(r=r.slice(0,p)),r+=(r.indexOf("?")===-1?"?":"&")+d}return r}class Dp{constructor(){this.handlers=[]}use(n,s,i){return this.handlers.push({fulfilled:n,rejected:s,synchronous:i?i.synchronous:!1,runWhen:i?i.runWhen:null}),this.handlers.length-1}eject(n){this.handlers[n]&&(this.handlers[n]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(n){L.forEach(this.handlers,function(i){i!==null&&n(i)})}}const Vc={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},M1=typeof URLSearchParams<"u"?URLSearchParams:Hc,D1=typeof FormData<"u"?FormData:null,F1=typeof Blob<"u"?Blob:null,U1={isBrowser:!0,classes:{URLSearchParams:M1,FormData:D1,Blob:F1},protocols:["http","https","file","blob","url","data"]},Wc=typeof window<"u"&&typeof document<"u",xc=typeof navigator=="object"&&navigator||void 0,z1=Wc&&(!xc||["ReactNative","NativeScript","NS"].indexOf(xc.product)<0),B1=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",$1=Wc&&window.location.href||"http://localhost",q1=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Wc,hasStandardBrowserEnv:z1,hasStandardBrowserWebWorkerEnv:B1,navigator:xc,origin:$1},Symbol.toStringTag,{value:"Module"})),mt={...q1,...U1};function H1(r,n){return Ua(r,new mt.classes.URLSearchParams,{visitor:function(s,i,l,u){return mt.isNode&&L.isBuffer(s)?(this.append(i,s.toString("base64")),!1):u.defaultVisitor.apply(this,arguments)},...n})}function V1(r){return L.matchAll(/\w+|\[(\w*)]/g,r).map(n=>n[0]==="[]"?"":n[1]||n[0])}function W1(r){const n={},s=Object.keys(r);let i;const l=s.length;let u;for(i=0;i<l;i++)u=s[i],n[u]=r[u];return n}function Dy(r){function n(s,i,l,u){let d=s[u++];if(d==="__proto__")return!0;const p=Number.isFinite(+d),m=u>=s.length;return d=!d&&L.isArray(l)?l.length:d,m?(L.hasOwnProp(l,d)?l[d]=[l[d],i]:l[d]=i,!p):((!l[d]||!L.isObject(l[d]))&&(l[d]=[]),n(s,i,l[d],u)&&L.isArray(l[d])&&(l[d]=W1(l[d])),!p)}if(L.isFormData(r)&&L.isFunction(r.entries)){const s={};return L.forEachEntry(r,(i,l)=>{n(V1(i),l,s,0)}),s}return null}function Q1(r,n,s){if(L.isString(r))try{return(n||JSON.parse)(r),L.trim(r)}catch(i){if(i.name!=="SyntaxError")throw i}return(s||JSON.stringify)(r)}const Zo={transitional:Vc,adapter:["xhr","http","fetch"],transformRequest:[function(n,s){const i=s.getContentType()||"",l=i.indexOf("application/json")>-1,u=L.isObject(n);if(u&&L.isHTMLForm(n)&&(n=new FormData(n)),L.isFormData(n))return l?JSON.stringify(Dy(n)):n;if(L.isArrayBuffer(n)||L.isBuffer(n)||L.isStream(n)||L.isFile(n)||L.isBlob(n)||L.isReadableStream(n))return n;if(L.isArrayBufferView(n))return n.buffer;if(L.isURLSearchParams(n))return s.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),n.toString();let p;if(u){if(i.indexOf("application/x-www-form-urlencoded")>
vendor: 3,896 bytes, lines 177-178
177-1)return H1(n,this.formSerializer).toString();if((p=L.isFileList(n))||i.indexOf("multipart/form-data")>-1){const m=this.env&&this.env.FormData;return Ua(p?{"files[]":n}:n,m&&new m,this.formSerializer)}}return u||l?(s.setContentType("application/json",!1),Q1(n)):n}],transformResponse:[function(n){const s=this.transitional||Zo.transitional,i=s&&s.forcedJSONParsing,l=this.responseType==="json";if(L.isResponse(n)||L.isReadableStream(n))return n;if(n&&L.isString(n)&&(i&&!this.responseType||l)){const d=!(s&&s.silentJSONParsing)&&l;try{return JSON.parse(n,this.parseReviver)}catch(p){if(d)throw p.name==="SyntaxError"?me.from(p,me.ERR_BAD_RESPONSE,this,null,this.response):p}}return n}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:mt.classes.FormData,Blob:mt.classes.Blob},validateStatus:function(n){return n>=200&&n<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};L.forEach(["delete","get","head","post","put","patch"],r=>{Zo.headers[r]={}});const Y1=L.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),K1=r=>{const n={};let s,i,l;return r&&r.split(`
178`).forEach(function(d){l=d.indexOf(":"),s=d.substring(0,l).trim().toLowerCase(),i=d.substring(l+1).trim(),!(!s||n[s]&&Y1[s])&&(s==="set-cookie"?n[s]?n[s].push(i):n[s]=[i]:n[s]=n[s]?n[s]+", "+i:i)}),n},Fp=Symbol("internals");function To(r){return r&&String(r).trim().toLowerCase()}function ka(r){return r===!1||r==null?r:L.isArray(r)?r.map(ka):String(r)}function G1(r){const n=Object.create(null),s=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let i;for(;i=s.exec(r);)n[i[1]]=i[2];return n}const J1=r=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(r.trim());function $u(r,n,s,i,l){if(L.isFunction(i))return i.call(this,n,s);if(l&&(n=s),!!L.isString(n)){if(L.isString(i))return n.indexOf(i)!==-1;if(L.isRegExp(i))return i.test(n)}}function X1(r){return r.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(n,s,i)=>s.toUpperCase()+i)}function Z1(r,n){const s=L.toCamelCase(" "+n);["get","set","has"].forEach(i=>{Object.defineProperty(r,i+s,{value:function(l,u,d){return this[i].call(this,n,l,u,d)},configurable:!0})})}let Tt=class{constructor(n){n&&this.set(n)}set(n,s,i){const l=this;function u(p,m,g){const v=To(m);if(!v)throw new Error("header name must be a non-empty string");const w=L.findKey(l,v);(!w||l[w]===void 0||g===!0||g===void 0&&l[w]!==!1)&&(l[w||m]=ka(p))}const d=(p,m)=>L.forEach(p,(g,v)=>u(g,v,m));if(L.isPlainObject(n)||n instanceof this.constructor)d(n,s);else if(L.isString(n)&&(n=n.trim())&&!J1(n))d(K1(n),s);else if(L.isObject(n)&&L.isIterable(n)){let p={},m,g;for(const v of n){if(!L.isArray(v))throw TypeError("Object iterator must return a key-value pair");p[g=v[0]]=(m=p[g])?L.isArray(m)?[...m,v[1]]:[m,v[1]]:v[1]}d(p,s)}else n!=null&&u(s,n,i);return this}get(n,s){if(n=To(n),n){const i=L.findKey(this,n);if(i){const l=this[i];if(!s)return l;if(s===!0)return G1(l);if(L.isFunction(s))return s.call(this,l,i);if(L.isRegExp(s))return s.exec(l);throw new TypeError("parser must be boolean|regexp|function")}}}has(n,s){if(n=To(n),n){const i=L.findKey(this,n);return!!(i&&this[i]!==void 0&&(!s||$u(this,this[i],i,s)))}return!1}delete(n,s){const i=this;let l=!1;function u(d){if(d=To(d),d){const p=L.findKey(i,d);p&&(!s||$u(i,i[p],p,s))&&(delete i[p],l=!0)}}return L.isArray(n)?n.forEach(u):u(n),l}clear(n){const s=Object.keys(this);let i=s.length,l=!1;for(;i--;){const u=s[i];(!n||$u(this,this[u],u,n,!0))&&(delete this[u],l=!0)}return l}normalize(n){const s=this,i={};return L.forEach(this,(l,u)=>{const d=L.findKey(i,u);if(d){s[d]=ka(l),delete s[u];return}const p=n?X1(u):String(u).trim();p!==u&&delete s[u],s[p]=ka(l),i[p]=!0}),this}
vendor: 4,494 bytes, lines 178-179
178concat(...n){return this.constructor.concat(this,...n)}toJSON(n){const s=Object.create(null);return L.forEach(this,(i,l)=>{i!=null&&i!==!1&&(s[l]=n&&L.isArray(i)?i.join(", "):i)}),s}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([n,s])=>n+": "+s).join(`
179`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(n){return n instanceof this?n:new this(n)}static concat(n,...s){const i=new this(n);return s.forEach(l=>i.set(l)),i}static accessor(n){const i=(this[Fp]=this[Fp]={accessors:{}}).accessors,l=this.prototype;function u(d){const p=To(d);i[p]||(Z1(l,d),i[p]=!0)}return L.isArray(n)?n.forEach(u):u(n),this}};Tt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);L.reduceDescriptors(Tt.prototype,({value:r},n)=>{let s=n[0].toUpperCase()+n.slice(1);return{get:()=>r,set(i){this[s]=i}}});L.freezeMethods(Tt);function qu(r,n){const s=this||Zo,i=n||s,l=Tt.from(i.headers);let u=i.data;return L.forEach(r,function(p){u=p.call(s,u,l.normalize(),n?n.status:void 0)}),l.normalize(),u}function Fy(r){return!!(r&&r.__CANCEL__)}let ei=class extends me{constructor(n,s,i){super(n??"canceled",me.ERR_CANCELED,s,i),this.name="CanceledError",this.__CANCEL__=!0}};function Uy(r,n,s){const i=s.config.validateStatus;!s.status||!i||i(s.status)?r(s):n(new me("Request failed with status code "+s.status,[me.ERR_BAD_REQUEST,me.ERR_BAD_RESPONSE][Math.floor(s.status/100)-4],s.config,s.request,s))}function ek(r){const n=/^([-+\w]{1,25})(:?\/\/|:)/.exec(r);return n&&n[1]||""}function tk(r,n){r=r||10;const s=new Array(r),i=new Array(r);let l=0,u=0,d;return n=n!==void 0?n:1e3,function(m){const g=Date.now(),v=i[u];d||(d=g),s[l]=m,i[l]=g;let w=u,T=0;for(;w!==l;)T+=s[w++],w=w%r;if(l=(l+1)%r,l===u&&(u=(u+1)%r),g-d<n)return;const F=v&&g-v;return F?Math.round(T*1e3/F):void 0}}function nk(r,n){let s=0,i=1e3/n,l,u;const d=(g,v=Date.now())=>{s=v,l=null,u&&(clearTimeout(u),u=null),r(...g)};return[(...g)=>{const v=Date.now(),w=v-s;w>=i?d(g,v):(l=g,u||(u=setTimeout(()=>{u=null,d(l)},i-w)))},()=>l&&d(l)]}const Aa=(r,n,s=3)=>{let i=0;const l=tk(50,250);return nk(u=>{const d=u.loaded,p=u.lengthComputable?u.total:void 0,m=d-i,g=l(m),v=d<=p;i=d;const w={loaded:d,total:p,progress:p?d/p:void 0,bytes:m,rate:g||void 0,estimated:g&&p&&v?(p-d)/g:void 0,event:u,lengthComputable:p!=null,[n?"download":"upload"]:!0};r(w)},s)},Up=(r,n)=>{const s=r!=null;return[i=>n[0]({lengthComputable:s,total:r,loaded:i}),n[1]]},zp=r=>(...n)=>L.asap(()=>r(...n)),rk=mt.hasStandardBrowserEnv?((r,n)=>s=>(s=new URL(s,mt.origin),r.protocol===s.protocol&&r.host===s.host&&(n||r.port===s.port)))(new URL(mt.origin),mt.navigator&&/(msie|trident)/i.test(mt.navigator.userAgent)):()=>!0,sk=mt.hasStandardBrowserEnv?{write(r,n,s,i,l,u,d){if(typeof document>"u")return;const p=[`${r}=${encodeURIComponent(n)}`];L.isNumber(s)&&p.push(`expires=${new Date(s).toUTCString()}`),L.isString(i)&&p.push(`path=${i}`),L.isString(l)&&p.push(`domain=${l}`),u===!0&&p.push("secure"),L.isString(d)&&p.push(`SameSite=${d}`),document.cookie=p.join("; ")},read(r){if(typeof document>"u")return null;const n=document.cookie.match(new RegExp("(?:^|; )"+r+"=([^;]*)"));return n?decodeURIComponent(n[1]):null},remove(r){this.write(r,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function ok(r){return typeof r!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(r)}function ik(r,n){return n?r.replace(/\/?\/$/,"")+"/"+n.replace(/^\/+/,""):r}function zy(r,n,s){let i=!ok(n);return r&&(i||s==!1)?ik(r,n):n}const Bp=r=>r instanceof Tt?{...r}:r;function Br(r,n){n=n||{};const s={};function i(g,v,w,T){return L.isPlainObject(g)&&L.isPlainObject(v)?L.merge.call({caseless:T},g,v):L.isPlainObject(v)?L.merge({},v):L.isArray(v)?v.slice():v}function l(g,v,w,T){if(L.isUndefined(v)){if(!L.isUndefined(g))return i(void 0,g,w,T)}else return i(g,v,w,T)}function u(g,v){if(!L.isUndefined(v))return i(void 0,v)}function d(g,v){if(L.isUndefined(v)){if(!L.isUndefined(g))return i(void 0,g)}else return i(void 0,v)}function p(g,v,w){if(w in n)return i(g,v);if(w in r)return i(void 0,g)}const m={url:u,method:u,data:u,baseURL:d,transformRequest:d,transformResponse:d,paramsSerializer:d,timeout:d,timeoutMessage:d,withCredentials:d,withXSRFToken:d,adapter:d,responseType:d,xsrfCookieName:d,xsrfHeaderName:d,onUploadProgress:d,onDownloadProgress:d,decompress:d,maxContentLength:d,maxBo
vendor: 10,857 bytes, lines 179-182
179dyLength:d,beforeRedirect:d,transport:d,httpAgent:d,httpsAgent:d,cancelToken:d,socketPath:d,responseEncoding:d,validateStatus:p,headers:(g,v,w)=>l(Bp(g),Bp(v),w,!0)};return L.forEach(Object.keys({...r,...n}),function(v){if(v==="__proto__"||v==="constructor"||v==="prototype")return;const w=L.hasOwnProp(m,v)?m[v]:l,T=w(r[v],n[v],v);L.isUndefined(T)&&w!==p||(s[v]=T)}),s}const By=r=>{const n=Br({},r);let{data:s,withXSRFToken:i,xsrfHeaderName:l,xsrfCookieName:u,headers:d,auth:p}=n;if(n.headers=d=Tt.from(d),n.url=My(zy(n.baseURL,n.url,n.allowAbsoluteUrls),r.params,r.paramsSerializer),p&&d.set("Authorization","Basic "+btoa((p.username||"")+":"+(p.password?unescape(encodeURIComponent(p.password)):""))),L.isFormData(s)){if(mt.hasStandardBrowserEnv||mt.hasStandardBrowserWebWorkerEnv)d.setContentType(void 0);else if(L.isFunction(s.getHeaders)){const m=s.getHeaders(),g=["content-type","content-length"];Object.entries(m).forEach(([v,w])=>{g.includes(v.toLowerCase())&&d.set(v,w)})}}if(mt.hasStandardBrowserEnv&&(i&&L.isFunction(i)&&(i=i(n)),i||i!==!1&&rk(n.url))){const m=l&&u&&sk.read(u);m&&d.set(l,m)}return n},ak=typeof XMLHttpRequest<"u",lk=ak&&function(r){return new Promise(function(s,i){const l=By(r);let u=l.data;const d=Tt.from(l.headers).normalize();let{responseType:p,onUploadProgress:m,onDownloadProgress:g}=l,v,w,T,F,C;function _(){F&&F(),C&&C(),l.cancelToken&&l.cancelToken.unsubscribe(v),l.signal&&l.signal.removeEventListener("abort",v)}let b=new XMLHttpRequest;b.open(l.method.toUpperCase(),l.url,!0),b.timeout=l.timeout;function j(){if(!b)return;const I=Tt.from("getAllResponseHeaders"in b&&b.getAllResponseHeaders()),Q={data:!p||p==="text"||p==="json"?b.responseText:b.response,status:b.status,statusText:b.statusText,headers:I,config:r,request:b};Uy(function(ie){s(ie),_()},function(ie){i(ie),_()},Q),b=null}"onloadend"in b?b.onloadend=j:b.onreadystatechange=function(){!b||b.readyState!==4||b.status===0&&!(b.responseURL&&b.responseURL.indexOf("file:")===0)||setTimeout(j)},b.onabort=function(){b&&(i(new me("Request aborted",me.ECONNABORTED,r,b)),b=null)},b.onerror=function(M){const Q=M&&M.message?M.message:"Network Error",se=new me(Q,me.ERR_NETWORK,r,b);se.event=M||null,i(se),b=null},b.ontimeout=function(){let M=l.timeout?"timeout of "+l.timeout+"ms exceeded":"timeout exceeded";const Q=l.transitional||Vc;l.timeoutErrorMessage&&(M=l.timeoutErrorMessage),i(new me(M,Q.clarifyTimeoutError?me.ETIMEDOUT:me.ECONNABORTED,r,b)),b=null},u===void 0&&d.setContentType(null),"setRequestHeader"in b&&L.forEach(d.toJSON(),function(M,Q){b.setRequestHeader(Q,M)}),L.isUndefined(l.withCredentials)||(b.withCredentials=!!l.withCredentials),p&&p!=="json"&&(b.responseType=l.responseType),g&&([T,C]=Aa(g,!0),b.addEventListener("progress",T)),m&&b.upload&&([w,F]=Aa(m),b.upload.addEventListener("progress",w),b.upload.addEventListener("loadend",F)),(l.cancelToken||l.signal)&&(v=I=>{b&&(i(!I||I.type?new ei(null,r,b):I),b.abort(),b=null)},l.cancelToken&&l.cancelToken.subscribe(v),l.signal&&(l.signal.aborted?v():l.signal.addEventListener("abort",v)));const B=ek(l.url);if(B&&mt.protocols.indexOf(B)===-1){i(new me("Unsupported protocol "+B+":",me.ERR_BAD_REQUEST,r));return}b.send(u||null)})},uk=(r,n)=>{const{length:s}=r=r?r.filter(Boolean):[];if(n||s){let i=new AbortController,l;const u=function(g){if(!l){l=!0,p();const v=g instanceof Error?g:this.reason;i.abort(v instanceof me?v:new ei(v instanceof Error?v.message:v))}};let d=n&&setTimeout(()=>{d=null,u(new me(`timeout of ${n}ms exceeded`,me.ETIMEDOUT))},n);const p=()=>{r&&(d&&clearTimeout(d),d=null,r.forEach(g=>{g.unsubscribe?g.unsubscribe(u):g.removeEventListener("abort",u)}),r=null)};r.forEach(g=>g.addEventListener("abort",u));const{signal:m}=i;return m.unsubscribe=()=>L.asap(p),m}},ck=function*(r,n){let s=r.byteLength;if(s<n){yield r;return}let i=0,l;for(;i<s;)l=i+n,yield r.slice(i,l),i=l},dk=async function*(r,n){for await(const s of fk(r))yield*ck(s,n)},fk=async function*(r){if(r[Symbol.asyncIterator]){yield*r;return}const n=r.getReader();try{for(;;){const{done:s,value:i}=await n.read();if(s)break;yield i}}finally{await n.cancel()}},$p=(r,n,s,i)=>{const l=dk(r,n);let u=0,d,p=m=>{d||(d=!0,i&&i(m))};return new ReadableStream({async pull(m){try{const{done:g,value:v}=await l.next();if(g){p(),m.close();return}let w=v.byteLength;if(s){let T=u+=w;s(T)}m.enqueue(new Uint8Array(v))}catch(g){throw p(g),g}},cancel(m){return p(m),l.return()}},{highWaterMark:2})},qp=64*1024,{isFunction:ya}=L,hk=(({Request:r,Response:n})=>({Request:r,Response:n}))(L.global),{ReadableStream:Hp,TextEncoder:Vp}=L.global,Wp=(r,...n)=>{try{return!!r(...n)}catch{return!1}},pk=r=>{r=L.merge.call({skipUndefined:!0},hk,r);const{fetch:n,Request:s,Response:i}=r,l=n?ya(n):typeof fetch=="function",u=ya(s),d=ya(i);if(!l)return!1;const p=l&&ya(Hp),m=l&&(typeof Vp=="function"?(C=>_=>C.encode(_))(new Vp):async C=>new Uint8Array(await new s(C).arrayBuffer())),g=u&&p&&Wp(()=>{let C=!1;const _=new s(mt.origin,{body:new Hp,method:"POST",get duplex(){return C=!0,"half"}}).headers.has("Content-Type");return C&&!_}),v=d&&p&&Wp(()=>L.isReadableStream(new i("").body)),w={stream:v&&(C=>C.body)};l&&["text","arrayBuffer","blob","formData","stream"].forEach(C=>{!w[C]&&(w[C]=(_,b)=>{let j=_&&_[C];if(j)return j.call(_);throw new me(`Response type '${C}' is not supported`,me.ERR_NOT_SUPPORT,b)})});const T=async C=>{if(C==null)return 0;if(L.isBlob(C))return C.size;if(L.isSpecCompliantForm(C))return(await new s(mt.origin,{method:"POST",body:C}).arrayBuffer()).byteLength;if(L.isArrayBufferView(C)||L.isArrayBuffer(C))return C.byteLength;if(L.isURLSearchParams(C)&&(C=C+""),L.isString(C))return(await m(C)).byteLength},F=async(C,_)=>{const b=L.toFiniteNumber(C.getContentLength());return b??T(_)};return async C=>{let{url:_,method:b,data:j,signal:B,cancelToken:I,timeout:M,onDownloadProgress:Q,onUploadProgress:se,responseType:ie,headers:z,withCredentials:Y="same-origin",fetchOptions:le}=By(C),K=n||fetch;ie=ie?(ie+"").toLowerCase():"text";let be=uk([B,I&&I.toAbortSignal()],M),ye=null;const ve=be&&be.unsubscribe&&(()=>{be.unsubscribe()});let ke;try{if(se&&g&&b!=="get"&&b!=="head"&&(ke=await F(z,j))!==0){let N=new s(_,{method:"POST",body:j,duplex:"half"}),U;if(L.isFormData(j)&&(U=N.headers.get("content-type"))&&z.setContentType(U),N.body){const[pe,de]=Up(ke,Aa(zp(se)));j=$p(N.body,qp,pe,de)}}L.isString(Y)||(Y=Y?"include":"omit");const xe=u&&"credentials"in s.prototype,_e={...le,signal:be,method:b.toUpperCase(),headers:z.normalize().toJSON(),body:j,duplex:"half",credentials:xe?Y:void 0};ye=u&&new s(_,_e);let H=await(u?K(ye,le):K(_,_e));const Z=v&&(ie==="stream"||ie==="response");if(v&&(Q||Z&&ve)){const N={};["status","statusText","headers"].forEach(ae=>{N[ae]=H[ae]});const U=L.toFiniteNumber(H.headers.get("content-length")),[pe,de]=Q&&Up(U,Aa(zp(Q),!0))||[];H=new i($p(H.body,qp,pe,()=>{de&&de(),ve&&ve()}),N)}ie=ie||"text";let D=await w[L.findKey(w,ie)||"text"](H,C);return!Z&&ve&&ve(),await new Promise((N,U)=>{Uy(N,U,{data:D,headers:Tt.from(H.headers),status:H.status,statusText:H.statusText,config:C,request:ye})})}catch(xe){throw ve&&ve(),xe&&xe.name==="TypeError"&&/Load failed|fetch/i.test(xe.message)?Object.assign(new me("Network Error",me.ERR_NETWORK,C,ye,xe&&xe.response),{cause:xe.cause||xe}):me.from(xe,xe&&xe.code,C,ye,xe&&xe.response)}}},mk=new Map,$y=r=>{let n=r&&r.env||{};const{fetch:s,Request:i,Response:l}=n,u=[i,l,s];let d=u.length,p=d,m,g,v=mk;for(;p--;)m=u[p],g=v.get(m),g===void 0&&v.set(m,g=p?new Map:pk(n)),v=g;return g};$y();const Qc={http:A1,xhr:lk,fetch:{get:$y}};L.forEach(Qc,(r,n)=>{if(r){try{Object.defineProperty(r,"name",{value:n})}catch{}Object.defineProperty(r,"adapterName",{value:n})}});const Qp=r=>`- ${r}`,yk=r=>L.isFunction(r)||r===null||r===!1;function gk(r,n){r=L.isArray(r)?r:[r];const{length:s}=r;let i,l;const u={};for(let d=0;d<s;d++){i=r[d];let p;if(l=i,!yk(i)&&(l=Qc[(p=String(i)).toLowerCase()],l===void 0))throw new me(`Unknown adapter '${p}'`);if(l&&(L.isFunction(l)||(l=l.get(n))))break;u[p||"#"+d]=l}if(!l){const d=Object.entries(u).map(([m,g])=>`adapter ${m} `+(g===!1?"is not supported by the environment":"is not available in the build"));let p=s?d.length>1?`since :
180`+d.map(Qp).join(`
181`):" "+Qp(d[0]):"as no adapter specified";throw new me("There is no suitable adapter to dispatch the request "+p,"ERR_NOT_SUPPORT")}return l}const qy={getAdapter:gk,adapters:Qc};function Hu(r){if(r.cancelToken&&r.cancelToken.throwIfRequested(),r.signal&&r.signal.aborted)throw new ei(null,r)}function Yp(r){return Hu(r),r.headers=Tt.from(r.headers),r.data=qu.call(r,r.transformRequest),["post","put","patch"].indexOf(r.method)!==-1&&r.headers.setContentType("application/x-www-form-urlencoded",!1),qy.getAdapter(r.adapter||Zo.adapter,r)(r).then(function(i){return Hu(r),i.data=qu.call(r,r.transformResponse,i),i.headers=Tt.from(i.headers),i},function(i){return Fy(i)||(Hu(r),i&&i.response&&(i.response.data=qu.call(r,r.transformResponse,i.response),i.response.headers=Tt.from(i.response.headers))),Promise.reject(i)})}const Hy="1.13.5",za={};["object","boolean","number","function","string","symbol"].forEach((r,n)=>{za[r]=function(i){return typeof i===r||"a"+(n<1?"n ":" ")+r}});const Kp={};za.transitional=function(n,s,i){function l(u,d){return"[Axios v"+Hy+"] Transitional option '"+u+"'"+d+(i?". "+i:"")}return(u,d,p)=>{if(n===!1)throw new me(l(d," has been removed"+(s?" in "+s:"")),me.ERR_DEPRECATED);return s&&!Kp[d]&&(Kp[d]=!0,console.warn(l(d," has been deprecated since v"+s+" and will be removed in the near future"))),n?n(u,d,p):!0}};za.spelling=function(n){return(s,i)=>(console.warn(`${i} is likely a misspelling of ${n}`),!0)};function vk(r,n,s){if(typeof r!="object")throw new me("options must be an object",me.ERR_BAD_OPTION_VALUE);const i=Object.keys(r);let l=i.length;for(;l-- >0;){const u=i[l],d=n[u];if(d){const p=r[u],m=p===void 0||d(p,u,r);if(m!==!0)throw new me("option "+u+" must be "+m,me.ERR_BAD_OPTION_VALUE);continue}if(s!==!0)throw new me("Unknown option "+u,me.ERR_BAD_OPTION)}}const Sa={assertOptions:vk,validators:za},zt=Sa.validators;let Ur=class{constructor(n){this.defaults=n||{},this.interceptors={request:new Dp,response:new Dp}}async request(n,s){try{return await this._request(n,s)}catch(i){if(i instanceof Error){let l={};Error.captureStackTrace?Error.captureStackTrace(l):l=new Error;const u=l.stack?l.stack.replace(/^.+\n/,""):"";try{i.stack?u&&!String(i.stack).endsWith(u.replace(/^.+\n.+\n/,""))&&(i.stack+=`
182`+u):i.stack=u}catch{}}throw i}}_request(n,s){typeof n=="string"?(s=s||{},s.url=n):s=n||{},s=Br(this.defaults,s);const{transitional:i,paramsSerializer:l,headers:u}=s;i!==void 0&&Sa.assertOptions(i,{silentJSONParsing:zt.transitional(zt.boolean),forcedJSONParsing:zt.transitional(zt.boolean),clarifyTimeoutError:zt.transitional(zt.boolean),legacyInterceptorReqResOrdering:zt.transitional(zt.boolean)}
vendor: 3,105 bytes, line 182
182,!1),l!=null&&(L.isFunction(l)?s.paramsSerializer={serialize:l}:Sa.assertOptions(l,{encode:zt.function,serialize:zt.function},!0)),s.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?s.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:s.allowAbsoluteUrls=!0),Sa.assertOptions(s,{baseUrl:zt.spelling("baseURL"),withXsrfToken:zt.spelling("withXSRFToken")},!0),s.method=(s.method||this.defaults.method||"get").toLowerCase();let d=u&&L.merge(u.common,u[s.method]);u&&L.forEach(["delete","get","head","post","put","patch","common"],C=>{delete u[C]}),s.headers=Tt.concat(d,u);const p=[];let m=!0;this.interceptors.request.forEach(function(_){if(typeof _.runWhen=="function"&&_.runWhen(s)===!1)return;m=m&&_.synchronous;const b=s.transitional||Vc;b&&b.legacyInterceptorReqResOrdering?p.unshift(_.fulfilled,_.rejected):p.push(_.fulfilled,_.rejected)});const g=[];this.interceptors.response.forEach(function(_){g.push(_.fulfilled,_.rejected)});let v,w=0,T;if(!m){const C=[Yp.bind(this),void 0];for(C.unshift(...p),C.push(...g),T=C.length,v=Promise.resolve(s);w<T;)v=v.then(C[w++],C[w++]);return v}T=p.length;let F=s;for(;w<T;){const C=p[w++],_=p[w++];try{F=C(F)}catch(b){_.call(this,b);break}}try{v=Yp.call(this,F)}catch(C){return Promise.reject(C)}for(w=0,T=g.length;w<T;)v=v.then(g[w++],g[w++]);return v}getUri(n){n=Br(this.defaults,n);const s=zy(n.baseURL,n.url,n.allowAbsoluteUrls);return My(s,n.params,n.paramsSerializer)}};L.forEach(["delete","get","head","options"],function(n){Ur.prototype[n]=function(s,i){return this.request(Br(i||{},{method:n,url:s,data:(i||{}).data}))}});L.forEach(["post","put","patch"],function(n){function s(i){return function(u,d,p){return this.request(Br(p||{},{method:n,headers:i?{"Content-Type":"multipart/form-data"}:{},url:u,data:d}))}}Ur.prototype[n]=s(),Ur.prototype[n+"Form"]=s(!0)});let wk=class Vy{constructor(n){if(typeof n!="function")throw new TypeError("executor must be a function.");let s;this.promise=new Promise(function(u){s=u});const i=this;this.promise.then(l=>{if(!i._listeners)return;let u=i._listeners.length;for(;u-- >0;)i._listeners[u](l);i._listeners=null}),this.promise.then=l=>{let u;const d=new Promise(p=>{i.subscribe(p),u=p}).then(l);return d.cancel=function(){i.unsubscribe(u)},d},n(function(u,d,p){i.reason||(i.reason=new ei(u,d,p),s(i.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(n){if(this.reason){n(this.reason);return}this._listeners?this._listeners.push(n):this._listeners=[n]}unsubscribe(n){if(!this._listeners)return;const s=this._listeners.indexOf(n);s!==-1&&this._listeners.splice(s,1)}toAbortSignal(){const n=new AbortController,s=i=>{n.abort(i)};return this.subscribe(s),n.signal.unsubscribe=()=>this.unsubscribe(s),n.signal}static source(){let n;return{token:new Vy(function(l){n=l}),cancel:n}}};function xk(r){return function(s){return r.apply(null,s)}}function bk(r){return L.isObject(r)&&r.isAxiosError===!0}const bc={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,Parti
182alContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(bc).forEach(([r,n])=>{bc[n]=r});function Wy(r){const n=new Ur(r),s=Ey(Ur.prototype.request,n);return L.extend(s,Ur.prototype,n,{allOwnKeys:!0}),L.extend(s,n,null,{allOwnKeys:!0}),s.create=function(l){return Wy(Br(r,l))},s}const We=Wy(Zo);We.Axios=Ur;We.CanceledError=ei;We.CancelToken=wk;We.isCancel=Fy;We.VERSION=Hy;We.toFormData=Ua;We.AxiosError=me;We.Cancel=We.CanceledError;We.all=function(n){return Promise.all(n)};We.spread=xk;We.isAxiosError=bk;We.mergeConfig=Br;We.AxiosHeaders=Tt;We.formToJSON=r=>Dy(L.isHTMLForm(r)?new FormData(r):r);We.getAdapter=qy.getAdapter;We.HttpStatusCode=bc;We.default=We;const{Axios:oE,AxiosError:iE,CanceledError:aE,isCancel:lE,CancelToken:uE,VERSION:cE,all:dE,Cancel:fE,isAxiosError:hE,spread:pE,toFormData:mE,AxiosHeaders:yE,HttpStatusCode:gE,formToJSON:vE,getAdapter:wE,mergeConfig:xE}=We,kk=typeof window>"u",Gp=!kk&&window.self!==window.top,Vu=()=>Math.random().toString(36).substring(2,15)+Math.random().toString(36).substring(2,15),lt=[];for(let r=0;r<256;++r)lt.push((r+256).toString(16).slice(1));function Sk(r,n=0){return(lt[r[n+0]]+lt[r[n+1]]+lt[r[n+2]]+lt[r[n+3]]+"-"+lt[r[n+4]]+lt[r[n+5]]+"-"+lt[r[n+6]]+lt[r[n+7]]+"-"+lt[r[n+8]]+lt[r[n+9]]+"-"+lt[r[n+10]]+lt[r[n+11]]+lt[r[n+12]]+lt[r[n+13]]+lt[r[n+14]]+lt[r[n+15]]).toLowerCase()}let Wu;const _k=new Uint8Array(16);function Ek(){if(!Wu){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");Wu=crypto.getRandomValues.bind(crypto)}return Wu(_k)}const Ck=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),Jp={randomUUID:Ck};function Nk(r,n,s){var l;r=r||{};const i=r.random??((l=r.rng)==null?void 0:l.call(r))??Ek();if(i.length<16)throw new Error("Random bytes length must be >= 16");return i[6]=i[6]&15|64,i[8]=i[8]&63|128,Sk(i)}function Tk(r,n,s){return Jp.randomUUID&&!r?Jp.randomUUID():Nk(r)}
182class Rk extends Error{constructor(n,s,i,l,u){super(n),this.name="Base44Error",this.status=s,this.code=i,this.data=l,this.originalError=u}toJSON(){return{name:this.name,message:this.message,status:this.status,code:this.code,data:this.data}}}function Oo({baseURL:r,headers:n={},token:s,interceptResponses:i=!0,onError:l}){const u=We.create({baseURL:r,headers:{"Content-Type":"application/json",Accept:"application/json",...n}});return s&&(u.defaults.headers.common.Authorization=`Bearer ${s}`),u.interceptors.request.use(d=>{typeof window<"u"&&d.headers.set("X-Origin-URL",window.location.href);const p=Tk();if(d.requestId=p,Gp)try{window.parent.postMessage({type:"api-request-start",requestId:p,data:{url:r+d.url,method:d.method,body:d.data instanceof FormData?"[FormData object]":d.data}},"*")}catch{}return d}),i&&u.interceptors.response.use(d=>{var p;const m=(p=d.config)===null||p===void 0?void 0:p.requestId;try{Gp&&m&&window.parent.postMessage({type:"api-request-end",requestId:m,data:{statusCode:d.status,response:d.data}},"*")}catch{}return d.data},d=>{var p,m,g,v,w,T,F,C;const _=((m=(p=d.response)===null||p===void 0?void 0:p.data)===null||m===void 0?void 0:m.message)||((v=(g=d.response)===null||g===void 0?void 0:g.data)===null||v===void 0?void 0:v.detail)||d.message,b=new Rk(_,(w=d.response)===null||w===void 0?void 0:w.status,(F=(T=d.response)===null||T===void 0?void 0:T.data)===null||F===void 0?void 0:F.code,(C=d.response)===null||C===void 0?void 0:C.data,d);return l==null||l(b),Promise.reject(b)}),u}function Xp(r){const{axios:n,appId:s,getSocket:i}=r;return new Proxy({},{get(l,u){if(!(typeof u!="string"||u==="then"||u.startsWith("_")))return Pk(n,s,u,i)}})}function jk(r){var n;try{const s=JSON.parse(r);return{type:s.type,data:s.data,id:s.id||((n=s.data)===null||n===void 0?void 0:n.id),timestamp:s.timestamp||new Date().toISOString()}}catch(s){return console.warn("[Base44 SDK] Failed to parse realtime message:",s),null}}function Pk(r,n,s,i){const l=`/apps/${n}/entities/${s}`;return{async list(u,d,p,m){const g={};return u&&(g.sort=u),d&&(g.limit=d),p&&(g.skip=p),m&&(g.fields=Array.isArray(m)?m.join(","):m),r.get(l,{params:g})},async filter(u,d,p,m,g){const v={q:JSON.stringify(u)};return d&&(v.sort=d),p&&(v.limit=p),m&&(v.skip=m),g&&(v.fields=Array.isArray(g)?g.join(","):g),r.get(l,{params:v})},async get(u){return r.get(`${l}/${u}`)},async create(u){return r.post(l,u)},async update(u,d){return r.put(`${l}/${u}`,d)},async delete(u){return r.delete(`${l}/${u}`)},async deleteMany(u){return r.delete(l,{data:u})},async bulkCreate(u){return r.post(`${l}/bulk`,u)},async updateMany(u,d){return r.patch(`${l}/update-many`,{query:u,data:d})},async bulkUpdate(u){return r.put(`${l}/bulk`,u)},async importEntities(u){const d=new FormData;return d.append("file",u,u.name),r.post(`${l}/import`,d,{headers:{"Content-Type":"multipart/form-data"}})},subscribe(u){const d=`entities:${n}:${s}`;return i().subscribeToRoom(d,{update_model:g=>{var v;const w=jk(g.data);if(w){w.type!=="delete"&&(!((v=w.data)===null||v===void 0)&&v._oversize)&&console.error(`[Base44 SDK] Realtime broadcast for ${s}#${w.id} was oversize and got slimmed for transport. Fields >10 KB are empty and the rest of the record may be a stub. Call \`entities.${s}.get("${w.id}")\` to fetch the full record.`);try{u(w)}catch(T){console.error("[Base44 SDK] Subscription callback error:",T)}}}})}}}function Ak(r,n){return{async call(s,i,l){if(!(s!=null&&s.trim()))throw new Error("Integration slug is required and cannot be empty");if(!(i!=null&&i.trim()))throw new Error("Operation ID is required and cannot be empty");const{pathParams:u,queryParams:d,...p}=l??{},m={...p,...u&&{path_params:u},...d&&{query_params:d}};return await r.post(`/apps/${n}/integrations/custom/${s}/${i}`,m)}}}function Zp(r,n){const s=Ak(r,n);return new Proxy({},{get(i,l){if(!(typeof l!="string"||l==="then"||l.startsWith("_")))return l==="custom"?s:new Proxy({},{get(u,d){if(!(typeof d!="string"||d==="then"||d.startsWith("_")))return async p=>{if(typeof p=="string")throw new Error(`Integration ${d} must receive an object with named parameters, received: ${p}`);let m,g;
182return p instanceof FormData||p&&Object.values(p).some(v=>v instanceof File)?(m=new FormData,Object.keys(p).forEach(v=>{p[v]instanceof File?m.append(v,p[v],p[v].name):typeof p[v]=="object"&&p[v]!==null?m.append(v,JSON.stringify(p[v])):m.append(v,p[v])}),g="multipart/form-data"):(m=p,g="application/json"),l==="Core"?r.post(`/apps/${n}/integration-endpoints/Core/${d}`,m||p,{headers:{"Content-Type":g}}):r.post(`/apps/${n}/integration-endpoints/installable/${l}/integration-endpoints/${d}`,m||p,{headers:{"Content-Type":g}})}}})}})}function Ok(){return typeof window>"u"?!1:window!==window.parent}function Ik(r,n,s){const u=Math.round(window.screenX+(window.outerWidth-500)/2),d=Math.round(window.screenY+(window.outerHeight-600)/2),p=window.open(r,"base44_auth",`width=500,height=600,left=${u},top=${d},resizable=yes,scrollbars=yes`);if(!p)return;const m=()=>{window.removeEventListener("message",g),clearInterval(v),p.closed||p.close()},g=w=>{var T;if(w.origin!==s||w.source!==p||!(!((T=w.data)===null||T===void 0)&&T.access_token))return;m();const F=new URL(n),{access_token:C,is_new_user:_}=w.data;F.searchParams.set("access_token",C),_!=null&&F.searchParams.set("is_new_user",String(_)),window.location.href=F.toString()},v=setInterval(()=>{p.closed&&m()},500);window.addEventListener("message",g)}function Lk(r,n,s,i){return{async me(){return r.get(`/apps/${s}/entities/User/me`)},async updateMe(l){return r.put(`/apps/${s}/entities/User/me`,l)},redirectToLogin(l){if(typeof window>"u")throw new Error("Login method can only be used in a browser environment");const u=l?new URL(l,window.location.origin).toString():window.location.href,d=`${i.appBaseUrl}/login?from_url=${encodeURIComponent(u)}`;window.location.href=d},loginWithProvider(l,u="/"){const d=new URL(u,window.location.origin).toString(),p=`app_id=${s}&from_url=${encodeURIComponent(d)}`;let m;l==="sso"?m=`/apps/${s}/auth/sso/login`:m=`/apps/auth${l==="google"?"":`/${l}`}/login`;const g=`${i.appBaseUrl}/api${m}?${p}`;if(Ok()){const v=`${g}&popup_origin=${encodeURIComponent(window.location.origin)}`;return Ik(v,d,window.location.origin)}window.location.href=g},logout(l){if(delete r.defaults.headers.common.Authorization,typeof window<"u"){if(window.localStorage)try{window.localStorage.removeItem("base44_access_token"),window.localStorage.removeItem("token")}catch(p){console.error("Failed to remove token from localStorage:",p)}const u=l||window.location.href,d=`${i.appBaseUrl}/api/apps/auth/logout?from_url=${encodeURIComponent(u)}`;window.location.href=d}},setToken(l,u=!0){if(l&&(r.defaults.headers.common.Authorization=`Bearer ${l}`,n.defaults.headers.common.Authorization=`Bearer ${l}`,u&&typeof window<"u"&&window.localStorage))try{window.localStorage.setItem("base44_access_token",l),window.localStorage.setItem("token",l)}catch(d){console.error("Failed to save token to localStorage:",d)}},async loginViaEmailPassword(l,u,d){var p;try{const m=await r.post(`/apps/${s}/auth/login`,{email:l,password:u,...d&&{turnstile_token:d}}),{access_token:g,user:v}=m;return g&&this.setToken(g),{access_token:g,user:v}}catch(m){throw((p=m.response)===null||p===void 0?void 0:p.status)===401&&await this.logout(),m}},async isAuthenticated(){try{return await this.me(),!0}catch{return!1}},inviteUser(l,u){return r.post(`/apps/${s}/users/invite-user`,{user_email:l,role:u})},register(l){return r.post(`/apps/${s}/auth/register`,l)},verifyOtp({email:l,otpCode:u}){return r.post(`/apps/${s}/auth/verify-otp`,{email:l,otp_code:u})},resendOtp(l){return r.post(`/apps/${s}/auth/resend-otp`,{email:l})},resetPasswordRequest(l){return r.post(`/apps/${s}/auth/reset-password-request`,{email:l})},resetPassword({resetToken:l,newPassword:u}){return r.post(`/apps/${s}/auth/reset-password`,{reset_token:l,new_password:u})},changePassword({userId:l,currentPassword:u,newPassword:d}){return r.post(`/apps/${s}/auth/change-password`,{user_id:l,current_password:u,new_password:d})}}}function Mk(r,n){return{async getAccessToken(s){const i=`/apps/${n}/auth/sso/accesstoken/${s}`;return r.get(i)}}}function Dk(r,n){return{async getAccessToken(s){if(!s||typeof s!="str
182ing")throw new Error("Integration type is required and must be a string");return(await r.get(`/apps/${n}/external-auth/tokens/${s}`)).access_token},async getConnection(s){var i;if(!s||typeof s!="string")throw new Error("Integration type is required and must be a string");const u=await r.get(`/apps/${n}/external-auth/tokens/${s}`);return{accessToken:u.access_token,connectionConfig:(i=u.connection_config)!==null&&i!==void 0?i:null}},async getWorkspaceConnection(s){var i;if(!s||typeof s!="string")throw new Error("Connector ID is required and must be a string");const u=await r.get(`/apps/${n}/external-auth/tokens/connectors/${s}`);return{accessToken:u.access_token,connectionConfig:(i=u.connection_config)!==null&&i!==void 0?i:null}},async getCurrentAppUserAccessToken(s){if(!s||typeof s!="string")throw new Error("Connector ID is required and must be a string");return(await r.get(`/apps/${n}/app-user-auth/connectors/${s}/token`)).access_token},async getCurrentAppUserConnection(s){var i;if(!s||typeof s!="string")throw new Error("Connector ID is required and must be a string");const u=await r.get(`/apps/${n}/app-user-auth/connectors/${s}/token`);return{accessToken:u.access_token,connectionConfig:(i=u.connection_config)!==null&&i!==void 0?i:null}}}}function Fk(r,n){return{async connectAppUser(s){if(!s||typeof s!="string")throw new Error("Connector ID is required and must be a string");return(await r.post(`/apps/${n}/app-user-auth/connectors/${s}/initiate`)).redirect_url},async disconnectAppUser(s){if(!s||typeof s!="string")throw new Error("Connector ID is required and must be a string");await r.delete(`/apps/${n}/app-user-auth/connectors/${s}`)}}}function $o(r={}){const{storageKey:n="base44_access_token",paramName:s="access_token",saveToStorage:i=!0,removeFromUrl:l=!0}=r;let u=null;if(typeof window<"u"&&window.location)try{const d=new URLSearchParams(window.location.search);if(u=d.get(s),u){if(i&&Uk(u,{storageKey:n}),l){d.delete(s);const p=`${window.location.pathname}${d.toString()?`?${d.toString()}`:""}${window.location.hash}`;window.history.replaceState({},document.title,p)}return u}}catch(d){console.error("Error retrieving token from URL:",d)}if(typeof window<"u"&&window.localStorage)try{return u=window.localStorage.getItem(n),u}catch(d){console.error("Error retrieving token from local storage:",d)}return null}function Uk(r,n){const{storageKey:s="base44_access_token"}=n;if(typeof window>"u"||!window.localStorage||!r)return!1;try{return window.localStorage.setItem(s,r),window.localStorage.setItem("token",r),!0}catch(i){return console.error("Error saving token to local storage:",i),!1}}function em(r,n,s){const i=(u,d)=>u?`${String(u).replace(/\/$/,"")}${d}`:d,l=u=>{const d=new Headers;if(s!=null&&s.getAuthHeaders){const p=s.getAuthHeaders();Object.entries(p).forEach(([m,g])=>{g!=null&&d.set(m,String(g))})}return u&&new Headers(u).forEach((p,m)=>{d.set(m,p)}),d};return{async invoke(u,d){if(typeof d=="string")throw new Error(`Function ${u} must receive an object with named parameters, received: ${d}`);let p,m;return d instanceof FormData||d&&Object.values(d).some(g=>g instanceof File)?(p=new FormData,Object.keys(d).forEach(g=>{d[g]instanceof File?p.append(g,d[g],d[g].name):typeof d[g]=="object"&&d[g]!==null?p.append(g,JSON.stringify(d[g])):p.append(g,d[g])}),m="multipart/form-data"):(p=d,m="application/json"),r.post(`/apps/${n}/functions/${u}`,p||d,{headers:{"Content-Type":m}})},async fetch(u,d={}){const m=`/functions${u.startsWith("/")?u:`/${u}`}`,g=l(d.headers),v={...d,headers:g};return await fetch(i(s==null?void 0:s.baseURL,m),v)}}}function tm({axios:r,getSocket:n,appId:s,serverUrl:i,token:l}){const u=`/apps/${s}/agents`,d={},p=()=>r.get(`${u}/conversations`),m=_=>r.get(`${u}/conversations/${_}`);return{getConversations:p,getConversation:m,listConversations:_=>r.get(`${u}/conversations`,{params:_}),createConversation:_=>r.post(`${u}/conversations`,_),addMessage:async(_,b)=>r.post(`${u}/conversations/v2/${_.id}/messages`,b),subscribeToConversation:(_,b)=>{const j=`/agent-conversations/${_}`,B=n(),I=m(_).then(M=>(d[_]=M,M));return B.subscribeToRoom(j,{connect:()=>{},update_model:async({data:M})=>{const Q=JSON.parse(M);if(Q._message){await I;const se=Q._message,ie=d[_];if(ie){const z=ie.messages||[],Y=z.findIndex(K=>
vendor: 7,056 bytes, line 182
182K.id===se.id),le=Y!==-1?z.map((K,be)=>be===Y?se:K):[...z,se];d[_]={...ie,messages:le},b==null||b(d[_])}}}})},getWhatsAppConnectURL:_=>{const b=`${i}/api/apps/${s}/agents/${encodeURIComponent(_)}/whatsapp`,j=l??$o();return j?`${b}?token=${j}`:b},getTelegramConnectURL:_=>{const b=`${i}/api/apps/${s}/agents/${encodeURIComponent(_)}/telegram`,j=l??$o();return j?`${b}?token=${j}`:b}}}function nm(r,n){const s=`/app-logs/${n}`;return{async logUserInApp(i){await r.post(`${s}/log-user-in-app/${i}`)},async fetchLogs(i={}){return await r.get(s,{params:i})},async getStats(i={}){return await r.get(`${s}/stats`,{params:i})}}}function zk(r,n){return{async inviteUser(s,i){if(i!=="user"&&i!=="admin")throw new Error(`Invalid role: "${i}". Role must be either "user" or "admin".`);return await r.post(`/apps/${n}/runtime/users/invite-user`,{user_email:s,role:i})}}}const mn=Object.create(null);mn.open="0";mn.close="1";mn.ping="2";mn.pong="3";mn.message="4";mn.upgrade="5";mn.noop="6";const _a=Object.create(null);Object.keys(mn).forEach(r=>{_a[mn[r]]=r});const kc={type:"error",data:"parser error"},Qy=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",Yy=typeof ArrayBuffer=="function",Ky=r=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(r):r&&r.buffer instanceof ArrayBuffer,Yc=({type:r,data:n},s,i)=>Qy&&n instanceof Blob?s?i(n):rm(n,i):Yy&&(n instanceof ArrayBuffer||Ky(n))?s?i(n):rm(new Blob([n]),i):i(mn[r]+(n||"")),rm=(r,n)=>{const s=new FileReader;return s.onload=function(){const i=s.result.split(",")[1];n("b"+(i||""))},s.readAsDataURL(r)};function sm(r){return r instanceof Uint8Array?r:r instanceof ArrayBuffer?new Uint8Array(r):new Uint8Array(r.buffer,r.byteOffset,r.byteLength)}let Qu;function Bk(r,n){if(Qy&&r.data instanceof Blob)return r.data.arrayBuffer().then(sm).then(n);if(Yy&&(r.data instanceof ArrayBuffer||Ky(r.data)))return n(sm(r.data));Yc(r,!1,s=>{Qu||(Qu=new TextEncoder),n(Qu.encode(s))})}const om="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Io=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let r=0;r<om.length;r++)Io[om.charCodeAt(r)]=r;const $k=r=>{let n=r.length*.75,s=r.length,i,l=0,u,d,p,m;r[r.length-1]==="="&&(n--,r[r.length-2]==="="&&n--);const g=new ArrayBuffer(n),v=new Uint8Array(g);for(i=0;i<s;i+=4)u=Io[r.charCodeAt(i)],d=Io[r.charCodeAt(i+1)],p=Io[r.charCodeAt(i+2)],m=Io[r.charCodeAt(i+3)],v[l++]=u<<2|d>>4,v[l++]=(d&15)<<4|p>>2,v[l++]=(p&3)<<6|m&63;return g},qk=typeof ArrayBuffer=="function",Kc=(r,n)=>{if(typeof r!="string")return{type:"message",data:Gy(r,n)};const s=r.charAt(0);return s==="b"?{type:"message",data:Hk(r.substring(1),n)}:_a[s]?r.length>1?{type:_a[s],data:r.substring(1)}:{type:_a[s]}:kc},Hk=(r,n)=>{if(qk){const s=$k(r);return Gy(s,n)}else return{base64:!0,data:r}},Gy=(r,n)=>{switch(n){case"blob":return r instanceof Blob?r:new Blob([r]);case"arraybuffer":default:return r instanceof ArrayBuffer?r:r.buffer}},Jy="�",Vk=(r,n)=>{const s=r.length,i=new Array(s);let l=0;r.forEach((u,d)=>{Yc(u,!1,p=>{i[d]=p,++l===s&&n(i.join(Jy))})})},Wk=(r,n)=>{const s=r.split(Jy),i=[];for(let l=0;l<s.length;l++){const u=Kc(s[l],n);if(i.push(u),u.type==="error")break}return i};function Qk(){return new TransformStream({transform(r,n){Bk(r,s=>{const i=s.length;let l;if(i<126)l=new Uint8Array(1),new DataView(l.buffer).setUint8(0,i);else if(i<65536){l=new Uint8Array(3);const u=new DataView(l.buffer);u.setUint8(0,126),u.setUint16(1,i)}else{l=new Uint8Array(9);const u=new DataView(l.buffer);u.setUint8(0,127),u.setBigUint64(1,BigInt(i))}r.data&&typeof r.data!="string"&&(l[0]|=128),n.enqueue(l),n.enqueue(s)})}})}let Yu;function ga(r){return r.reduce((n,s)=>n+s.length,0)}function va(r,n){if(r[0].length===n)return r.shift();const s=new Uint8Array(n);let i=0;for(let l=0;l<n;l++)s[l]=r[0][i++],i===r[0].length&&(r.shift(),i=0);return r.length&&i<r[0].length&&(r[0]=r[0].slice(i)),s}function Yk(r,n){Yu||(Yu=new TextDecoder);const s=[];let i=0,l=-1,u=!1;return new TransformStream({transform(d,p){for(s.push(d);;){if(i===0){if(ga(s)<1)break;const m=va(s,1);u=(m[0]&128)===128,l=m[0]&127,l<126?i=3:l===126?i=1:i=2}else if(i===1){if(ga(s)<2)break;const m=va(s,2);l=new DataView(m.buffer,m.byteOffset,m.length).getUint16(0),i=3}else if(i===2){if(ga(s)<8)break;const m=va(s,8),g=new DataView(m.buffer,m.byteOffset,m.length),v=g.getUint32(0);if(v>Math.pow(2,21)-1){p.enqueue(kc);break}l=v*Math.pow(2,32)+g.getUint32(4),i=3}else{if(ga(s)<l)break;const m=va(s,l);p.enqueue(Kc(u?m:Yu.decode(m),n)),i=0}if(l===0||l>r){p.enqueue(kc);break}}}})}const Xy=4;function Ye(r){if(r)return Kk(r)}function Kk(r){for(var n in Ye.prototype)r[n]=Ye.prototype[n];return r}Ye.prototype.on=Ye.prototype.addEventListener=function(r,n){return this._callbacks=this._callbacks||{},(this._callbacks["$"+r]=this._callbacks["$"+r]||[]).push(n),this};Ye.prototype.once=function(r,n){function s(){this.off(r,s),n.apply(this,arguments)}return s.fn=n,this.on(r,s),this};Ye.prototype.off=Ye.prototype.removeListener=Ye.prototype.removeAllListeners=Ye.prototype.removeEventListener=function(r,n){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var s=this._callbacks["$"+r];if(!s)return this;if(arguments.length==1)return delete this._callbacks["$"+r],this;for(var i,l=0;l<s.length;l++)if(i=s[l],i===n||i.fn===n){s.splice(l,1);break}return s.length===0&&delete this._callbacks["$"+r],this};Ye.prototype.emit=function(r){this._callbacks=this._callbacks||{};for(var n=new Array(arguments.length-1),s=this._callbacks["$"+r],i=1;i<arguments.length;i++)n[i-1]=arguments[i];if(s){s=s.slice(0);for(var i=0,l=s.length;i<l;++i)s[i].apply(this,n)}return this};Ye.prototype.emitReserved=Ye.prototype.emit;Ye.prototype.listeners=function(r){return this._callbacks=this._callbacks||{},this._callbacks["$"+r]||[]};Ye.prototype.hasListeners=function(r){return!!this.listeners(r).length};const Ba=typeof Promise=="function"&&typeof Promise.resolve=="function"?n=>Promise.resolve().then(n):(n,s)=>s(n,0),qt=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),Gk="arraybuffer";function Zy(r,...n){return n.reduce((s,i)=>(r.hasOwnProperty(i)&&(s[i]=r[i]),s),{})}const Jk=qt.setTimeout,Xk=qt.clearTimeout;function $a(r,n){n.useNativeTimers?(r.setTimeoutFn=Jk.bind(qt),r.clearTimeoutFn=Xk.bind(qt)):(r.setTimeoutFn=qt.setTimeout.bind(qt),r.clearTimeoutFn=qt.clearTimeout.bind(qt))}const Zk=1.33;function eS(r){return typeof r=="string"?tS(r):Math.ceil((r.byteLength||r.size)*Zk)}function tS(r){let n=0,s=0;for(let i=0,l=r.length;i<l;i++)n=r.charCodeAt(i),n<128?s+=1:n<2048?s+=2:n<55296||n>=57344?s+=3:(i++,s+=4);return s}function eg(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function nS(r){let n="";for(let s in r)r.hasOwnProperty(s)&&(n.length&&(n+="&"),n+=encodeURIComponent(s)+"="+encodeURIComponent(r[s]));return n}function rS(r){let n={},s=r.split("&");for(let i=0,l=s.length;i<l;i++){let u=s[i].split("=");n[decodeURIComponent(u[0])]=decodeURIComponent(u[1])}return n}
vendor: 4,348 bytes, line 182
182class sS extends Error{constructor(n,s,i){super(n),this.description=s,this.context=i,this.type="TransportError"}}class Gc extends Ye{constructor(n){super(),this.writable=!1,$a(this,n),this.opts=n,this.query=n.query,this.socket=n.socket,this.supportsBinary=!n.forceBase64}onError(n,s,i){return super.emitReserved("error",new sS(n,s,i)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(n){this.readyState==="open"&&this.write(n)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(n){const s=Kc(n,this.socket.binaryType);this.onPacket(s)}onPacket(n){super.emitReserved("packet",n)}onClose(n){this.readyState="closed",super.emitReserved("close",n)}pause(n){}createUri(n,s={}){return n+"://"+this._hostname()+this._port()+this.opts.path+this._query(s)}_hostname(){const n=this.opts.hostname;return n.indexOf(":")===-1?n:"["+n+"]"}_port(){return this.opts.port&&(this.opts.secure&&Number(this.opts.port)!==443||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(n){const s=nS(n);return s.length?"?"+s:""}}class oS extends Gc{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(n){this.readyState="pausing";const s=()=>{this.readyState="paused",n()};if(this._polling||!this.writable){let i=0;this._polling&&(i++,this.once("pollComplete",function(){--i||s()})),this.writable||(i++,this.once("drain",function(){--i||s()}))}else s()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(n){const s=i=>{if(this.readyState==="opening"&&i.type==="open"&&this.onOpen(),i.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(i)};Wk(n,this.socket.binaryType).forEach(s),this.readyState!=="closed"&&(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this._poll())}doClose(){const n=()=>{this.write([{type:"close"}])};this.readyState==="open"?n():this.once("open",n)}write(n){this.writable=!1,Vk(n,s=>{this.doWrite(s,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const n=this.opts.secure?"https":"http",s=this.query||{};return this.opts.timestampRequests!==!1&&(s[this.opts.timestampParam]=eg()),!this.supportsBinary&&!s.sid&&(s.b64=1),this.createUri(n,s)}}let tg=!1;try{tg=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const iS=tg;function aS(){}class lS extends oS{constructor(n){if(super(n),typeof location<"u"){const s=location.protocol==="https:";let i=location.port;i||(i=s?"443":"80"),this.xd=typeof location<"u"&&n.hostname!==location.hostname||i!==n.port}}doWrite(n,s){const i=this.request({method:"POST",data:n});i.on("success",s),i.on("error",(l,u)=>{this.onError("xhr post error",l,u)})}doPoll(){const n=this.request();n.on("data",this.onData.bind(this)),n.on("error",(s,i)=>{this.onError("xhr poll error",s,i)}),this.pollXhr=n}}class pn extends Ye{constructor(n,s,i){super(),this.createRequest=n,$a(this,i),this._opts=i,this._method=i.method||"GET",this._uri=s,this._data=i.data!==void 0?i.data:null,this._create()}_create(){var n;const s=Zy(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");s.xdomain=!!this._opts.xd;const i=this._xhr=this.createRequest(s);try{i.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){i.setDisableHeaderCheck&&i.setDisableHeaderCheck(!0);for(let l in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(l)&&i.setRequestHeader(l,this._opts.extraHeaders[l])}}catch{}if(this._method==="POST")try{i.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{i.setRequestHeader("Accept","*/*")}catch{}(n=this._opts.cookieJar)===null||n===void 0||n.addCookies(i),"withCredentials"in i&&(i.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(i.timeout=this._opts.requestTimeout),i.onreadystatechange=()=>{var l;i.readyState===3&&((l=this._opts.cookieJar)===null||l===void 0||l.parseCookies(i.getResponseHeader("set-cookie"))),i.readyState===4&&(i.status===200||i.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof i.status=="number"?i.status:0)},0))},i.send(this._data)}catch(l){this.setTimeoutFn(()=>{this._onError(l)},0);return}
vendor: 21,276 bytes, line 182
182typeof document<"u"&&(this._index=pn.requestsCount++,pn.requests[this._index]=this)}_onError(n){this.emitReserved("error",n,this._xhr),this._cleanup(!0)}_cleanup(n){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=aS,n)try{this._xhr.abort()}catch{}typeof document<"u"&&delete pn.requests[this._index],this._xhr=null}}_onLoad(){const n=this._xhr.responseText;n!==null&&(this.emitReserved("data",n),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}}pn.requestsCount=0;pn.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",im);else if(typeof addEventListener=="function"){const r="onpagehide"in qt?"pagehide":"unload";addEventListener(r,im,!1)}}function im(){for(let r in pn.requests)pn.requests.hasOwnProperty(r)&&pn.requests[r].abort()}const uS=(function(){const r=ng({xdomain:!1});return r&&r.responseType!==null})();class cS extends lS{constructor(n){super(n);const s=n&&n.forceBase64;this.supportsBinary=uS&&!s}request(n={}){return Object.assign(n,{xd:this.xd},this.opts),new pn(ng,this.uri(),n)}}function ng(r){const n=r.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!n||iS))return new XMLHttpRequest}catch{}if(!n)try{return new qt[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}const rg=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class dS extends Gc{get name(){return"websocket"}doOpen(){const n=this.uri(),s=this.opts.protocols,i=rg?{}:Zy(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(i.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(n,s,i)}catch(l){return this.emitReserved("error",l)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=n=>this.onClose({description:"websocket connection closed",context:n}),this.ws.onmessage=n=>this.onData(n.data),this.ws.onerror=n=>this.onError("websocket error",n)}write(n){this.writable=!1;for(let s=0;s<n.length;s++){const i=n[s],l=s===n.length-1;Yc(i,this.supportsBinary,u=>{try{this.doWrite(i,u)}catch{}l&&Ba(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){const n=this.opts.secure?"wss":"ws",s=this.query||{};return this.opts.timestampRequests&&(s[this.opts.timestampParam]=eg()),this.supportsBinary||(s.b64=1),this.createUri(n,s)}}const Ku=qt.WebSocket||qt.MozWebSocket;class fS extends dS{createSocket(n,s,i){return rg?new Ku(n,s,i):s?new Ku(n,s):new Ku(n)}doWrite(n,s){this.ws.send(s)}}class hS extends Gc{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(n){return this.emitReserved("error",n)}this._transport.closed.then(()=>{this.onClose()}).catch(n=>{this.onError("webtransport error",n)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(n=>{const s=Yk(Number.MAX_SAFE_INTEGER,this.socket.binaryType),i=n.readable.pipeThrough(s).getReader(),l=Qk();l.readable.pipeTo(n.writable),this._writer=l.writable.getWriter();const u=()=>{i.read().then(({done:p,value:m})=>{p||(this.onPacket(m),u())}).catch(p=>{})};u();const d={type:"open"};this.query.sid&&(d.data=`{"sid":"${this.query.sid}"}`),this._writer.write(d).then(()=>this.onOpen())})})}write(n){this.writable=!1;for(let s=0;s<n.length;s++){const i=n[s],l=s===n.length-1;this._writer.write(i).then(()=>{l&&Ba(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var n;(n=this._transport)===null||n===void 0||n.close()}}const pS={websocket:fS,webtransport:hS,polling:cS},mS=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,yS=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function Sc(r){if(r.length>8e3)throw"URI too long";const n=r,s=r.indexOf("["),i=r.indexOf("]");s!=-1&&i!=-1&&(r=r.substring(0,s)+r.substring(s,i).replace(/:/g,";")+r.substring(i,r.length));let l=mS.exec(r||""),u={},d=14;for(;d--;)u[yS[d]]=l[d]||"";return s!=-1&&i!=-1&&(u.source=n,u.host=u.host.substring(1,u.host.length-1).replace(/;/g,":"),u.authority=u.authority.replace("[","").replace("]","").replace(/;/g,":"),u.ipv6uri=!0),u.pathNames=gS(u,u.path),u.queryKey=vS(u,u.query),u}function gS(r,n){const s=/\/{2,9}/g,i=n.replace(s,"/").split("/");return(n.slice(0,1)=="/"||n.length===0)&&i.splice(0,1),n.slice(-1)=="/"&&i.splice(i.length-1,1),i}function vS(r,n){const s={};return n.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(i,l,u){l&&(s[l]=u)}),s}const _c=typeof addEventListener=="function"&&typeof removeEventListener=="function",Ea=[];_c&&addEventListener("offline",()=>{Ea.forEach(r=>r())},!1);class fr extends Ye{constructor(n,s){if(super(),this.binaryType=Gk,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,n&&typeof n=="object"&&(s=n,n=null),n){const i=Sc(n);s.hostname=i.host,s.secure=i.protocol==="https"||i.protocol==="wss",s.port=i.port,i.query&&(s.query=i.query)}else s.host&&(s.hostname=Sc(s.host).host);$a(this,s),this.secure=s.secure!=null?s.secure:typeof location<"u"&&location.protocol==="https:",s.hostname&&!s.port&&(s.port=this.secure?"443":"80"),this.hostname=s.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=s.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},s.transports.forEach(i=>{const l=i.prototype.name;this.transports.push(l),this._transportsByName[l]=i}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},s),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=rS(this.opts.query)),_c&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this._beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this._offlineEventListener=()=>{this._onClose("transport close",{description:"network connection lost"})},Ea.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(n){const s=Object.assign({},this.opts.query);s.EIO=Xy,s.transport=n,this.id&&(s.sid=this.id);const i=Object.assign({},this.opts,{query:s,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[n]);return new this._transportsByName[n](i)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}const n=this.opts.rememberUpgrade&&fr.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";const s=this.createTransport(n);s.open(),this.setTransport(s)}setTransport(n){this.transport&&this.transport.removeAllListeners(),this.transport=n,n.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",s=>this._onClose("transport close",s))}onOpen(){this.readyState="open",fr.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(n){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",n),this.emitReserved("heartbeat"),n.type){case"open":this.onHandshake(JSON.parse(n.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":const s=new Error("server error");s.code=n.data,this._onError(s);break;case"message":this.emitReserved("data",n.data),this.emitReserved("message",n.data);break}}onHandshake(n){this.emitReserved("handshake",n),this.id=n.sid,this.transport.query.sid=n.sid,this._pingInterval=n.pingInterval,this._pingTimeout=n.pingTimeout,this._maxPayload=n.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);const n=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+n,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},n),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const n=this._getWritablePackets();this.transport.send(n),this._prevBufferLen=n.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let s=1;for(let i=0;i<this.writeBuffer.length;i++){const l=this.writeBuffer[i].data;if(l&&(s+=eS(l)),i>0&&s>this._maxPayload)return this.writeBuffer.slice(0,i);s+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;const n=Date.now()>this._pingTimeoutTime;return n&&(this._pingTimeoutTime=0,Ba(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),n}write(n,s,i){return this._sendPacket("message",n,s,i),this}send(n,s,i){return this._sendPacket("message",n,s,i),this}_sendPacket(n,s,i,l){if(typeof s=="function"&&(l=s,s=void 0),typeof i=="function"&&(l=i,i=null),this.readyState==="closing"||this.readyState==="closed")return;i=i||{},i.compress=i.compress!==!1;const u={type:n,data:s,options:i};this.emitReserved("packetCreate",u),this.writeBuffer.push(u),l&&this.once("flush",l),this.flush()}close(){const n=()=>{this._onClose("forced close"),this.transport.close()},s=()=>{this.off("upgrade",s),this.off("upgradeError",s),n()},i=()=>{this.once("upgrade",s),this.once("upgradeError",s)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?i():n()}):this.upgrading?i():n()),this}_onError(n){if(fr.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",n),this._onClose("transport error",n)}_onClose(n,s){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),_c&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const i=Ea.indexOf(this._offlineEventListener);i!==-1&&Ea.splice(i,1)}this.readyState="closed",this.id=null,this.emitReserved("close",n,s),this.writeBuffer=[],this._prevBufferLen=0}}}fr.protocol=Xy;class wS extends fr{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let n=0;n<this._upgrades.length;n++)this._probe(this._upgrades[n])}_probe(n){let s=this.createTransport(n),i=!1;fr.priorWebsocketSuccess=!1;const l=()=>{i||(s.send([{type:"ping",data:"probe"}]),s.once("packet",w=>{if(!i)if(w.type==="pong"&&w.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",s),!s)return;fr.priorWebsocketSuccess=s.name==="websocket",this.transport.pause(()=>{i||this.readyState!=="closed"&&(v(),this.setTransport(s),s.send([{type:"upgrade"}]),this.emitReserved("upgrade",s),s=null,this.upgrading=!1,this.flush())})}else{const T=new Error("probe error");T.transport=s.name,this.emitReserved("upgradeError",T)}}))};function u(){i||(i=!0,v(),s.close(),s=null)}const d=w=>{const T=new Error("probe error: "+w);T.transport=s.name,u(),this.emitReserved("upgradeError",T)};function p(){d("transport closed")}function m(){d("socket closed")}function g(w){s&&w.name!==s.name&&u()}const v=()=>{s.removeListener("open",l),s.removeListener("error",d),s.removeListener("close",p),this.off("close",m),this.off("upgrading",g)};s.once("open",l),s.once("error",d),s.once("close",p),this.once("close",m),this.once("upgrading",g),this._upgrades.indexOf("webtransport")!==-1&&n!=="webtransport"?this.setTimeoutFn(()=>{i||s.open()},200):s.open()}onHandshake(n){this._upgrades=this._filterUpgrades(n.upgrades),super.onHandshake(n)}_filterUpgrades(n){const s=[];for(let i=0;i<n.length;i++)~this.transports.indexOf(n[i])&&s.push(n[i]);return s}}let xS=class extends wS{constructor(n,s={}){const i=typeof n=="object"?n:s;(!i.transports||i.transports&&typeof i.transports[0]=="string")&&(i.transports=(i.transports||["polling","websocket","webtransport"]).map(l=>pS[l]).filter(l=>!!l)),super(n,i)}};function bS(r,n="",s){let i=r;s=s||typeof location<"u"&&location,r==null&&(r=s.protocol+"//"+s.host),typeof r=="string"&&(r.charAt(0)==="/"&&(r.charAt(1)==="/"?r=s.protocol+r:r=s.host+r),/^(https?|wss?):\/\//.test(r)||(typeof s<"u"?r=s.protocol+"//"+r:r="https://"+r),i=Sc(r)),i.port||(/^(http|ws)$/.test(i.protocol)?i.port="80":/^(http|ws)s$/.test(i.protocol)&&(i.port="443")),i.path=i.path||"/";const u=i.host.indexOf(":")!==-1?"["+i.host+"]":i.host;return i.id=i.protocol+"://"+u+":"+i.port+n,i.href=i.protocol+"://"+u+(s&&s.port===i.port?"":":"+i.port),i}const kS=typeof ArrayBuffer=="function",SS=r=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(r):r.buffer instanceof ArrayBuffer,sg=Object.prototype.toString,_S=typeof Blob=="function"||typeof Blob<"u"&&sg.call(Blob)==="[object BlobConstructor]",ES=typeof File=="function"||typeof File<"u"&&sg.call(File)==="[object FileConstructor]";function Jc(r){return kS&&(r instanceof ArrayBuffer||SS(r))||_S&&r instanceof Blob||ES&&r instanceof File}function Ca(r,n){if(!r||typeof r!="object")return!1;if(Array.isArray(r)){for(let s=0,i=r.length;s<i;s++)if(Ca(r[s]))return!0;return!1}if(Jc(r))return!0;if(r.toJSON&&typeof r.toJSON=="function"&&arguments.length===1)return Ca(r.toJSON(),!0);for(const s in r)if(Object.prototype.hasOwnProperty.call(r,s)&&Ca(r[s]))return!0;return!1}function CS(r){const n=[],s=r.data,i=r;return i.data=Ec(s,n),i.attachments=n.length,{packet:i,buffers:n}}function Ec(r,n){if(!r)return r;if(Jc(r)){const s={_placeholder:!0,num:n.length};return n.push(r),s}else if(Array.isArray(r)){const s=new Array(r.length);for(let i=0;i<r.length;i++)s[i]=Ec(r[i],n);return s}else if(typeof r=="object"&&!(r instanceof Date)){const s={};for(const i in r)Object.prototype.hasOwnProperty.call(r,i)&&(s[i]=Ec(r[i],n));return s}return r}function NS(r,n){return r.data=Cc(r.data,n),delete r.attachments,r}function Cc(r,n){if(!r)return r;if(r&&r._placeholder===!0){if(typeof r.num=="number"&&r.num>=0&&r.num<n.length)return n[r.num];throw new Error("illegal attachments")}else if(Array.isArray(r))for(let s=0;s<r.length;s++)r[s]=Cc(r[s],n);else if(typeof r=="object")for(const s in r)Object.prototype.hasOwnProperty.call(r,s)&&(r[s]=Cc(r[s],n));return r}const TS=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"];var Re;(function(r){r[r.CONNECT=0]="CONNECT",r[r.DISCONNECT=1]="DISCONNECT",r[r.EVENT=2]="EVENT",r[r.ACK=3]="ACK",r[r.CONNECT_ERROR=4]="CONNECT_ERROR",r[r.BINARY_EVENT=5]="BINARY_EVENT",r[r.BINARY_ACK=6]="BINARY_ACK"})(Re||(Re={}));class RS{constructor(n){this.replacer=n}encode(n){return(n.type===Re.EVENT||n.type===Re.ACK)&&Ca(n)?this.encodeAsBinary({type:n.type===Re.EVENT?Re.BINARY_EVENT:Re.BINARY_ACK,nsp:n.nsp,data:n.data,id:n.id}):[this.encodeAsString(n)]}encodeAsString(n){let s=""+n.type;return(n.type===Re.BINARY_EVENT||n.type===Re.BINARY_ACK)&&(s+=n.attachments+"-"),n.nsp&&n.nsp!=="/"&&(s+=n.nsp+","),n.id!=null&&(s+=n.id),n.data!=null&&(s+=JSON.stringify(n.data,this.replacer)),s}encodeAsBinary(n){const s=CS(n),i=this.encodeAsString(s.packet),l=s.buffers;return l.unshift(i),l}}class Xc extends Ye{constructor(n){super(),this.reviver=n}add(n){let s;if(typeof n=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");s=this.decodeString(n);const i=s.type===Re.BINARY_EVENT;i||s.type===Re.BINARY_ACK?(s.type=i?Re.EVENT:Re.ACK,this.reconstructor=new jS(s),s.attachments===0&&super.emitReserved("decoded",s)):super.emitReserved("decoded",s)}else if(Jc(n)||n.base64)if(this.reconstructor)s=this.reconstructor.takeBinaryData(n),s&&(this.reconstructor=null,super.emitReserved("decoded",s));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+n)}decodeString(n){let s=0;const i={type:Number(n.charAt(0))};if(Re[i.type]===void 0)throw new Error("unknown packet type "+i.type);if(i.type===Re.BINARY_EVENT||i.type===Re.BINARY_ACK){const u=s+1;for(;n.charAt(++s)!=="-"&&s!=n.length;);const d=n.substring(u,s);if(d!=Number(d)||n.charAt(s)!=="-")throw new Error("Illegal attachments");i.attachments=Number(d)}if(n.charAt(s+1)==="/"){const u=s+1;for(;++s&&!(n.charAt(s)===","||s===n.length););i.nsp=n.substring(u,s)}else i.nsp="/";const l=n.charAt(s+1);if(l!==""&&Number(l)==l){const u=s+1;for(;++s;){const d=n.charAt(s);if(d==null||Number(d)!=d){--s;break}if(s===n.length)break}i.id=Number(n.substring(u,s+1))}if(n.charAt(++s)){const u=this.tryParse(n.substr(s));if(Xc.isPayloadValid(i.type,u))i.data=u;else throw new Error("invalid payload")}return i}tryParse(n){try{return JSON.parse(n,this.reviver)}catch{return!1}}static isPayloadValid(n,s){switch(n){case Re.CONNECT:return am(s);case Re.DISCONNECT:return s===void 0;case Re.CONNECT_ERROR:return typeof s=="string"||am(s);case Re.EVENT:case Re.BINARY_EVENT:return Array.isArray(s)&&(typeof s[0]=="number"||typeof s[0]=="string"&&TS.indexOf(s[0])===-1);case Re.ACK:case Re.BINARY_ACK:return Array.isArray(s)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class jS{constructor(n){this.packet=n,this.buffers=[],this.reconPack=n}takeBinaryData(n){if(this.buffers.push(n),this.buffers.length===this.reconPack.attachments){const s=NS(this.reconPack,this.buffers);return this.finishedReconstruction(),s}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}function am(r){return Object.prototype.toString.call(r)==="[object Object]"}const PS=Object.freeze(Object.defineProperty({__proto__:null,Decoder:Xc,Encoder:RS,get PacketType(){return Re}},Symbol.toStringTag,{value:"Module"}));function tn(r,n,s){return r.on(n,s),function(){r.off(n,s)}}const AS=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class og extends Ye{constructor(n,s,i){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=n,this.nsp=s,i&&i.auth&&(this.auth=i.auth),this._opts=Object.assign({},i),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const n=this.io;this.subs=[tn(n,"open",this.onopen.bind(this)),tn(n,"packet",this.onpacket.bind(this)),tn(n,"error",this.onerror.bind(this)),tn(n,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...n){return n.unshift("message"),this.emit.apply(this,n),this}emit(n,...s){var i,l,u;if(AS.hasOwnProperty(n))throw new Error('"'+n.toString()+'" is a reserved event name');if(s.unshift(n),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(s),this;const d={type:Re.EVENT,data:s};if(d.options={},d.options.compress=this.flags.compress!==!1,typeof s[s.length-1]=="function"){const v=this.ids++,w=s.pop();this._registerAckCallback(v,w),d.id=v}const p=(l=(i=this.io.engine)===null||i===void 0?void 0:i.transport)===null||l===void 0?void 0:l.writable,m=this.connected&&!(!((u=this.io.engine)===null||u===void 0)&&u._hasPingExpired());return this.flags.volatile&&!p||(m?(this.notifyOutgoingListeners(d),this.packet(d)):this.sendBuffer.push(d)),this.flags={},this}_registerAckCallback(n,s){var i;const l=(i=this.flags.timeout)!==null&&i!==void 0?i:this._opts.ackTimeout;if(l===void 0){this.acks[n]=s;return}const u=this.io.setTimeoutFn(()=>{delete this.acks[n];for(let p=0;p<this.sendBuffer.length;p++)this.sendBuffer[p].id===n&&this.sendBuffer.splice(p,1);s.call(this,new Error("operation has timed out"))},l),d=(...p)=>{this.io.clearTimeoutFn(u),s.apply(this,p)};d.withError=!0,this.acks[n]=d}emitWithAck(n,...s){return new Promise((i,l)=>{const u=(d,p)=>d?l(d):i(p);
vendor: 1,065 bytes, line 182
182u.withError=!0,s.push(u),this.emit(n,...s)})}_addToQueue(n){let s;typeof n[n.length-1]=="function"&&(s=n.pop());const i={id:this._queueSeq++,tryCount:0,pending:!1,args:n,flags:Object.assign({fromQueue:!0},this.flags)};n.push((l,...u)=>(this._queue[0],l!==null?i.tryCount>this._opts.retries&&(this._queue.shift(),s&&s(l)):(this._queue.shift(),s&&s(null,...u)),i.pending=!1,this._drainQueue())),this._queue.push(i),this._drainQueue()}_drainQueue(n=!1){if(!this.connected||this._queue.length===0)return;const s=this._queue[0];s.pending&&!n||(s.pending=!0,s.tryCount++,this.flags=s.flags,this.emit.apply(this,s.args))}packet(n){n.nsp=this.nsp,this.io._packet(n)}onopen(){typeof this.auth=="function"?this.auth(n=>{this._sendConnectPacket(n)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(n){this.packet({type:Re.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},n):n})}onerror(n){this.connected||this.emitReserved("connect_error",n)}onclose(n,s){this.connected=!1,delete this.id,this.emitReserved("disconnect",n,s),this._clearAcks()}
vendor: 6,031 bytes, line 182
182_clearAcks(){Object.keys(this.acks).forEach(n=>{if(!this.sendBuffer.some(i=>String(i.id)===n)){const i=this.acks[n];delete this.acks[n],i.withError&&i.call(this,new Error("socket has been disconnected"))}})}onpacket(n){if(n.nsp===this.nsp)switch(n.type){case Re.CONNECT:n.data&&n.data.sid?this.onconnect(n.data.sid,n.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case Re.EVENT:case Re.BINARY_EVENT:this.onevent(n);break;case Re.ACK:case Re.BINARY_ACK:this.onack(n);break;case Re.DISCONNECT:this.ondisconnect();break;case Re.CONNECT_ERROR:this.destroy();const i=new Error(n.data.message);i.data=n.data.data,this.emitReserved("connect_error",i);break}}onevent(n){const s=n.data||[];n.id!=null&&s.push(this.ack(n.id)),this.connected?this.emitEvent(s):this.receiveBuffer.push(Object.freeze(s))}emitEvent(n){if(this._anyListeners&&this._anyListeners.length){const s=this._anyListeners.slice();for(const i of s)i.apply(this,n)}super.emit.apply(this,n),this._pid&&n.length&&typeof n[n.length-1]=="string"&&(this._lastOffset=n[n.length-1])}ack(n){const s=this;let i=!1;return function(...l){i||(i=!0,s.packet({type:Re.ACK,id:n,data:l}))}}onack(n){const s=this.acks[n.id];typeof s=="function"&&(delete this.acks[n.id],s.withError&&n.data.unshift(null),s.apply(this,n.data))}onconnect(n,s){this.id=n,this.recovered=s&&this._pid===s,this._pid=s,this.connected=!0,this.emitBuffered(),this._drainQueue(!0),this.emitReserved("connect")}emitBuffered(){this.receiveBuffer.forEach(n=>this.emitEvent(n)),this.receiveBuffer=[],this.sendBuffer.forEach(n=>{this.notifyOutgoingListeners(n),this.packet(n)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(n=>n()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:Re.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(n){return this.flags.compress=n,this}get volatile(){return this.flags.volatile=!0,this}timeout(n){return this.flags.timeout=n,this}onAny(n){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(n),this}prependAny(n){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(n),this}offAny(n){if(!this._anyListeners)return this;if(n){const s=this._anyListeners;for(let i=0;i<s.length;i++)if(n===s[i])return s.splice(i,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(n){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(n),this}prependAnyOutgoing(n){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(n),this}offAnyOutgoing(n){if(!this._anyOutgoingListeners)return this;if(n){const s=this._anyOutgoingListeners;for(let i=0;i<s.length;i++)if(n===s[i])return s.splice(i,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(n){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const s=this._anyOutgoingListeners.slice();for(const i of s)i.apply(this,n.data)}}}function Ms(r){r=r||{},this.ms=r.min||100,this.max=r.max||1e4,this.factor=r.factor||2,this.jitter=r.jitter>0&&r.jitter<=1?r.jitter:0,this.attempts=0}Ms.prototype.duration=function(){var r=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var n=Math.random(),s=Math.floor(n*this.jitter*r);r=(Math.floor(n*10)&1)==0?r-s:r+s}return Math.min(r,this.max)|0};Ms.prototype.reset=function(){this.attempts=0};Ms.prototype.setMin=function(r){this.ms=r};Ms.prototype.setMax=function(r){this.max=r};Ms.prototype.setJitter=function(r){this.jitter=r};class Nc extends Ye{constructor(n,s){var i;super(),this.nsps={},this.subs=[],n&&typeof n=="object"&&(s=n,n=void 0),s=s||{},s.path=s.path||"/socket.io",this.opts=s,$a(this,s),this.reconnection(s.reconnection!==!1),this.reconnectionAttempts(s.reconnectionAttempts||1/0),this.reconnectionDelay(s.reconnectionDelay||1e3),this.reconnectionDelayMax(s.reconnectionDelayMax||5e3),this.randomizationFactor((i=s.randomizationFactor)!==null&&i!==void 0?i:.5),this.backoff=new Ms({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(s.timeout==null?2e4:s.timeout),this._readyState="closed",this.uri=n;const l=s.parser||PS;this.encoder=new l.Encoder,this.decoder=new l.Decoder,this._autoConnect=s.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(n){return arguments.length?(this._reconnection=!!n,n||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(n){return n===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=n,this)}reconnectionDelay(n){var s;return n===void 0?this._reconnectionDelay:(this._reconnectionDelay=n,(s=this.backoff)===null||s===void 0||s.setMin(n),this)}randomizationFactor(n){var s;return n===void 0?this._randomizationFactor:(this._randomizationFactor=n,(s=this.backoff)===null||s===void 0||s.setJitter(n),this)}reconnectionDelayMax(n){var s;return n===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=n,(s=this.backoff)===null||s===void 0||s.setMax(n),this)}timeout(n){return arguments.length?(this._timeout=n,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(n){if(~this._readyState.indexOf("open"))return this;this.engine=new xS(this.uri,this.opts);const s=this.engine,i=this;this._readyState="opening",this.skipReconnect=!1;const l=tn(s,"open",function(){i.onopen(),n&&n()}),u=p=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",p),n?n(p):this.maybeReconnectOnOpen()},d=tn(s,"error",u);if(this._timeout!==!1){const p=this._timeout,m=this.setTimeoutFn(()=>
182{l(),u(new Error("timeout")),s.close()},p);this.opts.autoUnref&&m.unref(),this.subs.push(()=>{this.clearTimeoutFn(m)})}return this.subs.push(l),this.subs.push(d),this}connect(n){return this.open(n)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const n=this.engine;this.subs.push(tn(n,"ping",this.onping.bind(this)),tn(n,"data",this.ondata.bind(this)),tn(n,"error",this.onerror.bind(this)),tn(n,"close",this.onclose.bind(this)),tn(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(n){try{this.decoder.add(n)}catch(s){this.onclose("parse error",s)}}ondecoded(n){Ba(()=>{this.emitReserved("packet",n)},this.setTimeoutFn)}onerror(n){this.emitReserved("error",n)}socket(n,s){let i=this.nsps[n];return i?this._autoConnect&&!i.active&&i.connect():(i=new og(this,n,s),this.nsps[n]=i),i}_destroy(n){const s=Object.keys(this.nsps);for(const i of s)if(this.nsps[i].active)return;this._close()}_packet(n){const s=this.encoder.encode(n);for(let i=0;i<s.length;i++)this.engine.write(s[i],n.options)}cleanup(){this.subs.forEach(n=>n()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(n,s){var i;this.cleanup(),(i=this.engine)===null||i===void 0||i.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",n,s),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const n=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const s=this.backoff.duration();this._reconnecting=!0;const i=this.setTimeoutFn(()=>{n.skipReconnect||(this.emitReserved("reconnect_attempt",n.backoff.attempts),!n.skipReconnect&&n.open(l=>{l?(n._reconnecting=!1,n.reconnect(),this.emitReserved("reconnect_error",l)):n.onreconnect()}))},s);this.opts.autoUnref&&i.unref(),this.subs.push(()=>{this.clearTimeoutFn(i)})}}onreconnect(){const n=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",n)}}const Ro={};function Na(r,n){typeof r=="object"&&(n=r,r=void 0),n=n||{};const s=bS(r,n.path||"/socket.io"),i=s.source,l=s.id,u=s.path,d=Ro[l]&&u in Ro[l].nsps,p=n.forceNew||n["force new connection"]||n.multiplex===!1||d;let m;return p?m=new Nc(i,n):(Ro[l]||(Ro[l]=new Nc(i,n)),m=Ro[l]),s.query&&!n.query&&(n.query=s.queryKey),m.socket(s.path,n)}Object.assign(Na,{Manager:Nc,Socket:og,io:Na,connect:Na});const OS=250;function lm(r,n){var s;const i=Na(r.serverUrl,{path:r.mountPath,transports:r.transports,query:{app_id:r.appId,token:(s=r.token)!==null&&s!==void 0?s:$o()}});return i.on("connect",async()=>{var l;return console.log("connect",i.id),(l=n.connect)===null||l===void 0?void 0:l.call(n)}),i.on("update_model",async l=>{var u;return(u=n.update_model)===null||u===void 0?void 0:u.call(n,l)}),i.on("error",async l=>{var u;return(u=n.error)===null||u===void 0?void 0:u.call(n,l)}),i.on("connect_error",async l=>{var u;return console.error("connect_error",l),(u=n.error)===null||u===void 0?void 0:u.call(n,l)}),i}function IS({config:r}){let n={...r};const s={},i={},l={connect:async()=>{const j=[];Object.keys(s).forEach(B=>{const I=T(B);I.length!==0&&(g(B),I.forEach(({connect:M})=>{const Q=async()=>M==null?void 0:M();j.push(Q())}))}),await Promise.all(j)},update_model:async j=>{const I=T(j.room).map(M=>{var Q;return(Q=M.update_model)===null||Q===void 0?void 0:Q.call(M,j)});await Promise.all(I)},error:async j=>{console.error("error",j);const B=Object.values(s).flat().map(I=>{var M;return(M=I.error)===null||M===void 0?void 0:M.call(I,j)});await Promise.all(B)}};let u=lm(r,l);function d(){p()}function p(){C(),u&&u.disconnect()}function m(j){d(),n={...n,...j},u=lm(n,l)}function g(j){u.emit("join",j)}function v(j){u.emit("leave",j)}async function w(j,B){var I;const M=JSON.stringify(B);return(I=l.update_model)===null||I===void 0?void 0:I.call(l,{room:j,data:M})}function T(j){var B;return(B=s[j])!==null&&B!==void 0?B:[]}function F(j){const B=i[j];B&&(clearTimeout(B),delete i[j])}
182function C(){Object.keys(i).forEach(j=>{var B,I;clearTimeout(i[j]),delete i[j],((I=(B=s[j])===null||B===void 0?void 0:B.length)!==null&&I!==void 0?I:0)===0&&delete s[j]})}function _(j){F(j),i[j]=setTimeout(()=>{var B,I;delete i[j],!(((I=(B=s[j])===null||B===void 0?void 0:B.length)!==null&&I!==void 0?I:0)>0)&&(v(j),delete s[j])},OS)}return{socket:u,subscribeToRoom:(j,B)=>{s[j]?F(j):(g(j),s[j]=[]),s[j].push(B);let I=!1;return()=>{var M,Q;I||(I=!0,s[j]=(Q=(M=s[j])===null||M===void 0?void 0:M.filter(se=>se!==B))!==null&&Q!==void 0?Q:[],s[j].length===0&&_(j))}},updateConfig:m,updateModel:w,disconnect:p}}const jo=typeof window<"u"?window:{base44SharedInstances:{}};function LS(r,n){return jo.base44SharedInstances||(jo.base44SharedInstances={}),jo.base44SharedInstances[r]||(jo.base44SharedInstances[r]={instance:n()}),jo.base44SharedInstances[r].instance}const MS="__user_heartbeat_event__",DS="__initialization_event__",FS="__session_duration_event__",um="analytics-enable",cm="base44_analytics_session_id",US={enabled:!0,maxQueueSize:1e3,throttleTime:1e3,batchSize:30,heartBeatInterval:60*1e3},zS="analytics",Le=LS(zS,()=>({requestsQueue:[],isProcessing:!1,isHeartBeatProcessing:!1,wasInitializationTracked:!1,sessionContext:null,sessionStartTime:null,config:{...US,...YS()}})),BS=({axiosClient:r,serverUrl:n,appId:s,userAuthModule:i})=>{var l;const{maxQueueSize:u,throttleTime:d,batchSize:p}=Le.config;if(!(!((l=Le.config)===null||l===void 0)&&l.enabled))return{track:()=>{},cleanup:()=>{}};let m;const g=`${n}/api/apps/${s}/analytics/track/batch`,v=async I=>{await r.request({method:"POST",url:`/apps/${s}/analytics/track/batch`,data:{events:I}})},w=I=>{try{const M=JSON.stringify({events:I}),Q=new Blob([M],{type:"application/json"});return typeof navigator>"u"||M.length>6e4||!navigator.sendBeacon(g,Q)}catch{return!1}},T=async(I,M={})=>{if(I.length===0)return;const Q=await QS(i),se=I.map(WS(Q));try{(!M.isBeacon||!w(se))&&await v(se)}catch{}},F=()=>{fm(T,{throttleTime:d,batchSize:p})},C=I=>{if(Le.requestsQueue.length>=u)return;const M=VS();Le.requestsQueue.push({...I,...M}),F()},_=()=>{fm(T,{throttleTime:d,batchSize:p}),m=hm(C),qS()},b=()=>{dm(),m==null||m(),HS(C);const I=Le.requestsQueue.splice(0);T(I,{isBeacon:!0})},j=()=>{typeof window>"u"||(document.visibilityState==="hidden"?b():document.visibilityState==="visible"&&_())},B=()=>{dm(),m==null||m(),typeof window<"u"&&window.removeEventListener("visibilitychange",j)};return F(),m=hm(C),$S(C),typeof window<"u"&&window.addEventListener("visibilitychange",j),{track:C,cleanup:B}};function dm(){Le.isProcessing=!1}async function fm(r,n){if(Le.isProcessing)return;Le.isProcessing=!0;const{throttleTime:s=1e3,batchSize:i=30}=n??{};for(;Le.isProcessing&&Le.requestsQueue.length>0;){const l=Le.requestsQueue.splice(0,i);l.length&&await r(l),await new Promise(u=>setTimeout(u,s))}Le.isProcessing=!1}function hm(r){var n;if(Le.isHeartBeatProcessing||((n=Le.config.heartBeatInterval)!==null&&n!==void 0?n:0)<10)return()=>{};Le.isHeartBeatProcessing=!0;const s=setInterval(()=>{r({eventName:MS})},Le.config.heartBeatInterval);return()=>{clearInterval(s),Le.isHeartBeatProcessing=!1}}function $S(r){typeof window>"u"||Le.wasInitializationTracked||(Le.wasInitializationTracked=!0,r({eventName:DS,properties:{referrer:document==null?void 0:document.referrer}}))}function qS(){typeof window>"u"||Le.sessionStartTime!==null||(Le.sessionStartTime=new Date().toISOString())}function HS(r){if(typeof window>"u"||Le.sessionStartTime===null)return;const n=new Date().getTime()-new Date(Le.sessionStartTime).getTime();Le.sessionStartTime=null,r({eventName:FS,properties:{sessionDuration:n}})}function VS(){return{timestamp:new Date().toISOString(),pageUrl:typeof window<"u"?window.location.pathname:null}}function WS(r){return n=>({event_name:n.eventName,properties:n.properties,timestamp:n.timestamp,page_url:n.pageUrl,...r})}let Gu=null;async function QS(r){if(!Le.sessionContext){if(!Gu){const n=KS();Gu=r.me().then(s=>({user_id:s.id,session_id:n})).catch(()=>({user_id:null,session_id:n}))}Le.sessionContext=await Gu}return Le.sessionContext}function YS(){if(typeof window>"u")return;const n=new URLSearchParams(window.location.search).get(um);if(n==null||!n.length)return;const s=new URLSearchParams(window.location.search);s.delete(um);const i=window.location.pathname+(s.toString()?"?"+s.toString():"");return window.history.replaceState({},"",i),{enabled:n==="true"}}function KS(){if(typeof window>"u")return Vu();try{const r=localStorage.getItem(cm);if(!r){const n=Vu();return localStorage.setItem(cm,n),n}return r}catch{return Vu()}}function GS(r){var n,s;const{serverUrl:i="https://base44.app",appId:l,token:u,serviceToken:d,requiresAuth:p=!1,appBaseUrl:m,options:g,functionsVersion:v,headers:w}=r,T=typeof m=="string"?m:"",F={serverUrl:i,mountPath:"/ws-user-apps/socket.io/",transports:["websocket"],appId:l,token:u};let C=null;const _=()=>(C||(C=IS({config:F})),C),b={...w,"X-App-Id":String(l)},j=v?{...b,"Base44-Functions-Version":v}:b,B=Oo({baseURL:`${i}/api`,headers:b,token:u,onError:g==null?void 0:g.onError}),I=Oo({baseURL:`${i}/api`,headers:j,token:u,interceptResponses:!1,onError:g==null?void 0:g.onError}),M={...b,...u?{"on-behalf-of":`Bearer ${u}`}:{}},Q=Oo({baseURL:`${i}/api`,headers:M,token:d,onError:g==null?void 0:g.onError}),se=Oo({baseURL:`${i}/api`,headers:j,token:d,interceptResponses:!1}),ie=Lk(B,I,l,{appBaseUrl:T});if(typeof window<"u"){const K=u||$o();K&&ie.setToken(K)}const z={entities:Xp({axios:B,appId:l,getSocket:_}),integrations:Zp(B,l),connectors:Fk(B,l),auth:ie,functions:em(I,l,{getAuthHeaders:()=>{const K={},be=u||$o();return be&&(K.Authorization=`Bearer ${be}`),K},baseURL:(n=I.defaults)===null||n===void 0?void 0:n.baseURL}
182),agents:tm({axios:B,getSocket:_,appId:l,serverUrl:i,token:u}),appLogs:nm(B,l),users:zk(B,l),analytics:BS({axiosClient:B,serverUrl:i,appId:l,userAuthModule:ie}),cleanup:()=>{z.analytics.cleanup(),C&&C.disconnect()}},Y={entities:Xp({axios:Q,appId:l,getSocket:_}),integrations:Zp(Q,l),sso:Mk(Q,l),connectors:Dk(Q,l),functions:em(se,l,{getAuthHeaders:()=>{const K={};return d&&(K.Authorization=`Bearer ${d}`),K},baseURL:(s=se.defaults)===null||s===void 0?void 0:s.baseURL}),agents:tm({axios:Q,getSocket:_,appId:l,serverUrl:i,token:u}),appLogs:nm(Q,l),cleanup:()=>{C&&C.disconnect()}};return p&&typeof window<"u"&&setTimeout(async()=>{try{await z.auth.isAuthenticated()||z.auth.redirectToLogin(window.location.href)}catch(K){console.error("Authentication check failed:",K),z.auth.redirectToLogin(window.location.href)}},0),{...z,setToken(K){z.auth.setToken(K),C&&C.updateConfig({token:K}),F.token=K},getConfig(){return{serverUrl:i,appId:l,requiresAuth:p}},get asServiceRole(){if(!d)throw new Error("Service token is required to use asServiceRole. Please provide a serviceToken when creating the client.");return Y}}}const ig=typeof window>"u",JS=ig?{localStorage:new Map}:window,Do=JS.localStorage,XS=r=>r.replace(/([A-Z])/g,"_$1").toLowerCase(),xs=(r,{defaultValue:n=void 0,removeFromUrl:s=!1}={})=>{if(ig)return n;const i=`base44_${XS(r)}`,l=new URLSearchParams(window.location.search),u=l.get(r);if(s){l.delete(r);const p=`${window.location.pathname}${l.toString()?`?${l.toString()}`:""}${window.location.hash}`;window.history.replaceState({},document.title,p)}if(u)return Do.setItem(i,u),u;if(n)return Do.setItem(i,n),n;const d=Do.getItem(i);return d||null},ZS=()=>(xs("clear_access_token")==="true"&&(Do.removeItem("base44_access_token"),Do.removeItem("token")),{appId:xs("app_id",{defaultValue:"699742f89e67ae2017b823ca"}),token:xs("access_token",{removeFromUrl:!0}),fromUrl:xs("from_url",{defaultValue:window.location.href}),functionsVersion:xs("functions_version",{defaultValue:"prod"}),appBaseUrl:xs("app_base_url",{defaultValue:void 0})}),Lo={...ZS()},{appId:e_,token:t_,functionsVersion:n_,appBaseUrl:r_}=Lo,st=GS({appId:e_,token:t_,functionsVersion:n_,serverUrl:"",requiresAuth:!1,appBaseUrl:r_}),ag=A.createContext(),s_=({children:r})=>{const[n,s]=A.useState(null),[i,l]=A.useState(!1),[u,d]=A.useState(!0),[p,m]=A.useState(!0),[g,v]=A.useState(null),[w,T]=A.useState(null);A.useEffect(()=>{F()},[]);const F=async()=>{var j,B;try{m(!0),v(null);const I=Oo({baseURL:"/api/apps/public",headers:{"X-App-Id":Lo.appId},token:Lo.token,interceptResponses:!0});try{const M=await I.get(`/prod/public-settings/by-id/${Lo.appId}`);T(M),Lo.token?await C():(d(!1),l(!1)),m(!1)}
182catch(M){if(console.error("App state check failed:",M),M.status===403&&((B=(j=M.data)==null?void 0:j.extra_data)!=null&&B.reason)){const Q=M.data.extra_data.reason;v(Q==="auth_required"?{type:"auth_required",message:"Authentication required"}:Q==="user_not_registered"?{type:"user_not_registered",message:"User not registered for this app"}:{type:Q,message:M.message})}else v({type:"unknown",message:M.message||"Failed to load app"});m(!1),d(!1)}}catch(I){console.error("Unexpected error:",I),v({type:"unknown",message:I.message||"An unexpected error occurred"}),m(!1),d(!1)}},C=async()=>{try{d(!0);const j=await st.auth.me();s(j),l(!0),d(!1)}catch(j){console.error("User auth check failed:",j),d(!1),l(!1),(j.status===401||j.status===403)&&v({type:"auth_required",message:"Authentication required"})}},_=(j=!0)=>{s(null),l(!1),j?st.auth.logout(window.location.href):st.auth.logout()},b=()=>{st.auth.redirectToLogin(window.location.href)};return h.jsx(ag.Provider,{value:{user:n,isAuthenticated:i,isLoadingAuth:u,isLoadingPublicSettings:p,authError:g,appPublicSettings:w,logout:_,navigateToLogin:b,checkAppState:F},children:r})},lg=()=>{const r=A.useContext(ag);if(!r)throw new Error("useAuth must be used within an AuthProvider");return r};function o_(r){return"/"+r.replace(/ /g,"-")}function pm(r,n){if(typeof r=="function")return r(n);r!=null&&(r.current=n)}function i_(...r){return n=>{let s=!1;const i=r.map(l=>{const u=pm(l,n);return!s&&typeof u=="function"&&(s=!0),u});if(s)return()=>{for(let l=0;l<i.length;l++){const u=i[l];typeof u=="function"?u():pm(r[l],null)}}}}var a_=Symbol.for("react.lazy"),Oa=jm[" use ".trim().toString()];function l_(r){return typeof r=="object"&&r!==null&&"then"in r}function ug(r){return r!=null&&typeof r=="object"&&"$$typeof"in r&&r.$$typeof===a_&&"_payload"in r&&l_(r._payload)}function Zc(r){const n=c_(r),s=A.forwardRef((i,l)=>{let{children:u,...d}=i;ug(u)&&typeof Oa=="function"&&(u=Oa(u._payload));const p=A.Children.toArray(u),m=p.find(f_);if(m){const g=m.props.children,v=p.map(w=>w===m?A.Children.count(g)>1?A.Children.only(null):A.isValidElement(g)?g.props.children:null:w);return h.jsx(n,{...d,ref:l,children:A.isValidElement(g)?A.cloneElement(g,void 0,v):null})}return h.jsx(n,{...d,ref:l,children:u})});return s.displayName=`${r}.Slot`,s}var u_=Zc("Slot");function c_(r){const n=A.forwardRef((s,i)=>{let{children:l,...u}=s;if(ug(l)&&typeof Oa=="function"&&(l=Oa(l._payload)),A.isValidElement(l)){const d=p_(l),p=h_(u,l.props);return l.type!==A.Fragment&&(p.ref=i?i_(i,d):d),A.cloneElement(l,p)}return A.Children.count(l)>1?A.Children.only(null):null});return n.displayName=`${r}.SlotClone`,n}var d_=Symbol("radix.slottable");function f_(r){return A.isValidElement(r)&&typeof r.type=="function"&&"__radixId"in r.type&&r.type.__radixId===d_}function h_(r,n){const s={...n};for(const i in n){const l=r[i],u=n[i];/^on[A-Z]/.test(i)?l&&u?s[i]=(...p)=>{const m=u(...p);return l(...p),m}:l&&(s[i]=l):i==="style"?s[i]={...l,...u}:i==="className"&&(s[i]=[l,u].filter(Boolean).join(" "))}return{...r,...s}}function p_(r){var i,l;let n=(i=Object.getOwnPropertyDescriptor(r.props,"ref"))==null?void 0:i.get,s=n&&"isReactWarning"in n&&n.isReactWarning;return s?r.ref:(n=(l=Object.getOwnPropertyDescriptor(r,"ref"))==null?void 0:l.get,s=n&&"isReactWarning"in n&&n.isReactWarning,s?r.props.ref:r.props.ref||r.ref)}const m_=Ac("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),hn=A.forwardRef(({className:r,variant:n,size:s,asChild:i=!1,...l},u)=>{const d=i?u_:"button";return h.jsx(d,{className:jn(m_({variant:n,size:s,className:r})),ref:u,...l})});hn.displayName="Button";const Tc=A.forwardRef(({className:r,type:n,...s},i)=>h.jsx("input",{type:n,className:jn("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-base shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",r),ref:i,...s}));Tc.displayName="Input";var y_=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],g_=y_.reduce((r,n)=>{const s=Zc(`Primitive.${n}`),i=A.forwardRef((l,u)=>{const{asChild:d,...p}=l,m=d?s:n;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),h.jsx(m,{...p,ref:u})});return i.displayName=`Primitive.${n}`,{...r,[n]:i}},{}),v_="Label",cg=A.forwardRef((r,n)=>h.jsx(g_.label,{...r,ref:n,onMouseDown:s=>{var l;s.target.closest("button, input, select, textarea")||((l=r.onMouseDown)==null||l.call(r,s),!s.defaultPrevented&&s.detail>1&&s.preventDefault())}}));cg.displayName=v_;var dg=cg;const w_=Ac("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),fg=A.forwardRef(({className:r,...n},s)=>h.jsx(dg,{ref:s,className:jn(w_(),r),...n}));fg.displayName=dg.displayName;function x_(r,n=[]){let s=[];function i(u,d){const p=A.createContext(d);p.displayName=u+"Context";const m=s.length;s=[...s,d];const g=w=>{var j;const{scope:T,children:F,...C}=w,_=((j=T==null?void 0:T[r])==null?void 0:j[m])||p,b=A.useMemo(()=>C,Object.values(C));return h.jsx(_.Provider,{value:b,children:F})};g.displayName=u+"Provider";function v(w,T){var _;const F=((_=T==null?void 0:T[r])==null?void 0:_[m])||p,C=A.useContext(F);if(C)return C;if(d!==void 0)return d;throw new Error(`\`${w}\` must be used within \`${u}\``)}return[g,v]}const l=()=>{const u=s.map(d=>A.createContext(d));return function(p){const m=(p==null?void 0:p[r])||u;return A.useMemo(()=>({[`__scope${r}`]:{...p,[r]:m}}),[p,m])}};return l.scopeName=r,[i,b_(l,...n)]}function b_(...r){const n=r[0];if(r.length===1)return n;const s=()=>{const i=r.map(l=>({useScope:l(),scopeName:l.scopeName}));return function(u){const d=i.reduce((p,{useScope:m,scopeName:g})=>{const w=m(u)[`__scope${g}`];return{...p,...w}},{});return A.useMemo(()=>({[`__scope${n.scopeName}`]:d}),[d])}};return s.scopeName=n.scopeName,s}var k_=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],hg=k_.reduce((r,n)=>{const s=Zc(`Primitive.${n}`),i=A.forwardRef((l,u)=>{const{asChild:d,...p}=l,m=d?s:n;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),h.jsx(m,{...p,ref:u})});return i.displayName=`Primitive.${n}`,{...r,[n]:i}},{}),ed="Progress",td=100,[S_]=x_(ed),[__,E_]=S_(ed),pg=A.forwardRef((r,n)=>{const{__scopeProgress:s,value:i=null,max:l,getValueLabel:u=C_,...d}=r;(l||l===0)&&!mm(l)&&console.error(N_(`${l}`,"Progress"));const p=mm(l)?l:td;i!==null&&!ym(i,p)&&console.error(T_(`${i}`,"Progress"));const m=ym(i,p)?i:null,g=Ia(m)?u(m,p):void 0;return h.jsx(__,{scope:s,value:m,max:p,children:h.jsx(hg.div,{"aria-valuemax":p,"aria-valuemin":0,"aria-valuenow":Ia(m)?m:void 0,"aria-valuetext":g,role:"progressbar","data-state":gg(m,p),"data-value":m??void 0,"data-max":p,...d,ref:n})})});pg.displayName=ed;var mg="ProgressIndicator",yg=A.forwardRef((r,n)=>{const{__scopeProgress:s,...i}=r,l=E_(mg,s);return h.jsx(hg.div,{"data-state":gg(l.value,l.max),"data-value":l.value??void 0,"data-max":l.max,...i,ref:n})});yg.displayName=mg;function C_(r,n){return`${Math.round(r/n*100)}%`}function gg(r,n){return r==null?"indeterminate":r===n?"complete":"loading"}function Ia(r){return typeof r=="number"}function mm(r){return Ia(r)&&!isNaN(r)&&r>0}function ym(r,n){return Ia(r)&&!isNaN(r)&&r<=n&&r>=0}function N_(r,n){return`Invalid prop \`max\` of value \`${r}\` supplied to \`${n}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${td}\`.`}function T_(r,n){return`Invalid prop \`value\` of value \`${r}\` supplied to \`${n}\`. The \`value\` prop must be:
183  - a positive number
184  - less than the value passed to \`max\` (or ${td} if no \`max\` prop is set)
185  - \`null\` or \`undefined\` if the progress is indeterminate.
186
187Defaulting to \`null\`.`}var vg=pg,R_=yg;const Rc=A.forwardRef(({className:r,value:n,...s},i)=>h.jsx(vg,{ref:i,className:jn("relative h-2 w-full overflow-hidden rounded-full bg-primary/20",r),...s,children:h.jsx(R_,{className:"h-full w-full flex-1 bg-primary transition-all",style:{transform:`translateX(-${100-(n||0)}%)`}})}));Rc.displayName=vg.displayName;const j_=[{id:1,category:"Leadership/Management Burden",question:"In the last 3–6 months, how often has someone in leadership or management had to get involved in an IT issue?",hint:"(Coaching hint: Include times you were consulted, made a decision, or approved something IT-related — not just hands-on troubleshooting.)",type:"radio",options:[{text:"Never or almost never",points:10},{text:"Once or twice for major issues",points:8},{text:"Several times",points:5},{text:"Monthly or more",points:2},{text:"Weekly or more",points:0}]},{id:2,category:"Leadership/Management Burden",question:"When leadership/management gets pulled into IT issues, what are they typically pulled away from?",type:"radio",options:[{text:"They're not involved in IT issues",points:10},{text:"Routine administrative tasks",points:8},{text:"Important meetings or strategic work",points:5},{text:"Critical deadlines or revenue-generating activities",points:2},{text:"Core business operations - it's a constant interruption",points:0}]},{id:3,category:"Leadership/Management Burden",question:"Roughly how many hours per month does leadership/management spend dealing with IT (troubleshooting, vendor calls, decisions, research)?",hint:"(Coaching hint: The real number is probably double what you think - include all the quick questions and interruptions.)",type:"radio",options:[{text:"Less than 2 hours",points:10,hours:1},{text:"2–5 hours",points:8,hours:3.5},{text:"5–10 hours",points:5,hours:7.5},{text:"10–20 hours",points:2,hours:15},{text:"20+ hours",points:0,hours:25}]},{id:4,category:"Team Productivity",question:"In the last 3–6 months, how often has your team been unable to work because of a technology issue?",hint:"(Coaching hint: Think about the last time the printer failed, someone couldn't access a file, or the internet went down.)",type:"radio",options:[{text:"Never",points:10},{text:"Once or twice, isolated incidents",points:8},{text:"A few times — starting to be a pattern",points:5},{text:"Multiple times — recurring issues",points:2},{text:"Frequently - it's a regular problem",points:0}]},{id:5,category:"Team Productivity",question:"Roughly how much time per month does your team spend dealing with tech problems (troubleshooting, waiting for help, working around broken systems)?",hint:"(Coaching hint: For a 20-person team, just 15 minutes per person per week = 5 hours per week = 20 hours per month. Think about the last time someone couldn't print, access a file, or had to wait for IT help.)",type:"radio",options:[{text:"Less than 5 hours per month — minimal disruption",points:10,hours:2.5},{text:"5–15 hours per month — occasional issues",points:8,hours:10},{text:"15–30 hours per month — regular friction",points:5,hours:22.5},{text:"30–60 hours per month — significant time lost",points:2,hours:45},{text:"60+ hours per month — major productivity drain",points:0,hours:75}]},{id:6,category:"Team Productivity",question:"Overall, how would you describe your team's experience with technology?",hint:"(Coaching hint: Think about what people say in the break room after a tech frustration.)",type:"radio",options:[{text:"😊 Technology enables our work",points:10},{text:"😐 Generally fine, occasional frustrations",points:8},{text:"😤 Regular friction — people complain",points:5},{text:"🔥 Major pain point — constant issues",points:2},{text:"😡 Technology actively blocks productivity",points:0}]},{id:7,category:"Business Risk",question:"If a critical system or service went down right now (email, file access, your main business application), how long would it take before your business couldn't function?",hint:"(This is about business continuity - how dependent you are on technology staying up.)",type:"radio",options:[{text:"We have redundancy and backup systems — minimal impact",points:10},{text:"A few hours — we could work around it temporarily",points:8},{text:"Half a day — work would slow significantly",points:5},{text:"By end of day - we'd be dead in the water",points:2},{text:"Immediately - we can't operate without it",points:0}]},{id:8,category:"Business Risk",question:"Where does your organization fall on having these specific security services implemented? (Endpoint detection & response, device backup, email/file backup, anti-phishing filtering, dark web monitoring, security awareness training)",type:"radio",options:[{text:"We have all or most of these in place",points:10},{text:"We have several of these services",points:8}
187,{text:"We have one or two basic protections",points:5},{text:"Not sure what we have",points:2},{text:"We don't have these services",points:0}]},{id:9,category:"Business Risk",question:"In the last 12 months, has your organization experienced any of the following? (Select all that apply)",type:"checkbox",options:[{text:"Security scare, phishing attempt, or suspicious email",points:-2},{text:"Leadership spent significant time troubleshooting IT problems",points:-2},{text:"Team members lost hours of work to IT issues",points:-2},{text:"Delayed getting a new employee fully set up with technology",points:-2},{text:"Lost, corrupted, or inaccessible data",points:-2},{text:"System outage or downtime that stopped work",points:-2},{text:"Delayed an important business decision because of technology uncertainty",points:-2},{text:"Technology blocked or delayed a business initiative or opportunity",points:-2},{text:"Employee complained about ongoing IT frustrations or reliability",points:-2},{text:"Had to bring in outside help for an IT emergency",points:-2},{text:"None of these",points:10,isNone:!0}]},{id:10,category:"Strategic Alignment",question:"Does someone at your organization actively plan how technology will support your business goals over the next 1–3 years?",type:"radio",options:[{text:"Yes — we have a clear IT roadmap aligned with business goals",points:10},{text:"Somewhat — we discuss it occasionally during planning",points:8},{text:"Rarely - IT only comes up when we're launching something",points:5},{text:"No — we only deal with IT when we have to",points:2},{text:"We avoid IT planning altogether",points:0}]},{id:11,category:"Strategic Alignment",question:"Does your organization have a multi-quarter technology roadmap that maps out what IT investments, upgrades, or changes are coming?",hint:"(This is about knowing what's ahead - not reacting quarter to quarter.)",type:"radio",options:[{text:"Yes — we have a documented roadmap that gets reviewed regularly",points:10},{text:"We have a rough sense of what's coming in the next 6-12 months",points:8},{text:"We talk about it occasionally but nothing is documented",points:5},{text:"No — we figure it out as needs come up",points:2},{text:"We have no visibility into future IT needs",points:0}]},{id:12,category:"Strategic Alignment",question:"When you think about growing your business over the next 12–24 months, how confident are you that your current IT setup will scale with you?",hint:"(Coaching hint: It's working now and It will work at 2x the size are very different things.)",type:"radio",options:[{text:"Very confident — our IT is built to scale with us",points:10},{text:"Mostly confident - we might need some upgrades but we're in good shape",points:8},{text:"Uncertain - what we have now works, but I'm not sure it will scale",points:5},{text:"Not confident - I don't think our current setup can handle growth",points:2},{text:"Concerned — IT is already a bottleneck and growth will make it worse",points:0}]},{id:13,category:"Organizational Ownership",question:"Who is responsible for making sure your IT systems stay healthy (updates, monitoring, maintenance)?",type:"radio",options:[{text:"Dedicated IT support - it's their job",points:10},{text:"Someone on the team handles it when they have time",points:8},{text:"Responsibility is scattered across multiple people",points:5},{text:"Leadership handles it by default",points:2},{text:"No one — we deal with things as they break",points:0}]},{id:14,category:"Organizational Ownership",question:"If the one or two people who currently handle IT left tomorrow, how prepared would your organization be?",hint:"(This is about dependency - if IT knowledge lives in one or two people's heads, that's a major risk.)",type:"radio",options:[{text:"Fully prepared - we have documentation, systems, and a provider or team in place",points:10},{text:"Mostly prepared - we'd have some transition time but could recover",points:8},{text:"Partially prepared - we'd lose critical knowledge and have gaps",points:5},{text:"Not prepared - nearly everything depends on them",points:2},{text:"Completely unprepared - we'd be in crisis mode",points:0}]},{id:15,category:"Organizational Ownership",question:"In the last year, has IT uncertainty ever caused you to hesitate on a business decision, lose sleep, or worry about your exposure?",type:"radio",options:[{text:"No - IT gives us confidence to move forward",points:10},{text:"Rarely - it's crossed my mind but not a real concern",points:8}
187,{text:"Sometimes - I've hesitated or worried about IT risks",points:5},{text:"Often - IT uncertainty regularly affects my decisions",points:2},{text:"Constantly - I worry about what I don't know and what could go wrong",points:0}]},{id:16,category:"Data Collection",question:"How many team members does your organization have?",type:"number"}];function P_(){var se,ie,z;const r=$c(),[n,s]=A.useState(1),[i,l]=A.useState({}),[u,d]=A.useState(""),[p,m]=A.useState(!1),[g,v]=A.useState(!1),w=16,T=n/w*100,F=(Y,le,K,be=null)=>{l({...i,[Y]:{answer:le,points:K,hours:be}})},C=(Y,le,K)=>{let ye=[...(i[Y]||{answer:[]}).answer],ve=0;le.isNone&&K?(ye=[le.text],ve=10):K?(ye=ye.filter(ke=>ke!=="None of these"),ye.push(le.text),ve=ye.length*-2):(ye=ye.filter(ke=>ke!==le.text),ve=ye.length*-2),ve=Math.max(0,ve),l({...i,[Y]:{answer:ye,points:ve}})},_=async()=>{if(n===w&&!p){m(!0);return}if(p&&u){await B();return}s(n+1)},b=()=>{p?m(!1):n>1&&s(n-1)},j=()=>{var je,Ce,we,Ge,Ot,rn,Ht,Vt,Ds,Fs,Wr,Us,Qr,Pn,yn,Yr,zs;const Y=(((je=i[1])==null?void 0:je.points)||0)+(((Ce=i[2])==null?void 0:Ce.points)||0)+(((we=i[3])==null?void 0:we.points)||0),le=(((Ge=i[4])==null?void 0:Ge.points)||0)+(((Ot=i[5])==null?void 0:Ot.points)||0)+(((rn=i[6])==null?void 0:rn.points)||0),K=Math.max(0,(((Ht=i[7])==null?void 0:Ht.points)||0)+(((Vt=i[8])==null?void 0:Vt.points)||0)+(((Ds=i[9])==null?void 0:Ds.points)||0)),be=(((Fs=i[10])==null?void 0:Fs.points)||0)+(((Wr=i[11])==null?void 0:Wr.points)||0)+(((Us=i[12])==null?void 0:Us.points)||0),ye=(((Qr=i[13])==null?void 0:Qr.points)||0)+(((Pn=i[14])==null?void 0:Pn.points)||0)+(((yn=i[15])==null?void 0:yn.points)||0),ve=Y+le+K+be+ye;let ke;ve>=120?ke="OPTIMIZED":ve>=80?ke="MANAGED":ve>=40?ke="REACTIVE":ke="CRITICAL";const _e=[{name:"Leadership/Management Burden",score:Y,id:1},{name:"Team Productivity",score:le,id:2},{name:"Business Risk & Security",score:K,id:3},{name:"Strategic IT Alignment",score:be,id:4},{name:"Organizational Ownership",score:ye,id:5}].sort((ti,ni)=>ti.score-ni.score),H=((Yr=i[3])==null?void 0:Yr.hours)||0,Z=((zs=i[5])==null?void 0:zs.hours)||0,D=H*12,N=Z*12,U=D*150,pe=D*500,de=N*50,ae=U+de,fe=pe+de;return{category1_score:Y,category2_score:le,category3_score:K,category4_score:be,category5_score:ye,total_score:ve,score_status:ke,top_priority_1:_e[0].name,top_priority_2:_e[1].name,top_priority_3:_e[2].name,q3_hours_monthly:H,q5_hours_monthly:Z,conservative_annual:ae,conservative_monthly:ae/12,csuite_annual:fe,csuite_monthly:fe/12,team_cost_annual:de,team_cost_monthly:de/12}},B=async()=>{var Y,le;v(!0);try{const K=j(),be={email:u,team_size:((Y=i[16])==null?void 0:Y.answer)||0,...Object.keys(i).reduce((H,Z)=>{const D=parseInt(Z);return D===9?H[`q${D}_answers`]=i[D].answer:D===16?H[`q${D}_answer`]=i[D].answer:H[`q${D}_answer`]=i[D].answer,H[`q${D}_points`]=i[D].points,H},{}),...K},ye=await st.entities.Assessment.create(be),ve=`${window.location.origin}/Results?id=${ye.id}&token=${ye.id}`,ke=`New IT Reality Check assessment completed!
188
189Email: ${u}
190Team Size: ${((le=i[16])==null?void 0:le.answer)||"Not provided"}
191Total Score: ${K.total_score}/160 (${K.score_status})
192Top Priority: ${K.top_priority_1}
193
194Conservative Leadership Cost: $${(K.q3_hours_monthly*12*150).toFixed(0)}/year
195Team Productivity Cost: $${K.team_cost_annual.toFixed(0)}/year
196Total Annual Cost: $${(K.q3_hours_monthly*12*150+K.team_cost_annual).toFixed(0)}/year
197
198View full results: ${ve}`,xe=`Hi,
199
200Thank you for completing the Apple IT Reality Check assessment!
201
202Here are your results:
203
204  • IT Maturity Score: ${K.total_score}/160 (${K.score_status})
205  • Top Priority: ${K.top_priority_1}
206
207View your full results and download your custom report here:
208${ve}
209
210---
211
212Ready to take the next step?
213
214Schedule your free Technology Clarity Call:
215https://scheduler.zoom.us/d/mam3fae5/globalmac-it-consultation
216
217We'll walk through your results together and show you exactly what it would look like to have your Apple IT handled — so you can get back to running your business.
218
219---
220
221Best regards,
222
223Chris Henke
224CEO
225GlobalMac IT
226
227Phone: (216) 480-5001
228Email: [email protected]
229Website: www.globalmacit.com`;(await Promise.allSettled([st.integrations.Core.SendEmail({from_name:"GlobalMac IT",to:u,subject:"Your Apple IT Reality Check Results",body:xe}),st.integrations.Core.SendEmail({from_name:"IT Reality Check",to:"[email protected]",subject:`New Assessment Lead: ${u}`,body:ke}),st.integrations.Core.SendEmail({from_name:"IT Reality Check",to:"[email protected]",subject:`New Assessment Lead: ${u}`,body:ke}
229)])).forEach((H,Z)=>{const D=[u,"[email protected]","[email protected]"];H.status==="rejected"?console.error(`Email failed to ${D[Z]}:`,H.reason):console.log(`Email sent successfully to ${D[Z]}`)}),r(`/Results?id=${ye.id}&token=${ye.id}`)}catch(K){console.error("Error submitting assessment:",K),alert("There was an error submitting your assessment. Please try again.")}finally{v(!1)}},I=j_[n-1],M=p?u:i[n],Q=n===w;return p?h.jsx("div",{className:"min-h-screen bg-gray-50 py-8 px-4",children:h.jsxs("div",{className:"max-w-3xl mx-auto",children:[h.jsxs("div",{className:"mb-6",children:[h.jsx(Rc,{value:100,className:"h-2"}),h.jsx("p",{className:"text-sm text-gray-600 mt-2",children:"Almost done! Enter your email to see results."})]}),h.jsxs("div",{className:"bg-white rounded-lg shadow-lg p-8",children:[h.jsxs("div",{className:"text-center mb-8",children:[h.jsx("h2",{className:"text-3xl font-bold text-gray-900 mb-4",children:"🎉 You're Done! Get Your Results"}),h.jsx("p",{className:"text-lg text-gray-700 mb-6",children:"Enter your email to see your personalized IT assessment:"}),h.jsxs("ul",{className:"text-left max-w-md mx-auto space-y-2 mb-8",children:[h.jsxs("li",{className:"flex items-center text-gray-700",children:[h.jsx("span",{className:"mr-2",children:"✓"}),"Your full IT Maturity Score"]}),h.jsxs("li",{className:"flex items-center text-gray-700",children:[h.jsx("span",{className:"mr-2",children:"✓"}),"What IT is costing you in real dollars"]}),h.jsxs("li",{className:"flex items-center text-gray-700",children:[h.jsx("span",{className:"mr-2",children:"✓"}),"Your top 3 priorities ranked by risk"]})]})]}),h.jsxs("div",{className:"max-w-md mx-auto",children:[h.jsx(fg,{htmlFor:"email",className:"text-lg mb-2 block",children:"Email Address"}),h.jsx(Tc,{id:"email",type:"email",value:u,onChange:Y=>d(Y.target.value),placeholder:"[email protected]",className:"mb-2 text-lg p-6",required:!0}),h.jsx("p",{className:"text-sm text-gray-500 text-center mt-2",children:"We'll never spam you."})]}),h.jsxs("div",{className:"flex justify-between mt-8",children:[h.jsxs(hn,{variant:"outline",onClick:b,className:"px-6",children:[h.jsx(rp,{className:"w-4 h-4 mr-2"}),"Back"]}),h.jsxs(hn,{onClick:_,disabled:!u||g,className:"bg-blue-600 hover:bg-blue-700 px-6",children:[g?"Getting Your Results...":"See My Results",h.jsx(sp,{className:"w-4 h-4 ml-2"})]})]})]})]})}):h.jsx("div",{className:"min-h-screen bg-gray-50 py-8 px-4",children:h.jsxs("div",{className:"max-w-3xl mx-auto",children:[h.jsxs("div",{className:"mb-6",children:[h.jsx(Rc,{value:T,className:"h-2"}),h.jsxs("p",{className:"text-sm text-gray-600 mt-2",children:["Question ",n," of ",w]})]}),h.jsxs("div",{className:"bg-white rounded-lg shadow-lg p-8",children:[h.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-4",children:I.question}),I.hint&&h.jsx("p",{className:"text-sm text-gray-500 italic mb-6",children:I.hint}),h.jsxs("div",{className:"space-y-3",children:[I.type==="radio"&&((se=I.options)==null?void 0:se.map((Y,le)=>{var K;return h.jsx("button",{onClick:()=>F(I.id,Y.text,Y.points,Y.hours),className:`w-full text-left p-4 border-2 rounded-lg transition-all ${((K=i[I.id])==null?void 0:K.answer)===Y.text?"border-blue-600 bg-blue-50":"border-gray-200 hover:border-blue-300"}`,children:Y.text},le)})),I.type==="checkbox"&&((ie=I.options)==null?void 0:ie.map((Y,le)=>{var K,be,ye,ve;return h.jsxs("label",{className:`flex items-start p-4 border-2 rounded-lg cursor-pointer transition-all ${(be=(K=i[I.id])==null?void 0:K.answer)!=null&&be.includes(Y.text)?"border-blue-600 bg-blue-50":"border-gray-200 hover:border-blue-300"}`,children:[h.jsx("input",{type:"checkbox",checked:((ve=(ye=i[I.id])==null?void 0:ye.answer)==null?void 0:ve.includes(Y.text))||!1,onChange:ke=>C(I.id,Y,ke.target.checked),className:"mt-1 mr-3"}),h.jsx("span",{children:Y.text})]},le)})),I.type==="number"&&h.jsx(Tc,{type:"number",min:"1",value:((z=i[I.id])==null?void 0:z.answer)||"",onChange:Y=>F(I.id,parseInt(Y.target.value),0),placeholder:"Enter number of employees",className:"text-lg p-6"})]}),h.jsxs("div",{className:"flex justify-between mt-8",children:[h.jsxs(hn,{variant:"outline",onClick:b,disabled:n===1,className:"px-6",children:[h.jsx(rp,{className:"w-4 h-4 mr-2"}),"Back"]}),h.jsxs(hn,{onClick:_,disabled:!M||g,className:"bg-blue-600 hover:bg-blue-700 px-6",children:[g?"Submitting...":Q?"See My Results":"Next",h.jsx(sp,{className:"w-4 h-4 ml-2"})]})]})]})]})})}
229function A_(){const r=new URLSearchParams(window.location.search).get("embed")==="true",[n,s]=A.useState(!1);if(A.useEffect(()=>{st.auth.me().then(l=>{(l==null?void 0:l.role)==="admin"&&s(!0)}).catch(()=>{})},[]),A.useEffect(()=>{r&&(document.body.style.margin="0",document.body.style.padding="0",document.body.style.overflow="hidden",document.documentElement.style.margin="0",document.documentElement.style.padding="0")},[r]),r)return h.jsx("div",{className:"w-full h-full",children:h.jsxs("div",{className:"bg-white rounded-2xl shadow-2xl p-8 w-full text-center",children:[h.jsx("h1",{className:"text-5xl font-bold text-gray-900 mb-4",children:"Apple IT Reality Check"}),h.jsx("p",{className:"text-xl text-gray-600 mb-6",children:"Discover what your Apple IT approach is really costing you—in dollars, time, and missed opportunities"}),h.jsxs("ul",{className:"text-left space-y-4 mb-6",children:[h.jsxs("li",{className:"flex items-start text-lg",children:[h.jsx(ws,{className:"w-6 h-6 text-green-600 mr-3 flex-shrink-0 mt-0.5"}),h.jsx("span",{className:"text-gray-700",children:"How many hours per month Apple IT is stealing from your leadership team"})]}),h.jsxs("li",{className:"flex items-start text-lg",children:[h.jsx(ws,{className:"w-6 h-6 text-green-600 mr-3 flex-shrink-0 mt-0.5"}),h.jsx("span",{className:"text-gray-700",children:"Where your biggest risks are hiding"})]}),h.jsxs("li",{className:"flex items-start text-lg",children:[h.jsx(ws,{className:"w-6 h-6 text-green-600 mr-3 flex-shrink-0 mt-0.5"}),h.jsx("span",{className:"text-gray-700",children:"What it's really costing you in lost productivity, growth, and peace of mind"})]})]}),h.jsx("a",{href:window.location.origin,target:"_blank",rel:"noopener noreferrer",children:h.jsx(hn,{className:"bg-blue-600 hover:bg-blue-700 text-white px-8 py-6 w-full text-xl font-bold",children:"Start Your Apple IT Reality Check"})})]})});const i=h.jsxs("div",{className:"bg-gradient-to-b from-white to-gray-50",children:[h.jsx("div",{className:"max-w-5xl mx-auto px-4 py-8",children:h.jsxs("div",{className:"text-center",children:[h.jsx("img",{src:"https://qtrypzzcjebvfcihiynt.supabase.co/storage/v1/object/public/base44-prod/public/699742f89e67ae2017b823ca/494aa33e0_GMiT1.png",alt:"GlobalMac IT",className:"h-14 mx-auto mb-4"}),h.jsx("h1",{className:"text-3xl sm:text-4xl font-bold text-gray-900 mb-3",children:"Apple IT Reality Check"}),h.jsx("h2",{className:"text-lg sm:text-xl text-gray-600 mb-6",children:"Discover what your Apple IT approach is really costing you—in dollars, time, and missed opportunities"}),h.jsxs("div",{className:"bg-white rounded-2xl shadow-md p-5",children:[h.jsx("p",{className:"text-base text-gray-700 mb-4",children:"Take the 3-minute assessment and find out:"}),h.jsxs("ul",{className:"text-left max-w-xl mx-auto space-y-3 mb-5",children:[h.jsxs("li",{className:"flex items-start text-base",children:[h.jsx(ws,{className:"w-5 h-5 text-green-600 mr-3 flex-shrink-0 mt-0.5"}),h.jsx("span",{className:"text-gray-700",children:"How many hours per month Apple IT is stealing from your leadership team"})]}),h.jsxs("li",{className:"flex items-start text-base",children:[h.jsx(ws,{className:"w-5 h-5 text-green-600 mr-3 flex-shrink-0 mt-0.5"}),h.jsx("span",{className:"text-gray-700",children:"Where your biggest risks are hiding"})]}),h.jsxs("li",{className:"flex items-start text-base",children:[h.jsx(ws,{className:"w-5 h-5 text-green-600 mr-3 flex-shrink-0 mt-0.5"}),h.jsx("span",{className:"text-gray-700",children:"What it's really costing you in lost productivity, growth, and peace of mind"})]})]}),h.jsx(Pp,{to:o_("Assessment"),children:h.jsx(hn,{className:"bg-blue-600 hover:bg-blue-700 text-white px-6 py-5",children:"Start Your Apple IT Reality Check"})})]})]})}),!r&&h.jsxs("div",{className:"max-w-5xl mx-auto px-4 py-8",children:[h.jsx("h3",{className:"text-2xl font-bold text-center text-gray-900 mb-6",children:"Here's What You'll Learn in 3 Minutes:"}),h.jsxs("div",{className:"grid md:grid-cols-3 gap-4",children:[h.jsxs("div",{className:"text-center",children:[h.jsx("div",{className:"inline-flex items-center justify-center w-12 h-12 bg-blue-100 rounded-full mb-2",children:h.jsx(Ta,{className:"w-6 h-6 text-blue-600"})}),h.jsx("h4",{className:"text-base font-semibold text-gray-900 mb-1",children:"The Real Cost"}),h.jsx("p",{className:"text-sm text-gray-600",children:"See exactly how much Apple IT is costing you in lost time, productivity, and opportunity."})]}),h.jsxs("div",{className:"text-center",children:[h.jsx("div",{className:"inline-flex items-center justify-center w-12 h-12 bg-green-100 rounded-full mb-2",children:h.jsx(sw,{className:"w-6 h-6 text-green-600"})}),h.jsx("h4",{className:"text-base font-semibold text-gray-900 mb-1",children:"Your Biggest Gaps"}),h.jsx("p",{className:"text-sm text-gray-600",children:"Discover your top 3 Apple IT priorities ranked by risk and business impact."})]}),h.jsxs("div",{className:"text-center",children:[h.jsx("div",{className:"inline-flex items-center justify-center w-12 h-12 bg-purple-100 rounded-full mb-2",children:h.jsx(nw,{className:"w-6 h-6 text-purple-600"})}),h.jsx("h4",{className:"text-base font-semibold text-gray-900 mb-1",children:"Your Path Forward"}),h.jsx("p",{className:"text-sm text-gray-600",children:"Get a custom roadmap showing exactly how to fix your Ap
229ple IT challenges."})]})]})]}),!r&&h.jsx("div",{className:"bg-blue-50 py-8",children:h.jsxs("div",{className:"max-w-5xl mx-auto px-4",children:[h.jsx("h3",{className:"text-2xl font-bold text-center text-gray-900 mb-6",children:"How It Works:"}),h.jsxs("div",{className:"grid md:grid-cols-3 gap-4",children:[h.jsxs("div",{className:"text-center",children:[h.jsx("div",{className:"inline-flex items-center justify-center w-10 h-10 bg-blue-600 text-white rounded-full text-lg font-bold mb-2",children:"1"}),h.jsx("p",{className:"text-sm text-gray-700",children:"Answer 16 quick questions about your Apple IT environment (3 minutes)"})]}),h.jsxs("div",{className:"text-center",children:[h.jsx("div",{className:"inline-flex items-center justify-center w-10 h-10 bg-blue-600 text-white rounded-full text-lg font-bold mb-2",children:"2"}),h.jsx("p",{className:"text-sm text-gray-700",children:"Get your Apple IT Maturity Score and see where you stand"})]}),h.jsxs("div",{className:"text-center",children:[h.jsx("div",{className:"inline-flex items-center justify-center w-10 h-10 bg-blue-600 text-white rounded-full text-lg font-bold mb-2",children:"3"}),h.jsx("p",{className:"text-sm text-gray-700",children:"Download your custom report + schedule a free clarity call"})]})]})]})})]});return h.jsxs(h.Fragment,{children:[n&&!r&&h.jsx("div",{className:"bg-gray-900 text-white text-center py-2 text-sm",children:h.jsx(Pp,{to:"/AdminDashboard",className:"text-blue-300 hover:text-blue-100 font-semibold underline",children:"→ View All Assessment Results (Admin)"})}),i]})}function O_({score:r}){const n=r/160*100;let s="";return r>=120?s="text-green-600":r>=80?s="text-yellow-600":r>=40?s="text-orange-600":s="text-red-600",h.jsxs("div",{className:"relative w-64 h-32 mx-auto",children:[h.jsxs("svg",{viewBox:"0 0 200 100",className:"w-full h-full",children:[h.jsx("path",{d:"M 20 80 A 80 80 0 0 1 180 80",fill:"none",stroke:"#e5e7eb",strokeWidth:"12",strokeLinecap:"round"}),h.jsx("path",{d:"M 20 80 A 80 80 0 0 1 60 20",fill:"none",stroke:"#ef4444",strokeWidth:"12",strokeLinecap:"round"}),h.jsx("path",{d:"M 60 20 A 80 80 0 0 1 100 10",fill:"none",stroke:"#f97316",strokeWidth:"12",strokeLinecap:"round"}),h.jsx("path",{d:"M 100 10 A 80 80 0 0 1 140 20",fill:"none",stroke:"#eab308",strokeWidth:"12",strokeLinecap:"round"}),h.jsx("path",{d:"M 140 20 A 80 80 0 0 1 180 80",fill:"none",stroke:"#22c55e",strokeWidth:"12",strokeLinecap:"round"}),h.jsx("line",{x1:"100",y1:"80",x2:100+70*Math.cos((180-n*1.8)*Math.PI/180),y2:80-70*Math.sin((180-n*1.8)*Math.PI/180),stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round",className:s}),h.jsx("circle",{cx:"100",cy:"80",r:"5",fill:"currentColor",className:s})]}),h.jsx("div",{className:"absolute bottom-0 left-0 right-0 text-center",children:h.jsxs("p",{className:"text-sm text-gray-500",children:[h.jsx("span",{className:"text-xs",children:"0"}),h.jsx("span",{className:"mx-20",children:"80"}),h.jsx("span",{className:"text-xs",children:"160"})]})})]})}function I_({assessment:r}){const n=w=>new Intl.NumberFormat("en-US",{style:"currency",currency:"USD",minimumFractionDigits:0,maximumFractionDigits:0}).format(w),s=r.q3_hours_monthly||0,i=s*12,l=r.q5_hours_monthly||0,u=l*12,d=i*150,p=i*500,m=u*50,g=d+m,v=g/12;return h.jsxs("div",{className:"mb-12",children:[h.jsx("h2",{className:"text-3xl font-bold text-gray-900 mb-8 text-center",children:"Here's What IT Is Stealing From Your Business:"}),h.jsx("div",{className:"bg-white rounded-lg shadow-lg p-8 mb-6",children:h.jsxs("div",{className:"flex items-start mb-6",children:[h.jsx(B0,{className:"w-8 h-8 text-blue-600 mr-4 flex-shrink-0 mt-1"}),h.jsxs("div",{className:"flex-1",children:[h.jsxs("h3",{className:"text-2xl font-bold text-gray-900 mb-1",children:["💼 Leadership & Management Time: ",s," hours/month"]}),h.jsxs("p",{className:"text-gray-600 mb-6",children:["(",i," hours per year)"]}),h.jsxs("div",{className:"bg-gray-50 rounded-lg p-4 mb-6",children:[h.jsx("p",{className:"font-semibold text-gray-800 mb-2",children:"That's time away from:"}),h.jsxs("ul",{className:"space-y-1 text-gray-700",children:[h.jsx("li",{children:"• Strategic planning & business development"}),h.jsx("li",{children:"• Client relationships & revenue generation"}),h.jsx("li",{children:"• High-impact work that drives growth"})]})]}),h.jsxs("div",{className:"border-t-2 border-gray-200 pt-4 mb-6",children:[h.jsx("p",{className:"font-semibold text-gray-700 mb-2",children:"Conservative Estimate:"}),h.jsxs("p",{className:"text-2xl font-bold text-gray-900",children:[n(d),"/year"]}),h.jsxs("p",{className:"text-gray-600 mb-2",children:["(",n(d/12),"/month)"]}),h.jsxs("p",{className:"text-sm text-gray-500",children:[i," hrs/yr × $150/hr = ",n(d)]})]}),h.jsxs("div",{className:"border-t-2 border-gray-200 pt-4 mb-4",children:[h.jsx("p",{className:"text-lg font-bold text-gray-800 mb
229-1",children:"💡 What If Your Time Is Worth More Than $150/Hour?"}),h.jsxs("p",{className:"text-gray-600 mb-4 text-sm",children:["Think about the real value of your strategic time — not what you're paid, but what you ",h.jsx("em",{children:"should"})," be protecting it for."]}),h.jsx("p",{className:"font-semibold text-gray-700 mb-2",children:"C-Suite Opportunity Cost:"}),h.jsxs("p",{className:"text-2xl font-bold text-blue-600",children:[n(p),"/year"]}),h.jsxs("p",{className:"text-gray-600 mb-2",children:["(",n(p/12),"/month)"]}),h.jsxs("p",{className:"text-sm text-gray-500",children:[i," hrs/yr × $500/hr = ",n(p)]})]}),h.jsxs("div",{className:"bg-blue-50 border-l-4 border-blue-600 p-4 mt-4",children:[h.jsx("p",{className:"font-semibold text-blue-900 mb-3",children:"💡 The $500/Hour Filter"}),h.jsx("p",{className:"text-blue-800 mb-3",children:"Every time you get pulled into an IT issue, stop and ask yourself one question: Is this $500 an hour work?"}),h.jsx("p",{className:"text-blue-800 mb-3",children:"Your time as a leader belongs in the room where strategy gets made. Where growth happens. Where only you can do what you do."}),h.jsx("p",{className:"text-blue-800 mb-3",children:"When you're the one responding to the payroll company about some state notice, chasing down a tech complaint, or rebooting someone's computer, you just traded your highest value work for something that should never have been on your plate."}),h.jsx("p",{className:"text-blue-800 mb-3",children:"The best entrepreneurs we know run a simple filter on everything they touch: Will this bring the best ROI, strategic advantage, or growth to my business? If the answer is no, it belongs to someone else."}),h.jsx("p",{className:"text-blue-800 mb-3",children:"The number above is what that filter is telling you right now. The conservative estimate is likely closer to your real dollar cost, but the true impact never shows up on a P&L. It lives in the strategy sessions that didn't happen, the business development conversations that got pushed, and the growth initiatives that stayed on the whiteboard because your best thinking was spent on IT instead."}),h.jsx("p",{className:"text-blue-800 mb-3",children:`Think about everything that actually falls under "IT" for a moment. Troubleshooting issues, researching cybersecurity solutions, implementing security standards, doing maintenance and updates, googling error messages, sitting on hold with a vendor, figuring out why someone's email stopped working. None of that is $500 an hour work. And every hour you spend in that world is an hour you didn't spend in yours.`})]})]})]})}),h.jsx("div",{className:"bg-white rounded-lg shadow-lg p-8 mb-6",children:h.jsxs("div",{className:"flex items-start",children:[h.jsx(Mm,{className:"w-8 h-8 text-green-600 mr-4 flex-shrink-0 mt-1"}),h.jsxs("div",{className:"flex-1",children:[h.jsxs("h3",{className:"text-2xl font-bold text-gray-900 mb-1",children:["👥 Team Productivity: ",l," hours/month across your team"]}),h.jsxs("p",{className:"text-gray-600 mb-6",children:["(",u," hours per year)"]}),h.jsxs("div",{className:"bg-gray-50 rounded-lg p-4 mb-6",children:[h.jsx("p",{className:"font-semibold text-gray-800 mb-2",children:"That's time lost to:"}),h.jsxs("ul",{className:"space-y-1 text-gray-700",children:[h.jsx("li",{children:"• Troubleshooting tech issues"}),h.jsx("li",{children:"• Waiting for help"}),h.jsx("li",{children:"• Working around broken systems"})]})]}),h.jsxs("div",{className:"border-t-2 border-gray-200 pt-4",children:[h.jsx("p",{className:"font-semibold text-gray-700 mb-2",children:"Estimated value:"}),h.jsxs("p",{className:"text-2xl font-bold text-gray-900",children:[n(m),"/year"]}),h.jsxs("p",{className:"text-gray-600 mb-2",children:["(",n(m/12),"/month)"]}),h.jsxs("p",{className:"text-sm text-gray-500",children:[u," hrs/yr × $50/hr = ",n(m)]})]})]})]})}),h.jsx("div",{className:"bg-gradient-to-r from-red-50 to-orange-50 border-4 border-red-300 rounded-lg shadow-xl p-8",children:h.jsxs("div",{className:"flex items-start mb-6",children:[h.jsx(Ta,{className:"w-10 h-10 text-red-600 mr-4 flex-shrink-0"}),h.jsxs("div",{className:"flex-1",children:[h.jsx("h3",{className:"text-2xl font-bold text-gray-900 mb-6",children:"💰 Total Estimated Annual Cost"}),h.jsxs("div",{className:"mb-4",children:[h.jsx("p",{className:"font-semibold text-gray-700 mb-1",children:"Conservative Leadership Time:"}),h.jsxs("p",{className:"text-2xl font-bold text-gray-900",children:[n(d),"/year"]}),h.jsxs("p",{className:"text-sm text-gray-500",children:[i," hrs/yr × $150/hr = ",n(d)]})]}),h.jsxs("div",{className:"mb-4",children:[h.jsx("p",{className:"font-semibold text-gray-700 mb-1",children:"+ Team Productivity L
229oss:"}),h.jsxs("p",{className:"text-2xl font-bold text-gray-900",children:[n(m),"/year"]}),h.jsxs("p",{className:"text-sm text-gray-500",children:[u," hrs/yr × $50/hr = ",n(m)]})]}),h.jsxs("div",{className:"border-t-4 border-red-400 pt-4 mb-6",children:[h.jsx("p",{className:"font-semibold text-gray-700 mb-1",children:"= Total Annual Cost:"}),h.jsxs("p",{className:"text-4xl font-bold text-red-600",children:[n(g)," per year"]}),h.jsxs("p",{className:"text-xl text-gray-700",children:["(",n(v),"/month)"]}),h.jsxs("p",{className:"text-sm text-gray-500 mt-1",children:[n(d)," + ",n(m)," = ",n(g)]})]}),h.jsx("p",{className:"text-gray-700 mb-6 italic",children:"in lost productivity alone"}),h.jsxs("div",{className:"bg-white rounded-lg p-6 mb-6",children:[h.jsx("p",{className:"text-2xl font-bold text-gray-900 mb-2",children:"And That's Just What We Could Calculate."}),h.jsx("p",{className:"text-lg font-semibold text-gray-700 mb-4",children:"Here's the cost that never shows up on your P&L — but you've felt every single dollar of it."}),h.jsx("p",{className:"text-gray-700 mb-4",children:"The number above only counts the hours we could measure. It doesn't count what those hours actually stole from you."}),h.jsx("p",{className:"text-gray-700 mb-4",children:"How do you put a dollar sign on the strategic conversation that never happened because you were dealing with a tech issue that morning? The proposal that was good enough instead of great because your best thinking was already spent? The employee who quietly started disengaging because the tools kept failing them?"}),h.jsx("p",{className:"text-gray-700 mb-5 font-semibold",children:"You can't. But that doesn't mean it's free."}),h.jsxs("ul",{className:"space-y-3 text-gray-700 mb-5",children:[h.jsx("li",{children:"• The friction and mental burden of being the default IT person when that's not your job"}),h.jsx("li",{children:"• Energy spent on tasks that didn't move the business forward or bring you joy"}),h.jsx("li",{children:"• Decisions delayed or avoided because of technology uncertainty"}),h.jsx("li",{children:"• The quiet anxiety of not knowing what you don't know about your security exposure"}),h.jsx("li",{children:"• Opportunities that stalled on the whiteboard because IT got in the way first"})]}),h.jsx("p",{className:"text-gray-800 italic font-semibold",children:"None of these have a line item on your P&L. They won't show up in your financial reports or your expense tracker. But they have a very real cost — and unlike the number above, this one compounds over time."})]}),h.jsxs("div",{className:"bg-gradient-to-r from-blue-600 to-blue-700 rounded-lg p-6 text-white",children:[h.jsx("p",{className:"font-bold text-xl mb-3",children:"The Reality:"}),h.jsx("p",{className:"mb-3",children:"Your time should be spent on $500-an-hour work—strategic growth, business development, and initiatives with exponential ROI."}),h.jsx("p",{className:"mb-3",children:"Not cobbling together IT systems, Googling fixes, or troubleshooting printers."}),h.jsx("p",{className:"font-bold text-lg",children:"That's what ProCare is for."})]})]})]})})]})}const Zn=r=>new Intl.NumberFormat("en-US",{style:"currency",currency:"USD",minimumFractionDigits:0,maximumFractionDigits:0}).format(r);function L_(r,n){const s=n.team_size||n.q16_answer||10,i=n.q3_hours_monthly||0,l=n.q5_hours_monthly||0;switch(r){case"Business Risk & Security":{const u=s*50,d=Math.max(12e4,u*100),p=Math.min(3e6,u*169),m=s<25?247e3:5e5;return{headline:`A breach at your company size could cost ${Zn(d)}–${Zn(p)}`,points:[`With ~${s} employees, you likely have hundreds to thousands of records at risk — client data, financial info, employee PII.`,`The average ransomware ransom for a business your size is around ${Zn(m)} — plus an average of 21 days of downtime.`,"Beyond the money: a single breach can end client relationships built over years. 60% of small businesses that suffer a major cyberattack close within 6 months.","And if you handle any client data under HIPAA, PCI, or state privacy laws, you're looking at regulatory fines on top of recovery costs."]}}case"Leadership/Management Burden":{const u=i*12,d=u*500,p=u*150;return{headline:`${u} hours per year of your leadership team pulled away from the business`,points:[`At a conservative $150/hr opportunity cost, that's ${Zn(p)}/year in strategic work that doesn't get done.`,`At C-suite rates ($500/hr), it's ${Zn(d)}/year — projects delayed, deals not pursued, team not developed.`,"Every hour a leader spends on IT is an hour not spent on clients, revenue, or growth. That's not a cost you see on an invoice — but it's real.","And when leadership is the de facto IT department, it signals to the team that IT isn't handled — which quietly erodes confidence."]}}case"Team Productivity":{const u=l*12,d=u*50;return{headline:`Your team loses ${u} hours per year to IT friction`,points:[`At $50/hr average loaded cost, that's ${Zn(d)}/year in payroll you're paying for work that isn't happening.`,"Beyond the math: repeated tech frustration is a top driver of employee disengagement and turnover. Replacing one employee costs 50–200% of their salary.","When your team can't rely on their tools, they find workarounds — and workarounds create security gaps and inconsistency.","Clients notice too. When your team is slow or unreliable, it reflects on your brand — not your IT provider."]}}case"Strategic IT Alignment":return{headline:"Flying blind on IT growth planning is a hidden business bottleneck",points:["Without a roadmap, technology decisions get made in reaction mode — which typically costs 2–3x more than planned upgrades.","When you go to scale — hire more staff, take on bigger clients, expand — and your IT can't support it, you either stall or scramble. Both are expensive.","Technology debt compounds. The longer outdated systems stay in place, the more expensive and disruptive the eventual upgrade be
229comes.","Leaders who don't have IT confidence hesitate on business decisions. That hesitation has a cost — even if it never shows up on a balance sheet."]};case"Organizational Ownership":return{headline:"IT knowledge trapped in one or two people is one departure away from a crisis",points:[`Emergency IT support runs ${Zn(350)}/hr or more. A single unplanned incident can easily cost ${Zn(7e3)}+ just to stabilize.`,'When the person who "knows all the IT stuff" leaves, you lose passwords, vendor relationships, system knowledge — often with zero documentation.',"Lack of ownership means maintenance slips, patches get skipped, and vulnerabilities quietly accumulate — until something breaks or gets exploited.","Business decisions get delayed when leadership isn't confident in their IT foundation. That uncertainty has a compounding cost over time."]};default:return null}}function M_({category:r,assessment:n}){const s=L_(r,n);return s?h.jsxs("div",{className:"mt-5 bg-gray-900 text-white rounded-lg p-5",children:[h.jsxs("div",{className:"flex items-start gap-3 mb-4",children:[h.jsx(iw,{className:"w-5 h-5 text-red-400 flex-shrink-0 mt-0.5"}),h.jsxs("div",{children:[h.jsx("p",{className:"text-xs font-bold uppercase tracking-widest text-red-400 mb-1",children:"Business Impact"}),h.jsx("p",{className:"text-base font-bold text-white",children:s.headline})]})]}),h.jsx("ul",{className:"space-y-2",children:s.points.map((i,l)=>h.jsxs("li",{className:"flex items-start gap-2 text-sm text-gray-300",children:[h.jsx("span",{className:"text-red-400 mt-0.5 flex-shrink-0",children:"▸"}),h.jsx("span",{children:i})]},l))})]}):null}const D_={"Leadership/Management Burden":{whatItMeans:(r,n)=>n<=10?`Leadership is being pulled into IT issues constantly, spending ${r} hours per month dealing with vendor calls, troubleshooting, and tech decisions instead of running the business.`:n<=20?`Leadership is getting pulled into IT issues regularly, spending ${r} hours per month on tasks that should be handled by dedicated IT support.`:"Leadership has some involvement in IT, but it's manageable and not significantly disrupting strategic work.",whyItMatters:(r,n)=>`Your leadership team's time is your most expensive resource. Every hour spent on IT is an hour not spent growing the business, serving clients, or developing your team. At $500/hour opportunity cost, ${r} hours per month equals ${n} in lost strategic work every single month.`,whatYouNeed:["Dedicated IT support that handles issues without needing leadership involvement","Proactive monitoring to catch problems before they interrupt work","Clear escalation process so small issues don't reach leadership"],solution:["Help Desk Support — we handle everything so it never reaches your desk.","Maintenance & Monitoring — we catch and fix issues before anyone even notices.","Vendor Coordination & Consultation — we're your single point of contact for every vendor, so you're not the one on hold."]},"Team Productivity":{whatItMeans:(r,n)=>n<=10?`Your team is losing ${r} hours per month to tech problems—troubleshooting, waiting for help, or working around broken systems. That's significant productivity drain.`:n<=20?`Your team experiences regular tech friction, with ${r} hours per month lost to IT issues that disrupt their workflow.`:"Your team has occasional tech hiccups, but overall technology enables their work more than it blocks it.",whyItMatters:(r,n)=>`When your team can't work because of technology issues, you're paying for time that produces no results. Multiply that across ${n} employees, and it adds up fast.`,whatYouNeed:["Fast, reliable help desk support so issues get resolved quickly","Proactive maintenance to prevent recurring problems","Monitoring to catch issues before they impact the team"],solution:["Help Desk Support — fast remote and phone resolution, at no extra cost.","Maintenance & Monitoring — proactive alerts resolved before the team is impacted.","Server/Workstation Patch Management — updates happen in the background."]},"Business Risk & Security":{whatItMeans:(r,n)=>n<=10?"Your business would stop functioning quickly if a critical system went down. You've had multiple security or operational incidents in the past year, and you're not confident in your current protections.":n<=20?"You have some basic protections, but gaps remain. If a system failed or you were hit with a cyberattack, recovery would be difficult and disruptive.":"You have solid protections in place, though there may be room to strengthen your security posture or disaster recovery capabilities.",whyItMatters:()=>"One successful email hack, ransomware attack, or system failure could: expose client data (liability risk), halt operations for days, cost tens of thousands in recovery, and damage your reputation.",whatYouNeed:["Endpoint detection & response 
229(EDR) to catch threats before they spread",`Email/file backup with tested recovery (so you're not "dead in the water")`,"Anti-phishing protection & employee security training","Dark web monitoring to catch compromised credentials early"],solution:["Endpoint Detection & Response.","Ransomware Protection + Anti-virus & Malware Protection.","Anti-Phishing Email Filter.","Dark Web Monitoring.","End-user Security Awareness Training.","Cloud Backup and Recovery."]},"Strategic IT Alignment":{whatItMeans:(r,n)=>n<=10?"Your IT decisions happen in crisis mode or when something breaks. There's no roadmap for the next 6-12 months, and you're not confident your current setup can scale as you grow.":n<=20?"IT planning is reactive. Decisions get made when launching initiatives, but there's no documented roadmap and no confidence your systems will scale.":"You have some strategic IT planning in place, though it may be informal or inconsistent.",whyItMatters:()=>"Without a plan, you're always one step behind. You can't confidently take on bigger clients, hire more staff, or expand because you don't know if your IT will support it.",whatYouNeed:["Multi-quarter IT roadmap aligned with your business goals","Regular strategic reviews (quarterly) to plan ahead, not react","Guidance on when to upgrade, what to invest in, and what can wait"],solution:["The Quarterly Navigator — vCIO-led quarterly reviews, strategic planning, and guidance for IT for your business.","Technology Vision Builder™ — annual alignment of IT to your long-term objectives.","Technology Clarity Report™ — a snapshot of where you are vs. where you should be.","IT Roadmap for Your Business — a clear, prioritized plan for what to fix, upgrade, and invest in over the next 12–24 months."]},"Organizational Ownership":{whatItMeans:(r,n)=>n<=10?"IT responsibility is scattered or nonexistent. If the person handling IT left tomorrow, you'd be in crisis mode.":n<=20?"Someone handles IT when they have time, but responsibility isn't clear and there's no formal process. IT uncertainty is affecting business decisions.":"You have some IT ownership structure, though it may rely on one or two key people.",whyItMatters:()=>`When IT lives in one person's head or gets handled "when there's time," nothing is truly managed. Systems drift, vulnerabilities grow, and you're one departure away from chaos.`,whatYouNeed:["Clear IT ownership (dedicated provider or internal team)","Documentation so IT knowledge isn't trapped in one person","Consistent maintenance and monitoring, not just firefighting"],solution:["Documentation & Asset Management — IT knowledge lives in a system, not a person's head.","Hardware Lifecycle/Warranty Management — structured, managed, no surprises when you need to replace computers or other hardware.","Device Profile Management & Policies — a standardized, managed environment across all devices.","The Quarterly Navigator — ongoing ownership and accountability."]}};function Ju({priority:r,category:n,score:s,assessment:i}){const u={1:{bg:"bg-red-50",border:"border-red-300",text:"text-red-800",emoji:"🔴",label:"CRITICAL PRIORITY"},2:{bg:"bg-orange-50",border:"border-orange-300",text:"text-orange-800",emoji:"🟠",label:"HIGH PRIORITY"},3:{bg:"bg-yellow-50",border:"border-yellow-300",text:"text-yellow-800",emoji:"🟡",label:"MEDIUM PRIORITY"}}[r],d=D_[n];if(!d)return null;const p=m=>new Intl.NumberFormat("en-US",{style:"currency",currency:"USD",minimumFractionDigits:0,maximumFractionDigits:0}).format(m);return h.jsxs("div",{className:`${u.bg} border-4 ${u.border} rounded-lg shadow-lg p-6`,children:[h.jsxs("div",{className:"flex items-start mb-4",children:[h.jsx("span",{className:"text-3xl mr-3",children:u.emoji}),h.jsxs("div",{children:[h.jsxs("div",{className:`text-xl font-bold ${u.text} mb-1`,children:["#",r," ",u.label]}),h.jsx("h3",{className:"text-2xl font-bold text-gray-900",children:n}),h.jsxs("p",{className:"text-gray-600 mt-1",children:["Your Score: ",s,"/30"]})]})]}),h.jsxs("div",{className:"space-y-4",children:[h.jsxs("div",{children:[h.jsxs("h4",{className:"font-bold text-gray-900 mb-2 flex items-center",children:[h.jsx(Y0,{className:"w-5 h-5 mr-2"}),"What This Means:"]}),h.jsx("p",{className:"text-gray-700",children:typeof d.whatItMeans=="function"?d.whatItMeans(n.includes("Leadership")?i.q3_hours_monthly:n.includes("Team")?i.q5_hours_monthly:null,
229s):d.whatItMeans})]}),h.jsxs("div",{children:[h.jsx("h4",{className:"font-bold text-gray-900 mb-2",children:"Why It Matters:"}),h.jsx("p",{className:"text-gray-700",children:typeof d.whyItMatters=="function"?d.whyItMatters(n.includes("Leadership")?i.q3_hours_monthly:n.includes("Team")?i.q5_hours_monthly:null,n.includes("Leadership")?p(i.csuite_monthly):n.includes("Team")?i.team_size:null):d.whyItMatters})]}),h.jsxs("div",{children:[h.jsx("h4",{className:"font-bold text-gray-900 mb-2",children:"What You Need:"}),h.jsx("ul",{className:"space-y-1",children:d.whatYouNeed.map((m,g)=>h.jsxs("li",{className:"flex items-start text-gray-700",children:[h.jsx("span",{className:"mr-2",children:"✓"}),h.jsx("span",{children:m})]},g))})]}),h.jsxs("div",{className:"bg-white rounded-lg p-4 border-2 border-gray-300",children:[h.jsx("h4",{className:"font-bold text-gray-900 mb-2",children:"→ How ProCare Solves This:"}),h.jsx("p",{className:"text-gray-700 mb-2",children:"ProCare is our complete managed IT service package. The specific parts of ProCare that address this priority:"}),h.jsx("ul",{className:"space-y-1",children:d.solution.map((m,g)=>h.jsxs("li",{className:"flex items-start text-blue-600 font-semibold",children:[h.jsx("span",{className:"mr-2",children:"•"}),h.jsx("span",{children:m})]},g))})]}),h.jsx(M_,{category:n,assessment:i})]})]})}const F_={"Leadership/Management Burden":{whatItMeans:(r,n)=>n<=10?`Leadership is being pulled into IT issues constantly, spending ${r} hours per month dealing with vendor calls, troubleshooting, and tech decisions instead of running the business.`:n<=20?`Leadership is getting pulled into IT issues regularly, spending ${r} hours per month on tasks that should be handled by dedicated IT support.`:"Leadership has some involvement in IT, but it's manageable and not significantly disrupting strategic work.",solution:["Help Desk Support — we handle everything so it never reaches your desk.","Maintenance & Monitoring — we catch and fix issues before anyone even notices.","Vendor Coordination & Consultation — we're your single point of contact for every vendor, so you're not the one on hold."]},"Team Productivity":{whatItMeans:(r,n)=>n<=10?`Your team is losing ${r} hours per month to tech problems—troubleshooting, waiting for help, or working around broken systems. That's significant productivity drain.`:n<=20?`Your team experiences regular tech friction, with ${r} hours per month lost to IT issues that disrupt their workflow.`:"Your team has occasional tech hiccups, but overall technology enables their work more than it blocks it.",solution:["Help Desk Support — fast remote and phone resolution, at no extra cost.","Maintenance & Monitoring — proactive alerts resolved before the team is impacted.","Server/Workstation Patch Management — updates happen in the background."]},"Business Risk & Security":{whatItMeans:(r,n)=>n<=10?"Your business would stop functioning quickly if a critical system went down. You've had multiple security or operational incidents in the past year, and you're not confident in your current protections.":n<=20?"You have some basic protections, but gaps remain. If a system failed or you were hit with a cyberattack, recovery would be difficult and disruptive.":"You have solid protections in place, though there may be room to strengthen your security posture or disaster recovery capabilities.",solution:["Endpoint Detection & Response.","Ransomware Protection + Anti-virus & Malware Protection.","Anti-Phishing Email Filter.","Dark Web Monitoring.","End-user Security Awareness Training.","Cloud Backup and Recovery."]},"Strategic IT Alignment":{whatItMeans:(r,n)=>n<=10?"Your IT decisions happen in crisis mode or when something breaks. There's no roadmap for the next 6-12 months, and you're not confident your current setup can scale as you grow. ProCare changes this by giving you a partner who plans ahead.":n<=20?"IT planning is reactive. Decisions get made when launching initiatives, but there's no documented roadmap and no confidence your systems will scale.":"You have some strategic IT planning in place, though it may be informal or inconsistent.",solution:["The Quarterly Navigator — vCIO-led quarterly reviews, strategic planning, and guidance for IT for your business","Technology Vision Builder™ — annual alignment of IT to your long-term objectives","IT Roadmap for Your Business — a clear, prioritized plan for what to fix, upgrade, and invest in over the next 12–24 months"]},"Organizational Ownership":{whatItMeans:(r,n)=>n<=10?"IT responsibility is scattered or nonexistent. If the person handling IT left tomorrow, you'd be in crisis mode.":n<=20?"IT responsibility is scattered across multiple people. If any one person left, you'd have gaps in knowledge and continuity. ProCare consolidates that responsibility and documents everything so IT lives in a system, not in one person's head.":"You have some IT ownership structure, though it may rely on one or tw
229o key people.",solution:["Documentation & Asset Management — IT knowledge lives in a system, not a person's head.","Hardware Lifecycle/Warranty Management — structured, managed, no surprises when you need to replace computers","Device Profile Management & Policies — a standardized, managed environment across all devices","The Quarterly Navigator — ongoing ownership and accountability"]}},U_=["Leadership/Management Burden","Team Productivity","Business Risk & Security","Strategic IT Alignment","Organizational Ownership"];function z_({assessment:r}){const n=[r.top_priority_1,r.top_priority_2,r.top_priority_3],s=U_.filter(l=>!n.includes(l)),i=l=>({"Leadership/Management Burden":r.category1_score,"Team Productivity":r.category2_score,"Business Risk & Security":r.category3_score,"Strategic IT Alignment":r.category4_score,"Organizational Ownership":r.category5_score})[l]||0;return h.jsxs("div",{className:"mb-12",children:[h.jsx("h2",{className:"text-3xl font-bold text-gray-900 mb-4 text-center",children:"Additional Areas ProCare Covers"}),h.jsx("p",{className:"text-gray-600 text-center mb-8 max-w-3xl mx-auto",children:"Your top 3 priorities are critical. Here's what else ProCare addresses in the other areas of your assessment:"}),h.jsx("div",{className:"space-y-6",children:s.map(l=>{const u=i(l),d=F_[l];return d?h.jsxs("div",{className:"bg-white border-2 border-gray-200 rounded-lg shadow-lg p-6",children:[h.jsxs("h3",{className:"text-xl font-bold text-gray-900 mb-2",children:[l," — Score: ",u,"/30"]}),h.jsx("p",{className:"text-gray-700 mb-4",children:typeof d.whatItMeans=="function"?d.whatItMeans(l.includes("Leadership")?r.q3_hours_monthly:l.includes("Team")?r.q5_hours_monthly:null,u):d.whatItMeans}),h.jsxs("div",{children:[h.jsx("h4",{className:"font-bold text-gray-900 mb-2",children:"How ProCare Helps:"}),h.jsx("ul",{className:"space-y-1",children:d.solution.map((p,m)=>h.jsxs("li",{className:"flex items-start text-gray-700",children:[h.jsx("span",{className:"mr-2",children:"•"}),h.jsx("span",{children:p})]},m))})]})]},l):null})})]})}function B_({assessment:r}){const n=r.q3_hours_monthly||0,s=r.q5_hours_monthly||0,i=n<5&&s<15;return h.jsx("div",{className:"bg-amber-50 border-2 border-amber-400 rounded-lg p-6 mb-8",children:h.jsxs("div",{className:"flex items-start gap-3",children:[h.jsx(lw,{className:"w-6 h-6 text-amber-600 flex-shrink-0 mt-0.5"}),h.jsxs("div",{children:[h.jsx("h3",{className:"text-lg font-bold text-amber-900 mb-2",children:"Before You Look at These Numbers — Don't Fall Into the Low Score Trap"}),h.jsx("p",{className:"text-amber-800 mb-3",children:i?"Your assessment shows relatively low time being spent on IT issues. That might sound like good news — but it's often not.":"Your team is spending real time on IT issues every month. But even if those hours feel manageable, the bigger risks often don't show up in time at all."}),h.jsxs("p",{className:"text-amber-800 mb-3",children:[h.jsx("strong",{children:"Low time investment ≠ low risk."}),` A business that "doesn't deal with IT much" usually means one of two things: either IT is running smoothly (great!), or nobody's watching — and that's when breaches happen, systems fail, and one person leaving takes critical knowledge with them.`]}),h.jsx("p",{className:"text-amber-800",children:"The priorities below aren't just about hours. They're about what could happen on a Tuesday afternoon when you least expect it — and whether your business can survive it."})]})]})})}const $_=[{id:1,question:"How often has leadership/management had to get involved in an IT issue?"},{id:2,question:"When pulled into IT issues, what is leadership typically pulled away from?"},{id:3,question:"How many hours per month does leadership spend dealing with IT?"},{id:4,question:"How often has your team been unable to work because of a technology issue?"},{id:5,question:"How much time per month does your team spend dealing with tech problems?"},{id:6,question:"How would you describe your team's experience with technology?"},{id:7,question:"If a critical system went down right now, how long before your business couldn't function?"},{id:8,question:"Where does your organization fall on having specific security services implemented?"}
229,{id:9,question:"In the last 12 months, has your organization experienced any of the following?",isCheckbox:!0},{id:10,question:"Does someone actively plan how technology will support your business goals over the next 1–3 years?"},{id:11,question:"Does your organization have a multi-quarter technology roadmap?"},{id:12,question:"How confident are you that your current IT setup will scale with you?"},{id:13,question:"Who is responsible for making sure your IT systems stay healthy?"},{id:14,question:"If the people who handle IT left tomorrow, how prepared would your organization be?"},{id:15,question:"Has IT uncertainty ever caused you to hesitate on a business decision or worry about your exposure?"},{id:16,question:"How many team members does your organization have?"}];function q_({assessment:r}){const[n,s]=A.useState(!1),i=l=>{if(l.isCheckbox){const d=r.q9_answers;return!d||d.length===0?"No response":d.join(", ")}const u=r[`q${l.id}_answer`];return u==null||u===""?"No response":String(u)};return h.jsxs("div",{className:"mt-12 border-t-2 border-gray-200 pt-8",children:[h.jsxs("button",{onClick:()=>s(!n),className:"w-full flex items-center justify-between text-left group",children:[h.jsxs("div",{children:[h.jsx("h3",{className:"text-xl font-bold text-gray-700 group-hover:text-gray-900 transition-colors",children:"View Assessment Responses"}),h.jsxs("p",{className:"text-sm text-gray-500 mt-1",children:[r.email&&h.jsxs("span",{className:"font-medium text-gray-600",children:[r.email," · "]}),"See how each question was answered"]})]}),n?h.jsx(W0,{className:"w-6 h-6 text-gray-400 flex-shrink-0"}):h.jsx(H0,{className:"w-6 h-6 text-gray-400 flex-shrink-0"})]}),n&&h.jsx("div",{className:"mt-6 space-y-4",children:$_.map(l=>h.jsxs("div",{className:"bg-gray-50 rounded-lg p-4 border border-gray-200",children:[h.jsxs("p",{className:"text-xs font-semibold text-gray-400 uppercase tracking-wide mb-1",children:["Question ",l.id]}),h.jsx("p",{className:"text-sm font-medium text-gray-700 mb-2",children:l.question}),h.jsx("p",{className:"text-sm text-gray-900 font-semibold",children:i(l)})]},l.id))})]})}const H_={CRITICAL:"Your IT is in crisis mode. Critical gaps are putting your business at risk right now. Immediate action is needed to prevent a major disruption.",REACTIVE:"Your IT is being managed on the fly. Issues get handled when they come up, but there's no plan keeping you ahead of problems. The result? Lost time, hidden costs, and risks you might not see until something breaks.",MANAGED:"You have some IT structure in place, but there are gaps that could become problems as you grow. You're doing better than most, but there's room to optimize and reduce your burden.",OPTIMIZED:"Your IT is a strategic asset. You have proactive management, clear ownership, and systems that support growth. You're in the top 25% of businesses we assess."};function V_(){const[r]=Wb(),[n,s]=A.useState(null),[i,l]=A.useState(!0),[u,d]=A.useState(null),[p,m]=A.useState(!1);A.useEffect(()=>{(async()=>{const F=r.get("id"),C=r.get("token");if(F){let _=!1;try{const b=await st.auth.me();b&&b.role==="admin"&&(_=!0)}catch{}if(!_&&!C){m(!0),l(!1);return}try{const b=await st.entities.Assessment.filter({id:F});if(b&&b.length>0){const j=b[0];if(!_&&C!==j.id){m(!0),l(!1);return}s(j)}}catch(b){console.error("Error loading assessment:",b)}}l(!1)})()},[r]);const g=async T=>{d(T),n&&await st.entities.Assessment.update(n.id,{cta_clicked:T})},v=async()=>{await st.entities.Assessment.update(n.id,{pdf_downloaded:!0}),window.print()};if(i)return h.jsx("div",{className:"min-h-screen flex items-center justify-center",children:h.jsx(Lm,{className:"w-8 h-8 animate-spin text-blue-600"})});if(p)return h.jsx("div",{className:"min-h-screen flex items-center justify-center bg-gray-50",children:h.jsxs("div",{className:"text-center max-w-md px-4",children:[h.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-4",children:"Results Not Available"}),h.jsx("p",{className:"text-gray-600 mb-4",children:"This link has expired or is invalid. Please check the email you received after completing the assessment."}),h.jsxs("p",{className:"text-gray-500 text-sm",children:["Questions? Call us at ",h.jsx("a",{href:"tel:+12164805001",className:"text-blue-600",children:"(216) 480-5001"})]})]})});if(!n)return h.jsx("div",{className:"min-h-screen flex items-center justify-center",children:h.jsxs("div",{className:"text-center",children:[h.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-4",children:"Assessment Not Found"}),h.jsx("p",{className:"text-gray-600",children:"Please complete the assessment first."})]})});const w=Math.round(n.total_score/160*100);return h.jsx("div",{className:"min-h-screen bg-gradient-to-b from-white to-gray-50 py-12 px-4",children:h.jsxs("div",{className:"max-w-5xl mx-auto",children:[h.jsxs("div",{className:"text-center mb-12",children:[h.jsx("h1",{className:"text-4xl font-bold text-gray-900 mb-6",children:"Your IT Reality Check Results"}),h.jsxs("div",{className:"bg-white rounded-lg shadow-lg p-8 mb-8",children:[h.jsxs("div",{className:"mb-6",children:[h.jsxs("div",{className:"text-6xl font-bold text-gray-900 mb-2",children:[n.total_score," / 160"]}),h.jsx(O_,{score:n.total_score})]}),h.jsxs("div",{className:"text-xl font-semibold text-gray-700 mb-4",children:["You're in ",h.jsx("span",{className:`
230                ${n.score_status==="CRITICAL"?"text-red-600":""}
231                ${n.score_status==="REACTIVE"?"text-orange-600":""}
232                ${n.score_status==="MANAGED"?"text-yellow-600":""}
233                ${n.score_status==="OPTIMIZED"?"text-green-600":""}
234              `,children:n.score_status})," mode (",w,"th percentile)"]}),h.jsx("p",{className:"text-gray-700 max-w-3xl mx-auto",children:H_[
234n.score_status]})]})]}),h.jsx(I_,{assessment:n}),h.jsxs("div",{className:"mb-12",children:[h.jsx("h2",{className:"text-3xl font-bold text-gray-900 mb-6 text-center",children:"Your Top 3 Priorities (Ranked by Risk):"}),h.jsx(B_,{assessment:n}),h.jsxs("div",{className:"space-y-6",children:[h.jsx(Ju,{priority:1,category:n.top_priority_1,score:Xu(n,n.top_priority_1),assessment:n}),h.jsx(Ju,{priority:2,category:n.top_priority_2,score:Xu(n,n.top_priority_2),assessment:n}),h.jsx(Ju,{priority:3,category:n.top_priority_3,score:Xu(n,n.top_priority_3),assessment:n})]})]}),h.jsx(z_,{assessment:n}),h.jsxs("div",{className:"space-y-6",children:[h.jsx("h2",{className:"text-3xl font-bold text-gray-900 text-center mb-8",children:"Here's What Happens Next:"}),h.jsx("div",{className:"bg-gradient-to-r from-blue-600 to-blue-700 rounded-lg shadow-xl p-8 text-white",children:h.jsxs("div",{className:"flex items-start mb-6",children:[h.jsx(op,{className:"w-8 h-8 mr-4 flex-shrink-0 mt-1"}),h.jsxs("div",{children:[h.jsx("h3",{className:"text-2xl font-bold mb-2",children:"Schedule Your Free Technology Clarity Call (25 Minutes)"}),h.jsx("p",{className:"text-blue-100 mb-4",children:"We'll walk through your results together and show you exactly how to fix your top 3 priorities."}),h.jsxs("ul",{className:"space-y-2 mb-6",children:[h.jsxs("li",{className:"flex items-center",children:[h.jsx("span",{className:"mr-2",children:"✓"}),"Break down your biggest risks"]}),h.jsxs("li",{className:"flex items-center",children:[h.jsx("span",{className:"mr-2",children:"✓"}),'Show you what "fixed" looks like']}),h.jsxs("li",{className:"flex items-center",children:[h.jsx("span",{className:"mr-2",children:"✓"}),"See exactly which parts of ProCare solve your problems"]})]}),h.jsx("a",{href:"https://scheduler.zoom.us/d/mam3fae5/globalmac-it-consultation",target:"_blank",rel:"noopener noreferrer",onClick:()=>g("discovery_call"),children:h.jsxs(hn,{size:"lg",className:"bg-white text-blue-600 hover:bg-gray-100",children:[h.jsx(op,{className:"w-5 h-5 mr-2"}),"Book My Discovery Call"]})})]})]})}),h.jsx("div",{className:"bg-white border-2 border-gray-200 rounded-lg shadow-lg p-8",children:h.jsxs("div",{className:"flex items-start",children:[h.jsx(ip,{className:"w-8 h-8 mr-4 flex-shrink-0 mt-1 text-gray-700"}),h.jsxs("div",{className:"flex-1",children:[h.jsx("h3",{className:"text-xl font-bold text-gray-900 mb-2",children:"Download Your Full Report (PDF)"}),h.jsx("p",{className:"text-gray-600 mb-4",children:"Get a detailed breakdown you can share with your team or review later."}),h.jsxs(hn,{variant:"outline",onClick:()=>{g("pdf"),v()},className:"border-2",children:[h.jsx(ip,{className:"w-5 h-5 mr-2"}),"Download My Report"]})]})]})}),h.jsx("div",{className:"bg-white border-2 border-gray-200 rounded-lg shadow-lg p-8",children:h.jsxs("div",{className:"flex items-start",children:[h.jsx(Ta,{className:"w-8 h-8 mr-4 flex-shrink-0 mt-1 text-gray-700"}),h.jsxs("div",{className:"flex-1",children:[h.jsx("h3",{className:"text-xl font-bold text-gray-900 mb-2",children:"Get a Custom ProCare Quote"}),h.jsxs("p",{className:"text-gray-600 mb-4",children:["Based on your team size (",n.team_size," employees) and top priorities."]}),h.jsx("a",{href:`mailto:[email protected]?subject=ProCare Quote Request - IT Reality Check&body=Hi GlobalMac IT Team,%0D%0A%0D%0AI just completed the IT Reality Check assessment and would like to get a custom ProCare quote.%0D%0A%0D%0AMy Results:%0D%0A- IT Maturity Score: ${n.total_score}/160%0D%0A- Team Size: ${n.team_size} employees%0D%0A- Top Priority: ${n.top_priority_1}%0D%0A%0D%0APlease contact me to discuss next steps.%0D%0A%0D%0ABest,%0D%0A${n.email}`,onClick:()=>g("quote"),children:h.jsxs(hn,{variant:"outline",className:"border-2",children:[h.jsx(Ta,{className:"w-5 h-5 mr-2"}),"Request My Quote"]})})]})]})})]}),h.jsx(q_,{assessment:n}),h.jsxs("div",{className:"text-center mt-12 text-gray-600",children:[h.jsx("p",{className:"mb-2",children:"Questions? Contact us:"}),h.jsxs("p",{children:["Phone: ",h.jsx("a",{href:"tel:+12164805001",className:"text-blue-600 hover:underline",children:"(216) 480-5001"})]}),h.jsxs("p",{children:["Email: ",h.jsx("a",{href:"mailto:[email protected]",className:"text-blue-600 hover:underline",children:"[email protected]"})]}),h.jsxs("p",{children:["Website: ",h.jsx("a",{href:"https://www.globalmacit.com",target:"_blank",rel:"noopener noreferrer",className:"text-blue-600 hover:underline",children:"www.globalmacit.com"})]})]})]})})}function Xu(r,n){return{"Leadership/Management Burden":r.category1_score,"Team Productivity":r.category2_score,"Business Risk & Security":r.category3_score,"Strategic IT Alignment":r.category4_score,"Organizational Ownership":r.category5_score}[n]||0}const W_={Assessment:P_,Home:A_,Results:V_},wg={mainPage:"Home",Pages:W_};function Q_(){const r=Vr(),{isAuthenticated:n}=lg(),{Pages:s,mainPage:i}=wg,l=i;return A.useEffect(()=>{const u=r.pathname;let d;if(u==="/"||u==="")d=l;else{const p=u.replace(/^\//,"").split("/")[0];d=Object.keys(s).find(v=>v.toLowerCase()===p.toLowerCase())||null}n&&d&&st.appLogs.logUserInApp(d).catch(()=>{})},[r,n,s,l]),null}function Y_({}){var l;const n=Vr().pathname.substring(1),{data:s,isFetched:i}=Bx({queryKey:["user"],queryFn:async()=>{try{return{user:await st.auth.me(),isAuthenticated:!0}}catch{return{user:null,isAuthenticated:!1}}}});return h.jsx("div",{className:"min-h-screen flex items-center justify-center p-6 bg-slate-50",children:h.jsx("div",{className:"max-w-md w-full",children:h.jsxs("div",{className:"text-center space-y-6",children:[h.jsxs("div",{className:"space-y-2",children:[h.jsx("h1",{className:"text-7xl font-light text-slate-300",children:"404"}),h.jsx("div",{className:"h-0.5 w-16 bg-slate-200 mx-auto"})]}),h.jsxs("div",{className:"space-y-3",children:[h.jsx("h2",{className:"text-2xl font-medium text-slate-800",children:"Page Not Found"}),h.jsxs("p",{className:"text-slate-600 leading-relaxed",children:["The page ",h.jsxs("span",{className:"font-medium text-slate-700",children:['"',n,'"']})," could not be found in this application."]})]}),i&&s.isAuthenticated&&((l=s.user)==null?void 0:l.role)==="admin"&&h.jsx("div",{className:"mt-8 p-4 bg-slate-100 rounded-lg border border-slate-200",children:h.jsxs("div",{className:"flex items-start space-x-3",children:[h.jsx("div",{className:"flex-shrink-0 w-5 h-5 rounded-full bg-orange-100 flex items-center justify-center mt-0.5",children:h.jsx("div",{className:"w-2 h-2 rounded-full bg-orange-400"})}),h.jsxs("div",{className:"text-left space-y-1",children:[h.jsx("p",{className:"text-sm font-medium text-slate-700",children:"Admin Note"}),h.jsx("p",{className:"text-sm text-slate-600 leading-relaxed",children:"This could mean that the AI hasn't implemented this page yet. Ask it to implement it in the chat."})]})]})}),h.jsx("div",{className:"pt-6",children:h.jsxs("button",{onClick:()=>window.location.href="/",className:"inline-flex items-center px-4 py-2 text-sm font-medium text-slate-700 bg-white border border-slate-200 rounded-lg hover:bg-slate-50 hover:border-slate-300 transition-colors duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-slate-500",children:[h.jsx("svg",{className:"w-4 h-4 mr-2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:h.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M3 12l2-2m0 0l7-7 7 7M5 10v10a1 1 0 001 1h3m10-11l2 2m-2-2v10a1 1 0 01-1 1h-3m-6 0a1 1 0 001-1v-4a1 1 0 011-1h2a1 1 0 011 1v4a1 1 0 001 1m-6 0h6"})}),"Go Home"]})})]})})})}function K_(){const[r,n]=A.useState([]),[s,i]=A.useState(!0),[l,u]=A.useState(null),[d,p]=A.useState(!1);A.useEffect(()=>{(async()=>{try{const w=await st.auth.me();if(!w||w.role!=="admin"){p(!0),i(!1);return}u(w);const T=await st.entities.Assessment.list("-created_date",100);n(T)}catch{st.auth.redirectToLogin("/AdminDashboard")}i(!1)})()},[]);const m=v=>v?new Intl.NumberFormat("en-US",{style:"currency",currency:"USD",minimumFractionDigits:0}).format(v):"—",g={CRITICAL:"bg-red-100 text-red-700",REACTIVE:"bg-orange-100 text-orange-700",MANAGED:"bg-yellow-100 text-yellow-700",OPTIMIZED:"bg-green-100 text-green-700"};return s?h.jsx("div",{className:"min-h-screen flex items-center justify-center",children:h.jsx(Lm,{className:"w-8 h-8 animate-spin text-blue-600"})}):d?h.jsx("div",{className:"min-h-screen flex items-center justify-center",children:h.jsxs("div",{className:"text-center",children:[h.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-2",children:"Access Denied"}),h.jsx("p",{className:"text-gray-600",children:"Admin access required."})]})}):h.jsx("div",{className:"min-h-screen bg-gray-50 py-10 px-4",children:h.jsxs("div",{className:"max-w-6xl mx-auto",children:[h.jsxs("div",{className:"flex items-center justify-between mb-8",children:[h.jsxs("div",{children:[h.jsx("h1",{className:"text-3xl font-bold text-gray-900",children:"Assessment Results"}),h.jsxs("p",{className:"text-gray-500 mt-1",children:[r.length," submissions total"]})]}),h.jsxs("div",{className:"flex items-center gap-2 text-sm text-gray-500",children:[h.jsx(Mm,{className:"w-4 h-4"}),l==null?void 0:l.email]})]}),h.jsx("div",{className:"bg-white rounded-lg shadow overflow-hidden",children:h.jsxs("table",{className:"w-full text-sm",children:[h.jsx("thead",{className:"bg-gray-50 border-b",children:h.jsxs("tr",{children:[h.jsx("th",{className:"text-left px-4 py-3 font-semibold text-gray-700",children:"Date"}),h.jsx("th",{className:"text-left px-4 py-3 font-semibold text-gray-700",children:"Email"}),h.jsx("th",{className:"text-left px-4 py-3 font-semibold text-gray-700",children:"Team"}),h.jsx("th",{className:"text-left px-4 py-3 font-semibold text-gray-700",children:"Score"}),h.jsx("th",{className:"text-left px-4 py-3 font-semibold text-gray-700",children:"Status"}),h.jsx("th",{className:"text-left px-4 py-3 font-semibold text-gray-700",children:"Est. Cost/yr"}),h.jsx("th",{className:"text-left px-4 py-3 font-semibold text-gray-700",children:"Top Priority"}),h.jsx("th",{className:"px-4 py-3"})]})}),h.jsxs("tbody",{className:"divide-y divide-gray-100",children:[r.map(v=>h.jsxs("tr",{className:"hover:bg-gray-50",children:[h.jsx("td",{className:"px-4 py-3 text-gray-600 whitespace-nowrap",children:new Date(v.created_date).toLocaleDateString()}),h.jsx("td",{className:"px-4 py-3 font-medium text-gray-900",children:v.email}),h.jsx("td",{className:"px-4 py-3 text-gray-600",children:v.team_size||"—"}),h.jsxs("td",{className:"px-4 py-3 font-bold text-gray-900",children:[v.total_score,"/160"]}),h.jsx("td",{className:"px-4 py-3",children:h.jsx("span",{className:`px-2 py-1 rounded-full text-xs font-semibold ${g[v.score_status]||"bg-gray-100 text-gray-600"}`,children:v.score_status})}),h.jsx("td",{className:"px-4 py-3 text-gray-700",children:m(v.conservative_annual)}),h.jsx("td",{className:"px-4 py-3 text-gray-600 text-xs max-w-xs truncate",children:v.top_priority_1}),h.jsx("td",{className:"px-4 py-3",children:h.jsxs("a",{href:`/Results?id=${v.id}&token=${v.id}`,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1 text-blue-600 hover:text-blue-800 font-medium",children:["View ",h.jsx(X0,{className:"w-3 h-3"})]})})]},v.id)),r.length===0&&h.jsx("tr",{children:h.jsx("td",{colSpan:8,className:"px-4 py-12 text-center text-gray-400",children:"No assessments yet."})})]})]})})]})})}const G_=()=>h.jsx("div",{className:"flex flex-col items-center justify-center min-h-screen bg-gradient-to-b from-white to-slate-50",children:h.jsx("div",{className:"max-w-md w-full p-8 bg-white rounded-lg shadow-lg border border-slate-100",children:h.jsxs("div",{className:"text-center",children:[h.jsx("div",{className:"inline-flex items-center justify-center w-16 h-16 mb-6 rounded-full bg-orange-100",children:h.jsx("svg",{className:"w-8 h-8 text-orange-600",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:h.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"})})}),h.jsx("h1",{className:"text-3xl font-bold text-slate-900 mb-4",children:"Access Restricted"}),h.jsx("p",{className:"text-slate-600 mb-8",children:"You are not registered to use this application. Please contact the app administrator to request access."}),h.jsxs("div",{className:"p-4 bg-slate-50 rounded-md text-sm text-slate-600",children:[h.jsx("p",{children:"If you believe this is an error, you can:"}),h.jsxs("ul",{className:"list-disc list-inside mt-2 space-y-1",children:[h.jsx("li",{children:"Verify you are logged in with the correct account"}),h.jsx("li",{children:"Contact the app administrator for access"}),h.jsx("li",{children:"Try logging out and back in again"})]})]})]})})}),{Pages:xg,Layout:gm,mainPage:J_}=wg,bg=J_,X_=xg[bg],vm=({children:r,currentPageName:n})=>gm?h.jsx(gm,{currentPageName:n,children:r}):h.jsx(h.Fragment,{children:r}),Z_=()=>{const{isLoadingAuth:r,isLoadingPublicSettings:n,authError:s,navigateToLogin:i}=lg();if(n||r)return h.jsx("div",{className:"fixed inset-0 flex items-center justify-center",children:h.jsx("div",{className:"w-8 h-8 border-4 border-slate-200 border-t-slate-800 rounded-full animate-spin"})});if(s){if(s.type==="user_not_registered")return h.jsx(G_,{});if(s.type==="auth_required")return i(),null}return h.jsxs(Ib,{children:[h.jsx(Ao,{path:"/",element:h.jsx(vm,{currentPageName:bg,children:h.jsx(X_,{})})}),Object.entries(xg).map(([l,u])=>h.jsx(Ao,{path:`/${l}`,element:h.jsx(vm,{currentPageName:l,children:h.jsx(u,{})})},l)),h.jsx(Ao,{path:"/AdminDashboard",element:h.jsx(K_,{})}),h.jsx(Ao,{path:"*",element:h.jsx(Y_,{})})]})};function eE(){return h.jsx(s_,{children:h.jsxs(Rx,{client:$x,children:[h.jsxs($b,{children:[h.jsx(Q_,{}),h.jsx(Z_,{})]}),h.jsx(rx,{})]})})}T0.createRoot(document.getElementById("root")).render(h.jsx(eE,{}));

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.