vendor: 6,401 bytes, lines 1-9
1var U1=Object.defineProperty;var Cg=t=>{throw TypeError(t)};var B1=(t,e,n)=>e in t?U1(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var Le=(t,e,n)=>B1(t,typeof e!="symbol"?e+"":e,n),ed=(t,e,n)=>e.has(t)||Cg("Cannot "+n);var R=(t,e,n)=>(ed(t,e,"read from private field"),n?n.call(t):e.get(t)),fe=(t,e,n)=>e.has(t)?Cg("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,n),ee=(t,e,n,i)=>(ed(t,e,"write to private field"),i?i.call(t,n):e.set(t,n),n),Te=(t,e,n)=>(ed(t,e,"access private method"),n);var hl=(t,e,n,i)=>({set _(o){ee(t,e,o,n)},get _(){return R(t,e,i)}});function V1(t,e){for(var n=0;n<e.length;n++){const i=e[n];if(typeof i!="string"&&!Array.isArray(i)){for(const o in i)if(o!=="default"&&!(o in t)){const l=Object.getOwnPropertyDescriptor(i,o);l&&Object.defineProperty(t,o,l.get?l:{enumerable:!0,get:()=>i[o]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))i(o);new MutationObserver(o=>{for(const l of o)if(l.type==="childList")for(const u of l.addedNodes)u.tagName==="LINK"&&u.rel==="modulepreload"&&i(u)}).observe(document,{childList:!0,subtree:!0});function n(o){const l={};return o.integrity&&(l.integrity=o.integrity),o.referrerPolicy&&(l.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?l.credentials="include":o.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function i(o){if(o.ep)return;o.ep=!0;const l=n(o);fetch(o.href,l)}})();function C0(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var td={exports:{}},ho={},nd={exports:{}},_e={};/** 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 kg;function z1(){if(kg)return _e;kg=1;var t=Symbol.for("react.element"),e=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),u=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),y=Symbol.iterator;function w(j){return j===null||typeof j!="object"?null:(j=y&&j[y]||j["@@iterator"],typeof j=="function"?j:null)}var E={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},P=Object.assign,_={};function S(j,$,me){this.props=j,this.context=$,this.refs=_,this.updater=me||E}S.prototype.isReactComponent={},S.prototype.setState=function(j,$){if(typeof j!="object"&&typeof j!="function"&&j!=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,j,$,"setState")},S.prototype.forceUpdate=function(j){this.updater.enqueueForceUpdate(this,j,"forceUpdate")};function b(){}b.prototype=S.prototype;function O(j,$,me){this.props=j,this.context=$,this.refs=_,this.updater=me||E}var k=O.prototype=new b;k.constructor=O,P(k,S.prototype),k.isPureReactComponent=!0;var A=Array.isArray,U=Object.prototype.hasOwnProperty,z={current:null},J={key:!0,ref:!0,__self:!0,__source:!0};function B(j,$,me){var ge,de={},G=null,we=null;if($!=null)for(ge in $.ref!==void 0&&(we=$.ref),$.key!==void 0&&(G=""+$.key),$)U.call($,ge)&&!J.hasOwnProperty(ge)&&(de[ge]=$[ge]);var ke=arguments.length-2;if(ke===1)de.children=me;else if(1<ke){for(var ve=Array(ke),at=0;at<ke;at++)ve[at]=arguments[at+2];de.children=ve}if(j&&j.defaultProps)for(ge in ke=j.defaultProps,ke)de[ge]===void 0&&(de[ge]=ke[ge]);return{$$typeof:t,type:j,key:G,ref:we,props:de,_owner:z.current}}function Z(j,$){return{$$typeof:t,type:j.type,key:$,ref:j.ref,props:j.props,_owner:j._owner}}function le(j){return typeof j=="object"&&j!==null&&j.$$typeof===t}function be(j){var $={"=":"=0",":":"=2"};return"$"+j.replace(/[=:]/g,function(me){return $[me]})}var De=/\/+/g;function Se(j,$){return typeof j=="object"&&j!==null&&j.key!=null?be(""+j.key):$.toString(36)}function Ce(j,$,me,ge,de){var G=typeof j;(G==="undefined"||G==="boolean")&&(j=null);var we=!1;if(j===null)we=!0;else switch(G){case"string":case"number":we=!0;break;case"object":switch(j.$$typeof){case t:case e:we=!0}}if(we)return we=j,de=de(we),j=ge===""?"."+Se(we,0):ge,A(de)?(me="",j!=null&&(me=j.replace(De,"$&/")+"/"),Ce(de,$,me,"",function(at){return at})):de!=null&&(le(de)&&(de=Z(de,me+(!de.key||we&&we.key===de.key?"":(""+de.key).replace(De,"$&/")+"/")+j)),$.push(de)),1;if(we=0,ge=ge===""?".":ge+":",A(j))for(var ke=0;ke<j.length;ke++){G=j[ke];var ve=ge+Se(G,ke);we+=Ce(G,$,me,ve,de)}else if(ve=w(j),typeof ve=="function")for(j=ve.call(j),ke=0;!(G=j.next()).done;)G=G.value,ve=ge+Se(G,ke++),we+=Ce(G,$,me,ve,de);else if(G==="object")throw $=String(j),Error("Objects are not valid as a React child (found: "+($==="[object Object]"?"object with keys {"+Object.keys(j).join(", ")+"}":$)+"). If you meant to render a collection of children, use an array instead.");return we}function Fe(j,$,me){if(j==null)return j;var ge=[],de=0;return Ce(j,ge,"","",function(G){return $.call(me,G,de++)}),ge}function Ae(j){if(j._status===-1){var $=j._result;$=$(),$.then(function(me){(j._status===0||j._status===-1)&&(j._status=1,j._result=me)},function(me){(j._status===0||j._status===-1)&&(j._status=2,j._result=me)}),j._status===-1&&(j._status=0,j._result=$)}if(j._status===1)return j._result.default;throw j._result}var he={current:null},Q={transition:null},oe={ReactCurrentDispatcher:he,ReactCurrentBatchConfig:Q,ReactCurrentOwner:z};function V(){throw Error("act(...) is not supported in production builds of React.")}return _e.Children={map:Fe,forEach:function(j,$,me){Fe(j,function(){$.apply(this,arguments)},me)},count:function(j){var $=0;return Fe(j,function(){$++}),$},toArray:function(j){return Fe(j,function($){return $})||[]},only:function(j){if(!le(j))throw Error("React.Children.only expected to receive a single React element child.");return j}},_e.Component=S,_e.Fragment=n,_e.Profiler=o,_e.PureComponent=O,_e.StrictMode=i,_e.Suspense=h,_e.__SECRET_INT
vendor: 2,337 bytes, line 9
9ERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=oe,_e.act=V,_e.cloneElement=function(j,$,me){if(j==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+j+".");var ge=P({},j.props),de=j.key,G=j.ref,we=j._owner;if($!=null){if($.ref!==void 0&&(G=$.ref,we=z.current),$.key!==void 0&&(de=""+$.key),j.type&&j.type.defaultProps)var ke=j.type.defaultProps;for(ve in $)U.call($,ve)&&!J.hasOwnProperty(ve)&&(ge[ve]=$[ve]===void 0&&ke!==void 0?ke[ve]:$[ve])}var ve=arguments.length-2;if(ve===1)ge.children=me;else if(1<ve){ke=Array(ve);for(var at=0;at<ve;at++)ke[at]=arguments[at+2];ge.children=ke}return{$$typeof:t,type:j.type,key:de,ref:G,props:ge,_owner:we}},_e.createContext=function(j){return j={$$typeof:u,_currentValue:j,_currentValue2:j,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},j.Provider={$$typeof:l,_context:j},j.Consumer=j},_e.createElement=B,_e.createFactory=function(j){var $=B.bind(null,j);return $.type=j,$},_e.createRef=function(){return{current:null}},_e.forwardRef=function(j){return{$$typeof:d,render:j}},_e.isValidElement=le,_e.lazy=function(j){return{$$typeof:g,_payload:{_status:-1,_result:j},_init:Ae}},_e.memo=function(j,$){return{$$typeof:p,type:j,compare:$===void 0?null:$}},_e.startTransition=function(j){var $=Q.transition;Q.transition={};try{j()}finally{Q.transition=$}},_e.unstable_act=V,_e.useCallback=function(j,$){return he.current.useCallback(j,$)},_e.useContext=function(j){return he.current.useContext(j)},_e.useDebugValue=function(){},_e.useDeferredValue=function(j){return he.current.useDeferredValue(j)},_e.useEffect=function(j,$){return he.current.useEffect(j,$)},_e.useId=function(){return he.current.useId()},_e.useImperativeHandle=function(j,$,me){return he.current.useImperativeHandle(j,$,me)},_e.useInsertionEffect=function(j,$){return he.current.useInsertionEffect(j,$)},_e.useLayoutEffect=function(j,$){return he.current.useLayoutEffect(j,$)},_e.useMemo=function(j,$){return he.current.useMemo(j,$)},_e.useReducer=function(j,$,me){return he.current.useReducer(j,$,me)},_e.useRef=function(j){return he.current.useRef(j)},_e.useState=function(j){return he.current.useState(j)},_e.useSyncExternalStore=function(j,$,me){return he.current.useSyncExternalStore(j,$,me)},_e.useTransition=function(){return he.current.useTransition()}
vendor: 4,198 bytes, lines 9-25
9,_e.version="18.3.1",_e}var Tg;function Pf(){return Tg||(Tg=1,nd.exports=z1()),nd.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 Pg;function $1(){if(Pg)return ho;Pg=1;var t=Pf(),e=Symbol.for("react.element"),n=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,o=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function u(d,h,p){var g,y={},w=null,E=null;p!==void 0&&(w=""+p),h.key!==void 0&&(w=""+h.key),h.ref!==void 0&&(E=h.ref);for(g in h)i.call(h,g)&&!l.hasOwnProperty(g)&&(y[g]=h[g]);if(d&&d.defaultProps)for(g in h=d.defaultProps,h)y[g]===void 0&&(y[g]=h[g]);return{$$typeof:e,type:d,key:w,ref:E,props:y,_owner:o.current}}return ho.Fragment=n,ho.jsx=u,ho.jsxs=u,ho}var Rg;function W1(){return Rg||(Rg=1,td.exports=$1()),td.exports}var x=W1(),D=Pf();const H1=C0(D),q1=V1({__proto__:null,default:H1},[D]);var pl={},rd={exports:{}},It={},sd={exports:{}},id={};/** 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 Ag;function K1(){return Ag||(Ag=1,(function(t){function e(Q,oe){var V=Q.length;Q.push(oe);e:for(;0<V;){var j=V-1>>>1,$=Q[j];if(0<o($,oe))Q[j]=oe,Q[V]=$,V=j;else break e}}function n(Q){return Q.length===0?null:Q[0]}function i(Q){if(Q.length===0)return null;var oe=Q[0],V=Q.pop();if(V!==oe){Q[0]=V;e:for(var j=0,$=Q.length,me=$>>>1;j<me;){var ge=2*(j+1)-1,de=Q[ge],G=ge+1,we=Q[G];if(0>o(de,V))G<$&&0>o(we,de)?(Q[j]=we,Q[G]=V,j=G):(Q[j]=de,Q[ge]=V,j=ge);else if(G<$&&0>o(we,V))Q[j]=we,Q[G]=V,j=G;else break e}}return oe}function o(Q,oe){var V=Q.sortIndex-oe.sortIndex;return V!==0?V:Q.id-oe.id}if(typeof performance=="object"&&typeof performance.now=="function"){var l=performance;t.unstable_now=function(){return l.now()}}else{var u=Date,d=u.now();t.unstable_now=function(){return u.now()-d}}var h=[],p=[],g=1,y=null,w=3,E=!1,P=!1,_=!1,S=typeof setTimeout=="function"?setTimeout:null,b=typeof clearTimeout=="function"?clearTimeout:null,O=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function k(Q){for(var oe=n(p);oe!==null;){if(oe.callback===null)i(p);else if(oe.startTime<=Q)i(p),oe.sortIndex=oe.expirationTime,e(h,oe);else break;oe=n(p)}}function A(Q){if(_=!1,k(Q),!P)if(n(h)!==null)P=!0,Ae(U);else{var oe=n(p);oe!==null&&he(A,oe.startTime-Q)}}function U(Q,oe){P=!1,_&&(_=!1,b(B),B=-1),E=!0;var V=w;try{for(k(oe),y=n(h);y!==null&&(!(y.expirationTime>oe)||Q&&!be());){var j=y.callback;if(typeof j=="function"){y.callback=null,w=y.priorityLevel;var $=j(y.expirationTime<=oe);oe=t.unstable_now(),typeof $=="function"?y.callback=$:y===n(h)&&i(h),k(oe)}else i(h);y=n(h)}if(y!==null)var me=!0;else{var ge=n(p);ge!==null&&he(A,ge.startTime-oe),me=!1}return me}finally{y=null,w=V,E=!1}}var z=!1,J=null,B=-1,Z=5,le=-1;function be(){return!(t.unstable_now()-le<Z)}function De(){if(J!==null){var Q=t.unstable_now();le=Q;var oe=!0;try{oe=J(!0,Q)}finally{oe?Se():(z=!1,J=null)}}else z=!1}var Se;if(typeof O=="function")Se=function(){O(De)};else if(typeof MessageChannel<"u"){var Ce=new MessageChannel,Fe=Ce.port2;Ce.port1.onmessage=De,Se=function(){Fe.postMessage(null)}}else Se=function(){S(De,0)};function Ae(Q){J=Q,z||(z=!0,Se())}function he(Q,oe){B=S(function(){Q(t.unstable_now())},oe)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(Q){Q.callback=null},t.unstable_continueExecution=function(){P||E||(P=!0,Ae(U))},t.unstable_forceFrameRate=function(Q){0>Q||125<Q?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Z=0<
vendor: 48,064 bytes, lines 25-38
25Q?Math.floor(1e3/Q):5},t.unstable_getCurrentPriorityLevel=function(){return w},t.unstable_getFirstCallbackNode=function(){return n(h)},t.unstable_next=function(Q){switch(w){case 1:case 2:case 3:var oe=3;break;default:oe=w}var V=w;w=oe;try{return Q()}finally{w=V}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(Q,oe){switch(Q){case 1:case 2:case 3:case 4:case 5:break;default:Q=3}var V=w;w=Q;try{return oe()}finally{w=V}},t.unstable_scheduleCallback=function(Q,oe,V){var j=t.unstable_now();switch(typeof V=="object"&&V!==null?(V=V.delay,V=typeof V=="number"&&0<V?j+V:j):V=j,Q){case 1:var $=-1;break;case 2:$=250;break;case 5:$=1073741823;break;case 4:$=1e4;break;default:$=5e3}return $=V+$,Q={id:g++,callback:oe,priorityLevel:Q,startTime:V,expirationTime:$,sortIndex:-1},V>j?(Q.sortIndex=V,e(p,Q),n(h)===null&&Q===n(p)&&(_?(b(B),B=-1):_=!0,he(A,V-j))):(Q.sortIndex=$,e(h,Q),P||E||(P=!0,Ae(U))),Q},t.unstable_shouldYield=be,t.unstable_wrapCallback=function(Q){var oe=w;return function(){var V=w;w=oe;try{return Q.apply(this,arguments)}finally{w=V}}}})(id)),id}var Ng;function Q1(){return Ng||(Ng=1,sd.exports=K1()),sd.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 Og;function G1(){if(Og)return It;Og=1;var t=Pf(),e=Q1();function n(r){for(var s="https://reactjs.org/docs/error-decoder.html?invariant="+r,a=1;a<arguments.length;a++)s+="&args[]="+encodeURIComponent(arguments[a]);return"Minified React error #"+r+"; visit "+s+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var i=new Set,o={};function l(r,s){u(r,s),u(r+"Capture",s)}function u(r,s){for(o[r]=s,r=0;r<s.length;r++)i.add(s[r])}var d=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),h=Object.prototype.hasOwnProperty,p=/^[: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]*$/,g={},y={};function w(r){return h.call(y,r)?!0:h.call(g,r)?!1:p.test(r)?y[r]=!0:(g[r]=!0,!1)}function E(r,s,a,c){if(a!==null&&a.type===0)return!1;switch(typeof s){case"function":case"symbol":return!0;case"boolean":return c?!1:a!==null?!a.acceptsBooleans:(r=r.toLowerCase().slice(0,5),r!=="data-"&&r!=="aria-");default:return!1}}function P(r,s,a,c){if(s===null||typeof s>"u"||E(r,s,a,c))return!0;if(c)return!1;if(a!==null)switch(a.type){case 3:return!s;case 4:return s===!1;case 5:return isNaN(s);case 6:return isNaN(s)||1>s}return!1}function _(r,s,a,c,f,m,v){this.acceptsBooleans=s===2||s===3||s===4,this.attributeName=c,this.attributeNamespace=f,this.mustUseProperty=a,this.propertyName=r,this.type=s,this.sanitizeURL=m,this.removeEmptyString=v}var S={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(r){S[r]=new _(r,0,!1,r,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(r){var s=r[0];S[s]=new _(s,1,!1,r[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(r){S[r]=new _(r,2,!1,r.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(r){S[r]=new _(r,2,!1,r,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(r){S[r]=new _(r,3,!1,r.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(r){S[r]=new _(r,3,!0,r,null,!1,!1)}),["capture","download"].forEach(function(r){S[r]=new _(r,4,!1,r,null,!1,!1)}),["cols","rows","size","span"].forEach(function(r){S[r]=new _(r,6,!1,r,null,!1,!1)}),["rowSpan","start"].forEach(function(r){S[r]=new _(r,5,!1,r.toLowerCase(),null,!1,!1)});var b=/[\-:]([a-z])/g;function O(r){return r[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(r){var s=r.replace(b,O);S[s]=new _(s,1,!1,r,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(r){var s=r.replace(b,O);S[s]=new _(s,1,!1,r,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(r){var s=r.replace(b,O);S[s]=new _(s,1,!1,r,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(r){S[r]=new _(r,1,!1,r.toLowerCase(),null,!1,!1)}),S.xlinkHref=new _("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(r){S[r]=new _(r,1,!1,r.toLowerCase(),null,!0,!0)});function k(r,s,a,c){var f=S.hasOwnProperty(s)?S[s]:null;(f!==null?f.type!==0:c||!(2<s.length)||s[0]!=="o"&&s[0]!=="O"||s[1]!=="n"&&s[1]!=="N")&&(P(s,a,f,c)&&(a=null),c||f===null?w(s)&&(a===null?r.removeAttribute(s):r.setAttribute(s,""+a)):f.mustUseProperty?r[f.propertyName]=a===null?f.type===3?!1:"":a:(s=f.attributeName,c=f.attributeNamespace,a===null?r.removeAttribute(s):(f=f.type,a=f===3||f===4&&a===!0?"":""+a,c?r.setAttributeNS(c,s,a):r.setAttribute(s,a))))}var A=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,U=Symbol.for("react.element"),z=Symbol.for("react.portal"),J=Symbol.for("react.fragment"),B=Symbol.for("react.strict_mode"),Z=Symbol.for("react.profiler"),le=Symbol.for("react.provider"),be=Symbol.for("react.context"),De=Symbol.for("react.forward_ref"),Se=Symbol.for("react.suspense"),Ce=Symbol.for("react.suspense_list"),Fe=Symbol.for("react.memo"),Ae=Symbol.for("react.lazy"),he=Symbol.for("react.offscreen"),Q=Symbol.iterator;function oe(r){return r===null||typeof r!="object"?null:(r=Q&&r[Q]||r["@@iterator"],typeof r=="function"?r:null)}var V=Object.assign,j;function $(r){if(j===void 0)try{throw Error()}catch(a){var s=a.stack.trim().match(/\n( *(at )?)/);j=s&&s[1]||""}return` 34`+j+r}var me=!1;function ge(r,s){if(!r||me)return"";me=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(s)if(s=function(){throw Error()},Object.defineProperty(s.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(s,[])}catch(F){var c=F}Reflect.construct(r,[],s)}else{try{s.call()}catch(F){c=F}r.call(s.prototype)}else{try{throw Error()}catch(F){c=F}r()}}catch(F){if(F&&c&&typeof F.stack=="string"){for(var f=F.stack.split(` 35`),m=c.stack.split(` 36`),v=f.length-1,C=m.length-1;1<=v&&0<=C&&f[v]!==m[C];)C--;for(;1<=v&&0<=C;v--,C--)if(f[v]!==m[C]){if(v!==1||C!==1)do if(v--,C--,0>C||f[v]!==m[C]){var T=` 37`+f[v].replace(" at new "," at ");return r.displayName&&T.includes("<anonymous>")&&(T=T.replace("<anonymous>",r.displayName)),T}while(1<=v&&0<=C);break}}}finally{me=!1,Error.prepareStackTrace=a}return(r=r?r.displayName||r.name:"")?$(r):""}function de(r){switch(r.tag){case 5:return $(r.type);case 16:return $("Lazy");case 13:return $("Suspense");case 19:return $("SuspenseList");case 0:case 2:case 15:return r=ge(r.type,!1),r;case 11:return r=ge(r.type.render,!1),r;case 1:return r=ge(r.type,!0),r;default:return""}}function G(r){if(r==null)return null;if(typeof r=="function")return r.displayName||r.name||null;if(typeof r=="string")return r;switch(r){case J:return"Fragment";case z:return"Portal";case Z:return"Profiler";case B:return"StrictMode";case Se:return"Suspense";case Ce:return"SuspenseList"}if(typeof r=="object")switch(r.$$typeof){case be:return(r.displayName||"Context")+".Consumer";case le:return(r._context.displayName||"Context")+".Provider";case De:var s=r.render;return r=r.displayName,r||(r=s.displayName||s.name||"",r=r!==""?"ForwardRef("+r+")":"ForwardRef"),r;case Fe:return s=r.displayName||null,s!==null?s:G(r.type)||"Memo";case Ae:s=r._payload,r=r._init;try{return G(r(s))}catch{}}return null}function we(r){var s=r.type;switch(r.tag){case 24:return"Cache";case 9:return(s.displayName||"Context")+".Consumer";case 10:return(s._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return r=s.render,r=r.displayName||r.name||"",s.displayName||(r!==""?"ForwardRef("+r+")":"ForwardRef");case 7:return"Fragment";case 5:return s;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return G(s);case 8:return s===B?"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 s=="function")return s.displayName||s.name||null;if(typeof s=="string")return s}return null}function ke(r){switch(typeof r){case"boolean":case"number":case"string":case"undefined":return r;case"object":return r;default:return""}}function ve(r){var s=r.type;return(r=r.nodeName)&&r.toLowerCase()==="input"&&(s==="checkbox"||s==="radio")}function at(r){var s=ve(r)?"checked":"value",a=Object.getOwnPropertyDescriptor(r.constructor.prototype,s),c=""+r[s];if(!r.hasOwnProperty(s)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var f=a.get,m=a.set;return Object.defineProperty(r,s,{configurable:!0,get:function(){return f.call(this)},set:function(v){c=""+v,m.call(this,v)}}),Object.defineProperty(r,s,{enumerable:a.enumerable}),{getValue:function(){return c},setValue:function(v){c=""+v},stopTracking:function(){r._valueTracker=null,delete r[s]}}}}function Kt(r){r._valueTracker||(r._valueTracker=at(r))}function ft(r){if(!r)return!1;var s=r._valueTracker;if(!s)return!0;var a=s.getValue(),c="";return r&&(c=ve(r)?r.checked?"true":"false":r.value),r=c,r!==a?(s.setValue(r),!0):!1}function un(r){if(r=r||(typeof document<"u"?document:void 0),typeof r>"u")return null;try{return r.activeElement||r.body}catch{return r.body}}function Qt(r,s){var a=s.checked;return V({},s,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:a??r._wrapperState.initialChecked})}function Gt(r,s){var a=s.defaultValue==null?"":s.defaultValue,c=s.checked!=null?s.checked:s.defaultChecked;a=ke(s.value!=null?s.value:a),r._wrapperState={initialChecked:c,initialValue:a,controlled:s.type==="checkbox"||s.type==="radio"?s.checked!=null:s.value!=null}}function xe(r,s){s=s.checked,s!=null&&k(r,"checked",s,!1)}function ht(r,s){xe(r,s);var a=ke(s.value),c=s.type;if(a!=null)c==="number"?(a===0&&r.value===""||r.value!=a)&&(r.value=""+a):r.value!==""+a&&(r.value=""+a);else if(c==="submit"||c==="reset"){r.removeAttribute("value");return}s.hasOwnProperty("value")?dn(r,s.type,a):s.hasOwnProperty("defaultValue")&&dn(r,s.type,ke(s.defaultValue)),s.checked==null&&s.defaultChecked!=null&&(r.defaultChecked=!!s.defaultChecked)}function cn(r,s,a){if(s.hasOwnProperty("value")||s.hasOwnProperty("defaultValue")){var c=s.type;if(!(c!=="submit"&&c!=="reset"||s.value!==void 0&&s.value!==null))return;s=""+r._wrapperState.initialValue,a||s===r.value||(r.value=s),r.defaultValue=s}a=r.name,a!==""&&(r.name=""),r.defaultChecked=!!r._wrapperState.initialChecked,a!==""&&(r.name=a)}function dn(r,s,a){(s!=="number"||un(r.ownerDocument)!==r)&&(a==null?r.defaultValue=""+r._wrapperState.initialValue:r.defaultValue!==""+a&&(r.defaultValue=""+a))}var Zn=Array.isArray;function er(r,s,a,c){if(r=r.options,s){s={};for(var f=0;f<a.length;f++)s["$"+a[f]]=!0;for(a=0;a<r.length;a++)f=s.hasOwnProperty("$"+r[a].value),r[a].selected!==f&&(r[a].selected=f),f&&c&&(r[a].defaultSelected=!0)}else{for(a=""+ke(a),s=null,f=0;f<r.length;f++){if(r[f].value===a){r[f].selected=!0,c&&(r[f].defaultSelected=!0);return}s!==null||r[f].disabled||(s=r[f])}s!==null&&(s.selected=!0)}}function Mn(r,s){if(s.dangerouslySetInnerHTML!=null)throw Error(n(91));return V({},s,{value:void 0,defaultValue:void 0,children:""+r._wrapperState.initialValue})}function Dh(r,s){var a=s.value;if(a==null){if(a=s.children,s=s.defaultValue,a!=null){if(s!=null)throw Error(n(92));if(Zn(a)){if(1<a.length)throw Error(n(93));a=a[0]}s=a}s==null&&(s=""),a=s}r._wrapperState={initialValue:ke(a)}}function Mh(r,s){var a=ke(s.value),c=ke(s.defaultValue);a!=null&&(a=""+a,a!==r.value&&(r.value=a),s.defaultValue==null&&r.defaultValue!==a&&(r.defaultValue=a)),c!=null&&(r.defaultValue=""+c)}function Ih(r){var s=r.textContent;s===r._wrapperState.initialValue&&s!==""&&s!==null&&(r.value=s)}function Fh(r){switch(r){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 du(r,s){return r==null||r==="http://www.w3.org/1999/xhtml"?Fh(s):r==="http://www.w3.org/2000/svg"&&s==="foreignObject"?"http://www.w3.org/1999/xhtml":r}var ia,Uh=(function(r){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(s,a,c,f){MSApp.execUnsafeLocalFunction(function(){return r(s,a,c,f)})}:r})(function(r,s){if(r.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in r)r.innerHTML=s;else{for(ia=ia||document.createElement("div"),ia.innerHTML="<svg>"+s.valueOf().toString()+"</svg>",s=ia.firstChild;r.firstChild;)r.removeChild(r.firstChild);for(;s.firstChild;)r.appendChild(s.firstChild)}});function Pi(r,s){if(s){var a=r.firstChild;if(a&&a===r.lastChild&&a.nodeType===3){a.nodeValue=s;return}}r.textContent=s}var Ri={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},$b=["Webkit","ms","Moz","O"];Object.keys(Ri).forEach(function(r){$b.forEach(function(s){s=s+r.charAt(0).toUpperCase()+r.substring(1),Ri[s]=Ri[r]})});function Bh(r,s,a){return s==null||typeof s=="boolean"||s===""?"":a||typeof s!="number"||s===0||Ri.hasOwnProperty(r)&&Ri[r]?(""+s).trim():s+"px"}function Vh(r,s){r=r.style;for(var a in s)if(s.hasOwnProperty(a)){var c=a.indexOf("--")===0,f=Bh(a,s[a],c);a==="float"&&(a="cssFloat"),c?r.setProperty(a,f):r[a]=f}}var Wb=V({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 fu(r,s){if(s){if(Wb[r]&&(s.children!=null||s.dangerouslySetInnerHTML!=null))throw Error(n(137,r));if(s.dangerouslySetInnerHTML!=null){if(s.children!=null)throw Error(n(60));if(typeof s.dangerouslySetInnerHTML!="object"||!("__html"in s.dangerouslySetInnerHTML))throw Error(n(61))}if(s.style!=null&&typeof s.style!="object")throw Error(n(62))}}function hu(r,s){if(r.indexOf("-")===-1)return typeof s.is=="string";switch(r){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var pu=null;function mu(r){return r=r.target||r.srcElement||window,r.correspondingUseElement&&(r=r.correspondingUseElement),r.nodeType===3?r.parentNode:r}var gu=null,Rs=null,As=null;function zh(r){if(r=Xi(r)){if(typeof gu!="function")throw Error(n(280));var s=r.stateNode;s&&(s=Pa(s),gu(r.stateNode,r.type,s))}}function $h(r){Rs?As?As.push(r):As=[r]:Rs=r}function Wh(){if(Rs){var r=Rs,s=As;if(As=Rs=null,zh(r),s)for(r=0;r<s.length;r++)zh(s[r])}}function Hh(r,s){return r(s)}function qh(){}var yu=!1;function Kh(r,s,a){if(yu)return r(s,a);yu=!0;try{return Hh(r,s,a)}finally{yu=!1,(Rs!==null||As!==null)&&(qh(),Wh())}}function Ai(r,s){var a=r.stateNode;if(a===null)return null;var c=Pa(a);if(c===null)return null;a=c[s];e:switch(s){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(c=!c.disabled)||(r=r.type,c=!(r==="button"||r==="input"||r==="select"||r==="textarea")),r=!c;break e;default:r=!1}if(r)return null;if(a&&typeof a!="function")throw Error(n(231,s,typeof a));return a}var vu=!1;if(d)try{var Ni={};Object.defineProperty(Ni,"passive",{get:function(){vu=!0}}),window.addEventListener("test",Ni,Ni),window.removeEventListener("test",Ni,Ni)}catch{vu=!1}function Hb(r,s,a,c,f,m,v,C,T){var F=Array.prototype.slice.call(arguments,3);try{s.apply(a,F)}catch(H){this.onError(H)}}var Oi=!1,oa=null,aa=!1,wu=null,qb={onError:function(r){Oi=!0,oa=r}};function Kb(r,s,a,c,f,m,v,C,T){Oi=!1,oa=null,Hb.apply(qb,arguments)}function Qb(r,s,a,c,f,m,v,C,T){if(Kb.apply(this,arguments),Oi){if(Oi){var F=oa;Oi=!1,oa=null}else throw Error(n(198));aa||(aa=!0,wu=F)}}function Vr(r){var s=r,a=r;if(r.alternate)for(;s.return;)s=s.return;else{r=s;do s=r,(s.flags&4098)!==0&&(a=s.return),r=s.return;while(r)}return s.tag===3?a:null}function Qh(r){if(r.tag===13){var s=r.memoizedState;if(s===null&&(r=r.alternate,r!==null&&(s=r.memoizedState)),s!==null)return s.dehydrated}return null}function Gh(r){if(Vr(r)!==r)throw Error(n(188))}function Gb(r){var s=r.alternate;if(!s){if(s=Vr(r),s===null)throw Error(n(188));return s!==r?null:r}for(var a=r,c=s;;){var f=a.return;if(f===null)break;var m=f.alternate;if(m===null){if(c=f.return,c!==null){a=c;continue}break}if(f.child===m.child){for(m=f.child;m;){if(m===a)return Gh(f),r;if(m===c)return Gh(f),s;m=m.sibling}throw Error(n(188))}if(a.return!==c.return)a=f,c=m;else{for(var v=!1,C=f.child;C;){if(C===a){v=!0,a=f,c=m;break}if(C===c){v=!0,c=f,a=m;break}C=C.sibling}if(!v){for(C=m.child;C;){if(C===a){v=!0,a=m,c=f;break}if(C===c){v=!0,c=m,a=f;break}C=C.sibling}if(!v)throw Error(n(189))}}if(a.alternate!==c)throw Error(n(190))}if(a.tag!==3)throw Error(n(188));return a.stateNode.current===a?r:s}function Yh(r){return r=Gb(r),r!==null?Xh(r):null}function Xh(r){if(r.tag===5||r.tag===6)return r;for(r=r.child;r!==null;){var s=Xh(r);if(s!==null)return s;r=r.sibling}return null}var Jh=e.unstable_scheduleCallback,Zh=e.unstable_cancelCallback,Yb=e.unstable_shouldYield,Xb=e.unstable_requestPaint,Xe=e.unstable_now,Jb=e.unstable_getCurrentPriorityLevel,xu=e.unstable_ImmediatePriority,ep=e.unstable_UserBlockingPriority,la=e.unstable_NormalPriority,Zb=e.unstable_LowPriority,tp=e.unstable_IdlePriority,ua=null,_n=null;function eS(r){if(_n&&typeof _n.onCommitFiberRoot=="function")try{_n.onCommitFiberRoot(ua,r,void 0,(r.current.flags&128)===128)}catch{}}var fn=Math.clz32?Math.clz32:rS,tS=Math.log,nS=Math.LN2;function rS(r){return r>>>=0,r===0?32:31-(tS(r)/nS|0)|0}var ca=64,da=4194304;function Li(r){switch(r&-r){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return r&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return r&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return r}}function fa(r,s){var a=r.pendingLanes;if(a===0)return 0;var c=0,f=r.suspendedLanes,m=r.pingedLanes,v=a&268435455;if(v!==0){var C=v&~f;C!==0?c=Li(C):(m&=v,m!==0&&(c=Li(m)))}else v=a&~f,v!==0?c=Li(v):m!==0&&(c=Li(m));if(c===0)return 0;if(s!==0&&s!==c&&(s&f)===0&&(f=c&-c,m=s&-s,f>=m||f===16&&(m&4194240)!==0))return s;if((c&4)!==0&&(c|=a&16),s=r.entangledLanes,s!==0)for(r=r.entanglements,s&=c;0<s;)a=31-fn(s),f=1<<a,c|=r[a],s&=~f;return c}function sS(r,s){switch(r){case 1:case 2:case 4:return s+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 s+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 iS(r,s){for(var a=r.suspendedLanes,c=r.pingedLanes,f=r.expirationTimes,m=r.pendingLanes;0<m;){var v=31-fn(m),C=1<<v,T=f[v];T===-1?((C&a)===0||(C&c)!==0)&&(f[v]=sS(C,s)):T<=s&&(r.expiredLanes|=C),m&=~C}}function bu(r){return r=r.pendingLanes&-1073741825,r!==0?r:r&1073741824?1073741824:0}function np(){var r=ca;return ca<<=1,(ca&4194240)===0&&(ca=64),r}function Su(r){for(var s=[],a=0;31>a;a++)s.push(r);return s}function ji(r,s,a){r.pendingLanes|=s,s!==536870912&&(r.suspendedLanes=0,r.pingedLanes=0),r=r.eventTimes,s=31-fn(s),r[s]=a}function oS(r,s){var a=r.pendingLanes&~s;r.pendingLanes=s,r.suspendedLanes=0,r.pingedLanes=0,r.expiredLanes&=s,r.mutableReadLanes&=s,r.entangledLanes&=s,s=r.entanglements;var c=r.eventTimes;for(r=r.expirationTimes;0<a;){var f=31-fn(a),m=1<<f;s[f]=0,c[f]=-1,r[f]=-1,a&=~m}}function Eu(r,s){var a=r.entangledLanes|=s;for(r=r.entanglements;a;){var c=31-fn(a),f=1<<c;f&s|r[c]&s&&(r[c]|=s),a&=~f}}var Ie=0;function rp(r){return r&=-r,1<r?4<r?(r&268435455)!==0?16:536870912:4:1}var sp,_u,ip,op,ap,Cu=!1,ha=[],tr=null,nr=null,rr=null,Di=new Map,Mi=new Map,sr=[],aS="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 lp(r,s){switch(r){case"focusin":case"focusout":tr=null;break;case"dragenter":case"dragleave":nr=null;break;case"mouseover":case"mouseout":rr=null;break;case"pointerover":case"pointerout":Di.delete(s.pointerId);break;case"gotpointercapture":case"lostpointercapture":Mi.delete(s.pointerId)}}function Ii(r,s,a,c,f,m){return r===null||r.nativeEvent!==m?(r={blockedOn:s,domEventName:a,eventSystemFlags:c,nativeEvent:m,targetContainers:[f]},s!==null&&(s=Xi(s),s!==null&&_u(s)),r):(r.eventSystemFlags|=c,s=r.targetContainers,f!==null&&s.indexOf(f)===-1&&s.push(f),r)}function lS(r,s,a,c,f){switch(s){case"focusin":return tr=Ii(tr,r,s,a,c,f),!0;case"dragenter":return nr=Ii(nr,r,s,a,c,f),!0;case"mouseover":return rr=Ii(rr,r,s,a,c,f),!0;case"pointerover":var m=f.pointerId;return Di.set(m,Ii(Di.get(m)||null,r,s,a,c,f)),!0;case"gotpointercapture":return m=f.pointerId,Mi.set(m,Ii(Mi.get(m)||null,r,s,a,c,f)),!0}return!1}function up(r){var s=zr(r.target);if(s!==null){var a=Vr(s);if(a!==null){if(s=a.tag,s===13){if(s=Qh(a),s!==null){r.blockedOn=s,ap(r.priority,function(){ip(a)});return}}else if(s===3&&a.stateNode.current.memoizedState.isDehydrated){r.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}r.blockedOn=null}function pa(r){if(r.blockedOn!==null)return!1;for(var s=r.targetContainers;0<s.length;){var a=Tu(r.domEventName,r.eventSystemFlags,s[0],r.nativeEvent);if(a===null){a=r.nativeEvent;var c=new a.constructor(a.type,a);pu=c,a.target.dispatchEvent(c),pu=null}else return s=Xi(a),s!==null&&_u(s),r.blockedOn=a,!1;s.shift()}return!0}function cp(r,s,a){pa(r)&&a.delete(s)}function uS(){Cu=!1,tr!==null&&pa(tr)&&(tr=null),nr!==null&&pa(nr)&&(nr=null),rr!==null&&pa(rr)&&(rr=null),Di.forEach(cp),Mi.forEach(cp)}function Fi(r,s){r.blockedOn===s&&(r.blockedOn=null,Cu||(Cu=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,uS)))}function Ui(r){function s(f){return Fi(f,r)}if(0<ha.length){Fi(ha[0],r);for(var a=1;a<ha.length;a++){var c=ha[a];c.blockedOn===r&&(c.blockedOn=null)}}for(tr!==null&&Fi(tr,r),nr!==null&&Fi(nr,r),rr!==null&&Fi(rr,r),Di.forEach(s),Mi.forEach(s),a=0;a<sr.length;a++)c=sr[a],c.blockedOn===r&&(c.blockedOn=null);for(;0<sr.length&&(a=sr[0],a.blockedOn===null);)up(a),a.blockedOn===null&&sr.shift()}var Ns=A.ReactCurrentBatchConfig,ma=!0;function cS(r,s,a,c){var f=Ie,m=Ns.transition;Ns.transition=null;try{Ie=1,ku(r,s,a,c)}finally{Ie=f,Ns.transition=m}}function dS(r,s,a,c){var f=Ie,m=Ns.transition;Ns.transition=null;try{Ie=4,ku(r,s,a,c)}finally{Ie=f,Ns.transition=m}}function ku(r,s,a,c){if(ma){var f=Tu(r,s,a,c);if(f===null)Wu(r,s,c,ga,a),lp(r,c);else if(lS(f,r,s,a,c))c.stopPropagation();else if(lp(r,c),s&4&&-1<aS.indexOf(r)){for(;f!==null;){var m=Xi(f);if(m!==null&&sp(m),m=Tu(r,s,a,c),m===null&&Wu(r,s,c,ga,a),m===f)break;f=m}f!==null&&c.stopPropagation()}else Wu(r,s,c,null,a)}}var ga=null;function Tu(r,s,a,c){if(ga=null,r=mu(c),r=zr(r),r!==null)if(s=Vr(r),s===null)r=null;else if(a=s.tag,a===13){if(r=Qh(s),r!==null)return r;r=null}else if(a===3){if(s.stateNode.current.memoizedState.isDehydrated)return s.tag===3?s.stateNode.containerInfo:null;r=null}else s!==r&&(r=null);return ga=r,null}function dp(r){switch(r){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(Jb()){case xu:return 1;case ep:return 4;case la:case Zb:return 16;case tp:return 536870912;default:return 16}default:return 16}}var ir=null,Pu=null,ya=null;function fp(){if(ya)return ya;var r,s=Pu,a=s.length,c,f="value"in ir?ir.value:ir.textContent,m=f.length;for(r=0;r<a&&s[r]===f[r];r++);var v=a-r;for(c=1;c<=v&&s[a-c]===f[m-c];c++);return ya=f.slice(r,1<c?1-c:void 0)}function va(r){var s=r.keyCode;return"charCode"in r?(r=r.charCode,r===0&&s===13&&(r=13)):r=s,r===10&&(r=13),32<=r||r===13?r:0}function wa(){return!0}function hp(){return!1}function Vt(r){function s(a,c,f,m,v){this._reactName=a,this._targetInst=f,this.type=c,this.nativeEvent=m,this.target=v,this.currentTarget=null;for(var C in r)r.hasOwnProperty(C)&&(a=r[C],this[C]=a?a(m):m[C]);return this.isDefaultPrevented=(m.defaultPrevented!=null?m.defaultPrevented:m.returnValue===!1)?wa:hp,this.isPropagationStopped=hp,this}return V(s.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=wa)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=wa)},persist:function(){},isPersistent:wa}),s}var Os={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(r){return r.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ru=Vt(Os),Bi=V({},Os,{view:0,detail:0}),fS=Vt(Bi),Au,Nu,Vi,xa=V({},Bi,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Lu,button:0,buttons:0,relatedTarget:function(r){return r.relatedTarget===void 0?r.fromElement===r.srcElement?r.toElement:r.fromElement:r.relatedTarget},movementX:function(r){return"movementX"in r?r.movementX:(r!==Vi&&(Vi&&r.type==="mousemove"?(Au=r.screenX-Vi.screenX,Nu=r.screenY-Vi.screenY):Nu=Au=0,Vi=r),Au)},movementY:function(r){return"movementY"in r?r.movementY:Nu}}),pp=Vt(xa),hS=V({},xa,{dataTransfer:0}),pS=Vt(hS),mS=V({},Bi,{relatedTarget:0}),Ou=Vt(mS),gS=V({},Os,{animationName:0,elapsedTime:0,pseudoElement:0}),yS=Vt(gS),vS=V({},Os,{clipboardData:function(r){return"clipboardData"in r?r.clipboardData:window.clipboardData}}),wS=Vt(vS),xS=V({},Os,{data:0}),mp=Vt(xS),bS={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},SS={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"},ES={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function _S(r){var s=this.nativeEvent;return s.getModifierState?s.getModifierState(r):(r=ES[r])?!!s[r]:!1}function Lu(){return _S}var CS=V({},Bi,{key:function(r){if(r.key){var s=bS[r.key]||r.key;if(s!=="Unidentified")return s}return r.type==="keypress"?(r=va(r),r===13?"Enter":String.fromCharCode(r)):r.type==="keydown"||r.type==="keyup"?SS[r.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Lu,charCode:function(r){return r.type==="keypress"?va(r):0},keyCode:function(r){return r.type==="keydown"||r.type==="keyup"?r.keyCode:0},which:function(r){return r.type==="keypress"?va(r):r.type==="keydown"||r.type==="keyup"?r.keyCode:0}}),kS=Vt(CS),TS=V({},xa,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),gp=Vt(TS),PS=V({},Bi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Lu}),RS=Vt(PS),AS=V({},Os,{propertyName:0,elapsedTime:0,pseudoElement:0}),NS=Vt(AS),OS=V({},xa,{deltaX:function(r){return"deltaX"in r?r.deltaX:"wheelDeltaX"in r?-r.wheelDeltaX:0},deltaY:function(r){return"deltaY"in r?r.deltaY:"wheelDeltaY"in r?-r.wheelDeltaY:"wheelDelta"in r?-r.wheelDelta:0},deltaZ:0,deltaMode:0}),LS=Vt(OS),jS=[9,13,27,32],ju=d&&"CompositionEvent"in window,zi=null;d&&"documentMode"in document&&(zi=document.documentMode);var DS=d&&"TextEvent"in window&&!zi,yp=d&&(!ju||zi&&8<zi&&11>=zi),vp=" ",wp=!1;function xp(r,s){switch(r){case"keyup":return jS.indexOf(s.keyCode)!==-1;case"keydown":return s.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function bp(r){return r=r.detail,typeof r=="object"&&"data"in r?r.data:null}var Ls=!1;function MS(r,s){switch(r){case"compositionend":return bp(s);case"keypress":return s.which!==32?null:(wp=!0,vp);case"textInput":return r=s.data,r===vp&&wp?null:r;default:return null}}function IS(r,s){if(Ls)return r==="compositionend"||!ju&&xp(r,s)?(r=fp(),ya=Pu=ir=null,Ls=!1,r):null;switch(r){case"paste":return null;case"keypress":if(!(s.ctrlKey||s.altKey||s.metaKey)||s.ctrlKey&&s.altKey){if(s.char&&1<s.char.length)return s.char;if(s.which)return String.fromCharCode(s.which)}return null;case"compositionend":return yp&&s.locale!=="ko"?null:s.data;default:return null}}var FS={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 Sp(r){var s=r&&r.nodeName&&r.nodeName.toLowerCase();return s==="input"?!!FS[r.type]:s==="textarea"}function Ep(r,s,a,c){$h(c),s=Ca(s,"onChange"),0<s.length&&(a=new Ru("onChange","change",null,a,c),r.push({event:a,listeners:s}))}var $i=null,Wi=null;function US(r){Vp(r,0)}function ba(r){var s=Fs(r);if(ft(s))return r}function BS(r,s){if(r==="change")return s}var _p=!1;if(d){var Du;if(d){var Mu="oninput"in document;if(!Mu){var Cp=document.createElement("div");Cp.setAttribute("oninput","return;"),Mu=typeof Cp.oninput=="function"}Du=Mu}else Du=!1;_p=Du&&(!document.documentMode||9<document.documentMode)}function kp(){$i&&($i.detachEvent("onpropertychange",Tp),Wi=$i=null)}function Tp(r){if(r.propertyName==="value"&&ba(Wi)){var s=[];Ep(s,Wi,r,mu(r)),Kh(US,s)}}function VS(r,s,a){r==="focusin"?(kp(),$i=s,Wi=a,$i.attachEvent("onpropertychange",Tp)):r==="focusout"&&kp()}function zS(r){if(r==="selectionchange"||r==="keyup"||r==="keydown")return ba(Wi)}function $S(r,s){if(r==="click")return ba(s)}function WS(r,s){if(r==="input"||r==="change")return ba(s)}function HS(r,s){return r===s&&(r!==0||1/r===1/s)||r!==r&&s!==s}var hn=typeof Object.is=="function"?Object.is:HS;function Hi(r,s){if(hn(r,s))return!0;if(typeof r!="object"||r===null||typeof s!="object"||s===null)return!1;var a=Object.keys(r),c=Object.keys(s);if(a.length!==c.length)return!1;for(c=0;c<a.length;c++){var f=a[c];if(!h.call(s,f)||!hn(r[f],s[f]))return!1}return!0}function Pp(r){for(;r&&r.firstChild;)r=r.firstChild;return r}function Rp(r,s){var a=Pp(r);r=0;for(var c;a;){if(a.nodeType===3){if(c=r+a.textContent.length,r<=s&&c>=s)return{node:a,offset:s-r};r=c}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=Pp(a)}}function Ap(r,s){return r&&s?r===s?!0:r&&r.nodeType===3?!1:s&&s.nodeType===3?Ap(r,s.parentNode):"contains"in r?r.contains(s):r.compareDocumentPosition?!!(r.compareDocumentPosition(s)&16):!1:!1}function Np(){for(var r=window,s=un();s instanceof r.HTMLIFrameElement;){try{var a=typeof s.contentWindow.location.href=="string"}catch{a=!1}if(a)r=s.contentWindow;else break;s=un(r.document)}return s}function Iu(r){var s=r&&r.nodeName&&r.nodeName.toLowerCase();return s&&(s==="input"&&(r.type==="text"||r.type==="search"||r.type==="tel"||r.type==="url"||r.type==="password")||s==="textarea"||r.contentEditable==="true")}function qS(r){var s=Np(),a=r.focusedElem,c=r.selectionRange;if(s!==a&&a&&a.ownerDocument&&Ap(a.ownerDocument.documentElement,a)){if(c!==null&&Iu(a)){if(s=c.start,r=c.end,r===void 0&&(r=s),"selectionStart"in a)a.selectionStart=s,a.selectionEnd=Math.min(r,a.value.length);else if(r=(s=a.ownerDocument||document)&&s.defaultView||window,r.getSelection){r=r.getSelection();var f=a.textContent.length,m=Math.min(c.start,f);c=c.end===void 0?m:Math.min(c.end,f),!r.extend&&m>c&&(f=c,c=m,m=f),f=Rp(a,m);var v=Rp(a,c);f&&v&&(r.rangeCount!==1||r.anchorNode!==f.node||r.anchorOffset!==f.offset||r.focusNode!==v.node||r.focusOffset!==v.offset)&&(s=s.createRange(),s.setStart(f.node,f.offset),r.removeAllRanges(),m>c?(r.addRange(s),r.extend(v.node,v.offset)):(s.setEnd(v.node,v.offset),r.addRange(s)))}}for(s=[],r=a;r=r.parentNode;)r.nodeType===1&&s.push({element:r,left:r.scrollLeft,top:r.scrollTop});for(typeof a.focus=="function"&&a.focus(),a=0;a<s.length;a++)r=s[a],r.element.scrollLeft=r.left,r.element.scrollTop=r.top}}var KS=d&&"documentMode"in document&&11>=document.documentMode,js=null,Fu=null,qi=null,Uu=!1;function Op(r,s,a){var c=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;Uu||js==null||js!==un(c)||(c=js,"selectionStart"in c&&Iu(c)?c={start:c.selectionStart,end:c.selectionEnd}:(c=(c.ownerDocument&&c.ownerDocument.defaultView||window).getSelection(),c={anchorNode:c.anchorNode,anchorOffset:c.anchorOffset,focusNode:c.focusNode,focusOffset:c.focusOffset}),qi&&Hi(qi,c)||(qi=c,c=Ca(Fu,"onSelect"),0<c.length&&(s=new Ru("onSelect","select",null,s,a),r.push({event:s,listeners:c}),s.target=js)))}function Sa(r,s){var a={};return a[r.toLowerCase()]=s.toLowerCase(),a["Webkit"+r]="webkit"+s,a["Moz"+r]="moz"+s,a}var Ds={animationend:Sa("Animation","AnimationEnd"),animationiteration:Sa("Animation","AnimationIteration"),animationstart:Sa("Animation","AnimationStart"),transitionend:Sa("Transition","TransitionEnd")},Bu={},Lp={};d&&(Lp=document.createElement("div").style,"AnimationEvent"in window||(delete Ds.animationend.animation,delete Ds.animationiteration.animation,delete Ds.animationstart.animation),"TransitionEvent"in window||delete Ds.transitionend.transition);function Ea(r){if(Bu[r])return Bu[r];if(!Ds[r])return r;var s=Ds[r],a;for(a in s)if(s.hasOwnProperty(a)&&a in Lp)return Bu[r]=s[a];return r}var jp=Ea("animationend"),Dp=Ea("animationiteration"),Mp=Ea("animationstart"),Ip=Ea("transitionend"),Fp=new Map,Up="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 or(r,s){Fp.set(r,s),l(s,[r])}for(var Vu=0;Vu<Up.length;Vu++){var zu=Up[Vu],QS=zu.toLowerCase(),GS=zu[0].toUpperCase()+zu.slice(1);or(QS,"on"+GS)}or(jp,"onAnimationEnd"),or(Dp,"onAnimationIteration"),or(Mp,"onAnimationStart"),or("dblclick","onDoubleClick"),or("focusin","onFocus"),or("focusout","onBlur"),or(Ip,"onTransitionEnd"),u("onMouseEnter",["mouseout","mouseover"]),u("onMouseLeave",["mouseout","mouseover"]),u("onPointerEnter",["pointerout","pointerover"]),u("onPointerLeave",["pointerout","pointerover"]),l("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),l("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),l("onBeforeInput",["compositionend","keypress","textInput","paste"]),l("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ki="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(" "),YS=new Set("cancel close invalid load scroll toggle".split(" ").concat(Ki));function Bp(r,s,a){var c=r.type||"unknown-event";r.currentTarget=a,Qb(c,s,void 0,r),r.currentTarget=null}function Vp(r,s){s=(s&4)!==0;for(var a=0;a<r.length;a++){var c=r[a],f=c.event;c=c.listeners;e:{var m=void 0;if(s)for(var v=c.length-1;0<=v;v--){var C=c[v],T=C.instance,F=C.currentTarget;if(C=C.listener,T!==m&&f.isPropagationStopped())break e;Bp(f,C,F),m=T}else for(v=0;v<c.length;v++){if(C=c[v],T=C.instance,F=C.currentTarget,C=C.listener,T!==m&&f.isPropagationStopped())break e;Bp(f,C,F),m=T}}}if(aa)throw r=wu,aa=!1,wu=null,r}function Ve(r,s){var a=s[Yu];a===void 0&&(a=s[Yu]=new Set);var c=r+"__bubble";a.has(c)||(zp(s,r,2,!1),a.add(c))}function $u(r,s,a){var c=0;s&&(c|=4),zp(a,r,c,s)}var _a="_reactListening"+Math.random().toString(36).slice(2);function Qi(r){if(!r[_a]){r[_a]=!0,i.forEach(function(a){a!=="selectionchange"&&(YS.has(a)||$u(a,!1,r),$u(a,!0,r))});var s=r.nodeType===9?r:r.ownerDocument;s===null||s[_a]||(s[_a]=!0,$u("selectionchange",!1,s))}}function zp(r,s,a,c){switch(dp(s)){case 1:var f=cS;break;case 4:f=dS;break;default:f=ku}a=f.bind(null,s,a,r),f=void 0,!vu||s!=="touchstart"&&s!=="touchmove"&&s!=="wheel"||(f=!0),c?f!==void 0?r.addEventListener(s,a,{capture:!0,passive:f}):r.addEventListener(s,a,!0):f!==void 0?r.addEventListener(s,a,{passive:f}):r.addEventListener(s,a,!1)}function Wu(r,s,a,c,f){var m=c;if((s&1)===0&&(s&2)===0&&c!==null)e:for(;;){if(c===null)return;var v=c.tag;if(v===3||v===4){var C=c.stateNode.containerInfo;if(C===f||C.nodeType===8&&C.parentNode===f)break;if(v===4)for(v=c.return;v!==null;){var T=v.tag;if((T===3||T===4)&&(T=v.stateNode.containerInfo,T===f||T.nodeType===8&&T.parentNode===f))return;v=v.return}for(;C!==null;){if(v=zr(C),v===null)return;if(T=v.tag,T===5||T===6){c=m=v;continue e}C=C.parentNode}}c=c.return}Kh(function(){var F=m,H=mu(a),q=[];e:{var W=Fp.get(r);if(W!==void 0){var X=Ru,ne=r;switch(r){case"keypress":if(va(a)===0)break e;case"keydown":case"keyup":X=kS;break;case"focusin":ne="focus",X=Ou;break;case"focusout":ne="blur",X=Ou;break;case"beforeblur":case"afterblur":X=Ou;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":X=pp;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":X=pS;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":X=RS;break;case jp:case Dp:case Mp:X=yS;break;case Ip:X=NS;break;case"scroll":X=fS;break;case"wheel":X=LS;break;case"copy":case"cut":case"paste":X=wS;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":X=gp}var ie=(s&4)!==0,Je=!ie&&r==="scroll",M=ie?W!==null?W+"Capture":null:W;ie=[];for(var L=F,I;L!==null;){I=L;var K=I.stateNode;if(I.tag===5&&K!==null&&(I=K,M!==null&&(K=Ai(L,M),K!=null&&ie.push(Gi(L,K,I)))),Je)break;L=L.return}0<ie.length&&(W=new X(W,ne,null,a,H),q.push({event:W,listeners:ie}))}}if((s&7)===0){e:{if(W=r==="mouseover"||r==="pointerover",X=r==="mouseout"||r==="pointerout",W&&a!==pu&&(ne=a.relatedTarget||a.fromElement)&&(zr(ne)||ne[In]))break e;if((X||W)&&(W=H.window===H?H:(W=H.ownerDocument)?W.defaultView||W.parentWindow:window,X?(ne=a.relatedTarget||a.toElement,X=F,ne=ne?zr(ne):null,ne!==null&&(Je=Vr(ne),ne!==Je||ne.tag!==5&&ne.tag!==6)&&(ne=null)):(X=null,ne=F),X!==ne)){if(ie=pp,K="onMouseLeave",M="onMouseEnter",L="mouse",(r==="pointerout"||r==="pointerover")&&(ie=gp,K="onPointerLeave",M="onPointerEnter",L="pointer"),Je=X==null?W:Fs(X),I=ne==null?W:Fs(ne),W=new ie(K,L+"leave",X,a,H),W.target=Je,W.relatedTarget=I,K=null,zr(H)===F&&(ie=new ie(M,L+"enter",ne,a,H),ie.target=I,ie.relatedTarget=Je,K=ie),Je=K,X&&ne)t:{for(ie=X,M=ne,L=0,I=ie;I;I=Ms(I))L++;for(I=0,K=M;K;K=Ms(K))I++;for(;0<L-I;)ie=Ms(ie),L--;for(;0<I-L;)M=Ms(M),I--;for(;L--;){if(ie===M||M!==null&&ie===M.alternate)break t;ie=Ms(ie),M=Ms(M)}ie=null}else ie=null;X!==null&&$p(q,W,X,ie,!1),ne!==null&&Je!==null&&$p(q,Je,ne,ie,!0)}}e:{if(W=F?Fs(F):window,X=W.nodeName&&W.nodeName.toLowerCase(),X==="select"||X==="input"&&W.type==="file")var ae=BS;else if(Sp(W))if(_p)ae=WS;else{ae=zS;var ue=VS}else(X=W.nodeName)&&X.toLowerCase()==="input"&&(W.type==="checkbox"||W.type==="radio")&&(ae=$S);if(ae&&(ae=ae(r,F))){Ep(q,ae,a,H);break e}ue&&ue(r,W,F),r==="focusout"&&(ue=W._wrapperState)&&ue.controlled&&W.type==="number"&&dn(W,"number",W.value)}switch(ue=F?Fs(F):window,r){case"focusin":(Sp(ue)||ue.contentEditable==="true")&&(js=ue,Fu=F,qi=null);break;case"focusout":qi=Fu=js=null;break;case"mousedown":Uu=!0;break;case"contextmenu":case"mouseup":case"dragend":Uu=!1,Op(q,a,H);break;case"selectionchange":if(KS)break;case"keydown":case"keyup":Op(q,a,H)}var ce;if(ju)e:{switch(r){case"compositionstart":var ye="onCompositionStart";break e;case"compositionend":ye="onCompositionEnd";break e;case"compositionupdate":ye="onCompositionUpdate";break e}ye=void 0}else Ls?xp(r,a)&&(ye="onCompositionEnd"):r==="keydown"&&a.keyCode===229&&(ye="onCompositionStart");ye&&(yp&&a.locale!=="ko"&&(Ls||ye!=="onCompositionStart"?ye==="onCompositionEnd"&&Ls&&(ce=fp()):(ir=H,Pu="value"in ir?ir.value:ir.textContent,Ls=!0)),ue=Ca(F,ye),0<ue.length&&(ye=new mp(ye,r,null,a,H),q.push({event:ye,listeners:ue}),ce?ye.data=ce:(ce=bp(a),ce!==null&&(ye.data=ce)))),(ce=DS?MS(r,a):IS(r,a))&&(F=Ca(F,"onBeforeInput"),0<F.length&&(H=new mp("onBeforeInput","beforeinput",null,a,H),q.push({event:H,listeners:F}),H.data=ce))}Vp(q,s)})}function Gi(r,s,a){return{instance:r,listener:s,currentTarget:a}}function Ca(r,s){for(var a=s+"Capture",c=[];r!==null;){var f=r,m=f.stateNode;f.tag===5&&m!==null&&(f=m,m=Ai(r,a),m!=null&&c.unshift(Gi(r,m,f)),m=Ai(r,s),m!=null&&c.push(Gi(r,m,f))),r=r.return}return c}function Ms(r){if(r===null)return null;do r=r.return;while(r&&r.tag!==5);return r||null}function $p(r,s,a,c,f){for(var m=s._reactName,v=[];a!==null&&a!==c;){var C=a,T=C.alternate,F=C.stateNode;if(T!==null&&T===c)break;C.tag===5&&F!==null&&(C=F,f?(T=Ai(a,m),T!=null&&v.unshift(Gi(a,T,C))):f||(T=Ai(a,m),T!=null&&v.push(Gi(a,T,C)))),a=a.return}v.length!==0&&r.push({event:s,listeners:v})}var XS=/\r\n?/g,JS=/\u0000|\uFFFD/g;function Wp(r){return(typeof r=="string"?r:""+r).replace(XS,` 38`).replace(JS,"")}function ka(r,s,a){if(s=Wp(s),Wp(r)!==s&&a)throw Error(n(425))}function Ta(){}var Hu=null,qu=null;function Ku(r,s){return r==="textarea"||r==="noscript"||typeof s.children=="string"||typeof s.children=="number"||typeof s.dangerouslySetInnerHTML=="object"&&s.dangerouslySetInnerHTML!==null&&s.dangerouslySetInnerHTML.__html!=null}var Qu=typeof setTimeout=="function"?setTimeout:void 0,ZS=typeof clearTimeout=="function"?clearTimeout:void 0,Hp=typeof Promise=="function"?Promise:void 0,e1=typeof queueMicrotask=="function"?queueMicrotask:typeof Hp<"u"?function(r){return Hp.resolve(null).then(r).catch(t1)}:Qu;function t1(r){setTimeout(function(){throw r})}function Gu(r,s){var a=s,c=0;do{var f=a.nextSibling;if(r.removeChild(a),f&&f.nodeType===8)if(a=f.data,a==="/$"){if(c===0){r.removeChild(f),Ui(s);return}c--}else a!=="$"&&a!=="$?"&&a!=="$!"||c++;a=f}while(a);Ui(s)}function ar(r){for(;r!=null;r=r.nextSibling){var s=r.nodeType;if(s===1||s===3)break;if(s===8){if(s=r.data,s==="$"||s==="$!"||s==="$?")break;if(s==="/$")return null}}return r}function qp(r){r=r.previousSibling;for(var s=0;r;){if(r.nodeType===8){var a=r.data;if(a==="$"||a==="$!"||a==="$?"){if(s===0)return r;s--}else a==="/$"&&s++}r=r.previousSibling}return null}var Is=Math.random().toString(36).slice(2),Cn="__reactFiber$"+Is,Yi="__reactProps$"+Is,In="__reactContainer$"+Is,Yu="__reactEvents$"+Is,n1="__reactListeners$"+Is,r1="__reactHandles$"+Is;function zr(r){var s=r[Cn];if(s)return s;for(var a=r.parentNode;a;){if(s=a[In]||a[Cn]){if(a=s.alternate,s.child!==null||a!==null&&a.child!==null)for(r=qp(r);r!==null;){if(a=r[Cn])return a;r=qp(r)}return s}r=a,a=r.parentNode}return null}function Xi(r){return r=r[Cn]||r[In],!r||r.tag!==5&&r.tag!==6&&r.tag!==13&&r.tag!==3?null:r}function Fs(r){if(r.tag===5||r.tag===6)return r.stateNode;throw Error(n(33))}function Pa(r){return r[Yi]||null}var Xu=[],Us=-1;function lr(r){return{current:r}}function ze(r){0>Us||(r.current=Xu[Us],Xu[Us]=null,Us--)}function Be(r,s){Us++,Xu[Us]=r.current,r.current=s}var ur={},xt=lr(ur),Ot=lr(!1),$r=ur;function Bs(r,s){var a=r.type.contextTypes;if(!a)return ur;var c=r.stateNode;if(c&&c.__reactInternalMemoizedUnmaskedChildContext===s)return c.__reactInternalMemoizedMaskedChildContext;var f={},m;
vendor: 4,188 bytes, line 38
38for(m in a)f[m]=s[m];return c&&(r=r.stateNode,r.__reactInternalMemoizedUnmaskedChildContext=s,r.__reactInternalMemoizedMaskedChildContext=f),f}function Lt(r){return r=r.childContextTypes,r!=null}function Ra(){ze(Ot),ze(xt)}function Kp(r,s,a){if(xt.current!==ur)throw Error(n(168));Be(xt,s),Be(Ot,a)}function Qp(r,s,a){var c=r.stateNode;if(s=s.childContextTypes,typeof c.getChildContext!="function")return a;c=c.getChildContext();for(var f in c)if(!(f in s))throw Error(n(108,we(r)||"Unknown",f));return V({},a,c)}function Aa(r){return r=(r=r.stateNode)&&r.__reactInternalMemoizedMergedChildContext||ur,$r=xt.current,Be(xt,r),Be(Ot,Ot.current),!0}function Gp(r,s,a){var c=r.stateNode;if(!c)throw Error(n(169));a?(r=Qp(r,s,$r),c.__reactInternalMemoizedMergedChildContext=r,ze(Ot),ze(xt),Be(xt,r)):ze(Ot),Be(Ot,a)}var Fn=null,Na=!1,Ju=!1;function Yp(r){Fn===null?Fn=[r]:Fn.push(r)}function s1(r){Na=!0,Yp(r)}function cr(){if(!Ju&&Fn!==null){Ju=!0;var r=0,s=Ie;try{var a=Fn;for(Ie=1;r<a.length;r++){var c=a[r];do c=c(!0);while(c!==null)}Fn=null,Na=!1}catch(f){throw Fn!==null&&(Fn=Fn.slice(r+1)),Jh(xu,cr),f}finally{Ie=s,Ju=!1}}return null}var Vs=[],zs=0,Oa=null,La=0,Yt=[],Xt=0,Wr=null,Un=1,Bn="";function Hr(r,s){Vs[zs++]=La,Vs[zs++]=Oa,Oa=r,La=s}function Xp(r,s,a){Yt[Xt++]=Un,Yt[Xt++]=Bn,Yt[Xt++]=Wr,Wr=r;var c=Un;r=Bn;var f=32-fn(c)-1;c&=~(1<<f),a+=1;var m=32-fn(s)+f;if(30<m){var v=f-f%5;m=(c&(1<<v)-1).toString(32),c>>=v,f-=v,Un=1<<32-fn(s)+f|a<<f|c,Bn=m+r}else Un=1<<m|a<<f|c,Bn=r}function Zu(r){r.return!==null&&(Hr(r,1),Xp(r,1,0))}function ec(r){for(;r===Oa;)Oa=Vs[--zs],Vs[zs]=null,La=Vs[--zs],Vs[zs]=null;for(;r===Wr;)Wr=Yt[--Xt],Yt[Xt]=null,Bn=Yt[--Xt],Yt[Xt]=null,Un=Yt[--Xt],Yt[Xt]=null}var zt=null,$t=null,We=!1,pn=null;function Jp(r,s){var a=tn(5,null,null,0);a.elementType="DELETED",a.stateNode=s,a.return=r,s=r.deletions,s===null?(r.deletions=[a],r.flags|=16):s.push(a)}function Zp(r,s){switch(r.tag){case 5:var a=r.type;return s=s.nodeType!==1||a.toLowerCase()!==s.nodeName.toLowerCase()?null:s,s!==null?(r.stateNode=s,zt=r,$t=ar(s.firstChild),!0):!1;case 6:return s=r.pendingProps===""||s.nodeType!==3?null:s,s!==null?(r.stateNode=s,zt=r,$t=null,!0):!1;case 13:return s=s.nodeType!==8?null:s,s!==null?(a=Wr!==null?{id:Un,overflow:Bn}:null,r.memoizedState={dehydrated:s,treeContext:a,retryLane:1073741824},a=tn(18,null,null,0),a.stateNode=s,a.return=r,r.child=a,zt=r,$t=null,!0):!1;default:return!1}}function tc(r){return(r.mode&1)!==0&&(r.flags&128)===0}function nc(r){if(We){var s=$t;if(s){var a=s;if(!Zp(r,s)){if(tc(r))throw Error(n(418));s=ar(a.nextSibling);var c=zt;s&&Zp(r,s)?Jp(c,a):(r.flags=r.flags&-4097|2,We=!1,zt=r)}}else{if(tc(r))throw Error(n(418));r.flags=r.flags&-4097|2,We=!1,zt=r}}}function em(r){for(r=r.return;r!==null&&r.tag!==5&&r.tag!==3&&r.tag!==13;)r=r.return;zt=r}function ja(r){if(r!==zt)return!1;if(!We)return em(r),We=!0,!1;var s;if((s=r.tag!==3)&&!(s=r.tag!==5)&&(s=r.type,s=s!=="head"&&s!=="body"&&!Ku(r.type,r.memoizedProps)),s&&(s=$t)){if(tc(r))throw tm(),Error(n(418));for(;s;)Jp(r,s),s=ar(s.nextSibling)}if(em(r),r.tag===13){if(r=r.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(n(317));e:{for(r=r.nextSibling,s=0;r;){if(r.nodeType===8){var a=r.data;if(a==="/$"){if(s===0){$t=ar(r.nextSibling);break e}s--}else a!=="$"&&a!=="$!"&&a!=="$?"||s++}r=r.nextSibling}$t=null}}else $t=zt?ar(r.stateNode.nextSibling):null;return!0}function tm(){for(var r=$t;r;)r=ar(r.nextSibling)}function $s(){$t=zt=null,We=!1}function rc(r){pn===null?pn=[r]:pn.push(r)}var i1=A.ReactCurrentBatchConfig;function Ji(r,s,a){if(r=a.ref,r!==null&&typeof r!="function"&&typeof r!="object"){if(a._owner){if(a=a._owner,a){if(a.tag!==1)throw Error(n(309));var c=a.stateNode}if(!c)throw Error(n(147,r));var f=c,m=""+r;return s!==null&&s.ref!==null&&typeof s.ref=="function"&&s.ref._stringRef===m?s.ref:(s=function(v){var C=f.refs;v===null?delete C[m]:C[m]=v},s._stringRef=m,s)}if(typeof r!="string")throw Error(n(284));if(!a._owner)throw Error(n(290,r))}return r}function Da(r,s){throw r=Object.prototype.toString.call(s),Error(n(31,r==="[object Object]"?"object with keys {"+Object.keys(s).join(", ")+"}":r))}function nm(r){var s=r._init;return s(r._payload)}
vendor: 5,148 bytes, line 38
38function rm(r){function s(M,L){if(r){var I=M.deletions;I===null?(M.deletions=[L],M.flags|=16):I.push(L)}}function a(M,L){if(!r)return null;for(;L!==null;)s(M,L),L=L.sibling;return null}function c(M,L){for(M=new Map;L!==null;)L.key!==null?M.set(L.key,L):M.set(L.index,L),L=L.sibling;return M}function f(M,L){return M=vr(M,L),M.index=0,M.sibling=null,M}function m(M,L,I){return M.index=I,r?(I=M.alternate,I!==null?(I=I.index,I<L?(M.flags|=2,L):I):(M.flags|=2,L)):(M.flags|=1048576,L)}function v(M){return r&&M.alternate===null&&(M.flags|=2),M}function C(M,L,I,K){return L===null||L.tag!==6?(L=Qc(I,M.mode,K),L.return=M,L):(L=f(L,I),L.return=M,L)}function T(M,L,I,K){var ae=I.type;return ae===J?H(M,L,I.props.children,K,I.key):L!==null&&(L.elementType===ae||typeof ae=="object"&&ae!==null&&ae.$$typeof===Ae&&nm(ae)===L.type)?(K=f(L,I.props),K.ref=Ji(M,L,I),K.return=M,K):(K=il(I.type,I.key,I.props,null,M.mode,K),K.ref=Ji(M,L,I),K.return=M,K)}function F(M,L,I,K){return L===null||L.tag!==4||L.stateNode.containerInfo!==I.containerInfo||L.stateNode.implementation!==I.implementation?(L=Gc(I,M.mode,K),L.return=M,L):(L=f(L,I.children||[]),L.return=M,L)}function H(M,L,I,K,ae){return L===null||L.tag!==7?(L=Zr(I,M.mode,K,ae),L.return=M,L):(L=f(L,I),L.return=M,L)}function q(M,L,I){if(typeof L=="string"&&L!==""||typeof L=="number")return L=Qc(""+L,M.mode,I),L.return=M,L;if(typeof L=="object"&&L!==null){switch(L.$$typeof){case U:return I=il(L.type,L.key,L.props,null,M.mode,I),I.ref=Ji(M,null,L),I.return=M,I;case z:return L=Gc(L,M.mode,I),L.return=M,L;case Ae:var K=L._init;return q(M,K(L._payload),I)}if(Zn(L)||oe(L))return L=Zr(L,M.mode,I,null),L.return=M,L;Da(M,L)}return null}function W(M,L,I,K){var ae=L!==null?L.key:null;if(typeof I=="string"&&I!==""||typeof I=="number")return ae!==null?null:C(M,L,""+I,K);if(typeof I=="object"&&I!==null){switch(I.$$typeof){case U:return I.key===ae?T(M,L,I,K):null;case z:return I.key===ae?F(M,L,I,K):null;case Ae:return ae=I._init,W(M,L,ae(I._payload),K)}if(Zn(I)||oe(I))return ae!==null?null:H(M,L,I,K,null);Da(M,I)}return null}function X(M,L,I,K,ae){if(typeof K=="string"&&K!==""||typeof K=="number")return M=M.get(I)||null,C(L,M,""+K,ae);if(typeof K=="object"&&K!==null){switch(K.$$typeof){case U:return M=M.get(K.key===null?I:K.key)||null,T(L,M,K,ae);case z:return M=M.get(K.key===null?I:K.key)||null,F(L,M,K,ae);case Ae:var ue=K._init;return X(M,L,I,ue(K._payload),ae)}if(Zn(K)||oe(K))return M=M.get(I)||null,H(L,M,K,ae,null);Da(L,K)}return null}function ne(M,L,I,K){for(var ae=null,ue=null,ce=L,ye=L=0,ct=null;ce!==null&&ye<I.length;ye++){ce.index>ye?(ct=ce,ce=null):ct=ce.sibling;var Oe=W(M,ce,I[ye],K);if(Oe===null){ce===null&&(ce=ct);break}r&&ce&&Oe.alternate===null&&s(M,ce),L=m(Oe,L,ye),ue===null?ae=Oe:ue.sibling=Oe,ue=Oe,ce=ct}if(ye===I.length)return a(M,ce),We&&Hr(M,ye),ae;if(ce===null){for(;ye<I.length;ye++)ce=q(M,I[ye],K),ce!==null&&(L=m(ce,L,ye),ue===null?ae=ce:ue.sibling=ce,ue=ce);return We&&Hr(M,ye),ae}for(ce=c(M,ce);ye<I.length;ye++)ct=X(ce,M,ye,I[ye],K),ct!==null&&(r&&ct.alternate!==null&&ce.delete(ct.key===null?ye:ct.key),L=m(ct,L,ye),ue===null?ae=ct:ue.sibling=ct,ue=ct);return r&&ce.forEach(function(wr){return s(M,wr)}),We&&Hr(M,ye),ae}function ie(M,L,I,K){var ae=oe(I);if(typeof ae!="function")throw Error(n(150));if(I=ae.call(I),I==null)throw Error(n(151));for(var ue=ae=null,ce=L,ye=L=0,ct=null,Oe=I.next();ce!==null&&!Oe.done;ye++,Oe=I.next()){ce.index>ye?(ct=ce,ce=null):ct=ce.sibling;var wr=W(M,ce,Oe.value,K);if(wr===null){ce===null&&(ce=ct);break}r&&ce&&wr.alternate===null&&s(M,ce),L=m(wr,L,ye),ue===null?ae=wr:ue.sibling=wr,ue=wr,ce=ct}if(Oe.done)return a(M,ce),We&&Hr(M,ye),ae;if(ce===null){for(;!Oe.done;ye++,Oe=I.next())Oe=q(M,Oe.value,K),Oe!==null&&(L=m(Oe,L,ye),ue===null?ae=Oe:ue.sibling=Oe,ue=Oe);return We&&Hr(M,ye),ae}for(ce=c(M,ce);!Oe.done;ye++,Oe=I.next())Oe=X(ce,M,ye,Oe.value,K),Oe!==null&&(r&&Oe.alternate!==null&&ce.delete(Oe.key===null?ye:Oe.key),L=m(Oe,L,ye),ue===null?ae=Oe:ue.sibling=Oe,ue=Oe);return r&&ce.forEach(function(F1){return s(M,F1)}),We&&Hr(M,ye),ae}function Je(M,L,I,K){if(typeof I=="object"&&I!==null&&I.type===J&&I.key===null&&(I=I.props.children),typeof I=="object"&&I!==null){switch(I.$$typeof){case U:e:{for(var ae=I.key,ue=L;ue!==null;){if(ue.key===ae){if(ae=I.type,ae===J){if(ue.tag===7){a(M,ue.sibling),L=f(ue,I.props.children),L.return=M,M=L;break e}}else if(ue.elementType===ae||typeof ae=="object"&&ae!==null&&ae.$$typeof===Ae&&nm(ae)===ue.type){a(M,ue.sibling),L=f(ue,I.props),L.ref=Ji(M,ue,I),L.return=M,M=L;break e}a(M,ue);break}else s(M,ue);ue=ue.sibling}I.type===J?(L=Zr(I.props.children,M.mode,K,I.key),L.return=M,M=L):(K=il(I.type,I.key,I.props,null,M.mode,K),K.ref=Ji(M,L,I),K.return=M,M=K)}return v(M);case z:e:{for(ue=I.key;L!==null;){if(L.key===ue)if(L.tag===4&&L.stateNode.containerInfo===I.containerInfo&&L.stateNode.implementation===I.implementation){a(M,L.sibling),L=f(L,I.children||[]),L.return=M,M=L;break e}else{a(M,L);break}else s(M,L);L=L.sibling}L=Gc(I,M.mode,K),L.return=M,M=L}return v(M);case Ae:return ue=I._init,Je(M,L,ue(I._payload),K)}if(Zn(I))return ne(M,L,I,K);if(oe(I))return ie(M,L,I,K);Da(M,I)}
vendor: 8,029 bytes, line 38
38return typeof I=="string"&&I!==""||typeof I=="number"?(I=""+I,L!==null&&L.tag===6?(a(M,L.sibling),L=f(L,I),L.return=M,M=L):(a(M,L),L=Qc(I,M.mode,K),L.return=M,M=L),v(M)):a(M,L)}return Je}var Ws=rm(!0),sm=rm(!1),Ma=lr(null),Ia=null,Hs=null,sc=null;function ic(){sc=Hs=Ia=null}function oc(r){var s=Ma.current;ze(Ma),r._currentValue=s}function ac(r,s,a){for(;r!==null;){var c=r.alternate;if((r.childLanes&s)!==s?(r.childLanes|=s,c!==null&&(c.childLanes|=s)):c!==null&&(c.childLanes&s)!==s&&(c.childLanes|=s),r===a)break;r=r.return}}function qs(r,s){Ia=r,sc=Hs=null,r=r.dependencies,r!==null&&r.firstContext!==null&&((r.lanes&s)!==0&&(jt=!0),r.firstContext=null)}function Jt(r){var s=r._currentValue;if(sc!==r)if(r={context:r,memoizedValue:s,next:null},Hs===null){if(Ia===null)throw Error(n(308));Hs=r,Ia.dependencies={lanes:0,firstContext:r}}else Hs=Hs.next=r;return s}var qr=null;function lc(r){qr===null?qr=[r]:qr.push(r)}function im(r,s,a,c){var f=s.interleaved;return f===null?(a.next=a,lc(s)):(a.next=f.next,f.next=a),s.interleaved=a,Vn(r,c)}function Vn(r,s){r.lanes|=s;var a=r.alternate;for(a!==null&&(a.lanes|=s),a=r,r=r.return;r!==null;)r.childLanes|=s,a=r.alternate,a!==null&&(a.childLanes|=s),a=r,r=r.return;return a.tag===3?a.stateNode:null}var dr=!1;function uc(r){r.updateQueue={baseState:r.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function om(r,s){r=r.updateQueue,s.updateQueue===r&&(s.updateQueue={baseState:r.baseState,firstBaseUpdate:r.firstBaseUpdate,lastBaseUpdate:r.lastBaseUpdate,shared:r.shared,effects:r.effects})}function zn(r,s){return{eventTime:r,lane:s,tag:0,payload:null,callback:null,next:null}}function fr(r,s,a){var c=r.updateQueue;if(c===null)return null;if(c=c.shared,(Ne&2)!==0){var f=c.pending;return f===null?s.next=s:(s.next=f.next,f.next=s),c.pending=s,Vn(r,a)}return f=c.interleaved,f===null?(s.next=s,lc(c)):(s.next=f.next,f.next=s),c.interleaved=s,Vn(r,a)}function Fa(r,s,a){if(s=s.updateQueue,s!==null&&(s=s.shared,(a&4194240)!==0)){var c=s.lanes;c&=r.pendingLanes,a|=c,s.lanes=a,Eu(r,a)}}function am(r,s){var a=r.updateQueue,c=r.alternate;if(c!==null&&(c=c.updateQueue,a===c)){var f=null,m=null;if(a=a.firstBaseUpdate,a!==null){do{var v={eventTime:a.eventTime,lane:a.lane,tag:a.tag,payload:a.payload,callback:a.callback,next:null};m===null?f=m=v:m=m.next=v,a=a.next}while(a!==null);m===null?f=m=s:m=m.next=s}else f=m=s;a={baseState:c.baseState,firstBaseUpdate:f,lastBaseUpdate:m,shared:c.shared,effects:c.effects},r.updateQueue=a;return}r=a.lastBaseUpdate,r===null?a.firstBaseUpdate=s:r.next=s,a.lastBaseUpdate=s}function Ua(r,s,a,c){var f=r.updateQueue;dr=!1;var m=f.firstBaseUpdate,v=f.lastBaseUpdate,C=f.shared.pending;if(C!==null){f.shared.pending=null;var T=C,F=T.next;T.next=null,v===null?m=F:v.next=F,v=T;var H=r.alternate;H!==null&&(H=H.updateQueue,C=H.lastBaseUpdate,C!==v&&(C===null?H.firstBaseUpdate=F:C.next=F,H.lastBaseUpdate=T))}if(m!==null){var q=f.baseState;v=0,H=F=T=null,C=m;do{var W=C.lane,X=C.eventTime;if((c&W)===W){H!==null&&(H=H.next={eventTime:X,lane:0,tag:C.tag,payload:C.payload,callback:C.callback,next:null});e:{var ne=r,ie=C;switch(W=s,X=a,ie.tag){case 1:if(ne=ie.payload,typeof ne=="function"){q=ne.call(X,q,W);break e}q=ne;break e;case 3:ne.flags=ne.flags&-65537|128;case 0:if(ne=ie.payload,W=typeof ne=="function"?ne.call(X,q,W):ne,W==null)break e;q=V({},q,W);break e;case 2:dr=!0}}C.callback!==null&&C.lane!==0&&(r.flags|=64,W=f.effects,W===null?f.effects=[C]:W.push(C))}else X={eventTime:X,lane:W,tag:C.tag,payload:C.payload,callback:C.callback,next:null},H===null?(F=H=X,T=q):H=H.next=X,v|=W;if(C=C.next,C===null){if(C=f.shared.pending,C===null)break;W=C,C=W.next,W.next=null,f.lastBaseUpdate=W,f.shared.pending=null}}while(!0);if(H===null&&(T=q),f.baseState=T,f.firstBaseUpdate=F,f.lastBaseUpdate=H,s=f.shared.interleaved,s!==null){f=s;do v|=f.lane,f=f.next;while(f!==s)}else m===null&&(f.shared.lanes=0);Gr|=v,r.lanes=v,r.memoizedState=q}}function lm(r,s,a){if(r=s.effects,s.effects=null,r!==null)for(s=0;s<r.length;s++){var c=r[s],f=c.callback;if(f!==null){if(c.callback=null,c=a,typeof f!="function")throw Error(n(191,f));f.call(c)}}}var Zi={},kn=lr(Zi),eo=lr(Zi),to=lr(Zi);function Kr(r){if(r===Zi)throw Error(n(174));return r}function cc(r,s){switch(Be(to,s),Be(eo,r),Be(kn,Zi),r=s.nodeType,r){case 9:case 11:s=(s=s.documentElement)?s.namespaceURI:du(null,"");break;default:r=r===8?s.parentNode:s,s=r.namespaceURI||null,r=r.tagName,s=du(s,r)}ze(kn),Be(kn,s)}function Ks(){ze(kn),ze(eo),ze(to)}function um(r){Kr(to.current);var s=Kr(kn.current),a=du(s,r.type);s!==a&&(Be(eo,r),Be(kn,a))}function dc(r){eo.current===r&&(ze(kn),ze(eo))}var He=lr(0);function Ba(r){for(var s=r;s!==null;){if(s.tag===13){var a=s.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||a.data==="$?"||a.data==="$!"))return s}else if(s.tag===19&&s.memoizedProps.revealOrder!==void 0){if((s.flags&128)!==0)return s}else if(s.child!==null){s.child.return=s,s=s.child;continue}if(s===r)break;for(;s.sibling===null;){if(s.return===null||s.return===r)return null;s=s.return}s.sibling.return=s.return,s=s.sibling}return null}var fc=[];function hc(){for(var r=0;r<fc.length;r++)fc[r]._workInProgressVersionPrimary=null;fc.length=0}var Va=A.ReactCurrentDispatcher,pc=A.ReactCurrentBatchConfig,Qr=0,qe=null,st=null,lt=null,za=!1,no=!1,ro=0,o1=0;function bt(){throw Error(n(321))}function mc(r,s){if(s===null)return!1;for(var a=0;a<s.length&&a<r.length;a++)if(!hn(r[a],s[a]))return!1;return!0}function gc(r,s,a,c,f,m){if(Qr=m,qe=s,s.memoizedState=null,s.updateQueue=null,s.lanes=0,Va.current=r===null||r.memoizedState===null?c1:d1,r=a(c,f),no){m=0;do{if(no=!1,ro=0,25<=m)throw Error(n(301));m+=1,lt=st=null,s.updateQueue=null,Va.current=f1,r=a(c,f)}while(no)}if(Va.current=Ha,s=st!==null&&st.next!==null,Qr=0,lt=st=qe=null,za=!1,s)throw Error(n(300));return r}function yc(){var r=ro!==0;return ro=0,r}function Tn(){var r={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return lt===null?qe.memoizedState=lt=r:lt=lt.next=r,lt}function Zt(){if(st===null){var r=qe.alternate;r=r!==null?r.memoizedState:null}else r=st.next;var s=lt===null?qe.memoizedState:lt.next;if(s!==null)lt=s,st=r;else{if(r===null)throw Error(n(310));st=r,r={memoizedState:st.memoizedState,baseState:st.baseState,baseQueue:st.baseQueue,queue:st.queue,next:null},lt===null?qe.memoizedState=lt=r:lt=lt.next=r}return lt}function so(r,s){return typeof s=="function"?s(r):s}function vc(r){var s=Zt(),a=s.queue;if(a===null)throw Error(n(311));a.lastRenderedReducer=r;var c=st,f=c.baseQueue,m=a.pending;if(m!==null){if(f!==null){var v=f.next;f.next=m.next,m.next=v}c.baseQueue=f=m,a.pending=null}if(f!==null){m=f.next,c=c.baseState;var C=v=null,T=null,F=m;do{var H=F.lane;if((Qr&H)===H)T!==null&&(T=T.next={lane:0,action:F.action,hasEagerState:F.hasEagerState,eagerState:F.eagerState,next:null}),c=F.hasEagerState?F.eagerState:r(c,F.action);else{var q={lane:H,action:F.action,hasEagerState:F.hasEagerState,eagerState:F.eagerState,next:null};T===null?(C=T=q,v=c):T=T.next=q,qe.lanes|=H,Gr|=H}F=F.next}while(F!==null&&F!==m);T===null?v=c:T.next=C,hn(c,s.memoizedState)||(jt=!0),s.memoizedState=c,s.baseState=v,s.baseQueue=T,a.lastRenderedState=c}if(r=a.interleaved,r!==null){f=r;do m=f.lane,qe.lanes|=m,Gr|=m,f=f.next;while(f!==r)}else f===null&&(a.lanes=0);return[s.memoizedState,a.dispatch]}function wc(r){var s=Zt(),a=s.queue;if(a===null)throw Error(n(311));a.lastRenderedReducer=r;var c=a.dispatch,f=a.pending,m=s.memoizedState;if(f!==null){a.pending=null;var v=f=f.next;do m=r(m,v.action),v=v.next;while(v!==f);hn(m,s.memoizedState)||(jt=!0),s.memoizedState=m,s.baseQueue===null&&(s.baseState=m),a.lastRenderedState=m}return[m,c]}function cm(){}function dm(r,s){var a=qe,c=Zt(),f=s(),m=!hn(c.memoizedState,f);if(m&&(c.memoizedState=f,jt=!0),c=c.queue,xc(pm.bind(null,a,c,r),[r]),c.getSnapshot!==s||m||lt!==null&<.memoizedState.tag&1){if(a.flags|=2048,io(9,hm.bind(null,a,c,f,s),void 0,null),ut===null)throw Error(n(349));
vendor: 4,247 bytes, line 38
38(Qr&30)!==0||fm(a,s,f)}return f}function fm(r,s,a){r.flags|=16384,r={getSnapshot:s,value:a},s=qe.updateQueue,s===null?(s={lastEffect:null,stores:null},qe.updateQueue=s,s.stores=[r]):(a=s.stores,a===null?s.stores=[r]:a.push(r))}function hm(r,s,a,c){s.value=a,s.getSnapshot=c,mm(s)&&gm(r)}function pm(r,s,a){return a(function(){mm(s)&&gm(r)})}function mm(r){var s=r.getSnapshot;r=r.value;try{var a=s();return!hn(r,a)}catch{return!0}}function gm(r){var s=Vn(r,1);s!==null&&vn(s,r,1,-1)}function ym(r){var s=Tn();return typeof r=="function"&&(r=r()),s.memoizedState=s.baseState=r,r={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:so,lastRenderedState:r},s.queue=r,r=r.dispatch=u1.bind(null,qe,r),[s.memoizedState,r]}function io(r,s,a,c){return r={tag:r,create:s,destroy:a,deps:c,next:null},s=qe.updateQueue,s===null?(s={lastEffect:null,stores:null},qe.updateQueue=s,s.lastEffect=r.next=r):(a=s.lastEffect,a===null?s.lastEffect=r.next=r:(c=a.next,a.next=r,r.next=c,s.lastEffect=r)),r}function vm(){return Zt().memoizedState}function $a(r,s,a,c){var f=Tn();qe.flags|=r,f.memoizedState=io(1|s,a,void 0,c===void 0?null:c)}function Wa(r,s,a,c){var f=Zt();c=c===void 0?null:c;var m=void 0;if(st!==null){var v=st.memoizedState;if(m=v.destroy,c!==null&&mc(c,v.deps)){f.memoizedState=io(s,a,m,c);return}}qe.flags|=r,f.memoizedState=io(1|s,a,m,c)}function wm(r,s){return $a(8390656,8,r,s)}function xc(r,s){return Wa(2048,8,r,s)}function xm(r,s){return Wa(4,2,r,s)}function bm(r,s){return Wa(4,4,r,s)}function Sm(r,s){if(typeof s=="function")return r=r(),s(r),function(){s(null)};if(s!=null)return r=r(),s.current=r,function(){s.current=null}}function Em(r,s,a){return a=a!=null?a.concat([r]):null,Wa(4,4,Sm.bind(null,s,r),a)}function bc(){}function _m(r,s){var a=Zt();s=s===void 0?null:s;var c=a.memoizedState;return c!==null&&s!==null&&mc(s,c[1])?c[0]:(a.memoizedState=[r,s],r)}function Cm(r,s){var a=Zt();s=s===void 0?null:s;var c=a.memoizedState;return c!==null&&s!==null&&mc(s,c[1])?c[0]:(r=r(),a.memoizedState=[r,s],r)}function km(r,s,a){return(Qr&21)===0?(r.baseState&&(r.baseState=!1,jt=!0),r.memoizedState=a):(hn(a,s)||(a=np(),qe.lanes|=a,Gr|=a,r.baseState=!0),s)}function a1(r,s){var a=Ie;Ie=a!==0&&4>a?a:4,r(!0);var c=pc.transition;pc.transition={};try{r(!1),s()}finally{Ie=a,pc.transition=c}}function Tm(){return Zt().memoizedState}function l1(r,s,a){var c=gr(r);if(a={lane:c,action:a,hasEagerState:!1,eagerState:null,next:null},Pm(r))Rm(s,a);else if(a=im(r,s,a,c),a!==null){var f=At();vn(a,r,c,f),Am(a,s,c)}}function u1(r,s,a){var c=gr(r),f={lane:c,action:a,hasEagerState:!1,eagerState:null,next:null};if(Pm(r))Rm(s,f);else{var m=r.alternate;if(r.lanes===0&&(m===null||m.lanes===0)&&(m=s.lastRenderedReducer,m!==null))try{var v=s.lastRenderedState,C=m(v,a);if(f.hasEagerState=!0,f.eagerState=C,hn(C,v)){var T=s.interleaved;T===null?(f.next=f,lc(s)):(f.next=T.next,T.next=f),s.interleaved=f;return}}catch{}finally{}a=im(r,s,f,c),a!==null&&(f=At(),vn(a,r,c,f),Am(a,s,c))}}function Pm(r){var s=r.alternate;return r===qe||s!==null&&s===qe}function Rm(r,s){no=za=!0;var a=r.pending;a===null?s.next=s:(s.next=a.next,a.next=s),r.pending=s}function Am(r,s,a){if((a&4194240)!==0){var c=s.lanes;c&=r.pendingLanes,a|=c,s.lanes=a,Eu(r,a)}}var Ha={readContext:Jt,useCallback:bt,useContext:bt,useEffect:bt,useImperativeHandle:bt,useInsertionEffect:bt,useLayoutEffect:bt,useMemo:bt,useReducer:bt,useRef:bt,useState:bt,useDebugValue:bt,useDeferredValue:bt,useTransition:bt,useMutableSource:bt,useSyncExternalStore:bt,useId:bt,unstable_isNewReconciler:!1},c1={readContext:Jt,useCallback:function(r,s){return Tn().memoizedState=[r,s===void 0?null:s],r},useContext:Jt,useEffect:wm,useImperativeHandle:function(r,s,a){return a=a!=null?a.concat([r]):null,$a(4194308,4,Sm.bind(null,s,r),a)},useLayoutEffect:function(r,s){return $a(4194308,4,r,s)},useInsertionEffect:function(r,s){return $a(4,2,r,s)},useMemo:function(r,s){var a=Tn();return s=s===void 0?null:s,r=r(),a.memoizedState=[r,s],r},useReducer:function(r,s,a){var c=Tn();return s=a!==void 0?a(s):s,c.memoizedState=c.baseState=s,r={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:r,lastRenderedState:s},c.queue=r,r=r.dispatch=l1.bind(null,qe,r),[c.memoizedState,r]}
vendor: 5,094 bytes, lines 38-40
38,useRef:function(r){var s=Tn();return r={current:r},s.memoizedState=r},useState:ym,useDebugValue:bc,useDeferredValue:function(r){return Tn().memoizedState=r},useTransition:function(){var r=ym(!1),s=r[0];return r=a1.bind(null,r[1]),Tn().memoizedState=r,[s,r]},useMutableSource:function(){},useSyncExternalStore:function(r,s,a){var c=qe,f=Tn();if(We){if(a===void 0)throw Error(n(407));a=a()}else{if(a=s(),ut===null)throw Error(n(349));(Qr&30)!==0||fm(c,s,a)}f.memoizedState=a;var m={value:a,getSnapshot:s};return f.queue=m,wm(pm.bind(null,c,m,r),[r]),c.flags|=2048,io(9,hm.bind(null,c,m,a,s),void 0,null),a},useId:function(){var r=Tn(),s=ut.identifierPrefix;if(We){var a=Bn,c=Un;a=(c&~(1<<32-fn(c)-1)).toString(32)+a,s=":"+s+"R"+a,a=ro++,0<a&&(s+="H"+a.toString(32)),s+=":"}else a=o1++,s=":"+s+"r"+a.toString(32)+":";return r.memoizedState=s},unstable_isNewReconciler:!1},d1={readContext:Jt,useCallback:_m,useContext:Jt,useEffect:xc,useImperativeHandle:Em,useInsertionEffect:xm,useLayoutEffect:bm,useMemo:Cm,useReducer:vc,useRef:vm,useState:function(){return vc(so)},useDebugValue:bc,useDeferredValue:function(r){var s=Zt();return km(s,st.memoizedState,r)},useTransition:function(){var r=vc(so)[0],s=Zt().memoizedState;return[r,s]},useMutableSource:cm,useSyncExternalStore:dm,useId:Tm,unstable_isNewReconciler:!1},f1={readContext:Jt,useCallback:_m,useContext:Jt,useEffect:xc,useImperativeHandle:Em,useInsertionEffect:xm,useLayoutEffect:bm,useMemo:Cm,useReducer:wc,useRef:vm,useState:function(){return wc(so)},useDebugValue:bc,useDeferredValue:function(r){var s=Zt();return st===null?s.memoizedState=r:km(s,st.memoizedState,r)},useTransition:function(){var r=wc(so)[0],s=Zt().memoizedState;return[r,s]},useMutableSource:cm,useSyncExternalStore:dm,useId:Tm,unstable_isNewReconciler:!1};function mn(r,s){if(r&&r.defaultProps){s=V({},s),r=r.defaultProps;for(var a in r)s[a]===void 0&&(s[a]=r[a]);return s}return s}function Sc(r,s,a,c){s=r.memoizedState,a=a(c,s),a=a==null?s:V({},s,a),r.memoizedState=a,r.lanes===0&&(r.updateQueue.baseState=a)}var qa={isMounted:function(r){return(r=r._reactInternals)?Vr(r)===r:!1},enqueueSetState:function(r,s,a){r=r._reactInternals;var c=At(),f=gr(r),m=zn(c,f);m.payload=s,a!=null&&(m.callback=a),s=fr(r,m,f),s!==null&&(vn(s,r,f,c),Fa(s,r,f))},enqueueReplaceState:function(r,s,a){r=r._reactInternals;var c=At(),f=gr(r),m=zn(c,f);m.tag=1,m.payload=s,a!=null&&(m.callback=a),s=fr(r,m,f),s!==null&&(vn(s,r,f,c),Fa(s,r,f))},enqueueForceUpdate:function(r,s){r=r._reactInternals;var a=At(),c=gr(r),f=zn(a,c);f.tag=2,s!=null&&(f.callback=s),s=fr(r,f,c),s!==null&&(vn(s,r,c,a),Fa(s,r,c))}};function Nm(r,s,a,c,f,m,v){return r=r.stateNode,typeof r.shouldComponentUpdate=="function"?r.shouldComponentUpdate(c,m,v):s.prototype&&s.prototype.isPureReactComponent?!Hi(a,c)||!Hi(f,m):!0}function Om(r,s,a){var c=!1,f=ur,m=s.contextType;return typeof m=="object"&&m!==null?m=Jt(m):(f=Lt(s)?$r:xt.current,c=s.contextTypes,m=(c=c!=null)?Bs(r,f):ur),s=new s(a,m),r.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,s.updater=qa,r.stateNode=s,s._reactInternals=r,c&&(r=r.stateNode,r.__reactInternalMemoizedUnmaskedChildContext=f,r.__reactInternalMemoizedMaskedChildContext=m),s}function Lm(r,s,a,c){r=s.state,typeof s.componentWillReceiveProps=="function"&&s.componentWillReceiveProps(a,c),typeof s.UNSAFE_componentWillReceiveProps=="function"&&s.UNSAFE_componentWillReceiveProps(a,c),s.state!==r&&qa.enqueueReplaceState(s,s.state,null)}function Ec(r,s,a,c){var f=r.stateNode;f.props=a,f.state=r.memoizedState,f.refs={},uc(r);var m=s.contextType;typeof m=="object"&&m!==null?f.context=Jt(m):(m=Lt(s)?$r:xt.current,f.context=Bs(r,m)),f.state=r.memoizedState,m=s.getDerivedStateFromProps,typeof m=="function"&&(Sc(r,s,m,a),f.state=r.memoizedState),typeof s.getDerivedStateFromProps=="function"||typeof f.getSnapshotBeforeUpdate=="function"||typeof f.UNSAFE_componentWillMount!="function"&&typeof f.componentWillMount!="function"||(s=f.state,typeof f.componentWillMount=="function"&&f.componentWillMount(),typeof f.UNSAFE_componentWillMount=="function"&&f.UNSAFE_componentWillMount(),s!==f.state&&qa.enqueueReplaceState(f,f.state,null),Ua(r,a,f,c),f.state=r.memoizedState),typeof f.componentDidMount=="function"&&(r.flags|=4194308)}function Qs(r,s){try{var a="",c=s;do a+=de(c),c=c.return;while(c);var f=a}catch(m){f=` 39Error generating stack: `+m.message+` 40`+m.stack}return{value:r,source:s,stack:f,digest:null}}function _c(r,s,a){return{value:r,source:null,stack:a??null,digest:s??null}}function Cc(r,s){try{console.error(s.value)}catch(a){setTimeout(function(){throw a})}}var h1=typeof WeakMap=="function"?WeakMap:Map;function jm(r,s,a){a=zn(-1,a),a.tag=3,a.payload={element:null};var c=s.value;return a.callback=function(){Za||(Za=!0,Bc=c),Cc(r,s)},a}function Dm(r,s,a){a=zn(-1,a),a.tag=3;var c=r.type.getDerivedStateFromError;if(typeof c=="function"){var f=s.value;a.payload=function(){return c(f)},a.callback=function(){Cc(r,s)}}var m=r.stateNode;return m!==null&&typeof m.componentDidCatch=="function"&&(a.callback=function(){Cc(r,s),typeof c!="function"&&(pr===null?pr=ne
vendor: 16,058 bytes, line 40
40w Set([this]):pr.add(this));var v=s.stack;this.componentDidCatch(s.value,{componentStack:v!==null?v:""})}),a}function Mm(r,s,a){var c=r.pingCache;if(c===null){c=r.pingCache=new h1;var f=new Set;c.set(s,f)}else f=c.get(s),f===void 0&&(f=new Set,c.set(s,f));f.has(a)||(f.add(a),r=T1.bind(null,r,s,a),s.then(r,r))}function Im(r){do{var s;if((s=r.tag===13)&&(s=r.memoizedState,s=s!==null?s.dehydrated!==null:!0),s)return r;r=r.return}while(r!==null);return null}function Fm(r,s,a,c,f){return(r.mode&1)===0?(r===s?r.flags|=65536:(r.flags|=128,a.flags|=131072,a.flags&=-52805,a.tag===1&&(a.alternate===null?a.tag=17:(s=zn(-1,1),s.tag=2,fr(a,s,1))),a.lanes|=1),r):(r.flags|=65536,r.lanes=f,r)}var p1=A.ReactCurrentOwner,jt=!1;function Rt(r,s,a,c){s.child=r===null?sm(s,null,a,c):Ws(s,r.child,a,c)}function Um(r,s,a,c,f){a=a.render;var m=s.ref;return qs(s,f),c=gc(r,s,a,c,m,f),a=yc(),r!==null&&!jt?(s.updateQueue=r.updateQueue,s.flags&=-2053,r.lanes&=~f,$n(r,s,f)):(We&&a&&Zu(s),s.flags|=1,Rt(r,s,c,f),s.child)}function Bm(r,s,a,c,f){if(r===null){var m=a.type;return typeof m=="function"&&!Kc(m)&&m.defaultProps===void 0&&a.compare===null&&a.defaultProps===void 0?(s.tag=15,s.type=m,Vm(r,s,m,c,f)):(r=il(a.type,null,c,s,s.mode,f),r.ref=s.ref,r.return=s,s.child=r)}if(m=r.child,(r.lanes&f)===0){var v=m.memoizedProps;if(a=a.compare,a=a!==null?a:Hi,a(v,c)&&r.ref===s.ref)return $n(r,s,f)}return s.flags|=1,r=vr(m,c),r.ref=s.ref,r.return=s,s.child=r}function Vm(r,s,a,c,f){if(r!==null){var m=r.memoizedProps;if(Hi(m,c)&&r.ref===s.ref)if(jt=!1,s.pendingProps=c=m,(r.lanes&f)!==0)(r.flags&131072)!==0&&(jt=!0);else return s.lanes=r.lanes,$n(r,s,f)}return kc(r,s,a,c,f)}function zm(r,s,a){var c=s.pendingProps,f=c.children,m=r!==null?r.memoizedState:null;if(c.mode==="hidden")if((s.mode&1)===0)s.memoizedState={baseLanes:0,cachePool:null,transitions:null},Be(Ys,Wt),Wt|=a;else{if((a&1073741824)===0)return r=m!==null?m.baseLanes|a:a,s.lanes=s.childLanes=1073741824,s.memoizedState={baseLanes:r,cachePool:null,transitions:null},s.updateQueue=null,Be(Ys,Wt),Wt|=r,null;s.memoizedState={baseLanes:0,cachePool:null,transitions:null},c=m!==null?m.baseLanes:a,Be(Ys,Wt),Wt|=c}else m!==null?(c=m.baseLanes|a,s.memoizedState=null):c=a,Be(Ys,Wt),Wt|=c;return Rt(r,s,f,a),s.child}function $m(r,s){var a=s.ref;(r===null&&a!==null||r!==null&&r.ref!==a)&&(s.flags|=512,s.flags|=2097152)}function kc(r,s,a,c,f){var m=Lt(a)?$r:xt.current;return m=Bs(s,m),qs(s,f),a=gc(r,s,a,c,m,f),c=yc(),r!==null&&!jt?(s.updateQueue=r.updateQueue,s.flags&=-2053,r.lanes&=~f,$n(r,s,f)):(We&&c&&Zu(s),s.flags|=1,Rt(r,s,a,f),s.child)}function Wm(r,s,a,c,f){if(Lt(a)){var m=!0;Aa(s)}else m=!1;if(qs(s,f),s.stateNode===null)Qa(r,s),Om(s,a,c),Ec(s,a,c,f),c=!0;else if(r===null){var v=s.stateNode,C=s.memoizedProps;v.props=C;var T=v.context,F=a.contextType;typeof F=="object"&&F!==null?F=Jt(F):(F=Lt(a)?$r:xt.current,F=Bs(s,F));var H=a.getDerivedStateFromProps,q=typeof H=="function"||typeof v.getSnapshotBeforeUpdate=="function";q||typeof v.UNSAFE_componentWillReceiveProps!="function"&&typeof v.componentWillReceiveProps!="function"||(C!==c||T!==F)&&Lm(s,v,c,F),dr=!1;var W=s.memoizedState;v.state=W,Ua(s,c,v,f),T=s.memoizedState,C!==c||W!==T||Ot.current||dr?(typeof H=="function"&&(Sc(s,a,H,c),T=s.memoizedState),(C=dr||Nm(s,a,C,c,W,T,F))?(q||typeof v.UNSAFE_componentWillMount!="function"&&typeof v.componentWillMount!="function"||(typeof v.componentWillMount=="function"&&v.componentWillMount(),typeof v.UNSAFE_componentWillMount=="function"&&v.UNSAFE_componentWillMount()),typeof v.componentDidMount=="function"&&(s.flags|=4194308)):(typeof v.componentDidMount=="function"&&(s.flags|=4194308),s.memoizedProps=c,s.memoizedState=T),v.props=c,v.state=T,v.context=F,c=C):(typeof v.componentDidMount=="function"&&(s.flags|=4194308),c=!1)}else{v=s.stateNode,om(r,s),C=s.memoizedProps,F=s.type===s.elementType?C:mn(s.type,C),v.props=F,q=s.pendingProps,W=v.context,T=a.contextType,typeof T=="object"&&T!==null?T=Jt(T):(T=Lt(a)?$r:xt.current,T=Bs(s,T));var X=a.getDerivedStateFromProps;(H=typeof X=="function"||typeof v.getSnapshotBeforeUpdate=="function")||typeof v.UNSAFE_componentWillReceiveProps!="function"&&typeof v.componentWillReceiveProps!="function"||(C!==q||W!==T)&&Lm(s,v,c,T),dr=!1,W=s.memoizedState,v.state=W,Ua(s,c,v,f);var ne=s.memoizedState;C!==q||W!==ne||Ot.current||dr?(typeof X=="function"&&(Sc(s,a,X,c),ne=s.memoizedState),(F=dr||Nm(s,a,F,c,W,ne,T)||!1)?(H||typeof v.UNSAFE_componentWillUpdate!="function"&&typeof v.componentWillUpdate!="function"||(typeof v.componentWillUpdate=="function"&&v.componentWillUpdate(c,ne,T),typeof v.UNSAFE_componentWillUpdate=="function"&&v.UNSAFE_componentWillUpdate(c,ne,T)),typeof v.componentDidUpdate=="function"&&(s.flags|=4),typeof v.getSnapshotBeforeUpdate=="function"&&(s.flags|=1024)):(typeof v.componentDidUpdate!="function"||C===r.memoizedProps&&W===r.memoizedState||(s.flags|=4),typeof v.getSnapshotBeforeUpdate!="function"||C===r.memoizedProps&&W===r.memoizedState||(s.flags|=1024),s.memoizedProps=c,s.memoizedState=ne),v.props=c,v.state=ne,v.context=T,c=F):(typeof v.componentDidUpdate!="function"||C===r.memoizedProps&&W===r.memoizedState||(s.flags|=4),typeof v.getSnapshotBeforeUpdate!="function"||C===r.memoizedProps&&W===r.memoizedState||(s.flags|=1024),c=!1)}return Tc(r,s,a,c,m,f)}function Tc(r,s,a,c,f,m){$m(r,s);var v=(s.flags&128)!==0;if(!c&&!v)return f&&Gp(s,a,!1),$n(r,s,m);c=s.stateNode,p1.current=s;var C=v&&typeof a.getDerivedStateFromError!="function"?null:c.render();return s.flags|=1,r!==null&&v?(s.child=Ws(s,r.child,null,m),s.child=Ws(s,null,C,m)):Rt(r,s,C,m),s.memoizedState=c.state,f&&Gp(s,a,!0),s.child}function Hm(r){var s=r.stateNode;s.pendingContext?Kp(r,s.pendingContext,s.pendingContext!==s.context):s.context&&Kp(r,s.context,!1),cc(r,s.containerInfo)}function qm(r,s,a,c,f){return $s(),rc(f),s.flags|=256,Rt(r,s,a,c),s.child}var Pc={dehydrated:null,treeContext:null,retryLane:0};function Rc(r){return{baseLanes:r,cachePool:null,transitions:null}}function Km(r,s,a){var c=s.pendingProps,f=He.current,m=!1,v=(s.flags&128)!==0,C;if((C=v)||(C=r!==null&&r.memoizedState===null?!1:(f&2)!==0),C?(m=!0,s.flags&=-129):(r===null||r.memoizedState!==null)&&(f|=1),Be(He,f&1),r===null)return nc(s),r=s.memoizedState,r!==null&&(r=r.dehydrated,r!==null)?((s.mode&1)===0?s.lanes=1:r.data==="$!"?s.lanes=8:s.lanes=1073741824,null):(v=c.children,r=c.fallback,m?(c=s.mode,m=s.child,v={mode:"hidden",children:v},(c&1)===0&&m!==null?(m.childLanes=0,m.pendingProps=v):m=ol(v,c,0,null),r=Zr(r,c,a,null),m.return=s,r.return=s,m.sibling=r,s.child=m,s.child.memoizedState=Rc(a),s.memoizedState=Pc,r):Ac(s,v));if(f=r.memoizedState,f!==null&&(C=f.dehydrated,C!==null))return m1(r,s,v,c,C,f,a);if(m){m=c.fallback,v=s.mode,f=r.child,C=f.sibling;var T={mode:"hidden",children:c.children};return(v&1)===0&&s.child!==f?(c=s.child,c.childLanes=0,c.pendingProps=T,s.deletions=null):(c=vr(f,T),c.subtreeFlags=f.subtreeFlags&14680064),C!==null?m=vr(C,m):(m=Zr(m,v,a,null),m.flags|=2),m.return=s,c.return=s,c.sibling=m,s.child=c,c=m,m=s.child,v=r.child.memoizedState,v=v===null?Rc(a):{baseLanes:v.baseLanes|a,cachePool:null,transitions:v.transitions},m.memoizedState=v,m.childLanes=r.childLanes&~a,s.memoizedState=Pc,c}return m=r.child,r=m.sibling,c=vr(m,{mode:"visible",children:c.children}),(s.mode&1)===0&&(c.lanes=a),c.return=s,c.sibling=null,r!==null&&(a=s.deletions,a===null?(s.deletions=[r],s.flags|=16):a.push(r)),s.child=c,s.memoizedState=null,c}function Ac(r,s){return s=ol({mode:"visible",children:s},r.mode,0,null),s.return=r,r.child=s}function Ka(r,s,a,c){return c!==null&&rc(c),Ws(s,r.child,null,a),r=Ac(s,s.pendingProps.children),r.flags|=2,s.memoizedState=null,r}function m1(r,s,a,c,f,m,v){if(a)return s.flags&256?(s.flags&=-257,c=_c(Error(n(422))),Ka(r,s,v,c)):s.memoizedState!==null?(s.child=r.child,s.flags|=128,null):(m=c.fallback,f=s.mode,c=ol({mode:"visible",children:c.children},f,0,null),m=Zr(m,f,v,null),m.flags|=2,c.return=s,m.return=s,c.sibling=m,s.child=c,(s.mode&1)!==0&&Ws(s,r.child,null,v),s.child.memoizedState=Rc(v),s.memoizedState=Pc,m);if((s.mode&1)===0)return Ka(r,s,v,null);if(f.data==="$!"){if(c=f.nextSibling&&f.nextSibling.dataset,c)var C=c.dgst;return c=C,m=Error(n(419)),c=_c(m,c,void 0),Ka(r,s,v,c)}if(C=(v&r.childLanes)!==0,jt||C){if(c=ut,c!==null){switch(v&-v){case 4:f=2;break;case 16:f=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:f=32;break;case 536870912:f=268435456;break;default:f=0}f=(f&(c.suspendedLanes|v))!==0?0:f,f!==0&&f!==m.retryLane&&(m.retryLane=f,Vn(r,f),vn(c,r,f,-1))}return qc(),c=_c(Error(n(421))),Ka(r,s,v,c)}return f.data==="$?"?(s.flags|=128,s.child=r.child,s=P1.bind(null,r),f._reactRetry=s,null):(r=m.treeContext,$t=ar(f.nextSibling),zt=s,We=!0,pn=null,r!==null&&(Yt[Xt++]=Un,Yt[Xt++]=Bn,Yt[Xt++]=Wr,Un=r.id,Bn=r.overflow,Wr=s),s=Ac(s,c.children),s.flags|=4096,s)}function Qm(r,s,a){r.lanes|=s;var c=r.alternate;c!==null&&(c.lanes|=s),ac(r.return,s,a)}function Nc(r,s,a,c,f){var m=r.memoizedState;m===null?r.memoizedState={isBackwards:s,rendering:null,renderingStartTime:0,last:c,tail:a,tailMode:f}:(m.isBackwards=s,m.rendering=null,m.renderingStartTime=0,m.last=c,m.tail=a,m.tailMode=f)}function Gm(r,s,a){var c=s.pendingProps,f=c.revealOrder,m=c.tail;if(Rt(r,s,c.children,a),c=He.current,(c&2)!==0)c=c&1|2,s.flags|=128;else{if(r!==null&&(r.flags&128)!==0)e:for(r=s.child;r!==null;){if(r.tag===13)r.memoizedState!==null&&Qm(r,a,s);else if(r.tag===19)Qm(r,a,s);else if(r.child!==null){r.child.return=r,r=r.child;continue}if(r===s)break e;for(;r.sibling===null;){if(r.return===null||r.return===s)break e;r=r.return}r.sibling.return=r.return,r=r.sibling}c&=1}if(Be(He,c),(s.mode&1)===0)s.memoizedState=null;else switch(f){case"forwards":for(a=s.child,f=null;a!==null;)r=a.alternate,r!==null&&Ba(r)===null&&(f=a),a=a.sibling;a=f,a===null?(f=s.child,s.child=null):(f=a.sibling,a.sibling=null),Nc(s,!1,f,a,m);break;case"backwards":for(a=null,f=s.child,s.child=null;f!==null;){if(r=f.alternate,r!==null&&Ba(r)===null){s.child=f;break}r=f.sibling,f.sibling=a,a=f,f=r}Nc(s,!0,a,null,m);break;case"together":Nc(s,!1,null,null,void 0);break;default:s.memoizedState=null}return s.child}function Qa(r,s){(s.mode&1)===0&&r!==null&&(r.alternate=null,s.alternate=null,s.flags|=2)}function $n(r,s,a){if(r!==null&&(s.dependencies=r.dependencies),Gr|=s.lanes,(a&s.childLanes)===0)return null;if(r!==null&&s.child!==r.child)throw Error(n(153));if(s.child!==null){for(r=s.child,a=vr(r,r.pendingProps),s.child=a,a.return=s;r.sibling!==null;)r=r.sibling,a=a.sibling=vr(r,r.pendingProps),a.return=s;a.sibling=null}return s.child}function g1(r,s,a){switch(s.tag){case 3:Hm(s),$s();break;case 5:um(s);break;case 1:Lt(s.type)&&Aa(s);break;case 4:cc(s,s.stateNode.containerInfo);break;case 10:var c=s.type._context,f=s.memoizedProps.value;Be(Ma,c._currentValue),c._currentValue=f;break;case 13:if(c=s.memoizedState,c!==null)return c.dehydrated!==null?(Be(He,He.current&1),s.flags|=128,null):(a&s.child.childLanes)!==0?Km(r,s,a):(Be(He,He.current&1),r=$n(r,s,a),r!==null?r.sibling:null);Be(He,He.current&1);break;case 19:if(c=(a&s.childLanes)!==0,(r.flags&128)!==0){if(c)return Gm(r,s,a);s.flags|=128}if(f=s.memoizedState,f!==null&&(f.rendering=null,f.tail=null,f.lastEffect=null),Be(He,He.current),c)break;return null;case 22:case 23:return s.lanes=0,zm(r,s,a)}return $n(r,s,a)}var Ym,Oc,Xm,Jm;Ym=function(r,s){for(var a=s.child;a!==null;){if(a.tag===5||a.tag===6)r.appendChild(a.stateNode);else if(a.tag!==4&&a.child!==null){a.child.return=a,a=a.child;continue}if(a===s)break;for(;a.sibling===null;){if(a.return===null||a.return===s)return;a=a.return}a.sibling.return=a.return,a=a.sibling}},Oc=function(){},Xm=function(r,s,a,c){var f=r.memoizedProps;if(f!==c){r=s.stateNode,Kr(kn.current);var m=null;switch(a){case"input":f=Qt(r,f),c=Qt(r,c),m=[];break;case"select":f=V({},f,{value:void 0}),c=V({},c,{value:void 0}),m=[];break;case"textarea":f=Mn(r,f),c=Mn(r,c),m=[];break;default:typeof f.onClick!="function"&&typeof c.onClick=="function"&&(r.onclick=Ta)}fu(a,c);var v;a=null;for(F in f)if(!c.hasOwnProperty(F)&&f.hasOwnProperty(F)&&f[F]!=null)if(F==="style"){var C=f[F];for(v in C)C.hasOwnProperty(v)&&(a||(a={}),a[v]="")}else F!=="dangerouslySetInnerHTML"&&F!=="children"&&F!=="suppressContentEditableWarning"&&F!=="suppressHydrationWarning"&&F!=="autoFocus"&&(o.hasOwnProperty(F)?m||(m=[]):(m=m||[]).push(F,null));for(F in c){var T=c[F];if(C=f!=null?f[F]:void 0,c.hasOwnProperty(F)&&T!==C&&(T!=null||C!=null))if(F==="style")if(C){for(v in C)!C.hasOwnProperty(v)||T&&T.hasOwnProperty(v)||(a||(a={}),a[v]="");for(v in T)T.hasOwnProperty(v)&&C[v]!==T[v]&&(a||(a={}),a[v]=T[v])}else a||(m||(m=[]),m.push(F,a)),a=T;else F==="dangerouslySetInnerHTML"?(T=T?T.__html:void 0,C=C?C.__html:void 0,T!=null&&C!==T&&(m=m||[]).push(F,T)):F==="children"?typeof T!="string"&&typeof T!="number"||(m=m||[]).push(F,""+T):F!=="suppressContentEditableWarning"&&F!=="suppressHydrationWarning"&&(o.hasOwnProperty(F)?(T!=null&&F==="onScroll"&&Ve("scroll",r),m||C===T||(m=[])):(m=m||[]).push(F,T))}a&&(m=m||[]).push("style",a);var F=m;(s.updateQueue=F)&&(s.flags|=4)}},Jm=function(r,s,a,c){a!==c&&(s.flags|=4)};function oo(r,s){if(!We)switch(r.tailMode){case"hidden":s=r.tail;for(var a=null;s!==null;)s.alternate!==null&&(a=s),s=s.sibling;a===null?r.tail=null:a.sibling=null;break;case"collapsed":a=r.tail;for(var c=null;a!==null;)a.alternate!==null&&(c=a),a=a.sibling;c===null?s||r.tail===null?r.tail=null:r.tail.sibling=null:c.sibling=null}}function St(r){var s=r.alternate!==null&&r.alternate.child===r.child,a=0,c=0;if(s)for(var f=r.child;f!==null;)a|=f.lanes|f.childLanes,c|=f.subtreeFlags&14680064,c|=f.flags&14680064,f.return=r,f=f.sibling;else for(f=r.child;f!==null;)a|=f.lanes|f.childLanes,c|=f.subtreeFlags,c|=f.flags,f.return=r,f=f.sibling;return r.subtreeFlags|=c,r.childLanes=a,s}function y1(r,s,a){var c=s.pendingProps;switch(ec(s),s.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return St(s),null;case 1:return Lt(s.type)&&Ra(),St(s),null;case 3:return c=s.stateNode,Ks(),ze(Ot),ze(xt),hc(),c.pendingContext&&(c.context=c.pendingContext,c.pendingContext=null),(r===null||r.child===null)&&(ja(s)?s.flags|=4:r===null||r.memoizedState.isDehydrated&&(s.flags&256)===0||(s.flags|=1024,pn!==null&&($c(pn),pn=null))),Oc(r,s),St(s),null;case 5:dc(s);var f=Kr(to.current);if(a=s.type,r!==null&&s.stateNode!=null)Xm(r,s,a,c,f),r.ref!==s.ref&&(s.flags|=512,s.flags|=2097152);else{if(!c){if(s.stateNode===null)throw Error(n(166));return St(s),null}if(r=Kr(kn.current),ja(s)){c=s.stateNode,a=s.type;var m=s.memoizedProps;switch(c[Cn]=s,c[Yi]=m,r=(s.mode&1)!==0,a){case"dialog":Ve("cancel",c),Ve("close",c);break;case"iframe":case"object":case"embed":Ve("load",c);break;case"video":case"audio":for(f=0;f<Ki.length;f++)Ve(Ki[f],c);break;case"source":Ve("error",c);break;case"img":case"image":case"link":Ve("error",c),Ve("load",c);break;case"details":Ve("toggle",c);break;case"input":Gt(c,m),Ve("invalid",c);break;case"select":c._wrapperState={wasMultiple:!!m.multiple},Ve("invalid",c);break;case"textarea":Dh(c,m),Ve("invalid",c)}fu(a,m),f=null;for(var v in m)if(m.hasOwnProperty(v)){var C=m[v];v==="children"?typeof C=="string"?c.textContent!==C&&(m.suppressHydrationWarning!==!0&&ka(c.textContent,C,r),f=["children",C]):typeof C=="number"&&c.textContent!==""+C&&(m.suppressHydrationWarning!==!0&&ka(c.textContent,C,r),f=["children",""+C]):o.hasOwnProperty(v)&&C!=null&&v==="onScroll"&&Ve("scroll",c)}switch(a){case"input":Kt(c),cn(c,m,!0);break;case"textarea":Kt(c),Ih(c);break;case"select":case"option":break;default:typeof m.onClick=="function"&&(c.onclick=Ta)}c=f,s.updateQueue=c,c!==null&&(s.flags|=4)}else{v=f.nodeType===9?f:f.ownerDocument,r==="http://www.w3.org/1999/xhtml"&&(r=Fh(a)),r==="http://www.w3.org/1999/xhtml"?a==="script"?(r=v.createElement("div"),r.innerHTML="<script><\/script>
40",r=r.removeChild(r.firstChild)):typeof c.is=="string"?r=v.createElement(a,{is:c.is}):(r=v.createElement(a),a==="select"&&(v=r,c.multiple?v.multiple=!0:c.size&&(v.size=c.size))):r=v.createElementNS(r,a),r[Cn]=s,r[Yi]=c,Ym(r,s,!1,!1),s.stateNode=r;e:{switch(v=hu(a,c),a){case"dialog":Ve("cancel",r),Ve("close",r),f=c;break;case"iframe":case"object":case"embed":Ve("load",r),f=c;break;case"video":case"audio":for(f=0;f<Ki.length;f++)Ve(Ki[f],r);f=c;break;case"source":Ve("error",r),f=c;break;case"img":case"image":case"link":Ve("error",r),Ve("load",r),f=c;break;case"details":Ve("toggle",r),f=c;break;case"input":Gt(r,c),f=Qt(r,c),Ve("invalid",r);break;case"option":f=c;break;case"select":r._wrapperState={wasMultiple:!!c.multiple},f=V({},c,{value:void 0}),Ve("invalid",r);break;case"textarea":Dh(r,c),f=Mn(r,c),Ve("invalid",r);break;default:f=c}fu(a,f),C=f;for(m in C)if(C.hasOwnProperty(m)){var T=C[m];m==="style"?Vh(r,T):m==="dangerouslySetInnerHTML"?(T=T?T.__html:void 0,T!=null&&Uh(r,T)):m==="children"?typeof T=="string"?(a!=="textarea"||T!=="")&&Pi(r,T):typeof T=="number"&&Pi(r,""+T):m!=="suppressContentEditableWarning"&&m!=="suppressHydrationWarning"&&m!=="autoFocus"&&(o.hasOwnProperty(m)?T!=null&&m==="onScroll"&&Ve("scroll",r):T!=null&&k(r,m,T,v))}switch(a){case"input":Kt(r),cn(r,c,!1);break;case"textarea":Kt(r),Ih(r);break;case"option":c.value!=null&&r.setAttribute("value",""+ke(c.value));break;case"select":r.multiple=!!c.multiple,m=c.value,m!=null?er(r,!!c.multiple,m,!1):c.defaultValue!=null&&er(r,!!c.multiple,c.defaultValue,!0);break;default:typeof f.onClick=="function"&&(r.onclick=Ta)}switch(a){case"button":case"input":case"select":case"textarea":c=!!c.autoFocus;break e;case"img":c=!0;break e;default:c=!1}}c&&(s.flags|=4)}s.ref!==null&&(s.flags|=512,s.flags|=2097152)}return St(s),null;case 6:if(r&&s.stateNode!=null)Jm(r,s,r.memoizedProps,c);else{if(typeof c!="string"&&s.stateNode===null)throw Error(n(166));if(a=Kr(to.current),Kr(kn.current),ja(s)){if(c=s.stateNode,a=s.memoizedProps,c[Cn]=s,
vendor: 23,175 bytes, line 40
40(m=c.nodeValue!==a)&&(r=zt,r!==null))switch(r.tag){case 3:ka(c.nodeValue,a,(r.mode&1)!==0);break;case 5:r.memoizedProps.suppressHydrationWarning!==!0&&ka(c.nodeValue,a,(r.mode&1)!==0)}m&&(s.flags|=4)}else c=(a.nodeType===9?a:a.ownerDocument).createTextNode(c),c[Cn]=s,s.stateNode=c}return St(s),null;case 13:if(ze(He),c=s.memoizedState,r===null||r.memoizedState!==null&&r.memoizedState.dehydrated!==null){if(We&&$t!==null&&(s.mode&1)!==0&&(s.flags&128)===0)tm(),$s(),s.flags|=98560,m=!1;else if(m=ja(s),c!==null&&c.dehydrated!==null){if(r===null){if(!m)throw Error(n(318));if(m=s.memoizedState,m=m!==null?m.dehydrated:null,!m)throw Error(n(317));m[Cn]=s}else $s(),(s.flags&128)===0&&(s.memoizedState=null),s.flags|=4;St(s),m=!1}else pn!==null&&($c(pn),pn=null),m=!0;if(!m)return s.flags&65536?s:null}return(s.flags&128)!==0?(s.lanes=a,s):(c=c!==null,c!==(r!==null&&r.memoizedState!==null)&&c&&(s.child.flags|=8192,(s.mode&1)!==0&&(r===null||(He.current&1)!==0?it===0&&(it=3):qc())),s.updateQueue!==null&&(s.flags|=4),St(s),null);case 4:return Ks(),Oc(r,s),r===null&&Qi(s.stateNode.containerInfo),St(s),null;case 10:return oc(s.type._context),St(s),null;case 17:return Lt(s.type)&&Ra(),St(s),null;case 19:if(ze(He),m=s.memoizedState,m===null)return St(s),null;if(c=(s.flags&128)!==0,v=m.rendering,v===null)if(c)oo(m,!1);else{if(it!==0||r!==null&&(r.flags&128)!==0)for(r=s.child;r!==null;){if(v=Ba(r),v!==null){for(s.flags|=128,oo(m,!1),c=v.updateQueue,c!==null&&(s.updateQueue=c,s.flags|=4),s.subtreeFlags=0,c=a,a=s.child;a!==null;)m=a,r=c,m.flags&=14680066,v=m.alternate,v===null?(m.childLanes=0,m.lanes=r,m.child=null,m.subtreeFlags=0,m.memoizedProps=null,m.memoizedState=null,m.updateQueue=null,m.dependencies=null,m.stateNode=null):(m.childLanes=v.childLanes,m.lanes=v.lanes,m.child=v.child,m.subtreeFlags=0,m.deletions=null,m.memoizedProps=v.memoizedProps,m.memoizedState=v.memoizedState,m.updateQueue=v.updateQueue,m.type=v.type,r=v.dependencies,m.dependencies=r===null?null:{lanes:r.lanes,firstContext:r.firstContext}),a=a.sibling;return Be(He,He.current&1|2),s.child}r=r.sibling}m.tail!==null&&Xe()>Xs&&(s.flags|=128,c=!0,oo(m,!1),s.lanes=4194304)}else{if(!c)if(r=Ba(v),r!==null){if(s.flags|=128,c=!0,a=r.updateQueue,a!==null&&(s.updateQueue=a,s.flags|=4),oo(m,!0),m.tail===null&&m.tailMode==="hidden"&&!v.alternate&&!We)return St(s),null}else 2*Xe()-m.renderingStartTime>Xs&&a!==1073741824&&(s.flags|=128,c=!0,oo(m,!1),s.lanes=4194304);m.isBackwards?(v.sibling=s.child,s.child=v):(a=m.last,a!==null?a.sibling=v:s.child=v,m.last=v)}return m.tail!==null?(s=m.tail,m.rendering=s,m.tail=s.sibling,m.renderingStartTime=Xe(),s.sibling=null,a=He.current,Be(He,c?a&1|2:a&1),s):(St(s),null);case 22:case 23:return Hc(),c=s.memoizedState!==null,r!==null&&r.memoizedState!==null!==c&&(s.flags|=8192),c&&(s.mode&1)!==0?(Wt&1073741824)!==0&&(St(s),s.subtreeFlags&6&&(s.flags|=8192)):St(s),null;case 24:return null;case 25:return null}throw Error(n(156,s.tag))}function v1(r,s){switch(ec(s),s.tag){case 1:return Lt(s.type)&&Ra(),r=s.flags,r&65536?(s.flags=r&-65537|128,s):null;case 3:return Ks(),ze(Ot),ze(xt),hc(),r=s.flags,(r&65536)!==0&&(r&128)===0?(s.flags=r&-65537|128,s):null;case 5:return dc(s),null;case 13:if(ze(He),r=s.memoizedState,r!==null&&r.dehydrated!==null){if(s.alternate===null)throw Error(n(340));$s()}return r=s.flags,r&65536?(s.flags=r&-65537|128,s):null;case 19:return ze(He),null;case 4:return Ks(),null;case 10:return oc(s.type._context),null;case 22:case 23:return Hc(),null;case 24:return null;default:return null}}var Ga=!1,Et=!1,w1=typeof WeakSet=="function"?WeakSet:Set,te=null;function Gs(r,s){var a=r.ref;if(a!==null)if(typeof a=="function")try{a(null)}catch(c){Qe(r,s,c)}else a.current=null}function Lc(r,s,a){try{a()}catch(c){Qe(r,s,c)}}var Zm=!1;function x1(r,s){if(Hu=ma,r=Np(),Iu(r)){if("selectionStart"in r)var a={start:r.selectionStart,end:r.selectionEnd};else e:{a=(a=r.ownerDocument)&&a.defaultView||window;var c=a.getSelection&&a.getSelection();if(c&&c.rangeCount!==0){a=c.anchorNode;var f=c.anchorOffset,m=c.focusNode;c=c.focusOffset;try{a.nodeType,m.nodeType}catch{a=null;break e}var v=0,C=-1,T=-1,F=0,H=0,q=r,W=null;t:for(;;){for(var X;q!==a||f!==0&&q.nodeType!==3||(C=v+f),q!==m||c!==0&&q.nodeType!==3||(T=v+c),q.nodeType===3&&(v+=q.nodeValue.length),(X=q.firstChild)!==null;)W=q,q=X;for(;;){if(q===r)break t;if(W===a&&++F===f&&(C=v),W===m&&++H===c&&(T=v),(X=q.nextSibling)!==null)break;q=W,W=q.parentNode}q=X}a=C===-1||T===-1?null:{start:C,end:T}}else a=null}a=a||{start:0,end:0}}else a=null;for(qu={focusedElem:r,selectionRange:a},ma=!1,te=s;te!==null;)if(s=te,r=s.child,(s.subtreeFlags&1028)!==0&&r!==null)r.return=s,te=r;else for(;te!==null;){s=te;try{var ne=s.alternate;if((s.flags&1024)!==0)switch(s.tag){case 0:case 11:case 15:break;case 1:if(ne!==null){var ie=ne.memoizedProps,Je=ne.memoizedState,M=s.stateNode,L=M.getSnapshotBeforeUpdate(s.elementType===s.type?ie:mn(s.type,ie),Je);M.__reactInternalSnapshotBeforeUpdate=L}break;case 3:var I=s.stateNode.containerInfo;I.nodeType===1?I.textContent="":I.nodeType===9&&I.documentElement&&I.removeChild(I.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(n(163))}}catch(K){Qe(s,s.return,K)}if(r=s.sibling,r!==null){r.return=s.return,te=r;break}te=s.return}return ne=Zm,Zm=!1,ne}function ao(r,s,a){var c=s.updateQueue;if(c=c!==null?c.lastEffect:null,c!==null){var f=c=c.next;do{if((f.tag&r)===r){var m=f.destroy;f.destroy=void 0,m!==void 0&&Lc(s,a,m)}f=f.next}while(f!==c)}}function Ya(r,s){if(s=s.updateQueue,s=s!==null?s.lastEffect:null,s!==null){var a=s=s.next;do{if((a.tag&r)===r){var c=a.create;a.destroy=c()}a=a.next}while(a!==s)}}function jc(r){var s=r.ref;if(s!==null){var a=r.stateNode;switch(r.tag){case 5:r=a;break;default:r=a}typeof s=="function"?s(r):s.current=r}}function eg(r){var s=r.alternate;s!==null&&(r.alternate=null,eg(s)),r.child=null,r.deletions=null,r.sibling=null,r.tag===5&&(s=r.stateNode,s!==null&&(delete s[Cn],delete s[Yi],delete s[Yu],delete s[n1],delete s[r1])),r.stateNode=null,r.return=null,r.dependencies=null,r.memoizedProps=null,r.memoizedState=null,r.pendingProps=null,r.stateNode=null,r.updateQueue=null}function tg(r){return r.tag===5||r.tag===3||r.tag===4}function ng(r){e:for(;;){for(;r.sibling===null;){if(r.return===null||tg(r.return))return null;r=r.return}for(r.sibling.return=r.return,r=r.sibling;r.tag!==5&&r.tag!==6&&r.tag!==18;){if(r.flags&2||r.child===null||r.tag===4)continue e;r.child.return=r,r=r.child}if(!(r.flags&2))return r.stateNode}}function Dc(r,s,a){var c=r.tag;if(c===5||c===6)r=r.stateNode,s?a.nodeType===8?a.parentNode.insertBefore(r,s):a.insertBefore(r,s):(a.nodeType===8?(s=a.parentNode,s.insertBefore(r,a)):(s=a,s.appendChild(r)),a=a._reactRootContainer,a!=null||s.onclick!==null||(s.onclick=Ta));else if(c!==4&&(r=r.child,r!==null))for(Dc(r,s,a),r=r.sibling;r!==null;)Dc(r,s,a),r=r.sibling}function Mc(r,s,a){var c=r.tag;if(c===5||c===6)r=r.stateNode,s?a.insertBefore(r,s):a.appendChild(r);else if(c!==4&&(r=r.child,r!==null))for(Mc(r,s,a),r=r.sibling;r!==null;)Mc(r,s,a),r=r.sibling}var pt=null,gn=!1;function hr(r,s,a){for(a=a.child;a!==null;)rg(r,s,a),a=a.sibling}function rg(r,s,a){if(_n&&typeof _n.onCommitFiberUnmount=="function")try{_n.onCommitFiberUnmount(ua,a)}catch{}switch(a.tag){case 5:Et||Gs(a,s);case 6:var c=pt,f=gn;pt=null,hr(r,s,a),pt=c,gn=f,pt!==null&&(gn?(r=pt,a=a.stateNode,r.nodeType===8?r.parentNode.removeChild(a):r.removeChild(a)):pt.removeChild(a.stateNode));break;case 18:pt!==null&&(gn?(r=pt,a=a.stateNode,r.nodeType===8?Gu(r.parentNode,a):r.nodeType===1&&Gu(r,a),Ui(r)):Gu(pt,a.stateNode));break;case 4:c=pt,f=gn,pt=a.stateNode.containerInfo,gn=!0,hr(r,s,a),pt=c,gn=f;break;case 0:case 11:case 14:case 15:if(!Et&&(c=a.updateQueue,c!==null&&(c=c.lastEffect,c!==null))){f=c=c.next;do{var m=f,v=m.destroy;m=m.tag,v!==void 0&&((m&2)!==0||(m&4)!==0)&&Lc(a,s,v),f=f.next}while(f!==c)}hr(r,s,a);break;case 1:if(!Et&&(Gs(a,s),c=a.stateNode,typeof c.componentWillUnmount=="function"))try{c.props=a.memoizedProps,c.state=a.memoizedState,c.componentWillUnmount()}catch(C){Qe(a,s,C)}hr(r,s,a);break;case 21:hr(r,s,a);break;case 22:a.mode&1?(Et=(c=Et)||a.memoizedState!==null,hr(r,s,a),Et=c):hr(r,s,a);break;default:hr(r,s,a)}}function sg(r){var s=r.updateQueue;if(s!==null){r.updateQueue=null;var a=r.stateNode;a===null&&(a=r.stateNode=new w1),s.forEach(function(c){var f=R1.bind(null,r,c);a.has(c)||(a.add(c),c.then(f,f))})}}function yn(r,s){var a=s.deletions;if(a!==null)for(var c=0;c<a.length;c++){var f=a[c];try{var m=r,v=s,C=v;e:for(;C!==null;){switch(C.tag){case 5:pt=C.stateNode,gn=!1;break e;case 3:pt=C.stateNode.containerInfo,gn=!0;break e;case 4:pt=C.stateNode.containerInfo,gn=!0;break e}C=C.return}if(pt===null)throw Error(n(160));rg(m,v,f),pt=null,gn=!1;var T=f.alternate;T!==null&&(T.return=null),f.return=null}catch(F){Qe(f,s,F)}}if(s.subtreeFlags&12854)for(s=s.child;s!==null;)ig(s,r),s=s.sibling}function ig(r,s){var a=r.alternate,c=r.flags;switch(r.tag){case 0:case 11:case 14:case 15:if(yn(s,r),Pn(r),c&4){try{ao(3,r,r.return),Ya(3,r)}catch(ie){Qe(r,r.return,ie)}try{ao(5,r,r.return)}catch(ie){Qe(r,r.return,ie)}}break;case 1:yn(s,r),Pn(r),c&512&&a!==null&&Gs(a,a.return);break;case 5:if(yn(s,r),Pn(r),c&512&&a!==null&&Gs(a,a.return),r.flags&32){var f=r.stateNode;try{Pi(f,"")}catch(ie){Qe(r,r.return,ie)}}if(c&4&&(f=r.stateNode,f!=null)){var m=r.memoizedProps,v=a!==null?a.memoizedProps:m,C=r.type,T=r.updateQueue;if(r.updateQueue=null,T!==null)try{C==="input"&&m.type==="radio"&&m.name!=null&&xe(f,m),hu(C,v);var F=hu(C,m);for(v=0;v<T.length;v+=2){var H=T[v],q=T[v+1];H==="style"?Vh(f,q):H==="dangerouslySetInnerHTML"?Uh(f,q):H==="children"?Pi(f,q):k(f,H,q,F)}switch(C){case"input":ht(f,m);break;case"textarea":Mh(f,m);break;case"select":var W=f._wrapperState.wasMultiple;f._wrapperState.wasMultiple=!!m.multiple;var X=m.value;X!=null?er(f,!!m.multiple,X,!1):W!==!!m.multiple&&(m.defaultValue!=null?er(f,!!m.multiple,m.defaultValue,!0):er(f,!!m.multiple,m.multiple?[]:"",!1))}f[Yi]=m}catch(ie){Qe(r,r.return,ie)}}break;case 6:if(yn(s,r),Pn(r),c&4){if(r.stateNode===null)throw Error(n(162));f=r.stateNode,m=r.memoizedProps;try{f.nodeValue=m}catch(ie){Qe(r,r.return,ie)}}break;case 3:if(yn(s,r),Pn(r),c&4&&a!==null&&a.memoizedState.isDehydrated)try{Ui(s.containerInfo)}catch(ie){Qe(r,r.return,ie)}break;case 4:yn(s,r),Pn(r);break;case 13:yn(s,r),Pn(r),f=r.child,f.flags&8192&&(m=f.memoizedState!==null,f.stateNode.isHidden=m,!m||f.alternate!==null&&f.alternate.memoizedState!==null||(Uc=Xe())),c&4&&sg(r);break;case 22:if(H=a!==null&&a.memoizedState!==null,r.mode&1?(Et=(F=Et)||H,yn(s,r),Et=F):yn(s,r),Pn(r),c&8192){if(F=r.memoizedState!==null,(r.stateNode.isHidden=F)&&!H&&(r.mode&1)!==0)for(te=r,H=r.child;H!==null;){for(q=te=H;te!==null;){switch(W=te,X=W.child,W.tag){case 0:case 11:case 14:case 15:ao(4,W,W.return);break;case 1:Gs(W,W.return);var ne=W.stateNode;if(typeof ne.componentWillUnmount=="function"){c=W,a=W.return;try{s=c,ne.props=s.memoizedProps,ne.state=s.memoizedState,ne.componentWillUnmount()}catch(ie){Qe(c,a,ie)}}break;case 5:Gs(W,W.return);break;case 22:if(W.memoizedState!==null){lg(q);continue}}X!==null?(X.return=W,te=X):lg(q)}H=H.sibling}e:for(H=null,q=r;;){if(q.tag===5){if(H===null){H=q;try{f=q.stateNode,F?(m=f.style,typeof m.setProperty=="function"?m.setProperty("display","none","important"):m.display="none"):(C=q.stateNode,T=q.memoizedProps.style,v=T!=null&&T.hasOwnProperty("display")?T.display:null,C.style.display=Bh("display",v))}catch(ie){Qe(r,r.return,ie)}}}else if(q.tag===6){if(H===null)try{q.stateNode.nodeValue=F?"":q.memoizedProps}catch(ie){Qe(r,r.return,ie)}}else if((q.tag!==22&&q.tag!==23||q.memoizedState===null||q===r)&&q.child!==null){q.child.return=q,q=q.child;continue}if(q===r)break e;for(;q.sibling===null;){if(q.return===null||q.return===r)break e;H===q&&(H=null),q=q.return}H===q&&(H=null),q.sibling.return=q.return,q=q.sibling}}break;case 19:yn(s,r),Pn(r),c&4&&sg(r);break;case 21:break;default:yn(s,r),Pn(r)}}function Pn(r){var s=r.flags;if(s&2){try{e:{for(var a=r.return;a!==null;){if(tg(a)){var c=a;break e}a=a.return}throw Error(n(160))}switch(c.tag){case 5:var f=c.stateNode;c.flags&32&&(Pi(f,""),c.flags&=-33);var m=ng(r);Mc(r,m,f);break;case 3:case 4:var v=c.stateNode.containerInfo,C=ng(r);Dc(r,C,v);break;default:throw Error(n(161))}}catch(T){Qe(r,r.return,T)}r.flags&=-3}s&4096&&(r.flags&=-4097)}function b1(r,s,a){te=r,og(r)}function og(r,s,a){for(var c=(r.mode&1)!==0;te!==null;){var f=te,m=f.child;if(f.tag===22&&c){var v=f.memoizedState!==null||Ga;if(!v){var C=f.alternate,T=C!==null&&C.memoizedState!==null||Et;C=Ga;var F=Et;if(Ga=v,(Et=T)&&!F)for(te=f;te!==null;)v=te,T=v.child,v.tag===22&&v.memoizedState!==null?ug(f):T!==null?(T.return=v,te=T):ug(f);for(;m!==null;)te=m,og(m),m=m.sibling;te=f,Ga=C,Et=F}ag(r)}else(f.subtreeFlags&8772)!==0&&m!==null?(m.return=f,te=m):ag(r)}}function ag(r){for(;te!==null;){var s=te;if((s.flags&8772)!==0){var a=s.alternate;try{if((s.flags&8772)!==0)switch(s.tag){case 0:case 11:case 15:Et||Ya(5,s);break;case 1:var c=s.stateNode;if(s.flags&4&&!Et)if(a===null)c.componentDidMount();else{var f=s.elementType===s.type?a.memoizedProps:mn(s.type,a.memoizedProps);c.componentDidUpdate(f,a.memoizedState,c.__reactInternalSnapshotBeforeUpdate)}var m=s.updateQueue;m!==null&&lm(s,m,c);break;case 3:var v=s.updateQueue;if(v!==null){if(a=null,s.child!==null)switch(s.child.tag){case 5:a=s.child.stateNode;break;case 1:a=s.child.stateNode}lm(s,v,a)}break;case 5:var C=s.stateNode;if(a===null&&s.flags&4){a=C;var T=s.memoizedProps;switch(s.type){case"button":case"input":case"select":case"textarea":T.autoFocus&&a.focus();break;case"img":T.src&&(a.src=T.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(s.memoizedState===null){var F=s.alternate;if(F!==null){var H=F.memoizedState;if(H!==null){var q=H.dehydrated;q!==null&&Ui(q)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(n(163))}Et||s.flags&512&&jc(s)}catch(W){Qe(s,s.return,W)}}if(s===r){te=null;break}if(a=s.sibling,a!==null){a.return=s.return,te=a;break}te=s.return}}function lg(r){for(;te!==null;){var s=te;if(s===r){te=null;break}var a=s.sibling;if(a!==null){a.return=s.return,te=a;break}te=s.return}}function ug(r){for(;te!==null;){var s=te;try{switch(s.tag){case 0:case 11:case 15:var a=s.return;try{Ya(4,s)}catch(T){Qe(s,a,T)}break;case 1:var c=s.stateNode;if(typeof c.componentDidMount=="function"){var f=s.return;try{c.componentDidMount()}catch(T){Qe(s,f,T)}}var m=s.return;try{jc(s)}catch(T){Qe(s,m,T)}break;case 5:var v=s.return;try{jc(s)}catch(T){Qe(s,v,T)}}}catch(T){Qe(s,s.return,T)}if(s===r){te=null;break}var C=s.sibling;if(C!==null){C.return=s.return,te=C;break}te=s.return}}var S1=Math.ceil,Xa=A.ReactCurrentDispatcher,Ic=A.ReactCurrentOwner,en=A.ReactCurrentBatchConfig,Ne=0,ut=null,tt=null,mt=0,Wt=0,Ys=lr(0),it=0,lo=null,Gr=0,Ja=0,Fc=0,uo=null,Dt=null,Uc=0,Xs=1/0,Wn=null,Za=!1,Bc=null,pr=null,el=!1,mr=null,tl=0,co=0,Vc=null,nl=-1,rl=0;function At(){return(Ne&6)!==0?Xe():nl!==-1?nl:nl=Xe()}function gr(r){return(r.mode&1)===0?1:(Ne&2)!==0&&mt!==0?mt&-mt:i1.transition!==null?(rl===0&&(rl=np()),rl):(r=Ie,r!==0||(r=window.event,r=r===void 0?16:dp(r.type)),r)}function vn(r,s,a,c){if(50<co)throw co=0,Vc=null,Error(n(185));ji(r,a,c),((Ne&2)===0||r!==ut)&&(r===ut&&((Ne&2)===0&&(Ja|=a),it===4&&yr(r,mt)),Mt(r,c),a===1&&Ne===0&&(s.mode&1)===0&&(Xs=Xe()+500,Na&&cr()))}function Mt(r,s){var a=r.callbackNode;iS(r,s);var c=fa(r,r===ut?mt:0);if(c===0)a!==null&&Zh(a),r.callbackNode=null,r.callbackPriority=0;else if(s=c&-c,r.callbackPriority!==s){if(a!=null&&Zh(a),s===1)r.tag===0?s1(dg.bind(null,r)):Yp(dg.bind(null,r)),e1(function(){(Ne&6)===0&&cr()}),a=null;else{switch(rp(c)){case 1:a=xu;break;case 4:a=ep;break;case 16:a=la;break;case 536870912:a=tp;break;default:a=la}a=wg(a,cg.bind(null,r))}r.callbackPriority=s,r.callbackNode=a}}function cg(r,s){if(nl=-1,rl=0,(Ne&6)!==0)throw Error(n(327));var a=r.callbackNode;if(Js()&&r.callbackNode!==a)return null;var c=fa(r,r===ut?mt:0);if(c===0)return null;if((c&30)!==0||(c&r.expiredLanes)!==0||s)s=sl(r,c);else{s=c;var f=Ne;Ne|=2;var m=hg();(ut!==r||mt!==s)&&(Wn=null,Xs=Xe()+500,Xr(r,s));do try{C1();break}catch(C){fg(r,C)}while(!0);ic(),Xa.current=m,Ne=f,tt!==null?s=0:(ut=null,mt=0,s=it)}if(s!==0){if(s===2&&(f=bu(r),f!==0&&(c=f,s=zc(r,f))),s===1)throw a=lo,Xr(r,0),yr(r,c),Mt(r,Xe()),a;if(s===6)yr(r,c);else{if(f=r.current.alternate,(c&30)===0&&!E1(f)&&(s=sl(r,c),s===2&&(m=bu(r),m!==0&&(c=m,s=zc(r,m))),s===1))throw a=lo,Xr(r,0),yr(r,c),Mt(r,Xe()),a;switch(r.finishedWork=f,r.finishedLanes=c,s){case 0:case 1:throw Error(n(345));case 2:Jr(r,Dt,Wn);break;case 3:if(yr(r,c),(c&130023424)===c&&(s=Uc+500-Xe(),10<s)){if(fa(r,0)!==0)break;if(f=r.suspendedLanes,(f&c)!==c){At(),r.pingedLanes|=r.suspendedLanes&f;break}r.timeoutHandle=Qu(Jr.bind(null,r,Dt,Wn),s);break}Jr(r,Dt,Wn);break;case 4:if(yr(r,c),(c&4194240)===c)break;for(s=r.eventTimes,f=-1;0<c;){var v=31-fn(c);m=1<<v,v=s[v],v>f&&(f=v),c&=~m}if(c=f,c=Xe()-c,c=(120>c?120:480>c?480:1080>c?1080:1920>c?1920:3e3>c?3e3:4320>c?4320:1960*S1(c/1960))-c,10<c){r.timeoutHandle=Qu(Jr.bind(null,r,Dt,Wn),c);break}Jr(r,Dt,Wn);break;case 5:Jr(r,Dt,Wn);break;default:throw Error(n(329))}}}return Mt(r,Xe()),r.callbackNode===a?cg.bind(null,r):null}function zc(r,s){var a=uo;return r.current.memoizedState.isDehydrated&&(Xr(r,s).flags|=256),r=sl(r,s),r!==2&&(s=Dt,Dt=a,s!==null&&$c(s)),r}function $c(r){Dt===null?Dt=r:Dt.push.apply(Dt,r)}function E1(r){for(var s=r;;){if(s.flags&16384){var a=s.updateQueue;if(a!==null&&(a=a.stores,a!==null))for(var c=0;c<a.length;c++){var f=a[c],m=f.getSnapshot;f=f.value;try{if(!hn(m(),f))return!1}catch{return!1}}}if(a=s.child,s.subtreeFlags&16384&&a!==null)a.return=s,s=a;else{if(s===r)break;for(;s.sibling===null;){if(s.return===null||s.return===r)return!0;s=s.return}s.sibling.return=s.return,s=s.sibling}}return!0}function yr(r,s){for(s&=~Fc,s&=~Ja,r.suspendedLanes|=s,r.pingedLanes&=~s,r=r.expirationTimes;0<s;){var a=31-fn(s),c=1<<a;r[a]=-1,s&=~c}}function dg(r){if((Ne&6)!==0)throw Error(n(327));Js();var s=fa(r,0);if((s&1)===0)return Mt(r,Xe()),null;var a=sl(r,s);if(r.tag!==0&&a===2){var c=bu(r);c!==0&&(s=c,a=zc(r,c))}if(a===1)throw a=lo,Xr(r,0),yr(r,s),Mt(r,Xe()),a;if(a===6)throw Error(n(345));return r.finishedWork=r.current.alternate,r.finishedLanes=s,Jr(r,Dt,Wn),Mt(r,Xe()),null}function Wc(r,s){var a=Ne;Ne|=1;try{return r(s)}finally{Ne=a,Ne===0&&(Xs=Xe()+500,Na&&cr())}}function Yr(r){mr!==null&&mr.tag===0&&(Ne&6)===0&&Js();var s=Ne;Ne|=1;var a=en.transition,c=Ie;try{if(en.transition=null,Ie=1,r)return r()}finally{Ie=c,en.transition=a,Ne=s,(Ne&6)===0&&cr()}}function Hc(){Wt=Ys.current,ze(Ys)}function Xr(r,s){r.finishedWork=null,r.finishedLanes=0;var a=r.timeoutHandle;if(a!==-1&&(r.timeoutHandle=-1,ZS(a)),tt!==null)for(a=tt.return;a!==null;){var c=a;switch(ec(c),c.tag){case 1:c=c.type.childContextTypes,c!=null&&Ra();break;case 3:Ks(),ze(Ot),ze(xt),hc();break;case 5:dc(c);break;case 4:Ks();break;case 13:ze(He);break;case 19:ze(He);break;case 10:oc(c.type._context);break;case 22:case 23:Hc()}a=a.return}if(ut=r,tt=r=vr(r.current,null),mt=Wt=s,it=0,lo=null,Fc=Ja=Gr=0,Dt=uo=null,qr!==null){for(s=0;s<qr.length;s++)if(a=qr[s],c=a.interleaved,c!==null){a.interleaved=null;var f=c.next,m=a.pending;if(m!==null){var v=m.next;m.next=f,c.next=v}a.pending=c}qr=null}return r}function fg(r,s){do{var a=tt;try{if(ic(),Va.current=Ha,za){for(var c=qe.memoizedState;c!==null;){var f=c.queue;f!==null&&(f.pending=null),c=c.next}za=!1}if(Qr=0,lt=st=qe=null,no=!1,ro=0,Ic.current=null,a===null||a.return===null){it=1,lo=s,tt=null;break}e:{var m=r,v=a.return,C=a,T=s;if(s=mt,C.flags|=32768,T!==null&&typeof T=="object"&&typeof T.then=="function"){var F=T,H=C,q=H.tag;if((H.mode&1)===0&&(q===0||q===11||q===15)){var W=H.alternate;W?(H.updateQueue=W.updateQueue,H.memoizedState=W.memoizedState,H.lanes=W.lanes):(H.updateQueue=null,H.memoizedState=null)}var X=Im(v);if(X!==null){X.flags&=-257,Fm(X,v,C,m,s),X.mode&1&&Mm(m,F,s),s=X,T=F;var ne=s.updateQueue;if(ne===null){var ie=new Set;ie.add(T),s.updateQueue=ie}else ne.add(T);break e}else{if((s&1)===0){Mm(m,F,s),qc();break e}T=Error(n(426))}}else if(We&&C.mode&1){var Je=Im(v);if(Je!==null){(Je.flags&65536)===0&&(Je.flags|=256),Fm(Je,v,C,m,s),rc(Qs(T,C));break e}}m=T=Qs(T,C),it!==4&&(it=2),uo===null?uo=[m]:uo.push(m),m=v;do{switch(m.tag){case 3:m.flags|=65536,s&=-s,m.lanes|=s;var M=jm(m,T,s);am(m,M);break e;case 1:C=T;var L=m.type,I=m.stateNode;if((m.flags&128)===0&&(typeof L.getDerivedStateFromError=="function"||I!==null&&typeof I.componentDidCatch=="function"&&(pr===null||!pr.has(I)))){m.flags|=65536,s&=-s,m.lanes|=s;var K=Dm(m,C,s);am(m,K);break e}}m=m.return}while(m!==null)}mg(a)}catch(ae){s=ae,tt===a&&a!==null&&(tt=a=a.return);continue}break}while(!0)}function hg(){var r=Xa.current;return Xa.current=Ha,r===null?Ha:r}function qc(){(it===0||it===3||it===2)&&(it=4),ut===null||(Gr&268435455)===0&&(Ja&268435455)===0||yr(ut,mt)}function sl(r,s){var a=Ne;Ne|=2;var c=hg();(ut!==r||mt!==s)&&(Wn=null,Xr(r,s));do try{_1();break}catch(f){fg(r,f)}while(!0);if(ic(),Ne=a,Xa.current=c,tt!==null)throw Error(n(261));return ut=null,mt=0,it}function _1(){for(;tt!==null;)pg(tt)}function C1(){for(;tt!==null&&!Yb();)pg(tt)}function pg(r){var s=vg(r.alternate,r,Wt);r.memoizedProps=r.pendingProps,s===null?mg(r):tt=s,Ic.current=null}function mg(r){var s=r;do{var a=s.alternate;if(r=s.return,(s.flags&32768)===0){if(a=y1(a,s,Wt),a!==null){tt=a;return}}else{if(a=v1(a,s),a!==null){a.flags&=32767,tt=a;return}if(r!==null)r.flags|=32768,r.subtreeFlags=0,r.deletions=null;else{it=6,tt=null;return}}if(s=s.sibling,s!==null){tt=s;return}tt=s=r}while(s!==null);it===0&&(it=5)}function Jr(r,s,a){var c=Ie,f=en.transition;try{en.transition=null,Ie=1,k1(r,s,a,c)}finally{en.transition=f,Ie=c}return null}function k1(r,s,a,c){do Js();while(mr!==null);if((Ne&6)!==0)throw Error(n(327));a=r.finishedWork;var f=r.finishedLanes;if(a===null)return null;if(r.finishedWork=null,r.finishedLanes=0,a===r.current)throw Error(n(177));r.callbackNode=null,r.callbackPriority=0;var m=a.lanes|a.childLanes;if(oS(r,m),r===ut&&(tt=ut=null,mt=0),(a.subtreeFlags&2064)===0&&(a.flags&2064)===0||el||(el=!0,wg(la,function(){return Js(),null})),m=(a.flags&15990)!==0,(a.subtreeFlags&15990)!==0||m){m=en.transition,en.transition=null;var v=Ie;Ie=1;var C=Ne;Ne|=4,Ic.current=null,x1(r,a),ig(a,r),qS(qu),ma=!!Hu,qu=Hu=null,r.current=a,b1(a),Xb(),Ne=C,Ie=v,en.transition=m}else r.current=a;if(el&&(el=!1,mr=r,tl=f),m=r.pendingLanes,m===0&&(pr=null),eS(a.stateNode),Mt(r,Xe()),s!==null)for(c=r.onRecoverableError,a=0;a<s.length;a++)f=s[a],c(f.value,{componentStack:f.stack,digest:f.digest});if(Za)throw Za=!1,r=Bc,Bc=null,r;return(tl&1)!==0&&r.tag!==0&&Js(),m=r.pendingLanes,(m&1)!==0?r===Vc?co++:(co=0,Vc=r):co=0,cr(),null}function Js(){if(mr!==null){var r=rp(tl),s=en.transition,a=Ie;try{if(en.transition=null,Ie=16>r?16:r,mr===null)var c=!1;else{if(r=mr,mr=null,tl=0,(Ne&6)!==0)throw Error(n(331));var f=Ne;for(Ne|=4,te=r.current;te!==null;){var m=te,v=m.child;if((te.flags&16)!==0){var C=m.deletions;if(C!==null){for(var T=0;T<C.length;T++){var F=C[T];for(te=F;te!==null;){var H=te;
vendor: 4,456 bytes, line 40
40switch(H.tag){case 0:case 11:case 15:ao(8,H,m)}var q=H.child;if(q!==null)q.return=H,te=q;else for(;te!==null;){H=te;var W=H.sibling,X=H.return;if(eg(H),H===F){te=null;break}if(W!==null){W.return=X,te=W;break}te=X}}}var ne=m.alternate;if(ne!==null){var ie=ne.child;if(ie!==null){ne.child=null;do{var Je=ie.sibling;ie.sibling=null,ie=Je}while(ie!==null)}}te=m}}if((m.subtreeFlags&2064)!==0&&v!==null)v.return=m,te=v;else e:for(;te!==null;){if(m=te,(m.flags&2048)!==0)switch(m.tag){case 0:case 11:case 15:ao(9,m,m.return)}var M=m.sibling;if(M!==null){M.return=m.return,te=M;break e}te=m.return}}var L=r.current;for(te=L;te!==null;){v=te;var I=v.child;if((v.subtreeFlags&2064)!==0&&I!==null)I.return=v,te=I;else e:for(v=L;te!==null;){if(C=te,(C.flags&2048)!==0)try{switch(C.tag){case 0:case 11:case 15:Ya(9,C)}}catch(ae){Qe(C,C.return,ae)}if(C===v){te=null;break e}var K=C.sibling;if(K!==null){K.return=C.return,te=K;break e}te=C.return}}if(Ne=f,cr(),_n&&typeof _n.onPostCommitFiberRoot=="function")try{_n.onPostCommitFiberRoot(ua,r)}catch{}c=!0}return c}finally{Ie=a,en.transition=s}}return!1}function gg(r,s,a){s=Qs(a,s),s=jm(r,s,1),r=fr(r,s,1),s=At(),r!==null&&(ji(r,1,s),Mt(r,s))}function Qe(r,s,a){if(r.tag===3)gg(r,r,a);else for(;s!==null;){if(s.tag===3){gg(s,r,a);break}else if(s.tag===1){var c=s.stateNode;if(typeof s.type.getDerivedStateFromError=="function"||typeof c.componentDidCatch=="function"&&(pr===null||!pr.has(c))){r=Qs(a,r),r=Dm(s,r,1),s=fr(s,r,1),r=At(),s!==null&&(ji(s,1,r),Mt(s,r));break}}s=s.return}}function T1(r,s,a){var c=r.pingCache;c!==null&&c.delete(s),s=At(),r.pingedLanes|=r.suspendedLanes&a,ut===r&&(mt&a)===a&&(it===4||it===3&&(mt&130023424)===mt&&500>Xe()-Uc?Xr(r,0):Fc|=a),Mt(r,s)}function yg(r,s){s===0&&((r.mode&1)===0?s=1:(s=da,da<<=1,(da&130023424)===0&&(da=4194304)));var a=At();r=Vn(r,s),r!==null&&(ji(r,s,a),Mt(r,a))}function P1(r){var s=r.memoizedState,a=0;s!==null&&(a=s.retryLane),yg(r,a)}function R1(r,s){var a=0;switch(r.tag){case 13:var c=r.stateNode,f=r.memoizedState;f!==null&&(a=f.retryLane);break;case 19:c=r.stateNode;break;default:throw Error(n(314))}c!==null&&c.delete(s),yg(r,a)}var vg;vg=function(r,s,a){if(r!==null)if(r.memoizedProps!==s.pendingProps||Ot.current)jt=!0;else{if((r.lanes&a)===0&&(s.flags&128)===0)return jt=!1,g1(r,s,a);jt=(r.flags&131072)!==0}else jt=!1,We&&(s.flags&1048576)!==0&&Xp(s,La,s.index);switch(s.lanes=0,s.tag){case 2:var c=s.type;Qa(r,s),r=s.pendingProps;var f=Bs(s,xt.current);qs(s,a),f=gc(null,s,c,r,f,a);var m=yc();return s.flags|=1,typeof f=="object"&&f!==null&&typeof f.render=="function"&&f.$$typeof===void 0?(s.tag=1,s.memoizedState=null,s.updateQueue=null,Lt(c)?(m=!0,Aa(s)):m=!1,s.memoizedState=f.state!==null&&f.state!==void 0?f.state:null,uc(s),f.updater=qa,s.stateNode=f,f._reactInternals=s,Ec(s,c,r,a),s=Tc(null,s,c,!0,m,a)):(s.tag=0,We&&m&&Zu(s),Rt(null,s,f,a),s=s.child),s;case 16:c=s.elementType;e:{switch(Qa(r,s),r=s.pendingProps,f=c._init,c=f(c._payload),s.type=c,f=s.tag=N1(c),r=mn(c,r),f){case 0:s=kc(null,s,c,r,a);break e;case 1:s=Wm(null,s,c,r,a);break e;case 11:s=Um(null,s,c,r,a);break e;case 14:s=Bm(null,s,c,mn(c.type,r),a);break e}throw Error(n(306,c,""))}return s;case 0:return c=s.type,f=s.pendingProps,f=s.elementType===c?f:mn(c,f),kc(r,s,c,f,a);case 1:return c=s.type,f=s.pendingProps,f=s.elementType===c?f:mn(c,f),Wm(r,s,c,f,a);case 3:e:{if(Hm(s),r===null)throw Error(n(387));c=s.pendingProps,m=s.memoizedState,f=m.element,om(r,s),Ua(s,c,null,a);var v=s.memoizedState;if(c=v.element,m.isDehydrated)if(m={element:c,isDehydrated:!1,cache:v.cache,pendingSuspenseBoundaries:v.pendingSuspenseBoundaries,transitions:v.transitions},s.updateQueue.baseState=m,s.memoizedState=m,s.flags&256){f=Qs(Error(n(423)),s),s=qm(r,s,c,a,f);break e}else if(c!==f){f=Qs(Error(n(424)),s),s=qm(r,s,c,a,f);break e}else for($t=ar(s.stateNode.containerInfo.firstChild),zt=s,We=!0,pn=null,a=sm(s,null,c,a),s.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling;else{if($s(),c===f){s=$n(r,s,a);break e}Rt(r,s,c,a)}s=s.child}return s;case 5:return um(s),r===null&&nc(s),c=s.type,f=s.pendingProps,m=r!==null?r.memoizedProps:null,v=f.children,Ku(c,f)?v=null:m!==null&&Ku(c,m)&&(s.flags|=32),$m(r,s),Rt(r,s,v,a),s.child;case 6:return r===null&&nc(s),null;case 13:return Km(r,s,a);case 4:return cc(s,s.stateNode.containerInfo),c=s.pendingProps,r===null?s.child=Ws(s,null,c,a):Rt(r,s,c,a),s.child;case 11:return c=s.type,f=s.pendingProps,f=s.elementType===c?f:mn(c,f),Um(r,s,c,f,a);
vendor: 9,297 bytes, line 40
40case 7:return Rt(r,s,s.pendingProps,a),s.child;case 8:return Rt(r,s,s.pendingProps.children,a),s.child;case 12:return Rt(r,s,s.pendingProps.children,a),s.child;case 10:e:{if(c=s.type._context,f=s.pendingProps,m=s.memoizedProps,v=f.value,Be(Ma,c._currentValue),c._currentValue=v,m!==null)if(hn(m.value,v)){if(m.children===f.children&&!Ot.current){s=$n(r,s,a);break e}}else for(m=s.child,m!==null&&(m.return=s);m!==null;){var C=m.dependencies;if(C!==null){v=m.child;for(var T=C.firstContext;T!==null;){if(T.context===c){if(m.tag===1){T=zn(-1,a&-a),T.tag=2;var F=m.updateQueue;if(F!==null){F=F.shared;var H=F.pending;H===null?T.next=T:(T.next=H.next,H.next=T),F.pending=T}}m.lanes|=a,T=m.alternate,T!==null&&(T.lanes|=a),ac(m.return,a,s),C.lanes|=a;break}T=T.next}}else if(m.tag===10)v=m.type===s.type?null:m.child;else if(m.tag===18){if(v=m.return,v===null)throw Error(n(341));v.lanes|=a,C=v.alternate,C!==null&&(C.lanes|=a),ac(v,a,s),v=m.sibling}else v=m.child;if(v!==null)v.return=m;else for(v=m;v!==null;){if(v===s){v=null;break}if(m=v.sibling,m!==null){m.return=v.return,v=m;break}v=v.return}m=v}Rt(r,s,f.children,a),s=s.child}return s;case 9:return f=s.type,c=s.pendingProps.children,qs(s,a),f=Jt(f),c=c(f),s.flags|=1,Rt(r,s,c,a),s.child;case 14:return c=s.type,f=mn(c,s.pendingProps),f=mn(c.type,f),Bm(r,s,c,f,a);case 15:return Vm(r,s,s.type,s.pendingProps,a);case 17:return c=s.type,f=s.pendingProps,f=s.elementType===c?f:mn(c,f),Qa(r,s),s.tag=1,Lt(c)?(r=!0,Aa(s)):r=!1,qs(s,a),Om(s,c,f),Ec(s,c,f,a),Tc(null,s,c,!0,r,a);case 19:return Gm(r,s,a);case 22:return zm(r,s,a)}throw Error(n(156,s.tag))};function wg(r,s){return Jh(r,s)}function A1(r,s,a,c){this.tag=r,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=s,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=c,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function tn(r,s,a,c){return new A1(r,s,a,c)}function Kc(r){return r=r.prototype,!(!r||!r.isReactComponent)}function N1(r){if(typeof r=="function")return Kc(r)?1:0;if(r!=null){if(r=r.$$typeof,r===De)return 11;if(r===Fe)return 14}return 2}function vr(r,s){var a=r.alternate;return a===null?(a=tn(r.tag,s,r.key,r.mode),a.elementType=r.elementType,a.type=r.type,a.stateNode=r.stateNode,a.alternate=r,r.alternate=a):(a.pendingProps=s,a.type=r.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=r.flags&14680064,a.childLanes=r.childLanes,a.lanes=r.lanes,a.child=r.child,a.memoizedProps=r.memoizedProps,a.memoizedState=r.memoizedState,a.updateQueue=r.updateQueue,s=r.dependencies,a.dependencies=s===null?null:{lanes:s.lanes,firstContext:s.firstContext},a.sibling=r.sibling,a.index=r.index,a.ref=r.ref,a}function il(r,s,a,c,f,m){var v=2;if(c=r,typeof r=="function")Kc(r)&&(v=1);else if(typeof r=="string")v=5;else e:switch(r){case J:return Zr(a.children,f,m,s);case B:v=8,f|=8;break;case Z:return r=tn(12,a,s,f|2),r.elementType=Z,r.lanes=m,r;case Se:return r=tn(13,a,s,f),r.elementType=Se,r.lanes=m,r;case Ce:return r=tn(19,a,s,f),r.elementType=Ce,r.lanes=m,r;case he:return ol(a,f,m,s);default:if(typeof r=="object"&&r!==null)switch(r.$$typeof){case le:v=10;break e;case be:v=9;break e;case De:v=11;break e;case Fe:v=14;break e;case Ae:v=16,c=null;break e}throw Error(n(130,r==null?r:typeof r,""))}return s=tn(v,a,s,f),s.elementType=r,s.type=c,s.lanes=m,s}function Zr(r,s,a,c){return r=tn(7,r,c,s),r.lanes=a,r}function ol(r,s,a,c){return r=tn(22,r,c,s),r.elementType=he,r.lanes=a,r.stateNode={isHidden:!1},r}function Qc(r,s,a){return r=tn(6,r,null,s),r.lanes=a,r}function Gc(r,s,a){return s=tn(4,r.children!==null?r.children:[],r.key,s),s.lanes=a,s.stateNode={containerInfo:r.containerInfo,pendingChildren:null,implementation:r.implementation},s}function O1(r,s,a,c,f){this.tag=s,this.containerInfo=r,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Su(0),this.expirationTimes=Su(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Su(0),this.identifierPrefix=c,this.onRecoverableError=f,this.mutableSourceEagerHydrationData=null}function Yc(r,s,a,c,f,m,v,C,T){return r=new O1(r,s,a,C,T),s===1?(s=1,m===!0&&(s|=8)):s=0,m=tn(3,null,null,s),r.current=m,m.stateNode=r,m.memoizedState={element:c,isDehydrated:a,cache:null,transitions:null,pendingSuspenseBoundaries:null},uc(m),r}function L1(r,s,a){var c=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:z,key:c==null?null:""+c,children:r,containerInfo:s,implementation:a}}function xg(r){if(!r)return ur;r=r._reactInternals;e:{if(Vr(r)!==r||r.tag!==1)throw Error(n(170));var s=r;do{switch(s.tag){case 3:s=s.stateNode.context;break e;case 1:if(Lt(s.type)){s=s.stateNode.__reactInternalMemoizedMergedChildContext;break e}}s=s.return}while(s!==null);throw Error(n(171))}if(r.tag===1){var a=r.type;if(Lt(a))return Qp(r,a,s)}return s}function bg(r,s,a,c,f,m,v,C,T){return r=Yc(a,c,!0,r,f,m,v,C,T),r.context=xg(null),a=r.current,c=At(),f=gr(a),m=zn(c,f),m.callback=s??null,fr(a,m,f),r.current.lanes=f,ji(r,f,c),Mt(r,c),r}function al(r,s,a,c){var f=s.current,m=At(),v=gr(f);return a=xg(a),s.context===null?s.context=a:s.pendingContext=a,s=zn(m,v),s.payload={element:r},c=c===void 0?null:c,c!==null&&(s.callback=c),r=fr(f,s,v),r!==null&&(vn(r,f,v,m),Fa(r,f,v)),v}function ll(r){if(r=r.current,!r.child)return null;switch(r.child.tag){case 5:return r.child.stateNode;default:return r.child.stateNode}}function Sg(r,s){if(r=r.memoizedState,r!==null&&r.dehydrated!==null){var a=r.retryLane;r.retryLane=a!==0&&a<s?a:s}}function Xc(r,s){Sg(r,s),(r=r.alternate)&&Sg(r,s)}function j1(){return null}var Eg=typeof reportError=="function"?reportError:function(r){console.error(r)};function Jc(r){this._internalRoot=r}ul.prototype.render=Jc.prototype.render=function(r){var s=this._internalRoot;if(s===null)throw Error(n(409));al(r,s,null,null)},ul.prototype.unmount=Jc.prototype.unmount=function(){var r=this._internalRoot;if(r!==null){this._internalRoot=null;var s=r.containerInfo;Yr(function(){al(null,r,null,null)}),s[In]=null}};function ul(r){this._internalRoot=r}ul.prototype.unstable_scheduleHydration=function(r){if(r){var s=op();r={blockedOn:null,target:r,priority:s};for(var a=0;a<sr.length&&s!==0&&s<sr[a].priority;a++);sr.splice(a,0,r),a===0&&up(r)}};function Zc(r){return!(!r||r.nodeType!==1&&r.nodeType!==9&&r.nodeType!==11)}function cl(r){return!(!r||r.nodeType!==1&&r.nodeType!==9&&r.nodeType!==11&&(r.nodeType!==8||r.nodeValue!==" react-mount-point-unstable "))}function _g(){}function D1(r,s,a,c,f){if(f){if(typeof c=="function"){var m=c;c=function(){var F=ll(v);m.call(F)}}var v=bg(s,c,r,0,null,!1,!1,"",_g);return r._reactRootContainer=v,r[In]=v.current,Qi(r.nodeType===8?r.parentNode:r),Yr(),v}for(;f=r.lastChild;)r.removeChild(f);if(typeof c=="function"){var C=c;c=function(){var F=ll(T);C.call(F)}}var T=Yc(r,0,!1,null,null,!1,!1,"",_g);return r._reactRootContainer=T,r[In]=T.current,Qi(r.nodeType===8?r.parentNode:r),Yr(function(){al(s,T,a,c)}),T}function dl(r,s,a,c,f){var m=a._reactRootContainer;if(m){var v=m;if(typeof f=="function"){var C=f;f=function(){var T=ll(v);C.call(T)}}al(s,v,r,f)}else v=D1(a,s,r,f,c);return ll(v)}sp=function(r){switch(r.tag){case 3:var s=r.stateNode;if(s.current.memoizedState.isDehydrated){var a=Li(s.pendingLanes);a!==0&&(Eu(s,a|1),Mt(s,Xe()),(Ne&6)===0&&(Xs=Xe()+500,cr()))}break;case 13:Yr(function(){var c=Vn(r,1);if(c!==null){var f=At();vn(c,r,1,f)}}),Xc(r,1)}},_u=function(r){if(r.tag===13){var s=Vn(r,134217728);if(s!==null){var a=At();vn(s,r,134217728,a)}Xc(r,134217728)}},ip=function(r){if(r.tag===13){var s=gr(r),a=Vn(r,s);if(a!==null){var c=At();vn(a,r,s,c)}Xc(r,s)}},op=function(){return Ie},ap=function(r,s){var a=Ie;try{return Ie=r,s()}finally{Ie=a}},gu=function(r,s,a){switch(s){case"input":if(ht(r,a),s=a.name,a.type==="radio"&&s!=null){for(a=r;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll("input[name="+JSON.stringify(""+s)+'][type="radio"]'),s=0;s<a.length;s++){var c=a[s];if(c!==r&&c.form===r.form){var f=Pa(c);if(!f)throw Error(n(90));ft(c),ht(c,f)}}}break;case"textarea":Mh(r,a);break;case"select":s=a.value,s!=null&&er(r,!!a.multiple,s,!1)}},Hh=Wc,qh=Yr;var M1={usingClientEntryPoint:!1,Events:[Xi,Fs,Pa,$h,Wh,Wc]},fo={findFiberByHostInstance:zr,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},I1={bundleType:fo.bundleType,version:fo.version,rendererPackageName:fo.rendererPackageName,rendererConfig:fo.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:A.ReactCurrentDispatcher,findHostInstanceByFiber:function(r){return r=Yh(r),r===null?null:r.stateNode},findFiberByHostInstance:fo.findFiberByHostInstance||j1,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};
40if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var fl=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!fl.isDisabled&&fl.supportsFiber)try{ua=fl.inject(I1),_n=fl}catch{}}return It.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=M1,It.createPortal=function(r,s){var a=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Zc(s))throw Error(n(200));return L1(r,s,null,a)},It.createRoot=function(r,s){if(!Zc(r))throw Error(n(299));var a=!1,c="",f=Eg;return s!=null&&(s.unstable_strictMode===!0&&(a=!0),s.identifierPrefix!==void 0&&(c=s.identifierPrefix),s.onRecoverableError!==void 0&&(f=s.onRecoverableError)),s=Yc(r,1,!1,null,null,a,!1,c,f),r[In]=s.current,Qi(r.nodeType===8?r.parentNode:r),new Jc(s)},It.findDOMNode=function(r){if(r==null)return null;if(r.nodeType===1)return r;var s=r._reactInternals;if(s===void 0)throw typeof r.render=="function"?Error(n(188)):(r=Object.keys(r).join(","),Error(n(268,r)));return r=Yh(s),r=r===null?null:r.stateNode,r},It.flushSync=function(r){return Yr(r)},It.hydrate=function(r,s,a){if(!cl(s))throw Error(n(200));return dl(null,r,s,!0,a)},It.hydrateRoot=function(r,s,a){if(!Zc(r))throw Error(n(405));var c=a!=null&&a.hydratedSources||null,f=!1,m="",v=Eg;if(a!=null&&(a.unstable_strictMode===!0&&(f=!0),a.identifierPrefix!==void 0&&(m=a.identifierPrefix),a.onRecoverableError!==void 0&&(v=a.onRecoverableError)),s=bg(s,null,r,1,a??null,f,!1,m,v),r[In]=s.current,Qi(r),c)for(r=0;r<c.length;r++)a=c[r],f=a._getVersion,f=f(a._source),s.mutableSourceEagerHydrationData==null?s.mutableSourceEagerHydrationData=[a,f]:s.mutableSourceEagerHydrationData.push(a,f);return new ul(s)},It.render=function(r,s,a){if(!cl(s))throw Error(n(200));return dl(null,r,s,!1,a)},It.unmountComponentAtNode=function(r){if(!cl(r))throw Error(n(40));return r._reactRootContainer?(Yr(function(){dl(null,null,r,!1,function(){r._reactRootContainer=null,r[In]=null})}),!0):!1},It.unstable_batchedUpdates=Wc,It.unstable_renderSubtreeIntoContainer=function(r,s,a,c){if(!cl(a))throw Error(n(200));if(r==null||r._reactInternals===void 0)throw Error(n(38));return dl(r,s,a,!1,c)},It.version="18.3.1-next-f1338f8080-20240426",It}var Lg;function k0(){if(Lg)return rd.exports;Lg=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(e){console.error(e)}}return t(),rd.exports=G1(),rd.exports}var jg;function Y1(){if(jg)return pl;jg=1;var t=k0();return pl.createRoot=t.createRoot,pl.hydrateRoot=t.hydrateRoot,pl}var X1=Y1();const J1=C0(X1),Z1=20,eE=1e6,Gn={ADD_TOAST:"ADD_TOAST",UPDATE_TOAST:"UPDATE_TOAST",DISMISS_TOAST:"DISMISS_TOAST",REMOVE_TOAST:"REMOVE_TOAST"};let od=0;function tE(){return od=(od+1)%Number.MAX_VALUE,od.toString()}const ad=new Map,Dg=t=>{if(ad.has(t))return;const e=setTimeout(()=>{ad.delete(t),To({type:Gn.REMOVE_TOAST,toastId:t})},eE);ad.set(t,e)},nE=(t,e)=>{switch(e.type){case Gn.ADD_TOAST:return{...t,toasts:[e.toast,...t.toasts].slice(0,Z1)};case Gn.UPDATE_TOAST:return{...t,toasts:t.toasts.map(n=>n.id===e.toast.id?{...n,...e.toast}:n)};case Gn.DISMISS_TOAST:{const{toastId:n}=e;return n?Dg(n):t.toasts.forEach(i=>{Dg(i.id)}),{...t,toasts:t.toasts.map(i=>i.id===n||n===void 0?{...i,open:!1}:i)}}case Gn.REMOVE_TOAST:return e.toastId===void 0?{...t,toasts:[]}:{...t,toasts:t.toasts.filter(n=>n.id!==e.toastId)}}},Tl=[];let Pl={toasts:[]};function To(t){Pl=nE(Pl,t),Tl.forEach(e=>{e(Pl)})}function rE({...t}){const e=tE(),n=o=>To({type:Gn.UPDATE_TOAST,toast:{...o,id:e}}),i=()=>To({type:Gn.DISMISS_TOAST,toastId:e});return To({type:Gn.ADD_TOAST,toast:{...t,id:e,open:!0,onOpenChange:o=>{o||i()}}}),{id:e,dismiss:i,update:n}}function sE(){const[t,e]=D.useState(Pl);return D.useEffect(()=>(Tl.push(e),()=>{const n=Tl.indexOf(e);n>-1&&Tl.splice(n,1)}),[t]),{...t,toast:rE,dismiss:n=>To({type:Gn.DISMISS_TOAST,toastId:n})}}function T0(t){var e,n,i="";if(typeof t=="string"||typeof t=="number")i+=t;else if(typeof t=="object")if(Array.isArray(t)){var o=t.length;for(e=0;e<o;e++)t[e]&&(n=T0(t[e]))&&(i&&(i+=" "),i+=n)}else for(n in t)t[n]&&(i&&(i+=" "),i+=n);return i}function P0(){for(var t,e,n=0,i="",o=arguments.length;n<o;n++)(t=arguments[n])&&(e=T0(t))&&(i&&(i+=" "),i+=e);return i}const Mg=t=>typeof t=="boolean"?`${t}`:t===0?"0":t,Ig=P0,iE=(t,e)=>n=>{var i;if((e==null?void 0:e.variants)==null)return Ig(t,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:o,defaultVariants:l}=e,u=Object.keys(o).map(p=>{const g=n==null?void 0:n[p],y=l==null?void 0:l[p];if(g===null)return null;const w=Mg(g)||Mg(y);return o[p][w]}),d=n&&Object.entries(n).reduce((p,g)=>{let[y,w]=g;return w===void 0||(p[y]=w),p},{}),h=e==null||(i=e.compoundVariants)===null||i===void 0?void 0:i.reduce((p,g)=>{let{class:y,className:w,...E}=g;return Object.entries(E).every(P=>{let[_,S]=P;return Array.isArray(S)?S.includes({...l,...d}[_]):{...l,...d}[_]===S})?[...p,y,w]:p},[]);return Ig(t,u,h,n==null?void 0:n.class,n==null?void 0:n.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 oE=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),R0=(...t)=>t.filter((e,n,i)=>!!e&&e.trim()!==""&&i.indexOf(e)===n).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 aE={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 lE=D.forwardRef(({color:t="currentColor",size:e=24,strokeWidth:n=2,absoluteStrokeWidth:i,className:o="",children:l,iconNode:u,...d},h)=>D.createElement("svg",{ref:h,...aE,width:e,height:e,stroke:t,strokeWidth:i?Number(n)*24/Number(e):n,className:R0("lucide",o),...d},[...u.map(([p,g])=>D.createElement(p,g)),...Array.isArray(l)?l:[l]]));/** 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 En=(t,e)=>{const n=D.forwardRef(({className:i,...o},l)=>D.createElement(lE,{ref:l,iconNode:e,className:R0(`lucide-${oE(t)}`,i),...o}));return n.displayName=`${t}`,n};/** 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 uE=[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]],Rf=En("BookOpen",uE);/** 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 cE=[["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"}]],dE=En("Calendar",cE);/** 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 fE=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],hE=En("ChevronDown",fE);/** 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 pE=[["path",{d:"M21.42 10.922a1 1 0 0 0-.019-1.838L12.83 5.18a2 2 0 0 0-1.66 0L2.6 9.08a1 1 0 0 0 0 1.832l8.57 3.908a2 2 0 0 0 1.66 0z",key:"j76jl0"}],["path",{d:"M22 10v6",key:"1lu8f3"}],["path",{d:"M6 12.5V16a6 3 0 0 0 12 0v-3.5",key:"1r8lef"}]],mE=En("GraduationCap",pE);/** 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 gE=[["path",{d:"M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z",key:"c3ymky"}]],Af=En("Heart",gE);/** 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 yE=[["path",{d:"m3 11 18-5v12L3 14v-3z",key:"n962bs"}],["path",{d:"M11.6 16.8a3 3 0 1 1-5.8-1.6",key:"1yl0tm"}]],vE=En("Megaphone",yE);/** 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 wE=[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]],xE=En("Menu",wE);/** 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 bE=[["path",{d:"M17.8 19.2 16 11l3.5-3.5C21 6 21.5 4 21 3c-1-.5-3 0-4.5 1.5L13 8 4.8 6.2c-.5-.
1001-.9.1-1.1.5l-.3.5c-.2.5-.1 1 .3 1.3L9 12l-2 3H4l-1 1 3 2 2 3 1-1v-3l3-2 3.5 5.3c.3.4.8.5 1.3.3l.5-.2c.4-.3.6-.7.5-1.2z",key:"1v9wt8"}]],SE=En("Plane",bE);/** 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 EE=[["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"}]],_E=En("Target",EE);/** 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 CE=[["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"}]],A0=En("Users",CE);/** 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 kE=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],N0=En("X",kE),TE=(t,e)=>{const n=new Array(t.length+e.length);for(let i=0;i<t.length;i++)n[i]=t[i];for(let i=0;i<e.length;i++)n[t.length+i]=e[i];return n},PE=(t,e)=>({classGroupId:t,validator:e}),O0=(t=new Map,e=null,n)=>({nextPart:t,validators:e,classGroupId:n}),Bl="-",Fg=[],RE="arbitrary..",AE=t=>{const e=OE(t),{conflictingClassGroups:n,conflictingClassGroupModifiers:i}=t;return{getClassGroupId:u=>{if(u.startsWith("[")&&u.endsWith("]"))return NE(u);const d=u.split(Bl),h=d[0]===""&&d.length>1?1:0;return L0(d,h,e)},getConflictingClassGroupIds:(u,d)=>{if(d){const h=i[u],p=n[u];return h?p?TE(p,h):h:p||Fg}return n[u]||Fg}}},L0=(t,e,n)=>{if(t.length-e===0)return n.classGroupId;const o=t[e],l=n.nextPart.get(o);if(l){const p=L0(t,e+1,l);if(p)return p}const u=n.validators;if(u===null)return;const d=e===0?t.join(Bl):t.slice(e).join(Bl),h=u.length;for(let p=0;p<h;p++){const g=u[p];if(g.validator(d))return g.classGroupId}},NE=t=>t.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const e=t.slice(1,-1),n=e.indexOf(":"),i=e.slice(0,n);return i?RE+i:void 0})(),OE=t=>{const{theme:e,classGroups:n}=t;return LE(n,e)},LE=(t,e)=>{const n=O0();for(const i in t){const o=t[i];Nf(o,n,i,e)}return n},Nf=(t,e,n,i)=>{const o=t.length;for(let l=0;l<o;l++){const u=t[l];jE(u,e,n,i)}},jE=(t,e,n,i)=>{if(typeof t=="string"){DE(t,e,n);return}if(typeof t=="function"){ME(t,e,n,i);return}IE(t,e,n,i)},DE=(t,e,n)=>{const i=t===""?e:j0(e,t);i.classGroupId=n},ME=(t,e,n,i)=>{if(FE(t)){Nf(t(i),e,n,i);return}e.validators===null&&(e.validators=[]),e.validators.push(PE(n,t))},IE=(t,e,n,i)=>{const o=Object.entries(t),l=o.length;for(let u=0;u<l;u++){const[d,h]=o[u];Nf(h,j0(e,d),n,i)}},j0=(t,e)=>{let n=t;const i=e.split(Bl),o=i.length;for(let l=0;l<o;l++){const u=i[l];let d=n.nextPart.get(u);d||(d=O0(),n.nextPart.set(u,d)),n=d}return n},FE=t=>"isThemeGetter"in t&&t.isThemeGetter===!0,UE=t=>{if(t<1)return{get:()=>{},set:()=>{}};let e=0,n=Object.create(null),i=Object.create(null);const o=(l,u)=>{n[l]=u,e++,e>t&&(e=0,i=n,n=Object.create(null))};return{get(l){let u=n[l];if(u!==void 0)return u;if((u=i[l])!==void 0)return o(l,u),u},set(l,u){l in n?n[l]=u:o(l,u)}}},Md="!",Ug=":",BE=[],Bg=(t,e,n,i,o)=>({modifiers:t,hasImportantModifier:e,baseClassName:n,maybePostfixModifierPosition:i,isExternal:o}),VE=t=>{const{prefix:e,experimentalParseClassName:n}=t;let i=o=>{const l=[];let u=0,d=0,h=0,p;const g=o.length;for(let _=0;_<g;_++){const S=o[_];if(u===0&&d===0){if(S===Ug){l.push(o.slice(h,_)),h=_+1;continue}if(S==="/"){p=_;continue}}S==="["?u++:S==="]"?u--:S==="("?d++:S===")"&&d--}const y=l.length===0?o:o.slice(h);let w=y,E=!1;y.endsWith(Md)?(w=y.slice(0,-1),E=!0):y.startsWith(Md)&&(w=y.slice(1),E=!0);const P=p&&p>h?p-h:void 0;return Bg(l,E,w,P)};if(e){const o=e+Ug,l=i;i=u=>u.startsWith(o)?l(u.slice(o.length)):Bg(BE,!1,u,void 0,!0)}if(n){const o=i;i=l=>n({className:l,parseClassName:o})}return i},zE=t=>{const e=new Map;
vendor: 5,462 bytes, line 115
115return t.orderSensitiveModifiers.forEach((n,i)=>{e.set(n,1e6+i)}),n=>{const i=[];let o=[];for(let l=0;l<n.length;l++){const u=n[l],d=u[0]==="[",h=e.has(u);d||h?(o.length>0&&(o.sort(),i.push(...o),o=[]),i.push(u)):o.push(u)}return o.length>0&&(o.sort(),i.push(...o)),i}},$E=t=>({cache:UE(t.cacheSize),parseClassName:VE(t),sortModifiers:zE(t),...AE(t)}),WE=/\s+/,HE=(t,e)=>{const{parseClassName:n,getClassGroupId:i,getConflictingClassGroupIds:o,sortModifiers:l}=e,u=[],d=t.trim().split(WE);let h="";for(let p=d.length-1;p>=0;p-=1){const g=d[p],{isExternal:y,modifiers:w,hasImportantModifier:E,baseClassName:P,maybePostfixModifierPosition:_}=n(g);if(y){h=g+(h.length>0?" "+h:h);continue}let S=!!_,b=i(S?P.substring(0,_):P);if(!b){if(!S){h=g+(h.length>0?" "+h:h);continue}if(b=i(P),!b){h=g+(h.length>0?" "+h:h);continue}S=!1}const O=w.length===0?"":w.length===1?w[0]:l(w).join(":"),k=E?O+Md:O,A=k+b;if(u.indexOf(A)>-1)continue;u.push(A);const U=o(b,S);for(let z=0;z<U.length;++z){const J=U[z];u.push(k+J)}h=g+(h.length>0?" "+h:h)}return h},qE=(...t)=>{let e=0,n,i,o="";for(;e<t.length;)(n=t[e++])&&(i=D0(n))&&(o&&(o+=" "),o+=i);return o},D0=t=>{if(typeof t=="string")return t;let e,n="";for(let i=0;i<t.length;i++)t[i]&&(e=D0(t[i]))&&(n&&(n+=" "),n+=e);return n},KE=(t,...e)=>{let n,i,o,l;const u=h=>{const p=e.reduce((g,y)=>y(g),t());return n=$E(p),i=n.cache.get,o=n.cache.set,l=d,d(h)},d=h=>{const p=i(h);if(p)return p;const g=HE(h,n);return o(h,g),g};return l=u,(...h)=>l(qE(...h))},QE=[],ot=t=>{const e=n=>n[t]||QE;return e.isThemeGetter=!0,e},M0=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,I0=/^\((?:(\w[\w-]*):)?(.+)\)$/i,GE=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,YE=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,XE=/\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$/,JE=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,ZE=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,e_=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,xr=t=>GE.test(t),Ee=t=>!!t&&!Number.isNaN(Number(t)),br=t=>!!t&&Number.isInteger(Number(t)),ld=t=>t.endsWith("%")&&Ee(t.slice(0,-1)),Hn=t=>YE.test(t),F0=()=>!0,t_=t=>XE.test(t)&&!JE.test(t),Of=()=>!1,n_=t=>ZE.test(t),r_=t=>e_.test(t),s_=t=>!re(t)&&!se(t),i_=t=>Fr(t,V0,Of),re=t=>M0.test(t),es=t=>Fr(t,z0,t_),Vg=t=>Fr(t,h_,Ee),o_=t=>Fr(t,W0,F0),a_=t=>Fr(t,$0,Of),zg=t=>Fr(t,U0,Of),l_=t=>Fr(t,B0,r_),ml=t=>Fr(t,H0,n_),se=t=>I0.test(t),po=t=>Cs(t,z0),u_=t=>Cs(t,$0),$g=t=>Cs(t,U0),c_=t=>Cs(t,V0),d_=t=>Cs(t,B0),gl=t=>Cs(t,H0,!0),f_=t=>Cs(t,W0,!0),Fr=(t,e,n)=>{const i=M0.exec(t);return i?i[1]?e(i[1]):n(i[2]):!1},Cs=(t,e,n=!1)=>{const i=I0.exec(t);return i?i[1]?e(i[1]):n:!1},U0=t=>t==="position"||t==="percentage",B0=t=>t==="image"||t==="url",V0=t=>t==="length"||t==="size"||t==="bg-size",z0=t=>t==="length",h_=t=>t==="number",$0=t=>t==="family-name",W0=t=>t==="number"||t==="weight",H0=t=>t==="shadow",p_=()=>{const t=ot("color"),e=ot("font"),n=ot("text"),i=ot("font-weight"),o=ot("tracking"),l=ot("leading"),u=ot("breakpoint"),d=ot("container"),h=ot("spacing"),p=ot("radius"),g=ot("shadow"),y=ot("inset-shadow"),w=ot("text-shadow"),E=ot("drop-shadow"),P=ot("blur"),_=ot("perspective"),S=ot("aspect"),b=ot("ease"),O=ot("animate"),k=()=>["auto","avoid","all","avoid-page","page","left","right","column"],A=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],U=()=>[...A(),se,re],z=()=>["auto","hidden","clip","visible","scroll"],J=()=>["auto","contain","none"],B=()=>[se,re,h],Z=()=>[xr,"full","auto",...B()],le=()=>[br,"none","subgrid",se,re],be=()=>["auto",{span:["full",br,se,re]},br,se,re],De=()=>[br,"auto",se,re],Se=()=>["auto","min","max","fr",se,re],Ce=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],Fe=()=>["start","end","center","stretch","center-safe","end-safe"],Ae=()=>["auto",...B()],he=()=>[xr,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...B()],Q=()=>[xr,"screen","full","dvw","lvw","svw","min","max","fit",...B()],oe=()=>[xr,"screen","full","lh","dvh","lvh","svh","min","max","fit",...B()],V=()=>[t,se,re],j=()=>[...A(),$g,zg,{position:[se,re]}],$=()=>["no-repeat",{repeat:["","x","y","space","round"]}],me=()=>["auto","cover","contain",c_,i_,{size:[se,re]}],ge=()=>[ld,po,es],de=()=>["","none","full",p,se,re],G=()=>["",Ee,po,es],we=()=>["solid","dashed","dotted","double"],ke=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ve=()=>[Ee,ld,$g,zg],at=()=>["","none",P,se,re],Kt=()=>["none",Ee,se,re],ft=()=>["none",Ee,se,re],un=()=>[Ee,se,re],Qt=()=>[xr,"full",...B()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Hn],breakpoint:[Hn],color:[F0],container:[Hn],"drop-shadow":[Hn],ease:["in","out","in-out"],font:[s_],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Hn],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Hn],shadow:[Hn],spacing:["px",Ee],text:[Hn],"text-shadow":[Hn],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",xr,re,se,S]}
vendor: 6,133 bytes, line 115
115],container:["container"],columns:[{columns:[Ee,re,se,d]}],"break-after":[{"break-after":k()}],"break-before":[{"break-before":k()}],"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:U()}],overflow:[{overflow:z()}],"overflow-x":[{"overflow-x":z()}],"overflow-y":[{"overflow-y":z()}],overscroll:[{overscroll:J()}],"overscroll-x":[{"overscroll-x":J()}],"overscroll-y":[{"overscroll-y":J()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:Z()}],"inset-x":[{"inset-x":Z()}],"inset-y":[{"inset-y":Z()}],start:[{"inset-s":Z(),start:Z()}],end:[{"inset-e":Z(),end:Z()}],"inset-bs":[{"inset-bs":Z()}],"inset-be":[{"inset-be":Z()}],top:[{top:Z()}],right:[{right:Z()}],bottom:[{bottom:Z()}],left:[{left:Z()}],visibility:["visible","invisible","collapse"],z:[{z:[br,"auto",se,re]}],basis:[{basis:[xr,"full","auto",d,...B()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Ee,xr,"auto","initial","none",re]}],grow:[{grow:["",Ee,se,re]}],shrink:[{shrink:["",Ee,se,re]}],order:[{order:[br,"first","last","none",se,re]}],"grid-cols":[{"grid-cols":le()}],"col-start-end":[{col:be()}],"col-start":[{"col-start":De()}],"col-end":[{"col-end":De()}],"grid-rows":[{"grid-rows":le()}],"row-start-end":[{row:be()}],"row-start":[{"row-start":De()}],"row-end":[{"row-end":De()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":Se()}],"auto-rows":[{"auto-rows":Se()}],gap:[{gap:B()}],"gap-x":[{"gap-x":B()}],"gap-y":[{"gap-y":B()}],"justify-content":[{justify:[...Ce(),"normal"]}],"justify-items":[{"justify-items":[...Fe(),"normal"]}],"justify-self":[{"justify-self":["auto",...Fe()]}],"align-content":[{content:["normal",...Ce()]}],"align-items":[{items:[...Fe(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...Fe(),{baseline:["","last"]}]}],"place-content":[{"place-content":Ce()}],"place-items":[{"place-items":[...Fe(),"baseline"]}],"place-self":[{"place-self":["auto",...Fe()]}],p:[{p:B()}],px:[{px:B()}],py:[{py:B()}],ps:[{ps:B()}],pe:[{pe:B()}],pbs:[{pbs:B()}],pbe:[{pbe:B()}],pt:[{pt:B()}],pr:[{pr:B()}],pb:[{pb:B()}],pl:[{pl:B()}],m:[{m:Ae()}],mx:[{mx:Ae()}],my:[{my:Ae()}],ms:[{ms:Ae()}],me:[{me:Ae()}],mbs:[{mbs:Ae()}],mbe:[{mbe:Ae()}],mt:[{mt:Ae()}],mr:[{mr:Ae()}],mb:[{mb:Ae()}],ml:[{ml:Ae()}],"space-x":[{"space-x":B()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":B()}],"space-y-reverse":["space-y-reverse"],size:[{size:he()}],"inline-size":[{inline:["auto",...Q()]}],"min-inline-size":[{"min-inline":["auto",...Q()]}],"max-inline-size":[{"max-inline":["none",...Q()]}],"block-size":[{block:["auto",...oe()]}],"min-block-size":[{"min-block":["auto",...oe()]}],"max-block-size":[{"max-block":["none",...oe()]}],w:[{w:[d,"screen",...he()]}],"min-w":[{"min-w":[d,"screen","none",...he()]}],"max-w":[{"max-w":[d,"screen","none","prose",{screen:[u]},...he()]}],h:[{h:["screen","lh",...he()]}],"min-h":[{"min-h":["screen","lh","none",...he()]}],"max-h":[{"max-h":["screen","lh",...he()]}],"font-size":[{text:["base",n,po,es]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[i,f_,o_]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",ld,re]}],"font-family":[{font:[u_,a_,e]}],"font-features":[{"font-features":[re]}],"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:[o,se,re]}],"line-clamp":[{"line-clamp":[Ee,"none",se,Vg]}],leading:[{leading:[l,...B()]}],"list-image":[{"list-image":["none",se,re]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",se,re]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:V()}],"text-color":[{text:V()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...we(),"wavy"]}],"text-decoration-thickness":[{decoration:[Ee,"from-font","auto",se,es]}],"text-decoration-color":[{decoration:V()}],"underline-offset":[{"underline-offset":[Ee,"auto",se,re]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:B()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",se,re]}],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",se,re]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:j()}],"bg-repeat":[{bg:$()}],"bg-size":[{bg:me()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},br,se,re],radial:["",se,re],conic:[br,se,re]},d_,l_]}],"bg-color":[{bg:V()}],"gradient-from-pos":[{from:ge()}
vendor: 7,388 bytes, line 115
115],"gradient-via-pos":[{via:ge()}],"gradient-to-pos":[{to:ge()}],"gradient-from":[{from:V()}],"gradient-via":[{via:V()}],"gradient-to":[{to:V()}],rounded:[{rounded:de()}],"rounded-s":[{"rounded-s":de()}],"rounded-e":[{"rounded-e":de()}],"rounded-t":[{"rounded-t":de()}],"rounded-r":[{"rounded-r":de()}],"rounded-b":[{"rounded-b":de()}],"rounded-l":[{"rounded-l":de()}],"rounded-ss":[{"rounded-ss":de()}],"rounded-se":[{"rounded-se":de()}],"rounded-ee":[{"rounded-ee":de()}],"rounded-es":[{"rounded-es":de()}],"rounded-tl":[{"rounded-tl":de()}],"rounded-tr":[{"rounded-tr":de()}],"rounded-br":[{"rounded-br":de()}],"rounded-bl":[{"rounded-bl":de()}],"border-w":[{border:G()}],"border-w-x":[{"border-x":G()}],"border-w-y":[{"border-y":G()}],"border-w-s":[{"border-s":G()}],"border-w-e":[{"border-e":G()}],"border-w-bs":[{"border-bs":G()}],"border-w-be":[{"border-be":G()}],"border-w-t":[{"border-t":G()}],"border-w-r":[{"border-r":G()}],"border-w-b":[{"border-b":G()}],"border-w-l":[{"border-l":G()}],"divide-x":[{"divide-x":G()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":G()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...we(),"hidden","none"]}],"divide-style":[{divide:[...we(),"hidden","none"]}],"border-color":[{border:V()}],"border-color-x":[{"border-x":V()}],"border-color-y":[{"border-y":V()}],"border-color-s":[{"border-s":V()}],"border-color-e":[{"border-e":V()}],"border-color-bs":[{"border-bs":V()}],"border-color-be":[{"border-be":V()}],"border-color-t":[{"border-t":V()}],"border-color-r":[{"border-r":V()}],"border-color-b":[{"border-b":V()}],"border-color-l":[{"border-l":V()}],"divide-color":[{divide:V()}],"outline-style":[{outline:[...we(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Ee,se,re]}],"outline-w":[{outline:["",Ee,po,es]}],"outline-color":[{outline:V()}],shadow:[{shadow:["","none",g,gl,ml]}],"shadow-color":[{shadow:V()}],"inset-shadow":[{"inset-shadow":["none",y,gl,ml]}],"inset-shadow-color":[{"inset-shadow":V()}],"ring-w":[{ring:G()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:V()}],"ring-offset-w":[{"ring-offset":[Ee,es]}],"ring-offset-color":[{"ring-offset":V()}],"inset-ring-w":[{"inset-ring":G()}],"inset-ring-color":[{"inset-ring":V()}],"text-shadow":[{"text-shadow":["none",w,gl,ml]}],"text-shadow-color":[{"text-shadow":V()}],opacity:[{opacity:[Ee,se,re]}],"mix-blend":[{"mix-blend":[...ke(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ke()}],"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":[Ee]}],"mask-image-linear-from-pos":[{"mask-linear-from":ve()}],"mask-image-linear-to-pos":[{"mask-linear-to":ve()}],"mask-image-linear-from-color":[{"mask-linear-from":V()}],"mask-image-linear-to-color":[{"mask-linear-to":V()}],"mask-image-t-from-pos":[{"mask-t-from":ve()}],"mask-image-t-to-pos":[{"mask-t-to":ve()}],"mask-image-t-from-color":[{"mask-t-from":V()}],"mask-image-t-to-color":[{"mask-t-to":V()}],"mask-image-r-from-pos":[{"mask-r-from":ve()}],"mask-image-r-to-pos":[{"mask-r-to":ve()}],"mask-image-r-from-color":[{"mask-r-from":V()}],"mask-image-r-to-color":[{"mask-r-to":V()}],"mask-image-b-from-pos":[{"mask-b-from":ve()}],"mask-image-b-to-pos":[{"mask-b-to":ve()}],"mask-image-b-from-color":[{"mask-b-from":V()}],"mask-image-b-to-color":[{"mask-b-to":V()}],"mask-image-l-from-pos":[{"mask-l-from":ve()}],"mask-image-l-to-pos":[{"mask-l-to":ve()}],"mask-image-l-from-color":[{"mask-l-from":V()}],"mask-image-l-to-color":[{"mask-l-to":V()}],"mask-image-x-from-pos":[{"mask-x-from":ve()}],"mask-image-x-to-pos":[{"mask-x-to":ve()}],"mask-image-x-from-color":[{"mask-x-from":V()}],"mask-image-x-to-color":[{"mask-x-to":V()}],"mask-image-y-from-pos":[{"mask-y-from":ve()}],"mask-image-y-to-pos":[{"mask-y-to":ve()}],"mask-image-y-from-color":[{"mask-y-from":V()}],"mask-image-y-to-color":[{"mask-y-to":V()}],"mask-image-radial":[{"mask-radial":[se,re]}],"mask-image-radial-from-pos":[{"mask-radial-from":ve()}],"mask-image-radial-to-pos":[{"mask-radial-to":ve()}],"mask-image-radial-from-color":[{"mask-radial-from":V()}],"mask-image-radial-to-color":[{"mask-radial-to":V()}],"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":A()}],"mask-image-conic-pos":[{"mask-conic":[Ee]}],"mask-image-conic-from-pos":[{"mask-conic-from":ve()}],"mask-image-conic-to-pos":[{"mask-conic-to":ve()}],"mask-image-conic-from-color":[{"mask-conic-from":V()}],"mask-image-conic-to-color":[{"mask-conic-to":V()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:j()}],"mask-repeat":[{mask:$()}],"mask-size":[{mask:me()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",se,re]}],filter:[{filter:["","none",se,re]}],blur:[{blur:at()}],brightness:[{brightness:[Ee,se,re]}],contrast:[{contrast:[Ee,se,re]}],"drop-shadow":[{"drop-shadow":["","none",E,gl,ml]}],"drop-shadow-color":[{"drop-shadow":V()}],grayscale:[{grayscale:["",Ee,se,re]}],"hue-rotate":[{"hue-rotate":[Ee,se,re]}],invert:[{invert:["",Ee,se,re]}],saturate:[{saturate:[Ee,se,re]}],sepia:[{sepia:["",Ee,se,re]}],"backdrop-filter":[{"backdrop-filter":["","none",se,re]}],"backdrop-blur":[{"backdrop-blur":at()}],"backdrop-brightness":[{"backdrop-brightness":[Ee,se,re]}],"backdrop-contrast":[{"backdrop-contrast":[Ee,se,re]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Ee,se,re]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Ee,se,re]}],"backdrop-invert":[{"backdrop-invert":["",Ee,se,re]}],"backdrop-opacity":[{"backdrop-opacity":[Ee,se,re]}],"backdrop-saturate":[{"backdrop-saturate":[Ee,se,re]}],"backdrop-sepia":[{"backdrop-sepia":["",Ee,se,re]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":B()}],"border-spacing-x":[{"border-spacing-x":B()}],"border-spacing-y":[{"border-spacing-y":B()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",se,re]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Ee,"initial",se,re]}],ease:[{ease:["linear","initial",b,se,re]}],delay:[{delay:[Ee,se,re]}],animate:[{animate:["none",O,se,re]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[_,se,re]}],"perspective-origin":[{"perspective-origin":U()}],rotate:[{rotate:Kt()}],"rotate-x":[{"rotate-x":Kt()}],"rotate-y":[{"rotate-y":Kt()}],"rotate-z":[{"rotate-z":Kt()}],scale:[{scale:ft()}],"scale-x":[{"scale-x":ft()}],"scale-y":[{"scale-y":ft()}],"scale-z":[{"scale-z":ft()}],"scale-3d":["scale-3d"],skew:[{skew:un()}],"skew-x":[{"skew-x":un()}],"skew-y":[{"skew-y":un()}],transform:[{transform:[se,re,"","none","gpu","cpu"]}],"transform-origin":[{origin:U()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Qt()}],"translate-x":[{"translate-x":Qt()}],"translate-y":[{"translate-y":Qt()}],"translate-z":[{"translate-z":Qt()}],"translate-none":["translate-none"],accent:[{accent:V()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:V()}
vendor: 6,955 bytes, line 115
115],"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",se,re]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":B()}],"scroll-mx":[{"scroll-mx":B()}],"scroll-my":[{"scroll-my":B()}],"scroll-ms":[{"scroll-ms":B()}],"scroll-me":[{"scroll-me":B()}],"scroll-mbs":[{"scroll-mbs":B()}],"scroll-mbe":[{"scroll-mbe":B()}],"scroll-mt":[{"scroll-mt":B()}],"scroll-mr":[{"scroll-mr":B()}],"scroll-mb":[{"scroll-mb":B()}],"scroll-ml":[{"scroll-ml":B()}],"scroll-p":[{"scroll-p":B()}],"scroll-px":[{"scroll-px":B()}],"scroll-py":[{"scroll-py":B()}],"scroll-ps":[{"scroll-ps":B()}],"scroll-pe":[{"scroll-pe":B()}],"scroll-pbs":[{"scroll-pbs":B()}],"scroll-pbe":[{"scroll-pbe":B()}],"scroll-pt":[{"scroll-pt":B()}],"scroll-pr":[{"scroll-pr":B()}],"scroll-pb":[{"scroll-pb":B()}],"scroll-pl":[{"scroll-pl":B()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",se,re]}],fill:[{fill:["none",...V()]}],"stroke-w":[{stroke:[Ee,po,es,Vg]}],stroke:[{stroke:["none",...V()]}],"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"]}},m_=KE(p_);function Qo(...t){return m_(P0(t))}const q0=D.forwardRef(({...t},e)=>x.jsx("div",{ref:e,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]",...t}));q0.displayName="ToastProvider";const K0=D.forwardRef(({...t},e)=>x.jsx("div",{ref:e,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]",...t}));K0.displayName="ToastViewport";const g_=iE("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"}}),Q0=D.forwardRef(({className:t,variant:e,...n},i)=>x.jsx("div",{ref:i,className:Qo(g_({variant:e}),t),...n}));Q0.displayName="Toast";const y_=D.forwardRef(({className:t,...e},n)=>x.jsx("div",{ref:n,className:Qo("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",t),...e}));y_.displayName="ToastAction";const G0=D.forwardRef(({className:t,...e},n)=>x.jsx("button",{ref:n,className:Qo("absolute right-2 top-2 rounded-md p-1 text-foreground
115/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",t),"toast-close":"",...e,children:x.jsx(N0,{className:"h-4 w-4"})}));G0.displayName="ToastClose";const Y0=D.forwardRef(({className:t,...e},n)=>x.jsx("div",{ref:n,className:Qo("text-sm font-semibold",t),...e}));Y0.displayName="ToastTitle";const X0=D.forwardRef(({className:t,...e},n)=>x.jsx("div",{ref:n,className:Qo("text-sm opacity-90",t),...e}));X0.displayName="ToastDescription";function v_(){const{toasts:t}=sE();return x.jsxs(q0,{children:[t.map(function({id:e,title:n,description:i,action:o,...l}){return x.jsxs(Q0,{...l,children:[x.jsxs("div",{className:"grid gap-1",children:[n&&x.jsx(Y0,{children:n}),i&&x.jsx(X0,{children:i})]}),o,x.jsx(G0,{})]},e)}),x.jsx(K0,{})]})}var Go=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(t){return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},w_={setTimeout:(t,e)=>setTimeout(t,e),clearTimeout:t=>clearTimeout(t),setInterval:(t,e)=>setInterval(t,e),clearInterval:t=>clearInterval(t)},_r,Tf,p0,x_=(p0=class{constructor(){fe(this,_r,w_);fe(this,Tf,!1)}setTimeoutProvider(t){ee(this,_r,t)}setTimeout(t,e){return R(this,_r).setTimeout(t,e)}clearTimeout(t){R(this,_r).clearTimeout(t)}setInterval(t,e){return R(this,_r).setInterval(t,e)}clearInterval(t){R(this,_r).clearInterval(t)}},_r=new WeakMap,Tf=new WeakMap,p0),os=new x_;function b_(t){setTimeout(t,0)}var bs=typeof window>"u"||"Deno"in globalThis;function Ut(){}function S_(t,e){return typeof t=="function"?t(e):t}function Id(t){return typeof t=="number"&&t>=0&&t!==1/0}function J0(t,e){return Math.max(t+(e||0)-Date.now(),0)}function Lr(t,e){return typeof t=="function"?t(e):t}function on(t,e){return typeof t=="function"?t(e):t}function Wg(t,e){const{type:n="all",exact:i,fetchStatus:o,predicate:l,queryKey:u,stale:d}=t;if(u){if(i){if(e.queryHash!==Lf(u,e.options))return!1}else if(!jo(e.queryKey,u))return!1}if(n!=="all"){const h=e.isActive();if(n==="active"&&!h||n==="inactive"&&h)return!1}return!(typeof d=="boolean"&&e.isStale()!==d||o&&o!==e.state.fetchStatus||l&&!l(e))}function Hg(t,e){const{exact:n,status:i,predicate:o,mutationKey:l}=t;if(l){if(!e.options.mutationKey)return!1;if(n){if(Lo(e.options.mutationKey)!==Lo(l))return!1}else if(!jo(e.options.mutationKey,l))return!1}return!(i&&e.state.status!==i||o&&!o(e))}function Lf(t,e){return((e==null?void 0:e.queryKeyHashFn)||Lo)(t)}function Lo(t){return JSON.stringify(t,(e,n)=>Ud(n)?Object.keys(n).sort().reduce((i,o)=>(i[o]=n[o],i),{}):n)}function jo(t,e){return t===e?!0:typeof t!=typeof e?!1:t&&e&&typeof t=="object"&&typeof e=="object"?Object.keys(e).every(n=>jo(t[n],e[n])):!1}var E_=Object.prototype.hasOwnProperty;function Z0(t,e,n=0){if(t===e)return t;if(n>500)return e;const i=qg(t)&&qg(e);if(!i&&!(Ud(t)&&Ud(e)))return e;const l=(i?t:Object.keys(t)).length,u=i?e:Object.keys(e),d=u.length,h=i?new Array(d):{};let p=0;for(let g=0;g<d;g++){const y=i?g:u[g],w=t[y],E=e[y];if(w===E){h[y]=w,(i?g<l:E_.call(t,y))&&p++;continue}if(w===null||E===null||typeof w!="object"||typeof E!="object"){h[y]=E;continue}const P=Z0(w,E,n+1);h[y]=P,P===w&&p++}return l===d&&p===l?t:h}function Fd(t,e){if(!e||Object.keys(t).length!==Object.keys(e).length)return!1;for(const n in t)if(t[n]!==e[n])return!1;return!0}function qg(t){return Array.isArray(t)&&t.length===Object.keys(t).length}function Ud(t){if(!Kg(t))return!1;const e=t.constructor;if(e===void 0)return!0;const n=e.prototype;return!(!Kg(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(t)!==Object.prototype)}function Kg(t){return Object.prototype.toString.call(t)==="[object Object]"}function __(t){return new Promise(e=>{os.setTimeout(e,t)})}function Bd(t,e,n){return typeof n.structuralSharing=="function"?n.structuralSharing(t,e):n.structuralSharing!==!1?Z0(t,e):e}function C_(t,e,n=0){const i=[...t,e];return n&&i.length>n?i.slice(1):i}function k_(t,e,n=0){const i=[e,...t];return n&&i.length>n?i.slice(0,-1):i}var jf=Symbol();function ew(t,e){return!t.queryFn&&(e!=null&&e.initialPromise)?()=>e.initialPromise:!t.queryFn||t.queryFn===jf?()=>Promise.reject(new Error(`Missing queryFn: '${t.queryHash}'`)):t.queryFn}function tw(t,e){return typeof t=="function"?t(...e):!!t}function T_(t,e,n){let i=!1,o;return Object.defineProperty(t,"signal",{enumerable:!0,get:()=>(o??(o=e()),i||(i=!0,o.aborted?n():o.addEventListener("abort",n,{once:!0})),o)}),t}var us,Cr,oi,m0,P_=(m0=class extends Go{constructor(){super();fe(this,us);fe(this,Cr);fe(this,oi);ee(this,oi,e=>{if(!bs&&window.addEventListener){const n=()=>e();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){R(this,Cr)||this.setEventListener(R(this,oi))}onUnsubscribe(){var e;this.hasListeners()||((e=R(this,Cr))==null||e.call(this),ee(this,Cr,void 0))}setEventListener(e){var n;ee(this,oi,e),(n=R(this,Cr))==null||n.call(this),ee(this,Cr,e(i=>{typeof i=="boolean"?this.setFocused(i):this.onFocus()}))}setFocused(e){R(this,us)!==e&&(ee(this,us,e),this.onFocus())}onFocus(){const e=this.isFocused();
vendor: 4,610 bytes, line 115
115this.listeners.forEach(n=>{n(e)})}isFocused(){var e;return typeof R(this,us)=="boolean"?R(this,us):((e=globalThis.document)==null?void 0:e.visibilityState)!=="hidden"}},us=new WeakMap,Cr=new WeakMap,oi=new WeakMap,m0),Df=new P_;function Vd(){let t,e;const n=new Promise((o,l)=>{t=o,e=l});n.status="pending",n.catch(()=>{});function i(o){Object.assign(n,o),delete n.resolve,delete n.reject}return n.resolve=o=>{i({status:"fulfilled",value:o}),t(o)},n.reject=o=>{i({status:"rejected",reason:o}),e(o)},n}var R_=b_;function A_(){let t=[],e=0,n=d=>{d()},i=d=>{d()},o=R_;const l=d=>{e?t.push(d):o(()=>{n(d)})},u=()=>{const d=t;t=[],d.length&&o(()=>{i(()=>{d.forEach(h=>{n(h)})})})};return{batch:d=>{let h;e++;try{h=d()}finally{e--,e||u()}return h},batchCalls:d=>(...h)=>{l(()=>{d(...h)})},schedule:l,setNotifyFunction:d=>{n=d},setBatchNotifyFunction:d=>{i=d},setScheduler:d=>{o=d}}}var vt=A_(),ai,kr,li,g0,N_=(g0=class extends Go{constructor(){super();fe(this,ai,!0);fe(this,kr);fe(this,li);ee(this,li,e=>{if(!bs&&window.addEventListener){const n=()=>e(!0),i=()=>e(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",i,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",i)}}})}onSubscribe(){R(this,kr)||this.setEventListener(R(this,li))}onUnsubscribe(){var e;this.hasListeners()||((e=R(this,kr))==null||e.call(this),ee(this,kr,void 0))}setEventListener(e){var n;ee(this,li,e),(n=R(this,kr))==null||n.call(this),ee(this,kr,e(this.setOnline.bind(this)))}setOnline(e){R(this,ai)!==e&&(ee(this,ai,e),this.listeners.forEach(i=>{i(e)}))}isOnline(){return R(this,ai)}},ai=new WeakMap,kr=new WeakMap,li=new WeakMap,g0),Vl=new N_;function O_(t){return Math.min(1e3*2**t,3e4)}function nw(t){return(t??"online")==="online"?Vl.isOnline():!0}var zd=class extends Error{constructor(t){super("CancelledError"),this.revert=t==null?void 0:t.revert,this.silent=t==null?void 0:t.silent}};function rw(t){let e=!1,n=0,i;const o=Vd(),l=()=>o.status!=="pending",u=_=>{var S;if(!l()){const b=new zd(_);w(b),(S=t.onCancel)==null||S.call(t,b)}},d=()=>{e=!0},h=()=>{e=!1},p=()=>Df.isFocused()&&(t.networkMode==="always"||Vl.isOnline())&&t.canRun(),g=()=>nw(t.networkMode)&&t.canRun(),y=_=>{l()||(i==null||i(),o.resolve(_))},w=_=>{l()||(i==null||i(),o.reject(_))},E=()=>new Promise(_=>{var S;i=b=>{(l()||p())&&_(b)},(S=t.onPause)==null||S.call(t)}).then(()=>{var _;i=void 0,l()||(_=t.onContinue)==null||_.call(t)}),P=()=>{if(l())return;let _;const S=n===0?t.initialPromise:void 0;try{_=S??t.fn()}catch(b){_=Promise.reject(b)}Promise.resolve(_).then(y).catch(b=>{var z;if(l())return;const O=t.retry??(bs?0:3),k=t.retryDelay??O_,A=typeof k=="function"?k(n,b):k,U=O===!0||typeof O=="number"&&n<O||typeof O=="function"&&O(n,b);if(e||!U){w(b);return}n++,(z=t.onFail)==null||z.call(t,n,b),__(A).then(()=>p()?void 0:E()).then(()=>{e?w(b):P()})})};return{promise:o,status:()=>o.status,cancel:u,continue:()=>(i==null||i(),o),cancelRetry:d,continueRetry:h,canStart:g,start:()=>(g()?P():E().then(P),o)}}var cs,y0,sw=(y0=class{constructor(){fe(this,cs)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Id(this.gcTime)&&ee(this,cs,os.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(t){this.gcTime=Math.max(this.gcTime||0,t??(bs?1/0:300*1e3))}clearGcTimeout(){R(this,cs)&&(os.clearTimeout(R(this,cs)),ee(this,cs,void 0))}},cs=new WeakMap,y0),ds,ui,sn,fs,dt,$o,hs,xn,qn,v0,L_=(v0=class extends sw{constructor(e){super();fe(this,xn);fe(this,ds);fe(this,ui);fe(this,sn);fe(this,fs);fe(this,dt);fe(this,$o);fe(this,hs);ee(this,hs,!1),ee(this,$o,e.defaultOptions),this.setOptions(e.options),this.observers=[],ee(this,fs,e.client),ee(this,sn,R(this,fs).getQueryCache()),this.queryKey=e.queryKey,this.queryHash=e.queryHash,ee(this,ds,Gg(this.options)),this.state=e.state??R(this,ds),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var e;return(e=R(this,dt))==null?void 0:e.promise}setOptions(e){if(this.options={...R(this,$o),...e},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const n=Gg(this.options);n.data!==void 0&&(this.setState(Qg(n.data,n.dataUpdatedAt)),ee(this,ds,n))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&R(this,sn).remove(this)}setData(e,n){const i=Bd(this.state.data,e,this.options);return Te(this,xn,qn).call(this,{data:i,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),i}setState(e,n){Te(this,xn,qn).call(this,{type:"setState",state:e,setStateOptions:n})}cancel(e){var i,o;const n=(i=R(this,dt))==null?void 0:i.promise;
115return(o=R(this,dt))==null||o.cancel(e),n?n.then(Ut).catch(Ut):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(R(this,ds))}isActive(){return this.observers.some(e=>on(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===jf||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>Lr(e.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e==="static"?!1:this.state.isInvalidated?!0:!J0(this.state.dataUpdatedAt,e)}onFocus(){var n;const e=this.observers.find(i=>i.shouldFetchOnWindowFocus());e==null||e.refetch({cancelRefetch:!1}),(n=R(this,dt))==null||n.continue()}onOnline(){var n;const e=this.observers.find(i=>i.shouldFetchOnReconnect());e==null||e.refetch({cancelRefetch:!1}),(n=R(this,dt))==null||n.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),R(this,sn).notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(n=>n!==e),this.observers.length||(R(this,dt)&&(R(this,hs)?R(this,dt).cancel({revert:!0}):R(this,dt).cancelRetry()),this.scheduleGc()),R(this,sn).notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Te(this,xn,qn).call(this,{type:"invalidate"})}async fetch(e,n){var h,p,g,y,w,E,P,_,S,b,O,k;if(this.state.fetchStatus!=="idle"&&((h=R(this,dt))==null?void 0:h.status())!=="rejected"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(R(this,dt))return R(this,dt).continueRetry(),R(this,dt).promise}if(e&&this.setOptions(e),!this.options.queryFn){const A=this.observers.find(U=>U.options.queryFn);A&&this.setOptions(A.options)}const i=new AbortController,o=A=>{Object.defineProperty(A,"signal",{enumerable:!0,get:()=>(ee(this,hs,!0),i.signal)})},l=()=>{const A=ew(this.options,n),z=(()=>{const J={client:R(this,fs),queryKey:this.queryKey,meta:this.meta};return o(J),J})();return ee(this,hs,!1),this.options.persister?this.options.persister(A,z,this):A(z)},d=(()=>{const A={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:R(this,fs),state:this.state,fetchFn:l};return o(A),A})();(p=this.options.behavior)==null||p.onFetch(d,this),ee(this,ui,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((g=d.fetchOptions)==null?void 0:g.meta))&&Te(this,xn,qn).call(this,{type:"fetch",meta:(y=d.fetchOptions)==null?void 0:y.meta}),ee(this,dt,rw({initialPromise:n==null?void 0:n.initialPromise,fn:d.fetchFn,onCancel:A=>{A instanceof zd&&A.revert&&this.setState({...R(this,ui),fetchStatus:"idle"}),i.abort()},onFail:(A,U)=>{Te(this,xn,qn).call(this,{type:"failed",failureCount:A,error:U})},onPause:()=>{Te(this,xn,qn).call(this,{type:"pause"})},onContinue:()=>{Te(this,xn,qn).call(this,{type:"continue"})},retry:d.options.retry,retryDelay:d.options.retryDelay,networkMode:d.options.networkMode,canRun:()=>!0}));try{const A=await R(this,dt).start();if(A===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(A),(E=(w=R(this,sn).config).onSuccess)==null||E.call(w,A,this),(_=(P=R(this,sn).config).onSettled)==null||_.call(P,A,this.state.error,this),A}catch(A){if(A instanceof zd){if(A.silent)return R(this,dt).promise;if(A.revert){if(this.state.data===void 0)throw A;return this.state.data}}throw Te(this,xn,qn).call(this,{type:"error",error:A}),(b=(S=R(this,sn).config).onError)==null||b.call(S,A,this),(k=(O=R(this,sn).config).onSettled)==null||k.call(O,this.state.data,A,this),A}finally{this.scheduleGc()}}},ds=new WeakMap,ui=new WeakMap,sn=new WeakMap,fs=new WeakMap,dt=new WeakMap,$o=new WeakMap,hs=new WeakMap,xn=new WeakSet,qn=function(e){const n=i=>{switch(e.type){case"failed":return{...i,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...i,fetchStatus:"paused"};case"continue":return{...i,fetchStatus:"fetching"};case"fetch":return{...i,...iw(i.data,this.options),fetchMeta:e.meta??null};case"success":const o={...i,...Qg(e.data,e.dataUpdatedAt),dataUpdateCount:i.dataUpdateCount+1,...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return ee(this,ui,e.manual?o:void 0),o;case"error":const l=e.error;
vendor: 10,061 bytes, line 115
115return{...i,error:l,errorUpdateCount:i.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:i.fetchFailureCount+1,fetchFailureReason:l,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...i,isInvalidated:!0};case"setState":return{...i,...e.state}}};this.state=n(this.state),vt.batch(()=>{this.observers.forEach(i=>{i.onQueryUpdate()}),R(this,sn).notify({query:this,type:"updated",action:e})})},v0);function iw(t,e){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:nw(e.networkMode)?"fetching":"paused",...t===void 0&&{error:null,status:"pending"}}}function Qg(t,e){return{data:t,dataUpdatedAt:e??Date.now(),error:null,isInvalidated:!1,status:"success"}}function Gg(t){const e=typeof t.initialData=="function"?t.initialData():t.initialData,n=e!==void 0,i=n?typeof t.initialDataUpdatedAt=="function"?t.initialDataUpdatedAt():t.initialDataUpdatedAt:0;return{data:e,dataUpdateCount:0,dataUpdatedAt:n?i??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var Ft,Pe,Wo,Nt,ps,ci,Kn,Tr,Ho,di,fi,ms,gs,Pr,hi,Me,wo,$d,Wd,Hd,qd,Kd,Qd,Gd,ow,w0,j_=(w0=class extends Go{constructor(e,n){super();fe(this,Me);fe(this,Ft);fe(this,Pe);fe(this,Wo);fe(this,Nt);fe(this,ps);fe(this,ci);fe(this,Kn);fe(this,Tr);fe(this,Ho);fe(this,di);fe(this,fi);fe(this,ms);fe(this,gs);fe(this,Pr);fe(this,hi,new Set);this.options=n,ee(this,Ft,e),ee(this,Tr,null),ee(this,Kn,Vd()),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(R(this,Pe).addObserver(this),Yg(R(this,Pe),this.options)?Te(this,Me,wo).call(this):this.updateResult(),Te(this,Me,qd).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Yd(R(this,Pe),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Yd(R(this,Pe),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,Te(this,Me,Kd).call(this),Te(this,Me,Qd).call(this),R(this,Pe).removeObserver(this)}setOptions(e){const n=this.options,i=R(this,Pe);if(this.options=R(this,Ft).defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof on(this.options.enabled,R(this,Pe))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");Te(this,Me,Gd).call(this),R(this,Pe).setOptions(this.options),n._defaulted&&!Fd(this.options,n)&&R(this,Ft).getQueryCache().notify({type:"observerOptionsUpdated",query:R(this,Pe),observer:this});const o=this.hasListeners();o&&Xg(R(this,Pe),i,this.options,n)&&Te(this,Me,wo).call(this),this.updateResult(),o&&(R(this,Pe)!==i||on(this.options.enabled,R(this,Pe))!==on(n.enabled,R(this,Pe))||Lr(this.options.staleTime,R(this,Pe))!==Lr(n.staleTime,R(this,Pe)))&&Te(this,Me,$d).call(this);const l=Te(this,Me,Wd).call(this);o&&(R(this,Pe)!==i||on(this.options.enabled,R(this,Pe))!==on(n.enabled,R(this,Pe))||l!==R(this,Pr))&&Te(this,Me,Hd).call(this,l)}getOptimisticResult(e){const n=R(this,Ft).getQueryCache().build(R(this,Ft),e),i=this.createResult(n,e);return M_(this,i)&&(ee(this,Nt,i),ee(this,ci,this.options),ee(this,ps,R(this,Pe).state)),i}getCurrentResult(){return R(this,Nt)}trackResult(e,n){return new Proxy(e,{get:(i,o)=>(this.trackProp(o),n==null||n(o),o==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&R(this,Kn).status==="pending"&&R(this,Kn).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(i,o))})}trackProp(e){R(this,hi).add(e)}getCurrentQuery(){return R(this,Pe)}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const n=R(this,Ft).defaultQueryOptions(e),i=R(this,Ft).getQueryCache().build(R(this,Ft),n);return i.fetch().then(()=>this.createResult(i,n))}fetch(e){return Te(this,Me,wo).call(this,{...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),R(this,Nt)))}createResult(e,n){var Z;const i=R(this,Pe),o=this.options,l=R(this,Nt),u=R(this,ps),d=R(this,ci),p=e!==i?e.state:R(this,Wo),{state:g}=e;let y={...g},w=!1,E;if(n._optimisticResults){const le=this.hasListeners(),be=!le&&Yg(e,n),De=le&&Xg(e,i,n,o);(be||De)&&(y={...y,...iw(g.data,e.options)}),n._optimisticResults==="isRestoring"&&(y.fetchStatus="idle")}let{error:P,errorUpdatedAt:_,status:S}=y;E=y.data;let b=!1;if(n.placeholderData!==void 0&&E===void 0&&S==="pending"){let le;l!=null&&l.isPlaceholderData&&n.placeholderData===(d==null?void 0:d.placeholderData)?(le=l.data,b=!0):le=typeof n.placeholderData=="function"?n.placeholderData((Z=R(this,fi))==null?void 0:Z.state.data,R(this,fi)):n.placeholderData,le!==void 0&&(S="success",E=Bd(l==null?void 0:l.data,le,n),w=!0)}if(n.select&&E!==void 0&&!b)if(l&&E===(u==null?void 0:u.data)&&n.select===R(this,Ho))E=R(this,di);else try{ee(this,Ho,n.select),E=n.select(E),E=Bd(l==null?void 0:l.data,E,n),ee(this,di,E),ee(this,Tr,null)}catch(le){ee(this,Tr,le)}R(this,Tr)&&(P=R(this,Tr),E=R(this,di),_=Date.now(),S="error");const O=y.fetchStatus==="fetching",k=S==="pending",A=S==="error",U=k&&O,z=E!==void 0,B={status:S,fetchStatus:y.fetchStatus,isPending:k,isSuccess:S==="success",isError:A,isInitialLoading:U,isLoading:U,data:E,dataUpdatedAt:y.dataUpdatedAt,error:P,errorUpdatedAt:_,failureCount:y.fetchFailureCount,failureReason:y.fetchFailureReason,errorUpdateCount:y.errorUpdateCount,isFetched:y.dataUpdateCount>0||y.errorUpdateCount>0,isFetchedAfterMount:y.dataUpdateCount>p.dataUpdateCount||y.errorUpdateCount>p.errorUpdateCount,isFetching:O,isRefetching:O&&!k,isLoadingError:A&&!z,isPaused:y.fetchStatus==="paused",isPlaceholderData:w,isRefetchError:A&&z,isStale:Mf(e,n),refetch:this.refetch,promise:R(this,Kn),isEnabled:on(n.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){const le=B.data!==void 0,be=B.status==="error"&&!le,De=Fe=>{be?Fe.reject(B.error):le&&Fe.resolve(B.data)},Se=()=>{const Fe=ee(this,Kn,B.promise=Vd());De(Fe)},Ce=R(this,Kn);switch(Ce.status){case"pending":e.queryHash===i.queryHash&&De(Ce);break;case"fulfilled":(be||B.data!==Ce.value)&&Se();break;case"rejected":(!be||B.error!==Ce.reason)&&Se();break}}return B}updateResult(){const e=R(this,Nt),n=this.createResult(R(this,Pe),this.options);if(ee(this,ps,R(this,Pe).state),ee(this,ci,this.options),R(this,ps).data!==void 0&&ee(this,fi,R(this,Pe)),Fd(n,e))return;ee(this,Nt,n);const i=()=>{if(!e)return!0;const{notifyOnChangeProps:o}=this.options,l=typeof o=="function"?o():o;if(l==="all"||!l&&!R(this,hi).size)return!0;const u=new Set(l??R(this,hi));return this.options.throwOnError&&u.add("error"),Object.keys(R(this,Nt)).some(d=>{const h=d;return R(this,Nt)[h]!==e[h]&&u.has(h)})};Te(this,Me,ow).call(this,{listeners:i()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&Te(this,Me,qd).call(this)}},Ft=new WeakMap,Pe=new WeakMap,Wo=new WeakMap,Nt=new WeakMap,ps=new WeakMap,ci=new WeakMap,Kn=new WeakMap,Tr=new WeakMap,Ho=new WeakMap,di=new WeakMap,fi=new WeakMap,ms=new WeakMap,gs=new WeakMap,Pr=new WeakMap,hi=new WeakMap,Me=new WeakSet,wo=function(e){Te(this,Me,Gd).call(this);let n=R(this,Pe).fetch(this.options,e);return e!=null&&e.throwOnError||(n=n.catch(Ut)),n},$d=function(){Te(this,Me,Kd).call(this);const e=Lr(this.options.staleTime,R(this,Pe));if(bs||R(this,Nt).isStale||!Id(e))return;const i=J0(R(this,Nt).dataUpdatedAt,e)+1;ee(this,ms,os.setTimeout(()=>{R(this,Nt).isStale||this.updateResult()},i))},Wd=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(R(this,Pe)):this.options.refetchInterval)??!1},Hd=function(e){Te(this,Me,Qd).call(this),ee(this,Pr,e),!(bs||on(this.options.enabled,R(this,Pe))===!1||!Id(R(this,Pr))||R(this,Pr)===0)&&ee(this,gs,os.setInterval(()=>{(this.options.refetchIntervalInBackground||Df.isFocused())&&Te(this,Me,wo).call(this)},R(this,Pr)))},qd=function(){Te(this,Me,$d).call(this),Te(this,Me,Hd).call(this,Te(this,Me,Wd).call(this))},Kd=function(){R(this,ms)&&(os.clearTimeout(R(this,ms)),ee(this,ms,void 0))},Qd=function(){R(this,gs)&&(os.clearInterval(R(this,gs)),ee(this,gs,void 0))},Gd=function(){const e=R(this,Ft).getQueryCache().build(R(this,Ft),this.options);if(e===R(this,Pe))return;const n=R(this,Pe);ee(this,Pe,e),ee(this,Wo,e.state),this.hasListeners()&&(n==null||n.removeObserver(this),e.addObserver(this))},ow=function(e){vt.batch(()=>{e.listeners&&this.listeners.forEach(n=>{n(R(this,Nt))}),R(this,Ft).getQueryCache().notify({query:R(this,Pe),type:"observerResultsUpdated"})})},w0);function D_(t,e){return on(e.enabled,t)!==!1&&t.state.data===void 0&&!(t.state.status==="error"&&e.retryOnMount===!1)}function Yg(t,e){return D_(t,e)||t.state.data!==void 0&&Yd(t,e,e.refetchOnMount)}function Yd(t,e,n){if(on(e.enabled,t)!==!1&&Lr(e.staleTime,t)!=="static"){const i=typeof n=="function"?n(t):n;return i==="always"||i!==!1&&Mf(t,e)}return!1}function Xg(t,e,n,i){return(t!==e||on(i.enabled,t)===!1)&&(!n.suspense||t.state.status!=="error")&&Mf(t,n)}function Mf(t,e){return on(e.enabled,t)!==!1&&t.isStaleByTime(Lr(e.staleTime,t))}function M_(t,e){return!Fd(t.getCurrentResult(),e)}function Jg(t){return{onFetch:(e,n)=>{var g,y,w,E,P;const i=e.options,o=(w=(y=(g=e.fetchOptions)==null?void 0:g.meta)==null?void 0:y.fetchMore)==null?void 0:w.direction,l=((E=e.state.data)==null?void 0:E.pages)||[],u=((P=e.state.data)==null?void 0:P.pageParams)||[];let d={pages:[],pageParams:[]},h=0;const p=async()=>{let _=!1;const S=k=>{T_(k,()=>e.signal,()=>_=!0)},b=ew(e.options,e.fetchOptions),O=async(k,A,U)=>{if(_)return Promise.reject();if(A==null&&k.pages.length)return Promise.resolve(k);const J=(()=>{const be={client:e.client,queryKey:e.queryKey,pageParam:A,direction:U?"backward":"forward",meta:e.options.meta};return S(be),be})(),B=await b(J),{maxPages:Z}=e.options,le=U?k_:C_;return{pages:le(k.pages,B,Z),pageParams:le(k.pageParams,A,Z)}};if(o&&l.length){const k=o==="backward",A=k?I_:Zg,U={pages:l,pageParams:u},z=A(i,U);d=await O(U,z,k)}
115else{const k=t??l.length;do{const A=h===0?u[0]??i.initialPageParam:Zg(i,d);if(h>0&&A==null)break;d=await O(d,A),h++}while(h<k)}return d};e.options.persister?e.fetchFn=()=>{var _,S;return(S=(_=e.options).persister)==null?void 0:S.call(_,p,{client:e.client,queryKey:e.queryKey,meta:e.options.meta,signal:e.signal},n)}:e.fetchFn=p}}}function Zg(t,{pages:e,pageParams:n}){const i=e.length-1;return e.length>0?t.getNextPageParam(e[i],e,n[i],n):void 0}function I_(t,{pages:e,pageParams:n}){var i;return e.length>0?(i=t.getPreviousPageParam)==null?void 0:i.call(t,e[0],e,n[0],n):void 0}var qo,Rn,Ct,ys,An,Sr,x0,F_=(x0=class extends sw{constructor(e){super();fe(this,An);fe(this,qo);fe(this,Rn);fe(this,Ct);fe(this,ys);ee(this,qo,e.client),this.mutationId=e.mutationId,ee(this,Ct,e.mutationCache),ee(this,Rn,[]),this.state=e.state||U_(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){R(this,Rn).includes(e)||(R(this,Rn).push(e),this.clearGcTimeout(),R(this,Ct).notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){ee(this,Rn,R(this,Rn).filter(n=>n!==e)),this.scheduleGc(),R(this,Ct).notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){R(this,Rn).length||(this.state.status==="pending"?this.scheduleGc():R(this,Ct).remove(this))}continue(){var e;return((e=R(this,ys))==null?void 0:e.continue())??this.execute(this.state.variables)}async execute(e){var u,d,h,p,g,y,w,E,P,_,S,b,O,k,A,U,z,J;const n=()=>{Te(this,An,Sr).call(this,{type:"continue"})},i={client:R(this,qo),meta:this.options.meta,mutationKey:this.options.mutationKey};ee(this,ys,rw({fn:()=>this.options.mutationFn?this.options.mutationFn(e,i):Promise.reject(new Error("No mutationFn found")),onFail:(B,Z)=>{Te(this,An,Sr).call(this,{type:"failed",failureCount:B,error:Z})},onPause:()=>{Te(this,An,Sr).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>R(this,Ct).canRun(this)}));const o=this.state.status==="pending",l=!R(this,ys).canStart();try{if(o)n();else{Te(this,An,Sr).call(this,{type:"pending",variables:e,isPaused:l}),R(this,Ct).config.onMutate&&await R(this,Ct).config.onMutate(e,this,i);const Z=await((d=(u=this.options).onMutate)==null?void 0:d.call(u,e,i));Z!==this.state.context&&Te(this,An,Sr).call(this,{type:"pending",context:Z,variables:e,isPaused:l})}const B=await R(this,ys).start();return await((p=(h=R(this,Ct).config).onSuccess)==null?void 0:p.call(h,B,e,this.state.context,this,i)),await((y=(g=this.options).onSuccess)==null?void 0:y.call(g,B,e,this.state.context,i)),await((E=(w=R(this,Ct).config).onSettled)==null?void 0:E.call(w,B,null,this.state.variables,this.state.context,this,i)),await((_=(P=this.options).onSettled)==null?void 0:_.call(P,B,null,e,this.state.context,i)),Te(this,An,Sr).call(this,{type:"success",data:B}),B}catch(B){try{await((b=(S=R(this,Ct).config).onError)==null?void 0:b.call(S,B,e,this.state.context,this,i))}catch(Z){Promise.reject(Z)}try{await((k=(O=this.options).onError)==null?void 0:k.call(O,B,e,this.state.context,i))}catch(Z){Promise.reject(Z)}try{await((U=(A=R(this,Ct).config).onSettled)==null?void 0:U.call(A,void 0,B,this.state.variables,this.state.context,this,i))}catch(Z){Promise.reject(Z)}try{await((J=(z=this.options).onSettled)==null?void 0:J.call(z,void 0,B,e,this.state.context,i))}catch(Z){Promise.reject(Z)}throw Te(this,An,Sr).call(this,{type:"error",error:B}),B}finally{R(this,Ct).runNext(this)}}},qo=new WeakMap,Rn=new WeakMap,Ct=new WeakMap,ys=new WeakMap,An=new WeakSet,Sr=function(e){const n=i=>{switch(e.type){case"failed":return{...i,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...i,isPaused:!0};case"continue":return{...i,isPaused:!1};case"pending":return{...i,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...i,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...i,data:void 0,error:e.error,failureCount:i.failureCount+1,failureReason:e.error,isPau
115sed:!1,status:"error"}}};this.state=n(this.state),vt.batch(()=>{R(this,Rn).forEach(i=>{i.onMutationUpdate(e)}),R(this,Ct).notify({mutation:this,type:"updated",action:e})})},x0);function U_(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Qn,bn,Ko,b0,B_=(b0=class extends Go{constructor(e={}){super();fe(this,Qn);fe(this,bn);fe(this,Ko);this.config=e,ee(this,Qn,new Set),ee(this,bn,new Map),ee(this,Ko,0)}build(e,n,i){const o=new F_({client:e,mutationCache:this,mutationId:++hl(this,Ko)._,options:e.defaultMutationOptions(n),state:i});return this.add(o),o}add(e){R(this,Qn).add(e);const n=yl(e);if(typeof n=="string"){const i=R(this,bn).get(n);i?i.push(e):R(this,bn).set(n,[e])}this.notify({type:"added",mutation:e})}remove(e){if(R(this,Qn).delete(e)){const n=yl(e);if(typeof n=="string"){const i=R(this,bn).get(n);if(i)if(i.length>1){const o=i.indexOf(e);o!==-1&&i.splice(o,1)}else i[0]===e&&R(this,bn).delete(n)}}this.notify({type:"removed",mutation:e})}canRun(e){const n=yl(e);if(typeof n=="string"){const i=R(this,bn).get(n),o=i==null?void 0:i.find(l=>l.state.status==="pending");return!o||o===e}else return!0}runNext(e){var i;const n=yl(e);if(typeof n=="string"){const o=(i=R(this,bn).get(n))==null?void 0:i.find(l=>
vendor: 4,729 bytes, line 115
115l!==e&&l.state.isPaused);return(o==null?void 0:o.continue())??Promise.resolve()}else return Promise.resolve()}clear(){vt.batch(()=>{R(this,Qn).forEach(e=>{this.notify({type:"removed",mutation:e})}),R(this,Qn).clear(),R(this,bn).clear()})}getAll(){return Array.from(R(this,Qn))}find(e){const n={exact:!0,...e};return this.getAll().find(i=>Hg(n,i))}findAll(e={}){return this.getAll().filter(n=>Hg(e,n))}notify(e){vt.batch(()=>{this.listeners.forEach(n=>{n(e)})})}resumePausedMutations(){const e=this.getAll().filter(n=>n.state.isPaused);return vt.batch(()=>Promise.all(e.map(n=>n.continue().catch(Ut))))}},Qn=new WeakMap,bn=new WeakMap,Ko=new WeakMap,b0);function yl(t){var e;return(e=t.options.scope)==null?void 0:e.id}var Nn,S0,V_=(S0=class extends Go{constructor(e={}){super();fe(this,Nn);this.config=e,ee(this,Nn,new Map)}build(e,n,i){const o=n.queryKey,l=n.queryHash??Lf(o,n);let u=this.get(l);return u||(u=new L_({client:e,queryKey:o,queryHash:l,options:e.defaultQueryOptions(n),state:i,defaultOptions:e.getQueryDefaults(o)}),this.add(u)),u}add(e){R(this,Nn).has(e.queryHash)||(R(this,Nn).set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const n=R(this,Nn).get(e.queryHash);n&&(e.destroy(),n===e&&R(this,Nn).delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){vt.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return R(this,Nn).get(e)}getAll(){return[...R(this,Nn).values()]}find(e){const n={exact:!0,...e};return this.getAll().find(i=>Wg(n,i))}findAll(e={}){const n=this.getAll();return Object.keys(e).length>0?n.filter(i=>Wg(e,i)):n}notify(e){vt.batch(()=>{this.listeners.forEach(n=>{n(e)})})}onFocus(){vt.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){vt.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},Nn=new WeakMap,S0),Ge,Rr,Ar,pi,mi,Nr,gi,yi,E0,z_=(E0=class{constructor(t={}){fe(this,Ge);fe(this,Rr);fe(this,Ar);fe(this,pi);fe(this,mi);fe(this,Nr);fe(this,gi);fe(this,yi);ee(this,Ge,t.queryCache||new V_),ee(this,Rr,t.mutationCache||new B_),ee(this,Ar,t.defaultOptions||{}),ee(this,pi,new Map),ee(this,mi,new Map),ee(this,Nr,0)}mount(){hl(this,Nr)._++,R(this,Nr)===1&&(ee(this,gi,Df.subscribe(async t=>{t&&(await this.resumePausedMutations(),R(this,Ge).onFocus())})),ee(this,yi,Vl.subscribe(async t=>{t&&(await this.resumePausedMutations(),R(this,Ge).onOnline())})))}unmount(){var t,e;hl(this,Nr)._--,R(this,Nr)===0&&((t=R(this,gi))==null||t.call(this),ee(this,gi,void 0),(e=R(this,yi))==null||e.call(this),ee(this,yi,void 0))}isFetching(t){return R(this,Ge).findAll({...t,fetchStatus:"fetching"}).length}isMutating(t){return R(this,Rr).findAll({...t,status:"pending"}).length}getQueryData(t){var n;const e=this.defaultQueryOptions({queryKey:t});return(n=R(this,Ge).get(e.queryHash))==null?void 0:n.state.data}ensureQueryData(t){const e=this.defaultQueryOptions(t),n=R(this,Ge).build(this,e),i=n.state.data;return i===void 0?this.fetchQuery(t):(t.revalidateIfStale&&n.isStaleByTime(Lr(e.staleTime,n))&&this.prefetchQuery(e),Promise.resolve(i))}getQueriesData(t){return R(this,Ge).findAll(t).map(({queryKey:e,state:n})=>{const i=n.data;return[e,i]})}setQueryData(t,e,n){const i=this.defaultQueryOptions({queryKey:t}),o=R(this,Ge).get(i.queryHash),l=o==null?void 0:o.state.data,u=S_(e,l);if(u!==void 0)return R(this,Ge).build(this,i).setData(u,{...n,manual:!0})}setQueriesData(t,e,n){return vt.batch(()=>R(this,Ge).findAll(t).map(({queryKey:i})=>[i,this.setQueryData(i,e,n)]))}getQueryState(t){var n;const e=this.defaultQueryOptions({queryKey:t});return(n=R(this,Ge).get(e.queryHash))==null?void 0:n.state}removeQueries(t){const e=R(this,Ge);vt.batch(()=>{e.findAll(t).forEach(n=>{e.remove(n)})})}resetQueries(t,e){const n=R(this,Ge);return vt.batch(()=>(n.findAll(t).forEach(i=>{i.reset()}),this.refetchQueries({type:"active",...t},e)))}cancelQueries(t,e={}){const n={revert:!0,...e},i=vt.batch(()=>R(this,Ge).findAll(t).map(o=>o.cancel(n)));return Promise.all(i).then(Ut).catch(Ut)}invalidateQueries(t,e={}){return vt.batch(()=>(R(this,Ge).findAll(t).forEach(n=>{n.invalidate()}),(t==null?void 0:t.refetchType)==="none"?Promise.resolve():this.refetchQueries({...t,type:(t==null?void 0:t.refetchType)??(t==null?void 0:t.type)??"active"},e)))}refetchQueries(t,e={}){const n={...e,cancelRefetch:e.cancelRefetch??!0},i=vt.batch(()=>R(this,Ge).findAll(t).filter(o=>!o.isDisabled()&&!o.isStatic()).map(o=>{let l=o.fetch(void 0,n);return n.throwOnError||(l=l.catch(Ut)),o.state.fetchStatus==="paused"?Promise.resolve():l}));return Promise.all(i).then(Ut)}fetchQuery(t){const e=this.defaultQueryOptions(t);e.retry===void 0&&(e.retry=!1);const n=R(this,Ge).build(this,e);return n.isStaleByTime(Lr(e.staleTime,n))?n.fetch(e):Promise.resolve(n.state.data)}
115prefetchQuery(t){return this.fetchQuery(t).then(Ut).catch(Ut)}fetchInfiniteQuery(t){return t.behavior=Jg(t.pages),this.fetchQuery(t)}prefetchInfiniteQuery(t){return this.fetchInfiniteQuery(t).then(Ut).catch(Ut)}ensureInfiniteQueryData(t){return t.behavior=Jg(t.pages),this.ensureQueryData(t)}resumePausedMutations(){return Vl.isOnline()?R(this,Rr).resumePausedMutations():Promise.resolve()}getQueryCache(){return R(this,Ge)}getMutationCache(){return R(this,Rr)}getDefaultOptions(){return R(this,Ar)}setDefaultOptions(t){ee(this,Ar,t)}setQueryDefaults(t,e){R(this,pi).set(Lo(t),{queryKey:t,defaultOptions:e})}getQueryDefaults(t){const e=[...R(this,pi).values()],n={};return e.forEach(i=>{jo(t,i.queryKey)&&Object.assign(n,i.defaultOptions)}),n}setMutationDefaults(t,e){R(this,mi).set(Lo(t),{mutationKey:t,defaultOptions:e})}getMutationDefaults(t){const e=[...R(this,mi).values()],n={};return e.forEach(i=>{jo(t,i.mutationKey)&&Object.assign(n,i.defaultOptions)}),n}defaultQueryOptions(t){if(t._defaulted)return t;const e={...R(this,Ar).queries,...this.getQueryDefaults(t.queryKey),...t,_defaulted:!0};return e.queryHash||(e.queryHash=Lf(e.queryKey,e)),e.refetchOnReconnect===void 0&&(e.refetchOnReconnect=e.networkMode!=="always"),e.throwOnError===void 0&&(e.throwOnError=!!e.suspense),!e.networkMode&&e.persister&&(e.networkMode="offlineFirst"),e.queryFn===jf&&(e.enabled=!1),e}defaultMutationOptions(t){return t!=null&&t._defaulted?t:{...R(this,Ar).mutations,...(t==null?void 0:t.mutationKey)&&this.getMutationDefaults(t.mutationKey),...t,_defaulted:!0}}clear(){R(this,Ge).clear(),R(this,Rr).clear()}},Ge=new WeakMap,Rr=new WeakMap,Ar=new WeakMap,pi=new WeakMap,mi=new WeakMap,Nr=new WeakMap,gi=new WeakMap,yi=new WeakMap,E0),aw=D.createContext(void 0),$_=t=>{const e=D.useContext(aw);if(!e)throw new Error("No QueryClient set, use QueryClientProvider to set one");return e},W_=({client:t,children:e})=>(D.useEffect(()=>(t.mount(),()=>{t.unmount()}),[t]),x.jsx(aw.Provider,{value:t,children:e})),lw=D.createContext(!1),H_=()=>D.useContext(lw);lw.Provider;function q_(){let t=!1;return{clearReset:()=>{t=!1},reset:()=>{t=!0},isReset:()=>t}}var K_=D.createContext(q_()),Q_=()=>D.useContext(K_),G_=(t,e,n)=>{const i=n!=null&&n.state.error&&typeof t.throwOnError=="function"?tw(t.throwOnError,[n.state.error,n]):t.throwOnError;(t.suspense||t.experimental_prefetchInRender||i)&&(e.isReset()||(t.retryOnMount=!1))},Y_=t=>{D.useEffect(()=>{t.clearReset()},[t])},X_=({result:t,errorResetBoundary:e,throwOnError:n,query:i,suspense:o})=>t.isError&&!e.isReset()&&!t.isFetching&&i&&(o&&t.data===void 0||tw(n,[t.error,i])),J_=t=>{if(t.suspense){const n=o=>o==="static"?o:Math.max(o??1e3,1e3),i=t.staleTime;t.staleTime=typeof i=="function"?(...o)=>n(i(...o)):n(i),typeof t.gcTime=="number"&&(t.gcTime=Math.max(t.gcTime,1e3))}},Z_=(t,e)=>t.isLoading&&t.isFetching&&!e,eC=(t,e)=>(t==null?void 0:t.suspense)&&e.isPending,ey=(t,e,n)=>e.fetchOptimistic(t).catch(()=>{n.clearReset()});function tC(t,e,n){var w,E,P,_;const i=H_(),o=Q_(),l=$_(),u=l.defaultQueryOptions(t);(E=(w=l.getDefaultOptions().queries)==null?void 0:w._experimental_beforeQuery)==null||E.call(w,u);const d=l.getQueryCache().get(u.queryHash);u._optimisticResults=i?"isRestoring":"optimistic",J_(u),G_(u,o,d),Y_(o);const h=!l.getQueryCache().get(u.queryHash),[p]=D.useState(()=>new e(l,u)),g=p.getOptimisticResult(u),y=!i&&t.subscribed!==!1;if(D.useSyncExternalStore(D.useCallback(S=>{const b=y?p.subscribe(vt.batchCalls(S)):Ut;return p.updateResult(),b},[p,y]),()=>p.getCurrentResult(),()=>p.getCurrentResult()),D.useEffect(()=>{p.setOptions(u)},[u,p]),eC(u,g))throw ey(u,p,o);if(X_({result:g,errorResetBoundary:o,throwOnError:u.throwOnError,query:d,suspense:u.suspense}))throw g.error;if((_=(P=l.getDefaultOptions().queries)==null?void 0:P._experimental_afterQuery)==null||_.call(P,u,g),u.experimental_prefetchInRender&&!bs&&Z_(g,i)){const S=h?ey(u,p,o):d==null?void 0:d.promise;S==null||S.catch(Ut).finally(()=>{p.updateResult()})}return u.notifyOnChangeProps?g:p.trackResult(g)}function nC(t,e){return tC(t,j_)}const rC=new z_({defaultOptions:{queries:{refetchOnWindowFocus:!1,retry:1}}});k0();/** 116 * @remix-run/router v1.23.2 117 * 118 * Copyright (c) Remix Software Inc. 119 * 120 * This source code is licensed under the MIT license found in the 121 * LICENSE.md file in the root directory of this source tree. 122 * 123 * @license MIT 124 */function Do(){return Do=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},Do.apply(this,arguments)}var Or;(function(t){t.Pop="POP",t.Push="PUSH",t.Replace="REPLACE"})(Or||(Or={}));const ty="popstate";function sC(t){t===void 0&&(t={});function e(i,o){let{pathname:l,search:u,hash:d}=i.location;return Xd("",{pathname:l,search:u,hash:d},o.state&&o.state.usr||null,o.state&&o.state.key||"default")}
vendor: 9,647 bytes, lines 124-133
124function n(i,o){return typeof o=="string"?o:zl(o)}return oC(e,n,null,t)}function rt(t,e){if(t===!1||t===null||typeof t>"u")throw new Error(e)}function If(t,e){if(!t){typeof console<"u"&&console.warn(e);try{throw new Error(e)}catch{}}}function iC(){return Math.random().toString(36).substr(2,8)}function ny(t,e){return{usr:t.state,key:t.key,idx:e}}function Xd(t,e,n,i){return n===void 0&&(n=null),Do({pathname:typeof t=="string"?t:t.pathname,search:"",hash:""},typeof e=="string"?Si(e):e,{state:n,key:e&&e.key||i||iC()})}function zl(t){let{pathname:e="/",search:n="",hash:i=""}=t;return n&&n!=="?"&&(e+=n.charAt(0)==="?"?n:"?"+n),i&&i!=="#"&&(e+=i.charAt(0)==="#"?i:"#"+i),e}function Si(t){let e={};if(t){let n=t.indexOf("#");n>=0&&(e.hash=t.substr(n),t=t.substr(0,n));let i=t.indexOf("?");i>=0&&(e.search=t.substr(i),t=t.substr(0,i)),t&&(e.pathname=t)}return e}function oC(t,e,n,i){i===void 0&&(i={});let{window:o=document.defaultView,v5Compat:l=!1}=i,u=o.history,d=Or.Pop,h=null,p=g();p==null&&(p=0,u.replaceState(Do({},u.state,{idx:p}),""));function g(){return(u.state||{idx:null}).idx}function y(){d=Or.Pop;let S=g(),b=S==null?null:S-p;p=S,h&&h({action:d,location:_.location,delta:b})}function w(S,b){d=Or.Push;let O=Xd(_.location,S,b);p=g()+1;let k=ny(O,p),A=_.createHref(O);try{u.pushState(k,"",A)}catch(U){if(U instanceof DOMException&&U.name==="DataCloneError")throw U;o.location.assign(A)}l&&h&&h({action:d,location:_.location,delta:1})}function E(S,b){d=Or.Replace;let O=Xd(_.location,S,b);p=g();let k=ny(O,p),A=_.createHref(O);u.replaceState(k,"",A),l&&h&&h({action:d,location:_.location,delta:0})}function P(S){let b=o.location.origin!=="null"?o.location.origin:o.location.href,O=typeof S=="string"?S:zl(S);return O=O.replace(/ $/,"%20"),rt(b,"No window.location.(origin|href) available to create URL for href: "+O),new URL(O,b)}let _={get action(){return d},get location(){return t(o,u)},listen(S){if(h)throw new Error("A history only accepts one active listener");return o.addEventListener(ty,y),h=S,()=>{o.removeEventListener(ty,y),h=null}},createHref(S){return e(o,S)},createURL:P,encodeLocation(S){let b=P(S);return{pathname:b.pathname,search:b.search,hash:b.hash}},push:w,replace:E,go(S){return u.go(S)}};return _}var ry;(function(t){t.data="data",t.deferred="deferred",t.redirect="redirect",t.error="error"})(ry||(ry={}));function aC(t,e,n){return n===void 0&&(n="/"),lC(t,e,n)}function lC(t,e,n,i){let o=typeof e=="string"?Si(e):e,l=Ff(o.pathname||"/",n);if(l==null)return null;let u=uw(t);uC(u);let d=null;for(let h=0;d==null&&h<u.length;++h){let p=bC(l);d=vC(u[h],p)}return d}function uw(t,e,n,i){e===void 0&&(e=[]),n===void 0&&(n=[]),i===void 0&&(i="");let o=(l,u,d)=>{let h={relativePath:d===void 0?l.path||"":d,caseSensitive:l.caseSensitive===!0,childrenIndex:u,route:l};h.relativePath.startsWith("/")&&(rt(h.relativePath.startsWith(i),'Absolute route path "'+h.relativePath+'" nested under path '+('"'+i+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),h.relativePath=h.relativePath.slice(i.length));let p=jr([i,h.relativePath]),g=n.concat(h);l.children&&l.children.length>0&&(rt(l.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+p+'".')),uw(l.children,e,g,p)),!(l.path==null&&!l.index)&&e.push({path:p,score:gC(p,l.index),routesMeta:g})};return t.forEach((l,u)=>{var d;if(l.path===""||!((d=l.path)!=null&&d.includes("?")))o(l,u);else for(let h of cw(l.path))o(l,u,h)}),e}function cw(t){let e=t.split("/");if(e.length===0)return[];let[n,...i]=e,o=n.endsWith("?"),l=n.replace(/\?$/,"");if(i.length===0)return o?[l,""]:[l];let u=cw(i.join("/")),d=[];return d.push(...u.map(h=>h===""?l:[l,h].join("/"))),o&&d.push(...u),d.map(h=>t.startsWith("/")&&h===""?"/":h)}function uC(t){t.sort((e,n)=>e.score!==n.score?n.score-e.score:yC(e.routesMeta.map(i=>i.childrenIndex),n.routesMeta.map(i=>i.childrenIndex)))}const cC=/^:[\w-]+$/,dC=3,fC=2,hC=1,pC=10,mC=-2,sy=t=>t==="*";function gC(t,e){let n=t.split("/"),i=n.length;return n.some(sy)&&(i+=mC),e&&(i+=fC),n.filter(o=>!sy(o)).reduce((o,l)=>o+(cC.test(l)?dC:l===""?hC:pC),i)}function yC(t,e){return t.length===e.length&&t.slice(0,-1).every((i,o)=>i===e[o])?t[t.length-1]-e[e.length-1]:0}function vC(t,e,n){let{routesMeta:i}=t,o={},l="/",u=[];for(let d=0;d<i.length;++d){let h=i[d],p=d===i.length-1,g=l==="/"?e:e.slice(l.length)||"/",y=wC({path:h.relativePath,caseSensitive:h.caseSensitive,end:p},g),w=h.route;if(!y)return null;Object.assign(o,y.params),u.push({params:o,pathname:jr([l,y.pathname]),pathnameBase:kC(jr([l,y.pathnameBase])),route:w}),y.pathnameBase!=="/"&&(l=jr([l,y.pathnameBase]))}return u}function wC(t,e){typeof t=="string"&&(t={path:t,caseSensitive:!1,end:!0});let[n,i]=xC(t.path,t.caseSensitive,t.end),o=e.match(n);if(!o)return null;let l=o[0],u=l.replace(/(.)\/+$/,"$1"),d=o.slice(1);return{params:i.reduce((p,g,y)=>{let{paramName:w,isOptional:E}=g;if(w==="*"){let _=d[y]||"";u=l.slice(0,l.length-_.length).replace(/(.)\/+$/,"$1")}const P=d[y];return E&&!P?p[w]=void 0:p[w]=(P||"").replace(/%2F/g,"/"),p},{}),pathname:l,pathnameBase:u,pattern:t}}function xC(t,e,n){e===void 0&&(e=!1),n===void 0&&(n=!0),If(t==="*"||!t.endsWith("*")||t.endsWith("/*"),'Route path "'+t+'" will be treated as if it were '+('"'+t.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+t.replace(/\*$/,"/*")+'".'));let i=[],o="^"+t.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(u,d,h)=>(i.push({paramName:d,isOptional:h!=null}),h?"/?([^\\/]+)?":"/([^\\/]+)"));return t.endsWith("*")?(i.push({paramName:"*"}),o+=t==="*"||t==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":t!==""&&t!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,e?void 0:"i"),i]}function bC(t){try{return t.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(e){return If(!1,'The URL path "'+t+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+e+").")),t}}function Ff(t,e){if(e==="/")return t;if(!t.toLowerCase().startsWith(e.toLowerCase()))return null;let n=e.endsWith("/")?e.length-1:e.length,i=t.charAt(n);return i&&i!=="/"?null:t.slice(n)||"/"}const SC=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,EC=t=>SC.test(t);function _C(t,e){e===void 0&&(e="/");let{pathname:n,search:i="",hash:o=""}=typeof t=="string"?Si(t):t,l;if(n)if(EC(n))l=n;else{if(n.includes("//")){let u=n;n=n.replace(/\/\/+/g,"/"),If(!1,"Pathnames cannot have embedded double slashes - normalizing "+(u+" -> "+n))}n.startsWith("/")?l=iy(n.substring(1),"/"):l=iy(n,e)}else l=e;return{pathname:l,search:TC(i),hash:PC(o)}}function iy(t,e){let n=e.replace(/\/+$/,"").split("/");return t.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function ud(t,e,n,i){return"Cannot include a '"+t+"' character in a manually specified "+("`to."+e+"` field ["+JSON.stringify(i)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function CC(t){return t.filter((e,n)=>n===0||e.route.path&&e.route.path.length>0)}function dw(t,e){let n=CC(t);return e?n.map((i,o)=>o===n.length-1?i.pathname:i.pathnameBase):n.map(i=>i.pathnameBase)}function fw(t,e,n,i){i===void 0&&(i=!1);let o;typeof t=="string"?o=Si(t):(o=Do({},t),rt(!o.pathname||!o.pathname.includes("?"),ud("?","pathname","search",o)),rt(!o.pathname||!o.pathname.includes("#"),ud("#","pathname","hash",o)),rt(!o.search||!o.search.includes("#"),ud("#","search","hash",o)));let l=t===""||o.pathname==="",u=l?"/":o.pathname,d;if(u==null)d=n;else{let y=e.length-1;if(!i&&u.startsWith("..")){let w=u.split("/");for(;w[0]==="..";)w.shift(),y-=1;o.pathname=w.join("/")}d=y>=0?e[y]:"/"}let h=_C(o,d),p=u&&u!=="/"&&u.endsWith("/"),g=(l||u===".")&&n.endsWith("/");return!h.pathname.endsWith("/")&&(p||g)&&(h.pathname+="/"),h}const jr=t=>t.join("/").replace(/\/\/+/g,"/"),kC=t=>t.replace(/\/+$/,"").replace(/^\/*/,"/"),TC=t=>!t||t==="?"?"":t.startsWith("?")?t:"?"+t,PC=t=>!t||t==="#"?"":t.startsWith("#")?t:"#"+t;function RC(t){return t!=null&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.internal=="boolean"&&"data"in t}const hw=["post","put","patch","delete"];new Set(hw);const AC=["get",...hw];new Set(AC);/** 125 * React Router v6.30.3 126 * 127 * Copyright (c) Remix Software Inc. 128 * 129 * This source code is licensed under the MIT license found in the 130 * LICENSE.md file in the root directory of this source tree. 131 * 132 * @license MIT 133 */function Mo(){return Mo=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},Mo.apply(this,arguments)}const Uf=D.createContext(null),NC=D.createContext(null),ks=D.createContext(null),Zl=D.createContext(null),Ts=D.createContext({outlet:null,matches:[],isDataRoute:!1}),pw=D.createContext(null);function OC(t,e){let{relative:n}=e===void 0?{}:e;Yo()||rt(!1);let{basename:i,navigator:o}=D.useContext(ks),{hash:l,pathname:u,search:d}=gw(t,{relative:n}),h=u;return i!=="/"&&(h=u==="/"?i:jr([i,u])),o.createHref({pathname:h,search:d,hash:l})}function Yo(){return D.useContext(Zl)!=null}function Ur(){return Yo()||rt(!1),D.useContext(Zl).location}function mw(t){D.useContext(ks).static||D.useLayoutEffect(t)}function Bf(){let{isDataRoute:t}=D.useContext(Ts);return t?HC():LC()}function LC(){Yo()||rt(!1);
vendor: 4,554 bytes, line 133
133let t=D.useContext(Uf),{basename:e,future:n,navigator:i}=D.useContext(ks),{matches:o}=D.useContext(Ts),{pathname:l}=Ur(),u=JSON.stringify(dw(o,n.v7_relativeSplatPath)),d=D.useRef(!1);return mw(()=>{d.current=!0}),D.useCallback(function(p,g){if(g===void 0&&(g={}),!d.current)return;if(typeof p=="number"){i.go(p);return}let y=fw(p,JSON.parse(u),l,g.relative==="path");t==null&&e!=="/"&&(y.pathname=y.pathname==="/"?e:jr([e,y.pathname])),(g.replace?i.replace:i.push)(y,g.state,g)},[e,i,u,l,t])}function gw(t,e){let{relative:n}=e===void 0?{}:e,{future:i}=D.useContext(ks),{matches:o}=D.useContext(Ts),{pathname:l}=Ur(),u=JSON.stringify(dw(o,i.v7_relativeSplatPath));return D.useMemo(()=>fw(t,JSON.parse(u),l,n==="path"),[t,u,l,n])}function jC(t,e){return DC(t,e)}function DC(t,e,n,i){Yo()||rt(!1);let{navigator:o}=D.useContext(ks),{matches:l}=D.useContext(Ts),u=l[l.length-1],d=u?u.params:{};u&&u.pathname;let h=u?u.pathnameBase:"/";u&&u.route;let p=Ur(),g;if(e){var y;let S=typeof e=="string"?Si(e):e;h==="/"||(y=S.pathname)!=null&&y.startsWith(h)||rt(!1),g=S}else g=p;let w=g.pathname||"/",E=w;if(h!=="/"){let S=h.replace(/^\//,"").split("/");E="/"+w.replace(/^\//,"").split("/").slice(S.length).join("/")}let P=aC(t,{pathname:E}),_=BC(P&&P.map(S=>Object.assign({},S,{params:Object.assign({},d,S.params),pathname:jr([h,o.encodeLocation?o.encodeLocation(S.pathname).pathname:S.pathname]),pathnameBase:S.pathnameBase==="/"?h:jr([h,o.encodeLocation?o.encodeLocation(S.pathnameBase).pathname:S.pathnameBase])})),l,n,i);return e&&_?D.createElement(Zl.Provider,{value:{location:Mo({pathname:"/",search:"",hash:"",state:null,key:"default"},g),navigationType:Or.Pop}},_):_}function MC(){let t=WC(),e=RC(t)?t.status+" "+t.statusText:t instanceof Error?t.message:JSON.stringify(t),n=t instanceof Error?t.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return D.createElement(D.Fragment,null,D.createElement("h2",null,"Unexpected Application Error!"),D.createElement("h3",{style:{fontStyle:"italic"}},e),n?D.createElement("pre",{style:o},n):null,null)}const IC=D.createElement(MC,null);class FC extends D.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,n){return n.location!==e.location||n.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:n.error,location:n.location,revalidation:e.revalidation||n.revalidation}}componentDidCatch(e,n){console.error("React Router caught the following error during render",e,n)}render(){return this.state.error!==void 0?D.createElement(Ts.Provider,{value:this.props.routeContext},D.createElement(pw.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function UC(t){let{routeContext:e,match:n,children:i}=t,o=D.useContext(Uf);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),D.createElement(Ts.Provider,{value:e},i)}function BC(t,e,n,i){var o;if(e===void 0&&(e=[]),n===void 0&&(n=null),i===void 0&&(i=null),t==null){var l;if(!n)return null;if(n.errors)t=n.matches;else if((l=i)!=null&&l.v7_partialHydration&&e.length===0&&!n.initialized&&n.matches.length>0)t=n.matches;else return null}let u=t,d=(o=n)==null?void 0:o.errors;if(d!=null){let g=u.findIndex(y=>y.route.id&&(d==null?void 0:d[y.route.id])!==void 0);g>=0||rt(!1),u=u.slice(0,Math.min(u.length,g+1))}let h=!1,p=-1;if(n&&i&&i.v7_partialHydration)for(let g=0;g<u.length;g++){let y=u[g];if((y.route.HydrateFallback||y.route.hydrateFallbackElement)&&(p=g),y.route.id){let{loaderData:w,errors:E}=n,P=y.route.loader&&w[y.route.id]===void 0&&(!E||E[y.route.id]===void 0);if(y.route.lazy||P){h=!0,p>=0?u=u.slice(0,p+1):u=[u[0]];break}}}return u.reduceRight((g,y,w)=>{let E,P=!1,_=null,S=null;n&&(E=d&&y.route.id?d[y.route.id]:void 0,_=y.route.errorElement||IC,h&&(p<0&&w===0?(qC("route-fallback"),P=!0,S=null):p===w&&(P=!0,S=y.route.hydrateFallbackElement||null)));let b=e.concat(u.slice(0,w+1)),O=()=>{let k;return E?k=_:P?k=S:y.route.Component?k=D.createElement(y.route.Component,null):y.route.element?k=y.route.element:k=g,D.createElement(UC,{match:y,routeContext:{outlet:g,matches:b,isDataRoute:n!=null},children:k})};return n&&(y.route.ErrorBoundary||y.route.errorElement||w===0)?D.createElement(FC,{location:n.location,revalidation:n.revalidation,component:_,error:E,children:O(),routeC
133ontext:{outlet:null,matches:b,isDataRoute:!0}}):O()},null)}var yw=(function(t){return t.UseBlocker="useBlocker",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate",t})(yw||{}),vw=(function(t){return t.UseBlocker="useBlocker",t.UseLoaderData="useLoaderData",t.UseActionData="useActionData",t.UseRouteError="useRouteError",t.UseNavigation="useNavigation",t.UseRouteLoaderData="useRouteLoaderData",t.UseMatches="useMatches",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate",t.UseRouteId="useRouteId",t})(vw||{});function VC(t){let e=D.useContext(Uf);return e||rt(!1),e}function zC(t){let e=D.useContext(NC);return e||rt(!1),e}function $C(t){let e=D.useContext(Ts);return e||rt(!1),e}function ww(t){let e=$C(),n=e.matches[e.matches.length-1];return n.route.id||rt(!1),n.route.id}function WC(){var t;let e=D.useContext(pw),n=zC(),i=ww();return e!==void 0?e:(t=n.errors)==null?void 0:t[i]}function HC(){let{router:t}=VC(yw.UseNavigateStable),e=ww(vw.UseNavigateStable),n=D.useRef(!1);return mw(()=>{n.current=!0}),D.useCallback(function(o,l){l===void 0&&(l={}),n.current&&(typeof o=="number"?t.navigate(o):t.navigate(o,Mo({fromRouteId:e},l)))},[t,e])}const oy={};function qC(t,e,n){oy[t]||(oy[t]=!0)}function KC(t,e){t==null||t.v7_startTransition,t==null||t.v7_relativeSplatPath}function Rl(t){rt(!1)}function QC(t){let{basename:e="/",children:n=null,location:i,navigationType:o=Or.Pop,navigator:l,static:u=!1,future:d}=t;Yo()&&rt(!1);let h=e.replace(/^\/*/,"/"),p=D.useMemo(()=>({basename:h,navigator:l,static:u,future:Mo({v7_relativeSplatPath:!1},d)}),[h,d,l,u]);typeof i=="string"&&(i=Si(i));let{pathname:g="/",search:y="",hash:w="",state:E=null,key:P="default"}=i,_=D.useMemo(()=>{let S=Ff(g,h);return S==null?null:{location:{pathname:S,search:y,hash:w,state:E,key:P},navigationType:o}},[h,g,y,w,E,P,o]);return _==null?null:D.createElement(ks.Provider,{value:p},D.createElement(Zl.Provider,{children:n,value:_}))}function GC(t){let{children:e,location:n}=t;return jC(Jd(e),n)}new Promise(()=>{});function Jd(t,e){e===void 0&&(e=[]);let n=[];return D.Children.forEach(t,(i,o)=>{if(!D.isValidElement(i))return;let l=[...e,o];if(i.type===D.Fragment){n.push.apply(n,Jd(i.props.children,l));return}i.type!==Rl&&rt(!1),!i.props.index||!i.props.children||rt(!1);let u={id:i.props.id||l.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&&(u.children=Jd(i.props.children,l)),n.push(u)}),n}/** 134 * React Router DOM v6.30.3 135 * 136 * Copyright (c) Remix Software Inc. 137 * 138 * This source code is licensed under the MIT license found in the 139 * LICENSE.md file in the root directory of this source tree. 140 * 141 * @license MIT 142 */function Zd(){return Zd=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},Zd.apply(this,arguments)}function YC(t,e){if(t==null)return{};var n={},i=Object.keys(t),o,l;for(l=0;l<i.length;l++)o=i[l],!(e.indexOf(o)>=0)&&(n[o]=t[o]);return n}function XC(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}function JC(t,e){return t.button===0&&(!e||e==="_self")&&!XC(t)}const ZC=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],ek="6";try{window.__reactRouterVersion=ek}catch{}const tk="startTransition",ay=q1[tk];function nk(t){let{basename:e,children:n,future:i,window:o}=t,l=D.useRef();l.current==null&&(l.current=sC({window:o,v5Compat:!0}));let u=l.current,[d,h]=D.useState({action:u.action,location:u.location}),{v7_startTransition:p}=i||{},g=D.useCallback(y=>{p&&ay?ay(()=>h(y)):h(y)},[h,p]);return D.useLayoutEffect(()=>u.listen(g),[u,g]),D.useEffect(()=>KC(i),[i]),D.createElement(QC,{basename:e,children:n,location:d.location,navigationType:d.action,navigator:u,future:i})}const rk=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",sk=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,xw=D.forwardRef(function(e,n){let{onClick:i,relative:o,reloadDocument:l,replace:u,state:d,target:h,to:p,preventScrollReset:g,viewTransition:y}=e,w=YC(e,ZC),{basename:E}=D.useContext(ks),P,_=!1;if(typeof p=="string"&&sk.test(p)&&(P=p,rk))try{let k=new URL(window.location.href),A=p.startsWith("//")?new URL(k.protocol+p):new URL(p),U=Ff(A.pathname,E);A.origin===k.origin&&U!=null?p=U+A.search+A.hash:_=!0}catch{}let S=OC(p,{relative:o}),b=ik(p,{replace:u,state:d,target:h,preventScrollReset:g,relative:o,viewTransition:y});function O(k){i&&i(k),k.defaultPrevented||b(k)}return D.createElement("a",Zd({},w,{href:P||S,onClick:_||l?i:O,ref:n,target:h}))});var ly;(function(t){t.UseScrollRestoration="useScrollRestoration",t.UseSubmit="useSubmit",t.UseSubmitFetcher="useSubmitFetcher",t.UseFetcher="useFetcher",t.useViewTransitionState="useViewTransitionState"})(ly||(ly={}));var uy;(function(t){t.UseFetcher="useFetcher",t.UseFetchers="useFetchers",t.UseScrollRestoration="useScrollRestoration"})(uy||(uy={}));function ik(t,e){let{target:n,replace:i,state:o,preventScrollReset:l,relative:u,viewTransition:d}=e===void 0?{}:e,h=Bf(),p=Ur(),g=gw(t,{relative:u});return D.useCallback(y=>{if(JC(y,n)){y.preventDefault();let w=i!==void 0?i:zl(p)===zl(g);h(t,{replace:w,state:o,preventScrollReset:l,relative:u,viewTransition:d})}},[p,h,g,i,o,n,t,l,u,d])}function bw(t,e){return function(){return t.apply(e,arguments)}}const{toString:ok}=Object.prototype,{getPrototypeOf:vi}=Object,{iterator:Xo,toStringTag:Sw}=Symbol,$l=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),Io=(t,e)=>{let n=t;const i=[];for(;n!=null&&n!==Object.prototype;){if(i.indexOf(n)!==-1)return!1;if(i.push(n),$l(n,e))return!0;n=vi(n)}return!1},ak=(t,e)=>t!=null&&Io(t,e)?t[e]:void 0,Vf=(t=>e=>{const n=ok.call(e);return t[n]||(t[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),ln=t=>(t=t.toLowerCase(),e=>Vf(e)===t),eu=t=>e=>typeof e===t,{isArray:Ss}=Array,Es=eu("undefined");function Ei(t){return t!==null&&!Es(t)&&t.constructor!==null&&!Es(t.constructor)&&Bt(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const Ew=ln("ArrayBuffer");function lk(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&Ew(t.buffer),e}const uk=eu("string"),Bt=eu("function"),_w=eu("number"),_i=t=>t!==null&&typeof t=="object",ck=t=>t===!0||t===!1,Al=t=>{if(!_i(t))return!1;const e=vi(t);return(e===null||e===Object.prototype||vi(e)===null)&&!Io(t,Sw)&&
vendor: 4,202 bytes, line 142
142!Io(t,Xo)},dk=t=>{if(!_i(t)||Ei(t))return!1;try{return Object.keys(t).length===0&&Object.getPrototypeOf(t)===Object.prototype}catch{return!1}},fk=ln("Date"),hk=ln("File"),pk=t=>!!(t&&typeof t.uri<"u"),mk=t=>t&&typeof t.getParts<"u",gk=ln("Blob"),yk=ln("FileList"),vk=ln("Set"),wk=t=>_i(t)&&Bt(t.pipe);function xk(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}const cy=xk(),dy=typeof cy.FormData<"u"?cy.FormData:void 0,bk=t=>{if(!t)return!1;if(dy&&t instanceof dy)return!0;const e=vi(t);if(!e||e===Object.prototype||!Bt(t.append))return!1;const n=Vf(t);return n==="formdata"||n==="object"&&Bt(t.toString)&&t.toString()==="[object FormData]"},Sk=ln("URLSearchParams"),[Ek,_k,Ck,kk]=["ReadableStream","Request","Response","Headers"].map(ln),Tk=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Jo(t,e,{allOwnKeys:n=!1}={}){if(t===null||typeof t>"u")return;let i,o;if(typeof t!="object"&&(t=[t]),Ss(t))for(i=0,o=t.length;i<o;i++)e.call(null,t[i],i,t);else{if(Ei(t))return;const l=n?Object.getOwnPropertyNames(t):Object.keys(t),u=l.length;let d;for(i=0;i<u;i++)d=l[i],e.call(null,t[d],d,t)}}function Cw(t,e){if(Ei(t))return null;e=e.toLowerCase();const n=Object.keys(t);let i=n.length,o;for(;i-- >0;)if(o=n[i],e===o.toLowerCase())return o;return null}const as=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,kw=t=>!Es(t)&&t!==as;function ef(...t){const{caseless:e,skipUndefined:n}=kw(this)&&this||{},i={},o=(l,u)=>{if(u==="__proto__"||u==="constructor"||u==="prototype")return;const d=e&&typeof u=="string"&&Cw(i,u)||u,h=$l(i,d)?i[d]:void 0;Al(h)&&Al(l)?i[d]=ef(h,l):Al(l)?i[d]=ef({},l):Ss(l)?i[d]=l.slice():(!n||!Es(l))&&(i[d]=l)};for(let l=0,u=t.length;l<u;l++){const d=t[l];if(!d||Ei(d)||(Jo(d,o),typeof d!="object"||Ss(d)))continue;const h=Object.getOwnPropertySymbols(d);for(let p=0;p<h.length;p++){const g=h[p];Uk.call(d,g)&&o(d[g],g)}}return i}const Pk=(t,e,n,{allOwnKeys:i}={})=>(Jo(e,(o,l)=>{n&&Bt(o)?Object.defineProperty(t,l,{__proto__:null,value:bw(o,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(t,l,{__proto__:null,value:o,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:i}),t),Rk=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),Ak=(t,e,n,i)=>{t.prototype=Object.create(e.prototype,i),Object.defineProperty(t.prototype,"constructor",{__proto__:null,value:t,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(t,"super",{__proto__:null,value:e.prototype}),n&&Object.assign(t.prototype,n)},Nk=(t,e,n,i)=>{let o,l,u;const d={};if(e=e||{},t==null)return e;do{for(o=Object.getOwnPropertyNames(t),l=o.length;l-- >0;)u=o[l],(!i||i(u,t,e))&&!d[u]&&(e[u]=t[u],d[u]=!0);t=n!==!1&&vi(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},Ok=(t,e,n)=>{t=String(t),(n===void 0||n>t.length)&&(n=t.length),n-=e.length;const i=t.indexOf(e,n);return i!==-1&&i===n},Lk=t=>{if(!t)return null;if(Ss(t))return t;let e=t.length;if(!_w(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},jk=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&vi(Uint8Array)),Dk=(t,e)=>{const i=(t&&t[Xo]).call(t);let o;for(;(o=i.next())&&!o.done;){const l=o.value;e.call(t,l[0],l[1])}},Mk=(t,e)=>{let n;const i=[];for(;(n=t.exec(e))!==null;)i.push(n);return i},Ik=ln("HTMLFormElement"),Fk=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,i,o){return i.toUpperCase()+o}),{propertyIsEnumerable:Uk}=Object.prototype,Bk=ln("RegExp"),Tw=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),i={};Jo(n,(o,l)=>{let u;(u=e(o,l,t))!==!1&&(i[l]=u||o)}),Object.defineProperties(t,i)},Vk=t=>{Tw(t,(e,n)=>{if(Bt(t)&&["arguments","caller","callee"].includes(n))return!1;const i=t[n];if(Bt(i)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},zk=(t,e)=>{const n={},i=o=>{o.forEach(l=>{n[l]=!0})};return Ss(t)?i(t):i(String(t).split(e)),n},$k=()=>{},Wk=(t,e)=>t!=null&&Number.isFinite(t=+t)?t:e;function Hk(t){return!!(t&&Bt(t.append)&&t[Sw]==="FormData"&&t[Xo])}const qk=t=>{const e=new WeakSet,n=i=>{if(_i(i)){if(e.has(i))return;if(Ei(i))return i;
142if(!("toJSON"in i)){e.add(i);let o;if(vk(i)){o=[];for(const l of i){const u=n(l);!Es(u)&&o.push(u)}}else o=Ss(i)?[]:{},Jo(i,(l,u)=>{const d=n(l);!Es(d)&&(o[u]=d)});return e.delete(i),o}}return i};return n(t)},Kk=ln("AsyncFunction"),Qk=t=>t&&(_i(t)||Bt(t))&&Bt(t.then)&&Bt(t.catch),Pw=((t,e)=>t?setImmediate:e?((n,i)=>(as.addEventListener("message",({source:o,data:l})=>{o===as&&l===n&&i.length&&i.shift()()},!1),o=>{i.push(o),as.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Bt(as.postMessage)),Gk=typeof queueMicrotask<"u"?queueMicrotask.bind(as):typeof process<"u"&&process.nextTick||Pw,Rw=t=>t!=null&&Bt(t[Xo]),Yk=t=>t!=null&&Io(t,Xo)&&Rw(t),N={isArray:Ss,isArrayBuffer:Ew,isBuffer:Ei,isFormData:bk,isArrayBufferView:lk,isString:uk,isNumber:_w,isBoolean:ck,isObject:_i,isPlainObject:Al,isEmptyObject:dk,isReadableStream:Ek,isRequest:_k,isResponse:Ck,isHeaders:kk,isUndefined:Es,isDate:fk,isFile:hk,isReactNativeBlob:pk,isReactNative:mk,isBlob:gk,isRegExp:Bk,isFunction:Bt,isStream:wk,isURLSearchParams:Sk,isTypedArray:jk,isFileList:yk,forEach:Jo,merge:ef,extend:Pk,trim:Tk,stripBOM:Rk,inherits:Ak,toFlatObject:Nk,kindOf:Vf,kindOfTest:ln,endsWith:Ok,toArray:Lk,forEachEntry:Dk,matchAll:Mk,isHTMLForm:Ik,hasOwnProperty:$l,hasOwnProp:$l,hasOwnInPrototypeChain:Io,getSafeProp:ak,reduceDescriptors:Tw,freezeMethods:Vk,toObjectSet:zk,toCamelCase:Fk,noop:$k,toFiniteNumber:Wk,findKey:Cw,global:as,isContextDefined:kw,isSpecCompliantForm:Hk,toJSONObject:qk,isAsyncFn:Kk,isThenable:Qk,setImmediate:Pw,asap:Gk,isIterable:Rw,isSafeIterable:Yk},Xk=N.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"]),Jk=t=>{const e={};let n,i,o;return t&&t.split(` 143`).forEach(function(u){o=u.indexOf(":"),n=u.substring(0,o).trim().toLowerCase(),i=u.substring(o+1).trim();const d=N.hasOwnProp(e,n);!n||d&&N.hasOwnProp(Xk,n)||(n==="set-cookie"?d?e[n].push(i):e[n]=[i]:e[n]=d?e[n]+", "+i:i)}),e};function Zk(t){let e=0,n=t.length;for(;e<n;){const i=t.charCodeAt(e);if(i!==9&&i!==32)break;e+=1}for(;n>e;){const i=t.charCodeAt(n-1);if(i!==9&&i!==32)break;n-=1}return e===0&&n===t.length?t:t.slice(e,n)}const eT=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),tT=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function zf(t,e){return N.isArray(t)?t.map(n=>zf(n,e)):Zk(String(t).replace(e,""))}const nT=t=>zf(t,eT),rT=t=>zf(t,tT);function Aw(t){const e=Object.create(null);return N.forEach(t.toJSON(),(n,i)=>{e[i]=rT(n)}),e}const fy=Symbol("internals");function mo(t){return t&&String(t).trim().toLowerCase()}function Nl(t){return t===!1||t==null?t:N.isArray(t)?t.map(Nl):nT(String(t))}function sT(t){const e=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let i;for(;i=n.exec(t);)e[i[1]]=i[2];return e}const iT=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/;function cd(t){let e=0,n=t.length;for(;e<n;){const i=t.charCodeAt(e);if(i!==9&&i!==32)break;e+=1}for(;n>e;){const i=t.charCodeAt(n-1);if(i!==9&&i!==32)break;n-=1}return e===0&&n===t.length?t:t.slice(e,n)}function oT(t){const e=t.length-1;if(e<1||t.charCodeAt(0)!==34||t.charCodeAt(e)!==34)return t;let n="";for(let i=1;i<e;i++){const o=t.charCodeAt(i);if(o===34||o===92&&(i+=1,i>=e))return t;n+=t[i]}return n}function aT(t){const e=Object.create(null),n=String(t);let i=0,o=!1,l=!1;function u(d){const h=cd(n.slice(i,d)),p=h.indexOf("=");if(p<1)return;const g=cd(h.slice(0,p));if(!iT.test(g))return;const y=g.toLowerCase();if(y==="__proto__"||y==="constructor"||y==="prototype")return;const w=cd(h.slice(p+1));e[y]=oT(w)}for(let d=0;d<n.length;d++){const h=n.charCodeAt(d);o?l?l=!1:h===92?l=!0:h===34&&(o=!1):h===34?o=!0:(h===44||h===59)&&(u(d),i=d+1)}return u(n.length),e}const lT=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function dd(t,e,n,i,o){if(N.isFunction(i))return i.call(this,e,n);if(o&&(e=n),!!N.isString(e)){if(N.isString(i))return e.indexOf(i)!==-1;if(N.isRegExp(i))return i.test(e)}}function uT(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,n,i)=>n.toUpperCase()+i)}function cT(t,e){const n=N.toCamelCase(" "+e);["get","set","has"].forEach(i=>
vendor: 3,656 bytes, lines 143-144
143{Object.defineProperty(t,i+n,{__proto__:null,value:function(o,l,u){return this[i].call(this,e,o,l,u)},configurable:!0})})}let Pt=class{constructor(e){e&&this.set(e)}set(e,n,i){const o=this;function l(d,h,p){const g=mo(h);if(!g)return;const y=N.findKey(o,g);(!y||o[y]===void 0||p===!0||p===void 0&&o[y]!==!1)&&(o[y||h]=Nl(d))}const u=(d,h)=>N.forEach(d,(p,g)=>l(p,g,h));if(N.isPlainObject(e)||e instanceof this.constructor)u(e,n);else if(N.isString(e)&&(e=e.trim())&&!lT(e))u(Jk(e),n);else if(N.isObject(e)&&N.isSafeIterable(e)){let d=Object.create(null),h,p;for(const g of e){if(!N.isArray(g))throw new TypeError("Object iterator must return a key-value pair");p=g[0],N.hasOwnProp(d,p)?(h=d[p],d[p]=N.isArray(h)?[...h,g[1]]:[h,g[1]]):d[p]=g[1]}u(d,n)}else e!=null&&l(n,e,i);return this}get(e,n){if(e=mo(e),e){const i=N.findKey(this,e);if(i){const o=this[i];if(!n)return o;if(n===!0)return sT(o);if(N.isFunction(n))return n.call(this,o,i);if(N.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,n){if(e=mo(e),e){const i=N.findKey(this,e);return!!(i&&this[i]!==void 0&&(!n||dd(this,this[i],i,n)))}return!1}delete(e,n){const i=this;let o=!1;function l(u){if(u=mo(u),u){const d=N.findKey(i,u);d&&(!n||dd(i,i[d],d,n))&&(delete i[d],o=!0)}}return N.isArray(e)?e.forEach(l):l(e),o}clear(e){const n=Object.keys(this);let i=n.length,o=!1;for(;i--;){const l=n[i];(!e||dd(this,this[l],l,e,!0))&&(delete this[l],o=!0)}return o}normalize(e){const n=this,i={};return N.forEach(this,(o,l)=>{const u=N.findKey(i,l);if(u){n[u]=Nl(o),delete n[l];return}const d=e?uT(l):String(l).trim();d!==l&&delete n[l],n[d]=Nl(o),i[d]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const n=Object.create(null);return N.forEach(this,(i,o)=>{i!=null&&i!==!1&&(n[o]=e&&N.isArray(i)?i.join(", "):i)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,n])=>e+": "+n).join(` 144`)}getSetCookie(){const e=this.get("set-cookie");return N.isArray(e)?e:e==null||e===!1?[]:[e]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static parseParameters(e){return aT(e)}static concat(e,...n){const i=new this(e);return n.forEach(o=>i.set(o)),i}static accessor(e){const i=(this[fy]=this[fy]={accessors:{}}).accessors,o=this.prototype;function l(u){const d=mo(u);i[d]||(cT(o,u),i[d]=!0)}return N.isArray(e)?e.forEach(l):l(e),this}};Pt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);N.reduceDescriptors(Pt.prototype,({value:t},e)=>{let n=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(i){this[n]=i}}});N.freezeMethods(Pt);const Wl="[REDACTED ****]";function dT(t){if(N.hasOwnProp(t,"toJSON"))return!0;let e=Object.getPrototypeOf(t);for(;e&&e!==Object.prototype;){if(N.hasOwnProp(e,"toJSON"))return!0;e=Object.getPrototypeOf(e)}return!1}function fT(t,e){const n=new Set(e.map(l=>String(l).toLowerCase())),i=[],o=l=>{if(l===null||typeof l!="object"||N.isBuffer(l))return l;if(i.indexOf(l)!==-1)return;l instanceof Pt&&(l=l.toJSON()),i.push(l);let u;if(N.isArray(l))u=[],l.forEach((d,h)=>{const p=o(d);N.isUndefined(p)||(u[h]=p)});else{if(!N.isPlainObject(l)&&dT(l))return i.pop(),l;u=Object.create(null);for(const[d,h]of Object.entries(l)){const p=n.has(d.toLowerCase())?Wl:o(h);N.isUndefined(p)||(u[d]=p)}}return i.pop(),u};return o(t)}function hy(t){try{return String(t)}catch{return""}}function hT(t){return t.errors.map(n=>{try{return n&&n.message?hy(n.message):hy(n)}catch{return""}}).filter(Boolean).join("; ")||t.name||"AggregateError"}
vendor: 3,895 bytes, line 144
144let Y=class Nw extends Error{static from(e,n,i,o,l,u){let d=e.message;!d&&N.isArray(e.errors)&&e.errors.length&&(d=hT(e));const h=new Nw(d,n||e.code,i,o,l);return Object.defineProperty(h,"cause",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),h.name=e.name,e.status!=null&&h.status==null&&(h.status=e.status),u&&Object.assign(h,u),h}constructor(e,n,i,o,l){super(e),Object.defineProperty(this,"message",{__proto__:null,value:e,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,n&&(this.code=n),i&&(this.config=i),o&&(this.request=o),l&&(this.response=l,this.status=l.status)}toJSON(){const e=this.config,n=e&&N.hasOwnProp(e,"redact")?e.redact:void 0,i=N.isArray(n)&&n.length>0?fT(e,n):N.toJSONObject(e);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:i,code:this.code,status:this.status}}};Y.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";Y.ERR_BAD_OPTION="ERR_BAD_OPTION";Y.ECONNABORTED="ECONNABORTED";Y.ETIMEDOUT="ETIMEDOUT";Y.ECONNREFUSED="ECONNREFUSED";Y.ERR_NETWORK="ERR_NETWORK";Y.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";Y.ERR_DEPRECATED="ERR_DEPRECATED";Y.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";Y.ERR_BAD_REQUEST="ERR_BAD_REQUEST";Y.ERR_CANCELED="ERR_CANCELED";Y.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";Y.ERR_INVALID_URL="ERR_INVALID_URL";Y.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";const pT=null,Ow=100;function tf(t){return N.isPlainObject(t)||N.isArray(t)}function Lw(t){return N.endsWith(t,"[]")?t.slice(0,-2):t}function fd(t,e,n){return t?t.concat(e).map(function(o,l){return o=Lw(o),!n&&l?"["+o+"]":o}).join(n?".":""):e}function mT(t){return N.isArray(t)&&!t.some(tf)}const gT=N.toFlatObject(N,{},null,function(e){return/^is[A-Z]/.test(e)});function tu(t,e,n){if(!N.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,n=N.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(O,k){return!N.isUndefined(k[O])});const i=n.metaTokens,o=n.visitor||P,l=n.dots,u=n.indexes,d=n.Blob||typeof Blob<"u"&&Blob,h=n.maxDepth===void 0?Ow:n.maxDepth,p=d&&N.isSpecCompliantForm(e),g=[];if(!N.isFunction(o))throw new TypeError("visitor must be a function");function y(b){if(b===null)return"";if(N.isDate(b))return b.toISOString();if(N.isBoolean(b))return b.toString();if(!p&&N.isBlob(b))throw new Y("Blob is not supported. Use a Buffer instead.");if(N.isArrayBuffer(b)||N.isTypedArray(b)){if(p&&typeof d=="function")return new d([b]);throw new Y("Blob is not supported. Use a Buffer instead.",Y.ERR_NOT_SUPPORT)}return b}function w(b){if(b>h)throw new Y("Object is too deeply nested ("+b+" levels). Max depth: "+h,Y.ERR_FORM_DATA_DEPTH_EXCEEDED)}function E(b,O){if(h===1/0)return JSON.stringify(b);const k=[];return JSON.stringify(b,function(U,z){if(!N.isObject(z))return z;for(;k.length&&k[k.length-1]!==this;)k.pop();return k.push(z),w(O+k.length-1),z})}function P(b,O,k){let A=b;if(N.isReactNative(e)&&N.isReactNativeBlob(b))return e.append(fd(k,O,l),y(b)),!1;if(b&&!k&&typeof b=="object"){if(N.endsWith(O,"{}"))O=i?O:O.slice(0,-2),b=E(b,1);else if(N.isArray(b)&&mT(b)||(N.isFileList(b)||N.endsWith(O,"[]"))&&(A=N.toArray(b)))return O=Lw(O),A.forEach(function(z,J){!(N.isUndefined(z)||z===null)&&e.append(u===!0?fd([O],J,l):u===null?O:O+"[]",y(z))}),!1}return tf(b)?!0:(e.append(fd(k,O,l),y(b)),!1)}const _=Object.assign(gT,{defaultVisitor:P,convertValue:y,isVisitable:tf});function S(b,O,k=0){if(!N.isUndefined(b)){if(w(k),g.indexOf(b)!==-1)throw new Error("Circular reference detected in "+O.join("."));g.push(b),N.forEach(b,function(U,z){(!(N.isUndefined(U)||U===null)&&o.call(e,U,N.isString(z)?z.trim():z,O,_))===!0&&S(U,O?O.concat(z):[z],k+1)}),g.pop()}}if(!N.isObject(t))throw new TypeError("data must be an object");return S(t),e}
vendor: 3,959 bytes, line 144
144function py(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(t).replace(/[!'()~]|%20/g,function(i){return e[i]})}function $f(t,e){this._pairs=[],t&&tu(t,this,e)}const jw=$f.prototype;jw.append=function(e,n){this._pairs.push([e,n])};jw.toString=function(e){const n=e?i=>e.call(this,i,py):py;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function yT(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Dw(t,e,n){if(!e)return t;t=t||"";const i=N.isFunction(n)?{serialize:n}:n,o=N.getSafeProp(i,"encode")||yT,l=N.getSafeProp(i,"serialize");let u;if(l?u=l(e,i):u=N.isURLSearchParams(e)?e.toString():new $f(e,i).toString(o),u){const d=t.indexOf("#");d!==-1&&(t=t.slice(0,d)),t+=(t.indexOf("?")===-1?"?":"&")+u}return t}class my{constructor(){this.handlers=[]}use(e,n,i){return this.handlers.push({fulfilled:e,rejected:n,synchronous:i?i.synchronous:!1,runWhen:i?i.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){N.forEach(this.handlers,function(i){i!==null&&e(i)})}}const Wf={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0},vT=typeof URLSearchParams<"u"?URLSearchParams:$f,wT=typeof FormData<"u"?FormData:null,xT=typeof Blob<"u"?Blob:null,bT={isBrowser:!0,classes:{URLSearchParams:vT,FormData:wT,Blob:xT},protocols:["http","https","file","blob","url","data"]},Hf=typeof window<"u"&&typeof document<"u",nf=typeof navigator=="object"&&navigator||void 0,ST=Hf&&(!nf||["ReactNative","NativeScript","NS"].indexOf(nf.product)<0),ET=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",_T=Hf&&window.location.href||"http://localhost",CT=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Hf,hasStandardBrowserEnv:ST,hasStandardBrowserWebWorkerEnv:ET,navigator:nf,origin:_T},Symbol.toStringTag,{value:"Module"})),wt={...CT,...bT};function kT(t,e){return tu(t,new wt.classes.URLSearchParams,{visitor:function(n,i,o,l){return wt.isNode&&N.isBuffer(n)?(this.append(i,n.toString("base64")),!1):l.defaultVisitor.apply(this,arguments)},...e})}const gy=Ow;function Mw(t){if(t>gy)throw new Y("FormData field is too deeply nested ("+t+" levels). Max depth: "+gy,Y.ERR_FORM_DATA_DEPTH_EXCEEDED)}function TT(t){const e=[],n=/[^.[\]]+|\[([^.[\]]*)]/g;let i;for(;(i=n.exec(t))!==null;)Mw(e.length),e.push(i[0]==="[]"?"":i[1]||i[0]);return e}function PT(t){const e={},n=Object.keys(t);let i;const o=n.length;let l;for(i=0;i<o;i++)l=n[i],e[l]=t[l];return e}function Iw(t){function e(n,i,o,l){Mw(l);let u=n[l++];if(u==="__proto__")return!0;const d=Number.isFinite(+u),h=l>=n.length;return u=!u&&N.isArray(o)?o.length:u,h?(N.hasOwnProp(o,u)?o[u]=N.isArray(o[u])?o[u].concat(i):[o[u],i]:o[u]=i,!d):((!N.hasOwnProp(o,u)||!N.isObject(o[u]))&&(o[u]=[]),e(n,i,o[u],l)&&N.isArray(o[u])&&(o[u]=PT(o[u])),!d)}if(N.isFormData(t)&&N.isFunction(t.entries)){const n={};return N.forEachEntry(t,(i,o)=>{e(TT(i),o,n,0)}),n}return null}const Zs=(t,e)=>t!=null&&N.hasOwnProp(t,e)?t[e]:void 0;function RT(t,e,n){if(N.isString(t))try{return(e||JSON.parse)(t),N.trim(t)}catch(i){if(i.name!=="SyntaxError")throw i}return(n||JSON.stringify)(t)}const Zo={transitional:Wf,adapter:["xhr","http","fetch"],transformRequest:[function(e,n){const i=n.getContentType()||"",o=i.indexOf("application/json")>-1,l=N.isObject(e);if(l&&N.isHTMLForm(e)&&(e=new FormData(e)),N.isFormData(e))return o?JSON.stringify(Iw(e)):e;if(N.isArrayBuffer(e)||N.isBuffer(e)||N.isStream(e)||N.isFile(e)||N.isBlob(e)||N.isReadableStream(e))return e;if(N.isArrayBufferView(e))return e.buffer;if(N.isURLSearchParams(e))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let d;
vendor: 9,411 bytes, line 144
144if(l){const h=Zs(this,"formSerializer");if(i.indexOf("application/x-www-form-urlencoded")>-1)return kT(e,h).toString();if((d=N.isFileList(e))||i.indexOf("multipart/form-data")>-1){const p=Zs(this,"env"),g=p&&p.FormData;return tu(d?{"files[]":e}:e,g&&new g,h)}}return l||o?(n.setContentType("application/json",!1),RT(e)):e}],transformResponse:[function(e){const n=Zs(this,"transitional")||Zo.transitional,i=n&&n.forcedJSONParsing,o=Zs(this,"responseType"),l=o==="json";if(N.isResponse(e)||N.isReadableStream(e))return e;if(e&&N.isString(e)&&(i&&!o||l)){const d=!(n&&n.silentJSONParsing)&&l;try{return JSON.parse(e,Zs(this,"parseReviver"))}catch(h){if(d)throw h.name==="SyntaxError"?Y.from(h,Y.ERR_BAD_RESPONSE,this,null,Zs(this,"response")):h}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:wt.classes.FormData,Blob:wt.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};N.forEach(["delete","get","head","post","put","patch","query"],t=>{Zo.headers[t]={}});function hd(t,e){const n=this||Zo,i=e||n,o=Pt.from(i.headers);let l=i.data;return N.forEach(t,function(d){l=d.call(n,l,o.normalize(),e?e.status:void 0)}),o.normalize(),l}function Fw(t){return!!(t&&t.__CANCEL__)}let ea=class extends Y{constructor(e,n,i){super(e??"canceled",Y.ERR_CANCELED,n,i),this.name="CanceledError",this.__CANCEL__=!0}};function Uw(t,e,n){const i=n.config.validateStatus;!n.status||!i||i(n.status)?t(n):e(new Y("Request failed with status code "+n.status,n.status>=400&&n.status<500?Y.ERR_BAD_REQUEST:Y.ERR_BAD_RESPONSE,n.config,n.request,n))}function AT(t){const e=/^([-+\w]{1,25}):(?:\/\/)?/.exec(t);return e&&e[1]||""}function NT(t,e){t=t||10;const n=new Array(t),i=new Array(t);let o=0,l=0,u;return e=e!==void 0?e:1e3,function(h){const p=Date.now(),g=i[l];u||(u=p),n[o]=h,i[o]=p;let y=l,w=0;for(;y!==o;)w+=n[y++],y=y%t;if(o=(o+1)%t,o===l&&(l=(l+1)%t),p-u<e)return;const E=g&&p-g;return E?Math.round(w*1e3/E):void 0}}function OT(t,e){let n=0,i=1e3/e,o,l;const u=(p,g=Date.now())=>{n=g,o=null,l&&(clearTimeout(l),l=null),t(...p)};return[(...p)=>{const g=Date.now(),y=g-n;y>=i?u(p,g):(o=p,l||(l=setTimeout(()=>{l=null,u(o)},i-y)))},()=>o&&u(o)]}const Hl=(t,e,n=3)=>{let i=0;const o=NT(50,250);return OT(l=>{if(!l||typeof l.loaded!="number")return;const u=l.loaded,d=l.lengthComputable?l.total:void 0,h=Math.max(0,d!=null?Math.min(u,d):u),p=Math.max(0,h-i),g=o(p);i=Math.max(i,h);const y={loaded:h,total:d,progress:d?h/d:void 0,bytes:p,rate:g||void 0,estimated:g&&d?(d-h)/g:void 0,event:l,lengthComputable:d!=null,[e?"download":"upload"]:!0};t(y)},n)},yy=(t,e)=>{const n=t!=null;return[i=>e[0]({lengthComputable:n,total:t,loaded:i}),e[1]]},vy=(t,e=N.asap)=>(...n)=>e(()=>t(...n)),LT=wt.hasStandardBrowserEnv?((t,e)=>n=>(n=new URL(n,wt.origin),t.protocol===n.protocol&&t.host===n.host&&(e||t.port===n.port)))(new URL(wt.origin),wt.navigator&&/(msie|trident)/i.test(wt.navigator.userAgent)):()=>!0,jT=wt.hasStandardBrowserEnv?{write(t,e,n,i,o,l,u){if(typeof document>"u")return;const d=[`${t}=${encodeURIComponent(e)}`];N.isNumber(n)&&d.push(`expires=${new Date(n).toUTCString()}`),N.isString(i)&&d.push(`path=${i}`),N.isString(o)&&d.push(`domain=${o}`),l===!0&&d.push("secure"),N.isString(u)&&d.push(`SameSite=${u}`),document.cookie=d.join("; ")},read(t){if(typeof document>"u")return null;const e=document.cookie.split(";");for(let n=0;n<e.length;n++){const i=e[n].replace(/^\s+/,""),o=i.indexOf("=");if(o!==-1&&i.slice(0,o)===t)try{return decodeURIComponent(i.slice(o+1))}catch{return i.slice(o+1)}}return null},remove(t){this.write(t,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function DT(t){return typeof t!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function MT(t,e){if(!e)return t;let n=t.length;for(;n>0&&t.charCodeAt(n-1)===47;)n--;return t.slice(0,n)+"/"+e.replace(/^\/+/,"")}const IT=/^https?:(?!\/\/)/i,FT=/[\t\n\r]/g;function UT(t){let e=0;for(;e<t.length&&t.charCodeAt(e)<=32;)e++;return t.slice(e)}function BT(t){return UT(t).replace(FT,"")}function VT(t){return t&&t.replace(/(^|&)([^=&]*=)?[^&]+/g,(e,n,i="")=>`${n}${i}${Wl}`)}function zT(t){const e=t.replace(/^(https?:\/{0,2})[^/?#]*@/i,`$1${Wl}@`),n=e.indexOf("#"),o=(n===-1?e:e.slice(0,n)).replace(/([?&][^=&#]*=)[^&#]*/g,`$1${Wl}`);return n===-1?o:`${o}#${VT(e.slice(n+1))}`}function wy(t,e){if(typeof t=="string"){const n=BT(t);if(IT.test(n))throw new Y(`Invalid URL ${JSON.stringify(zT(n))}: missing "//" after protocol`,Y.ERR_INVALID_URL,e)}}function Bw(t,e,n,i){wy(e,i);let o=!DT(e);return t&&(o||n===!1)?(wy(t,i),MT(t,e)):e}const xy=t=>t instanceof Pt?{...t}:t,$T=t=>Object.getOwnPropertySymbols&&Object.getOwnPropertyDescriptor?Object.keys(t).concat(Object.getOwnPropertySymbols(t).filter(e=>Object.getOwnPropertyDescriptor(t,e).enumerable)):Object.keys(t);function _s(t,e){t=t||{},e=e||{};const n=Object.create(null);Object.defineProperty(n,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});function i(g,y,w,E){return N.isPlainObject(g)&&N.isPlainObject(y)?N.merge.call({caseless:E},g,y):N.isPlainObject(y)?N.merge({},y):N.isArray(y)?y.slice():y}function o(g,y,w,E){if(N.isUndefined(y)){if(!N.isUndefined(g))return i(void 0,g,w,E)}else return i(g,y,w,E)}function l(g,y){if(!N.isUndefined(y))return i(void 0,y)}function u(g,y){if(N.isUndefined(y)){if(!N.isUndefined(g))return i(void 0,g)}else return i(void 0,y)}function d(g){const y=N.hasOwnProp(e,"transitional")?e.transitional:void 0;if(!N.isUndefined(y))if(N.isPlainObject(y)){if(N.hasOwnProp(y,g))return y[g]}else return;const w=N.hasOwnProp(t,"transitional")?t.transitional:void 0;if(N.isPlainObject(w)&&N.hasOwnProp(w,g))return w[g]}function h(g,y,w){if(N.hasOwnProp(e,w))return i(g,y);if(N.hasOwnProp(t,w))return i(void 0,g)}const p={url:l,method:l,data:l,baseURL:u,transformRequest:u,transformResponse:u,paramsSerializer:u,timeout:u,timeoutMessage:u,withCredentials:u,withXSRFToken:u,adapter:u,responseType:u,xsrfCookieName:u,xsrfHeaderName:u,onUploadProgress:u,onDownloadProgress:u,decompress:u,maxContentLength:u,maxBodyLength:u,beforeRedirect:u,transport:u,httpAgent:u,httpsAgent:u,cancelToken:u,socketPath:u,allowedSocketPaths:u,responseEncoding:u,validateStatus:h,headers:(g,y,w)=>o(xy(g),xy(y),w,!0)};return N.forEach($T({...t,...e}),function(y){if(y==="__proto__"||y==="constructor"||y==="prototype")return;const w=N.hasOwnProp(p,y)?p[y]:o,E=N.hasOwnProp(t,y)?t[y]:void 0,P=N.hasOwnProp(e,y)?e[y]:void 0,_=w(E,P,y);N.isUndefined(_)&&w!==h||(n[y]=_)}),N.hasOwnProp(e,"validateStatus")&&N.isUndefined(e.validateStatus)&&d("validateStatusUndefinedResolves")===!1&&(N.hasOwnProp(t,"validateStatus")?n.validateStatus=i(void 0,t.validateStatus):delete n.validateStatus),n}const WT=["content-type","content-length"];function HT(t,e,n){if(n!=="content-only"){t.set(e);return}Object.entries(e||{}).forEach(([i,o])=>{WT.includes(i.toLowerCase())&&t.set(i,o)})}const qT=t=>encodeURIComponent(t).replace(/%([0-9A-F]{2})/gi,(e,n)=>String.fromCharCode(parseInt(n,16)));function Vw(t){const e=_s({},t),n=w=>N.hasOwnProp(e,w)?e[w]:void 0,i=n("data");let o=n("withXSRFToken");const l=n("xsrfHeaderName"),u=n("xsrfCookieName");let d=n("headers");const h=n("auth"),p=n("baseURL"),g=n("allowAbsoluteUrls"),y=n("url");if(e.headers=d=Pt.from(d),e.url=Dw(Bw(p,y,g,e),n("params"),n("paramsSerializer")),h){const w=N.getSafeProp(h,"username")||"",E=N.getSafeProp(h,"password")||"";try{d.set("Authorization","Basic "+btoa(w+":"+(E?qT(E):"")))}catch(P){throw Y.from(P,Y.ERR_BAD_OPTION_VALUE,t)}}if(N.isFormData(i)&&(wt.hasStandardBrowserEnv||wt.hasStandardBrowserWebWorkerEnv||N.isReactNative(i)?d.setContentType(void 0):N.isFunction(i.getHeaders)&&HT(d,i.getHeaders(),n("formDataHeaderPolicy"))),wt.hasStandardBrowserEnv&&(N.isFunction(o)&&(o=o(e)),o===!0||o==null&<(e.url))){const E=l&&u&&jT.read(u);E&&d.set(l,E)}return e}const KT=typeof XMLHttpRequest<"u",QT=KT&&function(t){return new Promise(function(n,i){const o=Vw(t);let l=o.data;const u=Pt.from(o.headers).normalize();let{responseType:d,onUploadProgress:h,onDownloadProgress:p}=o,g,y,w,E,P;function _(){E&&E(),P&&P(),o.cancelToken&&o.cancelToken.unsubscribe(g),o.signal&&o.signal.removeEventListener("abort",g)}let S=new XMLHttpRequest;S.open(o.method.toUpperCase(),o.url,!0),S.timeout=o.timeout;function b(){if(!S)return;const k=Pt.from("getAllResponseHeaders"in S&&S.getAllResponseHeaders()),U={data:!d||d==="text"||d==="json"?S.responseText:S.response,status:S.status,statusText:S.statusText,headers:k,config:t,request:S};Uw(function(J){n(J),_()},function(J){i(J),_()},U),S=null}"onloadend"in S?S.onloadend=b:S.onreadystatechange=function(){!S||S.readyState!==4||S.status===0&&!(S.responseURL&&S.responseURL.startsWith("file:"))||setTimeout(b)},S.onabort=function(){S&&(i(new Y("Request aborted",Y.ECONNABORTED,t,S)),_(),S=null)},S.onerror=function(A){const U=A&&A.message?A.message:"Network Error",z=new Y(U,Y.ERR_NETWORK,t,S);z.event=A||null,i(z),_(),S=null},S.ontimeout=function(){let A=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const U=o.transitional||Wf;o.timeoutErrorMessage&&(A=o.timeoutErrorMessage),i(new Y(A,U.clarifyTimeoutError?Y.ETIMEDOUT:Y.ECONNABORTED,t,S)),_(),S=null},l===void 0&&u.setContentType(null),"setRequestHeader"in S&&N.forEac
144h(Aw(u),function(A,U){S.setRequestHeader(U,A)}),N.isUndefined(o.withCredentials)||(S.withCredentials=!!o.withCredentials),d&&d!=="json"&&(S.responseType=o.responseType),p&&([w,P]=Hl(p,!0),S.addEventListener("progress",w)),h&&S.upload&&([y,E]=Hl(h),S.upload.addEventListener("progress",y),S.upload.addEventListener("loadend",E)),(o.cancelToken||o.signal)&&(g=k=>{S&&(i(!k||k.type?new ea(null,t,S):k),S.abort(),_(),S=null)},o.cancelToken&&o.cancelToken.subscribe(g),o.signal&&(o.signal.aborted?g():o.signal.addEventListener("abort",g)));const O=AT(o.url);if(O&&!wt.protocols.includes(O)){i(new Y("Unsupported protocol "+O+":",Y.ERR_BAD_REQUEST,t)),_();return}S.send(l||null)})},GT=(t,e)=>{if(t=t?t.filter(Boolean):[],!e&&!t.length)return;const n=new AbortController;let i=!1;const o=function(h){if(!i){i=!0,u();const p=h instanceof Error?h:this.reason;n.abort(p instanceof Y?p:new ea(p instanceof Error?p.message:p))}};let l=e&&setTimeout(()=>{l=null,o(new Y(`timeout of ${e}ms exceeded`,Y.ETIMEDOUT))},e);const u=()=>{t&&(l&&clearTimeout(l),l=null,t.forEach(h=>{h.unsubscribe?h.unsubscribe(o):h.removeEventListener("abort",o)}),t=null)};t.forEach(h=>{if(!i){if(h.aborted){o.call(h);return}h.addEventListener("abort",o,{once:!0})}});const{signal:d}=n;return d.unsubscribe=()=>N.asap(u),d},YT=function*(t,e){let n=t.byteLength;if(n<e){yield t;return}let i=0,o;for(;i<n;)o=i+e,yield t.slice(i,o),i=o},XT=async function*(t,e){for await(const n of JT(t))yield*YT(n,e)},JT=async function*(t){if(t[Symbol.asyncIterator]){yield*t;return}const e=t.getReader();try{for(;;){const{done:n,value:i}=await e.read();if(n)break;yield i}}finally{await e.cancel()}},by=(t,e,n,i)=>{const o=XT(t,e);let l=0,u,d=h=>{u||(u=!0,i&&i(h))};return new ReadableStream({async pull(h){try{const{done:p,value:g}=await o.next();if(p){d(),h.close();return}let y=g.byteLength;if(n){let w=l+=y;n(w)}h.enqueue(new Uint8Array(g))}catch(p){throw d(p),p}},cancel(h){return d(h),o.return()}},{highWaterMark:2})},Sy=t=>t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102,zw=(t,e,n)=>e+2<n&&Sy(t.charCodeAt(e+1))&&Sy(t.charCodeAt(e+2)),Ey=t=>t<=57?t-48:(t&223)-55,ZT=t=>t>=65&&t<=90||t>=97&&t<=122||t>=48&&t<=57||t===43||t===47||t===45||t===95,eP=t=>t===9||t===10||t===12||t===13||t===32,tP=t=>{const e=Math.floor(t/4),n=t%4;return e*3+(n===2?1:n===3?2:0)},nP=t=>{const e=t.length;let n=0;return e>0&&t.charCodeAt(e-1)===61&&(n++,e>1&&t.charCodeAt(e-2)===61&&n++),Math.floor((e-n)*3/4)},rP=t=>{const e=t.length;let n=0,i=0,o=!1;for(let l=0;l<e;l++){let u=t.charCodeAt(l);if(u===37&&zw(t,l,e)&&(u=Ey(t.charCodeAt(l+1))*16+Ey(t.charCodeAt(l+2)),l+=2),!eP(u)){if(u===61){i++;continue}if(!ZT(u)||i>0){o=!0;continue}n++}}return o||i>2||i>0&&(n+i)%4!==0||n%4===1?nP(t):tP(n)},sP=(t,e)=>{if(!t||typeof t!="string"||!t.startsWith("data:"))return 0;const n=t.indexOf(",");if(n<0)return 0;const i=t.slice(5,n),o=t.slice(n+1);if(/;base64/i.test(i))return e(o);let u=0;for(let d=0,h=o.length;d<h;d++){const p=o.charCodeAt(d);if(p===37&&zw(o,d,h))u+=1,d+=2;else if(p<128)u+=1;else if(p<2048)u+=2;else if(p>=55296&&p<=56319&&d+1<h){const g=o.charCodeAt(d+1);g>=56320&&g<=57343?(u+=4,d++):u+=3}else u+=3}return u};function iP(t){const e=typeof t=="string"?t.indexOf("#"):-1;return sP(e===-1?t:t.slice(0,e),rP)}const qf="1.19.0",_y=64*1024,{isFunction:vl}=N,oP=t=>encodeURIComponent(t).replace(/%([0-9A-F]{2})/gi,(e,n)=>String.fromCharCode(parseInt(n,16))),Cy=t=>{if(!N.isString(t))return t;try{return decodeURIComponent(t)}catch{return t}},ky=(t,...e)=>{try{return!!t(...e)}catch{return!1}},aP=t=>{const e=t.indexOf("://");let n=t;return e!==-1&&(n=n.slice(e+3)),n.includes("@")||n.includes(":")},lP=t=>{const e=N.global!==void 0&&N.global!==null?N.global:globalThis,{ReadableStream:n,TextEncoder:i}=e;t=N.merge.call({skipUndefined:!0},{Request:e.Request,Response:e.Response},t);const{fetch:o,Request:l,Response:u}=t,d=o?vl(o):typeof fetch=="function",h=vl(l),p=vl(u);if(!d)return!1;const g=d&&vl(n),y=d&&(typeof i=="function"?(b=>O=>b.encode(O))(new i):async b=>new Uint8Array(await new l(b).arrayBuffer())),w=h&&g&&ky(()=>{let b=!1;const O=new l(wt.origin,{body:new n,method:"POST",get duplex(){return b=!0,"half"}}),k=O.headers.has("Content-Type");return O.body!=null&&O.body.cancel(),b&&!k}),E=p&&g&&ky(()=>
vendor: 2,327 bytes, line 144
144N.isReadableStream(new u("").body)),P={stream:E&&(b=>b.body)};d&&["text","arrayBuffer","blob","formData","stream"].forEach(b=>{!P[b]&&(P[b]=(O,k)=>{let A=O&&O[b];if(A)return A.call(O);throw new Y(`Response type '${b}' is not supported`,Y.ERR_NOT_SUPPORT,k)})});const _=async b=>{if(b==null)return 0;if(N.isBlob(b))return b.size;if(N.isSpecCompliantForm(b))return(await new l(wt.origin,{method:"POST",body:b}).arrayBuffer()).byteLength;if(N.isArrayBufferView(b)||N.isArrayBuffer(b))return b.byteLength;if(N.isURLSearchParams(b)&&(b=b+""),N.isString(b))return(await y(b)).byteLength},S=async(b,O)=>{const k=N.toFiniteNumber(b.getContentLength());return k??_(O)};return async b=>{let{url:O,method:k,data:A,signal:U,cancelToken:z,timeout:J,onDownloadProgress:B,onUploadProgress:Z,responseType:le,headers:be,withCredentials:De="same-origin",fetchOptions:Se,maxContentLength:Ce,maxBodyLength:Fe}=Vw(b);const Ae=N.isNumber(Ce)&&Ce>-1,he=N.isNumber(Fe)&&Fe>-1,Q=G=>N.hasOwnProp(b,G)?b[G]:void 0;let oe=o||fetch;le=le?(le+"").toLowerCase():"text";let V=GT([U,z&&z.toAbortSignal()],J),j=null;const $=V&&V.unsubscribe&&(()=>{V.unsubscribe()});let me,ge=null;const de=()=>new Y("Request body larger than maxBodyLength limit",Y.ERR_BAD_REQUEST,b,j);try{let G;const we=Q("auth");if(we){const xe=N.getSafeProp(we,"username")||"",ht=N.getSafeProp(we,"password")||"";G={username:xe,password:ht}}if(aP(O)){const xe=new URL(O,wt.origin);if(!G&&(xe.username||xe.password)){const ht=Cy(xe.username),cn=Cy(xe.password);G={username:ht,password:cn}}(xe.username||xe.password)&&(xe.username="",xe.password="",O=xe.href)}if(G&&(be.delete("authorization"),be.set("Authorization","Basic "+btoa(oP((G.username||"")+":"+(G.password||""))))),Ae&&typeof O=="string"&&O.startsWith("data:")&&iP(O)>Ce)throw new Y("maxContentLength size of "+Ce+" exceeded",Y.ERR_BAD_RESPONSE,b,j);if(he&&k!=="get"&&k!=="head"){const xe=await _(A);if(typeof xe=="number"&&isFinite(xe)&&(me=xe,xe>Fe))throw de()}const ke=he&&(N.isReadableStream(A)||N.isStream(A)),ve=(xe,ht,cn)=>by(xe,_y,dn=>{if(he&&dn>Fe)throw ge=de();ht&&ht(dn)},cn);if(w&&k!=="get"&&k!=="head"&&(Z||ke)){if(me=me??await S(be,A),me!==0||ke){let xe=new l(O,{method:"POST",body:A,duplex:"half"}),ht;if(N.isFormData(A)&&(ht=xe.headers.get("content-type"))&&be.setContentType(ht),xe.body){const[cn,dn]=Z&&yy(me,Hl(v
vendor: 4,856 bytes, lines 144-146
144y(Z)))||[];A=ve(xe.body,cn,dn)}}}else if(ke&&!h&&g&&k!=="get"&&k!=="head")A=ve(A);else if(ke&&h&&!w&&k!=="get"&&k!=="head")throw new Y("Stream request bodies are not supported by the current fetch implementation",Y.ERR_NOT_SUPPORT,b,j);N.isString(De)||(De=De?"include":"omit");const at=h&&"credentials"in l.prototype;if(N.isFormData(A)){const xe=be.getContentType();xe&&/^multipart\/form-data/i.test(xe)&&!/boundary=/i.test(xe)&&be.delete("content-type")}be.set("User-Agent","axios/"+qf,!1);const Kt={...Se,signal:V,method:k.toUpperCase(),headers:Aw(be.normalize()),body:A,duplex:"half",credentials:at?De:void 0};j=h&&new l(O,Kt);let ft=await(h?oe(j,Se):oe(O,Kt));const un=Pt.from(ft.headers);if(Ae){const xe=N.toFiniteNumber(un.getContentLength());if(xe!=null&&xe>Ce)throw new Y("maxContentLength size of "+Ce+" exceeded",Y.ERR_BAD_RESPONSE,b,j)}const Qt=E&&(le==="stream"||le==="response");if(E&&ft.body&&(B||Ae||Qt&&$)){const xe={};["status","statusText","headers"].forEach(Mn=>{xe[Mn]=ft[Mn]});const ht=N.toFiniteNumber(un.getContentLength()),[cn,dn]=B&&yy(ht,Hl(vy(B),!0))||[];let Zn=0;const er=Mn=>{if(Ae&&(Zn=Mn,Zn>Ce))throw new Y("maxContentLength size of "+Ce+" exceeded",Y.ERR_BAD_RESPONSE,b,j);cn&&cn(Mn)};ft=new u(by(ft.body,_y,er,()=>{dn&&dn(),$&&$()}),xe)}le=le||"text";let Gt=await P[N.findKey(P,le)||"text"](ft,b);if(Ae&&!E&&!Qt){let xe;if(Gt!=null&&(typeof Gt.byteLength=="number"?xe=Gt.byteLength:typeof Gt.size=="number"?xe=Gt.size:typeof Gt=="string"&&(xe=typeof i=="function"?new i().encode(Gt).byteLength:Gt.length)),typeof xe=="number"&&xe>Ce)throw new Y("maxContentLength size of "+Ce+" exceeded",Y.ERR_BAD_RESPONSE,b,j)}return!Qt&&$&&$(),await new Promise((xe,ht)=>{Uw(xe,ht,{data:Gt,headers:Pt.from(ft.headers),status:ft.status,statusText:ft.statusText,config:b,request:j})})}catch(G){if($&&$(),V&&V.aborted&&V.reason instanceof Y){const we=V.reason;throw we.config=b,j&&(we.request=j),G!==we&&Object.defineProperty(we,"cause",{__proto__:null,value:G,writable:!0,enumerable:!1,configurable:!0}),we}if(ge)throw j&&!ge.request&&(ge.request=j),ge;if(G instanceof Y)throw j&&!G.request&&(G.request=j),G;if(G&&G.name==="TypeError"&&/Load failed|fetch/i.test(G.message)){const we=new Y("Network Error",Y.ERR_NETWORK,b,j,G&&G.response);throw Object.defineProperty(we,"cause",{__proto__:null,value:G.cause||G,writable:!0,enumerable:!1,configurable:!0}),we}throw Y.from(G,G&&G.code,b,j,G&&G.response)}}},uP=new Map,$w=t=>{let e=t&&t.env||{};const{fetch:n,Request:i,Response:o}=e,l=[i,o,n];let u=l.length,d=u,h,p,g=uP;for(;d--;)h=l[d],p=g.get(h),p===void 0&&g.set(h,p=d?new Map:lP(e)),g=p;return p};$w();const Kf={http:pT,xhr:QT,fetch:{get:$w}};N.forEach(Kf,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{__proto__:null,value:e})}catch{}Object.defineProperty(t,"adapterName",{__proto__:null,value:e})}});const Ty=t=>`- ${t}`,cP=t=>N.isFunction(t)||t===null||t===!1;function dP(t,e){t=N.isArray(t)?t:[t];const{length:n}=t;let i,o;const l={};for(let u=0;u<n;u++){i=t[u];let d;if(o=i,!cP(i)&&(o=Kf[(d=String(i)).toLowerCase()],o===void 0))throw new Y(`Unknown adapter '${d}'`);if(o&&(N.isFunction(o)||(o=o.get(e))))break;l[d||"#"+u]=o}if(!o){const u=Object.entries(l).map(([h,p])=>`adapter ${h} `+(p===!1?"is not supported by the environment":"is not available in the build"));let d=n?u.length>1?`since : 145`+u.map(Ty).join(` 146`):" "+Ty(u[0]):"as no adapter specified";throw new Y("There is no suitable adapter to dispatch the request "+d,Y.ERR_NOT_SUPPORT)}return o}const Ww={getAdapter:dP,adapters:Kf};function pd(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new ea(null,t)}function md(t){return pd(t),t.headers=Pt.from(t.headers),t.data=hd.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),Ww.getAdapter(t.adapter||Zo.adapter,t)(t).then(function(i){pd(t),t.response=i;try{i.data=hd.call(t,t.transformResponse,i)}finally{delete t.response}return i.headers=Pt.from(i.headers),i},function(i){if(!Fw(i)&&(pd(t),i&&i.response)){t.response=i.response;try{i.response.data=hd.call(t,t.transformResponse,i.response)}finally{delete t.response}i.response.headers=Pt.from(i.response.headers)}return Promise.reject(i)})}const nu={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{nu[t]=function(i){return typeof i===t||"a"+(e<1?"n ":" ")+t}});const Py={};nu.transitional=function(e,n,i){function o(l,u){return"[Axios v"+qf+"] Transitional option '"+l+"'"+u+(i?". "+i:"")}return(l,u,d)=>{if(e===!1)throw new Y(o(u," has been removed"+(n?" in "+n:"")),Y.ERR_DEPRECATED);return n&&!Py[u]&&(Py[u]=!0,console.warn(o(u," has been deprecated since v"+n+" and will be removed in the near future"))),e?e(l,u,d):!0}};nu.spelling=function(e){return(n,i)=>(console.warn(`${i} is likely a misspelling of ${e}
146`),!0)};function fP(t,e,n){if(typeof t!="object"||t===null)throw new Y("options must be an object",Y.ERR_BAD_OPTION_VALUE);const i=Object.keys(t);let o=i.length;for(;o-- >0;){const l=i[o],u=Object.prototype.hasOwnProperty.call(e,l)?e[l]:void 0;if(u){const d=t[l],h=d===void 0||u(d,l,t);if(h!==!0)throw new Y("option "+l+" must be "+h,Y.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Y("Unknown option "+l,Y.ERR_BAD_OPTION)}}const Ol={assertOptions:fP,validators:nu},_t=Ol.validators;let vs=class{constructor(e){this.defaults=e||{},this.interceptors={request:new my,response:new my}}async request(e,n){try{return await this._request(e,n)}catch(i){if(i instanceof Error){let o={};Error.captureStackTrace?Error.captureStackTrace(o):o=new Error;const l=(()=>{if(!o.stack)return"";const u=o.stack.indexOf(` 147`);return u===-1?"":o.stack.slice(u+1)})();try{if(!i.stack)i.stack=l;else if(l){const u=l.indexOf(` 148`),d=u===-1?-1:l.indexOf(` 149`,u+1),h=d===-1?"":l.slice(d+1);String(i.stack).endsWith(h)||(i.stack+=` 150`+l)}}catch{}}throw i}}_request(e,n){typeof e=="string"?(n=n||{},n.url=e):n=e||{},n=_s(this.defaults,n);const{transitional:i,paramsSerializer:o,headers:l}=n;i!==void 0&&Ol.assertOptions(i,{silentJSONParsing:_t.transitional(_t.boolean),forcedJSONParsing:_t.transitional(_t.boolean),clarifyTimeoutError:_t.transitional(_t.boolean),legacyInterceptorReqResOrdering:_t.transitional(_t.boolean),advertiseZstdAcceptEncoding:_t.transitional(_t.boolean),validateStatusUndefinedResolves:_t.transitional(_t.boolean)},!1),o!=null&&(N.isFunction(o)?n.paramsSerializer={serialize:o}:Ol.assertOptions(o,{encode:_t.function,serialize:_t.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),Ol.assertOptions(n,{baseUrl:_t.spelling("baseURL"),withXsrfToken:_t.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let u=l&&N.merge(l.common,l[n.method]);l&&N.forEach(["delete","get","head","post","put","patch","query","common"],P=>{delete l[P]}),n.headers=Pt.concat(u,l);const d=[];let h=!0;this.interceptors.request.forEach(function(_){if(typeof _.runWhen=="function"&&_.runWhen(n)===!1)return;h=h&&_.synchronous;const S=n.transitional||Wf;S&&S.legacyInterceptorReqResOrdering?d.unshift(_.fulfilled,_.rejected):d.push(_.fulfilled,_.rejected)});const p=[];this.interceptors.response.forEach(function(_){p.push(_.fulfilled,_.rejected)});let g,y=0,w;if(!h){const P=[md.bind(this),void 0];for(P.unshift(...d),P.push(...p),w=P.length,g=Promise.resolve(n);y<w;)g=g.then(P[y++],P[y++]);return g}w=d.length;let E=n;for(;y<w;){const P=d[y++],_=d[y++];try{E=P?P(E):E}catch(S){if(!_){g=Promise.reject(S);break}try{const b=_.call(this,S);N.isThenable(b)&&(g=Promise.resolve(b).then(()=>md.call(this,E)))}catch(b){g=Promise.reject(b)}break}}if(!g)try{g=md.call(this,E)}catch(P){g=Promise.reject(P)}for(y=0,w=p.length;y<w;)g=g.then(p[y++],p[y++]);return g}getUri(e){e=_s(this.defaults,e);const n=Bw(e.baseURL,e.url,e.allowAbsoluteUrls,e);return Dw(n,e.params,e.paramsSerializer)}};N.forEach(["delete","get","head","options"],function(e){vs.prototype[e]=function(n,i){return this.request(_s(i||{},{method:e,url:n,data:i&&N.hasOwnProp(i,"data")?i.data:void 0}))}});N.forEach(["post","put","patch","query"],function(e){function n(i){return function(l,u,d){return this.request(_s(d||{},{method:e,headers:i?{"Content-Type":"multipart/form-data"}:{},url:l,data:u}))}}vs.prototype[e]=n(),e!=="query"&&(vs.prototype[e+"Form"]=n(!0))});let hP=class Hw{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(l){n=l});const i=this;this.promise.then(o=>{if(!i._listeners)return;let l=i._listeners.length;for(;l-- >0;)i._listeners[l](o);i._listeners=null}),this.promise.then=o=>{let l;const u=new Promise(d=>{i.subscribe(d),l=d}).then(o);return u.cancel=function(){i.unsubscribe(l)},u},e(function(l,u,d){i.reason||(i.reason=new ea(l,u,d),n(i.reason))})}throwIfRequested(){if(this.reason)throw this.reason}
150subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const n=this._listeners.indexOf(e);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const e=new AbortController,n=i=>{e.abort(i)};return this.subscribe(n),e.signal.unsubscribe=()=>this.unsubscribe(n),e.signal}static source(){let e;return{token:new Hw(function(o){e=o}),cancel:e}}};function pP(t){return function(n){return t.apply(null,n)}}function mP(t){return N.isObject(t)&&t.isAxiosError===!0}const rf={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent: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,WebServerReturnsAnUnknownError:520,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(rf).forEach(([t,e])=>{rf[e]=t});function qw(t){const e=new vs(t),n=bw(vs.prototype.request,e);return N.extend(n,vs.prototype,e,{allOwnKeys:!0}),N.extend(n,e,null,{allOwnKeys:!0}),n.create=function(o){return qw(_s(t,o))},n}const et=qw(Zo);et.Axios=vs;et.CanceledError=ea;et.CancelToken=hP;et.isCancel=Fw;et.VERSION=qf;et.toFormData=tu;et.AxiosError=Y;et.Cancel=et.CanceledError;et.all=function(e){return Promise.all(e)};et.spread=pP;et.isAxiosError=mP;et.mergeConfig=_s;et.AxiosHeaders=Pt;et.formToJSON=t=>Iw(N.isHTMLForm(t)?new FormData(t):t);et.getAdapter=Ww.getAdapter;et.HttpStatusCode=rf;et.default=et;const{Axios:gj,AxiosError:yj,CanceledError:vj,isCancel:wj,CancelToken:xj,VERSION:bj,all:Sj,Cancel:Ej,isAxiosError:_j,spread:Cj,toFormData:kj,AxiosHeaders:Tj,HttpStatusCode:Pj,formToJSON:Rj,getAdapter:Aj,mergeConfig:Nj,create:Oj}=et,Kw=typeof window>"u",Ry=!Kw&&window.self!==window.top,gP=!Kw&&typeof document>"u",gd=()=>Math.random().toString(36).substring(2,15)+Math.random().toString(36).substring(2,15),gt=[];for(let t=0;t<256;++t)gt.push((t+256).toString(16).slice(1));function yP(t,e=0){return(gt[t[e+0]]+gt[t[e+1]]+gt[t[e+2]]+gt[t[e+3]]+"-"+gt[t[e+4]]+gt[t[e+5]]+"-"+gt[t[e+6]]+gt[t[e+7]]+"-"+gt[t[e+8]]+gt[t[e+9]]+"-"+gt[t[e+10]]+gt[t[e+11]]+gt[t[e+12]]+gt[t[e+13]]+gt[t[e+14]]+gt[t[e+15]]).toLowerCase()}let yd;const vP=new Uint8Array(16);function wP(){if(!yd){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");yd=crypto.getRandomValues.bind(crypto)}return yd(vP)}const xP=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),Ay={randomUUID:xP};function bP(t,e,n){var o;t=t||{};const i=t.random??((o=t.rng)==null?void 0:o.call(t))??wP();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,yP(i)}function SP(t,e,n){return Ay.randomUUID&&!t?Ay.randomUUID():bP(t)}const go=typeof window<"u"?window:{base44SharedInstances:{}};function EP(t,e){return go.base44SharedInstances||(go.base44SharedInstances={}),go.base44SharedInstances[t]||(go.base44SharedInstances[t]={instance:e()}),go.base44SharedInstances[t].instance}const _P="__user_heartbeat_event__",CP="__initialization_event__",kP="__session_duration_event__",Ny="analytics-enable",Oy="base44_analytics_session_id",TP={enabled:!0,maxQueueSize:1e3,throttleTime:1e3,batchSize:30,heartBeatInterval:60*1e3},PP="analytics",Ue=EP(PP,()=>({requestsQueue:[],isProcessing:!1,isHeartBeatProcessing:!1,wasInitializationTracked:!1,sessionContext:null,sessionStartTime:null,config:{...TP,...MP()}})),RP=({axiosClient:t,serverUrl:e,appId:n,userAuthModule:i})=>{var o;const{maxQueueSize:l,throttleTime:u,batchSize:d}=Ue.config;if(!(!((o=Ue.config)===null||o===void 0)&&o.enabled)||gP)return{track:()=>{},cleanup:()=>{}};let h;const p=`${e}/api/apps/${n}/analytics/track/batch`,g=async k=>{await t.request({method:"POST",url:`/apps/${n}/analytics/track/batch`,data:{events:k}})},y=k=>{try{const A=JSON.stringify({events:k}),U=new Blob([A],{type:"application/json"});return typeof navigator>"u"||A.length>6e4||!navigator.sendBeacon(p,U)}catch{return!1}},w=async(k,A={})=>
150{if(k.length===0)return;const U=await DP(i),z=k.map(jP(U));try{(!A.isBeacon||!y(z))&&await g(z)}catch{}},E=()=>{jy(w,{throttleTime:u,batchSize:d})},P=k=>{if(Ue.requestsQueue.length>=l)return;const A=LP();Ue.requestsQueue.push({...k,...A}),E()},_=()=>{jy(w,{throttleTime:u,batchSize:d}),h=Dy(P),NP()},S=()=>{Ly(),h==null||h(),OP(P);const k=Ue.requestsQueue.splice(0);w(k,{isBeacon:!0})},b=()=>{typeof window>"u"||(document.visibilityState==="hidden"?S():document.visibilityState==="visible"&&_())},O=()=>{Ly(),h==null||h(),typeof window<"u"&&window.removeEventListener("visibilitychange",b)};return E(),h=Dy(P),AP(P),typeof window<"u"&&window.addEventListener("visibilitychange",b),{track:P,cleanup:O}};function Ly(){Ue.isProcessing=!1}async function jy(t,e){if(Ue.isProcessing)return;Ue.isProcessing=!0;const{throttleTime:n=1e3,batchSize:i=30}=e??{};for(;Ue.isProcessing&&Ue.requestsQueue.length>0;){const o=Ue.requestsQueue.splice(0,i);o.length&&await t(o),await new Promise(l=>setTimeout(l,n))}Ue.isProcessing=!1}function Dy(t){var e;if(Ue.isHeartBeatProcessing||((e=Ue.config.heartBeatInterval)!==null&&e!==void 0?e:0)<10)return()=>{};Ue.isHeartBeatProcessing=!0;const n=setInterval(()=>{t({eventName:_P})},Ue.config.heartBeatInterval);return()=>{clearInterval(n),Ue.isHeartBeatProcessing=!1}}function AP(t){typeof window>"u"||Ue.wasInitializationTracked||(Ue.wasInitializationTracked=!0,t({eventName:CP,properties:{referrer:document==null?void 0:document.referrer}}))}function NP(){typeof window>"u"||Ue.sessionStartTime!==null||(Ue.sessionStartTime=new Date().toISOString())}function OP(t){if(typeof window>"u"||Ue.sessionStartTime===null)return;const e=new Date().getTime()-new Date(Ue.sessionStartTime).getTime();Ue.sessionStartTime=null,t({eventName:kP,properties:{sessionDuration:e}})}function LP(){return{timestamp:new Date().toISOString(),pageUrl:typeof window<"u"?window.location.pathname:null}}function jP(t){return e=>({event_name:e.eventName,properties:e.properties,timestamp:e.timestamp,page_url:e.pageUrl,...t})}let vd=null;async function DP(t){if(!Ue.sessionContext){if(!vd){const e=Qf();vd=t.me().then(n=>({user_id:n.id,session_id:e})).catch(()=>({user_id:null,session_id:e}))}Ue.sessionContext=await vd}return Ue.sessionContext}function MP(){if(typeof window>"u"||!window.location)return;const e=new URLSearchParams(window.location.search).get(Ny);if(e==null||!e.length)return;const n=new URLSearchParams(window.location.search);n.delete(Ny);const i=window.location.pathname+(n.toString()?"?"+n.toString():"");return window.history.replaceState({},"",i),{enabled:e==="true"}}function Qf(){if(typeof window>"u")return gd();try{const t=localStorage.getItem(Oy);if(!t){const e=gd();return localStorage.setItem(Oy,e),e}return t}catch{return gd()}}class IP extends Error{constructor(e,n,i,o,l){super(e),this.name="Base44Error",this.status=n,this.code=i,this.data=o,this.originalError=l}toJSON(){return{name:this.name,message:this.message,status:this.status,code:this.code,data:this.data}}}function xo({baseURL:t,headers:e={},token:n,interceptResponses:i=!0,onError:o}){const l=et.create({baseURL:t,headers:{"Content-Type":"application/json",Accept:"application/json",...e}});return n&&(l.defaults.headers.common.Authorization=`Bearer ${n}`),l.interceptors.request.use(u=>{typeof window<"u"&&window.location&&(u.headers.set("X-Origin-URL",window.location.href),u.headers.get("Authorization")||u.headers.set("X-Base44-Anonymous-Id",Qf()));const d=SP();if(u.requestId=d,Ry)try{window.parent.postMessage({type:"api-request-start",requestId:d,data:{url:t+u.url,method:u.method,body:u.data instanceof FormData?"[FormData object]":u.data}},"*")}catch{}return u}),i&&l.interceptors.response.use(u=>{var d;const h=(d=u.config)===null||d===void 0?void 0:d.requestId;try{Ry&&h&&window.parent.postMessage({type:"api-request-end",requestId:h,data:{statusCode:u.status,response:u.data}},"*")}catch{}return u.data},u=>{var d,h,p,g,y,w,E,P;const _=((h=(d=u.response)===null||d===void 0?void 0:d.data)===null||h===void 0?void 0:h.message)||((g=(p=u.response)===null||p===void 0?void 0:p.data)===null||g===void 0?void 0:g.detail)||u.message,S=new IP(_,(y=u.response)===null||y===void 0?void 0:y.status,(E=(w=u.response)===null||w===void 0?void 0:w.data)===null||E===void 0?void 0:E.
150code,(P=u.response)===null||P===void 0?void 0:P.data,u);return o==null||o(S),Promise.reject(S)}),l}function My(t){const{axios:e,appId:n,getSocket:i}=t;return new Proxy({},{get(o,l){if(!(typeof l!="string"||l==="then"||l.startsWith("_")))return UP(e,n,l,i)}})}function FP(t){var e;try{const n=JSON.parse(t);return{type:n.type,data:n.data,id:n.id||((e=n.data)===null||e===void 0?void 0:e.id),timestamp:n.timestamp||new Date().toISOString()}}catch(n){return console.warn("[Base44 SDK] Failed to parse realtime message:",n),null}}function UP(t,e,n,i){const o=`/apps/${e}/entities/${n}`;return{async list(l,u,d,h){const p={};return l&&(p.sort=l),u&&(p.limit=u),d&&(p.skip=d),h&&(p.fields=Array.isArray(h)?h.join(","):h),t.get(o,{params:p})},async filter(l,u,d,h,p){const g={q:JSON.stringify(l)};return u&&(g.sort=u),d&&(g.limit=d),h&&(g.skip=h),p&&(g.fields=Array.isArray(p)?p.join(","):p),t.get(o,{params:g})},async get(l){return t.get(`${o}/${l}`)},async create(l){return t.post(o,l)},async update(l,u){return t.put(`${o}/${l}`,u)},async delete(l){return t.delete(`${o}/${l}`)},async deleteMany(l){return t.delete(o,{data:l})},async bulkCreate(l){return t.post(`${o}/bulk`,l)},async updateMany(l,u){return t.patch(`${o}/update-many`,{query:l,data:u})},async bulkUpdate(l){return t.put(`${o}/bulk`,l)},async importEntities(l){const u=new FormData;return u.append("file",l,l.name),t.post(`${o}/import`,u,{headers:{"Content-Type":"multipart/form-data"}})},subscribe(l){const u=`entities:${e}:${n}`;return i().subscribeToRoom(u,{update_model:p=>{var g;const y=FP(p.data);if(y){y.type!=="delete"&&(!((g=y.data)===null||g===void 0)&&g._oversize)&&console.error(`[Base44 SDK] Realtime broadcast for ${n}#${y.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.${n}.get("${y.id}")\` to fetch the full record.`);try{l(y)}catch(w){console.error("[Base44 SDK] Subscription callback error:",w)}}}})}}}function BP(t,e){return{async call(n,i,o){if(!(n!=null&&n.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:l,queryParams:u,...d}=o??{},h={...d,...l&&{path_params:l},...u&&{query_params:u}};return await t.post(`/apps/${e}/integrations/custom/${n}/${i}`,h)}}}function Iy(t,e){const n=BP(t,e);return new Proxy({},{get(i,o){if(!(typeof o!="string"||o==="then"||o.startsWith("_")))return o==="custom"?n:new Proxy({},{get(l,u){if(!(typeof u!="string"||u==="then"||u.startsWith("_")))return async d=>{if(typeof d=="string")throw new Error(`Integration ${u} must receive an object with named parameters, received: ${d}`);let h,p;return d instanceof FormData||d&&Object.values(d).some(g=>g instanceof File)?(h=new FormData,Object.keys(d).forEach(g=>{d[g]instanceof File?h.append(g,d[g],d[g].name):typeof d[g]=="object"&&d[g]!==null?h.append(g,JSON.stringify(d[g])):h.append(g,d[g])}),p="multipart/form-data"):(h=d,p="application/json"),o==="Core"?t.post(`/apps/${e}/integration-endpoints/Core/${u}`,h||d,{headers:{"Content-Type":p}}):t.post(`/apps/${e}/integration-endpoints/installable/${o}/integration-endpoints/${u}`,h||d,{headers:{"Content-Type":p}})}}})}})}function VP(){return typeof window>"u"?!1:window!==window.parent}function zP(t,e,n){const l=Math.round(window.screenX+(window.outerWidth-500)/2),u=Math.round(window.screenY+(window.outerHeight-600)/2),d=window.open(t,"base44_auth",`width=500,height=600,left=${l},top=${u},resizable=yes,scrollbars=yes`);if(!d)return;const h=()=>{window.removeEventListener("message",p),clearInterval(g),d.closed||d.close()},p=y=>{var w;if(y.origin!==n||y.source!==d||!(!((w=y.data)===null||w===void 0)&&w.access_token))return;h();const E=new URL(e),{access_token:P,is_new_user:_}=y.data;E.searchParams.set("access_token",P),_!=null&&E.searchParams.set("is_new_user",String(_)),window.location.href=E.toString()},g=setInterval(()=>{d.closed&&h()},500);window.addEventListener("message",p)}function $P(t,e,n,i){return{async me(){return t.get(`/apps/${n}/entities/User/me`)},async updateMe(o){return t.put(`/apps/${n}/entities/User/me`,o)}
150,redirectToLogin(o){if(typeof window>"u")throw new Error("Login method can only be used in a browser environment");const l=o?new URL(o,window.location.origin).toString():window.location.href,u=`${i.appBaseUrl}/login?from_url=${encodeURIComponent(l)}`;window.location.href=u},loginWithProvider(o,l="/"){const u=new URL(l,window.location.origin).toString(),d=`app_id=${n}&from_url=${encodeURIComponent(u)}`;let h;o==="sso"?h=`/apps/${n}/auth/sso/login`:h=`/apps/auth${o==="google"?"":`/${o}`}/login`;const p=`${i.appBaseUrl}/api${h}?${d}`;if(VP()){const g=`${p}&popup_origin=${encodeURIComponent(window.location.origin)}`;return zP(g,u,window.location.origin)}window.location.href=p},logout(o){if(delete t.defaults.headers.common.Authorization,typeof window<"u"){if(window.localStorage)try{window.localStorage.removeItem("base44_access_token"),window.localStorage.removeItem("token")}catch(d){console.error("Failed to remove token from localStorage:",d)}const l=o||window.location.href,u=`${i.appBaseUrl}/api/apps/auth/logout?from_url=${encodeURIComponent(l)}`;window.location.href=u}},setToken(o,l=!0){if(o&&(t.defaults.headers.common.Authorization=`Bearer ${o}`,e.defaults.headers.common.Authorization=`Bearer ${o}`,l&&typeof window<"u"&&window.localStorage))try{window.localStorage.setItem("base44_access_token",o),window.localStorage.setItem("token",o)}catch(u){console.error("Failed to save token to localStorage:",u)}},async loginViaEmailPassword(o,l,u){var d;try{const h=await t.post(`/apps/${n}/auth/login`,{email:o,password:l,...u&&{turnstile_token:u}}),{access_token:p,user:g}=h;return p&&this.setToken(p),{access_token:p,user:g}}catch(h){throw((d=h.response)===null||d===void 0?void 0:d.status)===401&&await this.logout(),h}},async isAuthenticated(){try{return await this.me(),!0}catch{return!1}},inviteUser(o,l){return t.post(`/apps/${n}/users/invite-user`,{user_email:o,role:l})},register(o){return t.post(`/apps/${n}/auth/register`,o)},verifyOtp({email:o,otpCode:l}){return t.post(`/apps/${n}/auth/verify-otp`,{email:o,otp_code:l})},resendOtp(o){return t.post(`/apps/${n}/auth/resend-otp`,{email:o})},resetPasswordRequest(o){return t.post(`/apps/${n}/auth/reset-password-request`,{email:o})},resetPassword({resetToken:o,newPassword:l}){return t.post(`/apps/${n}/auth/reset-password`,{reset_token:o,new_password:l})},changePassword({userId:o,currentPassword:l,newPassword:u}){return t.post(`/apps/${n}/auth/change-password`,{user_id:o,current_password:l,new_password:u})}}}function WP(t,e){return{async getAccessToken(n){const i=`/apps/${e}/auth/sso/accesstoken/${n}`;return t.get(i)},async getIdToken(n){const i=`/apps/${e}/auth/sso/idtoken/${n}`;return t.get(i)}}}function HP(t,e){return{async getAccessToken(n){if(!n||typeof n!="string")throw new Error("Integration type is required and must be a string");return(await t.get(`/apps/${e}/external-auth/tokens/${n}`)).access_token},async getConnection(n){var i;if(!n||typeof n!="string")throw new Error("Integration type is required and must be a string");const l=await t.get(`/apps/${e}/external-auth/tokens/${n}`);return{accessToken:l.access_token,connectionConfig:(i=l.connection_config)!==null&&i!==void 0?i:null}},async getWorkspaceConnection(n){var i;if(!n||typeof n!="string")throw new Error("Connector ID is required and must be a string");const l=await t.get(`/apps/${e}/external-auth/tokens/connectors/${n}`);return{accessToken:l.access_token,connectionConfig:(i=l.connection_config)!==null&&i!==void 0?i:null}},async getCurrentAppUserAccessToken(n){if(!n||typeof n!="string")throw new Error("Connector ID is required and must be a string");return(await t.get(`/apps/${e}/app-user-auth/connectors/${n}/token`)).access_token},async getCurrentAppUserConnection(n){var i;if(!n||typeof n!="string")throw new Error("Connector ID is required and must be a string");const l=await t.get(`/apps/${e}/app-user-auth/connectors/${n}/token`);return{accessToken:l.access_token,connectionConfig:(i=l.connection_config)!==null&&i!==void 0?i:null}}}}function qP(t,e){return{async connectAppUser(n){if(!n||typeof n!="string")throw new Error("Connector ID is required and must be a string");return(await t.post(`/apps/${e}/app-user-auth/connectors/${n}/initiate`)).redirect_url}
150,async disconnectAppUser(n){if(!n||typeof n!="string")throw new Error("Connector ID is required and must be a string");await t.delete(`/apps/${e}/app-user-auth/connectors/${n}`)}}}function ws(t={}){const{storageKey:e="base44_access_token",paramName:n="access_token",saveToStorage:i=!0,removeFromUrl:o=!0}=t;let l=null;if(typeof window<"u"&&window.location)try{const u=new URLSearchParams(window.location.search);if(l=u.get(n),l){if(i&&KP(l,{storageKey:e}),o){u.delete(n);const d=`${window.location.pathname}${u.toString()?`?${u.toString()}`:""}${window.location.hash}`;window.history.replaceState({},document.title,d)}return l}}catch(u){console.error("Error retrieving token from URL:",u)}if(typeof window<"u"&&window.localStorage)try{return l=window.localStorage.getItem(e),l}catch(u){console.error("Error retrieving token from local storage:",u)}return null}function KP(t,e){const{storageKey:n="base44_access_token"}=e;if(typeof window>"u"||!window.localStorage||!t)return!1;try{return window.localStorage.setItem(n,t),window.localStorage.setItem("token",t),!0}catch(i){return console.error("Error saving token to local storage:",i),!1}}function Fy(t,e,n){const i=(l,u)=>l?`${String(l).replace(/\/$/,"")}${u}`:u,o=l=>{const u=new Headers;if(n!=null&&n.getAuthHeaders){const d=n.getAuthHeaders();Object.entries(d).forEach(([h,p])=>{p!=null&&u.set(h,String(p))})}return l&&new Headers(l).forEach((d,h)=>{u.set(h,d)}),u};return{async invoke(l,u){if(typeof u=="string")throw new Error(`Function ${l} must receive an object with named parameters, received: ${u}`);let d,h;return u instanceof FormData||u&&Object.values(u).some(p=>p instanceof File)?(d=new FormData,Object.keys(u).forEach(p=>{u[p]instanceof File?d.append(p,u[p],u[p].name):typeof u[p]=="object"&&u[p]!==null?d.append(p,JSON.stringify(u[p])):d.append(p,u[p])}),h="multipart/form-data"):(d=u,h="application/json"),t.post(`/apps/${e}/functions/${l}`,d||u,{headers:{"Content-Type":h}})},async fetch(l,u={}){const h=`/functions${l.startsWith("/")?l:`/${l}`}`,p=o(u.headers),g={...u,headers:p};return await fetch(i(n==null?void 0:n.baseURL,h),g)}}}function Uy({axios:t,getSocket:e,appId:n,serverUrl:i,token:o}){const l=`/apps/${n}/agents`,u={},d=()=>t.get(`${l}/conversations`),h=_=>t.get(`${l}/conversations/${_}`);return{getConversations:d,getConversation:h,listConversations:_=>t.get(`${l}/conversations`,{params:_}),createConversation:_=>t.post(`${l}/conversations`,_),addMessage:async(_,S)=>t.post(`${l}/conversations/v2/${_.id}/messages`,S),subscribeToConversation:(_,S)=>{const b=`/agent-conversations/${_}`,O=e(),k=h(_).then(A=>(u[_]=A,A));return O.subscribeToRoom(b,{connect:()=>{},update_model:async({data:A})=>{const U=JSON.parse(A);if(U._message){await k;const z=U._message,J=u[_];if(J){const B=J.messages||[],Z=B.findIndex(be=>be.id===z.id),le=Z!==-1?B.map((be,De)=>De===Z?z:be):[...B,z];u[_]={...J,messages:le},S==null||S(u[_])}}}})},getWhatsAppConnectURL:_=>{const S=`${i}/api/apps/${n}/agents/${encodeURIComponent(_)}/whatsapp`,b=o??ws();return b?`${S}?token=${b}`:S},getTelegramConnectURL:_=>{const S=`${i}/api/apps/${n}/agents/${encodeURIComponent(_)}/telegram`,b=o??ws();return b?`${S}?token=${b}`:S}}}function By({serverUrl:t,token:e,appId:n}){return{connection:()=>{var o;return{baseURL:`${t}/api/apps/${n}/ai/openai/v1`,token:(o=e??ws())!==null&&o!==void 0?o:""}}}}function Vy(t,e){const n=`/app-logs/${e}`;return{async logUserInApp(i){await t.post(`${n}/log-user-in-app/${i}`)},async fetchLogs(i={}){return await t.get(n,{params:i})},async getStats(i={}){return await t.get(`${n}/stats`,{params:i})}}}function QP(t,e){return{async inviteUser(n,i){if(i!=="user"&&i!=="admin")throw new Error(`Invalid role: "${i}". Role must be either "user" or "admin".`);return await t.post(`/apps/${e}/runtime/users/invite-user`,{user_email:n,role:i})}}}const Dn=Object.create(null);Dn.open="0";
vendor: 29,464 bytes, line 150
150Dn.close="1";Dn.ping="2";Dn.pong="3";Dn.message="4";Dn.upgrade="5";Dn.noop="6";const Ll=Object.create(null);Object.keys(Dn).forEach(t=>{Ll[Dn[t]]=t});const sf={type:"error",data:"parser error"},Qw=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",Gw=typeof ArrayBuffer=="function",Yw=t=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(t):t&&t.buffer instanceof ArrayBuffer,Gf=({type:t,data:e},n,i)=>Qw&&e instanceof Blob?n?i(e):zy(e,i):Gw&&(e instanceof ArrayBuffer||Yw(e))?n?i(e):zy(new Blob([e]),i):i(Dn[t]+(e||"")),zy=(t,e)=>{const n=new FileReader;return n.onload=function(){const i=n.result.split(",")[1];e("b"+(i||""))},n.readAsDataURL(t)};function $y(t){return t instanceof Uint8Array?t:t instanceof ArrayBuffer?new Uint8Array(t):new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}let wd;function GP(t,e){if(Qw&&t.data instanceof Blob)return t.data.arrayBuffer().then($y).then(e);if(Gw&&(t.data instanceof ArrayBuffer||Yw(t.data)))return e($y(t.data));Gf(t,!1,n=>{wd||(wd=new TextEncoder),e(wd.encode(n))})}const Wy="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",bo=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let t=0;t<Wy.length;t++)bo[Wy.charCodeAt(t)]=t;const YP=t=>{let e=t.length*.75,n=t.length,i,o=0,l,u,d,h;t[t.length-1]==="="&&(e--,t[t.length-2]==="="&&e--);const p=new ArrayBuffer(e),g=new Uint8Array(p);for(i=0;i<n;i+=4)l=bo[t.charCodeAt(i)],u=bo[t.charCodeAt(i+1)],d=bo[t.charCodeAt(i+2)],h=bo[t.charCodeAt(i+3)],g[o++]=l<<2|u>>4,g[o++]=(u&15)<<4|d>>2,g[o++]=(d&3)<<6|h&63;return p},XP=typeof ArrayBuffer=="function",Yf=(t,e)=>{if(typeof t!="string")return{type:"message",data:Xw(t,e)};const n=t.charAt(0);return n==="b"?{type:"message",data:JP(t.substring(1),e)}:Ll[n]?t.length>1?{type:Ll[n],data:t.substring(1)}:{type:Ll[n]}:sf},JP=(t,e)=>{if(XP){const n=YP(t);return Xw(n,e)}else return{base64:!0,data:t}},Xw=(t,e)=>{switch(e){case"blob":return t instanceof Blob?t:new Blob([t]);case"arraybuffer":default:return t instanceof ArrayBuffer?t:t.buffer}},Jw="�",ZP=(t,e)=>{const n=t.length,i=new Array(n);let o=0;t.forEach((l,u)=>{Gf(l,!1,d=>{i[u]=d,++o===n&&e(i.join(Jw))})})},eR=(t,e)=>{const n=t.split(Jw),i=[];for(let o=0;o<n.length;o++){const l=Yf(n[o],e);if(i.push(l),l.type==="error")break}return i};function tR(){return new TransformStream({transform(t,e){GP(t,n=>{const i=n.length;let o;if(i<126)o=new Uint8Array(1),new DataView(o.buffer).setUint8(0,i);else if(i<65536){o=new Uint8Array(3);const l=new DataView(o.buffer);l.setUint8(0,126),l.setUint16(1,i)}else{o=new Uint8Array(9);const l=new DataView(o.buffer);l.setUint8(0,127),l.setBigUint64(1,BigInt(i))}t.data&&typeof t.data!="string"&&(o[0]|=128),e.enqueue(o),e.enqueue(n)})}})}let xd;function wl(t){return t.reduce((e,n)=>e+n.length,0)}function xl(t,e){if(t[0].length===e)return t.shift();const n=new Uint8Array(e);let i=0;for(let o=0;o<e;o++)n[o]=t[0][i++],i===t[0].length&&(t.shift(),i=0);return t.length&&i<t[0].length&&(t[0]=t[0].slice(i)),n}function nR(t,e){xd||(xd=new TextDecoder);const n=[];let i=0,o=-1,l=!1;return new TransformStream({transform(u,d){for(n.push(u);;){if(i===0){if(wl(n)<1)break;const h=xl(n,1);l=(h[0]&128)===128,o=h[0]&127,o<126?i=3:o===126?i=1:i=2}else if(i===1){if(wl(n)<2)break;const h=xl(n,2);o=new DataView(h.buffer,h.byteOffset,h.length).getUint16(0),i=3}else if(i===2){if(wl(n)<8)break;const h=xl(n,8),p=new DataView(h.buffer,h.byteOffset,h.length),g=p.getUint32(0);if(g>Math.pow(2,21)-1){d.enqueue(sf);break}o=g*Math.pow(2,32)+p.getUint32(4),i=3}else{if(wl(n)<o)break;const h=xl(n,o);d.enqueue(Yf(l?h:xd.decode(h),e)),i=0}if(o===0||o>t){d.enqueue(sf);break}}}})}const Zw=4;function nt(t){if(t)return rR(t)}function rR(t){for(var e in nt.prototype)t[e]=nt.prototype[e];return t}nt.prototype.on=nt.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(e),this};nt.prototype.once=function(t,e){function n(){this.off(t,n),e.apply(this,arguments)}return n.fn=e,this.on(t,n),this};nt.prototype.off=nt.prototype.removeListener=nt.prototype.removeAllListeners=nt.prototype.removeEventListener=function(t,e){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var n=this._callbacks["$"+t];if(!n)return this;if(arguments.length==1)return delete this._callbacks["$"+t],this;for(var i,o=0;o<n.length;o++)if(i=n[o],i===e||i.fn===e){n.splice(o,1);break}return n.length===0&&delete this._callbacks["$"+t],this};nt.prototype.emit=function(t){this._callbacks=this._callbacks||{};for(var e=new Array(arguments.length-1),n=this._callbacks["$"+t],i=1;i<arguments.length;i++)e[i-1]=arguments[i];if(n){n=n.slice(0);for(var i=0,o=n.length;i<o;++i)n[i].apply(this,e)}return this};nt.prototype.emitReserved=nt.prototype.emit;nt.prototype.listeners=function(t){return this._callbacks=this._callbacks||{},this._callbacks["$"+t]||[]};nt.prototype.hasListeners=function(t){return!!this.listeners(t).length};const ru=typeof Promise=="function"&&typeof Promise.resolve=="function"?e=>Promise.resolve().then(e):(e,n)=>n(e,0),an=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),sR="arraybuffer";function ex(t,...e){return e.reduce((n,i)=>(t.hasOwnProperty(i)&&(n[i]=t[i]),n),{})}const iR=an.setTimeout,oR=an.clearTimeout;function su(t,e){e.useNativeTimers?(t.setTimeoutFn=iR.bind(an),t.clearTimeoutFn=oR.bind(an)):(t.setTimeoutFn=an.setTimeout.bind(an),t.clearTimeoutFn=an.clearTimeout.bind(an))}const aR=1.33;function lR(t){return typeof t=="string"?uR(t):Math.ceil((t.byteLength||t.size)*aR)}function uR(t){let e=0,n=0;for(let i=0,o=t.length;i<o;i++)e=t.charCodeAt(i),e<128?n+=1:e<2048?n+=2:e<55296||e>=57344?n+=3:(i++,n+=4);return n}function tx(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function cR(t){let e="";for(let n in t)t.hasOwnProperty(n)&&(e.length&&(e+="&"),e+=encodeURIComponent(n)+"="+encodeURIComponent(t[n]));return e}function dR(t){let e={},n=t.split("&");for(let i=0,o=n.length;i<o;i++){let l=n[i].split("=");e[decodeURIComponent(l[0])]=decodeURIComponent(l[1])}return e}class fR extends Error{constructor(e,n,i){super(e),this.description=n,this.context=i,this.type="TransportError"}}class Xf extends nt{constructor(e){super(),this.writable=!1,su(this,e),this.opts=e,this.query=e.query,this.socket=e.socket,this.supportsBinary=!e.forceBase64}onError(e,n,i){return super.emitReserved("error",new fR(e,n,i)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(e){this.readyState==="open"&&this.write(e)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(e){const n=Yf(e,this.socket.binaryType);this.onPacket(n)}onPacket(e){super.emitReserved("packet",e)}onClose(e){this.readyState="closed",super.emitReserved("close",e)}pause(e){}createUri(e,n={}){return e+"://"+this._hostname()+this._port()+this.opts.path+this._query(n)}_hostname(){const e=this.opts.hostname;return e.indexOf(":")===-1?e:"["+e+"]"}_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(e){const n=cR(e);return n.length?"?"+n:""}}class hR extends Xf{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(e){this.readyState="pausing";const n=()=>{this.readyState="paused",e()};if(this._polling||!this.writable){let i=0;this._polling&&(i++,this.once("pollComplete",function(){--i||n()})),this.writable||(i++,this.once("drain",function(){--i||n()}))}else n()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(e){const n=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)};eR(e,this.socket.binaryType).forEach(n),this.readyState!=="closed"&&(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this._poll())}doClose(){const e=()=>{this.write([{type:"close"}])};this.readyState==="open"?e():this.once("open",e)}write(e){this.writable=!1,ZP(e,n=>{this.doWrite(n,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const e=this.opts.secure?"https":"http",n=this.query||{};return this.opts.timestampRequests!==!1&&(n[this.opts.timestampParam]=tx()),!this.supportsBinary&&!n.sid&&(n.b64=1),this.createUri(e,n)}}let nx=!1;try{nx=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const pR=nx;function mR(){}class gR extends hR{constructor(e){if(super(e),typeof location<"u"){const n=location.protocol==="https:";let i=location.port;i||(i=n?"443":"80"),this.xd=typeof location<"u"&&e.hostname!==location.hostname||i!==e.port}}doWrite(e,n){const i=this.request({method:"POST",data:e});i.on("success",n),i.on("error",(o,l)=>{this.onError("xhr post error",o,l)})}doPoll(){const e=this.request();e.on("data",this.onData.bind(this)),e.on("error",(n,i)=>{this.onError("xhr poll error",n,i)}),this.pollXhr=e}}class On extends nt{constructor(e,n,i){super(),this.createRequest=e,su(this,i),this._opts=i,this._method=i.method||"GET",this._uri=n,this._data=i.data!==void 0?i.data:null,this._create()}_create(){var e;const n=ex(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");n.xdomain=!!this._opts.xd;const i=this._xhr=this.createRequest(n);try{i.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){i.setDisableHeaderCheck&&i.setDisableHeaderCheck(!0);for(let o in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(o)&&i.setRequestHeader(o,this._opts.extraHeaders[o])}}catch{}if(this._method==="POST")try{i.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{i.setRequestHeader("Accept","*/*")}catch{}(e=this._opts.cookieJar)===null||e===void 0||e.addCookies(i),"withCredentials"in i&&(i.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(i.timeout=this._opts.requestTimeout),i.onreadystatechange=()=>{var o;i.readyState===3&&((o=this._opts.cookieJar)===null||o===void 0||o.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(o){this.setTimeoutFn(()=>{this._onError(o)},0);return}typeof document<"u"&&(this._index=On.requestsCount++,On.requests[this._index]=this)}_onError(e){this.emitReserved("error",e,this._xhr),this._cleanup(!0)}_cleanup(e){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=mR,e)try{this._xhr.abort()}catch{}typeof document<"u"&&delete On.requests[this._index],this._xhr=null}}_onLoad(){const e=this._xhr.responseText;e!==null&&(this.emitReserved("data",e),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}}On.requestsCount=0;On.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",Hy);else if(typeof addEventListener=="function"){const t="onpagehide"in an?"pagehide":"unload";addEventListener(t,Hy,!1)}}function Hy(){for(let t in On.requests)On.requests.hasOwnProperty(t)&&On.requests[t].abort()}const yR=(function(){const t=rx({xdomain:!1});return t&&t.responseType!==null})();class vR extends gR{constructor(e){super(e);const n=e&&e.forceBase64;this.supportsBinary=yR&&!n}request(e={}){return Object.assign(e,{xd:this.xd},this.opts),new On(rx,this.uri(),e)}}function rx(t){const e=t.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!e||pR))return new XMLHttpRequest}catch{}if(!e)try{return new an[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}const sx=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class wR extends Xf{get name(){return"websocket"}doOpen(){const e=this.uri(),n=this.opts.protocols,i=sx?{}:ex(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(e,n,i)}catch(o){return this.emitReserved("error",o)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=e=>this.onClose({description:"websocket connection closed",context:e}),this.ws.onmessage=e=>this.onData(e.data),this.ws.onerror=e=>this.onError("websocket error",e)}write(e){this.writable=!1;for(let n=0;n<e.length;n++){const i=e[n],o=n===e.length-1;Gf(i,this.supportsBinary,l=>{try{this.doWrite(i,l)}catch{}o&&ru(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){const e=this.opts.secure?"wss":"ws",n=this.query||{};return this.opts.timestampRequests&&(n[this.opts.timestampParam]=tx()),this.supportsBinary||(n.b64=1),this.createUri(e,n)}}const bd=an.WebSocket||an.MozWebSocket;class xR extends wR{createSocket(e,n,i){return sx?new bd(e,n,i):n?new bd(e,n):new bd(e)}doWrite(e,n){this.ws.send(n)}}class bR extends Xf{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(e){return this.emitReserved("error",e)}this._transport.closed.then(()=>{this.onClose()}).catch(e=>{this.onError("webtransport error",e)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(e=>{const n=nR(Number.MAX_SAFE_INTEGER,this.socket.binaryType),i=e.readable.pipeThrough(n).getReader(),o=tR();o.readable.pipeTo(e.writable),this._writer=o.writable.getWriter();const l=()=>{i.read().then(({done:d,value:h})=>{d||(this.onPacket(h),l())}).catch(d=>{})};l();const u={type:"open"};this.query.sid&&(u.data=`{"sid":"${this.query.sid}"}`),this._writer.write(u).then(()=>this.onOpen())})})}write(e){this.writable=!1;for(let n=0;n<e.length;n++){const i=e[n],o=n===e.length-1;this._writer.write(i).then(()=>{o&&ru(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var e;(e=this._transport)===null||e===void 0||e.close()}}const SR={websocket:xR,webtransport:bR,polling:vR},ER=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,_R=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function of(t){if(t.length>8e3)throw"URI too long";const e=t,n=t.indexOf("["),i=t.indexOf("]");n!=-1&&i!=-1&&(t=t.substring(0,n)+t.substring(n,i).replace(/:/g,";")+t.substring(i,t.length));let o=ER.exec(t||""),l={},u=14;for(;u--;)l[_R[u]]=o[u]||"";return n!=-1&&i!=-1&&(l.source=e,l.host=l.host.substring(1,l.host.length-1).replace(/;/g,":"),l.authority=l.authority.replace("[","").replace("]","").replace(/;/g,":"),l.ipv6uri=!0),l.pathNames=CR(l,l.path),l.queryKey=kR(l,l.query),l}function CR(t,e){const n=/\/{2,9}/g,i=e.replace(n,"/").split("/");return(e.slice(0,1)=="/"||e.length===0)&&i.splice(0,1),e.slice(-1)=="/"&&i.splice(i.length-1,1),i}function kR(t,e){const n={};return e.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(i,o,l){o&&(n[o]=l)}),n}const af=typeof addEventListener=="function"&&typeof removeEventListener=="function",jl=[];af&&addEventListener("offline",()=>{jl.forEach(t=>t())},!1);class Dr extends nt{constructor(e,n){if(super(),this.binaryType=sR,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,e&&typeof e=="object"&&(n=e,e=null),e){const i=of(e);n.hostname=i.host,n.secure=i.protocol==="https"||i.protocol==="wss",n.port=i.port,i.query&&(n.query=i.query)}else n.host&&(n.hostname=of(n.host).host);su(this,n),this.secure=n.secure!=null?n.secure:typeof location<"u"&&location.protocol==="https:",n.hostname&&!n.port&&(n.port=this.secure?"443":"80"),this.hostname=n.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=n.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},n.transports.forEach(i=>{const o=i.prototype.name;this.transports.push(o),this._transportsByName[o]=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},n),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=dR(this.opts.query)),af&&(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"})},jl.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(e){const n=Object.assign({},this.opts.query);n.EIO=Zw,n.transport=e,this.id&&(n.sid=this.id);const i=Object.assign({},this.opts,{query:n,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[e]);return new this._transportsByName[e](i)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}const e=this.opts.rememberUpgrade&&Dr.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";const n=this.createTransport(e);n.open(),this.setTransport(n)}setTransport(e){this.transport&&this.transport.removeAllListeners(),this.transport=e,e.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",n=>this._onClose("transport close",n))}onOpen(){this.readyState="open",Dr.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(e){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",e),this.emitReserved("heartbeat"),e.type){case"open":this.onHandshake(JSON.parse(e.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":const n=new Error("server error");n.code=e.data,this._onError(n);break;case"message":this.emitReserved("data",e.data),this.emitReserved("message",e.data);break}}onHandshake(e){this.emitReserved("handshake",e),this.id=e.sid,this.transport.query.sid=e.sid,this._pingInterval=e.pingInterval,this._pingTimeout=e.pingTimeout,this._maxPayload=e.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);const e=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+e,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},e),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 e=this._getWritablePackets();this.transport.send(e),this._prevBufferLen=e.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let n=1;for(let i=0;i<this.writeBuffer.length;i++){const o=this.writeBuffer[i].data;if(o&&(n+=lR(o)),i>0&&n>this._maxPayload)return this.writeBuffer.slice(0,i);n+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;const e=Date.now()>this._pingTimeoutTime;return e&&(this._pingTimeoutTime=0,ru(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),e}write(e,n,i){return this._sendPacket("message",e,n,i),this}send(e,n,i){return this._sendPacket("message",e,n,i),this}_sendPacket(e,n,i,o){if(typeof n=="function"&&(o=n,n=void 0),typeof i=="function"&&(o=i,i=null),this.readyState==="closing"||this.readyState==="closed")return;i=i||{},i.compress=i.compress!==!1;const l={type:e,data:n,options:i};this.emitReserved("packetCreate",l),this.writeBuffer.push(l),o&&this.once("flush",o),this.flush()}close(){const e=()=>{this._onClose("forced close"),this.transport.close()},n=()=>{this.off("upgrade",n),this.off("upgradeError",n),e()},i=()=>{this.once("upgrade",n),this.once("upgradeError",n)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?i():e()}):this.upgrading?i():e()),this}_onError(e){if(Dr.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",e),this._onClose("transport error",e)}_onClose(e,n){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(),af&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const i=jl.indexOf(this._offlineEventListener);i!==-1&&jl.splice(i,1)}this.readyState="closed",this.id=null,this.emitReserved("close",e,n),this.writeBuffer=[],this._prevBufferLen=0}}}Dr.protocol=Zw;class TR extends Dr{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let e=0;e<this._upgrades.length;e++)this._probe(this._upgrades[e])}_probe(e){let n=this.createTransport(e),i=!1;Dr.priorWebsocketSuccess=!1;const o=()=>{i||(n.send([{type:"ping",data:"probe"}]),n.once("packet",y=>{if(!i)if(y.type==="pong"&&y.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",n),!n)return;Dr.priorWebsocketSuccess=n.name==="websocket",this.transport.pause(()=>{i||this.readyState!=="closed"&&(g(),this.setTransport(n),n.send([{type:"upgrade"}]),this.emitReserved("upgrade",n),n=null,this.upgrading=!1,this.flush())})}else{const w=new Error("probe error");w.transport=n.name,this.emitReserved("upgradeError",w)}}))};function l(){i||(i=!0,g(),n.close(),n=null)}const u=y=>{const w=new Error("probe error: "+y);w.transport=n.name,l(),this.emitReserved("upgradeError",w)};function d(){u("transport closed")}function h(){u("socket closed")}function p(y){n&&y.name!==n.name&&l()}const g=()=>{n.removeListener("open",o),n.removeListener("error",u),n.removeListener("close",d),this.off("close",h),this.off("upgrading",p)};n.once("open",o),n.once("error",u),n.once("close",d),this.once("close",h),this.once("upgrading",p),this._upgrades.indexOf("webtransport")!==-1&&e!=="webtransport"?this.setTimeoutFn(()=>{i||n.open()},200):n.open()}onHandshake(e){this._upgrades=this._filterUpgrades(e.upgrades),super.onHandshake(e)}_filterUpgrades(e){const n=[];for(let i=0;i<e.length;i++)~this.transports.indexOf(e[i])&&n.push(e[i]);return n}}let PR=class extends TR{constructor(e,n={}){const i=typeof e=="object"?e:n;(!i.transports||i.transports&&typeof i.transports[0]=="string")&&(i.transports=(i.transports||["polling","websocket","webtransport"]).map(o=>SR[o]).filter(o=>!!o)),super(e,i)}};function RR(t,e="",n){let i=t;n=n||typeof location<"u"&&location,t==null&&(t=n.protocol+"//"+n.host),typeof t=="string"&&(t.charAt(0)==="/"&&(t.charAt(1)==="/"?t=n.protocol+t:t=n.host+t),/^(https?|wss?):\/\//.test(t)||(typeof n<"u"?t=n.protocol+"//"+t:t="https://"+t),i=of(t)),i.port||(/^(http|ws)$/.test(i.protocol)?i.port="80":/^(http|ws)s$/.test(i.protocol)&&(i.port="443")),i.path=i.path||"/";const l=i.host.indexOf(":")!==-1?"["+i.host+"]":i.host;return i.id=i.protocol+"://"+l+":"+i.port+e,i.href=i.protocol+"://"+l+(n&&n.port===i.port?"":":"+i.port),i}const AR=typeof ArrayBuffer=="function",NR=t=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(t):t.buffer instanceof ArrayBuffer,ix=Object.prototype.toString,OR=typeof Blob=="function"||typeof Blob<"u"&&ix.call(Blob)==="[object BlobConstructor]",LR=typeof File=="function"||typeof File<"u"&&ix.call(File)==="[object FileConstructor]";function Jf(t){return AR&&(t instanceof ArrayBuffer||NR(t))||OR&&t instanceof Blob||LR&&t instanceof File}function Dl(t,e){if(!t||typeof t!="object")return!1;if(Array.isArray(t)){for(let n=0,i=t.length;n<i;n++)if(Dl(t[n]))return!0;return!1}if(Jf(t))return!0;if(t.toJSON&&typeof t.toJSON=="function"&&arguments.length===1)return Dl(t.toJSON(),!0);for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&Dl(t[n]))return!0;return!1}function jR(t){const e=[],n=t.data,i=t;return i.data=lf(n,e),i.attachments=e.length,{packet:i,buffers:e}}function lf(t,e){if(!t)return t;if(Jf(t)){const n={_placeholder:!0,num:e.length};return e.push(t),n}else if(Array.isArray(t)){const n=new Array(t.length);for(let i=0;i<t.length;i++)n[i]=lf(t[i],e);return n}else if(typeof t=="object"&&!(t instanceof Date)){const n={};for(const i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=lf(t[i],e));return n}return t}function DR(t,e){return t.data=uf(t.data,e),delete t.attachments,t}function uf(t,e){if(!t)return t;if(t&&t._placeholder===!0){if(typeof t.num=="number"&&t.num>=0&&t.num<e.length)return e[t.num];throw new Error("illegal attachments")}else if(Array.isArray(t))for(let n=0;n<t.length;n++)t[n]=uf(t[n],e);else if(typeof t=="object")for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&(t[n]=uf(t[n],e));return t}const MR=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"];var Re;(function(t){t[t.CONNECT=0]="CONNECT",t[t.DISCONNECT=1]="DISCONNECT",t[t.EVENT=2]="EVENT",t[t.ACK=3]="ACK",t[t.CONNECT_ERROR=4]="CONNECT_ERROR",t[t.BINARY_EVENT=5]="BINARY_EVENT",t[t.BINARY_ACK=6]="BINARY_ACK"})(Re||(Re={}));class IR{constructor(e){this.replacer=e}encode(e){return(e.type===Re.EVENT||e.type===Re.ACK)&&Dl(e)?this.encodeAsBinary({type:e.type===Re.EVENT?Re.BINARY_EVENT:Re.BINARY_ACK,nsp:e.nsp,data:e.data,id:e.id}):[this.encodeAsString(e)]}encodeAsString(e){let n=""+e.type;return(e.type===Re.BINARY_EVENT||e.type===Re.BINARY_ACK)&&(n+=e.attachments+"-"),e.nsp&&e.nsp!=="/"&&(n+=e.nsp+","),e.id!=null&&(n+=e.id),e.data!=null&&(n+=JSON.stringify(e.data,this.replacer)),n}encodeAsBinary(e){const n=jR(e),i=this.encodeAsString(n.packet),o=n.buffers;return o.unshift(i),o}}class Zf extends nt{constructor(e){super(),this.reviver=e}add(e){let n;if(typeof e=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");n=this.decodeString(e);const i=n.type===Re.BINARY_EVENT;i||n.type===Re.BINARY_ACK?(n.type=i?Re.EVENT:Re.ACK,this.reconstructor=new FR(n),n.attachments===0&&super.emitReserved("decoded",n)):super.emitReserved("decoded",n)}else if(Jf(e)||e.base64)if(this.reconstructor)n=this.reconstructor.takeBinaryData(e),n&&(this.reconstructor=null,super.emitReserved("decoded",n));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+e)}decodeString(e){let n=0;const i={type:Number(e.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 l=n+1;for(;e.charAt(++n)!=="-"&&n!=e.length;);const u=e.substring(l,n);if(u!=Number(u)||e.charAt(n)!=="-")throw new Error("Illegal attachments");i.attachments=Number(u)}if(e.charAt(n+1)==="/"){const l=n+1;for(;++n&&!(e.charAt(n)===","||n===e.length););i.nsp=e.substring(l,n)}else i.nsp="/";const o=e.charAt(n+1);if(o!==""&&Number(o)==o){const l=n+1;for(;++n;){const u=e.charAt(n);if(u==null||Number(u)!=u){--n;break}if(n===e.length)break}i.id=Number(e.substring(l,n+1))}if(e.charAt(++n)){const l=this.tryParse(e.substr(n));if(Zf.isPayloadValid(i.type,l))i.data=l;else throw new Error("invalid payload")}return i}tryParse(e){try{return JSON.parse(e,this.reviver)}catch{return!1}}static isPayloadValid(e,n){switch(e){case Re.CONNECT:return qy(n);case Re.DISCONNECT:return n===void 0;case Re.CONNECT_ERROR:return typeof n=="string"||qy(n);case Re.EVENT:case Re.BINARY_EVENT:return Array.isArray(n)&&(typeof n[0]=="number"||typeof n[0]=="string"&&MR.indexOf(n[0])===-1);case Re.ACK:case Re.BINARY_ACK:return Array.isArray(n)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class FR{constructor(e){this.packet=e,this.buffers=[],this.reconPack=e}takeBinaryData(e){if(this.buffers.push(e),this.buffers.length===this.reconPack.attachments){const n=DR(this.reconPack,this.buffers);return this.finishedReconstruction(),n}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}function qy(t){return Object.prototype.toString.call(t)==="[object Object]"}const UR=Object.freeze(Object.defineProperty({__proto__:null,Decoder:Zf,
vendor: 3,384 bytes, line 150
150Encoder:IR,get PacketType(){return Re}},Symbol.toStringTag,{value:"Module"}));function Sn(t,e,n){return t.on(e,n),function(){t.off(e,n)}}const BR=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class ox extends nt{constructor(e,n,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=e,this.nsp=n,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 e=this.io;this.subs=[Sn(e,"open",this.onopen.bind(this)),Sn(e,"packet",this.onpacket.bind(this)),Sn(e,"error",this.onerror.bind(this)),Sn(e,"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(...e){return e.unshift("message"),this.emit.apply(this,e),this}emit(e,...n){var i,o,l;if(BR.hasOwnProperty(e))throw new Error('"'+e.toString()+'" is a reserved event name');if(n.unshift(e),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(n),this;const u={type:Re.EVENT,data:n};if(u.options={},u.options.compress=this.flags.compress!==!1,typeof n[n.length-1]=="function"){const g=this.ids++,y=n.pop();this._registerAckCallback(g,y),u.id=g}const d=(o=(i=this.io.engine)===null||i===void 0?void 0:i.transport)===null||o===void 0?void 0:o.writable,h=this.connected&&!(!((l=this.io.engine)===null||l===void 0)&&l._hasPingExpired());return this.flags.volatile&&!d||(h?(this.notifyOutgoingListeners(u),this.packet(u)):this.sendBuffer.push(u)),this.flags={},this}_registerAckCallback(e,n){var i;const o=(i=this.flags.timeout)!==null&&i!==void 0?i:this._opts.ackTimeout;if(o===void 0){this.acks[e]=n;return}const l=this.io.setTimeoutFn(()=>{delete this.acks[e];for(let d=0;d<this.sendBuffer.length;d++)this.sendBuffer[d].id===e&&this.sendBuffer.splice(d,1);n.call(this,new Error("operation has timed out"))},o),u=(...d)=>{this.io.clearTimeoutFn(l),n.apply(this,d)};u.withError=!0,this.acks[e]=u}emitWithAck(e,...n){return new Promise((i,o)=>{const l=(u,d)=>u?o(u):i(d);l.withError=!0,n.push(l),this.emit(e,...n)})}_addToQueue(e){let n;typeof e[e.length-1]=="function"&&(n=e.pop());const i={id:this._queueSeq++,tryCount:0,pending:!1,args:e,flags:Object.assign({fromQueue:!0},this.flags)};e.push((o,...l)=>(this._queue[0],o!==null?i.tryCount>this._opts.retries&&(this._queue.shift(),n&&n(o)):(this._queue.shift(),n&&n(null,...l)),i.pending=!1,this._drainQueue())),this._queue.push(i),this._drainQueue()}_drainQueue(e=!1){if(!this.connected||this._queue.length===0)return;const n=this._queue[0];n.pending&&!e||(n.pending=!0,n.tryCount++,this.flags=n.flags,this.emit.apply(this,n.args))}packet(e){e.nsp=this.nsp,this.io._packet(e)}onopen(){typeof this.auth=="function"?this.auth(e=>{this._sendConnectPacket(e)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(e){this.packet({type:Re.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},e):e})}onerror(e){this.connected||this.emitReserved("connect_error",e)}onclose(e,n){this.connected=!1,delete this.id,this.emitReserved("disconnect",e,n),this._clearAcks()}
vendor: 7,087 bytes, line 150
150_clearAcks(){Object.keys(this.acks).forEach(e=>{if(!this.sendBuffer.some(i=>String(i.id)===e)){const i=this.acks[e];delete this.acks[e],i.withError&&i.call(this,new Error("socket has been disconnected"))}})}onpacket(e){if(e.nsp===this.nsp)switch(e.type){case Re.CONNECT:e.data&&e.data.sid?this.onconnect(e.data.sid,e.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(e);break;case Re.ACK:case Re.BINARY_ACK:this.onack(e);break;case Re.DISCONNECT:this.ondisconnect();break;case Re.CONNECT_ERROR:this.destroy();const i=new Error(e.data.message);i.data=e.data.data,this.emitReserved("connect_error",i);break}}onevent(e){const n=e.data||[];e.id!=null&&n.push(this.ack(e.id)),this.connected?this.emitEvent(n):this.receiveBuffer.push(Object.freeze(n))}emitEvent(e){if(this._anyListeners&&this._anyListeners.length){const n=this._anyListeners.slice();for(const i of n)i.apply(this,e)}super.emit.apply(this,e),this._pid&&e.length&&typeof e[e.length-1]=="string"&&(this._lastOffset=e[e.length-1])}ack(e){const n=this;let i=!1;return function(...o){i||(i=!0,n.packet({type:Re.ACK,id:e,data:o}))}}onack(e){const n=this.acks[e.id];typeof n=="function"&&(delete this.acks[e.id],n.withError&&e.data.unshift(null),n.apply(this,e.data))}onconnect(e,n){this.id=e,this.recovered=n&&this._pid===n,this._pid=n,this.connected=!0,this.emitBuffered(),this._drainQueue(!0),this.emitReserved("connect")}emitBuffered(){this.receiveBuffer.forEach(e=>this.emitEvent(e)),this.receiveBuffer=[],this.sendBuffer.forEach(e=>{this.notifyOutgoingListeners(e),this.packet(e)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(e=>e()),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(e){return this.flags.compress=e,this}get volatile(){return this.flags.volatile=!0,this}timeout(e){return this.flags.timeout=e,this}onAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(e),this}prependAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(e),this}offAny(e){if(!this._anyListeners)return this;if(e){const n=this._anyListeners;for(let i=0;i<n.length;i++)if(e===n[i])return n.splice(i,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(e),this}prependAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(e),this}offAnyOutgoing(e){if(!this._anyOutgoingListeners)return this;if(e){const n=this._anyOutgoingListeners;for(let i=0;i<n.length;i++)if(e===n[i])return n.splice(i,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(e){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const n=this._anyOutgoingListeners.slice();for(const i of n)i.apply(this,e.data)}}}function Ci(t){t=t||{},this.ms=t.min||100,this.max=t.max||1e4,this.factor=t.factor||2,this.jitter=t.jitter>0&&t.jitter<=1?t.jitter:0,this.attempts=0}Ci.prototype.duration=function(){var t=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var e=Math.random(),n=Math.floor(e*this.jitter*t);t=(Math.floor(e*10)&1)==0?t-n:t+n}return Math.min(t,this.max)|0};Ci.prototype.reset=function(){this.attempts=0};Ci.prototype.setMin=function(t){this.ms=t};Ci.prototype.setMax=function(t){this.max=t};Ci.prototype.setJitter=function(t){this.jitter=t};class cf extends nt{constructor(e,n){var i;super(),this.nsps={},this.subs=[],e&&typeof e=="object"&&(n=e,e=void 0),n=n||{},n.path=n.path||"/socket.io",this.opts=n,su(this,n),this.reconnection(n.reconnection!==!1),this.reconnectionAttempts(n.reconnectionAttempts||1/0),this.reconnectionDelay(n.reconnectionDelay||1e3),this.reconnectionDelayMax(n.reconnectionDelayMax||5e3),this.randomizationFactor((i=n.randomizationFactor)!==null&&i!==void 0?i:.5),this.backoff=new Ci({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(n.timeout==null?2e4:n.timeout),this._readyState="closed",this.uri=e;const o=n.parser||UR;this.encoder=new o.Encoder,this.decoder=new o.Decoder,this._autoConnect=n.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(e){return arguments.length?(this._reconnection=!!e,e||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(e){return e===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=e,this)}reconnectionDelay(e){var n;return e===void 0?this._reconnectionDelay:(this._reconnectionDelay=e,(n=this.backoff)===null||n===void 0||n.setMin(e),this)}randomizationFactor(e){var n;return e===void 0?this._randomizationFactor:(this._randomizationFactor=e,(n=this.backoff)===null||n===void 0||n.setJitter(e),this)}reconnectionDelayMax(e){var n;return e===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=e,(n=this.backoff)===null||n===void 0||n.setMax(e),this)}timeout(e){return arguments.length?(this._timeout=e,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(e){if(~this._readyState.indexOf("open"))return this;this.engine=new PR(this.uri,this.opts);const n=this.engine,i=this;this._readyState="opening",this.skipReconnect=!1;const o=Sn(n,"open",function(){i.onopen(),e&&e()}),l=d=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",d),e?e(d):this.maybeReconnectOnOpen()},u=Sn(n,"error",l);if(this._timeout!==!1){const d=this._timeout,h=this.setTimeoutFn(()=>{o(),l(new Error("timeout")),n.close()},d);this.opts.autoUnref&&h.unref(),this.subs.push(()=>{this.clearTimeoutFn(h)})}return this.subs.push(o),this.subs.push(u),this}connect(e){return this.open(e)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const e=this.engine;this.subs.push(Sn(e,"ping",this.onping.bind(this)),Sn(e,"data",this.ondata.bind(this)),Sn(e,"error",this.onerror.bind(this)),Sn(e,"close",this.onclose.bind(this)),Sn(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(e){try{this.decoder.add(e)}catch(n){this.onclose("parse error",n)}}ondecoded(e){ru(()=>{this.emitReserved("packet",e)},this.setTimeoutFn)}onerror(e){this.emitReserved("error",e)}socket(e,n){let i=this.nsps[e];return i?this._autoConnect&&!i.active&&i.connect():(i=new ox(this,e,n),this.nsps[e]=i),i}_destroy(e){const n=Object.keys(this.nsps);for(const i of n)if(this.nsps[i].active)return;this._close()}_packet(e){const n=this.encoder.encode(e);for(let i=0;i<n.length;i++)this.engine.write(n[i],e.options)}
150cleanup(){this.subs.forEach(e=>e()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(e,n){var i;this.cleanup(),(i=this.engine)===null||i===void 0||i.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",e,n),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const e=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const n=this.backoff.duration();this._reconnecting=!0;const i=this.setTimeoutFn(()=>{e.skipReconnect||(this.emitReserved("reconnect_attempt",e.backoff.attempts),!e.skipReconnect&&e.open(o=>{o?(e._reconnecting=!1,e.reconnect(),this.emitReserved("reconnect_error",o)):e.onreconnect()}))},n);this.opts.autoUnref&&i.unref(),this.subs.push(()=>{this.clearTimeoutFn(i)})}}onreconnect(){const e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",e)}}const yo={};function Ml(t,e){typeof t=="object"&&(e=t,t=void 0),e=e||{};const n=RR(t,e.path||"/socket.io"),i=n.source,o=n.id,l=n.path,u=yo[o]&&l in yo[o].nsps,d=e.forceNew||e["force new connection"]||e.multiplex===!1||u;let h;return d?h=new cf(i,e):(yo[o]||(yo[o]=new cf(i,e)),h=yo[o]),n.query&&!e.query&&(e.query=n.queryKey),h.socket(n.path,e)}Object.assign(Ml,{Manager:cf,Socket:ox,io:Ml,connect:Ml});const VR=250;function Ky(t,e){var n;const i=(n=t.token)!==null&&n!==void 0?n:ws(),o={app_id:t.appId,token:i};i||(o.anonymous_id=Qf());const l=Ml(t.serverUrl,{path:t.mountPath,transports:t.transports,query:o});return l.on("connect",async()=>{var u;return console.log("connect",l.id),(u=e.connect)===null||u===void 0?void 0:u.call(e)}),l.on("update_model",async u=>{var d;return(d=e.update_model)===null||d===void 0?void 0:d.call(e,u)}),l.on("error",async u=>{var d;return(d=e.error)===null||d===void 0?void 0:d.call(e,u)}),l.on("connect_error",async u=>{var d;return console.error("connect_error",u),(d=e.error)===null||d===void 0?void 0:d.call(e,u)}),l}function zR({config:t}){let e={...t};const n={},i={},o={connect:async()=>{const b=[];Object.keys(n).forEach(O=>{const k=w(O);k.length!==0&&(p(O),k.forEach(({connect:A})=>{const U=async()=>A==null?void 0:A();b.push(U())}))}),await Promise.all(b)},update_model:async b=>{const k=w(b.room).map(A=>{var U;return(U=A.update_model)===null||U===void 0?void 0:U.call(A,b)});await Promise.all(k)},error:async b=>{console.error("error",b);const O=Object.values(n).flat().map(k=>{var A;return(A=k.error)===null||A===void 0?void 0:A.call(k,b)});await Promise.all(O)}};let l=Ky(t,o);function u(){d()}function d(){P(),l&&l.disconnect()}function h(b){u(),e={...e,...b},l=Ky(e,o)}function p(b){l.emit("join",b)}function g(b){l.emit("leave",b)}async function y(b,O){var k;const A=JSON.stringify(O);return(k=o.update_model)===null||k===void 0?void 0:k.call(o,{room:b,data:A})}function w(b){var O;return(O=n[b])!==null&&O!==void 0?O:[]}function E(b){const O=i[b];O&&(clearTimeout(O),delete i[b])}
150function P(){Object.keys(i).forEach(b=>{var O,k;clearTimeout(i[b]),delete i[b],((k=(O=n[b])===null||O===void 0?void 0:O.length)!==null&&k!==void 0?k:0)===0&&delete n[b]})}function _(b){E(b),i[b]=setTimeout(()=>{var O,k;delete i[b],!(((k=(O=n[b])===null||O===void 0?void 0:O.length)!==null&&k!==void 0?k:0)>0)&&(g(b),delete n[b])},VR)}return{socket:l,subscribeToRoom:(b,O)=>{n[b]?E(b):(p(b),n[b]=[]),n[b].push(O);let k=!1;return()=>{var A,U;k||(k=!0,n[b]=(U=(A=n[b])===null||A===void 0?void 0:A.filter(z=>z!==O))!==null&&U!==void 0?U:[],n[b].length===0&&_(b))}},updateConfig:h,updateModel:y,disconnect:d}}(!globalThis.EventTarget||!globalThis.Event)&&console.error(` 151 PartySocket requires a global 'EventTarget' class to be available! 152 You can polyfill this global by adding this to your code before any partysocket imports: 153 154 \`\`\` 155 import 'partysocket/event-target-polyfill'; 156 \`\`\` 157 Please file an issue at https://github.com/partykit/partykit if you're still having trouble. 158`);var ax=class extends Event{constructor(e,n){super("error",n);Le(this,"message");Le(this,"error");this.message=e.message,this.error=e}},lx=class extends Event{constructor(e=1e3,n="",i){super("close",i);Le(this,"code");Le(this,"reason");Le(this,"wasClean",!0);this.code=e,this.reason=n}},Sd={Event,ErrorEvent:ax,CloseEvent:lx};function $R(t,e){if(!t)throw new Error(e)}function WR(t){return new t.constructor(t.type,t)}function HR(t){return"data"in t?new MessageEvent(t.type,t):"code"in t||"reason"in t?new lx(t.code||1999,t.reason||"unknown reason",t):"error"in t?new ax(t.error,t):new Event(t.type,t)}var _0,qR=typeof process<"u"&&typeof((_0=process.versions)==null?void 0:_0.node)<"u"&&typeof document>"u",bl=qR?HR:WR,ts={maxReconnectionDelay:1e4,minReconnectionDelay:1e3+Math.random()*4e3,minUptime:5e3,reconnectionDelayGrowFactor:1.3,connectionTimeout:4e3,maxRetries:1/0,maxEnqueuedMessages:1/0},Qy=!1,KR=class rs extends EventTarget{constructor(n,i,o={}){super();Le(this,"_ws");Le(this,"_retryCount",-1);Le(this,"_uptimeTimeout");Le(this,"_connectTimeout");Le(this,"_shouldReconnect",!0);Le(this,"_connectLock",!1);Le(this,"_binaryType","blob");Le(this,"_closeCalled",!1);Le(this,"_messageQueue",[]);Le(this,"_url");Le(this,"_protocols");Le(this,"_options");Le(this,"onclose",null);Le(this,"onerror",null);Le(this,"onmessage",null);Le(this,"onopen",null);Le(this,"_handleOpen",n=>{this._debug("open event");const{minUptime:i=ts.minUptime}=this._options;clearTimeout(this._connectTimeout),this._uptimeTimeout=setTimeout(()=>this._acceptOpen(),i),$R(this._ws,"WebSocket is not defined"),this._ws.binaryType=this._binaryType,this._messageQueue.forEach(o=>{var l;return(l=this._ws)==null?void 0:l.send(o)}),this._messageQueue=[],this.onopen&&this.onopen(n),this.dispatchEvent(bl(n))});Le(this,"_handleMessage",n=>{this._debug("message event"),this.onmessage&&this.onmessage(n),this.dispatchEvent(bl(n))});Le(this,"_handleError",n=>{this._debug("error event",n.message),this._disconnect(void 0,n.message==="TIMEOUT"?"timeout":void 0),this.onerror&&this.onerror(n),this._debug("exec error listeners"),this.dispatchEvent(bl(n)),this._connect()});Le(this,"_handleClose",n=>{this._debug("close event"),this._clearTimeouts(),this._shouldReconnect&&this._connect(),this.onclose&&this.onclose(n),this.dispatchEvent(bl(n))});this._url=n,this._protocols=i,this._options=o,this._options.startClosed&&(this._shouldReconnect=!1),this._connect()}static get CONNECTING(){return 0}static get OPEN(){return 1}static get CLOSING(){return 2}static get CLOSED(){return 3}get CONNECTING(){return rs.CONNECTING}get OPEN(){return rs.OPEN}get CLOSING(){return rs.CLOSING}get CLOSED(){return rs.CLOSED}get binaryType(){return this._ws?this._ws.binaryType:this._binaryType}set binaryType(n){this._binaryType=n,this._ws&&(this._ws.binaryType=n)}get retryCount(){return Math.max(this._retryCount,0)}get bufferedAmount(){return this._messageQueue.reduce((i,o)=>(typeof o=="string"?i+=o.length:o instanceof Blob?i+=o.size:i+=o.byteLength,i),0)+(this._ws?this._ws.bufferedAmount:0)}get extensions(){return this._ws?this._ws.extensions:""}get protocol(){return this._ws?this._ws.protocol:""}get readyState(){return this._ws?this._ws.readyState:this._options.startClosed?rs.CLOSED:rs.CONNECTING}get url(){return this._ws?this._ws.url:""}get shouldReconnect(){return this._shouldReconnect}close(n=1e3,i){if(this._closeCalled=!0,this._shouldReconnect=!1,this._clearTimeouts(),!this._ws){this._debug("close enqueued: no ws instance");return}if(this._ws.readyState===this.CLOSED){this._debug("close: already closed");return}this._ws.close(n,i)}reconnect(n,i){this._shouldReconnect=!0,this._closeCalled=!1,this._retryCount=-1,!this._ws||this._ws.readyState===this.CLOSED?this._connect():(this._disconnect(n,i),this._connect())}send(n){if(this._ws&&this._ws.readyState===this.OPEN)this._debug("send",n),this._ws.send(n);else{const{maxEnqueuedMessages:i=ts.maxEnqueuedMessages}=this._options;this._messageQueue.length<i&&(this._debug("enqueue",n),this._messageQueue.push(n))}}_debug(...n){this._options.debug&&console.log.apply(console,["RWS>",...n])}_getNextDelay(){const{reconnectionDelayGrowFactor:n=ts.reconnectionDelayGrowFactor,minReconnectionDelay:i=ts.minReconnectionDelay,maxReconnectionDelay:o=ts.maxReconnectionDelay}=this._options;let l=0;return this._retryCount>0&&(l=i*Math.pow(n,this._retryCount-1),l>o&&(l=o)),this._debug("next delay",l),l}_wait(){return new Promise(n=>{setTimeout(n,this._getNextDelay())})}_getNextProtocols(n){if(!n)return Promise.resolve(null);if(typeof n=="string"||Array.isArray(n))return Promise.resolve(n);if(typeof n=="function"){const i=n();if(!i)return Promise.resolve(null);if(typeof i=="string"||Array.isArray(i))return Promise.resolve(i);if(i.then)return i}throw Error("Invalid protocols")}_getNextUrl(n){if(typeof n=="string")return Promise.resolve(n);if(typeof n=="function"){const i=n();if(typeof i=="string")return Promise.resolve(i);if(i.then)return i}throw Error("Invalid URL")}_connect(){if(this._connectLock||!this._shouldReconnect)return;this._connectLock=!0;
vendor: 4,382 bytes, lines 158-176
158const{maxRetries:n=ts.maxRetries,connectionTimeout:i=ts.connectionTimeout}=this._options;if(this._retryCount>=n){this._debug("max retries reached",this._retryCount,">=",n);return}this._retryCount++,this._debug("connect",this._retryCount),this._removeListeners(),this._wait().then(()=>Promise.all([this._getNextUrl(this._url),this._getNextProtocols(this._protocols||null)])).then(([o,l])=>{if(this._closeCalled){this._connectLock=!1;return}!this._options.WebSocket&&typeof WebSocket>"u"&&!Qy&&(console.error(`â¼ï¸ No WebSocket implementation available. You should define options.WebSocket. 159 160For example, if you're using node.js, run \`npm install ws\`, and then in your code: 161 162import PartySocket from 'partysocket'; 163import WS from 'ws'; 164 165const partysocket = new PartySocket({ 166 host: "127.0.0.1:1999", 167 room: "test-room", 168 WebSocket: WS 169}); 170 171`),Qy=!0);const u=this._options.WebSocket||WebSocket;this._debug("connect",{url:o,protocols:l}),this._ws=l?new u(o,l):new u(o),this._ws.binaryType=this._binaryType,this._connectLock=!1,this._addListeners(),this._connectTimeout=setTimeout(()=>this._handleTimeout(),i)}).catch(o=>{this._connectLock=!1,this._handleError(new Sd.ErrorEvent(Error(o.message),this))})}_handleTimeout(){this._debug("timeout event"),this._handleError(new Sd.ErrorEvent(Error("TIMEOUT"),this))}_disconnect(n=1e3,i){if(this._clearTimeouts(),!!this._ws){this._removeListeners();try{this._ws.close(n,i),this._handleClose(new Sd.CloseEvent(n,i,this))}catch{}}}_acceptOpen(){this._debug("accept open"),this._retryCount=0}_removeListeners(){this._ws&&(this._debug("removeListeners"),this._ws.removeEventListener("open",this._handleOpen),this._ws.removeEventListener("close",this._handleClose),this._ws.removeEventListener("message",this._handleMessage),this._ws.removeEventListener("error",this._handleError))}_addListeners(){this._ws&&(this._debug("addListeners"),this._ws.addEventListener("open",this._handleOpen),this._ws.addEventListener("close",this._handleClose),this._ws.addEventListener("message",this._handleMessage),this._ws.addEventListener("error",this._handleError))}_clearTimeouts(){clearTimeout(this._connectTimeout),clearTimeout(this._uptimeTimeout)}};/*! 172 * Reconnecting WebSocket 173 * by Pedro Ladaria <[email protected]> 174 * https://github.com/pladaria/reconnecting-websocket 175 * License MIT 176 */var QR=t=>t[1]!==null&&t[1]!==void 0;function GR(){if(typeof crypto<"u"&&crypto.randomUUID)return crypto.randomUUID();let t=new Date().getTime(),e=typeof performance<"u"&&performance.now&&performance.now()*1e3||0;return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(n){let i=Math.random()*16;return t>0?(i=(t+i)%16|0,t=Math.floor(t/16)):(i=(e+i)%16|0,e=Math.floor(e/16)),(n==="x"?i:i&3|8).toString(16)})}function ux(t,e,n={}){const{host:i,path:o,protocol:l,room:u,party:d,query:h}=t;let p=i.replace(/^(http|https|ws|wss):\/\//,"");if(p.endsWith("/")&&(p=p.slice(0,-1)),o&&o.startsWith("/"))throw new Error("path must not start with a slash");const g=d??"main",y=o?`/${o}`:"",w=l||(p.startsWith("localhost:")||p.startsWith("127.0.0.1:")||p.startsWith("192.168.")||p.startsWith("10.")||p.startsWith("172.")&&p.split(".")[1]>="16"&&p.split(".")[1]<="31"||p.startsWith("[::ffff:7f00:1]:")?e:e+"s"),E=`${w}://${p}/${d?`parties/${d}`:"party"}/${u}${y}`,P=(S={})=>`${E}?${new URLSearchParams([...Object.entries(n),...Object.entries(S).filter(QR)])}`,_=typeof h=="function"?async()=>P(await h()):P(h);return{host:p,path:y,room:u,name:g,protocol:w,partyUrl:E,urlProvider:_}}var YR=class extends KR{constructor(e){const n=Gy(e);super(n.urlProvider,n.protocols,n.socketOptions);Le(this,"_pk");Le(this,"_pkurl");Le(this,"name");Le(this,"room");Le(this,"host");Le(this,"path");this.partySocketOptions=e,this.setWSProperties(n)}updateProperties(e){const n=Gy({...e,host:e.host??this.host,room:e.room??this.room,path:e.path??this.path});this._url=n.urlProvider,this._protocols=n.protocols,this._options=n.socketOptions,this.setWSProperties(n)}setWSProperties(e){const{_pk:n,_pkurl:i,name:o,room:l,host:u,path:d}=e;this._pk=n,this._pkurl=i,this.name=o,this.room=l,this.host=u,this.path=d}reconnect(e,n){if(!this.room||!this.host)throw new Error("The room and host must be set before connecting, use `updateProperties` method to set them or pass them to the constructor.");super.reconnect(e,n)}get id(){return this._pk}get roomUrl(){return this._pkurl}
176static async fetch(e,n){const i=ux(e,"http"),o=typeof i.urlProvider=="string"?i.urlProvider:await i.urlProvider();return(e.fetch??fetch)(o,n)}};function Gy(t){const{id:e,host:n,path:i,party:o,room:l,protocol:u,query:d,protocols:h,...p}=t,g=e||GR(),y=ux(t,"ws",{_pk:g});return{_pk:g,_pkurl:y.partyUrl,name:y.name,room:y.room,host:y.host,path:y.path,protocols:h,socketOptions:p,urlProvider:y.urlProvider}}const XR=1e3,JR=3e3;class ZR{constructor(e,n,i,o,l){var u;this.onClose=l,this.listeners=new Set,this.heartbeat=null,this.id=(u=o==null?void 0:o.id)!==null&&u!==void 0?u:crypto.randomUUID();const d=new YR({host:i.host,party:e,room:n,id:this.id,query:()=>{const g=i.getAuthToken();return{app_id:i.appId,handler:e,...g?{token:g}:{},...i.functionsVersion?{fv:i.functionsVersion}:{}}}});this.ws=d;let h=Date.now();const p=()=>{h=Date.now()};d.addEventListener("open",p),d.addEventListener("message",g=>{p();let y;try{y=JSON.parse(g.data)}catch{return}if((y&&typeof y=="object"?y.type:void 0)!=="__pong")for(const E of this.listeners)E(y)}),this.heartbeat=setInterval(()=>{if(Date.now()-h>JR){p(),d.reconnect();return}try{d.send(JSON.stringify({type:"__ping"}))}catch{}},XR)}subscribe(e){return this.listeners.add(e),{unsubscribe:()=>{this.listeners.delete(e)}}}send(e){this.ws.send(JSON.stringify(e))}close(){this.heartbeat&&(clearInterval(this.heartbeat),this.heartbeat=null),this.listeners.clear(),this.ws.close(),this.onClose()}}function eA(t,e,n,i){let o=null;return{connect(l){if(o)return o;const u=new ZR(t,e,n,l,()=>{i.delete(u),o===u&&(o=null)});return o=u,i.add(u),u}}}function tA(t,e){return t&&!t.startsWith("/")?t:e??t}function nA(t){const e=new Set;return{module:new Proxy({},{get(i,o){if(!(typeof o!="string"||o==="then"))return l=>eA(o,l,t,e)}}),closeAll:()=>{for(const i of[...e])i.close()}}}function rA(t){var e,n,i;const{serverUrl:o="https://base44.app",appId:l,token:u,serviceToken:d,requiresAuth:h=!1,appBaseUrl:p,options:g,functionsVersion:y,headers:w}=t,E=typeof p=="string"?p:"",P={serverUrl:o,mountPath:"/ws-user-apps/socket.io/",transports:["websocket"],appId:l,token:u};let _=null;const S=()=>(_||(_=zR({config:P})),_),b={...w,"X-App-Id":String(l)},O=y?{...b,"Base44-Functions-Version":y}:b,k=xo({baseURL:`${o}/api`,headers:b,token:u,onError:g==null?void 0:g.onError}),A=xo({baseURL:`${o}/api`,headers:O,token:u,interceptResponses:!1,onError:g==null?void 0:g.onError}),U={...b,...u?{"on-behalf-of":`Bearer ${u}`}:{}},z=xo({baseURL:`${o}/api`,headers:U,token:d,onError:g==null?void 0:g.onError}),J=xo({baseURL:`${o}/api`,headers:O,token:d,interceptResponses:!1}),B=$P(k,A,l,{appBaseUrl:E});if(typeof window<"u"){const Se=u||ws();Se&&B.setToken(Se)}const Z=nA({appId:l,host:tA(o,typeof window<"u"?(e=window.location)===null||e===void 0?void 0:e.origin:void 0),functionsVersion:y,getAuthToken:()=>u||ws()}),le={entities:My({axios:k,appId:l,getSocket:S}),integrations:Iy(k,l),connectors:qP(k,l),auth:B,functions:Fy(A,l,{getAuthHeaders:()=>{const Se={},Ce=u||ws();return Ce&&(Se.Authorization=`Bearer ${Ce}`),Se},baseURL:(n=A.defaults)===null||n===void 0?void 0:n.baseURL}),agents:Uy({axios:k,getSocket:S,appId:l,serverUrl:o,token:u}),aiGateway:By({serverUrl:o,token:u,appId:l}),appLogs:Vy(k,l),users:QP(k,l),analytics:RP({axiosClient:k,serverUrl:o,appId:l,userAuthModule:B}),actors:Z.module,cleanup:()=>{le.analytics.cleanup(),Z.closeAll(),_&&_.disconnect()}},be={entities:My({axios:z,appId:l,getSocket:S}),integrations:Iy(z,l),sso:WP(z,l),connectors:HP(z,l),functions:Fy(J,l,{getAuthHeaders:()=>{const Se={};return d&&(Se.Authorization=`Bearer ${d}`),Se},baseURL:(i=J.defaults)===null||i===void 0?void 0:i.baseURL}),agents:Uy({axios:z,getSocket:S,appId:l,serverUrl:o,token:u}),aiGateway:By({serverUrl:o,token:d,appId:l}),appLogs:Vy(z,l),cleanup:()=>{_&&_.disconnect()}};return h&&typeof window<"u"&&setTimeout(async()=>{try{await le.auth.isAuthenticated()||le.auth.redirectToLogin(window.location.href)}catch(Se){console.error("Authentication check failed:",Se),le.auth.redirectToLogin(window.location.href)}},0),{...le,setToken(Se){le.auth.setToken(Se),_&&_.updateConfig({token:Se}),P.token=Se},getConfig(){return{serverUrl:o,appId:l,requiresAuth:h}},get asServiceRole(){if(!d)throw new Error("Service token is required to use asServiceRole. Please provide a serviceToken when creating the client.");return be}}}const cx=typeof window>"u",sA=cx?{localStorage:new Map}:window,Po=sA.localStorage,iA=t=>t.replace(/([A-Z])/g,"_$1").toLowerCase(),ei=(t,{defaultValue:e=void 0,removeFromUrl:n=!1}={})=>
176{if(cx)return e;const i=`base44_${iA(t)}`,o=new URLSearchParams(window.location.search),l=o.get(t);if(n){o.delete(t);const d=`${window.location.pathname}${o.toString()?`?${o.toString()}`:""}${window.location.hash}`;window.history.replaceState({},document.title,d)}if(l)return Po.setItem(i,l),l;if(e)return Po.setItem(i,e),e;const u=Po.getItem(i);return u||null},oA=()=>(ei("clear_access_token")==="true"&&(Po.removeItem("base44_access_token"),Po.removeItem("token")),{appId:ei("app_id",{defaultValue:"69bcf5ed3aeaebb23f636937"}),token:ei("access_token",{removeFromUrl:!0}),fromUrl:ei("from_url",{defaultValue:window.location.href}),functionsVersion:ei("functions_version",{defaultValue:"prod"}),appBaseUrl:ei("app_base_url",{defaultValue:void 0})}),So={...oA()},{appId:aA,token:lA,functionsVersion:uA,appBaseUrl:cA}=So,Eo=rA({appId:aA,token:lA,functionsVersion:uA,serverUrl:"",requiresAuth:!1,appBaseUrl:cA});function dA({}){var o;const e=Ur().pathname.substring(1),{data:n,isFetched:i}=nC({queryKey:["user"],queryFn:async()=>{try{return{user:await Eo.auth.me(),isAuthenticated:!0}}catch{return{user:null,isAuthenticated:!1}}}});return x.jsx("div",{className:"min-h-screen flex items-center justify-center p-6 bg-slate-50",children:x.jsx("div",{className:"max-w-md w-full",children:x.jsxs("div",{className:"text-center space-y-6",children:[x.jsxs("div",{className:"space-y-2",children:[x.jsx("h1",{className:"text-7xl font-light text-slate-300",children:"404"}),x.jsx("div",{className:"h-0.5 w-16 bg-slate-200 mx-auto"})]}),x.jsxs("div",{className:"space-y-3",children:[x.jsx("h2",{className:"text-2xl font-medium text-slate-800",children:"Page Not Found"}),x.jsxs("p",{className:"text-slate-600 leading-relaxed",children:["The page ",x.jsxs("span",{className:"font-medium text-slate-700",children:['"',e,'"']})," could not be found in this application."]})]}),i&&n.isAuthenticated&&((o=n.user)==null?void 0:o.role)==="admin"&&x.jsx("div",{className:"mt-8 p-4 bg-slate-100 rounded-lg border border-slate-200",children:x.jsxs("div",{className:"flex items-start space-x-3",children:[x.jsx("div",{className:"flex-shrink-0 w-5 h-5 rounded-full bg-orange-100 flex items-center justify-center mt-0.5",children:x.jsx("div",{className:"w-2 h-2 rounded-full bg-orange-400"})}),x.jsxs("div",{className:"text-left space-y-1",children:[x.jsx("p",{className:"text-sm font-medium text-slate-700",children:"Admin Note"}),x.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."})]})]})}),x.jsx("div",{className:"pt-6",children:x.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:[x.jsx("svg",{className:"w-4 h-4 mr-2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:x.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"]})})]})})})}const dx=D.createContext(),fA=({children:t})=>{const[e,n]=D.useState(null),[i,o]=D.useState(!1),[l,u]=D.useState(!0),[d,h]=D.useState(!0),[p,g]=D.useState(null),[y,w]=D.useState(null);D.useEffect(()=>{E()},[]);const E=async()=>{var b,O;try{h(!0),g(null);const k=xo({baseURL:"/api/apps/public",headers:{"X-App-Id":So.appId},token:So.token,interceptResponses:!0});try{const A=await k.get(`/prod/public-settings/by-id/${So.appId}`);w(A),So.token?await P():(u(!1),o(!1)),h(!1)}catch(A){if(console.error("App state check failed:",A),A.status===403&&((O=(b=A.data)==null?void 0:b.extra_data)!=null&&O.reason)){const U=A.data.extra_data.reason;g(U==="auth_required"?{type:"auth_required",message:"Authentication required"}:U==="user_not_registered"?{type:"user_not_registered",message:"User not registered for this app"}:{type:U,message:A.message})}else g({type:"unknown",message:A.message||"Failed to load app"});h(!1),u(!1)}}catch(k){console.error("Unexpected error:",k),g({type:"unknown",message:k.message||"An unexpected error occurred"}),h(!1),u(!1)}}
176,P=async()=>{try{u(!0);const b=await Eo.auth.me();n(b),o(!0),u(!1)}catch(b){console.error("User auth check failed:",b),u(!1),o(!1),(b.status===401||b.status===403)&&g({type:"auth_required",message:"Authentication required"})}},_=(b=!0)=>{n(null),o(!1),b?Eo.auth.logout(window.location.href):Eo.auth.logout()},S=()=>{Eo.auth.redirectToLogin(window.location.href)};return x.jsx(dx.Provider,{value:{user:e,isAuthenticated:i,isLoadingAuth:l,isLoadingPublicSettings:d,authError:p,appPublicSettings:y,logout:_,navigateToLogin:S,checkAppState:E},children:t})},hA=()=>{const t=D.useContext(dx);if(!t)throw new Error("useAuth must be used within an AuthProvider");return t},pA=()=>x.jsx("div",{className:"flex flex-col items-center justify-center min-h-screen bg-gradient-to-b from-white to-slate-50",children:x.jsx("div",{className:"max-w-md w-full p-8 bg-white rounded-lg shadow-lg border border-slate-100",children:x.jsxs("div",{className:"text-center",children:[x.jsx("div",{className:"inline-flex items-center justify-center w-16 h-16 mb-6 rounded-full bg-orange-100",children:x.jsx("svg",{className:"w-8 h-8 text-orange-600",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:x.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"})})}),x.jsx("h1",{className:"text-3xl font-bold text-slate-900 mb-4",children:"Access Restricted"}),x.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."}),x.jsxs("div",{className:"p-4 bg-slate-50 rounded-md text-sm text-slate-600",children:[x.jsx("p",{children:"If you believe this is an error, you can:"}),x.jsxs("ul",{className:"list-disc list-inside mt-2 space-y-1",children:[x.jsx("li",{children:"Verify you are logged in with the correct account"}),x.jsx("li",{children:"Contact the app administrator for access"}),x.jsx("li",{children:"Try logging out and back in again"})]})]})]})})}),eh=D.createContext({});function th(t){const e=D.useRef(null);return e.current===null&&(e.current=t()),e.current}const iu=D.createContext(null),nh=D.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});class mA extends D.Component{getSnapshotBeforeUpdate(e){const n=this.props.childRef.current;if(n&&e.isPresent&&!this.props.isPresent){const i=this.props.sizeRef.current;i.height=n.offsetHeight||0,i.width=n.offsetWidth||0,i.top=n.offsetTop,i.left=n.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function gA({children:t,isPresent:e}){const n=D.useId(),i=D.useRef(null),o=D.useRef({width:0,height:0,top:0,left:0}),{nonce:l}=D.useContext(nh);return D.useInsertionEffect(()=>{const{width:u,height:d,top:h,left:p}=o.current;if(e||!i.current||!u||!d)return;i.current.dataset.motionPopId=n;const g=document.createElement("style");return l&&(g.nonce=l),document.head.appendChild(g),g.sheet&&g.sheet.insertRule(` 177 [data-motion-pop-id="${n}"] { 178 position: absolute !important; 179 width: ${u}px !important; 180 height: ${d}px !important; 181 top: ${h}px !important; 182 left: ${p}px !important; 183 } 184 `),()=>{document.head.removeChild(g)}},[e]),x.jsx(mA,{isPresent:e,childRef:i,sizeRef:o,children:D.cloneElement(t,{ref:i})})}const yA=({children:t,initial:e,isPresent:n,onExitComplete:i,custom:o,presenceAffectsLayout:l,mode:u})=>{const d=th(vA),h=D.useId(),p=D.useCallback(y=>{d.set(y,!0);for(const w of d.values())if(!w)return;i&&i()},[d,i]),g=D.useMemo(()=>({id:h,initial:e,isPresent:n,custom:o,onExitComplete:p,register:y=>(d.set(y,!1),()=>d.delete(y))}),l?[Math.random(),p]:[n,p]);return D.useMemo(()=>{d.forEach((y,w)=>d.set(w,!1))},[n]),D.useEffect(()=>{!n&&!d.size&&i&&i()},[n]),u==="popLayout"&&(t=x.jsx(gA,{isPresent:n,children:t})),x.jsx(iu.Provider,{value:g,children:t})};function vA(){return new Map}function fx(t=!0){const e=D.useContext(iu);if(e===null)return[!0,null];const{isPresent:n,onExitComplete:i,register:o}
vendor: 29,562 bytes, line 184
184=e,l=D.useId();D.useEffect(()=>{t&&o(l)},[t]);const u=D.useCallback(()=>t&&i&&i(l),[l,i,t]);return!n&&i?[!1,u]:[!0]}const Sl=t=>t.key||"";function Yy(t){const e=[];return D.Children.forEach(t,n=>{D.isValidElement(n)&&e.push(n)}),e}const rh=typeof window<"u",hx=rh?D.useLayoutEffect:D.useEffect,sh=({children:t,custom:e,initial:n=!0,onExitComplete:i,presenceAffectsLayout:o=!0,mode:l="sync",propagate:u=!1})=>{const[d,h]=fx(u),p=D.useMemo(()=>Yy(t),[t]),g=u&&!d?[]:p.map(Sl),y=D.useRef(!0),w=D.useRef(p),E=th(()=>new Map),[P,_]=D.useState(p),[S,b]=D.useState(p);hx(()=>{y.current=!1,w.current=p;for(let A=0;A<S.length;A++){const U=Sl(S[A]);g.includes(U)?E.delete(U):E.get(U)!==!0&&E.set(U,!1)}},[S,g.length,g.join("-")]);const O=[];if(p!==P){let A=[...p];for(let U=0;U<S.length;U++){const z=S[U],J=Sl(z);g.includes(J)||(A.splice(U,0,z),O.push(z))}l==="wait"&&O.length&&(A=O),b(Yy(A)),_(p);return}const{forceRender:k}=D.useContext(eh);return x.jsx(x.Fragment,{children:S.map(A=>{const U=Sl(A),z=u&&!d?!1:p===S||g.includes(U),J=()=>{if(E.has(U))E.set(U,!0);else return;let B=!0;E.forEach(Z=>{Z||(B=!1)}),B&&(k==null||k(),b(w.current),u&&(h==null||h()),i&&i())};return x.jsx(yA,{isPresent:z,initial:!y.current||n?void 0:!1,custom:z?void 0:e,presenceAffectsLayout:o,mode:l,onExitComplete:z?void 0:J,children:A},U)})})},Ht=t=>t;let px=Ht;function ih(t){let e;return()=>(e===void 0&&(e=t()),e)}const wi=(t,e,n)=>{const i=e-t;return i===0?1:(n-t)/i},Yn=t=>t*1e3,Xn=t=>t/1e3,wA={useManualTiming:!1};function xA(t){let e=new Set,n=new Set,i=!1,o=!1;const l=new WeakSet;let u={delta:0,timestamp:0,isProcessing:!1};function d(p){l.has(p)&&(h.schedule(p),t()),p(u)}const h={schedule:(p,g=!1,y=!1)=>{const E=y&&i?e:n;return g&&l.add(p),E.has(p)||E.add(p),p},cancel:p=>{n.delete(p),l.delete(p)},process:p=>{if(u=p,i){o=!0;return}i=!0,[e,n]=[n,e],e.forEach(d),e.clear(),i=!1,o&&(o=!1,h.process(p))}};return h}const El=["read","resolveKeyframes","update","preRender","render","postRender"],bA=40;function mx(t,e){let n=!1,i=!0;const o={delta:0,timestamp:0,isProcessing:!1},l=()=>n=!0,u=El.reduce((b,O)=>(b[O]=xA(l),b),{}),{read:d,resolveKeyframes:h,update:p,preRender:g,render:y,postRender:w}=u,E=()=>{const b=performance.now();n=!1,o.delta=i?1e3/60:Math.max(Math.min(b-o.timestamp,bA),1),o.timestamp=b,o.isProcessing=!0,d.process(o),h.process(o),p.process(o),g.process(o),y.process(o),w.process(o),o.isProcessing=!1,n&&e&&(i=!1,t(E))},P=()=>{n=!0,i=!0,o.isProcessing||t(E)};return{schedule:El.reduce((b,O)=>{const k=u[O];return b[O]=(A,U=!1,z=!1)=>(n||P(),k.schedule(A,U,z)),b},{}),cancel:b=>{for(let O=0;O<El.length;O++)u[El[O]].cancel(b)},state:o,steps:u}}const{schedule:$e,cancel:Mr,state:yt,steps:Ed}=mx(typeof requestAnimationFrame<"u"?requestAnimationFrame:Ht,!0),gx=D.createContext({strict:!1}),Xy={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},xi={};for(const t in Xy)xi[t]={isEnabled:e=>Xy[t].some(n=>!!e[n])};function SA(t){for(const e in t)xi[e]={...xi[e],...t[e]}}const EA=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function ql(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||EA.has(t)}let yx=t=>!ql(t);function _A(t){t&&(yx=e=>e.startsWith("on")?!ql(e):t(e))}try{_A(require("@emotion/is-prop-valid").default)}catch{}function CA(t,e,n){const i={};for(const o in t)o==="values"&&typeof t.values=="object"||(yx(o)||n===!0&&ql(o)||!e&&!ql(o)||t.draggable&&o.startsWith("onDrag"))&&(i[o]=t[o]);return i}function kA(t){if(typeof Proxy>"u")return t;const e=new Map,n=(...i)=>t(...i);return new Proxy(n,{get:(i,o)=>o==="create"?t:(e.has(o)||e.set(o,t(o)),e.get(o))})}const ou=D.createContext({});function Fo(t){return typeof t=="string"||Array.isArray(t)}function au(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}const oh=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],ah=["initial",...oh];function lu(t){return au(t.animate)||ah.some(e=>Fo(t[e]))}function vx(t){return!!(lu(t)||t.variants)}function TA(t,e){if(lu(t)){const{initial:n,animate:i}=t;return{initial:n===!1||Fo(n)?n:void 0,animate:Fo(i)?i:void 0}}return t.inherit!==!1?e:{}}function PA(t){const{initial:e,animate:n}=TA(t,D.useContext(ou));return D.useMemo(()=>({initial:e,animate:n}),[Jy(e),Jy(n)])}function Jy(t){return Array.isArray(t)?t.join(" "):t}const RA=Symbol.for("motionComponentSymbol");function ti(t){return t&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function AA(t,e,n){return D.useCallback(i=>{i&&t.onMount&&t.onMount(i),e&&(i?e.mount(i):e.unmount()),n&&(typeof n=="function"?n(i):ti(n)&&(n.current=i))},[e])}const lh=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),NA="framerAppearId",wx="data-"+lh(NA),{schedule:uh}=mx(queueMicrotask,!1),xx=D.createContext({});function OA(t,e,n,i,o){var l,u;const{visualElement:d}=D.useContext(ou),h=D.useContext(gx),p=D.useContext(iu),g=D.useContext(nh).reducedMotion,y=D.useRef(null);i=i||h.renderer,!y.current&&i&&(y.current=i(t,{visualState:e,parent:d,props:n,presenceContext:p,blockInitialAnimation:p?p.initial===!1:!1,reducedMotionConfig:g}));const w=y.current,E=D.useContext(xx);w&&!w.projection&&o&&(w.type==="html"||w.type==="svg")&&LA(y.current,n,o,E);const P=D.useRef(!1);D.useInsertionEffect(()=>{w&&P.current&&w.update(n,p)});const _=n[wx],S=D.useRef(!!_&&!(!((l=window.MotionHandoffIsComplete)===null||l===void 0)&&l.call(window,_))&&((u=window.MotionHasOptimisedAnimation)===null||u===void 0?void 0:u.call(window,_)));return hx(()=>{w&&(P.current=!0,window.MotionIsMounted=!0,w.updateFeatures(),uh.render(w.render),S.current&&w.animationState&&w.animationState.animateChanges())}),D.useEffect(()=>{w&&(!S.current&&w.animationState&&w.animationState.animateChanges(),S.current&&(queueMicrotask(()=>{var b;(b=window.MotionHandoffMarkAsComplete)===null||b===void 0||b.call(window,_)}),S.current=!1))}),w}function LA(t,e,n,i){const{layoutId:o,layout:l,drag:u,dragConstraints:d,layoutScroll:h,layoutRoot:p}=e;t.projection=new n(t.latestValues,e["data-framer-portal-id"]?void 0:bx(t.parent)),t.projection.setOptions({layoutId:o,layout:l,alwaysMeasureLayout:!!u||d&&ti(d),visualElement:t,animationType:typeof l=="string"?l:"both",initialPromotionConfig:i,layoutScroll:h,layoutRoot:p})}function bx(t){if(t)return t.options.allowProjection!==!1?t.projection:bx(t.parent)}function jA({preloadedFeatures:t,createVisualElement:e,useRender:n,useVisualState:i,Component:o}){var l,u;t&&SA(t);function d(p,g){let y;const w={...D.useContext(nh),...p,layoutId:DA(p)},{isStatic:E}=w,P=PA(p),_=i(p,E);if(!E&&rh){MA();const S=IA(w);y=S.MeasureLayout,P.visualElement=OA(o,_,w,e,S.ProjectionNode)}return x.jsxs(ou.Provider,{value:P,children:[y&&P.visualElement?x.jsx(y,{visualElement:P.visualElement,...w}):null,n(o,p,AA(_,P.visualElement,g),_,E,P.visualElement)]})}d.displayName=`motion.${typeof o=="string"?o:`create(${(u=(l=o.displayName)!==null&&l!==void 0?l:o.name)!==null&&u!==void 0?u:""})`}`;const h=D.forwardRef(d);return h[RA]=o,h}function DA({layoutId:t}){const e=D.useContext(eh).id;return e&&t!==void 0?e+"-"+t:t}function MA(t,e){D.useContext(gx).strict}function IA(t){const{drag:e,layout:n}=xi;if(!e&&!n)return{};const i={...e,...n};return{MeasureLayout:e!=null&&e.isEnabled(t)||n!=null&&n.isEnabled(t)?i.MeasureLayout:void 0,ProjectionNode:i.ProjectionNode}}const FA=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function ch(t){return typeof t!="string"||t.includes("-")?!1:!!(FA.indexOf(t)>-1||/[A-Z]/u.test(t))}function Zy(t){const e=[{},{}];return t==null||t.values.forEach((n,i)=>{e[0][i]=n.get(),e[1][i]=n.getVelocity()}),e}function dh(t,e,n,i){if(typeof e=="function"){const[o,l]=Zy(i);e=e(n!==void 0?n:t.custom,o,l)}if(typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"){const[o,l]=Zy(i);e=e(n!==void 0?n:t.custom,o,l)}return e}const df=t=>Array.isArray(t),UA=t=>!!(t&&typeof t=="object"&&t.mix&&t.toValue),BA=t=>df(t)?t[t.length-1]||0:t,Tt=t=>!!(t&&t.getVelocity);function Il(t){const e=Tt(t)?t.get():t;return UA(e)?e.toValue():e}function VA({scrapeMotionValuesFromProps:t,createRenderState:e,onUpdate:n},i,o,l){const u={latestValues:zA(i,o,l,t),renderState:e()};return n&&(u.onMount=d=>n({props:i,current:d,...u}),u.onUpdate=d=>n(d)),u}const Sx=t=>(e,n)=>{const i=D.useContext(ou),o=D.useContext(iu),l=()=>VA(t,e,i,o);return n?l():th(l)};function zA(t,e,n,i){const o={},l=i(t,{});for(const w in l)o[w]=Il(l[w]);let{initial:u,animate:d}=t;const h=lu(t),p=vx(t);e&&p&&!h&&t.inherit!==!1&&(u===void 0&&(u=e.initial),d===void 0&&(d=e.animate));let g=n?n.initial===!1:!1;g=g||u===!1;const y=g?d:u;if(y&&typeof y!="boolean"&&!au(y)){const w=Array.isArray(y)?y:[y];for(let E=0;E<w.length;E++){const P=dh(t,w[E]);if(P){const{transitionEnd:_,transition:S,...b}=P;for(const O in b){let k=b[O];if(Array.isArray(k)){const A=g?k.length-1:0;k=k[A]}k!==null&&(o[O]=k)}for(const O in _)o[O]=_[O]}}}return o}const ki=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Ps=new Set(ki),Ex=t=>e=>typeof e=="string"&&e.startsWith(t),_x=Ex("--"),$A=Ex("var(--"),fh=t=>$A(t)?WA.test(t.split("/*")[0].trim()):!1,WA=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Cx=(t,e)=>e&&typeof t=="number"?e.transform(t):t,Jn=(t,e,n)=>n>e?e:n<t?t:n,Ti={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},Uo={...Ti,transform:t=>Jn(0,1,t)},_l={...Ti,default:1},ta=t=>({test:e=>typeof e=="string"&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),Er=ta("deg"),Ln=ta("%"),pe=ta("px"),HA=ta("vh"),qA=ta("vw"),ev={...Ln,parse:t=>Ln.parse(t)/100,transform:t=>Ln.transform(t*100)},KA={borderWidth:pe,borderTopWidth:pe,borderRightWidth:pe,borderBottomWidth:pe,borderLeftWidth:pe,borderRadius:pe,radius:pe,borderTopLeftRadius:pe,borderTopRightRadius:pe,borderBottomRightRadius:pe,borderBottomLeftRadius:pe,width:pe,maxWidth:pe,height:pe,maxHeight:pe,top:pe,right:pe,bottom:pe,left:pe,padding:pe,paddingTop:pe,paddingRight:pe,paddingBottom:pe,paddingLeft:pe,margin:pe,marginTop:pe,marginRight:pe,marginBottom:pe,marginLeft:pe,backgroundPositionX:pe,backgroundPositionY:pe},QA={rotate:Er,rotateX:Er,rotateY:Er,rotateZ:Er,scale:_l,scaleX:_l,scaleY:_l,scaleZ:_l,skew:Er,skewX:Er,skewY:Er,distance:pe,translateX:pe,translateY:pe,translateZ:pe,x:pe,y:pe,z:pe,perspective:pe,transformPerspective:pe,opacity:Uo,originX:ev,originY:ev,originZ:pe},tv={...Ti,transform:Math.round},hh={...KA,...QA,zIndex:tv,size:pe,fillOpacity:Uo,strokeOpacity:Uo,numOctaves:tv},GA={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},YA=ki.length;function XA(t,e,n){let i="",o=!0;for(let l=0;l<YA;l++){const u=ki[l],d=t[u];if(d===void 0)continue;let h=!0;if(typeof d=="number"?h=d===(u.startsWith("scale")?1:0):h=parseFloat(d)===0,!h||n){const p=Cx(d,hh[u]);if(!h){o=!1;const g=GA[u]||u;i+=`${g}(${p}) `}n&&(e[u]=p)}}return i=i.trim(),n?i=n(e,o?"":i):o&&(i="none"),i}function ph(t,e,n){const{style:i,vars:o,transformOrigin:l}=t;let u=!1,d=!1;for(const h in e){const p=e[h];if(Ps.has(h)){u=!0;continue}else if(_x(h)){o[h]=p;continue}else{const g=Cx(p,hh[h]);h.startsWith("origin")?(d=!0,l[h]=g):i[h]=g}}if(e.transform||(u||n?i.transform=XA(e,t.transform,n):i.transform&&(i.transform="none")),d){const{originX:h="50%",originY:p="50%",originZ:g=0}=l;i.transformOrigin=`${h} ${p} ${g}`}}const JA={offset:"stroke-dashoffset",array:"stroke-dasharray"},ZA={offset:"strokeDashoffset",array:"strokeDasharray"};function eN(t,e,n=1,i=0,o=!0){t.pathLength=1;const l=o?JA:ZA;t[l.offset]=pe.transform(-i);const u=pe.transform(e),d=pe.transform(n);t[l.array]=`${u} ${d}`}function nv(t,e,n){return typeof t=="string"?t:pe.transform(e+n*t)}function tN(t,e,n){const i=nv(e,t.x,t.width),o=nv(n,t.y,t.height);return`${i} ${o}`}function mh(t,{attrX:e,attrY:n,attrScale:i,originX:o,originY:l,pathLength:u,pathSpacing:d=1,pathOffset:h=0,...p},g,y){if(ph(t,p,y),g){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};const{attrs:w,style:E,dimensions:P}=t;w.transform&&(P&&(E.transform=w.transform),delete w.transform),P&&(o!==void 0||l!==void 0||E.transform)&&(E.transformOrigin=tN(P,o!==void 0?o:.5,l!==void 0?l:.5)),e!==void 0&&(w.x=e),n!==void 0&&(w.y=n),i!==void 0&&(w.scale=i),u!==void 0&&eN(w,u,d,h,!1)}const gh=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),kx=()=>({...gh(),attrs:{}}),yh=t=>typeof t=="string"&&t.toLowerCase()==="svg";function Tx(t,{style:e,vars:n},i,o){Object.assign(t.style,e,o&&o.getProjectionStyles(i));for(const l in n)t.style.setProperty(l,n[l])}const Px=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function Rx(t,e,n,i){Tx(t,e,void 0,i);for(const o in e.attrs)t.setAttribute(Px.has(o)?o:lh(o),e.attrs[o])}const Kl={};function nN(t){Object.assign(Kl,t)}function Ax(t,{layout:e,layoutId:n}){return Ps.has(t)||t.startsWith("origin")||(e||n!==void 0)&&(!!Kl[t]||t==="opacity")}function vh(t,e,n){var i;const{style:o}=t,l={};for(const u in o)(Tt(o[u])||e.style&&Tt(e.style[u])||Ax(u,t)||((i=n==null?void 0:n.getValue(u))===null||i===void 0?void 0:i.liveStyle)!==void 0)&&(l[u]=o[u]);return l}function Nx(t,e,n){const i=vh(t,e,n);for(const o in t)if(Tt(t[o])||Tt(e[o])){const l=ki.indexOf(o)!==-1?"attr"+o.charAt(0).toUpperCase()+o.substring(1):o;i[l]=t[o]}return i}function rN(t,e){try{e.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{e.dimensions={x:0,y:0,width:0,height:0}}}const rv=["x","y","width","height","cx","cy","r"],sN={useVisualState:Sx({scrapeMotionValuesFromProps:Nx,createRenderState:kx,onUpdate:({props:t,prevProps:e,current:n,renderState:i,latestValues:o})=>{if(!n)return;let l=!!t.drag;if(!l){for(const d in o)if(Ps.has(d)){l=!0;break}}if(!l)return;let u=!e;if(e)for(let d=0;d<rv.length;d++){const h=rv[d];t[h]!==e[h]&&(u=!0)}u&&$e.read(()=>{rN(n,i),$e.render(()=>{mh(i,o,yh(n.tagName),t.transformTemplate),Rx(n,i)})})}})},iN={useVisualState:Sx({scrapeMotionValuesFromProps:vh,createRenderState:gh})};function Ox(t,e,n){for(const i in e)!Tt(e[i])&&!Ax(i,n)&&(t[i]=e[i])}function oN({transformTemplate:t},e){return D.useMemo(()=>{const n=gh();return ph(n,e,t),Object.assign({},n.vars,n.style)},[e])}function aN(t,e){const n=t.style||{},i={};return Ox(i,n,t),Object.assign(i,oN(t,e)),i}function lN(t,e){const n={},i=aN(t,e);return t.drag&&t.dragListener!==!1&&(n.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=t.drag===!0?"none":`pan-${t.drag==="x"?"y":"x"}`),t.tabIndex===void 0&&(t.onTap||t.onTapStart||t.whileTap)&&(n.tabIndex=0),n.style=i,n}function uN(t,e,n,i){const o=D.useMemo(()=>{const l=kx();return mh(l,e,yh(i),t.transformTemplate),{...l.attrs,style:{...l.style}}},[e]);if(t.style){const l={};Ox(l,t.style,t),o.style={...l,...o.style}}return o}function cN(t=!1){return(n,i,o,{latestValues:l},u)=>{const h=(ch(n)?uN:lN)(i,l,u,n),p=CA(i,typeof n=="string",t),g=n!==D.Fragment?{...p,...h,ref:o}:{},{children:y}=i,w=D.useMemo(()=>Tt(y)?y.get():y,[y]);return D.createElement(n,{...g,children:w})}}function dN(t,e){return function(i,{forwardMotionProps:o}={forwardMotionProps:!1}){const u={...ch(i)?sN:iN,preloadedFeatures:t,useRender:cN(o),createVisualElement:e,Component:i};return jA(u)}}function Lx(t,e){if(!Array.isArray(e))return!1;const n=e.length;if(n!==t.length)return!1;for(let i=0;i<n;i++)if(e[i]!==t[i])return!1;return!0}function uu(t,e,n){const i=t.getProps();return dh(i,e,n!==void 0?n:i.custom,t)}const fN=ih(()=>window.ScrollTimeline!==void 0);class hN{constructor(e){this.stop=()=>this.runAll("stop"),this.animations=e.filter(Boolean)}get finished(){return Promise.all(this.animations.map(e=>"finished"in e?e.finished:e))}getAll(e){return this.animations[0][e]}setAll(e,n){for(let i=0;i<this.animations.length;i++)this.animations[i][e]=n}attachTimeline(e,n){const i=this.animations.map(o=>{if(fN()&&o.attachTimeline)return o.attachTimeline(e);if(typeof n=="function")return n(o)});return()=>{i.forEach((o,l)=>{o&&o(),this.animations[l].stop()})}}get time(){return this.getAll("time")}set time(e){this.setAll("time",e)}get speed(){return this.getAll("speed")}set speed(e){this.setAll("speed",e)}get startTime(){return this.getAll("startTime")}get duration(){let e=0;for(let n=0;n<this.animations.length;n++)e=Math.max(e,this.animations[n].duration);return e}runAll(e){this.animations.forEach(n=>n[e]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class pN extends hN{then(e,n){return Promise.all(this.animations).then(e).catch(n)}}function wh(t,e){return t?t[e]||t.default||t:void 0}const ff=2e4;function jx(t){let e=0;const n=50;let i=t.next(e);for(;!i.done&&e<ff;)e+=n,i=t.next(e);return e>=ff?1/0:e}function xh(t){return typeof t=="function"}function sv(t,e){t.timeline=e,t.onfinish=null}const bh=t=>Array.isArray(t)&&typeof t[0]=="number",mN={linearEasing:void 0};function gN(t,e){const n=ih(t);return()=>{var i;return(i=mN[e])!==null&&i!==void 0?i:n()}}const Ql=gN(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Dx=(t,e,n=10)=>{let i="";const o=Math.max(Math.round(e/n),2);for(let l=0;l<o;l++)i+=t(wi(0,o-1,l))+", ";return`linear(${i.substring(0,i.length-2)})`};function Mx(t){return!!(typeof t=="function"&&Ql()||!t||typeof t=="string"&&(t in hf||Ql())||bh(t)||Array.isArray(t)&&t.every(Mx))}const _o=([t,e,n,i])=>`cubic-bezier(${t}, ${e}, ${n}, ${i})`,hf={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:_o([0,.65,.55,1]),circOut:_o([.55,0,1,.45]),backIn:_o([.31,.01,.66,-.59]),backOut:_o([.33,1.53,.69,.99])};function Ix(t,e){if(t)return typeof t=="function"&&Ql()?Dx(t,e):bh(t)?_o(t):Array.isArray(t)?t.map(n=>Ix(n,e)||hf.easeOut):hf[t]}const wn={x:!1,y:!1};function Fx(){return wn.x||wn.y}function yN(t,e,n){var i;if(t instanceof Element)return[t];if(typeof t=="string"){let o=document;const l=(i=void 0)!==null&&i!==void 0?i:o.querySelectorAll(t);return l?Array.from(l):[]}return Array.from(t)}function Ux(t,e){const n=yN(t),i=new AbortController,o={passive:!0,...e,signal:i.signal};return[n,o,()=>i.abort()]}function iv(t){return e=>{e.pointerType==="touch"||Fx()||t(e)}}function vN(t,e,n={}){const[i,o,l]=Ux(t,n),u=iv(d=>{const{target:h}=d,p=e(d);if(typeof p!="function"||!h)return;const g=iv(y=>{p(y),h.removeEventListener("pointerleave",g)});h.addEventListener("pointerleave",g,o)});return i.forEach(d=>{d.addEventListener("pointerenter",u,o)}),l}const Bx=(t,e)=>e?t===e?!0:Bx(t,e.parentElement):!1,Sh=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1,wN=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function xN(t){return wN.has(t.tagName)||t.tabIndex!==-1}const Co=new WeakSet;function ov(t){return e=>{e.key==="Enter"&&t(e)}}function _d(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}const bN=(t,e)=>{const n=t.currentTarget;if(!n)return;const i=ov(()=>{if(Co.has(n))return;_d(n,"down");const o=ov(()=>{_d(n,"up")}),l=()=>_d(n,"cancel");n.addEventListener("keyup",o,e),n.addEventListener("blur",l,e)});n.addEventListener("keydown",i,e),n.addEventListener("blur",()=>n.removeEventListener("keydown",i),e)};function av(t){return Sh(t)&&!Fx()}function SN(t,e,n={}){const[i,o,l]=Ux(t,n),u=d=>{const h=d.currentTarget;if(!av(d)||Co.has(h))return;Co.add(h);const p=e(d),g=(E,P)=>{window.removeEventListener("pointerup",y),window.removeEventListener("pointercancel",w),!(!av(E)||!Co.has(h))&&(Co.delete(h),typeof p=="function"&&p(E,{success:P}))},y=E=>{g(E,n.useGlobalTarget||Bx(h,E.target))},w=E=>{g(E,!1)};window.addEventListener("pointerup",y,o),window.addEventListener("pointercancel",w,o)};return i.forEach(d=>{!xN(d)&&d.getAttribute("tabindex")===null&&(d.tabIndex=0),(n.useGlobalTarget?window:d).addEventListener("pointerdown",u,o),d.addEventListener("focus",p=>bN(p,o),o)}),l}function EN(t){return t==="x"||t==="y"?wn[t]?null:(wn[t]=!0,()=>{wn[t]=!1}):wn.x||wn.y?null:(wn.x=wn.y=!0,()=>{wn.x=wn.y=!1})}const Vx=new Set(["width","height","top","left","right","bottom",...ki]);let Fl;function _N(){Fl=void 0}const jn={now:()=>(Fl===void 0&&jn.set(yt.isProcessing||wA.useManualTiming?yt.timestamp:performance.now()),Fl),set:t=>{Fl=t,queueMicrotask(_N)}};function Eh(t,e){t.indexOf(e)===-1&&t.push(e)}function _h(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}class Ch{constructor(){this.subscriptions=[]}add(e){return Eh(this.subscriptions,e),()=>_h(this.subscriptions,e)}notify(e,n,i){const o=this.subscriptions.length;if(o)if(o===1)this.subscriptions[0](e,n,i);else for(let l=0;l<o;l++){const u=this.subscriptions[l];u&&u(e,n,i)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function zx(t,e){return e?t*(1e3/e):0}const lv=30,CN=t=>!isNaN(parseFloat(t));class kN{constructor(e,n={}){this.version="11.18.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(i,o=!0)=>{const l=jn.now();this.updatedAt!==l&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(i),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),o&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(e),this.owner=n.owner}setCurrent(e){this.current=e,this.updatedAt=jn.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=CN(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,n){this.events[e]||(this.events[e]=new Ch);const i=this.events[e].add(n);return e==="change"?()=>{i(),$e.read(()=>{this.events.change.getSize()||this.stop()})}:i}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,n){this.passiveEffect=e,this.stopPassiveEffect=n}set(e,n=!0){!n||!this.passiveEffect?this.updateAndNotify(e,n):this.passiveEffect(e,this.updateAndNotify)}setWithVelocity(e,n,i){this.set(n),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-i}jump(e,n=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const e=jn.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>lv)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,lv);return zx(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(e){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=e(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Bo(t,e){return new kN(t,e)}function TN(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,Bo(n))}function PN(t,e){const n=uu(t,e);let{transitionEnd:i={},transition:o={},...l}=n||{};l={...l,...i};for(const u in l){const d=BA(l[u]);TN(t,u,d)}}function RN(t){return!!(Tt(t)&&t.add)}function pf(t,e){const n=t.getValue("willChange");if(RN(n))return n.add(e)}function $x(t){return t.props[wx]}const Wx=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,AN=1e-7,NN=12;function ON(t,e,n,i,o){let l,u,d=0;do u=e+(n-e)/2,l=Wx(u,i,o)-t,l>0?n=u:e=u;while(Math.abs(l)>AN&&++d<NN);return u}function na(t,e,n,i){if(t===e&&n===i)return Ht;const o=l=>ON(l,0,1,t,n);return l=>l===0||l===1?l:Wx(o(l),e,i)}const Hx=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,qx=t=>e=>1-t(1-e),Kx=na(.33,1.53,.69,.99),kh=qx(Kx),Qx=Hx(kh),Gx=t=>(t*=2)<1?.5*kh(t):.5*(2-Math.pow(2,-10*(t-1))),Th=t=>1-Math.sin(Math.acos(t)),Yx=qx(Th),Xx=Hx(Th),Jx=t=>/^0[^.\s]+$/u.test(t);function LN(t){return typeof t=="number"?t===0:t!==null?t==="none"||t==="0"||Jx(t):!0}const Ro=t=>Math.round(t*1e5)/1e5,Ph=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function jN(t){return t==null}const DN=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Rh=(t,e)=>n=>!!(typeof n=="string"&&DN.test(n)&&n.startsWith(t)||e&&!jN(n)&&Object.prototype.hasOwnProperty.call(n,e)),Zx=(t,e,n)=>i=>{if(typeof i!="string")return i;const[o,l,u,d]=i.match(Ph);return{[t]:parseFloat(o),[e]:parseFloat(l),[n]:parseFloat(u),alpha:d!==void 0?parseFloat(d):1}},MN=t=>Jn(0,255,t),Cd={...Ti,transform:t=>Math.round(MN(t))},ls={test:Rh("rgb","red"),parse:Zx("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:i=1})=>"rgba("+Cd.transform(t)+", "+Cd.transform(e)+", "+Cd.transform(n)+", "+Ro(Uo.transform(i))+")"};function IN(t){let e="",n="",i="",o="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),i=t.substring(5,7),o=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),i=t.substring(3,4),o=t.substring(4,5),e+=e,n+=n,i+=i,o+=o),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(i,16),alpha:o?parseInt(o,16)/255:1}}const mf={test:Rh("#"),parse:IN,transform:ls.transform},ni={test:Rh("hsl","hue"),parse:Zx("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:i=1})=>"hsla("+Math.round(t)+", "+Ln.transform(Ro(e))+", "+Ln.transform(Ro(n))+", "+Ro(Uo.transform(i))+")"},kt={test:t=>ls.test(t)||mf.test(t)||ni.test(t),parse:t=>ls.test(t)?ls.parse(t):ni.test(t)?ni.parse(t):mf.parse(t),transform:t=>typeof t=="string"?t:t.hasOwnProperty("red")?ls.transform(t):ni.transform(t)},FN=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function UN(t){var e,n;return isNaN(t)&&typeof t=="string"&&(((e=t.match(Ph))===null||e===void 0?void 0:e.length)||0)+(((n=t.match(FN))===null||n===void 0?void 0:n.length)||0)>0}const eb="number",tb="color",BN="var",VN="var(",uv="${}",zN=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Vo(t){const e=t.toString(),n=[],i={color:[],number:[],var:[]},o=[];let l=0;const d=e.replace(zN,h=>(kt.test(h)?(i.color.push(l),o.push(tb),n.push(kt.parse(h))):h.startsWith(VN)?(i.var.push(l),o.push(BN),n.push(h)):(i.number.push(l),o.push(eb),n.push(parseFloat(h))),++l,uv)).split(uv);return{values:n,split:d,indexes:i,types:o}}function nb(t){return Vo(t).values}function rb(t){const{split:e,types:n}=Vo(t),i=e.length;return o=>{let l="";for(let u=0;u<i;u++)if(l+=e[u],o[u]!==void 0){const d=n[u];d===eb?l+=Ro(o[u]):d===tb?l+=kt.transform(o[u]):l+=o[u]}return l}}const $N=t=>typeof t=="number"?0:t;function WN(t){const e=nb(t);return rb(t)(e.map($N))}const Ir={test:UN,parse:nb,createTransformer:rb,getAnimatableNone:WN},HN=new Set(["brightness","contrast","saturate","opacity"]);function qN(t){const[e,n]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[i]=n.match(Ph)||[];if(!i)return t;const o=n.replace(i,"");let l=HN.has(e)?1:0;return i!==n&&(l*=100),e+"("+l+o+")"}const KN=/\b([a-z-]*)\(.*?\)/gu,gf={...Ir,getAnimatableNone:t=>{const e=t.match(KN);return e?e.map(qN).join(" "):t}},QN={...hh,color:kt,backgroundColor:kt,outlineColor:kt,fill:kt,stroke:kt,borderColor:kt,borderTopColor:kt,borderRightColor:kt,borderBottomColor:kt,borderLeftColor:kt,filter:gf,WebkitFilter:gf},Ah=t=>QN[t];function sb(t,e){let n=Ah(t);return n!==gf&&(n=Ir),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const GN=new Set(["auto","none","0"]);function YN(t,e,n){let i=0,o;for(;i<t.length&&!o;){const l=t[i];typeof l=="string"&&!GN.has(l)&&Vo(l).values.length&&(o=t[i]),i++}if(o&&n)for(const l of e)t[l]=sb(n,o)}const cv=t=>t===Ti||t===pe,dv=(t,e)=>parseFloat(t.split(", ")[e]),fv=(t,e)=>(n,{transform:i})=>{if(i==="none"||!i)return 0;const o=i.match(/^matrix3d\((.+)\)$/u);if(o)return dv(o[1],e);{const l=i.match(/^matrix\((.+)\)$/u);return l?dv(l[1],t):0}},XN=new Set(["x","y","z"]),JN=ki.filter(t=>!XN.has(t));function ZN(t){const e=[];
vendor: 8,524 bytes, line 184
184return JN.forEach(n=>{const i=t.getValue(n);i!==void 0&&(e.push([n,i.get()]),i.set(n.startsWith("scale")?1:0))}),e}const bi={width:({x:t},{paddingLeft:e="0",paddingRight:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),height:({y:t},{paddingTop:e="0",paddingBottom:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:fv(4,13),y:fv(5,14)};bi.translateX=bi.x;bi.translateY=bi.y;const xs=new Set;let yf=!1,vf=!1;function ib(){if(vf){const t=Array.from(xs).filter(i=>i.needsMeasurement),e=new Set(t.map(i=>i.element)),n=new Map;e.forEach(i=>{const o=ZN(i);o.length&&(n.set(i,o),i.render())}),t.forEach(i=>i.measureInitialState()),e.forEach(i=>{i.render();const o=n.get(i);o&&o.forEach(([l,u])=>{var d;(d=i.getValue(l))===null||d===void 0||d.set(u)})}),t.forEach(i=>i.measureEndState()),t.forEach(i=>{i.suspendedScrollY!==void 0&&window.scrollTo(0,i.suspendedScrollY)})}vf=!1,yf=!1,xs.forEach(t=>t.complete()),xs.clear()}function ob(){xs.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(vf=!0)})}function eO(){ob(),ib()}class Nh{constructor(e,n,i,o,l,u=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...e],this.onComplete=n,this.name=i,this.motionValue=o,this.element=l,this.isAsync=u}scheduleResolve(){this.isScheduled=!0,this.isAsync?(xs.add(this),yf||(yf=!0,$e.read(ob),$e.resolveKeyframes(ib))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:n,element:i,motionValue:o}=this;for(let l=0;l<e.length;l++)if(e[l]===null)if(l===0){const u=o==null?void 0:o.get(),d=e[e.length-1];if(u!==void 0)e[0]=u;else if(i&&n){const h=i.readValue(n,d);h!=null&&(e[0]=h)}e[0]===void 0&&(e[0]=d),o&&u===void 0&&o.set(e[0])}else e[l]=e[l-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),xs.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,xs.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const ab=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t),tO=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function nO(t){const e=tO.exec(t);if(!e)return[,];const[,n,i,o]=e;return[`--${n??i}`,o]}function lb(t,e,n=1){const[i,o]=nO(t);if(!i)return;const l=window.getComputedStyle(e).getPropertyValue(i);if(l){const u=l.trim();return ab(u)?parseFloat(u):u}return fh(o)?lb(o,e,n+1):o}const ub=t=>e=>e.test(t),rO={test:t=>t==="auto",parse:t=>t},cb=[Ti,pe,Ln,Er,qA,HA,rO],hv=t=>cb.find(ub(t));class db extends Nh{constructor(e,n,i,o,l){super(e,n,i,o,l,!0)}readKeyframes(){const{unresolvedKeyframes:e,element:n,name:i}=this;if(!n||!n.current)return;super.readKeyframes();for(let h=0;h<e.length;h++){let p=e[h];if(typeof p=="string"&&(p=p.trim(),fh(p))){const g=lb(p,n.current);g!==void 0&&(e[h]=g),h===e.length-1&&(this.finalKeyframe=p)}}if(this.resolveNoneKeyframes(),!Vx.has(i)||e.length!==2)return;const[o,l]=e,u=hv(o),d=hv(l);if(u!==d)if(cv(u)&&cv(d))for(let h=0;h<e.length;h++){const p=e[h];typeof p=="string"&&(e[h]=parseFloat(p))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:n}=this,i=[];for(let o=0;o<e.length;o++)LN(e[o])&&i.push(o);i.length&&YN(e,i,n)}measureInitialState(){const{element:e,unresolvedKeyframes:n,name:i}=this;if(!e||!e.current)return;i==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=bi[i](e.measureViewportBox(),window.getComputedStyle(e.current)),n[0]=this.measuredOrigin;const o=n[n.length-1];o!==void 0&&e.getValue(i,o).jump(o,!1)}measureEndState(){var e;const{element:n,name:i,unresolvedKeyframes:o}=this;if(!n||!n.current)return;const l=n.getValue(i);l&&l.jump(this.measuredOrigin,!1);const u=o.length-1,d=o[u];o[u]=bi[i](n.measureViewportBox(),window.getComputedStyle(n.current)),d!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=d),!((e=this.removedTransforms)===null||e===void 0)&&e.length&&this.removedTransforms.forEach(([h,p])=>{n.getValue(h).set(p)}),this.resolveNoneKeyframes()}}const pv=(t,e)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(Ir.test(t)||t==="0")&&!t.startsWith("url("));function sO(t){const e=t[0];if(t.length===1)return!0;for(let n=0;n<t.length;n++)if(t[n]!==e)return!0}function iO(t,e,n,i){const o=t[0];if(o===null)return!1;if(e==="display"||e==="visibility")return!0;const l=t[t.length-1],u=pv(o,e),d=pv(l,e);return!u||!d?!1:sO(t)||(n==="spring"||xh(n))&&i}const oO=t=>t!==null;function cu(t,{repeat:e,repeatType:n="loop"},i){const o=t.filter(oO),l=e&&n!=="loop"&&e%2===1?0:o.length-1;return!l||i===void 0?o[l]:i}const aO=40;class fb{constructor({autoplay:e=!0,delay:n=0,type:i="keyframes",repeat:o=0,repeatDelay:l=0,repeatType:u="loop",...d}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=jn.now(),this.options={autoplay:e,delay:n,type:i,repeat:o,repeatDelay:l,repeatType:u,...d},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>aO?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&eO(),this._resolved}onKeyframesResolved(e,n){this.resolvedAt=jn.now(),this.hasAttemptedResolve=!0;const{name:i,type:o,velocity:l,delay:u,onComplete:d,onUpdate:h,isGenerator:p}=this.options;if(!p&&!iO(e,i,o,l))if(u)this.options.duration=0;else{h&&h(cu(e,this.options,n)),d&&d(),this.resolveFinishedPromise();return}const g=this.initPlayback(e,n);g!==!1&&(this._resolved={keyframes:e,finalKeyframe:n,...g},this.onPostResolved())}onPostResolved(){}then(e,n){return this.currentFinishedPromise.then(e,n)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(e=>{this.resolveFinishedPromise=e})}}const Ke=(t,e,n)=>t+(e-t)*n;function kd(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(e-t)*6*n:n<1/2?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function lO({hue:t,saturation:e,lightness:n,alpha:i}){t/=360,e/=100,n/=100;let o=0,l=0,u=0;if(!e)o=l=u=n;else{const d=n<.5?n*(1+e):n+e-n*e,h=2*n-d;o=kd(h,d,t+1/3),l=kd(h,d,t),u=kd(h,d,t-1/3)}return{red:Math.round(o*255),green:Math.round(l*255),blue:Math.round(u*255),alpha:i}}function Gl(t,e){return n=>n>0?e:t}const Td=(t,e,n)=>{const i=t*t,o=n*(e*e-i)+i;return o<0?0:Math.sqrt(o)},uO=[mf,ls,ni],cO=t=>uO.find(e=>e.test(t));function mv(t){const e=cO(t);if(!e)return!1;let n=e.parse(t);return e===ni&&(n=lO(n)),n}const gv=(t,e)=>{const n=mv(t),i=mv(e);if(!n||!i)return Gl(t,e);const o={...n};return l=>(o.red=Td(n.red,i.red,l),o.green=Td(n.green,i.green,l),o.blue=Td(n.blue,i.blue,l),o.alpha=Ke(n.alpha,i.alpha,l),ls.transform(o))},dO=(t,e)=>n=>e(t(n)),ra=(...t)=>t.reduce(dO),wf=new Set(["none","hidden"]);function fO(t,e){return wf.has(t)?n=>n<=0?t:e:n=>n>=1?e:t}function hO(t,e){return n=>Ke(t,e,n)}function Oh(t){return typeof t=="number"?hO:typeof t=="string"?fh(t)?Gl:kt.test(t)?gv:gO:Array.isArray(t)?hb:typeof t=="object"?kt.test(t)?gv:pO:Gl}function hb(t,e){const n=[...t],i=n.length,o=t.map((l,u)=>Oh(l)(l,e[u]));return l=>{for(let u=0;u<i;u++)n[u]=o[u](l);return n}}function pO(t,e){const n={...t,...e},i={};for(const o in n)t[o]!==void 0&&e[o]!==void 0&&(i[o]=Oh(t[o])(t[o],e[o]));return o=>{for(const l in i)n[l]=i[l](o);return n}}function mO(t,e){var n;const i=[],o={color:0,var:0,number:0};for(let l=0;l<e.values.length;l++){const u=e.types[l],d=t.indexes[u][o[u]],h=(n=t.values[d])!==null&&n!==void 0?n:0;i[l]=h,o[u]++}return i}const gO=(t,e)=>{const n=Ir.createTransformer(e),i=Vo(t),o=Vo(e);return i.indexes.var.length===o.indexes.var.length&&i.indexes.color.length===o.indexes.color.length&&i.indexes.number.length>=o.indexes.number.length?wf.has(t)&&!o.values.length||wf.has(e)&&!i.values.length?fO(t,e):ra(hb(mO(i,o),o.values),n):Gl(t,e)};function pb(t,e,n){return typeof t=="number"&&typeof e=="number"&&typeof n=="number"?Ke(t,e,n):Oh(t)(t,e)}const yO=5;function mb(t,e,n){const i=Math.max(e-yO,0);return zx(n-t(i),e-i)}const Ye={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},Pd=.001;function vO({duration:t=Ye.duration,bounce:e=Ye.bounce,velocity:n=Ye.velocity,mass:i=Ye.mass}){let o,l,u=1-e;u=Jn(Ye.minDamping,Ye.maxDamping,u),t=Jn(Ye.minDuration,Ye.maxDuration,
vendor: 61,918 bytes, line 184
184Xn(t)),u<1?(o=p=>{const g=p*u,y=g*t,w=g-n,E=xf(p,u),P=Math.exp(-y);return Pd-w/E*P},l=p=>{const y=p*u*t,w=y*n+n,E=Math.pow(u,2)*Math.pow(p,2)*t,P=Math.exp(-y),_=xf(Math.pow(p,2),u);return(-o(p)+Pd>0?-1:1)*((w-E)*P)/_}):(o=p=>{const g=Math.exp(-p*t),y=(p-n)*t+1;return-Pd+g*y},l=p=>{const g=Math.exp(-p*t),y=(n-p)*(t*t);return g*y});const d=5/t,h=xO(o,l,d);if(t=Yn(t),isNaN(h))return{stiffness:Ye.stiffness,damping:Ye.damping,duration:t};{const p=Math.pow(h,2)*i;return{stiffness:p,damping:u*2*Math.sqrt(i*p),duration:t}}}const wO=12;function xO(t,e,n){let i=n;for(let o=1;o<wO;o++)i=i-t(i)/e(i);return i}function xf(t,e){return t*Math.sqrt(1-e*e)}const bO=["duration","bounce"],SO=["stiffness","damping","mass"];function yv(t,e){return e.some(n=>t[n]!==void 0)}function EO(t){let e={velocity:Ye.velocity,stiffness:Ye.stiffness,damping:Ye.damping,mass:Ye.mass,isResolvedFromDuration:!1,...t};if(!yv(t,SO)&&yv(t,bO))if(t.visualDuration){const n=t.visualDuration,i=2*Math.PI/(n*1.2),o=i*i,l=2*Jn(.05,1,1-(t.bounce||0))*Math.sqrt(o);e={...e,mass:Ye.mass,stiffness:o,damping:l}}else{const n=vO(t);e={...e,...n,mass:Ye.mass},e.isResolvedFromDuration=!0}return e}function gb(t=Ye.visualDuration,e=Ye.bounce){const n=typeof t!="object"?{visualDuration:t,keyframes:[0,1],bounce:e}:t;let{restSpeed:i,restDelta:o}=n;const l=n.keyframes[0],u=n.keyframes[n.keyframes.length-1],d={done:!1,value:l},{stiffness:h,damping:p,mass:g,duration:y,velocity:w,isResolvedFromDuration:E}=EO({...n,velocity:-Xn(n.velocity||0)}),P=w||0,_=p/(2*Math.sqrt(h*g)),S=u-l,b=Xn(Math.sqrt(h/g)),O=Math.abs(S)<5;i||(i=O?Ye.restSpeed.granular:Ye.restSpeed.default),o||(o=O?Ye.restDelta.granular:Ye.restDelta.default);let k;if(_<1){const U=xf(b,_);k=z=>{const J=Math.exp(-_*b*z);return u-J*((P+_*b*S)/U*Math.sin(U*z)+S*Math.cos(U*z))}}else if(_===1)k=U=>u-Math.exp(-b*U)*(S+(P+b*S)*U);else{const U=b*Math.sqrt(_*_-1);k=z=>{const J=Math.exp(-_*b*z),B=Math.min(U*z,300);return u-J*((P+_*b*S)*Math.sinh(B)+U*S*Math.cosh(B))/U}}const A={calculatedDuration:E&&y||null,next:U=>{const z=k(U);if(E)d.done=U>=y;else{let J=0;_<1&&(J=U===0?Yn(P):mb(k,U,z));const B=Math.abs(J)<=i,Z=Math.abs(u-z)<=o;d.done=B&&Z}return d.value=d.done?u:z,d},toString:()=>{const U=Math.min(jx(A),ff),z=Dx(J=>A.next(U*J).value,U,30);return U+"ms "+z}};return A}function vv({keyframes:t,velocity:e=0,power:n=.8,timeConstant:i=325,bounceDamping:o=10,bounceStiffness:l=500,modifyTarget:u,min:d,max:h,restDelta:p=.5,restSpeed:g}){const y=t[0],w={done:!1,value:y},E=B=>d!==void 0&&B<d||h!==void 0&&B>h,P=B=>d===void 0?h:h===void 0||Math.abs(d-B)<Math.abs(h-B)?d:h;let _=n*e;const S=y+_,b=u===void 0?S:u(S);b!==S&&(_=b-y);const O=B=>-_*Math.exp(-B/i),k=B=>b+O(B),A=B=>{const Z=O(B),le=k(B);w.done=Math.abs(Z)<=p,w.value=w.done?b:le};let U,z;const J=B=>{E(w.value)&&(U=B,z=gb({keyframes:[w.value,P(w.value)],velocity:mb(k,B,w.value),damping:o,stiffness:l,restDelta:p,restSpeed:g}))};return J(0),{calculatedDuration:null,next:B=>{let Z=!1;return!z&&U===void 0&&(Z=!0,A(B),J(B)),U!==void 0&&B>=U?z.next(B-U):(!Z&&A(B),w)}}}const _O=na(.42,0,1,1),CO=na(0,0,.58,1),yb=na(.42,0,.58,1),kO=t=>Array.isArray(t)&&typeof t[0]!="number",TO={linear:Ht,easeIn:_O,easeInOut:yb,easeOut:CO,circIn:Th,circInOut:Xx,circOut:Yx,backIn:kh,backInOut:Qx,backOut:Kx,anticipate:Gx},wv=t=>{if(bh(t)){px(t.length===4);const[e,n,i,o]=t;return na(e,n,i,o)}else if(typeof t=="string")return TO[t];return t};function PO(t,e,n){const i=[],o=n||pb,l=t.length-1;for(let u=0;u<l;u++){let d=o(t[u],t[u+1]);if(e){const h=Array.isArray(e)?e[u]||Ht:e;d=ra(h,d)}i.push(d)}return i}function RO(t,e,{clamp:n=!0,ease:i,mixer:o}={}){const l=t.length;if(px(l===e.length),l===1)return()=>e[0];if(l===2&&e[0]===e[1])return()=>e[1];const u=t[0]===t[1];t[0]>t[l-1]&&(t=[...t].reverse(),e=[...e].reverse());const d=PO(e,i,o),h=d.length,p=g=>{if(u&&g<t[0])return e[0];let y=0;if(h>1)for(;y<t.length-2&&!(g<t[y+1]);y++);const w=wi(t[y],t[y+1],g);return d[y](w)};return n?g=>p(Jn(t[0],t[l-1],g)):p}function AO(t,e){const n=t[t.length-1];for(let i=1;i<=e;i++){const o=wi(0,e,i);t.push(Ke(n,1,o))}}function NO(t){const e=[0];return AO(e,t.length-1),e}function OO(t,e){return t.map(n=>n*e)}function LO(t,e){return t.map(()=>e||yb).splice(0,t.length-1)}function Yl({duration:t=300,keyframes:e,times:n,ease:i="easeInOut"}){const o=kO(i)?i.map(wv):wv(i),l={done:!1,value:e[0]},u=OO(n&&n.length===e.length?n:NO(e),t),d=RO(u,e,{ease:Array.isArray(o)?o:LO(e,o)});return{calculatedDuration:t,next:h=>(l.value=d(h),l.done=h>=t,l)}}const jO=t=>{const e=({timestamp:n})=>t(n);return{start:()=>$e.update(e,!0),stop:()=>Mr(e),now:()=>yt.isProcessing?yt.timestamp:jn.now()}},DO={decay:vv,inertia:vv,tween:Yl,keyframes:Yl,spring:gb},MO=t=>t/100;class Lh extends fb{constructor(e){super(e),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:h}=this.options;h&&h()};const{name:n,motionValue:i,element:o,keyframes:l}=this.options,u=(o==null?void 0:o.KeyframeResolver)||Nh,d=(h,p)=>this.onKeyframesResolved(h,p);this.resolver=new u(l,d,n,i,o),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(e){const{type:n="keyframes",repeat:i=0,repeatDelay:o=0,repeatType:l,velocity:u=0}=this.options,d=xh(n)?n:DO[n]||Yl;let h,p;d!==Yl&&typeof e[0]!="number"&&(h=ra(MO,pb(e[0],e[1])),e=[0,100]);const g=d({...this.options,keyframes:e});l==="mirror"&&(p=d({...this.options,keyframes:[...e].reverse(),velocity:-u})),g.calculatedDuration===null&&(g.calculatedDuration=jx(g));const{calculatedDuration:y}=g,w=y+o,E=w*(i+1)-o;return{generator:g,mirroredGenerator:p,mapPercentToKeyframes:h,calculatedDuration:y,resolvedDuration:w,totalDuration:E}}onPostResolved(){const{autoplay:e=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!e?this.pause():this.state=this.pendingPlayState}tick(e,n=!1){const{resolved:i}=this;if(!i){const{keyframes:B}=this.options;return{done:!0,value:B[B.length-1]}}const{finalKeyframe:o,generator:l,mirroredGenerator:u,mapPercentToKeyframes:d,keyframes:h,calculatedDuration:p,totalDuration:g,resolvedDuration:y}=i;if(this.startTime===null)return l.next(0);const{delay:w,repeat:E,repeatType:P,repeatDelay:_,onUpdate:S}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-g/this.speed,this.startTime)),n?this.currentTime=e:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(e-this.startTime)*this.speed;const b=this.currentTime-w*(this.speed>=0?1:-1),O=this.speed>=0?b<0:b>g;this.currentTime=Math.max(b,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=g);let k=this.currentTime,A=l;if(E){const B=Math.min(this.currentTime,g)/y;let Z=Math.floor(B),le=B%1;!le&&B>=1&&(le=1),le===1&&Z--,Z=Math.min(Z,E+1),!!(Z%2)&&(P==="reverse"?(le=1-le,_&&(le-=_/y)):P==="mirror"&&(A=u)),k=Jn(0,1,le)*y}const U=O?{done:!1,value:h[0]}:A.next(k);d&&(U.value=d(U.value));let{done:z}=U;!O&&p!==null&&(z=this.speed>=0?this.currentTime>=g:this.currentTime<=0);const J=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&z);return J&&o!==void 0&&(U.value=cu(h,this.options,o)),S&&S(U.value),J&&this.finish(),U}get duration(){const{resolved:e}=this;return e?Xn(e.calculatedDuration):0}get time(){return Xn(this.currentTime)}set time(e){e=Yn(e),this.currentTime=e,this.holdTime!==null||this.speed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.speed)}get speed(){return this.playbackSpeed}set speed(e){const n=this.playbackSpeed!==e;this.playbackSpeed=e,n&&(this.time=Xn(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:e=jO,onPlay:n,startTime:i}=this.options;this.driver||(this.driver=e(l=>this.tick(l))),n&&n();const o=this.driver.now();this.holdTime!==null?this.startTime=o-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=o):this.startTime=i??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var e;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(e=this.currentTime)!==null&&e!==void 0?e:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:e}=this.options;e&&e()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}}const IO=new Set(["opacity","clipPath","filter","transform"]);function FO(t,e,n,{delay:i=0,duration:o=300,repeat:l=0,repeatType:u="loop",ease:d="easeInOut",times:h}={}){const p={[e]:n};h&&(p.offset=h);const g=Ix(d,o);return Array.isArray(g)&&(p.easing=g),t.animate(p,{delay:i,duration:o,easing:Array.isArray(g)?"linear":g,fill:"both",iterations:l+1,direction:u==="reverse"?"alternate":"normal"})}const UO=ih(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Xl=10,BO=2e4;function VO(t){return xh(t.type)||t.type==="spring"||!Mx(t.ease)}function zO(t,e){const n=new Lh({...e,keyframes:t,repeat:0,delay:0,isGenerator:!0});let i={done:!1,value:t[0]};const o=[];let l=0;for(;!i.done&&l<BO;)i=n.sample(l),o.push(i.value),l+=Xl;return{times:void 0,keyframes:o,duration:l-Xl,ease:"linear"}}const vb={anticipate:Gx,backInOut:Qx,circInOut:Xx};function $O(t){return t in vb}class xv extends fb{constructor(e){super(e);const{name:n,motionValue:i,element:o,keyframes:l}=this.options;this.resolver=new db(l,(u,d)=>this.onKeyframesResolved(u,d),n,i,o),this.resolver.scheduleResolve()}initPlayback(e,n){let{duration:i=300,times:o,ease:l,type:u,motionValue:d,name:h,startTime:p}=this.options;if(!d.owner||!d.owner.current)return!1;if(typeof l=="string"&&Ql()&&$O(l)&&(l=vb[l]),VO(this.options)){const{onComplete:y,onUpdate:w,motionValue:E,element:P,..._}=this.options,S=zO(e,_);e=S.keyframes,e.length===1&&(e[1]=e[0]),i=S.duration,o=S.times,l=S.ease,u="keyframes"}const g=FO(d.owner.current,h,e,{...this.options,duration:i,times:o,ease:l});return g.startTime=p??this.calcStartTime(),this.pendingTimeline?(sv(g,this.pendingTimeline),this.pendingTimeline=void 0):g.onfinish=()=>{const{onComplete:y}=this.options;d.set(cu(e,this.options,n)),y&&y(),this.cancel(),this.resolveFinishedPromise()},{animation:g,duration:i,times:o,type:u,ease:l,keyframes:e}}get duration(){const{resolved:e}=this;if(!e)return 0;const{duration:n}=e;return Xn(n)}get time(){const{resolved:e}=this;if(!e)return 0;const{animation:n}=e;return Xn(n.currentTime||0)}set time(e){const{resolved:n}=this;if(!n)return;const{animation:i}=n;i.currentTime=Yn(e)}get speed(){const{resolved:e}=this;if(!e)return 1;const{animation:n}=e;return n.playbackRate}set speed(e){const{resolved:n}=this;if(!n)return;const{animation:i}=n;i.playbackRate=e}get state(){const{resolved:e}=this;if(!e)return"idle";const{animation:n}=e;return n.playState}get startTime(){const{resolved:e}=this;if(!e)return null;const{animation:n}=e;return n.startTime}attachTimeline(e){if(!this._resolved)this.pendingTimeline=e;else{const{resolved:n}=this;if(!n)return Ht;const{animation:i}=n;sv(i,e)}return Ht}play(){if(this.isStopped)return;const{resolved:e}=this;if(!e)return;const{animation:n}=e;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:e}=this;if(!e)return;const{animation:n}=e;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:e}=this;if(!e)return;const{animation:n,keyframes:i,duration:o,type:l,ease:u,times:d}=e;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:p,onUpdate:g,onComplete:y,element:w,...E}=this.options,P=new Lh({...E,keyframes:i,duration:o,type:l,ease:u,times:d,isGenerator:!0}),_=Yn(this.time);p.setWithVelocity(P.sample(_-Xl).value,P.sample(_).value,Xl)}const{onStop:h}=this.options;h&&h(),this.cancel()}complete(){const{resolved:e}=this;e&&e.animation.finish()}cancel(){const{resolved:e}=this;e&&e.animation.cancel()}static supports(e){const{motionValue:n,name:i,repeatDelay:o,repeatType:l,damping:u,type:d}=e;if(!n||!n.owner||!(n.owner.current instanceof HTMLElement))return!1;const{onUpdate:h,transformTemplate:p}=n.owner.getProps();return UO()&&i&&IO.has(i)&&!h&&!p&&!o&&l!=="mirror"&&u!==0&&d!=="inertia"}}const WO={type:"spring",stiffness:500,damping:25,restSpeed:10},HO=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),qO={type:"keyframes",duration:.8},KO={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},QO=(t,{keyframes:e})=>e.length>2?qO:Ps.has(t)?t.startsWith("scale")?HO(e[1]):WO:KO;function GO({when:t,delay:e,delayChildren:n,staggerChildren:i,staggerDirection:o,repeat:l,repeatType:u,repeatDelay:d,from:h,elapsed:p,...g}){return!!Object.keys(g).length}const jh=(t,e,n,i={},o,l)=>u=>{const d=wh(i,t)||{},h=d.delay||i.delay||0;let{elapsed:p=0}=i;p=p-Yn(h);let g={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:e.getVelocity(),...d,delay:-p,onUpdate:w=>{e.set(w),d.onUpdate&&d.onUpdate(w)},onComplete:()=>{u(),d.onComplete&&d.onComplete()},name:t,motionValue:e,element:l?void 0:o};GO(d)||(g={...g,...QO(t,g)}),g.duration&&(g.duration=Yn(g.duration)),g.repeatDelay&&(g.repeatDelay=Yn(g.repeatDelay)),g.from!==void 0&&(g.keyframes[0]=g.from);let y=!1;if((g.type===!1||g.duration===0&&!g.repeatDelay)&&(g.duration=0,g.delay===0&&(y=!0)),y&&!l&&e.get()!==void 0){const w=cu(g.keyframes,d);if(w!==void 0)return $e.update(()=>{g.onUpdate(w),g.onComplete()}),new pN([])}return!l&&xv.supports(g)?new xv(g):new Lh(g)};function YO({protectedKeys:t,needsAnimating:e},n){const i=t.hasOwnProperty(n)&&e[n]!==!0;return e[n]=!1,i}function wb(t,e,{delay:n=0,transitionOverride:i,type:o}={}){var l;let{transition:u=t.getDefaultTransition(),transitionEnd:d,...h}=e;i&&(u=i);const p=[],g=o&&t.animationState&&t.animationState.getState()[o];for(const y in h){const w=t.getValue(y,(l=t.latestValues[y])!==null&&l!==void 0?l:null),E=h[y];if(E===void 0||g&&YO(g,y))continue;const P={delay:n,...wh(u||{},y)};let _=!1;if(window.MotionHandoffAnimation){const b=$x(t);if(b){const O=window.MotionHandoffAnimation(b,y,$e);O!==null&&(P.startTime=O,_=!0)}}pf(t,y),w.start(jh(y,w,E,t.shouldReduceMotion&&Vx.has(y)?{type:!1}:P,t,_));const S=w.animation;S&&p.push(S)}return d&&Promise.all(p).then(()=>{$e.update(()=>{d&&PN(t,d)})}),p}function bf(t,e,n={}){var i;const o=uu(t,e,n.type==="exit"?(i=t.presenceContext)===null||i===void 0?void 0:i.custom:void 0);let{transition:l=t.getDefaultTransition()||{}}=o||{};n.transitionOverride&&(l=n.transitionOverride);const u=o?()=>Promise.all(wb(t,o,n)):()=>Promise.resolve(),d=t.variantChildren&&t.variantChildren.size?(p=0)=>{const{delayChildren:g=0,staggerChildren:y,staggerDirection:w}=l;return XO(t,e,g+p,y,w,n)}:()=>Promise.resolve(),{when:h}=l;if(h){const[p,g]=h==="beforeChildren"?[u,d]:[d,u];return p().then(()=>g())}else return Promise.all([u(),d(n.delay)])}function XO(t,e,n=0,i=0,o=1,l){const u=[],d=(t.variantChildren.size-1)*i,h=o===1?(p=0)=>p*i:(p=0)=>d-p*i;return Array.from(t.variantChildren).sort(JO).forEach((p,g)=>{p.notify("AnimationStart",e),u.push(bf(p,e,{...l,delay:n+h(g)}).then(()=>p.notify("AnimationComplete",e)))}),Promise.all(u)}function JO(t,e){return t.sortNodePosition(e)}function ZO(t,e,n={}){t.notify("AnimationStart",e);let i;if(Array.isArray(e)){const o=e.map(l=>bf(t,l,n));i=Promise.all(o)}else if(typeof e=="string")i=bf(t,e,n);else{const o=typeof e=="function"?uu(t,e,n.custom):e;i=Promise.all(wb(t,o,n))}return i.then(()=>{t.notify("AnimationComplete",e)})}const e2=ah.length;function xb(t){if(!t)return;if(!t.isControllingVariants){const n=t.parent?xb(t.parent)||{}:{};return t.props.initial!==void 0&&(n.initial=t.props.initial),n}const e={};for(let n=0;n<e2;n++){const i=ah[n],o=t.props[i];(Fo(o)||o===!1)&&(e[i]=o)}return e}const t2=[...oh].reverse(),n2=oh.length;function r2(t){return e=>Promise.all(e.map(({animation:n,options:i})=>ZO(t,n,i)))}function s2(t){let e=r2(t),n=bv(),i=!0;const o=h=>(p,g)=>{var y;const w=uu(t,g,h==="exit"?(y=t.presenceContext)===null||y===void 0?void 0:y.custom:void 0);if(w){const{transition:E,transitionEnd:P,..._}=w;p={...p,..._,...P}}return p};function l(h){e=h(t)}function u(h){const{props:p}=t,g=xb(t.parent)||{},y=[],w=new Set;let E={},P=1/0;for(let S=0;S<n2;S++){const b=t2[S],O=n[b],k=p[b]!==void 0?p[b]:g[b],A=Fo(k),U=b===h?O.isActive:null;U===!1&&(P=S);let z=k===g[b]&&k!==p[b]&&A;if(z&&i&&t.manuallyAnimateOnMount&&(z=!1),O.protectedKeys={...E},!O.isActive&&U===null||!k&&!O.prevProp||au(k)||typeof k=="boolean")continue;const J=i2(O.prevProp,k);let B=J||b===h&&O.isActive&&!z&&A||S>P&&A,Z=!1;const le=Array.isArray(k)?k:[k];let be=le.reduce(o(b),{});U===!1&&(be={});const{prevResolvedValues:De={}}=O,Se={...De,...be},Ce=he=>{B=!0,w.has(he)&&(Z=!0,w.delete(he)),O.needsAnimating[he]=!0;const Q=t.getValue(he);Q&&(Q.liveStyle=!1)};for(const he in Se){const Q=be[he],oe=De[he];if(E.hasOwnProperty(he))continue;let V=!1;df(Q)&&df(oe)?V=!Lx(Q,oe):V=Q!==oe,V?Q!=null?Ce(he):w.add(he):Q!==void 0&&w.has(he)?Ce(he):O.protectedKeys[he]=!0}O.prevProp=k,O.prevResolvedValues=be,O.isActive&&(E={...E,...be}),i&&t.blockInitialAnimation&&(B=!1),B&&(!(z&&J)||Z)&&y.push(...le.map(he=>({animation:he,options:{type:b}})))}if(w.size){const S={};w.forEach(b=>{const O=t.getBaseTarget(b),k=t.getValue(b);k&&(k.liveStyle=!0),S[b]=O??null}),y.push({animation:S})}let _=!!y.length;return i&&(p.initial===!1||p.initial===p.animate)&&!t.manuallyAnimateOnMount&&(_=!1),i=!1,_?e(y):Promise.resolve()}function d(h,p){var g;if(n[h].isActive===p)return Promise.resolve();(g=t.variantChildren)===null||g===void 0||g.forEach(w=>{var E;return(E=w.animationState)===null||E===void 0?void 0:E.setActive(h,p)}),n[h].isActive=p;const y=u(h);for(const w in n)n[w].protectedKeys={};return y}return{animateChanges:u,setActive:d,setAnimateFunction:l,getState:()=>n,reset:()=>{n=bv(),i=!0}}}function i2(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!Lx(e,t):!1}function ns(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function bv(){return{animate:ns(!0),whileInView:ns(),whileHover:ns(),whileTap:ns(),whileDrag:ns(),whileFocus:ns(),exit:ns()}}class Br{constructor(e){this.isMounted=!1,this.node=e}update(){}}class o2 extends Br{constructor(e){super(e),e.animationState||(e.animationState=s2(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();au(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:n}=this.node.prevProps||{};e!==n&&this.updateAnimationControlsSubscription()}unmount(){var e;this.node.animationState.reset(),(e=this.unmountControls)===null||e===void 0||e.call(this)}}let a2=0;class l2 extends Br{constructor(){super(...arguments),this.id=a2++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:n}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===i)return;const o=this.node.animationState.setActive("exit",!e);n&&!e&&o.then(()=>n(this.id))}mount(){const{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}}const u2={animation:{Feature:o2},exit:{Feature:l2}};function zo(t,e,n,i={passive:!0}){return t.addEventListener(e,n,i),()=>t.removeEventListener(e,n)}function sa(t){return{point:{x:t.pageX,y:t.pageY}}}const c2=t=>e=>Sh(e)&&t(e,sa(e));function Ao(t,e,n,i){return zo(t,e,c2(n),i)}const Sv=(t,e)=>Math.abs(t-e);function d2(t,e){const n=Sv(t.x,e.x),i=Sv(t.y,e.y);return Math.sqrt(n**2+i**2)}class bb{constructor(e,n,{transformPagePoint:i,contextWindow:o,dragSnapToOrigin:l=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const y=Ad(this.lastMoveEventInfo,this.history),w=this.startEvent!==null,E=d2(y.offset,{x:0,y:0})>=3;if(!w&&!E)return;const{point:P}=y,{timestamp:_}=yt;this.history.push({...P,timestamp:_});const{onStart:S,onMove:b}=this.handlers;w||(S&&S(this.lastMoveEvent,y),this.startEvent=this.lastMoveEvent),b&&b(this.lastMoveEvent,y)},this.handlePointerMove=(y,w)=>{this.lastMoveEvent=y,this.lastMoveEventInfo=Rd(w,this.transformPagePoint),$e.update(this.updatePoint,!0)},this.handlePointerUp=(y,w)=>{this.end();const{onEnd:E,onSessionEnd:P,resumeAnimation:_}=this.handlers;if(this.dragSnapToOrigin&&_&&_(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const S=Ad(y.type==="pointercancel"?this.lastMoveEventInfo:Rd(w,this.transformPagePoint),this.history);this.startEvent&&E&&E(y,S),P&&P(y,S)},!Sh(e))return;this.dragSnapToOrigin=l,this.handlers=n,this.transformPagePoint=i,this.contextWindow=o||window;const u=sa(e),d=Rd(u,this.transformPagePoint),{point:h}=d,{timestamp:p}=yt;this.history=[{...h,timestamp:p}];const{onSessionStart:g}=n;g&&g(e,Ad(d,this.history)),this.removeListeners=ra(Ao(this.contextWindow,"pointermove",this.handlePointerMove),Ao(this.contextWindow,"pointerup",this.handlePointerUp),Ao(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),Mr(this.updatePoint)}}function Rd(t,e){return e?{point:e(t.point)}:t}function Ev(t,e){return{x:t.x-e.x,y:t.y-e.y}}function Ad({point:t},e){return{point:t,delta:Ev(t,Sb(e)),offset:Ev(t,f2(e)),velocity:h2(e,.1)}}function f2(t){return t[0]}function Sb(t){return t[t.length-1]}function h2(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,i=null;const o=Sb(t);for(;n>=0&&(i=t[n],!(o.timestamp-i.timestamp>Yn(e)));)n--;if(!i)return{x:0,y:0};const l=Xn(o.timestamp-i.timestamp);if(l===0)return{x:0,y:0};const u={x:(o.x-i.x)/l,y:(o.y-i.y)/l};return u.x===1/0&&(u.x=0),u.y===1/0&&(u.y=0),u}const Eb=1e-4,p2=1-Eb,m2=1+Eb,_b=.01,g2=0-_b,y2=0+_b;function qt(t){return t.max-t.min}function v2(t,e,n){return Math.abs(t-e)<=n}function _v(t,e,n,i=.5){t.origin=i,t.originPoint=Ke(e.min,e.max,t.origin),t.scale=qt(n)/qt(e),t.translate=Ke(n.min,n.max,t.origin)-t.originPoint,(t.scale>=p2&&t.scale<=m2||isNaN(t.scale))&&(t.scale=1),(t.translate>=g2&&t.translate<=y2||isNaN(t.translate))&&(t.translate=0)}function No(t,e,n,i){_v(t.x,e.x,n.x,i?i.originX:void 0),_v(t.y,e.y,n.y,i?i.originY:void 0)}function Cv(t,e,n){t.min=n.min+e.min,t.max=t.min+qt(e)}function w2(t,e,n){Cv(t.x,e.x,n.x),Cv(t.y,e.y,n.y)}function kv(t,e,n){t.min=e.min-n.min,t.max=t.min+qt(e)}function Oo(t,e,n){kv(t.x,e.x,n.x),kv(t.y,e.y,n.y)}function x2(t,{min:e,max:n},i){return e!==void 0&&t<e?t=i?Ke(e,t,i.min):Math.max(t,e):n!==void 0&&t>n&&(t=i?Ke(n,t,i.max):Math.min(t,n)),t}function Tv(t,e,n){return{min:e!==void 0?t.min+e:void 0,max:n!==void 0?t.max+n-(t.max-t.min):void 0}}function b2(t,{top:e,left:n,bottom:i,right:o}){return{x:Tv(t.x,n,o),y:Tv(t.y,e,i)}}function Pv(t,e){let n=e.min-t.min,i=e.max-t.max;return e.max-e.min<t.max-t.min&&([n,i]=[i,n]),{min:n,max:i}}function S2(t,e){return{x:Pv(t.x,e.x),y:Pv(t.y,e.y)}}function E2(t,e){let n=.5;const i=qt(t),o=qt(e);return o>i?n=wi(e.min,e.max-i,t.min):i>o&&(n=wi(t.min,t.max-o,e.min)),Jn(0,1,n)}function _2(t,e){const n={};return e.min!==void 0&&(n.min=e.min-t.min),e.max!==void 0&&(n.max=e.max-t.min),n}const Sf=.35;function C2(t=Sf){return t===!1?t=0:t===!0&&(t=Sf),{x:Rv(t,"left","right"),y:Rv(t,"top","bottom")}}function Rv(t,e,n){return{min:Av(t,e),max:Av(t,n)}}function Av(t,e){return typeof t=="number"?t:t[e]||0}const Nv=()=>({translate:0,scale:1,origin:0,originPoint:0}),ri=()=>({x:Nv(),y:Nv()}),Ov=()=>({min:0,max:0}),Ze=()=>({x:Ov(),y:Ov()});function rn(t){return[t("x"),t("y")]}function Cb({top:t,left:e,right:n,bottom:i}){return{x:{min:e,max:n},y:{min:t,max:i}}}function k2({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function T2(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),i=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:i.y,right:i.x}}function Nd(t){return t===void 0||t===1}function Ef({scale:t,scaleX:e,scaleY:n}){return!Nd(t)||!Nd(e)||!Nd(n)}function ss(t){return Ef(t)||kb(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function kb(t){return Lv(t.x)||Lv(t.y)}function Lv(t){return t&&t!=="0%"}function Jl(t,e,n){const i=t-n,o=e*i;return n+o}function jv(t,e,n,i,o){return o!==void 0&&(t=Jl(t,o,i)),Jl(t,n,i)+e}function _f(t,e=0,n=1,i,o){t.min=jv(t.min,e,n,i,o),t.max=jv(t.max,e,n,i,o)}function Tb(t,{x:e,y:n}){_f(t.x,e.translate,e.scale,e.originPoint),_f(t.y,n.translate,n.scale,n.originPoint)}const Dv=.999999999999,Mv=1.0000000000001;function P2(t,e,n,i=!1){const o=n.length;if(!o)return;e.x=e.y=1;let l,u;for(let d=0;d<o;d++){l=n[d],u=l.projectionDelta;const{visualElement:h}=l.options;h&&h.props.style&&h.props.style.display==="contents"||(i&&l.options.layoutScroll&&l.scroll&&l!==l.root&&ii(t,{x:-l.scroll.offset.x,y:-l.scroll.offset.y}),u&&(e.x*=u.x.scale,e.y*=u.y.scale,Tb(t,u)),i&&ss(l.latestValues)&&ii(t,l.latestValues))}e.x<Mv&&e.x>Dv&&(e.x=1),e.y<Mv&&e.y>Dv&&(e.y=1)}function si(t,e){t.min=t.min+e,t.max=t.max+e}function Iv(t,e,n,i,o=.5){const l=Ke(t.min,t.max,o);_f(t,e,n,l,i)}function ii(t,e){Iv(t.x,e.x,e.scaleX,e.scale,e.originX),Iv(t.y,e.y,e.scaleY,e.scale,e.originY)}function Pb(t,e){return Cb(T2(t.getBoundingClientRect(),e))}function R2(t,e,n){const i=Pb(t,n),{scroll:o}=e;return o&&(si(i.x,o.offset.x),si(i.y,o.offset.y)),i}const Rb=({current:t})=>t?t.ownerDocument.defaultView:null,A2=new WeakMap;class N2{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Ze(),this.visualElement=e}start(e,{snapToCursor:n=!1}={}){const{presenceContext:i}=this.visualElement;if(i&&i.isPresent===!1)return;const o=g=>{const{dragSnapToOrigin:y}=this.getProps();y?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(sa(g).point)},l=(g,y)=>{const{drag:w,dragPropagation:E,onDragStart:P}=this.getProps();if(w&&!E&&(this.openDragLock&&this.openDragLock(),this.openDragLock=EN(w),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),rn(S=>{let b=this.getAxisMotionValue(S).get()||0;if(Ln.test(b)){const{projection:O}=this.visualElement;if(O&&O.layout){const k=O.layout.layoutBox[S];k&&(b=qt(k)*(parseFloat(b)/100))}}this.originPoint[S]=b}),P&&$e.postRender(()=>P(g,y)),pf(this.visualElement,"transform");const{animationState:_}=this.visualElement;_&&_.setActive("whileDrag",!0)},u=(g,y)=>{const{dragPropagation:w,dragDirectionLock:E,onDirectionLock:P,onDrag:_}=this.getProps();if(!w&&!this.openDragLock)return;const{offset:S}=y;if(E&&this.currentDirection===null){this.currentDirection=O2(S),this.currentDirection!==null&&P&&P(this.currentDirection);return}this.updateAxis("x",y.point,S),this.updateAxis("y",y.point,S),this.visualElement.render(),_&&_(g,y)},d=(g,y)=>this.stop(g,y),h=()=>rn(g=>{var y;return this.getAnimationState(g)==="paused"&&((y=this.getAxisMotionValue(g).animation)===null||y===void 0?void 0:y.play())}),{dragSnapToOrigin:p}=this.getProps();this.panSession=new bb(e,{onSessionStart:o,onStart:l,onMove:u,onSessionEnd:d,resumeAnimation:h},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:p,contextWindow:Rb(this.visualElement)})}stop(e,n){const i=this.isDragging;if(this.cancel(),!i)return;const{velocity:o}=n;this.startAnimation(o);const{onDragEnd:l}=this.getProps();l&&$e.postRender(()=>l(e,n))}cancel(){this.isDragging=!1;const{projection:e,animationState:n}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:i}=this.getProps();!i&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(e,n,i){const{drag:o}=this.getProps();if(!i||!Cl(e,o,this.currentDirection))return;const l=this.getAxisMotionValue(e);let u=this.originPoint[e]+i[e];this.constraints&&this.constraints[e]&&(u=x2(u,this.constraints[e],this.elastic[e])),l.set(u)}resolveConstraints(){var e;const{dragConstraints:n,dragElastic:i}=this.getProps(),o=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(e=this.visualElement.projection)===null||e===void 0?void 0:e.layout,l=this.constraints;n&&ti(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&o?this.constraints=b2(o.layoutBox,n):this.constraints=!1,this.elastic=C2(i),l!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&rn(u=>{this.constraints!==!1&&this.getAxisMotionValue(u)&&(this.constraints[u]=_2(o.layoutBox[u],this.constraints[u]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:n}=this.getProps();if(!e||!ti(e))return!1;const i=e.current,{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const l=R2(i,o.root,this.visualElement.getTransformPagePoint());let u=S2(o.layout.layoutBox,l);if(n){const d=n(k2(u));this.hasMutatedConstraints=!!d,d&&(u=Cb(d))}return u}startAnimation(e){const{drag:n,dragMomentum:i,dragElastic:o,dragTransition:l,dragSnapToOrigin:u,onDragTransitionEnd:d}=this.getProps(),h=this.constraints||{},p=rn(g=>{if(!Cl(g,n,this.currentDirection))return;let y=h&&h[g]||{};u&&(y={min:0,max:0});const w=o?200:1e6,E=o?40:1e7,P={type:"inertia",velocity:i?e[g]:0,bounceStiffness:w,bounceDamping:E,timeConstant:750,restDelta:1,restSpeed:10,...l,...y};return this.startAxisValueAnimation(g,P)});return Promise.all(p).then(d)}startAxisValueAnimation(e,n){const i=this.getAxisMotionValue(e);return pf(this.visualElement,e),i.start(jh(e,i,0,n,this.visualElement,!1))}stopAnimation(){rn(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){rn(e=>{var n;return(n=this.getAxisMotionValue(e).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(e){var n;return(n=this.getAxisMotionValue(e).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(e){const n=`_drag${e.toUpperCase()}`,i=this.visualElement.getProps(),o=i[n];return o||this.visualElement.getValue(e,(i.initial?i.initial[e]:void 0)||0)}snapToCursor(e){rn(n=>{const{drag:i}=this.getProps();if(!Cl(n,i,this.currentDirection))return;const{projection:o}=this.visualElement,l=this.getAxisMotionValue(n);if(o&&o.layout){const{min:u,max:d}=o.layout.layoutBox[n];l.set(e[n]-Ke(u,d,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:n}=this.getProps(),{projection:i}=this.visualElement;if(!ti(n)||!i||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};rn(u=>{const d=this.getAxisMotionValue(u);if(d&&this.constraints!==!1){const h=d.get();o[u]=E2({min:h,max:h},this.constraints[u])}});const{transformTemplate:l}=this.visualElement.getProps();this.visualElement.current.style.transform=l?l({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.resolveConstraints(),rn(u=>{if(!Cl(u,e,null))return;const d=this.getAxisMotionValue(u),{min:h,max:p}=this.constraints[u];d.set(Ke(h,p,o[u]))})}addListeners(){if(!this.visualElement.current)return;A2.set(this.visualElement,this);const e=this.visualElement.current,n=Ao(e,"pointerdown",h=>{const{drag:p,dragListener:g=!0}=this.getProps();p&&g&&this.start(h)}),i=()=>{const{dragConstraints:h}=this.getProps();ti(h)&&h.current&&(this.constraints=this.resolveRefConstraints())},{projection:o}=this.visualElement,l=o.addEventListener("measure",i);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),$e.read(i);const u=zo(window,"resize",()=>this.scalePositionWithinConstraints()),d=o.addEventListener("didUpdate",(({delta:h,hasLayoutChanged:p})=>{this.isDragging&&p&&(rn(g=>{const y=this.getAxisMotionValue(g);y&&(this.originPoint[g]+=h[g].translate,y.set(y.get()+h[g].translate))}),this.visualElement.render())}));return()=>{u(),n(),l(),d&&d()}}getProps(){const e=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:i=!1,dragPropagation:o=!1,dragConstraints:l=!1,dragElastic:u=Sf,dragMomentum:d=!0}=e;return{...e,drag:n,dragDirectionLock:i,dragPropagation:o,dragConstraints:l,dragElastic:u,dragMomentum:d}}}function Cl(t,e,n){return(e===!0||e===t)&&(n===null||n===t)}function O2(t,e=10){let n=null;return Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x"),n}class L2 extends Br{constructor(e){super(e),this.removeGroupControls=Ht,this.removeListeners=Ht,this.controls=new N2(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Ht}unmount(){this.removeGroupControls(),this.removeListeners()}}const Fv=t=>(e,n)=>{t&&$e.postRender(()=>t(e,n))};class j2 extends Br{constructor(){super(...arguments),this.removePointerDownListener=Ht}onPointerDown(e){this.session=new bb(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Rb(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:n,onPan:i,onPanEnd:o}=this.node.getProps();return{onSessionStart:Fv(e),onStart:Fv(n),onMove:i,onEnd:(l,u)=>{delete this.session,o&&$e.postRender(()=>o(l,u))}}}mount(){this.removePointerDownListener=Ao(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const Ul={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Uv(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const vo={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(pe.test(t))t=parseFloat(t);else return t;const n=Uv(t,e.target.x),i=Uv(t,e.target.y);return`${n}% ${i}%`}},D2={correct:(t,{treeScale:e,projectionDelta:n})=>{const i=t,o=Ir.parse(t);if(o.length>5)return i;const l=Ir.createTransformer(t),u=typeof o[0]!="number"?1:0,d=n.x.scale*e.x,h=n.y.scale*e.y;o[0+u]/=d,o[1+u]/=h;const p=Ke(d,h,.5);return typeof o[2+u]=="number"&&(o[2+u]/=p),typeof o[3+u]=="number"&&(o[3+u]/=p),l(o)}};class M2 extends D.Component{componentDidMount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:i,layoutId:o}=this.props,{projection:l}=e;nN(I2),l&&(n.group&&n.group.add(l),i&&i.register&&o&&i.register(l),l.root.didUpdate(),l.addEventListener("animationComplete",()=>{this.safeToRemove()}),l.setOptions({...l.options,onExitComplete:()=>this.safeToRemove()})),Ul.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:n,visualElement:i,drag:o,isPresent:l}=this.props,u=i.projection;return u&&(u.isPresent=l,o||e.layoutDependency!==n||n===void 0?u.willUpdate():this.safeToRemove(),e.isPresent!==l&&(l?u.promote():u.relegate()||$e.postRender(()=>{const d=u.getStack();(!d||!d.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),uh.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:i}=this.props,{projection:o}=e;o&&(o.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(o),i&&i.deregister&&i.deregister(o))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function Ab(t){const[e,n]=fx(),i=D.useContext(eh);return x.jsx(M2,{...t,layoutGroup:i,switchLayoutGroup:D.useContext(xx),isPresent:e,safeToRemove:n})}const I2={borderRadius:{...vo,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:vo,borderTopRightRadius:vo,borderBottomLeftRadius:vo,borderBottomRightRadius:vo,boxShadow:D2};function F2(t,e,n){const i=Tt(t)?t:Bo(t);return i.start(jh("",i,e,n)),i.animation}function U2(t){return t instanceof SVGElement&&t.tagName!=="svg"}const B2=(t,e)=>t.depth-e.depth;class V2{constructor(){this.children=[],this.isDirty=!1}add(e){Eh(this.children,e),this.isDirty=!0}remove(e){_h(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(B2),this.isDirty=!1,this.children.forEach(e)}}function z2(t,e){const n=jn.now(),i=({timestamp:o})=>{const l=o-n;l>=e&&(Mr(i),t(l-e))};return $e.read(i,!0),()=>Mr(i)}const Nb=["TopLeft","TopRight","BottomLeft","BottomRight"],$2=Nb.length,Bv=t=>typeof t=="string"?parseFloat(t):t,Vv=t=>typeof t=="number"||pe.test(t);function W2(t,e,n,i,o,l){o?(t.opacity=Ke(0,n.opacity!==void 0?n.opacity:1,H2(i)),t.opacityExit=Ke(e.opacity!==void 0?e.opacity:1,0,q2(i))):l&&(t.opacity=Ke(e.opacity!==void 0?e.opacity:1,n.opacity!==void 0?n.opacity:1,i));for(let u=0;u<$2;u++){const d=`border${Nb[u]}Radius`;let h=zv(e,d),p=zv(n,d);if(h===void 0&&p===void 0)continue;h||(h=0),p||(p=0),h===0||p===0||Vv(h)===Vv(p)?(t[d]=Math.max(Ke(Bv(h),Bv(p),i),0),(Ln.test(p)||Ln.test(h))&&(t[d]+="%")):t[d]=p}(e.rotate||n.rotate)&&(t.rotate=Ke(e.rotate||0,n.rotate||0,i))}function zv(t,e){return t[e]!==void 0?t[e]:t.borderRadius}const H2=Ob(0,.5,Yx),q2=Ob(.5,.95,Ht);function Ob(t,e,n){return i=>i<t?0:i>e?1:n(wi(t,e,i))}function $v(t,e){t.min=e.min,t.max=e.max}function nn(t,e){$v(t.x,e.x),$v(t.y,e.y)}function Wv(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function Hv(t,e,n,i,o){return t-=e,t=Jl(t,1/n,i),o!==void 0&&(t=Jl(t,1/o,i)),t}function K2(t,e=0,n=1,i=.5,o,l=t,u=t){if(Ln.test(e)&&(e=parseFloat(e),e=Ke(u.min,u.max,e/100)-u.min),typeof e!="number")return;let d=Ke(l.min,l.max,i);t===l&&(d-=e),t.min=Hv(t.min,e,n,d,o),t.max=Hv(t.max,e,n,d,o)}function qv(t,e,[n,i,o],l,u){K2(t,e[n],e[i],e[o],e.scale,l,u)}const Q2=["x","scaleX","originX"],G2=["y","scaleY","originY"];function Kv(t,e,n,i){qv(t.x,e,Q2,n?n.x:void 0,i?i.x:void 0),qv(t.y,e,G2,n?n.y:void 0,i?i.y:void 0)}function Qv(t){return t.translate===0&&t.scale===1}function Lb(t){return Qv(t.x)&&Qv(t.y)}function Gv(t,e){return t.min===e.min&&t.max===e.max}function Y2(t,e){return Gv(t.x,e.x)&&Gv(t.y,e.y)}function Yv(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function jb(t,e){return Yv(t.x,e.x)&&Yv(t.y,e.y)}function Xv(t){return qt(t.x)/qt(t.y)}function Jv(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class X2{constructor(){this.members=[]}add(e){Eh(this.members,e),e.scheduleRender()}remove(e){if(_h(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(e){const n=this.members.findIndex(o=>e===o);if(n===0)return!1;let i;for(let o=n;o>=0;o--){const l=this.members[o];if(l.isPresent!==!1){i=l;break}}return i?(this.promote(i),!0):!1}promote(e,n){const i=this.lead;if(e!==i&&(this.prevLead=i,this.lead=e,e.show(),i)){i.instance&&i.scheduleRender(),e.scheduleRender(),e.resumeFrom=i,n&&(e.resumeFrom.preserveOpacity=!0),i.snapshot&&(e.snapshot=i.snapshot,e.snapshot.latestValues=i.animationValues||i.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:o}=e.options;o===!1&&i.hide()}}exitAnimationComplete(){this.members.forEach(e=>{const{options:n,resumingFrom:i}=e;n.onExitComplete&&n.onExitComplete(),i&&i.options.onExitComplete&&i.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function J2(t,e,n){let i="";const o=t.x.translate/e.x,l=t.y.translate/e.y,u=(n==null?void 0:n.z)||0;if((o||l||u)&&(i=`translate3d(${o}px, ${l}px, ${u}px) `),(e.x!==1||e.y!==1)&&(i+=`scale(${1/e.x}, ${1/e.y}) `),n){const{transformPerspective:p,rotate:g,rotateX:y,rotateY:w,skewX:E,skewY:P}=n;p&&(i=`perspective(${p}px) ${i}`),g&&(i+=`rotate(${g}deg) `),y&&(i+=`rotateX(${y}deg) `),w&&(i+=`rotateY(${w}deg) `),E&&(i+=`skewX(${E}deg) `),P&&(i+=`skewY(${P}deg) `)}const d=t.x.scale*e.x,h=t.y.scale*e.y;return(d!==1||h!==1)&&(i+=`scale(${d}, ${h})`),i||"none"}const is={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},ko=typeof window<"u"&&window.MotionDebug!==void 0,Od=["","X","Y","Z"],Z2={visibility:"hidden"},Zv=1e3;let eL=0;function Ld(t,e,n,i){const{latestValues:o}=e;o[t]&&(n[t]=o[t],e.setStaticValue(t,0),i&&(i[t]=0))}function Db(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;const{visualElement:e}=t.options;if(!e)return;const n=$x(e);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:o,layoutId:l}=t.options;window.MotionCancelOptimisedAnimation(n,"transform",$e,!(o||l))}const{parent:i}=t;i&&!i.hasCheckedOptimisedAppear&&Db(i)}function Mb({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:i,resetTransform:o}){return class{constructor(u={},d=e==null?void 0:e()){this.id=eL++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,ko&&(is.totalNodes=is.resolvedTargetDeltas=is.recalculatedProjection=0),this.nodes.forEach(rL),this.nodes.forEach(lL),this.nodes.forEach(uL),this.nodes.forEach(sL),ko&&window.MotionDebug.record(is)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=u,this.root=d?d.root||d:this,this.path=d?[...d.path,d]:[],this.parent=d,this.depth=d?d.depth+1:0;for(let h=0;h<this.path.length;h++)this.path[h].shouldResetTransform=!0;this.root===this&&(this.nodes=new V2)}addEventListener(u,d){return this.eventHandlers.has(u)||this.eventHandlers.set(u,new Ch),this.eventHandlers.get(u).add(d)}notifyListeners(u,...d){const h=this.eventHandlers.get(u);h&&h.notify(...d)}hasListeners(u){return this.eventHandlers.has(u)}mount(u,d=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=U2(u),this.instance=u;const{layoutId:h,layout:p,visualElement:g}=this.options;if(g&&!g.current&&g.mount(u),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),d&&(p||h)&&(this.isLayoutDirty=!0),t){let y;const w=()=>this.root.updateBlockedByResize=!1;t(u,()=>{this.root.updateBlockedByResize=!0,y&&y(),y=z2(w,250),Ul.hasAnimatedSinceResize&&(Ul.hasAnimatedSinceResize=!1,this.nodes.forEach(t0))})}h&&this.root.registerSharedNode(h,this),this.options.animate!==!1&&g&&(h||p)&&this.addEventListener("didUpdate",({delta:y,hasLayoutChanged:w,hasRelativeTargetChanged:E,layout:P})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const _=this.options.transition||g.getDefaultTransition()||pL,{onLayoutAnimationStart:S,onLayoutAnimationComplete:b}=g.getProps(),O=!this.targetLayout||!jb(this.targetLayout,P)||E,k=!w&&E;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||k||w&&(O||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(y,k);const A={...wh(_,"layout"),onPlay:S,onComplete:b};(g.shouldReduceMotion||this.options.layoutRoot)&&(A.delay=0,A.type=!1),this.startAnimation(A)}else w||t0(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=P})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const u=this.getStack();u&&u.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Mr(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(cL),this.animationId++)}getTransformTemplate(){const{visualElement:u}=this.options;return u&&u.getProps().transformTemplate}willUpdate(u=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Db(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let g=0;g<this.path.length;g++){const y=this.path[g];y.shouldResetTransform=!0,y.updateScroll("snapshot"),y.options.layoutRoot&&y.willUpdate(!1)}const{layoutId:d,layout:h}=this.options;if(d===void 0&&!h)return;const p=this.getTransformTemplate();this.prevTransformTemplateValue=p?p(this.latestValues,""):void 0,this.updateSnapshot(),u&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(e0);return}this.isUpdating||this.nodes.forEach(oL),this.isUpdating=!1,this.nodes.forEach(aL),this.nodes.forEach(tL),this.nodes.forEach(nL),this.clearAllSnapshots();const d=jn.now();yt.delta=Jn(0,1e3/60,d-yt.timestamp),yt.timestamp=d,yt.isProcessing=!0,Ed.update.process(yt),Ed.preRender.process(yt),Ed.render.process(yt),yt.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,uh.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(iL),this.sharedNodes.forEach(dL)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,$e.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){$e.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let h=0;h<this.path.length;h++)this.path[h].updateScroll();const u=this.layout;this.layout=this.measure(!1),this.layoutCorrected=Ze(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:d}=this.options;d&&d.notify("LayoutMeasure",this.layout.layoutBox,u?u.layoutBox:void 0)}updateScroll(u="measure"){let d=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===u&&(d=!1),d){const h=i(this.instance);this.scroll={animationId:this.root.animationId,phase:u,isRoot:h,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:h}}}resetTransform(){if(!o)return;const u=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,d=this.projectionDelta&&!Lb(this.projectionDelta),h=this.getTransformTemplate(),p=h?h(this.latestValues,""):void 0,g=p!==this.prevTransformTemplateValue;u&&(d||ss(this.latestValues)||g)&&(o(this.instance,p),this.shouldResetTransform=!1,this.scheduleRender())}measure(u=!0){const d=this.measurePageBox();let h=this.removeElementScroll(d);return u&&(h=this.removeTransform(h)),mL(h),{animationId:this.root.animationId,measuredBox:d,layoutBox:h,latestValues:{},source:this.id}}measurePageBox(){var u;const{visualElement:d}=this.options;if(!d)return Ze();const h=d.measureViewportBox();if(!(((u=this.scroll)===null||u===void 0?void 0:u.wasRoot)||this.path.some(gL))){const{scroll:g}=this.root;g&&(si(h.x,g.offset.x),si(h.y,g.offset.y))}return h}removeElementScroll(u){var d;const h=Ze();if(nn(h,u),!((d=this.scroll)===null||d===void 0)&&d.wasRoot)return h;for(let p=0;p<this.path.length;p++){const g=this.path[p],{scroll:y,options:w}=g;g!==this.root&&y&&w.layoutScroll&&(y.wasRoot&&nn(h,u),si(h.x,y.offset.x),si(h.y,y.offset.y))}return h}applyTransform(u,d=!1){const h=Ze();nn(h,u);for(let p=0;p<this.path.length;p++){const g=this.path[p];!d&&g.options.layoutScroll&&g.scroll&&g!==g.root&&ii(h,{x:-g.scroll.offset.x,y:-g.scroll.offset.y}),ss(g.latestValues)&&ii(h,g.latestValues)}return ss(this.latestValues)&&ii(h,this.latestValues),h}removeTransform(u){const d=Ze();nn(d,u);for(let h=0;h<this.path.length;h++){const p=this.path[h];if(!p.instance||!ss(p.latestValues))continue;Ef(p.latestValues)&&p.updateSnapshot();const g=Ze(),y=p.measurePageBox();nn(g,y),Kv(d,p.latestValues,p.snapshot?p.snapshot.layoutBox:void 0,g)}return ss(this.latestValues)&&Kv(d,this.latestValues),d}setTargetDelta(u){this.targetDelta=u,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(u){this.options={...this.options,...u,crossfade:u.crossfade!==void 0?u.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==yt.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(u=!1){var d;const h=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=h.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=h.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=h.isSharedProjectionDirty);const p=!!this.resumingFrom||this!==h;if(!(u||p&&this.isSharedProjectionDirty||this.isProjectionDirty||!((d=this.parent)===null||d===void 0)&&d.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:y,layoutId:w}=this.options;if(!(!this.layout||!(y||w))){if(this.resolvedRelativeTargetAt=yt.timestamp,!this.targetDelta&&!this.relativeTarget){const E=this.getClosestProjectingParent();E&&E.layout&&this.animationProgress!==1?(this.relativeParent=E,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Ze(),this.relativeTargetOrigin=Ze(),Oo(this.relativeTargetOrigin,this.layout.layoutBox,E.layout.layoutBox),nn(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=Ze(),this.targetWithTransforms=Ze()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),w2(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):nn(this.target,this.layout.layoutBox),Tb(this.target,this.targetDelta)):nn(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const E=this.getClosestProjectingParent();E&&!!E.resumingFrom==!!this.resumingFrom&&!E.options.layoutScroll&&E.target&&this.animationProgress!==1?(this.relativeParent=E,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Ze(),this.relativeTargetOrigin=Ze(),Oo(this.relativeTargetOrigin,this.target,E.target),nn(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}ko&&is.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||Ef(this.parent.latestValues)||kb(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var u;const d=this.getLead(),h=!!this.resumingFrom||this!==d;let p=!0;if((this.isProjectionDirty||!((u=this.parent)===null||u===void 0)&&u.isProjectionDirty)&&(p=!1),h&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(p=!1),this.resolvedRelativeTargetAt===yt.timestamp&&(p=!1),p)return;const{layout:g,layoutId:y}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(g||y))return;nn(this.layoutCorrected,this.layout.layoutBox);const w=this.treeScale.x,E=this.treeScale.y;P2(this.layoutCorrected,this.treeScale,this.path,h),d.layout&&!d.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(d.target=d.layout.layoutBox,d.targetWithTransforms=Ze());const{target:P}=d;if(!P){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Wv(this.prevProjectionDelta.x,this.projectionDelta.x),Wv(this.prevProjectionDelta.y,this.projectionDelta.y)),No(this.projectionDelta,this.layoutCorrected,P,this.latestValues),(this.treeScale.x!==w||this.treeScale.y!==E||!Jv(this.projectionDelta.x,this.prevProjectionDelta.x)||!Jv(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",P)),ko&&is.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(u=!0){var d;if((d=this.options.visualElement)===null||d===void 0||d.scheduleRender(),u){const h=this.getStack();h&&h.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=ri(),this.projectionDelta=ri(),this.projectionDeltaWithTransform=ri()}setAnimationOrigin(u,d=!1){const h=this.snapshot,p=h?h.latestValues:{},g={...this.latestValues},y=ri();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!d;const w=Ze(),E=h?h.source:void 0,P=this.layout?this.layout.source:void 0,_=E!==P,S=this.getStack(),b=!S||S.members.length<=1,O=!!(_&&!b&&this.options.crossfade===!0&&!this.path.some(hL));this.animationProgress=0;let k;this.mixTargetDelta=A=>{const U=A/1e3;n0(y.x,u.x,U),n0(y.y,u.y,U),this.setTargetDelta(y),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Oo(w,this.layout.layoutBox,this.relativeParent.layout.layoutBox),fL(this.relativeTarget,this.relativeTargetOrigin,w,U),k&&Y2(this.relativeTarget,k)&&(this.isProjectionDirty=!1),k||(k=Ze()),nn(k,this.relativeTarget)),_&&(this.animationValues=g,W2(g,p,this.latestValues,U,O,b)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=U},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(u){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Mr(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=$e.update(()=>{Ul.hasAnimatedSinceResize=!0,this.currentAnimation=F2(0,Zv,{...u,onUpdate:d=>{this.mixTargetDelta(d),u.onUpdate&&u.onUpdate(d)},onComplete:()=>{u.onComplete&&u.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const u=this.getStack();u&&u.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Zv),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const u=this.getLead();let{targetWithTransforms:d,target:h,layout:p,latestValues:g}=u;if(!(!d||!h||!p)){if(this!==u&&this.layout&&p&&Ib(this.options.animationType,this.layout.layoutBox,p.layoutBox)){h=this.target||Ze();const y=qt(this.layout.layoutBox.x);h.x.min=u.target.x.min,h.x.max=h.x.min+y;const w=qt(this.layout.layoutBox.y);h.y.min=u.target.y.min,h.y.max=h.y.min+w}nn(d,h),ii(d,g),No(this.projectionDeltaWithTransform,this.layoutCorrected,d,g)}}registerSharedNode(u,d){this.sharedNodes.has(u)||this.sharedNodes.set(u,new X2),this.sharedNodes.get(u).add(d);const p=d.options.initialPromotionConfig;d.promote({transition:p?p.transition:void 0,preserveFollowOpacity:p&&p.shouldPreserveFollowOpacity?p.shouldPreserveFollowOpacity(d):void 0})}isLead(){const u=this.getStack();return u?u.lead===this:!0}getLead(){var u;const{layoutId:d}=this.options;return d?((u=this.getStack())===null||u===void 0?void 0:u.lead)||this:this}getPrevLead(){var u;const{layoutId:d}=this.options;return d?(u=this.getStack())===null||u===void 0?void 0:u.prevLead:void 0}getStack(){const{layoutId:u}=this.options;if(u)return this.root.sharedNodes.get(u)}promote({needsReset:u,transition:d,preserveFollowOpacity:h}={}){const p=this.getStack();p&&p.promote(this,h),u&&(this.projectionDelta=void 0,this.needsReset=!0),d&&this.setOptions({transition:d})}relegate(){const u=this.getStack();return u?u.relegate(this):!1}resetSkewAndRotation(){const{visualElement:u}=this.options;if(!u)return;let d=!1;const{latestValues:h}=u;if((h.z||h.rotate||h.rotateX||h.rotateY||h.rotateZ||h.skewX||h.skewY)&&(d=!0),!d)return;const p={};h.z&&Ld("z",u,p,this.animationValues);for(let g=0;g<Od.length;g++)Ld(`rotate${Od[g]}`,u,p,this.animationValues),Ld(`skew${Od[g]}`,u,p,this.animationValues);u.render();for(const g in p)u.setStaticValue(g,p[g]),this.animationValues&&(this.animationValues[g]=p[g]);u.scheduleRender()}getProjectionStyles(u){var d,h;if(!this.instance||this.isSVG)return;if(!this.isVisible)return Z2;const p={visibility:""},g=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,p.opacity="",p.pointerEvents=Il(u==null?void 0:u.pointerEvents)||"",p.transform=g?g(this.latestValues,""):"none",p;const y=this.getLead();if(!this.projectionDelta||!this.layout||!y.target){const _={};return this.options.layoutId&&(_.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,_.pointerEvents=Il(u==null?void 0:u.pointerEvents)||""),this.hasProjected&&!ss(this.latestValues)&&(_.transform=g?g({},""):"none",this.hasProjected=!1),_}const w=y.animationValues||y.latestValues;this.applyTransformsToTarget(),p.transform=J2(this.projectionDeltaWithTransform,this.treeScale,w),g&&(p.transform=g(w,p.transform));const{x:E,y:P}=this.projectionDelta;p.transformOrigin=`${E.origin*100}% ${P.origin*100}% 0`,y.animationValues?p.opacity=y===this?(h=(d=w.opacity)!==null&&d!==void 0?d:this.latestValues.opacity)!==null&&h!==void 0?h:1:this.preserveOpacity?this.latestValues.opacity:w.opacityExit:p.opacity=y===this?w.opacity!==void 0?w.opacity:"":w.opacityExit!==void 0?w.opacityExit:0;for(const _ in Kl){if(w[_]===void 0)continue;const{correct:S,applyTo:b}=Kl[_],O=p.transform==="none"?w[_]:S(w[_],y);if(b){const k=b.length;for(let A=0;A<k;A++)p[b[A]]=O}else p[_]=O}return this.options.layoutId&&(p.pointerEvents=y===this?Il(u==null?void 0:u.pointerEvents)||"":"none"),p}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(u=>{var d;return(d=u.currentAnimation)===null||d===void 0?void 0:d.stop()}),this.root.nodes.forEach(e0),this.root.sharedNodes.clear()}}}function tL(t){t.updateLayout()}function nL(t){var e;const n=((e=t.resumeFrom)===null||e===void 0?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&n&&t.hasListeners("didUpdate")){const{layoutBox:i,measuredBox:o}=t.layout,{animationType:l}=t.options,u=n.source!==t.layout.source;l==="size"?rn(y=>{const w=u?n.measuredBox[y]:n.layoutBox[y],E=qt(w);w.min=i[y].min,w.max=w.min+E}):Ib(l,n.layoutBox,i)&&rn(y=>{const w=u?n.measuredBox[y]:n.layoutBox[y],E=qt(i[y]);w.max=w.min+E,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[y].max=t.relativeTarget[y].min+E)});const d=ri();No(d,i,n.layoutBox);const h=ri();u?No(h,t.applyTransform(o,!0),n.measuredBox):No(h,i,n.layoutBox);const p=!Lb(d);let g=!1;if(!t.resumeFrom){const y=t.getClosestProjectingParent();if(y&&!y.resumeFrom){const{snapshot:w,layout:E}=y;if(w&&E){const P=Ze();Oo(P,n.layoutBox,w.layoutBox);const _=Ze();Oo(_,i,E.layoutBox),jb(P,_)||(g=!0),y.options.layoutRoot&&(t.relativeTarget=_,t.relativeTargetOrigin=P,t.relativeParent=y)}}}t.notifyListeners("didUpdate",{layout:i,snapshot:n,delta:h,layoutDelta:d,hasLayoutChanged:p,hasRelativeTargetChanged:g})}else if(t.isLead()){const{onExitComplete:i}=t.options;i&&i()}t.options.transition=void 0}function rL(t){ko&&is.totalNodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function sL(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function iL(t){t.clearSnapshot()}function e0(t){t.clearMeasurements()}function oL(t){t.isLayoutDirty=!1}function aL(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function t0(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function lL(t){t.resolveTargetDelta()}function uL(t){t.calcProjection()}
vendor: 6,595 bytes, line 184
184function cL(t){t.resetSkewAndRotation()}function dL(t){t.removeLeadSnapshot()}function n0(t,e,n){t.translate=Ke(e.translate,0,n),t.scale=Ke(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function r0(t,e,n,i){t.min=Ke(e.min,n.min,i),t.max=Ke(e.max,n.max,i)}function fL(t,e,n,i){r0(t.x,e.x,n.x,i),r0(t.y,e.y,n.y,i)}function hL(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const pL={duration:.45,ease:[.4,0,.1,1]},s0=t=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),i0=s0("applewebkit/")&&!s0("chrome/")?Math.round:Ht;function o0(t){t.min=i0(t.min),t.max=i0(t.max)}function mL(t){o0(t.x),o0(t.y)}function Ib(t,e,n){return t==="position"||t==="preserve-aspect"&&!v2(Xv(e),Xv(n),.2)}function gL(t){var e;return t!==t.root&&((e=t.scroll)===null||e===void 0?void 0:e.wasRoot)}const yL=Mb({attachResizeListener:(t,e)=>zo(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),jd={current:void 0},Fb=Mb({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!jd.current){const t=new yL({});t.mount(window),t.setOptions({layoutScroll:!0}),jd.current=t}return jd.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),vL={pan:{Feature:j2},drag:{Feature:L2,ProjectionNode:Fb,MeasureLayout:Ab}};function a0(t,e,n){const{props:i}=t;t.animationState&&i.whileHover&&t.animationState.setActive("whileHover",n==="Start");const o="onHover"+n,l=i[o];l&&$e.postRender(()=>l(e,sa(e)))}class wL extends Br{mount(){const{current:e}=this.node;e&&(this.unmount=vN(e,n=>(a0(this.node,n,"Start"),i=>a0(this.node,i,"End"))))}unmount(){}}class xL extends Br{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch{e=!0}!e||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=ra(zo(this.node.current,"focus",()=>this.onFocus()),zo(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function l0(t,e,n){const{props:i}=t;t.animationState&&i.whileTap&&t.animationState.setActive("whileTap",n==="Start");const o="onTap"+(n==="End"?"":n),l=i[o];l&&$e.postRender(()=>l(e,sa(e)))}class bL extends Br{mount(){const{current:e}=this.node;e&&(this.unmount=SN(e,n=>(l0(this.node,n,"Start"),(i,{success:o})=>l0(this.node,i,o?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Cf=new WeakMap,Dd=new WeakMap,SL=t=>{const e=Cf.get(t.target);e&&e(t)},EL=t=>{t.forEach(SL)};function _L({root:t,...e}){const n=t||document;Dd.has(n)||Dd.set(n,{});const i=Dd.get(n),o=JSON.stringify(e);return i[o]||(i[o]=new IntersectionObserver(EL,{root:t,...e})),i[o]}function CL(t,e,n){const i=_L(e);return Cf.set(t,n),i.observe(t),()=>{Cf.delete(t),i.unobserve(t)}}const kL={some:0,all:1};class TL extends Br{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:n,margin:i,amount:o="some",once:l}=e,u={root:n?n.current:void 0,rootMargin:i,threshold:typeof o=="number"?o:kL[o]},d=h=>{const{isIntersecting:p}=h;if(this.isInView===p||(this.isInView=p,l&&!p&&this.hasEnteredView))return;p&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",p);const{onViewportEnter:g,onViewportLeave:y}=this.node.getProps(),w=p?g:y;w&&w(h)};return CL(this.node.current,u,d)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:e,prevProps:n}=this.node;["amount","margin","root"].some(PL(e,n))&&this.startObserver()}unmount(){}}function PL({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}const RL={inView:{Feature:TL},tap:{Feature:bL},focus:{Feature:xL},hover:{Feature:wL}},AL={layout:{ProjectionNode:Fb,MeasureLayout:Ab}},kf={current:null},Ub={current:!1};function NL(){if(Ub.current=!0,!!rh)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>kf.current=t.matches;t.addListener(e),e()}else kf.current=!1}const OL=[...cb,kt,Ir],LL=t=>OL.find(ub(t)),u0=new WeakMap;function jL(t,e,n){for(const i in e){const o=e[i],l=n[i];if(Tt(o))t.addValue(i,o);else if(Tt(l))t.addValue(i,Bo(o,{owner:t}));else if(l!==o)if(t.hasValue(i)){const u=t.getValue(i);u.liveStyle===!0?u.jump(o):u.hasAnimated||u.set(o)}else{const u=t.getStaticValue(i);t.addValue(i,Bo(u!==void 0?u:o,{owner:t}))}}for(const i in n)e[i]===void 0&&t.removeValue(i);return e}const c0=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class DL{scrapeMotionValuesFromProps(e,n,i){return{}}constructor({parent:e,props:n,presenceContext:i,reducedMotionConfig:o,blockInitialAnimation:l,visualState:u},d={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Nh,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const E=jn.now();this.renderScheduledAt<E&&(this.renderScheduledAt=E,$e.render(this.render,!1,!0))};const{latestValues:h,renderState:p,onUpdate:g}=u;this.onUpdate=g,this.latestValues=h,this.baseTarget={...h},this.initialValues=n.initial?{...h}:{},this.renderState=p,this.parent=e,this.props=n,this.presenceContext=i,this.depth=e?e.depth+1:0,this.reducedMotionConfig=o,this.options=d,this.blockInitialAnimation=!!l,this.isControllingVariants=lu(n),this.isVariantNode=vx(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:y,...w}=this.scrapeMotionValuesFromProps(n,{},this);for(const E in w){const P=w[E];h[E]!==void 0&&Tt(P)&&P.set(h[E],!1)}}mount(e){this.current=e,u0.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEac
vendor: 5,235 bytes, line 184
184h((n,i)=>this.bindToMotionValue(i,n)),Ub.current||NL(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:kf.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){u0.delete(this.current),this.projection&&this.projection.unmount(),Mr(this.notifyUpdate),Mr(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const e in this.events)this.events[e].clear();for(const e in this.features){const n=this.features[e];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(e,n){this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();const i=Ps.has(e),o=n.on("change",d=>{this.latestValues[e]=d,this.props.onUpdate&&$e.preRender(this.notifyUpdate),i&&this.projection&&(this.projection.isTransformDirty=!0)}),l=n.on("renderRequest",this.scheduleRender);let u;window.MotionCheckAppearSync&&(u=window.MotionCheckAppearSync(this,e,n)),this.valueSubscriptions.set(e,()=>{o(),l(),u&&u(),n.owner&&n.stop()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e="animation";for(e in xi){const n=xi[e];if(!n)continue;const{isEnabled:i,Feature:o}=n;if(!this.features[e]&&o&&i(this.props)&&(this.features[e]=new o(this)),this.features[e]){const l=this.features[e];l.isMounted?l.update():(l.mount(),l.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Ze()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,n){this.latestValues[e]=n}update(e,n){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let i=0;i<c0.length;i++){const o=c0[i];this.propEventSubscriptions[o]&&(this.propEventSubscriptions[o](),delete this.propEventSubscriptions[o]);const l="on"+o,u=e[l];u&&(this.propEventSubscriptions[o]=this.on(o,u))}this.prevMotionValues=jL(this,this.scrapeMotionValuesFromProps(e,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(e),()=>n.variantChildren.delete(e)}addValue(e,n){const i=this.values.get(e);n!==i&&(i&&this.removeValue(e),this.bindToMotionValue(e,n),this.values.set(e,n),this.latestValues[e]=n.get())}removeValue(e){this.values.delete(e);const n=this.valueSubscriptions.get(e);n&&(n(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,n){if(this.props.values&&this.props.values[e])return this.props.values[e];let i=this.values.get(e);return i===void 0&&n!==void 0&&(i=Bo(n===null?void 0:n,{owner:this}),this.addValue(e,i)),i}readValue(e,n){var i;let o=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:(i=this.getBaseTargetFromProps(this.props,e))!==null&&i!==void 0?i:this.readValueFromInstance(this.current,e,this.options);return o!=null&&(typeof o=="string"&&(ab(o)||Jx(o))?o=parseFloat(o):!LL(o)&&Ir.test(n)&&(o=sb(e,n)),this.setBaseTarget(e,Tt(o)?o.get():o)),Tt(o)?o.get():o}setBaseTarget(e,n){this.baseTarget[e]=n}getBaseTarget(e){var n;const{initial:i}=this.props;let o;if(typeof i=="string"||typeof i=="object"){const u=dh(this.props,i,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);u&&(o=u[e])}if(i&&o!==void 0)return o;const l=this.getBaseTargetFromProps(this.props,e);return l!==void 0&&!Tt(l)?l:this.initialValues[e]!==void 0&&o===void 0?void 0:this.baseTarget[e]}on(e,n){return this.events[e]||(this.events[e]=new Ch),this.events[e].add(n)}notify(e,...n){this.events[e]&&this.events[e].notify(...n)}}class Bb extends DL{constructor(){super(...arguments),this.KeyframeResolver=db}sortInstanceNodePosition(e,n){return e.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(e,n){return e.style?e.style[n]:void 0}removeValueFromRenderState(e,{vars:n,style:i}){delete n[e],delete i[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;Tt(e)&&(this.childSubscription=e.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function ML(t){return window.getComputedStyle(t)}class IL extends Bb{constructor(){super(...arguments),this.type="html",this.renderInstance=Tx}readValueFromInstance(e,n){if(Ps.has(n)){const i=Ah(n);return i&&i.default||0}else{const i=ML(e),o=(_x(n)?i.getPropertyValue(n):i[n])||0;
184return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(e,{transformPagePoint:n}){return Pb(e,n)}build(e,n,i){ph(e,n,i.transformTemplate)}scrapeMotionValuesFromProps(e,n,i){return vh(e,n,i)}}class FL extends Bb{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Ze}getBaseTargetFromProps(e,n){return e[n]}readValueFromInstance(e,n){if(Ps.has(n)){const i=Ah(n);return i&&i.default||0}return n=Px.has(n)?n:lh(n),e.getAttribute(n)}scrapeMotionValuesFromProps(e,n,i){return Nx(e,n,i)}build(e,n,i){mh(e,n,this.isSVGTag,i.transformTemplate)}renderInstance(e,n,i,o){Rx(e,n,i,o)}mount(e){this.isSVGTag=yh(e.tagName),super.mount(e)}}const UL=(t,e)=>ch(t)?new FL(e):new IL(e,{allowProjection:t!==D.Fragment}),BL=dN({...u2,...RL,...vL,...AL},UL),je=kA(BL),d0=[{label:"The Need",href:"/#need",hash:"need"},{label:"What We Do",href:"/#what-we-do",hash:"what-we-do"},{label:"Apprenticeships",href:"/#apprenticeship",hash:"apprenticeship"},{label:"Stories",href:"/#stories",hash:"stories"}];function Vb(){const[t,e]=D.useState(!1),[n,i]=D.useState(!1),o=Bf(),l=Ur();D.useEffect(()=>{const d=()=>e(window.scrollY>60);return window.addEventListener("scroll",d),()=>window.removeEventListener("scroll",d)},[]);const u=(d,h)=>{var p;d.preventDefault(),i(!1),l.pathname==="/"?(p=document.getElementById(h))==null||p.scrollIntoView({behavior:"smooth"}):o(`/#${h}`)};return x.jsxs(x.Fragment,{children:[x.jsx("nav",{className:`fixed top-0 left-0 right-0 z-50 transition-all duration-500 ${t?"bg-primary/95 backdrop-blur-md shadow-lg py-3":"bg-transparent py-5"}`,children:x.jsxs("div",{className:"max-w-7xl mx-auto px-6 flex items-center justify-between",children:[x.jsx("a",{href:"/",className:"flex items-center gap-3",children:x.jsx("img",{src:"https://media.base44.com/images/public/69bcf5ed3aeaebb23f636937/2b7f0a589_Cihpcompleteblacklogo.png",alt:"Church in Hard Places",className:"h-10 md:h-12 invert"})}),x.jsx("div",{className:"hidden md:flex items-center gap-10",children:d0.map(d=>x.jsx("a",{href:d.href,onClick:h=>u(h,d.hash),className:"text-white/80 hover:text-white text-sm font-medium tracking-widest uppercase transition-colors duration-300",children:d.label},d.label))}),x.jsxs("div",{className:"flex items-center gap-4",children:[x.jsx("a",{href:"https://apps.idonate.com/giving-form/5dbbf5c3-9de0-4c09-a490-2ea3858af947",target:"_blank",rel:"noopener noreferrer",className:"hidden md:inline-flex bg-accent hover:bg-accent/90 text-white font-semibold text-sm tracking-wider uppercase px-7 py-2.5 rounded transition-all duration-300",children:"Give"}),x.jsx("button",{onClick:()=>i(!n),className:"md:hidden text-white p-1",children:n?x.jsx(N0,{className:"w-6 h-6"}):x.jsx(xE,{className:"w-6 h-6"})})]})]})}),x.jsx(sh,{children:n&&x.jsxs(je.div,{initial:{opacity:0,y:-20},animate:{opacity:1,y:0},exit:{opacity:0,y:-20},className:"fixed inset-0 z-40 bg-primary/98 backdrop-blur-lg flex flex-col items-center justify-center gap-8",children:[d0.map(d=>x.jsx("a",{href:d.href,onClick:h=>u(h,d.hash),className:"text-white text-2xl font-light tracking-widest uppercase",children:d.label},d.label)),x.jsx("a",{href:"https://apps.idonate.com/giving-form/5dbbf5c3-9de0-4c09-a490-2ea3858af947",target:"_blank",rel:"noopener noreferrer",onClick:()=>i(!1),className:"bg-accent hover:bg-accent/90 text-white font-semibold text-lg tracking-wider uppercase px-10 py-3 rounded mt-4",children:"Give"})]})})]})}function VL({heroImage:t}){return x.jsxs("section",{className:"relative h-screen min-h-[700px] flex items-center justify-center overflow-hidden",children:[x.jsxs("div",{className:"absolute inset-0",children:[x.jsx("img",{src:t,alt:"People from many nations",className:"w-full h-full object-cover"}),x.jsx("div",{className:"absolute inset-0 bg-gradient-to-b from-black/60 via-black/40 to-black/70"})]}),x.jsxs("div",{className:"relative z-10 text-center px-6 max-w-5xl mx-auto",children:[x.jsxs(je.h1,{initial:{opacity:0,y:30},animate:{opacity:1,y:0},transition:{delay:.5,duration:.8},className:"text-white text-5xl md:text-7xl lg:text-8xl font-inter font-bold leading-[0.95] tracking-tight",children:["Training Leaders",x.jsx("br",{}),x.jsx("span",{className:"font-light italic text-white/90",children:"from Hard Places"})]}),x.jsx(je.p,{initial:{opacity:0,y:20}
184,animate:{opacity:1,y:0},transition:{delay:.8,duration:.8},className:"text-white/70 text-lg md:text-xl mt-8 max-w-2xl mx-auto leading-relaxed",children:"For the church in hard places. Equipping ministry leaders to thrive in the trenches of pastoral ministry."}),x.jsxs(je.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:1,duration:.8},className:"mt-10 flex flex-col sm:flex-row items-center justify-center gap-4",children:[x.jsx("a",{href:"#partner",className:"bg-accent hover:bg-accent/90 text-white font-semibold text-sm tracking-wider uppercase px-8 py-3 rounded transition-all duration-300",children:"Pray. Give. Go."}),x.jsx("a",{href:"#need",className:"border border-white/40 hover:border-white text-white font-semibold text-sm tracking-wider uppercase px-8 py-3 rounded transition-all duration-300",children:"See the Need"})]}),x.jsxs(je.div,{initial:{opacity:0},animate:{opacity:1},transition:{delay:1.2,duration:.8},className:"mt-10 flex items-center justify-center gap-8",children:[x.jsx("div",{className:"w-16 h-px bg-white/30"}),x.jsx("span",{className:"text-white/50 text-xs tracking-[0.4em] uppercase",children:"Scroll to Explore"}),x.jsx("div",{className:"w-16 h-px bg-white/30"})]}),x.jsx(je.div,{initial:{opacity:0}
184,animate:{opacity:1},transition:{delay:1.3,duration:.8},className:"mt-8",children:x.jsx("a",{href:"#need",children:x.jsx(hE,{className:"w-8 h-8 text-white/40 mx-auto animate-bounce"})})})]})]})}const zL=[{number:"1.3B+",label:"Live in extreme poverty, less than $1.25 a day"},{number:"3B+",label:"Live on less than $2.50 a day"},{number:"22,000",label:"Children die due to poverty every day"}];function $L(){return x.jsx("section",{id:"need",className:"bg-primary py-24 md:py-36",children:x.jsxs("div",{className:"max-w-7xl mx-auto px-6",children:[x.jsx(je.div,{initial:{opacity:0},whileInView:{opacity:1},viewport:{once:!0},transition:{duration:.7},className:"text-center mb-20 pb-20 border-b border-primary-foreground/10",children:x.jsx("p",{className:"text-primary-foreground/60 text-xl md:text-2xl italic font-light",children:'"Healthy churches are the most enduring form of mercy in hard places."'})}),x.jsxs(je.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-100px"},transition:{duration:.7},className:"text-center mb-16",children:[x.jsx("p",{className:"text-accent text-sm tracking-[0.3em] uppercase font-semibold mb-4",children:"The Need"}),x.jsxs("h2",{className:"text-primary-foreground text-4xl md:text-5xl font-inter font-bold leading-tight mb-6",children:["Millions live where hope and help",x.jsx("br",{}),x.jsx("span",{className:"font-light text-primary-foreground/70",children:"are painfully scarce."})]}),x.jsx("p",{className:"text-primary-foreground/60 text-lg max-w-2xl mx-auto leading-relaxed",children:"Around the world, communities are plagued by poverty, isolation, trauma, addiction, illiteracy, persecution, and little to no access to gospel-preaching churches."})]}),x.jsx("div",{className:"grid md:grid-cols-3 gap-10 mb-20",children:zL.map((t,e)=>x.jsxs(je.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5,delay:e*.1},className:"text-center border-t border-accent/30 pt-8",children:[x.jsx("p",{className:"text-accent text-5xl md:text-6xl font-inter font-bold mb-3",children:t.number}),x.jsx("p",{className:"text-primary-foreground/50 text-sm leading-relaxed",children:t.label})]},t.number))}),x.jsxs(je.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.7},className:"max-w-3xl mx-auto text-center border-t border-primary-foreground/10 pt-16",children:[x.jsx("p",{className:"text-primary-foreground/40 text-sm tracking-[0.2em] uppercase mb-6",children:"The Answer"}),x.jsxs("p",{className:"text-primary-foreground text-xl md:text-2xl leading-relaxed font-light",children:["The answer is not merely more activity. It is"," ",x.jsx("span",{className:"text-accent font-semibold",children:"healthier churches."})]}),x.jsx("p",{className:"text-primary-foreground/60 mt-6 text-lg leading-relaxed",children:"Where churches do exist, many are hindered by weak theology and under-equipped leaders. Faithful pastors often serve in isolation with little training, support, or resources."}),x.jsx("p",{className:"text-primary-foreground font-semibold mt-8 text-lg leading-relaxed border border-accent/30 rounded px-8 py-6",children:"If poor and remote communities around the world are going to be reached, we must evangelize, disciple, and train men to lead healthy churches in hard places."})]})]})})}const WL=[{letter:"A",icon:vE,title:"Advocacy",description:"Influencing churches, agencies, networks, and gospel-centered ministries to train and support leaders of healthy churches in poor or remote communities."},{letter:"T",icon:mE,title:"Training",description:"Developing leaders through theologically robust training tailored to local realities and delivered in accessible, reproducible, non-residential formats."},{letter:"R",icon:Rf,title:"Resources",description:"Producing resources that serve, equip, and highlight the unique needs of the church in hard places."},{letter:"S",icon:Af,title:"Support",description:"Providing ongoing counsel, coaching, and care to those building healthy churches in hard places."}];function HL(){return x.jsx("section",{id:"what-we-do",className:"bg-background py-24 md:py-36",children:x.jsxs("div",{className:"max-w-7xl mx-auto px-6",children:[x.jsxs(je.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-100px"},transition:{duration:.7},className:"text-center mb-16 md:mb-20",children:[x.jsx("p",{className:"text-accent text-sm tracking-[0.3em] uppercase font-semibold mb-4",children:"What We Do"}),x.jsxs("h2",{className:"text-foreground text-4xl md:text-5xl font-inter font-bold mb-4",children:["We equip the local church",x.jsx("br",{}),x.jsx("span",{className:"text-muted-foreground font-light",children:"for faithful ministry in difficult contexts."})]})]}),x.jsx("div",{className:"grid sm:grid-cols-2 lg:grid-cols-4 gap-6",children:WL.map((t,e)=>(t.icon,x.jsxs(je.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5,delay:e*.1},className:"group bg-card border border-border rounded p-8 hover:border-accent/40 transition-all duration-300",children:[x.jsx("div",{className:"w-12 h-12 rounded bg-accent/10 flex items-center justify-center mb-6 group-hover:bg-accent/20 transition-colors duration-300",children:x.jsx("span",{className:"text-accent text-xl font-inter font-bold",children:t.letter})}),x.jsx("h3",{className:"text-foreground text-xl font-semibold mb-3",children:t.title}),x.jsx("p",{className:"text-muted-foreground text-sm leading-relaxed",children:t.description})]},t.title)))}),x.jsx(je.p,{initial:{opacity:0}
184,whileInView:{opacity:1},viewport:{once:!0},transition:{duration:.7,delay:.4},className:"text-center text-muted-foreground/70 mt-12 max-w-2xl mx-auto italic text-sm leading-relaxed border-t border-border pt-10",children:"Workshops help church leaders shepherd people facing abuse, addictions, mental health struggles, crime, trauma, illiteracy, and deep poverty."})]})})}const f0=[{icon:Rf,title:"Our Conviction",subtitle:"Grounded in Scripture",description:"We hold unwaveringly to the Scriptures as the only inspired, infallible, and sufficient standard for all missionary activity. Every church plant, every partnership, and every effort must be rooted in sound biblical theologyâbecause doctrine is not the enemy of mission, but its very foundation."},{icon:_E,title:"Our Strategy",subtitle:"Equipping Local Leaders",description:"We believe the most effective missions strategy is to identify, support, and equip indigenous pastors, evangelists, and teachers within their own cultures. These men and women already speak the language, understand the customs, and carry a burden for their own people. Our role is to come alongside them."},{icon:Af,title:"Our Trust",subtitle:"Dependent on God Alone",description:"Church in Hard Places was established with a deep conviction that the Lord will build His church through the preaching of His Word and the advancing of His church. We trust that He will raise up leaders and partners to be part of this work with us."}];function qL(){const[t,e]=D.useState(0);return x.jsx("section",{id:"mission",className:"bg-primary py-24 md:py-36",children:x.jsxs("div",{className:"max-w-7xl mx-auto px-6",children:[x.jsxs(je.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-100px"},transition:{duration:.7},className:"text-center mb-16 md:mb-20",children:[x.jsx("p",{className:"text-accent text-sm tracking-[0.3em] uppercase font-semibold mb-4",children:"What Drives Us"}),x.jsx("h2",{className:"text-primary-foreground text-4xl md:text-5xl font-inter font-bold",children:"What We Believe"})]}),x.jsx("div",{className:"flex flex-col md:flex-row gap-4 md:gap-0 mb-12 md:mb-16",children:f0.map((n,i)=>{const o=n.icon,l=t===i;return x.jsxs("button",{onClick:()=>e(i),className:`flex-1 text-left md:text-center px-6 py-5 md:py-8 border-b-2 transition-all duration-500 group ${l?"border-accent":"border-primary-foreground/10 hover:border-primary-foreground/30"}`,children:[x.jsx(o,{className:`w-6 h-6 mx-auto mb-3 transition-colors duration-300 ${l?"text-accent":"text-primary-foreground/40 group-hover:text-primary-foreground/60"}`}),x.jsx("h3",{className:`text-lg md:text-xl font-semibold transition-colors duration-300 ${l?"text-primary-foreground":"text-primary-foreground/50 group-hover:text-primary-foreground/70"}`,children:n.title}),x.jsx("p",{className:`text-sm mt-1 transition-colors duration-300 ${l?"text-accent/80":"text-primary-foreground/30"}`,children:n.subtitle})]},n.title)})}),x.jsx(sh,{mode:"wait",children:x.jsxs(je.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},exit:{opacity:0,y:-20},transition:{duration:.4},className:"max-w-3xl mx-auto text-center",children:[x.jsx("p",{className:"text-primary-foreground/70 text-lg md:text-xl leading-relaxed text-balance",children:f0[t].description}),t===0&&x.jsx("a",{href:"https://practicalshepherding.com/beliefs",target:"_blank",rel:"noopener noreferrer",className:"inline-block mt-8 border border-accent/50 hover:border-accent text-accent hover:bg-accent/10 font-semibold text-sm tracking-wider uppercase px-8 py-3 rounded transition-all duration-300",children:"Statement of Faith"})]},t)})]})})}const KL=[{icon:A0,title:"Cohort-Based",description:"Apprentices learn side-by-side with men from similar contexts, building accountability, encouragement, and long-term ministry resilience."},{icon:dE,title:"Annual Regional Intensive",description:"Each year includes a three-day, in-person intensive with focused training and assessment in pastoral care, leadership, and preaching."},{icon:Rf,title:"Ongoing Formation",description:"Monthly cohorts, WhatsApp mentoring, an online learning platform, and a curated theological library support each apprentice throughout the year."}];function QL({missionPhoto:t}){return x.jsx("section",{id:"apprenticeship",className:"bg-background py-24 md:py-36",children:x.jsx("div",{className:"max-w-7xl mx-auto px-6",children:x.jsxs("div",{className:"grid md:grid-cols-2 gap-16 md:gap-20 items-center",children:[x.jsxs(je.div,{initial:{opacity:0,x:-40},whileInView:{opacity:1,x:0},viewport:{once:!0,margin:"-100px"},transition:{duration:.8},children:[x.jsx("p",{className:"text-accent text-sm tracking-[0.3em] uppercase font-semibold mb-4",children:"Apprenticeships"}),x.jsxs("h2",{className:"text-foreground text-4xl md:text-5xl font-inter font-bold leading-tight mb-4",children:["A two-year,",x.jsx("br",{}),x.jsx("span",{className:"text-muted-foreground font-light",children:"non-residential pathway"}),x.jsx("br",{}),"for church leaders."]}),x.jsx("p",{className:"text-muted-foreground leading-relaxed mb-8",children:"The Church in Hard Places Apprenticeship is led by trusted local leaders who have planted, pastored, and served churches in communities marked by poverty, hardship, and limited resources."}),x.jsxs("div",{className:"inline-flex items-center gap-3 bg-accent/10 border border-accent/20 rounded px-6 py-4 mb-10",children:[x.jsx("span",{className:"text-accent text-3xl font-inter font-bold",children:"400+"}
184),x.jsxs("span",{className:"text-foreground/70 text-sm",children:["leaders from over ",x.jsx("span",{className:"font-semibold text-foreground",children:"40 countries"}),", trained in ",x.jsx("span",{className:"font-semibold text-foreground",children:"16 languages"})," at any one time."]})]}),x.jsx("div",{className:"space-y-8",children:KL.map((e,n)=>{const i=e.icon;return x.jsxs(je.div,{initial:{opacity:0,x:-20},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{duration:.5,delay:n*.1},className:"flex gap-4",children:[x.jsx("div",{className:"w-10 h-10 rounded bg-accent/10 flex items-center justify-center shrink-0 mt-0.5",children:x.jsx(i,{className:"w-4 h-4 text-accent"})}),x.jsxs("div",{children:[x.jsx("h3",{className:"text-foreground font-semibold mb-1",children:e.title}),x.jsx("p",{className:"text-muted-foreground text-sm leading-relaxed",children:e.description})]})]},e.title)})})]}),x.jsxs(je.div,{initial:{opacity:0,x:40},whileInView:{opacity:1,x:0},viewport:{once:!0,margin:"-100px"},transition:{duration:.8,delay:.2},className:"relative",children:[x.jsx("div",{className:"aspect-[3/4] rounded overflow-hidden",children:x.jsx("img",{src:t,alt:"Church leaders in training",className:"w-full h-full object-cover"})}),x.jsx("div",{className:"absolute -bottom-6 -left-6 w-48 h-48 border-2 border-accent/30 rounded -z-10"})]})]})})})}const GL=["The Gospel","Philosophy of Ministry","Doctrine of Scripture","Doctrine of Creation","Doctrine of Atonement","Biblical Understanding of Conversion","Assurance of Salvation","Doctrine of the Holy Spirit","Understanding Pastoral Ministry","Developing Expository Sermons","Developing a Church Planting Strategy"],YL=["Doctrine of the Church","Gospel Centered Ministry","Biblical Evangelism","Church Membership","Baptism and the Lord's Supper","Church Leadership","Understanding Complementarianism","Biblical Counseling","Understanding the Trinity and the Nature of God","Understanding the Spiritual Gifts","Doctrine of the End Times"],XL=["Expositional Preaching Presentations","Developing Evangelism Strategy","Developing Discipleship Strategy","Church Planting Strategy Presentations","Pastoral Care Case Studies"],h0=[{label:"Year One",items:GL},{label:"Year Two",items:YL},{label:"Regional Intensive",items:XL}];function JL(){const[t,e]=D.useState(0);return x.jsx("section",{id:"curriculum",className:"bg-primary py-24 md:py-36",children:x.jsxs("div",{className:"max-w-5xl mx-auto px-6",children:[x.jsxs(je.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-100px"},transition:{duration:.7},className:"text-center mb-16",children:[x.jsx("p",{className:"text-accent text-sm tracking-[0.3em] uppercase font-semibold mb-4",children:"Curriculum"}),x.jsxs("h2",{className:"text-primary-foreground text-4xl md:text-5xl font-inter font-bold mb-4",children:["Deep convictions.",x.jsx("br",{}),x.jsx("span",{className:"font-light text-primary-foreground/60",children:"Practical ministry. Reproducible training."})]})]}),x.jsx("div",{className:"flex flex-col md:flex-row mb-12",children:h0.map((n,i)=>x.jsx("button",{onClick:()=>e(i),className:`flex-1 py-5 px-6 text-center border-b-2 transition-all duration-300 ${t===i?"border-accent text-primary-foreground":"border-primary-foreground/10 text-primary-foreground/40 hover:text-primary-foreground/60 hover:border-primary-foreground/30"}`,children:x.jsx("span",{className:"text-sm font-semibold tracking-widest uppercase",children:n.label})},n.label))}),x.jsx(sh,{mode:"wait",children:x.jsx(je.ol,{initial:{opacity:0,y:16},animate:{opacity:1,y:0},exit:{opacity:0,y:-16},transition:{duration:.35},className:"grid sm:grid-cols-2 gap-x-12 gap-y-4",children:h0[t].items.map((n,i)=>x.jsxs("li",{className:"flex items-start gap-4 py-3 border-b border-primary-foreground/10",children:[x.jsx("span",{className:"text-accent font-inter font-bold text-sm w-6 shrink-0 mt-0.5",children:String(i+1).padStart(2,"0")}),x.jsx("span",{className:"text-primary-foreground/70 text-sm leading-relaxed",children:n})]},n))},t)})]})})}const ZL=["Latin America","North America","Europe","Africa","Asia Pacific","Remote Communities"];function ej({communityPhoto:t}){return x.jsxs("section",{id:"impact",className:"relative overflow-hidden",children:[x.jsxs("div",{className:"absolute inset-0",children:[x.jsx("img",{src:t,alt:"Community gathering",className:"w-full h-full object-cover"}),x.jsx("div",{className:"absolute inset-0 bg-black/75"})]}),x.jsx("div",{className:"relative z-10 py-24 md:py-36",children:x.jsxs("div",{className:"max-w-7xl mx-auto px-6",children:[x.jsxs(je.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-100px"},transition:{duration:.7},className:"text-center mb-16",children:[x.jsx("p",{className:"text-accent text-sm tracking-[0.3em] uppercase font-semibold mb-4",children:"Global Impact"}),x.jsxs("h2",{className:"text-white text-4xl md:text-5xl font-inter font-bold mb-6",children:["Churches planted, strengthened,",x.jsx("br",{}),x.jsx("span",{className:"font-light text-white/70",children:"and led by biblically qualified leaders."})]}),x.jsx("p",{className:"text-white/60 max-w-2xl mx-auto text-lg",children:"By equipping leaders in hard places, this apprenticeship multiplies both leadership and churches across the globe."})]}),x.jsx(je.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6,delay:.2},className:"text-center mb-12",children:x.jsx(xw,{to:"/cohort-leaders",className:"inline-block border border-accent/50 hover:border-accent text-accent hover:bg-accent/10 font-semibold text-sm tracking-wider up
184percase px-8 py-3 rounded transition-all duration-300",children:"Meet the Cohort Leaders"})}),x.jsx("div",{className:"grid grid-cols-2 md:grid-cols-3 gap-4 md:gap-6 max-w-4xl mx-auto",children:ZL.map((e,n)=>x.jsxs(je.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5,delay:n*.1},className:"bg-white/5 backdrop-blur-sm border border-white/10 rounded p-6 text-center hover:bg-white/10 transition-all duration-300 group cursor-default",children:[x.jsx("h3",{className:"text-white font-semibold text-lg tracking-wide mb-2 group-hover:text-accent transition-colors",children:e}),x.jsx("p",{className:"text-white/50 text-sm",children:"Cohorts established or projected."})]},e))})]})})]})}const tj=[{quote:"This is my second year studying with brothers from different countries, and the courses have been a great blessing for my family and me. Although reading was difficult for me, God helped me overcome this, and now I love to read and learn.",region:"Latin America"},{quote:"I have seen dear men who are often isolated and untrained find in our group the friendships and training they need to continue serving in their difficult contexts. I have become a better pastor myself through this opportunity.",region:"Africa"}];function nj(){return x.jsx("section",{id:"stories",className:"bg-background py-24 md:py-36",children:x.jsxs("div",{className:"max-w-7xl mx-auto px-6",children:[x.jsxs(je.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-100px"},transition:{duration:.7},className:"text-center mb-16",children:[x.jsx("p",{className:"text-accent text-sm tracking-[0.3em] uppercase font-semibold mb-4",children:"Stories"}),x.jsxs("h2",{className:"text-foreground text-4xl md:text-5xl font-inter font-bold",children:["Leaders strengthened",x.jsx("span",{className:"text-muted-foreground font-light",children:" for faithful ministry."})]})]}),x.jsx("div",{className:"grid md:grid-cols-2 gap-8 max-w-5xl mx-auto",children:tj.map((t,e)=>x.jsxs(je.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6,delay:e*.15},className:"bg-card border border-border rounded p-10",children:[x.jsx("div",{className:"w-8 h-px bg-accent mb-8"}),x.jsxs("blockquote",{className:"text-foreground/80 text-lg leading-relaxed italic mb-8",children:['"',t.quote,'"']})]},e))})]})})}const rj=[{number:"400+",label:"Currently enrolled"},{number:"40+",label:"Countries served"},{number:"16+",label:"Languages"}];function sj(){return x.jsx("section",{className:"bg-primary py-24 md:py-36",children:x.jsxs("div",{className:"max-w-7xl mx-auto px-6",children:[x.jsxs(je.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-100px"},transition:{duration:.7},className:"text-center mb-16",children:[x.jsx("p",{className:"text-accent text-sm tracking-[0.3em] uppercase font-semibold mb-4",children:"By the Numbers"}),x.jsxs("h2",{className:"text-primary-foreground text-4xl md:text-5xl font-inter font-bold leading-tight",children:["A growing movement",x.jsx("br",{}),x.jsx("span",{className:"font-light text-primary-foreground/70",children:"across the globe."})]})]}),x.jsx("div",{className:"grid md:grid-cols-3 gap-10 max-w-4xl mx-auto",children:rj.map((t,e)=>x.jsxs(je.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5,delay:e*.1},className:"text-center border-t border-accent/30 pt-8",children:[x.jsx("p",{className:"text-accent text-5xl md:text-6xl font-inter font-bold mb-3",children:t.number}),x.jsx("p",{className:"text-primary-foreground/50 text-sm leading-relaxed",children:t.label})]},t.number))})]})})}const ij=[{icon:A0,title:"Adopt",description:"Adopt a Cohort"},{icon:Af,title:"Pray",description:"Pray for Indigenous leaders in that Region"},{icon:SE,title:"Go",description:"Send workers to facilitate one of our annual training intensives"}];function oj({villageImage:t}){return x.jsxs("section",{id:"partner",className:"relative overflow-hidden",children:[x.jsxs("div",{className:"absolute inset-0",children:[x.jsx("img",{src:t,alt:"Remote community",className:"w-full h-full object-cover"}),x.jsx("div",{className:"absolute inset-0 bg-black/70"})]}),x.jsx("div",{className:"relative z-10 py-28 md:py-40",children:x.jsxs("div",{className:"max-w-6xl mx-auto px-6",children:[x.jsxs(je.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-80px"},transition:{duration:.7},className:"text-center mb-16",children:[x.jsx("p",{className:"text-accent text-sm tracking-[0.3em] uppercase font-semibold mb-6",children:"Partner With Us"}),x.jsx("h2",{className:"text-white text-4xl md:text-6xl font-inter font-bold leading-tight mb-4",children:"Adopt. Pray. Go."}),x.jsx("p",{className:"text-white/60 text-lg max-w-xl mx-auto",children:"Join us in equipping faithful pastors to lead healthy churches in the hardest places on earth."})]}),x.jsx("div",{className:"grid md:grid-cols-3 gap-6 mb-16",children:ij.map((e,n)=>{const i=e.icon;return x.jsxs(je.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5,delay:n*.1},className:"bg-white/5 backdrop-blur-sm border border-white/10 rounded p-8 text-center hover:bg-white/10 transition-all duration-300",children:[x.jsx("div",{className:"w-12 h-12 rounded-full bg-accent/20 flex items-center justify-center mx-auto mb-5",children:x.jsx(i,{className:"w-5 h-5 text-accent"})}),x.jsx("h3",{className:"text-white text-xl font-semibold mb-3",children:e.title}),x.jsx("p",{className:"text-white/55 text-sm leading-relaxed",children:e.description})]},e.title)})}),x.jsxs(je.div,{initial:{opacity:0}
184,whileInView:{opacity:1},viewport:{once:!0},transition:{duration:.7,delay:.3},className:"text-center border-t border-white/10 pt-12",children:[x.jsx("p",{className:"text-white/40 text-xs tracking-[0.3em] uppercase mb-6",children:"Contact"}),x.jsxs("div",{className:"flex flex-col md:flex-row items-center justify-center gap-6 md:gap-12 text-sm",children:[x.jsxs("div",{children:[x.jsx("span",{className:"text-white/40 mr-2",children:"Email:"}),x.jsx("a",{href:"mailto:[email protected]",className:"text-white/80 hover:text-accent transition-colors",children:"[email protected]"})]}),x.jsxs("div",{children:[x.jsx("span",{className:"text-white/40 mr-2",children:"Give:"}),x.jsx("a",{href:"https://apps.idonate.com/giving-form/5dbbf5c3-9de0-4c09-a490-2ea3858af947",target:"_blank",rel:"noopener noreferrer",className:"text-white/80 hover:text-accent transition-colors",children:"Give here"})]}),x.jsx("div",{className:"text-white/40 text-xs",children:"Practical Shepherding, Inc · P.O. Box 21806, Louisville, KY 40221"})]}),x.jsx("p",{className:"text-white/25 text-xs mt-6",children:"All gifts are tax deductible."})]})]})})]})}function zb(){const t=Bf(),e=Ur(),n=(i,o)=>{var l;i.preventDefault(),e.pathname==="/"?(l=document.getElementById(o))==null||l.scrollIntoView({behavior:"smooth"}):t(`/#${o}`)};return x.jsx("footer",{className:"bg-primary text-primary-foreground",children:x.jsx("div",{className:"max-w-7xl mx-auto px-6 py-12",children:x.jsxs("div",{className:"flex flex-col md:flex-row items-center justify-between gap-8",children:[x.jsx("div",{className:"flex items-center gap-4",children:x.jsx(xw,{to:"/",children:x.jsx("img",{src:"https://media.base44.com/images/public/69bcf5ed3aeaebb23f636937/2b7f0a589_Cihpcompleteblacklogo.png",alt:"Church in Hard Places",className:"h-8 invert"})})}),x.jsx("div",{className:"flex flex-wrap items-center justify-center gap-8",children:[{label:"The Need",hash:"need"},{label:"What We Do",hash:"what-we-do"},{label:"Apprenticeships",hash:"apprenticeship"},{label:"Curriculum",hash:"curriculum"},{label:"Stories",hash:"stories"},{label:"Partner",hash:"partner"}].map(i=>x.jsx("a",{href:`/#${i.hash}`,onClick:o=>n(o,i.hash),className:"text-primary-foreground/50 hover:text-primary-foreground text-sm tracking-widest uppercase transition-colors duration-300",children:i.label},i.label))}),x.jsxs("p",{className:"text-primary-foreground/30 text-xs tracking-wider",children:["© ",new Date().getFullYear()," Church in Hard Places"]})]})})})}const kl={hero:"https://media.base44.com/images/public/69bcf5ed3aeaebb23f636937/18f1f8599_generated_6a1755c7.png",mission:"https://media.base44.com/images/public/69bcf5ed3aeaebb23f636937/3c0330bc5_b99d06a06_generated_imagepng.jpeg",community:"https://media.base44.com/images/public/69bcf5ed3aeaebb23f636937/01818c662_generated_34fd6f03.png",village:"https://media.base44.com/images/public/69bcf5ed3aeaebb23f636937/5ed99a9be_generated_4dbfa66d.png"};function aj(){const t=Ur();return D.useEffect(()=>{if(t.hash){const e=t.hash.replace("#","");setTimeout(()=>{var n;(n=document.getElementById(e))==null||n.scrollIntoView({behavior:"smooth"})},100)}},[t]),x.jsxs("div",{className:"font-inter bg-background min-h-screen",children:[x.jsx(Vb,{}),x.jsx(VL,{heroImage:kl.hero}),x.jsx($L,{}),x.jsx(qL,{}),x.jsx(HL,{}),x.jsx(QL,{missionPhoto:kl.mission}),x.jsx(JL,{}),x.jsx(ej,{communityPhoto:kl.community}),x.jsx(nj,{}),x.jsx(sj,{}),x.jsx(oj,{villageImage:kl.village}),x.jsx(zb,{})]})}const lj=[{name:"Narayan Lamichhane",region:"Nepal",image:"https://media.base44.com/images/public/69bcf5ed3aeaebb23f636937/2a93bb6ed_NarayanLamichhane.jpg"},{name:"Hector Candelaria",region:"Latin America",image:"https://media.base44.com/images/public/69bcf5ed3aeaebb23f636937/753019737_HectorCandelaria.jpg"},{name:"Dilvan Oliveira",region:"Brazil",image:"https://media.base44.com/images/public/69bcf5ed3aeaebb23f636937/168c8472d_DilvanOliveira.jpg"},{name:"Andi Dina",region:"Albania",image:"https://media.base44.com/images/public/69bcf5ed3aeaebb23f636937/1be1f6c95_AndiDina.jpeg"},{name:"Scott Buchanan",region:"Philippines",image:"https://media.base44.com/images/public/69bcf5ed3aeaebb23f636937/b2eee954a_ScottBuchanan.jpg"},{name:"Mitch Munoz",region:"Guatemala",image:"https://media.base44.com/images/public/69bcf5ed3aeaebb23f636937/64e6925c6_MitchMunoz.jpeg"},{name:"Keo Kognon",region:"West Africa",image:"https://media.base44.com/images/public/69bcf5ed3aeaebb23f636937/009726ad3_KeoKognon.jpg"},{name:"Ronald Kogo",region:"East Africa",image:"https://media.base44.com/images/public/69bcf5ed3aeaebb23f636937/bbd629587_RonaldKogo.jpg"}
184,{name:"Alfonso Veerapen",region:"South Africa",image:"https://media.base44.com/images/public/69bcf5ed3aeaebb23f636937/bd9222f4f_AlfonsoVeerapen.jpeg"},{name:"Stephen Bray",region:"Canada",image:"https://media.base44.com/images/public/69bcf5ed3aeaebb23f636937/3ffe5e4f1_StephenBray.jpg"},{name:"Jimmy Okello",region:"Uganda / East Africa",image:"https://media.base44.com/images/public/69bcf5ed3aeaebb23f636937/5d9ca014d_JimmyOkello.jpeg"}];function uj(){return D.useEffect(()=>{document.documentElement.scrollTop=0,document.body.scrollTop=0},[]),x.jsxs("div",{className:"font-inter bg-primary min-h-screen",children:[x.jsx(Vb,{}),x.jsx("div",{className:"pt-32 pb-24 md:pb-36",children:x.jsxs("div",{className:"max-w-7xl mx-auto px-6",children:[x.jsxs(je.div,{initial:{opacity:0,y:30},animate:{opacity:1,y:0},transition:{duration:.7},className:"text-center mb-16",children:[x.jsx("p",{className:"text-accent text-sm tracking-[0.3em] uppercase font-semibold mb-4",children:"Our Team"}),x.jsx("h1",{className:"text-primary-foreground text-4xl md:text-5xl font-inter font-bold",children:"Meet the Cohort Leaders"})]}),x.jsx("div",{className:"grid grid-cols-2 sm:grid-cols-3 md:grid-cols-4 lg:grid-cols-5 gap-6",children:lj.map((t,e)=>x.jsxs(je.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.5,delay:e*.05},className:"flex flex-col",children:[x.jsx("div",{className:"aspect-square w-full overflow-hidden rounded bg-primary-foreground/5 border border-primary-foreground/10 flex items-center justify-center",children:t.image?x.jsx("img",{src:t.image,alt:t.name,className:"w-full h-full object-cover"}):x.jsx("div",{className:"w-full h-full flex items-center justify-center",children:x.jsx("svg",{className:"w-16 h-16 text-primary-foreground/15",fill:"currentColor",viewBox:"0 0 24 24",children:x.jsx("path",{d:"M12 12c2.7 0 4.8-2.1 4.8-4.8S14.7 2.4 12 2.4 7.2 4.5 7.2 7.2 9.3 12 12 12zm0 2.4c-3.2 0-9.6 1.6-9.6 4.8v2.4h19.2v-2.4c0-3.2-6.4-4.8-9.6-4.8z"})})})}),x.jsxs("div",{className:"mt-3",children:[x.jsx("p",{className:"text-primary-foreground font-semibold text-sm",children:t.name}),x.jsx("p",{className:"text-accent text-xs mt-0.5",children:t.region})]})]},e))})]})}),x.jsx(zb,{})]})}const cj=()=>{const{isLoadingAuth:t,isLoadingPublicSettings:e,authError:n,navigateToLogin:i}=hA();if(e||t)return x.jsx("div",{className:"fixed inset-0 flex items-center justify-center",children:x.jsx("div",{className:"w-8 h-8 border-4 border-slate-200 border-t-slate-800 rounded-full animate-spin"})});if(n){if(n.type==="user_not_registered")return x.jsx(pA,{});if(n.type==="auth_required")return i(),null}return x.jsxs(GC,{children:[x.jsx(Rl,{path:"/",element:x.jsx(aj,{})}),x.jsx(Rl,{path:"/cohort-leaders",element:x.jsx(uj,{})}),x.jsx(Rl,{path:"*",element:x.jsx(dA,{})})]})};function dj(){return x.jsx(fA,{children:x.jsxs(W_,{client:rC,children:[x.jsx(nk,{children:x.jsx(cj,{})}),x.jsx(v_,{})]})})}J1.createRoot(document.getElementById("root")).render(x.jsx(dj,{}));
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.