174 lines
585 KiB
JavaScript
174 lines
585 KiB
JavaScript
function B1(e,t){for(var n=0;n<t.length;n++){const s=t[n];if(typeof s!="string"&&!Array.isArray(s)){for(const o in s)if(o!=="default"&&!(o in e)){const a=Object.getOwnPropertyDescriptor(s,o);a&&Object.defineProperty(e,o,a.get?a:{enumerable:!0,get:()=>s[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))s(o);new MutationObserver(o=>{for(const a of o)if(a.type==="childList")for(const u of a.addedNodes)u.tagName==="LINK"&&u.rel==="modulepreload"&&s(u)}).observe(document,{childList:!0,subtree:!0});function n(o){const a={};return o.integrity&&(a.integrity=o.integrity),o.referrerPolicy&&(a.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?a.credentials="include":o.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function s(o){if(o.ep)return;o.ep=!0;const a=n(o);fetch(o.href,a)}})();var Mu=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function V0(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var If={exports:{}},va={},Vf={exports:{}},st={};/**
|
||
* @license React
|
||
* react.production.min.js
|
||
*
|
||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE file in the root directory of this source tree.
|
||
*/var Xy;function z1(){if(Xy)return st;Xy=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),u=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),g=Symbol.iterator;function v(L){return L===null||typeof L!="object"?null:(L=g&&L[g]||L["@@iterator"],typeof L=="function"?L:null)}var b={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},w=Object.assign,S={};function C(L,K,Le){this.props=L,this.context=K,this.refs=S,this.updater=Le||b}C.prototype.isReactComponent={},C.prototype.setState=function(L,K){if(typeof L!="object"&&typeof L!="function"&&L!=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,L,K,"setState")},C.prototype.forceUpdate=function(L){this.updater.enqueueForceUpdate(this,L,"forceUpdate")};function E(){}E.prototype=C.prototype;function R(L,K,Le){this.props=L,this.context=K,this.refs=S,this.updater=Le||b}var N=R.prototype=new E;N.constructor=R,w(N,C.prototype),N.isPureReactComponent=!0;var I=Array.isArray,T=Object.prototype.hasOwnProperty,F={current:null},z={key:!0,ref:!0,__self:!0,__source:!0};function O(L,K,Le){var Oe,Be={},We=null,be=null;if(K!=null)for(Oe in K.ref!==void 0&&(be=K.ref),K.key!==void 0&&(We=""+K.key),K)T.call(K,Oe)&&!z.hasOwnProperty(Oe)&&(Be[Oe]=K[Oe]);var Pe=arguments.length-2;if(Pe===1)Be.children=Le;else if(1<Pe){for(var Me=Array(Pe),rt=0;rt<Pe;rt++)Me[rt]=arguments[rt+2];Be.children=Me}if(L&&L.defaultProps)for(Oe in Pe=L.defaultProps,Pe)Be[Oe]===void 0&&(Be[Oe]=Pe[Oe]);return{$$typeof:e,type:L,key:We,ref:be,props:Be,_owner:F.current}}function q(L,K){return{$$typeof:e,type:L.type,key:K,ref:L.ref,props:L.props,_owner:L._owner}}function te(L){return typeof L=="object"&&L!==null&&L.$$typeof===e}function pe(L){var K={"=":"=0",":":"=2"};return"$"+L.replace(/[=:]/g,function(Le){return K[Le]})}var X=/\/+/g;function de(L,K){return typeof L=="object"&&L!==null&&L.key!=null?pe(""+L.key):K.toString(36)}function ke(L,K,Le,Oe,Be){var We=typeof L;(We==="undefined"||We==="boolean")&&(L=null);var be=!1;if(L===null)be=!0;else switch(We){case"string":case"number":be=!0;break;case"object":switch(L.$$typeof){case e:case t:be=!0}}if(be)return be=L,Be=Be(be),L=Oe===""?"."+de(be,0):Oe,I(Be)?(Le="",L!=null&&(Le=L.replace(X,"$&/")+"/"),ke(Be,K,Le,"",function(rt){return rt})):Be!=null&&(te(Be)&&(Be=q(Be,Le+(!Be.key||be&&be.key===Be.key?"":(""+Be.key).replace(X,"$&/")+"/")+L)),K.push(Be)),1;if(be=0,Oe=Oe===""?".":Oe+":",I(L))for(var Pe=0;Pe<L.length;Pe++){We=L[Pe];var Me=Oe+de(We,Pe);be+=ke(We,K,Le,Me,Be)}else if(Me=v(L),typeof Me=="function")for(L=Me.call(L),Pe=0;!(We=L.next()).done;)We=We.value,Me=Oe+de(We,Pe++),be+=ke(We,K,Le,Me,Be);else if(We==="object")throw K=String(L),Error("Objects are not valid as a React child (found: "+(K==="[object Object]"?"object with keys {"+Object.keys(L).join(", ")+"}":K)+"). If you meant to render a collection of children, use an array instead.");return be}function we(L,K,Le){if(L==null)return L;var Oe=[],Be=0;return ke(L,Oe,"","",function(We){return K.call(Le,We,Be++)}),Oe}function De(L){if(L._status===-1){var K=L._result;K=K(),K.then(function(Le){(L._status===0||L._status===-1)&&(L._status=1,L._result=Le)},function(Le){(L._status===0||L._status===-1)&&(L._status=2,L._result=Le)}),L._status===-1&&(L._status=0,L._result=K)}if(L._status===1)return L._result.default;throw L._result}var me={current:null},Y={transition:null},ue={ReactCurrentDispatcher:me,ReactCurrentBatchConfig:Y,ReactCurrentOwner:F};function ie(){throw Error("act(...) is not supported in production builds of React.")}return st.Children={map:we,forEach:function(L,K,Le){we(L,function(){K.apply(this,arguments)},Le)},count:function(L){var K=0;return we(L,function(){K++}),K},toArray:function(L){return we(L,function(K){return K})||[]},only:function(L){if(!te(L))throw Error("React.Children.only expected to receive a single React element child.");return L}},st.Component=C,st.Fragment=n,st.Profiler=o,st.PureComponent=R,st.StrictMode=s,st.Suspense=f,st.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ue,st.act=ie,st.cloneElement=function(L,K,Le){if(L==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+L+".");var Oe=w({},L.props),Be=L.key,We=L.ref,be=L._owner;if(K!=null){if(K.ref!==void 0&&(We=K.ref,be=F.current),K.key!==void 0&&(Be=""+K.key),L.type&&L.type.defaultProps)var Pe=L.type.defaultProps;for(Me in K)T.call(K,Me)&&!z.hasOwnProperty(Me)&&(Oe[Me]=K[Me]===void 0&&Pe!==void 0?Pe[Me]:K[Me])}var Me=arguments.length-2;if(Me===1)Oe.children=Le;else if(1<Me){Pe=Array(Me);for(var rt=0;rt<Me;rt++)Pe[rt]=arguments[rt+2];Oe.children=Pe}return{$$typeof:e,type:L.type,key:Be,ref:We,props:Oe,_owner:be}},st.createContext=function(L){return L={$$typeof:u,_currentValue:L,_currentValue2:L,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},L.Provider={$$typeof:a,_context:L},L.Consumer=L},st.createElement=O,st.createFactory=function(L){var K=O.bind(null,L);return K.type=L,K},st.createRef=function(){return{current:null}},st.forwardRef=function(L){return{$$typeof:c,render:L}},st.isValidElement=te,st.lazy=function(L){return{$$typeof:m,_payload:{_status:-1,_result:L},_init:De}},st.memo=function(L,K){return{$$typeof:h,type:L,compare:K===void 0?null:K}},st.startTransition=function(L){var K=Y.transition;Y.transition={};try{L()}finally{Y.transition=K}},st.unstable_act=ie,st.useCallback=function(L,K){return me.current.useCallback(L,K)},st.useContext=function(L){return me.current.useContext(L)},st.useDebugValue=function(){},st.useDeferredValue=function(L){return me.current.useDeferredValue(L)},st.useEffect=function(L,K){return me.current.useEffect(L,K)},st.useId=function(){return me.current.useId()},st.useImperativeHandle=function(L,K,Le){return me.current.useImperativeHandle(L,K,Le)},st.useInsertionEffect=function(L,K){return me.current.useInsertionEffect(L,K)},st.useLayoutEffect=function(L,K){return me.current.useLayoutEffect(L,K)},st.useMemo=function(L,K){return me.current.useMemo(L,K)},st.useReducer=function(L,K,Le){return me.current.useReducer(L,K,Le)},st.useRef=function(L){return me.current.useRef(L)},st.useState=function(L){return me.current.useState(L)},st.useSyncExternalStore=function(L,K,Le){return me.current.useSyncExternalStore(L,K,Le)},st.useTransition=function(){return me.current.useTransition()},st.version="18.3.1",st}var Qy;function up(){return Qy||(Qy=1,Vf.exports=z1()),Vf.exports}/**
|
||
* @license React
|
||
* react-jsx-runtime.production.min.js
|
||
*
|
||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE file in the root directory of this source tree.
|
||
*/var Jy;function U1(){if(Jy)return va;Jy=1;var e=up(),t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),s=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function u(c,f,h){var m,g={},v=null,b=null;h!==void 0&&(v=""+h),f.key!==void 0&&(v=""+f.key),f.ref!==void 0&&(b=f.ref);for(m in f)s.call(f,m)&&!a.hasOwnProperty(m)&&(g[m]=f[m]);if(c&&c.defaultProps)for(m in f=c.defaultProps,f)g[m]===void 0&&(g[m]=f[m]);return{$$typeof:t,type:c,key:v,ref:b,props:g,_owner:o.current}}return va.Fragment=n,va.jsx=u,va.jsxs=u,va}var ev;function $1(){return ev||(ev=1,If.exports=U1()),If.exports}var x=$1(),_=up();const it=V0(_),W1=B1({__proto__:null,default:it},[_]);var Ou={},Bf={exports:{}},Pn={},zf={exports:{}},Uf={};/**
|
||
* @license React
|
||
* scheduler.production.min.js
|
||
*
|
||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE file in the root directory of this source tree.
|
||
*/var tv;function H1(){return tv||(tv=1,function(e){function t(Y,ue){var ie=Y.length;Y.push(ue);e:for(;0<ie;){var L=ie-1>>>1,K=Y[L];if(0<o(K,ue))Y[L]=ue,Y[ie]=K,ie=L;else break e}}function n(Y){return Y.length===0?null:Y[0]}function s(Y){if(Y.length===0)return null;var ue=Y[0],ie=Y.pop();if(ie!==ue){Y[0]=ie;e:for(var L=0,K=Y.length,Le=K>>>1;L<Le;){var Oe=2*(L+1)-1,Be=Y[Oe],We=Oe+1,be=Y[We];if(0>o(Be,ie))We<K&&0>o(be,Be)?(Y[L]=be,Y[We]=ie,L=We):(Y[L]=Be,Y[Oe]=ie,L=Oe);else if(We<K&&0>o(be,ie))Y[L]=be,Y[We]=ie,L=We;else break e}}return ue}function o(Y,ue){var ie=Y.sortIndex-ue.sortIndex;return ie!==0?ie:Y.id-ue.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var u=Date,c=u.now();e.unstable_now=function(){return u.now()-c}}var f=[],h=[],m=1,g=null,v=3,b=!1,w=!1,S=!1,C=typeof setTimeout=="function"?setTimeout:null,E=typeof clearTimeout=="function"?clearTimeout:null,R=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function N(Y){for(var ue=n(h);ue!==null;){if(ue.callback===null)s(h);else if(ue.startTime<=Y)s(h),ue.sortIndex=ue.expirationTime,t(f,ue);else break;ue=n(h)}}function I(Y){if(S=!1,N(Y),!w)if(n(f)!==null)w=!0,De(T);else{var ue=n(h);ue!==null&&me(I,ue.startTime-Y)}}function T(Y,ue){w=!1,S&&(S=!1,E(O),O=-1),b=!0;var ie=v;try{for(N(ue),g=n(f);g!==null&&(!(g.expirationTime>ue)||Y&&!pe());){var L=g.callback;if(typeof L=="function"){g.callback=null,v=g.priorityLevel;var K=L(g.expirationTime<=ue);ue=e.unstable_now(),typeof K=="function"?g.callback=K:g===n(f)&&s(f),N(ue)}else s(f);g=n(f)}if(g!==null)var Le=!0;else{var Oe=n(h);Oe!==null&&me(I,Oe.startTime-ue),Le=!1}return Le}finally{g=null,v=ie,b=!1}}var F=!1,z=null,O=-1,q=5,te=-1;function pe(){return!(e.unstable_now()-te<q)}function X(){if(z!==null){var Y=e.unstable_now();te=Y;var ue=!0;try{ue=z(!0,Y)}finally{ue?de():(F=!1,z=null)}}else F=!1}var de;if(typeof R=="function")de=function(){R(X)};else if(typeof MessageChannel<"u"){var ke=new MessageChannel,we=ke.port2;ke.port1.onmessage=X,de=function(){we.postMessage(null)}}else de=function(){C(X,0)};function De(Y){z=Y,F||(F=!0,de())}function me(Y,ue){O=C(function(){Y(e.unstable_now())},ue)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(Y){Y.callback=null},e.unstable_continueExecution=function(){w||b||(w=!0,De(T))},e.unstable_forceFrameRate=function(Y){0>Y||125<Y?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):q=0<Y?Math.floor(1e3/Y):5},e.unstable_getCurrentPriorityLevel=function(){return v},e.unstable_getFirstCallbackNode=function(){return n(f)},e.unstable_next=function(Y){switch(v){case 1:case 2:case 3:var ue=3;break;default:ue=v}var ie=v;v=ue;try{return Y()}finally{v=ie}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(Y,ue){switch(Y){case 1:case 2:case 3:case 4:case 5:break;default:Y=3}var ie=v;v=Y;try{return ue()}finally{v=ie}},e.unstable_scheduleCallback=function(Y,ue,ie){var L=e.unstable_now();switch(typeof ie=="object"&&ie!==null?(ie=ie.delay,ie=typeof ie=="number"&&0<ie?L+ie:L):ie=L,Y){case 1:var K=-1;break;case 2:K=250;break;case 5:K=1073741823;break;case 4:K=1e4;break;default:K=5e3}return K=ie+K,Y={id:m++,callback:ue,priorityLevel:Y,startTime:ie,expirationTime:K,sortIndex:-1},ie>L?(Y.sortIndex=ie,t(h,Y),n(f)===null&&Y===n(h)&&(S?(E(O),O=-1):S=!0,me(I,ie-L))):(Y.sortIndex=K,t(f,Y),w||b||(w=!0,De(T))),Y},e.unstable_shouldYield=pe,e.unstable_wrapCallback=function(Y){var ue=v;return function(){var ie=v;v=ue;try{return Y.apply(this,arguments)}finally{v=ie}}}}(Uf)),Uf}var nv;function G1(){return nv||(nv=1,zf.exports=H1()),zf.exports}/**
|
||
* @license React
|
||
* react-dom.production.min.js
|
||
*
|
||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE file in the root directory of this source tree.
|
||
*/var rv;function Z1(){if(rv)return Pn;rv=1;var e=up(),t=G1();function n(r){for(var i="https://reactjs.org/docs/error-decoder.html?invariant="+r,l=1;l<arguments.length;l++)i+="&args[]="+encodeURIComponent(arguments[l]);return"Minified React error #"+r+"; visit "+i+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var s=new Set,o={};function a(r,i){u(r,i),u(r+"Capture",i)}function u(r,i){for(o[r]=i,r=0;r<i.length;r++)s.add(i[r])}var c=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),f=Object.prototype.hasOwnProperty,h=/^[: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]*$/,m={},g={};function v(r){return f.call(g,r)?!0:f.call(m,r)?!1:h.test(r)?g[r]=!0:(m[r]=!0,!1)}function b(r,i,l,d){if(l!==null&&l.type===0)return!1;switch(typeof i){case"function":case"symbol":return!0;case"boolean":return d?!1:l!==null?!l.acceptsBooleans:(r=r.toLowerCase().slice(0,5),r!=="data-"&&r!=="aria-");default:return!1}}function w(r,i,l,d){if(i===null||typeof i>"u"||b(r,i,l,d))return!0;if(d)return!1;if(l!==null)switch(l.type){case 3:return!i;case 4:return i===!1;case 5:return isNaN(i);case 6:return isNaN(i)||1>i}return!1}function S(r,i,l,d,p,y,k){this.acceptsBooleans=i===2||i===3||i===4,this.attributeName=d,this.attributeNamespace=p,this.mustUseProperty=l,this.propertyName=r,this.type=i,this.sanitizeURL=y,this.removeEmptyString=k}var C={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(r){C[r]=new S(r,0,!1,r,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(r){var i=r[0];C[i]=new S(i,1,!1,r[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(r){C[r]=new S(r,2,!1,r.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(r){C[r]=new S(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){C[r]=new S(r,3,!1,r.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(r){C[r]=new S(r,3,!0,r,null,!1,!1)}),["capture","download"].forEach(function(r){C[r]=new S(r,4,!1,r,null,!1,!1)}),["cols","rows","size","span"].forEach(function(r){C[r]=new S(r,6,!1,r,null,!1,!1)}),["rowSpan","start"].forEach(function(r){C[r]=new S(r,5,!1,r.toLowerCase(),null,!1,!1)});var E=/[\-:]([a-z])/g;function R(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 i=r.replace(E,R);C[i]=new S(i,1,!1,r,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(r){var i=r.replace(E,R);C[i]=new S(i,1,!1,r,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(r){var i=r.replace(E,R);C[i]=new S(i,1,!1,r,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(r){C[r]=new S(r,1,!1,r.toLowerCase(),null,!1,!1)}),C.xlinkHref=new S("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(r){C[r]=new S(r,1,!1,r.toLowerCase(),null,!0,!0)});function N(r,i,l,d){var p=C.hasOwnProperty(i)?C[i]:null;(p!==null?p.type!==0:d||!(2<i.length)||i[0]!=="o"&&i[0]!=="O"||i[1]!=="n"&&i[1]!=="N")&&(w(i,l,p,d)&&(l=null),d||p===null?v(i)&&(l===null?r.removeAttribute(i):r.setAttribute(i,""+l)):p.mustUseProperty?r[p.propertyName]=l===null?p.type===3?!1:"":l:(i=p.attributeName,d=p.attributeNamespace,l===null?r.removeAttribute(i):(p=p.type,l=p===3||p===4&&l===!0?"":""+l,d?r.setAttributeNS(d,i,l):r.setAttribute(i,l))))}var I=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,T=Symbol.for("react.element"),F=Symbol.for("react.portal"),z=Symbol.for("react.fragment"),O=Symbol.for("react.strict_mode"),q=Symbol.for("react.profiler"),te=Symbol.for("react.provider"),pe=Symbol.for("react.context"),X=Symbol.for("react.forward_ref"),de=Symbol.for("react.suspense"),ke=Symbol.for("react.suspense_list"),we=Symbol.for("react.memo"),De=Symbol.for("react.lazy"),me=Symbol.for("react.offscreen"),Y=Symbol.iterator;function ue(r){return r===null||typeof r!="object"?null:(r=Y&&r[Y]||r["@@iterator"],typeof r=="function"?r:null)}var ie=Object.assign,L;function K(r){if(L===void 0)try{throw Error()}catch(l){var i=l.stack.trim().match(/\n( *(at )?)/);L=i&&i[1]||""}return`
|
||
`+L+r}var Le=!1;function Oe(r,i){if(!r||Le)return"";Le=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(i)if(i=function(){throw Error()},Object.defineProperty(i.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(i,[])}catch(W){var d=W}Reflect.construct(r,[],i)}else{try{i.call()}catch(W){d=W}r.call(i.prototype)}else{try{throw Error()}catch(W){d=W}r()}}catch(W){if(W&&d&&typeof W.stack=="string"){for(var p=W.stack.split(`
|
||
`),y=d.stack.split(`
|
||
`),k=p.length-1,P=y.length-1;1<=k&&0<=P&&p[k]!==y[P];)P--;for(;1<=k&&0<=P;k--,P--)if(p[k]!==y[P]){if(k!==1||P!==1)do if(k--,P--,0>P||p[k]!==y[P]){var j=`
|
||
`+p[k].replace(" at new "," at ");return r.displayName&&j.includes("<anonymous>")&&(j=j.replace("<anonymous>",r.displayName)),j}while(1<=k&&0<=P);break}}}finally{Le=!1,Error.prepareStackTrace=l}return(r=r?r.displayName||r.name:"")?K(r):""}function Be(r){switch(r.tag){case 5:return K(r.type);case 16:return K("Lazy");case 13:return K("Suspense");case 19:return K("SuspenseList");case 0:case 2:case 15:return r=Oe(r.type,!1),r;case 11:return r=Oe(r.type.render,!1),r;case 1:return r=Oe(r.type,!0),r;default:return""}}function We(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 z:return"Fragment";case F:return"Portal";case q:return"Profiler";case O:return"StrictMode";case de:return"Suspense";case ke:return"SuspenseList"}if(typeof r=="object")switch(r.$$typeof){case pe:return(r.displayName||"Context")+".Consumer";case te:return(r._context.displayName||"Context")+".Provider";case X:var i=r.render;return r=r.displayName,r||(r=i.displayName||i.name||"",r=r!==""?"ForwardRef("+r+")":"ForwardRef"),r;case we:return i=r.displayName||null,i!==null?i:We(r.type)||"Memo";case De:i=r._payload,r=r._init;try{return We(r(i))}catch{}}return null}function be(r){var i=r.type;switch(r.tag){case 24:return"Cache";case 9:return(i.displayName||"Context")+".Consumer";case 10:return(i._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return r=i.render,r=r.displayName||r.name||"",i.displayName||(r!==""?"ForwardRef("+r+")":"ForwardRef");case 7:return"Fragment";case 5:return i;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return We(i);case 8:return i===O?"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 i=="function")return i.displayName||i.name||null;if(typeof i=="string")return i}return null}function Pe(r){switch(typeof r){case"boolean":case"number":case"string":case"undefined":return r;case"object":return r;default:return""}}function Me(r){var i=r.type;return(r=r.nodeName)&&r.toLowerCase()==="input"&&(i==="checkbox"||i==="radio")}function rt(r){var i=Me(r)?"checked":"value",l=Object.getOwnPropertyDescriptor(r.constructor.prototype,i),d=""+r[i];if(!r.hasOwnProperty(i)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var p=l.get,y=l.set;return Object.defineProperty(r,i,{configurable:!0,get:function(){return p.call(this)},set:function(k){d=""+k,y.call(this,k)}}),Object.defineProperty(r,i,{enumerable:l.enumerable}),{getValue:function(){return d},setValue:function(k){d=""+k},stopTracking:function(){r._valueTracker=null,delete r[i]}}}}function at(r){r._valueTracker||(r._valueTracker=rt(r))}function Ee(r){if(!r)return!1;var i=r._valueTracker;if(!i)return!0;var l=i.getValue(),d="";return r&&(d=Me(r)?r.checked?"true":"false":r.value),r=d,r!==l?(i.setValue(r),!0):!1}function Xe(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 mt(r,i){var l=i.checked;return ie({},i,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:l??r._wrapperState.initialChecked})}function It(r,i){var l=i.defaultValue==null?"":i.defaultValue,d=i.checked!=null?i.checked:i.defaultChecked;l=Pe(i.value!=null?i.value:l),r._wrapperState={initialChecked:d,initialValue:l,controlled:i.type==="checkbox"||i.type==="radio"?i.checked!=null:i.value!=null}}function en(r,i){i=i.checked,i!=null&&N(r,"checked",i,!1)}function an(r,i){en(r,i);var l=Pe(i.value),d=i.type;if(l!=null)d==="number"?(l===0&&r.value===""||r.value!=l)&&(r.value=""+l):r.value!==""+l&&(r.value=""+l);else if(d==="submit"||d==="reset"){r.removeAttribute("value");return}i.hasOwnProperty("value")?U(r,i.type,l):i.hasOwnProperty("defaultValue")&&U(r,i.type,Pe(i.defaultValue)),i.checked==null&&i.defaultChecked!=null&&(r.defaultChecked=!!i.defaultChecked)}function A(r,i,l){if(i.hasOwnProperty("value")||i.hasOwnProperty("defaultValue")){var d=i.type;if(!(d!=="submit"&&d!=="reset"||i.value!==void 0&&i.value!==null))return;i=""+r._wrapperState.initialValue,l||i===r.value||(r.value=i),r.defaultValue=i}l=r.name,l!==""&&(r.name=""),r.defaultChecked=!!r._wrapperState.initialChecked,l!==""&&(r.name=l)}function U(r,i,l){(i!=="number"||Xe(r.ownerDocument)!==r)&&(l==null?r.defaultValue=""+r._wrapperState.initialValue:r.defaultValue!==""+l&&(r.defaultValue=""+l))}var H=Array.isArray;function oe(r,i,l,d){if(r=r.options,i){i={};for(var p=0;p<l.length;p++)i["$"+l[p]]=!0;for(l=0;l<r.length;l++)p=i.hasOwnProperty("$"+r[l].value),r[l].selected!==p&&(r[l].selected=p),p&&d&&(r[l].defaultSelected=!0)}else{for(l=""+Pe(l),i=null,p=0;p<r.length;p++){if(r[p].value===l){r[p].selected=!0,d&&(r[p].defaultSelected=!0);return}i!==null||r[p].disabled||(i=r[p])}i!==null&&(i.selected=!0)}}function ae(r,i){if(i.dangerouslySetInnerHTML!=null)throw Error(n(91));return ie({},i,{value:void 0,defaultValue:void 0,children:""+r._wrapperState.initialValue})}function se(r,i){var l=i.value;if(l==null){if(l=i.children,i=i.defaultValue,l!=null){if(i!=null)throw Error(n(92));if(H(l)){if(1<l.length)throw Error(n(93));l=l[0]}i=l}i==null&&(i=""),l=i}r._wrapperState={initialValue:Pe(l)}}function Re(r,i){var l=Pe(i.value),d=Pe(i.defaultValue);l!=null&&(l=""+l,l!==r.value&&(r.value=l),i.defaultValue==null&&r.defaultValue!==l&&(r.defaultValue=l)),d!=null&&(r.defaultValue=""+d)}function Fe(r){var i=r.textContent;i===r._wrapperState.initialValue&&i!==""&&i!==null&&(r.value=i)}function ut(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 yt(r,i){return r==null||r==="http://www.w3.org/1999/xhtml"?ut(i):r==="http://www.w3.org/2000/svg"&&i==="foreignObject"?"http://www.w3.org/1999/xhtml":r}var Wt,kr=function(r){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(i,l,d,p){MSApp.execUnsafeLocalFunction(function(){return r(i,l,d,p)})}:r}(function(r,i){if(r.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in r)r.innerHTML=i;else{for(Wt=Wt||document.createElement("div"),Wt.innerHTML="<svg>"+i.valueOf().toString()+"</svg>",i=Wt.firstChild;r.firstChild;)r.removeChild(r.firstChild);for(;i.firstChild;)r.appendChild(i.firstChild)}});function bt(r,i){if(i){var l=r.firstChild;if(l&&l===r.lastChild&&l.nodeType===3){l.nodeValue=i;return}}r.textContent=i}var ln={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},Tr=["Webkit","ms","Moz","O"];Object.keys(ln).forEach(function(r){Tr.forEach(function(i){i=i+r.charAt(0).toUpperCase()+r.substring(1),ln[i]=ln[r]})});function Fn(r,i,l){return i==null||typeof i=="boolean"||i===""?"":l||typeof i!="number"||i===0||ln.hasOwnProperty(r)&&ln[r]?(""+i).trim():i+"px"}function ms(r,i){r=r.style;for(var l in i)if(i.hasOwnProperty(l)){var d=l.indexOf("--")===0,p=Fn(l,i[l],d);l==="float"&&(l="cssFloat"),d?r.setProperty(l,p):r[l]=p}}var Gr=ie({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 Rr(r,i){if(i){if(Gr[r]&&(i.children!=null||i.dangerouslySetInnerHTML!=null))throw Error(n(137,r));if(i.dangerouslySetInnerHTML!=null){if(i.children!=null)throw Error(n(60));if(typeof i.dangerouslySetInnerHTML!="object"||!("__html"in i.dangerouslySetInnerHTML))throw Error(n(61))}if(i.style!=null&&typeof i.style!="object")throw Error(n(62))}}function gs(r,i){if(r.indexOf("-")===-1)return typeof i.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 Zr=null;function ys(r){return r=r.target||r.srcElement||window,r.correspondingUseElement&&(r=r.correspondingUseElement),r.nodeType===3?r.parentNode:r}var vs=null,ar=null,Kn=null;function Pr(r){if(r=ra(r)){if(typeof vs!="function")throw Error(n(280));var i=r.stateNode;i&&(i=Yl(i),vs(r.stateNode,r.type,i))}}function Kr(r){ar?Kn?Kn.push(r):Kn=[r]:ar=r}function ri(){if(ar){var r=ar,i=Kn;if(Kn=ar=null,Pr(r),i)for(r=0;r<i.length;r++)Pr(i[r])}}function zi(r,i){return r(i)}function D(){}var V=!1;function G(r,i,l){if(V)return r(i,l);V=!0;try{return zi(r,i,l)}finally{V=!1,(ar!==null||Kn!==null)&&(D(),ri())}}function J(r,i){var l=r.stateNode;if(l===null)return null;var d=Yl(l);if(d===null)return null;l=d[i];e:switch(i){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(d=!d.disabled)||(r=r.type,d=!(r==="button"||r==="input"||r==="select"||r==="textarea")),r=!d;break e;default:r=!1}if(r)return null;if(l&&typeof l!="function")throw Error(n(231,i,typeof l));return l}var ge=!1;if(c)try{var Ne={};Object.defineProperty(Ne,"passive",{get:function(){ge=!0}}),window.addEventListener("test",Ne,Ne),window.removeEventListener("test",Ne,Ne)}catch{ge=!1}function Ge(r,i,l,d,p,y,k,P,j){var W=Array.prototype.slice.call(arguments,3);try{i.apply(l,W)}catch(ee){this.onError(ee)}}var xe=!1,Ce=null,fe=!1,Ze=null,tt={onError:function(r){xe=!0,Ce=r}};function xt(r,i,l,d,p,y,k,P,j){xe=!1,Ce=null,Ge.apply(tt,arguments)}function Ht(r,i,l,d,p,y,k,P,j){if(xt.apply(this,arguments),xe){if(xe){var W=Ce;xe=!1,Ce=null}else throw Error(n(198));fe||(fe=!0,Ze=W)}}function ft(r){var i=r,l=r;if(r.alternate)for(;i.return;)i=i.return;else{r=i;do i=r,i.flags&4098&&(l=i.return),r=i.return;while(r)}return i.tag===3?l:null}function vt(r){if(r.tag===13){var i=r.memoizedState;if(i===null&&(r=r.alternate,r!==null&&(i=r.memoizedState)),i!==null)return i.dehydrated}return null}function Mt(r){if(ft(r)!==r)throw Error(n(188))}function xs(r){var i=r.alternate;if(!i){if(i=ft(r),i===null)throw Error(n(188));return i!==r?null:r}for(var l=r,d=i;;){var p=l.return;if(p===null)break;var y=p.alternate;if(y===null){if(d=p.return,d!==null){l=d;continue}break}if(p.child===y.child){for(y=p.child;y;){if(y===l)return Mt(p),r;if(y===d)return Mt(p),i;y=y.sibling}throw Error(n(188))}if(l.return!==d.return)l=p,d=y;else{for(var k=!1,P=p.child;P;){if(P===l){k=!0,l=p,d=y;break}if(P===d){k=!0,d=p,l=y;break}P=P.sibling}if(!k){for(P=y.child;P;){if(P===l){k=!0,l=y,d=p;break}if(P===d){k=!0,d=y,l=p;break}P=P.sibling}if(!k)throw Error(n(189))}}if(l.alternate!==d)throw Error(n(190))}if(l.tag!==3)throw Error(n(188));return l.stateNode.current===l?r:i}function ws(r){return r=xs(r),r!==null?qn(r):null}function qn(r){if(r.tag===5||r.tag===6)return r;for(r=r.child;r!==null;){var i=qn(r);if(i!==null)return i;r=r.sibling}return null}var In=t.unstable_scheduleCallback,Ui=t.unstable_cancelCallback,si=t.unstable_shouldYield,qr=t.unstable_requestPaint,wt=t.unstable_now,$i=t.unstable_getCurrentPriorityLevel,ht=t.unstable_ImmediatePriority,Gt=t.unstable_UserBlockingPriority,Yr=t.unstable_NormalPriority,ii=t.unstable_LowPriority,Rt=t.unstable_IdlePriority,lr=null,Vn=null;function rd(r){if(Vn&&typeof Vn.onCommitFiberRoot=="function")try{Vn.onCommitFiberRoot(lr,r,void 0,(r.current.flags&128)===128)}catch{}}var ur=Math.clz32?Math.clz32:iE,rE=Math.log,sE=Math.LN2;function iE(r){return r>>>=0,r===0?32:31-(rE(r)/sE|0)|0}var jl=64,Dl=4194304;function Vo(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 Ll(r,i){var l=r.pendingLanes;if(l===0)return 0;var d=0,p=r.suspendedLanes,y=r.pingedLanes,k=l&268435455;if(k!==0){var P=k&~p;P!==0?d=Vo(P):(y&=k,y!==0&&(d=Vo(y)))}else k=l&~p,k!==0?d=Vo(k):y!==0&&(d=Vo(y));if(d===0)return 0;if(i!==0&&i!==d&&!(i&p)&&(p=d&-d,y=i&-i,p>=y||p===16&&(y&4194240)!==0))return i;if(d&4&&(d|=l&16),i=r.entangledLanes,i!==0)for(r=r.entanglements,i&=d;0<i;)l=31-ur(i),p=1<<l,d|=r[l],i&=~p;return d}function oE(r,i){switch(r){case 1:case 2:case 4:return i+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 i+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 aE(r,i){for(var l=r.suspendedLanes,d=r.pingedLanes,p=r.expirationTimes,y=r.pendingLanes;0<y;){var k=31-ur(y),P=1<<k,j=p[k];j===-1?(!(P&l)||P&d)&&(p[k]=oE(P,i)):j<=i&&(r.expiredLanes|=P),y&=~P}}function sd(r){return r=r.pendingLanes&-1073741825,r!==0?r:r&1073741824?1073741824:0}function Rm(){var r=jl;return jl<<=1,!(jl&4194240)&&(jl=64),r}function id(r){for(var i=[],l=0;31>l;l++)i.push(r);return i}function Bo(r,i,l){r.pendingLanes|=i,i!==536870912&&(r.suspendedLanes=0,r.pingedLanes=0),r=r.eventTimes,i=31-ur(i),r[i]=l}function lE(r,i){var l=r.pendingLanes&~i;r.pendingLanes=i,r.suspendedLanes=0,r.pingedLanes=0,r.expiredLanes&=i,r.mutableReadLanes&=i,r.entangledLanes&=i,i=r.entanglements;var d=r.eventTimes;for(r=r.expirationTimes;0<l;){var p=31-ur(l),y=1<<p;i[p]=0,d[p]=-1,r[p]=-1,l&=~y}}function od(r,i){var l=r.entangledLanes|=i;for(r=r.entanglements;l;){var d=31-ur(l),p=1<<d;p&i|r[d]&i&&(r[d]|=i),l&=~p}}var gt=0;function Pm(r){return r&=-r,1<r?4<r?r&268435455?16:536870912:4:1}var Nm,ad,Am,jm,Dm,ld=!1,Ml=[],Ss=null,bs=null,_s=null,zo=new Map,Uo=new Map,Es=[],uE="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 Lm(r,i){switch(r){case"focusin":case"focusout":Ss=null;break;case"dragenter":case"dragleave":bs=null;break;case"mouseover":case"mouseout":_s=null;break;case"pointerover":case"pointerout":zo.delete(i.pointerId);break;case"gotpointercapture":case"lostpointercapture":Uo.delete(i.pointerId)}}function $o(r,i,l,d,p,y){return r===null||r.nativeEvent!==y?(r={blockedOn:i,domEventName:l,eventSystemFlags:d,nativeEvent:y,targetContainers:[p]},i!==null&&(i=ra(i),i!==null&&ad(i)),r):(r.eventSystemFlags|=d,i=r.targetContainers,p!==null&&i.indexOf(p)===-1&&i.push(p),r)}function cE(r,i,l,d,p){switch(i){case"focusin":return Ss=$o(Ss,r,i,l,d,p),!0;case"dragenter":return bs=$o(bs,r,i,l,d,p),!0;case"mouseover":return _s=$o(_s,r,i,l,d,p),!0;case"pointerover":var y=p.pointerId;return zo.set(y,$o(zo.get(y)||null,r,i,l,d,p)),!0;case"gotpointercapture":return y=p.pointerId,Uo.set(y,$o(Uo.get(y)||null,r,i,l,d,p)),!0}return!1}function Mm(r){var i=oi(r.target);if(i!==null){var l=ft(i);if(l!==null){if(i=l.tag,i===13){if(i=vt(l),i!==null){r.blockedOn=i,Dm(r.priority,function(){Am(l)});return}}else if(i===3&&l.stateNode.current.memoizedState.isDehydrated){r.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}r.blockedOn=null}function Ol(r){if(r.blockedOn!==null)return!1;for(var i=r.targetContainers;0<i.length;){var l=cd(r.domEventName,r.eventSystemFlags,i[0],r.nativeEvent);if(l===null){l=r.nativeEvent;var d=new l.constructor(l.type,l);Zr=d,l.target.dispatchEvent(d),Zr=null}else return i=ra(l),i!==null&&ad(i),r.blockedOn=l,!1;i.shift()}return!0}function Om(r,i,l){Ol(r)&&l.delete(i)}function dE(){ld=!1,Ss!==null&&Ol(Ss)&&(Ss=null),bs!==null&&Ol(bs)&&(bs=null),_s!==null&&Ol(_s)&&(_s=null),zo.forEach(Om),Uo.forEach(Om)}function Wo(r,i){r.blockedOn===i&&(r.blockedOn=null,ld||(ld=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,dE)))}function Ho(r){function i(p){return Wo(p,r)}if(0<Ml.length){Wo(Ml[0],r);for(var l=1;l<Ml.length;l++){var d=Ml[l];d.blockedOn===r&&(d.blockedOn=null)}}for(Ss!==null&&Wo(Ss,r),bs!==null&&Wo(bs,r),_s!==null&&Wo(_s,r),zo.forEach(i),Uo.forEach(i),l=0;l<Es.length;l++)d=Es[l],d.blockedOn===r&&(d.blockedOn=null);for(;0<Es.length&&(l=Es[0],l.blockedOn===null);)Mm(l),l.blockedOn===null&&Es.shift()}var Wi=I.ReactCurrentBatchConfig,Fl=!0;function fE(r,i,l,d){var p=gt,y=Wi.transition;Wi.transition=null;try{gt=1,ud(r,i,l,d)}finally{gt=p,Wi.transition=y}}function hE(r,i,l,d){var p=gt,y=Wi.transition;Wi.transition=null;try{gt=4,ud(r,i,l,d)}finally{gt=p,Wi.transition=y}}function ud(r,i,l,d){if(Fl){var p=cd(r,i,l,d);if(p===null)Td(r,i,d,Il,l),Lm(r,d);else if(cE(p,r,i,l,d))d.stopPropagation();else if(Lm(r,d),i&4&&-1<uE.indexOf(r)){for(;p!==null;){var y=ra(p);if(y!==null&&Nm(y),y=cd(r,i,l,d),y===null&&Td(r,i,d,Il,l),y===p)break;p=y}p!==null&&d.stopPropagation()}else Td(r,i,d,null,l)}}var Il=null;function cd(r,i,l,d){if(Il=null,r=ys(d),r=oi(r),r!==null)if(i=ft(r),i===null)r=null;else if(l=i.tag,l===13){if(r=vt(i),r!==null)return r;r=null}else if(l===3){if(i.stateNode.current.memoizedState.isDehydrated)return i.tag===3?i.stateNode.containerInfo:null;r=null}else i!==r&&(r=null);return Il=r,null}function Fm(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($i()){case ht:return 1;case Gt:return 4;case Yr:case ii:return 16;case Rt:return 536870912;default:return 16}default:return 16}}var Cs=null,dd=null,Vl=null;function Im(){if(Vl)return Vl;var r,i=dd,l=i.length,d,p="value"in Cs?Cs.value:Cs.textContent,y=p.length;for(r=0;r<l&&i[r]===p[r];r++);var k=l-r;for(d=1;d<=k&&i[l-d]===p[y-d];d++);return Vl=p.slice(r,1<d?1-d:void 0)}function Bl(r){var i=r.keyCode;return"charCode"in r?(r=r.charCode,r===0&&i===13&&(r=13)):r=i,r===10&&(r=13),32<=r||r===13?r:0}function zl(){return!0}function Vm(){return!1}function Bn(r){function i(l,d,p,y,k){this._reactName=l,this._targetInst=p,this.type=d,this.nativeEvent=y,this.target=k,this.currentTarget=null;for(var P in r)r.hasOwnProperty(P)&&(l=r[P],this[P]=l?l(y):y[P]);return this.isDefaultPrevented=(y.defaultPrevented!=null?y.defaultPrevented:y.returnValue===!1)?zl:Vm,this.isPropagationStopped=Vm,this}return ie(i.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=zl)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=zl)},persist:function(){},isPersistent:zl}),i}var Hi={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(r){return r.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},fd=Bn(Hi),Go=ie({},Hi,{view:0,detail:0}),pE=Bn(Go),hd,pd,Zo,Ul=ie({},Go,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:gd,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!==Zo&&(Zo&&r.type==="mousemove"?(hd=r.screenX-Zo.screenX,pd=r.screenY-Zo.screenY):pd=hd=0,Zo=r),hd)},movementY:function(r){return"movementY"in r?r.movementY:pd}}),Bm=Bn(Ul),mE=ie({},Ul,{dataTransfer:0}),gE=Bn(mE),yE=ie({},Go,{relatedTarget:0}),md=Bn(yE),vE=ie({},Hi,{animationName:0,elapsedTime:0,pseudoElement:0}),xE=Bn(vE),wE=ie({},Hi,{clipboardData:function(r){return"clipboardData"in r?r.clipboardData:window.clipboardData}}),SE=Bn(wE),bE=ie({},Hi,{data:0}),zm=Bn(bE),_E={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},EE={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"},CE={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function kE(r){var i=this.nativeEvent;return i.getModifierState?i.getModifierState(r):(r=CE[r])?!!i[r]:!1}function gd(){return kE}var TE=ie({},Go,{key:function(r){if(r.key){var i=_E[r.key]||r.key;if(i!=="Unidentified")return i}return r.type==="keypress"?(r=Bl(r),r===13?"Enter":String.fromCharCode(r)):r.type==="keydown"||r.type==="keyup"?EE[r.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:gd,charCode:function(r){return r.type==="keypress"?Bl(r):0},keyCode:function(r){return r.type==="keydown"||r.type==="keyup"?r.keyCode:0},which:function(r){return r.type==="keypress"?Bl(r):r.type==="keydown"||r.type==="keyup"?r.keyCode:0}}),RE=Bn(TE),PE=ie({},Ul,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Um=Bn(PE),NE=ie({},Go,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:gd}),AE=Bn(NE),jE=ie({},Hi,{propertyName:0,elapsedTime:0,pseudoElement:0}),DE=Bn(jE),LE=ie({},Ul,{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}),ME=Bn(LE),OE=[9,13,27,32],yd=c&&"CompositionEvent"in window,Ko=null;c&&"documentMode"in document&&(Ko=document.documentMode);var FE=c&&"TextEvent"in window&&!Ko,$m=c&&(!yd||Ko&&8<Ko&&11>=Ko),Wm=" ",Hm=!1;function Gm(r,i){switch(r){case"keyup":return OE.indexOf(i.keyCode)!==-1;case"keydown":return i.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Zm(r){return r=r.detail,typeof r=="object"&&"data"in r?r.data:null}var Gi=!1;function IE(r,i){switch(r){case"compositionend":return Zm(i);case"keypress":return i.which!==32?null:(Hm=!0,Wm);case"textInput":return r=i.data,r===Wm&&Hm?null:r;default:return null}}function VE(r,i){if(Gi)return r==="compositionend"||!yd&&Gm(r,i)?(r=Im(),Vl=dd=Cs=null,Gi=!1,r):null;switch(r){case"paste":return null;case"keypress":if(!(i.ctrlKey||i.altKey||i.metaKey)||i.ctrlKey&&i.altKey){if(i.char&&1<i.char.length)return i.char;if(i.which)return String.fromCharCode(i.which)}return null;case"compositionend":return $m&&i.locale!=="ko"?null:i.data;default:return null}}var BE={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 Km(r){var i=r&&r.nodeName&&r.nodeName.toLowerCase();return i==="input"?!!BE[r.type]:i==="textarea"}function qm(r,i,l,d){Kr(d),i=Zl(i,"onChange"),0<i.length&&(l=new fd("onChange","change",null,l,d),r.push({event:l,listeners:i}))}var qo=null,Yo=null;function zE(r){hg(r,0)}function $l(r){var i=Xi(r);if(Ee(i))return r}function UE(r,i){if(r==="change")return i}var Ym=!1;if(c){var vd;if(c){var xd="oninput"in document;if(!xd){var Xm=document.createElement("div");Xm.setAttribute("oninput","return;"),xd=typeof Xm.oninput=="function"}vd=xd}else vd=!1;Ym=vd&&(!document.documentMode||9<document.documentMode)}function Qm(){qo&&(qo.detachEvent("onpropertychange",Jm),Yo=qo=null)}function Jm(r){if(r.propertyName==="value"&&$l(Yo)){var i=[];qm(i,Yo,r,ys(r)),G(zE,i)}}function $E(r,i,l){r==="focusin"?(Qm(),qo=i,Yo=l,qo.attachEvent("onpropertychange",Jm)):r==="focusout"&&Qm()}function WE(r){if(r==="selectionchange"||r==="keyup"||r==="keydown")return $l(Yo)}function HE(r,i){if(r==="click")return $l(i)}function GE(r,i){if(r==="input"||r==="change")return $l(i)}function ZE(r,i){return r===i&&(r!==0||1/r===1/i)||r!==r&&i!==i}var cr=typeof Object.is=="function"?Object.is:ZE;function Xo(r,i){if(cr(r,i))return!0;if(typeof r!="object"||r===null||typeof i!="object"||i===null)return!1;var l=Object.keys(r),d=Object.keys(i);if(l.length!==d.length)return!1;for(d=0;d<l.length;d++){var p=l[d];if(!f.call(i,p)||!cr(r[p],i[p]))return!1}return!0}function eg(r){for(;r&&r.firstChild;)r=r.firstChild;return r}function tg(r,i){var l=eg(r);r=0;for(var d;l;){if(l.nodeType===3){if(d=r+l.textContent.length,r<=i&&d>=i)return{node:l,offset:i-r};r=d}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=eg(l)}}function ng(r,i){return r&&i?r===i?!0:r&&r.nodeType===3?!1:i&&i.nodeType===3?ng(r,i.parentNode):"contains"in r?r.contains(i):r.compareDocumentPosition?!!(r.compareDocumentPosition(i)&16):!1:!1}function rg(){for(var r=window,i=Xe();i instanceof r.HTMLIFrameElement;){try{var l=typeof i.contentWindow.location.href=="string"}catch{l=!1}if(l)r=i.contentWindow;else break;i=Xe(r.document)}return i}function wd(r){var i=r&&r.nodeName&&r.nodeName.toLowerCase();return i&&(i==="input"&&(r.type==="text"||r.type==="search"||r.type==="tel"||r.type==="url"||r.type==="password")||i==="textarea"||r.contentEditable==="true")}function KE(r){var i=rg(),l=r.focusedElem,d=r.selectionRange;if(i!==l&&l&&l.ownerDocument&&ng(l.ownerDocument.documentElement,l)){if(d!==null&&wd(l)){if(i=d.start,r=d.end,r===void 0&&(r=i),"selectionStart"in l)l.selectionStart=i,l.selectionEnd=Math.min(r,l.value.length);else if(r=(i=l.ownerDocument||document)&&i.defaultView||window,r.getSelection){r=r.getSelection();var p=l.textContent.length,y=Math.min(d.start,p);d=d.end===void 0?y:Math.min(d.end,p),!r.extend&&y>d&&(p=d,d=y,y=p),p=tg(l,y);var k=tg(l,d);p&&k&&(r.rangeCount!==1||r.anchorNode!==p.node||r.anchorOffset!==p.offset||r.focusNode!==k.node||r.focusOffset!==k.offset)&&(i=i.createRange(),i.setStart(p.node,p.offset),r.removeAllRanges(),y>d?(r.addRange(i),r.extend(k.node,k.offset)):(i.setEnd(k.node,k.offset),r.addRange(i)))}}for(i=[],r=l;r=r.parentNode;)r.nodeType===1&&i.push({element:r,left:r.scrollLeft,top:r.scrollTop});for(typeof l.focus=="function"&&l.focus(),l=0;l<i.length;l++)r=i[l],r.element.scrollLeft=r.left,r.element.scrollTop=r.top}}var qE=c&&"documentMode"in document&&11>=document.documentMode,Zi=null,Sd=null,Qo=null,bd=!1;function sg(r,i,l){var d=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;bd||Zi==null||Zi!==Xe(d)||(d=Zi,"selectionStart"in d&&wd(d)?d={start:d.selectionStart,end:d.selectionEnd}:(d=(d.ownerDocument&&d.ownerDocument.defaultView||window).getSelection(),d={anchorNode:d.anchorNode,anchorOffset:d.anchorOffset,focusNode:d.focusNode,focusOffset:d.focusOffset}),Qo&&Xo(Qo,d)||(Qo=d,d=Zl(Sd,"onSelect"),0<d.length&&(i=new fd("onSelect","select",null,i,l),r.push({event:i,listeners:d}),i.target=Zi)))}function Wl(r,i){var l={};return l[r.toLowerCase()]=i.toLowerCase(),l["Webkit"+r]="webkit"+i,l["Moz"+r]="moz"+i,l}var Ki={animationend:Wl("Animation","AnimationEnd"),animationiteration:Wl("Animation","AnimationIteration"),animationstart:Wl("Animation","AnimationStart"),transitionend:Wl("Transition","TransitionEnd")},_d={},ig={};c&&(ig=document.createElement("div").style,"AnimationEvent"in window||(delete Ki.animationend.animation,delete Ki.animationiteration.animation,delete Ki.animationstart.animation),"TransitionEvent"in window||delete Ki.transitionend.transition);function Hl(r){if(_d[r])return _d[r];if(!Ki[r])return r;var i=Ki[r],l;for(l in i)if(i.hasOwnProperty(l)&&l in ig)return _d[r]=i[l];return r}var og=Hl("animationend"),ag=Hl("animationiteration"),lg=Hl("animationstart"),ug=Hl("transitionend"),cg=new Map,dg="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 ks(r,i){cg.set(r,i),a(i,[r])}for(var Ed=0;Ed<dg.length;Ed++){var Cd=dg[Ed],YE=Cd.toLowerCase(),XE=Cd[0].toUpperCase()+Cd.slice(1);ks(YE,"on"+XE)}ks(og,"onAnimationEnd"),ks(ag,"onAnimationIteration"),ks(lg,"onAnimationStart"),ks("dblclick","onDoubleClick"),ks("focusin","onFocus"),ks("focusout","onBlur"),ks(ug,"onTransitionEnd"),u("onMouseEnter",["mouseout","mouseover"]),u("onMouseLeave",["mouseout","mouseover"]),u("onPointerEnter",["pointerout","pointerover"]),u("onPointerLeave",["pointerout","pointerover"]),a("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),a("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),a("onBeforeInput",["compositionend","keypress","textInput","paste"]),a("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),a("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),a("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Jo="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(" "),QE=new Set("cancel close invalid load scroll toggle".split(" ").concat(Jo));function fg(r,i,l){var d=r.type||"unknown-event";r.currentTarget=l,Ht(d,i,void 0,r),r.currentTarget=null}function hg(r,i){i=(i&4)!==0;for(var l=0;l<r.length;l++){var d=r[l],p=d.event;d=d.listeners;e:{var y=void 0;if(i)for(var k=d.length-1;0<=k;k--){var P=d[k],j=P.instance,W=P.currentTarget;if(P=P.listener,j!==y&&p.isPropagationStopped())break e;fg(p,P,W),y=j}else for(k=0;k<d.length;k++){if(P=d[k],j=P.instance,W=P.currentTarget,P=P.listener,j!==y&&p.isPropagationStopped())break e;fg(p,P,W),y=j}}}if(fe)throw r=Ze,fe=!1,Ze=null,r}function _t(r,i){var l=i[Dd];l===void 0&&(l=i[Dd]=new Set);var d=r+"__bubble";l.has(d)||(pg(i,r,2,!1),l.add(d))}function kd(r,i,l){var d=0;i&&(d|=4),pg(l,r,d,i)}var Gl="_reactListening"+Math.random().toString(36).slice(2);function ea(r){if(!r[Gl]){r[Gl]=!0,s.forEach(function(l){l!=="selectionchange"&&(QE.has(l)||kd(l,!1,r),kd(l,!0,r))});var i=r.nodeType===9?r:r.ownerDocument;i===null||i[Gl]||(i[Gl]=!0,kd("selectionchange",!1,i))}}function pg(r,i,l,d){switch(Fm(i)){case 1:var p=fE;break;case 4:p=hE;break;default:p=ud}l=p.bind(null,i,l,r),p=void 0,!ge||i!=="touchstart"&&i!=="touchmove"&&i!=="wheel"||(p=!0),d?p!==void 0?r.addEventListener(i,l,{capture:!0,passive:p}):r.addEventListener(i,l,!0):p!==void 0?r.addEventListener(i,l,{passive:p}):r.addEventListener(i,l,!1)}function Td(r,i,l,d,p){var y=d;if(!(i&1)&&!(i&2)&&d!==null)e:for(;;){if(d===null)return;var k=d.tag;if(k===3||k===4){var P=d.stateNode.containerInfo;if(P===p||P.nodeType===8&&P.parentNode===p)break;if(k===4)for(k=d.return;k!==null;){var j=k.tag;if((j===3||j===4)&&(j=k.stateNode.containerInfo,j===p||j.nodeType===8&&j.parentNode===p))return;k=k.return}for(;P!==null;){if(k=oi(P),k===null)return;if(j=k.tag,j===5||j===6){d=y=k;continue e}P=P.parentNode}}d=d.return}G(function(){var W=y,ee=ys(l),ne=[];e:{var Q=cg.get(r);if(Q!==void 0){var ye=fd,_e=r;switch(r){case"keypress":if(Bl(l)===0)break e;case"keydown":case"keyup":ye=RE;break;case"focusin":_e="focus",ye=md;break;case"focusout":_e="blur",ye=md;break;case"beforeblur":case"afterblur":ye=md;break;case"click":if(l.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":ye=Bm;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":ye=gE;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":ye=AE;break;case og:case ag:case lg:ye=xE;break;case ug:ye=DE;break;case"scroll":ye=pE;break;case"wheel":ye=ME;break;case"copy":case"cut":case"paste":ye=SE;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":ye=Um}var Te=(i&4)!==0,Vt=!Te&&r==="scroll",B=Te?Q!==null?Q+"Capture":null:Q;Te=[];for(var M=W,$;M!==null;){$=M;var le=$.stateNode;if($.tag===5&&le!==null&&($=le,B!==null&&(le=J(M,B),le!=null&&Te.push(ta(M,le,$)))),Vt)break;M=M.return}0<Te.length&&(Q=new ye(Q,_e,null,l,ee),ne.push({event:Q,listeners:Te}))}}if(!(i&7)){e:{if(Q=r==="mouseover"||r==="pointerover",ye=r==="mouseout"||r==="pointerout",Q&&l!==Zr&&(_e=l.relatedTarget||l.fromElement)&&(oi(_e)||_e[Xr]))break e;if((ye||Q)&&(Q=ee.window===ee?ee:(Q=ee.ownerDocument)?Q.defaultView||Q.parentWindow:window,ye?(_e=l.relatedTarget||l.toElement,ye=W,_e=_e?oi(_e):null,_e!==null&&(Vt=ft(_e),_e!==Vt||_e.tag!==5&&_e.tag!==6)&&(_e=null)):(ye=null,_e=W),ye!==_e)){if(Te=Bm,le="onMouseLeave",B="onMouseEnter",M="mouse",(r==="pointerout"||r==="pointerover")&&(Te=Um,le="onPointerLeave",B="onPointerEnter",M="pointer"),Vt=ye==null?Q:Xi(ye),$=_e==null?Q:Xi(_e),Q=new Te(le,M+"leave",ye,l,ee),Q.target=Vt,Q.relatedTarget=$,le=null,oi(ee)===W&&(Te=new Te(B,M+"enter",_e,l,ee),Te.target=$,Te.relatedTarget=Vt,le=Te),Vt=le,ye&&_e)t:{for(Te=ye,B=_e,M=0,$=Te;$;$=qi($))M++;for($=0,le=B;le;le=qi(le))$++;for(;0<M-$;)Te=qi(Te),M--;for(;0<$-M;)B=qi(B),$--;for(;M--;){if(Te===B||B!==null&&Te===B.alternate)break t;Te=qi(Te),B=qi(B)}Te=null}else Te=null;ye!==null&&mg(ne,Q,ye,Te,!1),_e!==null&&Vt!==null&&mg(ne,Vt,_e,Te,!0)}}e:{if(Q=W?Xi(W):window,ye=Q.nodeName&&Q.nodeName.toLowerCase(),ye==="select"||ye==="input"&&Q.type==="file")var Ae=UE;else if(Km(Q))if(Ym)Ae=GE;else{Ae=WE;var Ie=$E}else(ye=Q.nodeName)&&ye.toLowerCase()==="input"&&(Q.type==="checkbox"||Q.type==="radio")&&(Ae=HE);if(Ae&&(Ae=Ae(r,W))){qm(ne,Ae,l,ee);break e}Ie&&Ie(r,Q,W),r==="focusout"&&(Ie=Q._wrapperState)&&Ie.controlled&&Q.type==="number"&&U(Q,"number",Q.value)}switch(Ie=W?Xi(W):window,r){case"focusin":(Km(Ie)||Ie.contentEditable==="true")&&(Zi=Ie,Sd=W,Qo=null);break;case"focusout":Qo=Sd=Zi=null;break;case"mousedown":bd=!0;break;case"contextmenu":case"mouseup":case"dragend":bd=!1,sg(ne,l,ee);break;case"selectionchange":if(qE)break;case"keydown":case"keyup":sg(ne,l,ee)}var Ve;if(yd)e:{switch(r){case"compositionstart":var Ke="onCompositionStart";break e;case"compositionend":Ke="onCompositionEnd";break e;case"compositionupdate":Ke="onCompositionUpdate";break e}Ke=void 0}else Gi?Gm(r,l)&&(Ke="onCompositionEnd"):r==="keydown"&&l.keyCode===229&&(Ke="onCompositionStart");Ke&&($m&&l.locale!=="ko"&&(Gi||Ke!=="onCompositionStart"?Ke==="onCompositionEnd"&&Gi&&(Ve=Im()):(Cs=ee,dd="value"in Cs?Cs.value:Cs.textContent,Gi=!0)),Ie=Zl(W,Ke),0<Ie.length&&(Ke=new zm(Ke,r,null,l,ee),ne.push({event:Ke,listeners:Ie}),Ve?Ke.data=Ve:(Ve=Zm(l),Ve!==null&&(Ke.data=Ve)))),(Ve=FE?IE(r,l):VE(r,l))&&(W=Zl(W,"onBeforeInput"),0<W.length&&(ee=new zm("onBeforeInput","beforeinput",null,l,ee),ne.push({event:ee,listeners:W}),ee.data=Ve))}hg(ne,i)})}function ta(r,i,l){return{instance:r,listener:i,currentTarget:l}}function Zl(r,i){for(var l=i+"Capture",d=[];r!==null;){var p=r,y=p.stateNode;p.tag===5&&y!==null&&(p=y,y=J(r,l),y!=null&&d.unshift(ta(r,y,p)),y=J(r,i),y!=null&&d.push(ta(r,y,p))),r=r.return}return d}function qi(r){if(r===null)return null;do r=r.return;while(r&&r.tag!==5);return r||null}function mg(r,i,l,d,p){for(var y=i._reactName,k=[];l!==null&&l!==d;){var P=l,j=P.alternate,W=P.stateNode;if(j!==null&&j===d)break;P.tag===5&&W!==null&&(P=W,p?(j=J(l,y),j!=null&&k.unshift(ta(l,j,P))):p||(j=J(l,y),j!=null&&k.push(ta(l,j,P)))),l=l.return}k.length!==0&&r.push({event:i,listeners:k})}var JE=/\r\n?/g,e1=/\u0000|\uFFFD/g;function gg(r){return(typeof r=="string"?r:""+r).replace(JE,`
|
||
`).replace(e1,"")}function Kl(r,i,l){if(i=gg(i),gg(r)!==i&&l)throw Error(n(425))}function ql(){}var Rd=null,Pd=null;function Nd(r,i){return r==="textarea"||r==="noscript"||typeof i.children=="string"||typeof i.children=="number"||typeof i.dangerouslySetInnerHTML=="object"&&i.dangerouslySetInnerHTML!==null&&i.dangerouslySetInnerHTML.__html!=null}var Ad=typeof setTimeout=="function"?setTimeout:void 0,t1=typeof clearTimeout=="function"?clearTimeout:void 0,yg=typeof Promise=="function"?Promise:void 0,n1=typeof queueMicrotask=="function"?queueMicrotask:typeof yg<"u"?function(r){return yg.resolve(null).then(r).catch(r1)}:Ad;function r1(r){setTimeout(function(){throw r})}function jd(r,i){var l=i,d=0;do{var p=l.nextSibling;if(r.removeChild(l),p&&p.nodeType===8)if(l=p.data,l==="/$"){if(d===0){r.removeChild(p),Ho(i);return}d--}else l!=="$"&&l!=="$?"&&l!=="$!"||d++;l=p}while(l);Ho(i)}function Ts(r){for(;r!=null;r=r.nextSibling){var i=r.nodeType;if(i===1||i===3)break;if(i===8){if(i=r.data,i==="$"||i==="$!"||i==="$?")break;if(i==="/$")return null}}return r}function vg(r){r=r.previousSibling;for(var i=0;r;){if(r.nodeType===8){var l=r.data;if(l==="$"||l==="$!"||l==="$?"){if(i===0)return r;i--}else l==="/$"&&i++}r=r.previousSibling}return null}var Yi=Math.random().toString(36).slice(2),Nr="__reactFiber$"+Yi,na="__reactProps$"+Yi,Xr="__reactContainer$"+Yi,Dd="__reactEvents$"+Yi,s1="__reactListeners$"+Yi,i1="__reactHandles$"+Yi;function oi(r){var i=r[Nr];if(i)return i;for(var l=r.parentNode;l;){if(i=l[Xr]||l[Nr]){if(l=i.alternate,i.child!==null||l!==null&&l.child!==null)for(r=vg(r);r!==null;){if(l=r[Nr])return l;r=vg(r)}return i}r=l,l=r.parentNode}return null}function ra(r){return r=r[Nr]||r[Xr],!r||r.tag!==5&&r.tag!==6&&r.tag!==13&&r.tag!==3?null:r}function Xi(r){if(r.tag===5||r.tag===6)return r.stateNode;throw Error(n(33))}function Yl(r){return r[na]||null}var Ld=[],Qi=-1;function Rs(r){return{current:r}}function Et(r){0>Qi||(r.current=Ld[Qi],Ld[Qi]=null,Qi--)}function St(r,i){Qi++,Ld[Qi]=r.current,r.current=i}var Ps={},un=Rs(Ps),En=Rs(!1),ai=Ps;function Ji(r,i){var l=r.type.contextTypes;if(!l)return Ps;var d=r.stateNode;if(d&&d.__reactInternalMemoizedUnmaskedChildContext===i)return d.__reactInternalMemoizedMaskedChildContext;var p={},y;for(y in l)p[y]=i[y];return d&&(r=r.stateNode,r.__reactInternalMemoizedUnmaskedChildContext=i,r.__reactInternalMemoizedMaskedChildContext=p),p}function Cn(r){return r=r.childContextTypes,r!=null}function Xl(){Et(En),Et(un)}function xg(r,i,l){if(un.current!==Ps)throw Error(n(168));St(un,i),St(En,l)}function wg(r,i,l){var d=r.stateNode;if(i=i.childContextTypes,typeof d.getChildContext!="function")return l;d=d.getChildContext();for(var p in d)if(!(p in i))throw Error(n(108,be(r)||"Unknown",p));return ie({},l,d)}function Ql(r){return r=(r=r.stateNode)&&r.__reactInternalMemoizedMergedChildContext||Ps,ai=un.current,St(un,r),St(En,En.current),!0}function Sg(r,i,l){var d=r.stateNode;if(!d)throw Error(n(169));l?(r=wg(r,i,ai),d.__reactInternalMemoizedMergedChildContext=r,Et(En),Et(un),St(un,r)):Et(En),St(En,l)}var Qr=null,Jl=!1,Md=!1;function bg(r){Qr===null?Qr=[r]:Qr.push(r)}function o1(r){Jl=!0,bg(r)}function Ns(){if(!Md&&Qr!==null){Md=!0;var r=0,i=gt;try{var l=Qr;for(gt=1;r<l.length;r++){var d=l[r];do d=d(!0);while(d!==null)}Qr=null,Jl=!1}catch(p){throw Qr!==null&&(Qr=Qr.slice(r+1)),In(ht,Ns),p}finally{gt=i,Md=!1}}return null}var eo=[],to=0,eu=null,tu=0,Yn=[],Xn=0,li=null,Jr=1,es="";function ui(r,i){eo[to++]=tu,eo[to++]=eu,eu=r,tu=i}function _g(r,i,l){Yn[Xn++]=Jr,Yn[Xn++]=es,Yn[Xn++]=li,li=r;var d=Jr;r=es;var p=32-ur(d)-1;d&=~(1<<p),l+=1;var y=32-ur(i)+p;if(30<y){var k=p-p%5;y=(d&(1<<k)-1).toString(32),d>>=k,p-=k,Jr=1<<32-ur(i)+p|l<<p|d,es=y+r}else Jr=1<<y|l<<p|d,es=r}function Od(r){r.return!==null&&(ui(r,1),_g(r,1,0))}function Fd(r){for(;r===eu;)eu=eo[--to],eo[to]=null,tu=eo[--to],eo[to]=null;for(;r===li;)li=Yn[--Xn],Yn[Xn]=null,es=Yn[--Xn],Yn[Xn]=null,Jr=Yn[--Xn],Yn[Xn]=null}var zn=null,Un=null,Tt=!1,dr=null;function Eg(r,i){var l=tr(5,null,null,0);l.elementType="DELETED",l.stateNode=i,l.return=r,i=r.deletions,i===null?(r.deletions=[l],r.flags|=16):i.push(l)}function Cg(r,i){switch(r.tag){case 5:var l=r.type;return i=i.nodeType!==1||l.toLowerCase()!==i.nodeName.toLowerCase()?null:i,i!==null?(r.stateNode=i,zn=r,Un=Ts(i.firstChild),!0):!1;case 6:return i=r.pendingProps===""||i.nodeType!==3?null:i,i!==null?(r.stateNode=i,zn=r,Un=null,!0):!1;case 13:return i=i.nodeType!==8?null:i,i!==null?(l=li!==null?{id:Jr,overflow:es}:null,r.memoizedState={dehydrated:i,treeContext:l,retryLane:1073741824},l=tr(18,null,null,0),l.stateNode=i,l.return=r,r.child=l,zn=r,Un=null,!0):!1;default:return!1}}function Id(r){return(r.mode&1)!==0&&(r.flags&128)===0}function Vd(r){if(Tt){var i=Un;if(i){var l=i;if(!Cg(r,i)){if(Id(r))throw Error(n(418));i=Ts(l.nextSibling);var d=zn;i&&Cg(r,i)?Eg(d,l):(r.flags=r.flags&-4097|2,Tt=!1,zn=r)}}else{if(Id(r))throw Error(n(418));r.flags=r.flags&-4097|2,Tt=!1,zn=r}}}function kg(r){for(r=r.return;r!==null&&r.tag!==5&&r.tag!==3&&r.tag!==13;)r=r.return;zn=r}function nu(r){if(r!==zn)return!1;if(!Tt)return kg(r),Tt=!0,!1;var i;if((i=r.tag!==3)&&!(i=r.tag!==5)&&(i=r.type,i=i!=="head"&&i!=="body"&&!Nd(r.type,r.memoizedProps)),i&&(i=Un)){if(Id(r))throw Tg(),Error(n(418));for(;i;)Eg(r,i),i=Ts(i.nextSibling)}if(kg(r),r.tag===13){if(r=r.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(n(317));e:{for(r=r.nextSibling,i=0;r;){if(r.nodeType===8){var l=r.data;if(l==="/$"){if(i===0){Un=Ts(r.nextSibling);break e}i--}else l!=="$"&&l!=="$!"&&l!=="$?"||i++}r=r.nextSibling}Un=null}}else Un=zn?Ts(r.stateNode.nextSibling):null;return!0}function Tg(){for(var r=Un;r;)r=Ts(r.nextSibling)}function no(){Un=zn=null,Tt=!1}function Bd(r){dr===null?dr=[r]:dr.push(r)}var a1=I.ReactCurrentBatchConfig;function sa(r,i,l){if(r=l.ref,r!==null&&typeof r!="function"&&typeof r!="object"){if(l._owner){if(l=l._owner,l){if(l.tag!==1)throw Error(n(309));var d=l.stateNode}if(!d)throw Error(n(147,r));var p=d,y=""+r;return i!==null&&i.ref!==null&&typeof i.ref=="function"&&i.ref._stringRef===y?i.ref:(i=function(k){var P=p.refs;k===null?delete P[y]:P[y]=k},i._stringRef=y,i)}if(typeof r!="string")throw Error(n(284));if(!l._owner)throw Error(n(290,r))}return r}function ru(r,i){throw r=Object.prototype.toString.call(i),Error(n(31,r==="[object Object]"?"object with keys {"+Object.keys(i).join(", ")+"}":r))}function Rg(r){var i=r._init;return i(r._payload)}function Pg(r){function i(B,M){if(r){var $=B.deletions;$===null?(B.deletions=[M],B.flags|=16):$.push(M)}}function l(B,M){if(!r)return null;for(;M!==null;)i(B,M),M=M.sibling;return null}function d(B,M){for(B=new Map;M!==null;)M.key!==null?B.set(M.key,M):B.set(M.index,M),M=M.sibling;return B}function p(B,M){return B=Is(B,M),B.index=0,B.sibling=null,B}function y(B,M,$){return B.index=$,r?($=B.alternate,$!==null?($=$.index,$<M?(B.flags|=2,M):$):(B.flags|=2,M)):(B.flags|=1048576,M)}function k(B){return r&&B.alternate===null&&(B.flags|=2),B}function P(B,M,$,le){return M===null||M.tag!==6?(M=jf($,B.mode,le),M.return=B,M):(M=p(M,$),M.return=B,M)}function j(B,M,$,le){var Ae=$.type;return Ae===z?ee(B,M,$.props.children,le,$.key):M!==null&&(M.elementType===Ae||typeof Ae=="object"&&Ae!==null&&Ae.$$typeof===De&&Rg(Ae)===M.type)?(le=p(M,$.props),le.ref=sa(B,M,$),le.return=B,le):(le=Tu($.type,$.key,$.props,null,B.mode,le),le.ref=sa(B,M,$),le.return=B,le)}function W(B,M,$,le){return M===null||M.tag!==4||M.stateNode.containerInfo!==$.containerInfo||M.stateNode.implementation!==$.implementation?(M=Df($,B.mode,le),M.return=B,M):(M=p(M,$.children||[]),M.return=B,M)}function ee(B,M,$,le,Ae){return M===null||M.tag!==7?(M=yi($,B.mode,le,Ae),M.return=B,M):(M=p(M,$),M.return=B,M)}function ne(B,M,$){if(typeof M=="string"&&M!==""||typeof M=="number")return M=jf(""+M,B.mode,$),M.return=B,M;if(typeof M=="object"&&M!==null){switch(M.$$typeof){case T:return $=Tu(M.type,M.key,M.props,null,B.mode,$),$.ref=sa(B,null,M),$.return=B,$;case F:return M=Df(M,B.mode,$),M.return=B,M;case De:var le=M._init;return ne(B,le(M._payload),$)}if(H(M)||ue(M))return M=yi(M,B.mode,$,null),M.return=B,M;ru(B,M)}return null}function Q(B,M,$,le){var Ae=M!==null?M.key:null;if(typeof $=="string"&&$!==""||typeof $=="number")return Ae!==null?null:P(B,M,""+$,le);if(typeof $=="object"&&$!==null){switch($.$$typeof){case T:return $.key===Ae?j(B,M,$,le):null;case F:return $.key===Ae?W(B,M,$,le):null;case De:return Ae=$._init,Q(B,M,Ae($._payload),le)}if(H($)||ue($))return Ae!==null?null:ee(B,M,$,le,null);ru(B,$)}return null}function ye(B,M,$,le,Ae){if(typeof le=="string"&&le!==""||typeof le=="number")return B=B.get($)||null,P(M,B,""+le,Ae);if(typeof le=="object"&&le!==null){switch(le.$$typeof){case T:return B=B.get(le.key===null?$:le.key)||null,j(M,B,le,Ae);case F:return B=B.get(le.key===null?$:le.key)||null,W(M,B,le,Ae);case De:var Ie=le._init;return ye(B,M,$,Ie(le._payload),Ae)}if(H(le)||ue(le))return B=B.get($)||null,ee(M,B,le,Ae,null);ru(M,le)}return null}function _e(B,M,$,le){for(var Ae=null,Ie=null,Ve=M,Ke=M=0,Qt=null;Ve!==null&&Ke<$.length;Ke++){Ve.index>Ke?(Qt=Ve,Ve=null):Qt=Ve.sibling;var dt=Q(B,Ve,$[Ke],le);if(dt===null){Ve===null&&(Ve=Qt);break}r&&Ve&&dt.alternate===null&&i(B,Ve),M=y(dt,M,Ke),Ie===null?Ae=dt:Ie.sibling=dt,Ie=dt,Ve=Qt}if(Ke===$.length)return l(B,Ve),Tt&&ui(B,Ke),Ae;if(Ve===null){for(;Ke<$.length;Ke++)Ve=ne(B,$[Ke],le),Ve!==null&&(M=y(Ve,M,Ke),Ie===null?Ae=Ve:Ie.sibling=Ve,Ie=Ve);return Tt&&ui(B,Ke),Ae}for(Ve=d(B,Ve);Ke<$.length;Ke++)Qt=ye(Ve,B,Ke,$[Ke],le),Qt!==null&&(r&&Qt.alternate!==null&&Ve.delete(Qt.key===null?Ke:Qt.key),M=y(Qt,M,Ke),Ie===null?Ae=Qt:Ie.sibling=Qt,Ie=Qt);return r&&Ve.forEach(function(Vs){return i(B,Vs)}),Tt&&ui(B,Ke),Ae}function Te(B,M,$,le){var Ae=ue($);if(typeof Ae!="function")throw Error(n(150));if($=Ae.call($),$==null)throw Error(n(151));for(var Ie=Ae=null,Ve=M,Ke=M=0,Qt=null,dt=$.next();Ve!==null&&!dt.done;Ke++,dt=$.next()){Ve.index>Ke?(Qt=Ve,Ve=null):Qt=Ve.sibling;var Vs=Q(B,Ve,dt.value,le);if(Vs===null){Ve===null&&(Ve=Qt);break}r&&Ve&&Vs.alternate===null&&i(B,Ve),M=y(Vs,M,Ke),Ie===null?Ae=Vs:Ie.sibling=Vs,Ie=Vs,Ve=Qt}if(dt.done)return l(B,Ve),Tt&&ui(B,Ke),Ae;if(Ve===null){for(;!dt.done;Ke++,dt=$.next())dt=ne(B,dt.value,le),dt!==null&&(M=y(dt,M,Ke),Ie===null?Ae=dt:Ie.sibling=dt,Ie=dt);return Tt&&ui(B,Ke),Ae}for(Ve=d(B,Ve);!dt.done;Ke++,dt=$.next())dt=ye(Ve,B,Ke,dt.value,le),dt!==null&&(r&&dt.alternate!==null&&Ve.delete(dt.key===null?Ke:dt.key),M=y(dt,M,Ke),Ie===null?Ae=dt:Ie.sibling=dt,Ie=dt);return r&&Ve.forEach(function(V1){return i(B,V1)}),Tt&&ui(B,Ke),Ae}function Vt(B,M,$,le){if(typeof $=="object"&&$!==null&&$.type===z&&$.key===null&&($=$.props.children),typeof $=="object"&&$!==null){switch($.$$typeof){case T:e:{for(var Ae=$.key,Ie=M;Ie!==null;){if(Ie.key===Ae){if(Ae=$.type,Ae===z){if(Ie.tag===7){l(B,Ie.sibling),M=p(Ie,$.props.children),M.return=B,B=M;break e}}else if(Ie.elementType===Ae||typeof Ae=="object"&&Ae!==null&&Ae.$$typeof===De&&Rg(Ae)===Ie.type){l(B,Ie.sibling),M=p(Ie,$.props),M.ref=sa(B,Ie,$),M.return=B,B=M;break e}l(B,Ie);break}else i(B,Ie);Ie=Ie.sibling}$.type===z?(M=yi($.props.children,B.mode,le,$.key),M.return=B,B=M):(le=Tu($.type,$.key,$.props,null,B.mode,le),le.ref=sa(B,M,$),le.return=B,B=le)}return k(B);case F:e:{for(Ie=$.key;M!==null;){if(M.key===Ie)if(M.tag===4&&M.stateNode.containerInfo===$.containerInfo&&M.stateNode.implementation===$.implementation){l(B,M.sibling),M=p(M,$.children||[]),M.return=B,B=M;break e}else{l(B,M);break}else i(B,M);M=M.sibling}M=Df($,B.mode,le),M.return=B,B=M}return k(B);case De:return Ie=$._init,Vt(B,M,Ie($._payload),le)}if(H($))return _e(B,M,$,le);if(ue($))return Te(B,M,$,le);ru(B,$)}return typeof $=="string"&&$!==""||typeof $=="number"?($=""+$,M!==null&&M.tag===6?(l(B,M.sibling),M=p(M,$),M.return=B,B=M):(l(B,M),M=jf($,B.mode,le),M.return=B,B=M),k(B)):l(B,M)}return Vt}var ro=Pg(!0),Ng=Pg(!1),su=Rs(null),iu=null,so=null,zd=null;function Ud(){zd=so=iu=null}function $d(r){var i=su.current;Et(su),r._currentValue=i}function Wd(r,i,l){for(;r!==null;){var d=r.alternate;if((r.childLanes&i)!==i?(r.childLanes|=i,d!==null&&(d.childLanes|=i)):d!==null&&(d.childLanes&i)!==i&&(d.childLanes|=i),r===l)break;r=r.return}}function io(r,i){iu=r,zd=so=null,r=r.dependencies,r!==null&&r.firstContext!==null&&(r.lanes&i&&(kn=!0),r.firstContext=null)}function Qn(r){var i=r._currentValue;if(zd!==r)if(r={context:r,memoizedValue:i,next:null},so===null){if(iu===null)throw Error(n(308));so=r,iu.dependencies={lanes:0,firstContext:r}}else so=so.next=r;return i}var ci=null;function Hd(r){ci===null?ci=[r]:ci.push(r)}function Ag(r,i,l,d){var p=i.interleaved;return p===null?(l.next=l,Hd(i)):(l.next=p.next,p.next=l),i.interleaved=l,ts(r,d)}function ts(r,i){r.lanes|=i;var l=r.alternate;for(l!==null&&(l.lanes|=i),l=r,r=r.return;r!==null;)r.childLanes|=i,l=r.alternate,l!==null&&(l.childLanes|=i),l=r,r=r.return;return l.tag===3?l.stateNode:null}var As=!1;function Gd(r){r.updateQueue={baseState:r.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function jg(r,i){r=r.updateQueue,i.updateQueue===r&&(i.updateQueue={baseState:r.baseState,firstBaseUpdate:r.firstBaseUpdate,lastBaseUpdate:r.lastBaseUpdate,shared:r.shared,effects:r.effects})}function ns(r,i){return{eventTime:r,lane:i,tag:0,payload:null,callback:null,next:null}}function js(r,i,l){var d=r.updateQueue;if(d===null)return null;if(d=d.shared,ct&2){var p=d.pending;return p===null?i.next=i:(i.next=p.next,p.next=i),d.pending=i,ts(r,l)}return p=d.interleaved,p===null?(i.next=i,Hd(d)):(i.next=p.next,p.next=i),d.interleaved=i,ts(r,l)}function ou(r,i,l){if(i=i.updateQueue,i!==null&&(i=i.shared,(l&4194240)!==0)){var d=i.lanes;d&=r.pendingLanes,l|=d,i.lanes=l,od(r,l)}}function Dg(r,i){var l=r.updateQueue,d=r.alternate;if(d!==null&&(d=d.updateQueue,l===d)){var p=null,y=null;if(l=l.firstBaseUpdate,l!==null){do{var k={eventTime:l.eventTime,lane:l.lane,tag:l.tag,payload:l.payload,callback:l.callback,next:null};y===null?p=y=k:y=y.next=k,l=l.next}while(l!==null);y===null?p=y=i:y=y.next=i}else p=y=i;l={baseState:d.baseState,firstBaseUpdate:p,lastBaseUpdate:y,shared:d.shared,effects:d.effects},r.updateQueue=l;return}r=l.lastBaseUpdate,r===null?l.firstBaseUpdate=i:r.next=i,l.lastBaseUpdate=i}function au(r,i,l,d){var p=r.updateQueue;As=!1;var y=p.firstBaseUpdate,k=p.lastBaseUpdate,P=p.shared.pending;if(P!==null){p.shared.pending=null;var j=P,W=j.next;j.next=null,k===null?y=W:k.next=W,k=j;var ee=r.alternate;ee!==null&&(ee=ee.updateQueue,P=ee.lastBaseUpdate,P!==k&&(P===null?ee.firstBaseUpdate=W:P.next=W,ee.lastBaseUpdate=j))}if(y!==null){var ne=p.baseState;k=0,ee=W=j=null,P=y;do{var Q=P.lane,ye=P.eventTime;if((d&Q)===Q){ee!==null&&(ee=ee.next={eventTime:ye,lane:0,tag:P.tag,payload:P.payload,callback:P.callback,next:null});e:{var _e=r,Te=P;switch(Q=i,ye=l,Te.tag){case 1:if(_e=Te.payload,typeof _e=="function"){ne=_e.call(ye,ne,Q);break e}ne=_e;break e;case 3:_e.flags=_e.flags&-65537|128;case 0:if(_e=Te.payload,Q=typeof _e=="function"?_e.call(ye,ne,Q):_e,Q==null)break e;ne=ie({},ne,Q);break e;case 2:As=!0}}P.callback!==null&&P.lane!==0&&(r.flags|=64,Q=p.effects,Q===null?p.effects=[P]:Q.push(P))}else ye={eventTime:ye,lane:Q,tag:P.tag,payload:P.payload,callback:P.callback,next:null},ee===null?(W=ee=ye,j=ne):ee=ee.next=ye,k|=Q;if(P=P.next,P===null){if(P=p.shared.pending,P===null)break;Q=P,P=Q.next,Q.next=null,p.lastBaseUpdate=Q,p.shared.pending=null}}while(!0);if(ee===null&&(j=ne),p.baseState=j,p.firstBaseUpdate=W,p.lastBaseUpdate=ee,i=p.shared.interleaved,i!==null){p=i;do k|=p.lane,p=p.next;while(p!==i)}else y===null&&(p.shared.lanes=0);hi|=k,r.lanes=k,r.memoizedState=ne}}function Lg(r,i,l){if(r=i.effects,i.effects=null,r!==null)for(i=0;i<r.length;i++){var d=r[i],p=d.callback;if(p!==null){if(d.callback=null,d=l,typeof p!="function")throw Error(n(191,p));p.call(d)}}}var ia={},Ar=Rs(ia),oa=Rs(ia),aa=Rs(ia);function di(r){if(r===ia)throw Error(n(174));return r}function Zd(r,i){switch(St(aa,i),St(oa,r),St(Ar,ia),r=i.nodeType,r){case 9:case 11:i=(i=i.documentElement)?i.namespaceURI:yt(null,"");break;default:r=r===8?i.parentNode:i,i=r.namespaceURI||null,r=r.tagName,i=yt(i,r)}Et(Ar),St(Ar,i)}function oo(){Et(Ar),Et(oa),Et(aa)}function Mg(r){di(aa.current);var i=di(Ar.current),l=yt(i,r.type);i!==l&&(St(oa,r),St(Ar,l))}function Kd(r){oa.current===r&&(Et(Ar),Et(oa))}var Pt=Rs(0);function lu(r){for(var i=r;i!==null;){if(i.tag===13){var l=i.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||l.data==="$?"||l.data==="$!"))return i}else if(i.tag===19&&i.memoizedProps.revealOrder!==void 0){if(i.flags&128)return i}else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===r)break;for(;i.sibling===null;){if(i.return===null||i.return===r)return null;i=i.return}i.sibling.return=i.return,i=i.sibling}return null}var qd=[];function Yd(){for(var r=0;r<qd.length;r++)qd[r]._workInProgressVersionPrimary=null;qd.length=0}var uu=I.ReactCurrentDispatcher,Xd=I.ReactCurrentBatchConfig,fi=0,Nt=null,Zt=null,Yt=null,cu=!1,la=!1,ua=0,l1=0;function cn(){throw Error(n(321))}function Qd(r,i){if(i===null)return!1;for(var l=0;l<i.length&&l<r.length;l++)if(!cr(r[l],i[l]))return!1;return!0}function Jd(r,i,l,d,p,y){if(fi=y,Nt=i,i.memoizedState=null,i.updateQueue=null,i.lanes=0,uu.current=r===null||r.memoizedState===null?f1:h1,r=l(d,p),la){y=0;do{if(la=!1,ua=0,25<=y)throw Error(n(301));y+=1,Yt=Zt=null,i.updateQueue=null,uu.current=p1,r=l(d,p)}while(la)}if(uu.current=hu,i=Zt!==null&&Zt.next!==null,fi=0,Yt=Zt=Nt=null,cu=!1,i)throw Error(n(300));return r}function ef(){var r=ua!==0;return ua=0,r}function jr(){var r={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Yt===null?Nt.memoizedState=Yt=r:Yt=Yt.next=r,Yt}function Jn(){if(Zt===null){var r=Nt.alternate;r=r!==null?r.memoizedState:null}else r=Zt.next;var i=Yt===null?Nt.memoizedState:Yt.next;if(i!==null)Yt=i,Zt=r;else{if(r===null)throw Error(n(310));Zt=r,r={memoizedState:Zt.memoizedState,baseState:Zt.baseState,baseQueue:Zt.baseQueue,queue:Zt.queue,next:null},Yt===null?Nt.memoizedState=Yt=r:Yt=Yt.next=r}return Yt}function ca(r,i){return typeof i=="function"?i(r):i}function tf(r){var i=Jn(),l=i.queue;if(l===null)throw Error(n(311));l.lastRenderedReducer=r;var d=Zt,p=d.baseQueue,y=l.pending;if(y!==null){if(p!==null){var k=p.next;p.next=y.next,y.next=k}d.baseQueue=p=y,l.pending=null}if(p!==null){y=p.next,d=d.baseState;var P=k=null,j=null,W=y;do{var ee=W.lane;if((fi&ee)===ee)j!==null&&(j=j.next={lane:0,action:W.action,hasEagerState:W.hasEagerState,eagerState:W.eagerState,next:null}),d=W.hasEagerState?W.eagerState:r(d,W.action);else{var ne={lane:ee,action:W.action,hasEagerState:W.hasEagerState,eagerState:W.eagerState,next:null};j===null?(P=j=ne,k=d):j=j.next=ne,Nt.lanes|=ee,hi|=ee}W=W.next}while(W!==null&&W!==y);j===null?k=d:j.next=P,cr(d,i.memoizedState)||(kn=!0),i.memoizedState=d,i.baseState=k,i.baseQueue=j,l.lastRenderedState=d}if(r=l.interleaved,r!==null){p=r;do y=p.lane,Nt.lanes|=y,hi|=y,p=p.next;while(p!==r)}else p===null&&(l.lanes=0);return[i.memoizedState,l.dispatch]}function nf(r){var i=Jn(),l=i.queue;if(l===null)throw Error(n(311));l.lastRenderedReducer=r;var d=l.dispatch,p=l.pending,y=i.memoizedState;if(p!==null){l.pending=null;var k=p=p.next;do y=r(y,k.action),k=k.next;while(k!==p);cr(y,i.memoizedState)||(kn=!0),i.memoizedState=y,i.baseQueue===null&&(i.baseState=y),l.lastRenderedState=y}return[y,d]}function Og(){}function Fg(r,i){var l=Nt,d=Jn(),p=i(),y=!cr(d.memoizedState,p);if(y&&(d.memoizedState=p,kn=!0),d=d.queue,rf(Bg.bind(null,l,d,r),[r]),d.getSnapshot!==i||y||Yt!==null&&Yt.memoizedState.tag&1){if(l.flags|=2048,da(9,Vg.bind(null,l,d,p,i),void 0,null),Xt===null)throw Error(n(349));fi&30||Ig(l,i,p)}return p}function Ig(r,i,l){r.flags|=16384,r={getSnapshot:i,value:l},i=Nt.updateQueue,i===null?(i={lastEffect:null,stores:null},Nt.updateQueue=i,i.stores=[r]):(l=i.stores,l===null?i.stores=[r]:l.push(r))}function Vg(r,i,l,d){i.value=l,i.getSnapshot=d,zg(i)&&Ug(r)}function Bg(r,i,l){return l(function(){zg(i)&&Ug(r)})}function zg(r){var i=r.getSnapshot;r=r.value;try{var l=i();return!cr(r,l)}catch{return!0}}function Ug(r){var i=ts(r,1);i!==null&&mr(i,r,1,-1)}function $g(r){var i=jr();return typeof r=="function"&&(r=r()),i.memoizedState=i.baseState=r,r={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:ca,lastRenderedState:r},i.queue=r,r=r.dispatch=d1.bind(null,Nt,r),[i.memoizedState,r]}function da(r,i,l,d){return r={tag:r,create:i,destroy:l,deps:d,next:null},i=Nt.updateQueue,i===null?(i={lastEffect:null,stores:null},Nt.updateQueue=i,i.lastEffect=r.next=r):(l=i.lastEffect,l===null?i.lastEffect=r.next=r:(d=l.next,l.next=r,r.next=d,i.lastEffect=r)),r}function Wg(){return Jn().memoizedState}function du(r,i,l,d){var p=jr();Nt.flags|=r,p.memoizedState=da(1|i,l,void 0,d===void 0?null:d)}function fu(r,i,l,d){var p=Jn();d=d===void 0?null:d;var y=void 0;if(Zt!==null){var k=Zt.memoizedState;if(y=k.destroy,d!==null&&Qd(d,k.deps)){p.memoizedState=da(i,l,y,d);return}}Nt.flags|=r,p.memoizedState=da(1|i,l,y,d)}function Hg(r,i){return du(8390656,8,r,i)}function rf(r,i){return fu(2048,8,r,i)}function Gg(r,i){return fu(4,2,r,i)}function Zg(r,i){return fu(4,4,r,i)}function Kg(r,i){if(typeof i=="function")return r=r(),i(r),function(){i(null)};if(i!=null)return r=r(),i.current=r,function(){i.current=null}}function qg(r,i,l){return l=l!=null?l.concat([r]):null,fu(4,4,Kg.bind(null,i,r),l)}function sf(){}function Yg(r,i){var l=Jn();i=i===void 0?null:i;var d=l.memoizedState;return d!==null&&i!==null&&Qd(i,d[1])?d[0]:(l.memoizedState=[r,i],r)}function Xg(r,i){var l=Jn();i=i===void 0?null:i;var d=l.memoizedState;return d!==null&&i!==null&&Qd(i,d[1])?d[0]:(r=r(),l.memoizedState=[r,i],r)}function Qg(r,i,l){return fi&21?(cr(l,i)||(l=Rm(),Nt.lanes|=l,hi|=l,r.baseState=!0),i):(r.baseState&&(r.baseState=!1,kn=!0),r.memoizedState=l)}function u1(r,i){var l=gt;gt=l!==0&&4>l?l:4,r(!0);var d=Xd.transition;Xd.transition={};try{r(!1),i()}finally{gt=l,Xd.transition=d}}function Jg(){return Jn().memoizedState}function c1(r,i,l){var d=Os(r);if(l={lane:d,action:l,hasEagerState:!1,eagerState:null,next:null},ey(r))ty(i,l);else if(l=Ag(r,i,l,d),l!==null){var p=vn();mr(l,r,d,p),ny(l,i,d)}}function d1(r,i,l){var d=Os(r),p={lane:d,action:l,hasEagerState:!1,eagerState:null,next:null};if(ey(r))ty(i,p);else{var y=r.alternate;if(r.lanes===0&&(y===null||y.lanes===0)&&(y=i.lastRenderedReducer,y!==null))try{var k=i.lastRenderedState,P=y(k,l);if(p.hasEagerState=!0,p.eagerState=P,cr(P,k)){var j=i.interleaved;j===null?(p.next=p,Hd(i)):(p.next=j.next,j.next=p),i.interleaved=p;return}}catch{}finally{}l=Ag(r,i,p,d),l!==null&&(p=vn(),mr(l,r,d,p),ny(l,i,d))}}function ey(r){var i=r.alternate;return r===Nt||i!==null&&i===Nt}function ty(r,i){la=cu=!0;var l=r.pending;l===null?i.next=i:(i.next=l.next,l.next=i),r.pending=i}function ny(r,i,l){if(l&4194240){var d=i.lanes;d&=r.pendingLanes,l|=d,i.lanes=l,od(r,l)}}var hu={readContext:Qn,useCallback:cn,useContext:cn,useEffect:cn,useImperativeHandle:cn,useInsertionEffect:cn,useLayoutEffect:cn,useMemo:cn,useReducer:cn,useRef:cn,useState:cn,useDebugValue:cn,useDeferredValue:cn,useTransition:cn,useMutableSource:cn,useSyncExternalStore:cn,useId:cn,unstable_isNewReconciler:!1},f1={readContext:Qn,useCallback:function(r,i){return jr().memoizedState=[r,i===void 0?null:i],r},useContext:Qn,useEffect:Hg,useImperativeHandle:function(r,i,l){return l=l!=null?l.concat([r]):null,du(4194308,4,Kg.bind(null,i,r),l)},useLayoutEffect:function(r,i){return du(4194308,4,r,i)},useInsertionEffect:function(r,i){return du(4,2,r,i)},useMemo:function(r,i){var l=jr();return i=i===void 0?null:i,r=r(),l.memoizedState=[r,i],r},useReducer:function(r,i,l){var d=jr();return i=l!==void 0?l(i):i,d.memoizedState=d.baseState=i,r={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:r,lastRenderedState:i},d.queue=r,r=r.dispatch=c1.bind(null,Nt,r),[d.memoizedState,r]},useRef:function(r){var i=jr();return r={current:r},i.memoizedState=r},useState:$g,useDebugValue:sf,useDeferredValue:function(r){return jr().memoizedState=r},useTransition:function(){var r=$g(!1),i=r[0];return r=u1.bind(null,r[1]),jr().memoizedState=r,[i,r]},useMutableSource:function(){},useSyncExternalStore:function(r,i,l){var d=Nt,p=jr();if(Tt){if(l===void 0)throw Error(n(407));l=l()}else{if(l=i(),Xt===null)throw Error(n(349));fi&30||Ig(d,i,l)}p.memoizedState=l;var y={value:l,getSnapshot:i};return p.queue=y,Hg(Bg.bind(null,d,y,r),[r]),d.flags|=2048,da(9,Vg.bind(null,d,y,l,i),void 0,null),l},useId:function(){var r=jr(),i=Xt.identifierPrefix;if(Tt){var l=es,d=Jr;l=(d&~(1<<32-ur(d)-1)).toString(32)+l,i=":"+i+"R"+l,l=ua++,0<l&&(i+="H"+l.toString(32)),i+=":"}else l=l1++,i=":"+i+"r"+l.toString(32)+":";return r.memoizedState=i},unstable_isNewReconciler:!1},h1={readContext:Qn,useCallback:Yg,useContext:Qn,useEffect:rf,useImperativeHandle:qg,useInsertionEffect:Gg,useLayoutEffect:Zg,useMemo:Xg,useReducer:tf,useRef:Wg,useState:function(){return tf(ca)},useDebugValue:sf,useDeferredValue:function(r){var i=Jn();return Qg(i,Zt.memoizedState,r)},useTransition:function(){var r=tf(ca)[0],i=Jn().memoizedState;return[r,i]},useMutableSource:Og,useSyncExternalStore:Fg,useId:Jg,unstable_isNewReconciler:!1},p1={readContext:Qn,useCallback:Yg,useContext:Qn,useEffect:rf,useImperativeHandle:qg,useInsertionEffect:Gg,useLayoutEffect:Zg,useMemo:Xg,useReducer:nf,useRef:Wg,useState:function(){return nf(ca)},useDebugValue:sf,useDeferredValue:function(r){var i=Jn();return Zt===null?i.memoizedState=r:Qg(i,Zt.memoizedState,r)},useTransition:function(){var r=nf(ca)[0],i=Jn().memoizedState;return[r,i]},useMutableSource:Og,useSyncExternalStore:Fg,useId:Jg,unstable_isNewReconciler:!1};function fr(r,i){if(r&&r.defaultProps){i=ie({},i),r=r.defaultProps;for(var l in r)i[l]===void 0&&(i[l]=r[l]);return i}return i}function of(r,i,l,d){i=r.memoizedState,l=l(d,i),l=l==null?i:ie({},i,l),r.memoizedState=l,r.lanes===0&&(r.updateQueue.baseState=l)}var pu={isMounted:function(r){return(r=r._reactInternals)?ft(r)===r:!1},enqueueSetState:function(r,i,l){r=r._reactInternals;var d=vn(),p=Os(r),y=ns(d,p);y.payload=i,l!=null&&(y.callback=l),i=js(r,y,p),i!==null&&(mr(i,r,p,d),ou(i,r,p))},enqueueReplaceState:function(r,i,l){r=r._reactInternals;var d=vn(),p=Os(r),y=ns(d,p);y.tag=1,y.payload=i,l!=null&&(y.callback=l),i=js(r,y,p),i!==null&&(mr(i,r,p,d),ou(i,r,p))},enqueueForceUpdate:function(r,i){r=r._reactInternals;var l=vn(),d=Os(r),p=ns(l,d);p.tag=2,i!=null&&(p.callback=i),i=js(r,p,d),i!==null&&(mr(i,r,d,l),ou(i,r,d))}};function ry(r,i,l,d,p,y,k){return r=r.stateNode,typeof r.shouldComponentUpdate=="function"?r.shouldComponentUpdate(d,y,k):i.prototype&&i.prototype.isPureReactComponent?!Xo(l,d)||!Xo(p,y):!0}function sy(r,i,l){var d=!1,p=Ps,y=i.contextType;return typeof y=="object"&&y!==null?y=Qn(y):(p=Cn(i)?ai:un.current,d=i.contextTypes,y=(d=d!=null)?Ji(r,p):Ps),i=new i(l,y),r.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,i.updater=pu,r.stateNode=i,i._reactInternals=r,d&&(r=r.stateNode,r.__reactInternalMemoizedUnmaskedChildContext=p,r.__reactInternalMemoizedMaskedChildContext=y),i}function iy(r,i,l,d){r=i.state,typeof i.componentWillReceiveProps=="function"&&i.componentWillReceiveProps(l,d),typeof i.UNSAFE_componentWillReceiveProps=="function"&&i.UNSAFE_componentWillReceiveProps(l,d),i.state!==r&&pu.enqueueReplaceState(i,i.state,null)}function af(r,i,l,d){var p=r.stateNode;p.props=l,p.state=r.memoizedState,p.refs={},Gd(r);var y=i.contextType;typeof y=="object"&&y!==null?p.context=Qn(y):(y=Cn(i)?ai:un.current,p.context=Ji(r,y)),p.state=r.memoizedState,y=i.getDerivedStateFromProps,typeof y=="function"&&(of(r,i,y,l),p.state=r.memoizedState),typeof i.getDerivedStateFromProps=="function"||typeof p.getSnapshotBeforeUpdate=="function"||typeof p.UNSAFE_componentWillMount!="function"&&typeof p.componentWillMount!="function"||(i=p.state,typeof p.componentWillMount=="function"&&p.componentWillMount(),typeof p.UNSAFE_componentWillMount=="function"&&p.UNSAFE_componentWillMount(),i!==p.state&&pu.enqueueReplaceState(p,p.state,null),au(r,l,p,d),p.state=r.memoizedState),typeof p.componentDidMount=="function"&&(r.flags|=4194308)}function ao(r,i){try{var l="",d=i;do l+=Be(d),d=d.return;while(d);var p=l}catch(y){p=`
|
||
Error generating stack: `+y.message+`
|
||
`+y.stack}return{value:r,source:i,stack:p,digest:null}}function lf(r,i,l){return{value:r,source:null,stack:l??null,digest:i??null}}function uf(r,i){try{console.error(i.value)}catch(l){setTimeout(function(){throw l})}}var m1=typeof WeakMap=="function"?WeakMap:Map;function oy(r,i,l){l=ns(-1,l),l.tag=3,l.payload={element:null};var d=i.value;return l.callback=function(){Su||(Su=!0,Ef=d),uf(r,i)},l}function ay(r,i,l){l=ns(-1,l),l.tag=3;var d=r.type.getDerivedStateFromError;if(typeof d=="function"){var p=i.value;l.payload=function(){return d(p)},l.callback=function(){uf(r,i)}}var y=r.stateNode;return y!==null&&typeof y.componentDidCatch=="function"&&(l.callback=function(){uf(r,i),typeof d!="function"&&(Ls===null?Ls=new Set([this]):Ls.add(this));var k=i.stack;this.componentDidCatch(i.value,{componentStack:k!==null?k:""})}),l}function ly(r,i,l){var d=r.pingCache;if(d===null){d=r.pingCache=new m1;var p=new Set;d.set(i,p)}else p=d.get(i),p===void 0&&(p=new Set,d.set(i,p));p.has(l)||(p.add(l),r=P1.bind(null,r,i,l),i.then(r,r))}function uy(r){do{var i;if((i=r.tag===13)&&(i=r.memoizedState,i=i!==null?i.dehydrated!==null:!0),i)return r;r=r.return}while(r!==null);return null}function cy(r,i,l,d,p){return r.mode&1?(r.flags|=65536,r.lanes=p,r):(r===i?r.flags|=65536:(r.flags|=128,l.flags|=131072,l.flags&=-52805,l.tag===1&&(l.alternate===null?l.tag=17:(i=ns(-1,1),i.tag=2,js(l,i,1))),l.lanes|=1),r)}var g1=I.ReactCurrentOwner,kn=!1;function yn(r,i,l,d){i.child=r===null?Ng(i,null,l,d):ro(i,r.child,l,d)}function dy(r,i,l,d,p){l=l.render;var y=i.ref;return io(i,p),d=Jd(r,i,l,d,y,p),l=ef(),r!==null&&!kn?(i.updateQueue=r.updateQueue,i.flags&=-2053,r.lanes&=~p,rs(r,i,p)):(Tt&&l&&Od(i),i.flags|=1,yn(r,i,d,p),i.child)}function fy(r,i,l,d,p){if(r===null){var y=l.type;return typeof y=="function"&&!Af(y)&&y.defaultProps===void 0&&l.compare===null&&l.defaultProps===void 0?(i.tag=15,i.type=y,hy(r,i,y,d,p)):(r=Tu(l.type,null,d,i,i.mode,p),r.ref=i.ref,r.return=i,i.child=r)}if(y=r.child,!(r.lanes&p)){var k=y.memoizedProps;if(l=l.compare,l=l!==null?l:Xo,l(k,d)&&r.ref===i.ref)return rs(r,i,p)}return i.flags|=1,r=Is(y,d),r.ref=i.ref,r.return=i,i.child=r}function hy(r,i,l,d,p){if(r!==null){var y=r.memoizedProps;if(Xo(y,d)&&r.ref===i.ref)if(kn=!1,i.pendingProps=d=y,(r.lanes&p)!==0)r.flags&131072&&(kn=!0);else return i.lanes=r.lanes,rs(r,i,p)}return cf(r,i,l,d,p)}function py(r,i,l){var d=i.pendingProps,p=d.children,y=r!==null?r.memoizedState:null;if(d.mode==="hidden")if(!(i.mode&1))i.memoizedState={baseLanes:0,cachePool:null,transitions:null},St(uo,$n),$n|=l;else{if(!(l&1073741824))return r=y!==null?y.baseLanes|l:l,i.lanes=i.childLanes=1073741824,i.memoizedState={baseLanes:r,cachePool:null,transitions:null},i.updateQueue=null,St(uo,$n),$n|=r,null;i.memoizedState={baseLanes:0,cachePool:null,transitions:null},d=y!==null?y.baseLanes:l,St(uo,$n),$n|=d}else y!==null?(d=y.baseLanes|l,i.memoizedState=null):d=l,St(uo,$n),$n|=d;return yn(r,i,p,l),i.child}function my(r,i){var l=i.ref;(r===null&&l!==null||r!==null&&r.ref!==l)&&(i.flags|=512,i.flags|=2097152)}function cf(r,i,l,d,p){var y=Cn(l)?ai:un.current;return y=Ji(i,y),io(i,p),l=Jd(r,i,l,d,y,p),d=ef(),r!==null&&!kn?(i.updateQueue=r.updateQueue,i.flags&=-2053,r.lanes&=~p,rs(r,i,p)):(Tt&&d&&Od(i),i.flags|=1,yn(r,i,l,p),i.child)}function gy(r,i,l,d,p){if(Cn(l)){var y=!0;Ql(i)}else y=!1;if(io(i,p),i.stateNode===null)gu(r,i),sy(i,l,d),af(i,l,d,p),d=!0;else if(r===null){var k=i.stateNode,P=i.memoizedProps;k.props=P;var j=k.context,W=l.contextType;typeof W=="object"&&W!==null?W=Qn(W):(W=Cn(l)?ai:un.current,W=Ji(i,W));var ee=l.getDerivedStateFromProps,ne=typeof ee=="function"||typeof k.getSnapshotBeforeUpdate=="function";ne||typeof k.UNSAFE_componentWillReceiveProps!="function"&&typeof k.componentWillReceiveProps!="function"||(P!==d||j!==W)&&iy(i,k,d,W),As=!1;var Q=i.memoizedState;k.state=Q,au(i,d,k,p),j=i.memoizedState,P!==d||Q!==j||En.current||As?(typeof ee=="function"&&(of(i,l,ee,d),j=i.memoizedState),(P=As||ry(i,l,P,d,Q,j,W))?(ne||typeof k.UNSAFE_componentWillMount!="function"&&typeof k.componentWillMount!="function"||(typeof k.componentWillMount=="function"&&k.componentWillMount(),typeof k.UNSAFE_componentWillMount=="function"&&k.UNSAFE_componentWillMount()),typeof k.componentDidMount=="function"&&(i.flags|=4194308)):(typeof k.componentDidMount=="function"&&(i.flags|=4194308),i.memoizedProps=d,i.memoizedState=j),k.props=d,k.state=j,k.context=W,d=P):(typeof k.componentDidMount=="function"&&(i.flags|=4194308),d=!1)}else{k=i.stateNode,jg(r,i),P=i.memoizedProps,W=i.type===i.elementType?P:fr(i.type,P),k.props=W,ne=i.pendingProps,Q=k.context,j=l.contextType,typeof j=="object"&&j!==null?j=Qn(j):(j=Cn(l)?ai:un.current,j=Ji(i,j));var ye=l.getDerivedStateFromProps;(ee=typeof ye=="function"||typeof k.getSnapshotBeforeUpdate=="function")||typeof k.UNSAFE_componentWillReceiveProps!="function"&&typeof k.componentWillReceiveProps!="function"||(P!==ne||Q!==j)&&iy(i,k,d,j),As=!1,Q=i.memoizedState,k.state=Q,au(i,d,k,p);var _e=i.memoizedState;P!==ne||Q!==_e||En.current||As?(typeof ye=="function"&&(of(i,l,ye,d),_e=i.memoizedState),(W=As||ry(i,l,W,d,Q,_e,j)||!1)?(ee||typeof k.UNSAFE_componentWillUpdate!="function"&&typeof k.componentWillUpdate!="function"||(typeof k.componentWillUpdate=="function"&&k.componentWillUpdate(d,_e,j),typeof k.UNSAFE_componentWillUpdate=="function"&&k.UNSAFE_componentWillUpdate(d,_e,j)),typeof k.componentDidUpdate=="function"&&(i.flags|=4),typeof k.getSnapshotBeforeUpdate=="function"&&(i.flags|=1024)):(typeof k.componentDidUpdate!="function"||P===r.memoizedProps&&Q===r.memoizedState||(i.flags|=4),typeof k.getSnapshotBeforeUpdate!="function"||P===r.memoizedProps&&Q===r.memoizedState||(i.flags|=1024),i.memoizedProps=d,i.memoizedState=_e),k.props=d,k.state=_e,k.context=j,d=W):(typeof k.componentDidUpdate!="function"||P===r.memoizedProps&&Q===r.memoizedState||(i.flags|=4),typeof k.getSnapshotBeforeUpdate!="function"||P===r.memoizedProps&&Q===r.memoizedState||(i.flags|=1024),d=!1)}return df(r,i,l,d,y,p)}function df(r,i,l,d,p,y){my(r,i);var k=(i.flags&128)!==0;if(!d&&!k)return p&&Sg(i,l,!1),rs(r,i,y);d=i.stateNode,g1.current=i;var P=k&&typeof l.getDerivedStateFromError!="function"?null:d.render();return i.flags|=1,r!==null&&k?(i.child=ro(i,r.child,null,y),i.child=ro(i,null,P,y)):yn(r,i,P,y),i.memoizedState=d.state,p&&Sg(i,l,!0),i.child}function yy(r){var i=r.stateNode;i.pendingContext?xg(r,i.pendingContext,i.pendingContext!==i.context):i.context&&xg(r,i.context,!1),Zd(r,i.containerInfo)}function vy(r,i,l,d,p){return no(),Bd(p),i.flags|=256,yn(r,i,l,d),i.child}var ff={dehydrated:null,treeContext:null,retryLane:0};function hf(r){return{baseLanes:r,cachePool:null,transitions:null}}function xy(r,i,l){var d=i.pendingProps,p=Pt.current,y=!1,k=(i.flags&128)!==0,P;if((P=k)||(P=r!==null&&r.memoizedState===null?!1:(p&2)!==0),P?(y=!0,i.flags&=-129):(r===null||r.memoizedState!==null)&&(p|=1),St(Pt,p&1),r===null)return Vd(i),r=i.memoizedState,r!==null&&(r=r.dehydrated,r!==null)?(i.mode&1?r.data==="$!"?i.lanes=8:i.lanes=1073741824:i.lanes=1,null):(k=d.children,r=d.fallback,y?(d=i.mode,y=i.child,k={mode:"hidden",children:k},!(d&1)&&y!==null?(y.childLanes=0,y.pendingProps=k):y=Ru(k,d,0,null),r=yi(r,d,l,null),y.return=i,r.return=i,y.sibling=r,i.child=y,i.child.memoizedState=hf(l),i.memoizedState=ff,r):pf(i,k));if(p=r.memoizedState,p!==null&&(P=p.dehydrated,P!==null))return y1(r,i,k,d,P,p,l);if(y){y=d.fallback,k=i.mode,p=r.child,P=p.sibling;var j={mode:"hidden",children:d.children};return!(k&1)&&i.child!==p?(d=i.child,d.childLanes=0,d.pendingProps=j,i.deletions=null):(d=Is(p,j),d.subtreeFlags=p.subtreeFlags&14680064),P!==null?y=Is(P,y):(y=yi(y,k,l,null),y.flags|=2),y.return=i,d.return=i,d.sibling=y,i.child=d,d=y,y=i.child,k=r.child.memoizedState,k=k===null?hf(l):{baseLanes:k.baseLanes|l,cachePool:null,transitions:k.transitions},y.memoizedState=k,y.childLanes=r.childLanes&~l,i.memoizedState=ff,d}return y=r.child,r=y.sibling,d=Is(y,{mode:"visible",children:d.children}),!(i.mode&1)&&(d.lanes=l),d.return=i,d.sibling=null,r!==null&&(l=i.deletions,l===null?(i.deletions=[r],i.flags|=16):l.push(r)),i.child=d,i.memoizedState=null,d}function pf(r,i){return i=Ru({mode:"visible",children:i},r.mode,0,null),i.return=r,r.child=i}function mu(r,i,l,d){return d!==null&&Bd(d),ro(i,r.child,null,l),r=pf(i,i.pendingProps.children),r.flags|=2,i.memoizedState=null,r}function y1(r,i,l,d,p,y,k){if(l)return i.flags&256?(i.flags&=-257,d=lf(Error(n(422))),mu(r,i,k,d)):i.memoizedState!==null?(i.child=r.child,i.flags|=128,null):(y=d.fallback,p=i.mode,d=Ru({mode:"visible",children:d.children},p,0,null),y=yi(y,p,k,null),y.flags|=2,d.return=i,y.return=i,d.sibling=y,i.child=d,i.mode&1&&ro(i,r.child,null,k),i.child.memoizedState=hf(k),i.memoizedState=ff,y);if(!(i.mode&1))return mu(r,i,k,null);if(p.data==="$!"){if(d=p.nextSibling&&p.nextSibling.dataset,d)var P=d.dgst;return d=P,y=Error(n(419)),d=lf(y,d,void 0),mu(r,i,k,d)}if(P=(k&r.childLanes)!==0,kn||P){if(d=Xt,d!==null){switch(k&-k){case 4:p=2;break;case 16:p=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:p=32;break;case 536870912:p=268435456;break;default:p=0}p=p&(d.suspendedLanes|k)?0:p,p!==0&&p!==y.retryLane&&(y.retryLane=p,ts(r,p),mr(d,r,p,-1))}return Nf(),d=lf(Error(n(421))),mu(r,i,k,d)}return p.data==="$?"?(i.flags|=128,i.child=r.child,i=N1.bind(null,r),p._reactRetry=i,null):(r=y.treeContext,Un=Ts(p.nextSibling),zn=i,Tt=!0,dr=null,r!==null&&(Yn[Xn++]=Jr,Yn[Xn++]=es,Yn[Xn++]=li,Jr=r.id,es=r.overflow,li=i),i=pf(i,d.children),i.flags|=4096,i)}function wy(r,i,l){r.lanes|=i;var d=r.alternate;d!==null&&(d.lanes|=i),Wd(r.return,i,l)}function mf(r,i,l,d,p){var y=r.memoizedState;y===null?r.memoizedState={isBackwards:i,rendering:null,renderingStartTime:0,last:d,tail:l,tailMode:p}:(y.isBackwards=i,y.rendering=null,y.renderingStartTime=0,y.last=d,y.tail=l,y.tailMode=p)}function Sy(r,i,l){var d=i.pendingProps,p=d.revealOrder,y=d.tail;if(yn(r,i,d.children,l),d=Pt.current,d&2)d=d&1|2,i.flags|=128;else{if(r!==null&&r.flags&128)e:for(r=i.child;r!==null;){if(r.tag===13)r.memoizedState!==null&&wy(r,l,i);else if(r.tag===19)wy(r,l,i);else if(r.child!==null){r.child.return=r,r=r.child;continue}if(r===i)break e;for(;r.sibling===null;){if(r.return===null||r.return===i)break e;r=r.return}r.sibling.return=r.return,r=r.sibling}d&=1}if(St(Pt,d),!(i.mode&1))i.memoizedState=null;else switch(p){case"forwards":for(l=i.child,p=null;l!==null;)r=l.alternate,r!==null&&lu(r)===null&&(p=l),l=l.sibling;l=p,l===null?(p=i.child,i.child=null):(p=l.sibling,l.sibling=null),mf(i,!1,p,l,y);break;case"backwards":for(l=null,p=i.child,i.child=null;p!==null;){if(r=p.alternate,r!==null&&lu(r)===null){i.child=p;break}r=p.sibling,p.sibling=l,l=p,p=r}mf(i,!0,l,null,y);break;case"together":mf(i,!1,null,null,void 0);break;default:i.memoizedState=null}return i.child}function gu(r,i){!(i.mode&1)&&r!==null&&(r.alternate=null,i.alternate=null,i.flags|=2)}function rs(r,i,l){if(r!==null&&(i.dependencies=r.dependencies),hi|=i.lanes,!(l&i.childLanes))return null;if(r!==null&&i.child!==r.child)throw Error(n(153));if(i.child!==null){for(r=i.child,l=Is(r,r.pendingProps),i.child=l,l.return=i;r.sibling!==null;)r=r.sibling,l=l.sibling=Is(r,r.pendingProps),l.return=i;l.sibling=null}return i.child}function v1(r,i,l){switch(i.tag){case 3:yy(i),no();break;case 5:Mg(i);break;case 1:Cn(i.type)&&Ql(i);break;case 4:Zd(i,i.stateNode.containerInfo);break;case 10:var d=i.type._context,p=i.memoizedProps.value;St(su,d._currentValue),d._currentValue=p;break;case 13:if(d=i.memoizedState,d!==null)return d.dehydrated!==null?(St(Pt,Pt.current&1),i.flags|=128,null):l&i.child.childLanes?xy(r,i,l):(St(Pt,Pt.current&1),r=rs(r,i,l),r!==null?r.sibling:null);St(Pt,Pt.current&1);break;case 19:if(d=(l&i.childLanes)!==0,r.flags&128){if(d)return Sy(r,i,l);i.flags|=128}if(p=i.memoizedState,p!==null&&(p.rendering=null,p.tail=null,p.lastEffect=null),St(Pt,Pt.current),d)break;return null;case 22:case 23:return i.lanes=0,py(r,i,l)}return rs(r,i,l)}var by,gf,_y,Ey;by=function(r,i){for(var l=i.child;l!==null;){if(l.tag===5||l.tag===6)r.appendChild(l.stateNode);else if(l.tag!==4&&l.child!==null){l.child.return=l,l=l.child;continue}if(l===i)break;for(;l.sibling===null;){if(l.return===null||l.return===i)return;l=l.return}l.sibling.return=l.return,l=l.sibling}},gf=function(){},_y=function(r,i,l,d){var p=r.memoizedProps;if(p!==d){r=i.stateNode,di(Ar.current);var y=null;switch(l){case"input":p=mt(r,p),d=mt(r,d),y=[];break;case"select":p=ie({},p,{value:void 0}),d=ie({},d,{value:void 0}),y=[];break;case"textarea":p=ae(r,p),d=ae(r,d),y=[];break;default:typeof p.onClick!="function"&&typeof d.onClick=="function"&&(r.onclick=ql)}Rr(l,d);var k;l=null;for(W in p)if(!d.hasOwnProperty(W)&&p.hasOwnProperty(W)&&p[W]!=null)if(W==="style"){var P=p[W];for(k in P)P.hasOwnProperty(k)&&(l||(l={}),l[k]="")}else W!=="dangerouslySetInnerHTML"&&W!=="children"&&W!=="suppressContentEditableWarning"&&W!=="suppressHydrationWarning"&&W!=="autoFocus"&&(o.hasOwnProperty(W)?y||(y=[]):(y=y||[]).push(W,null));for(W in d){var j=d[W];if(P=p!=null?p[W]:void 0,d.hasOwnProperty(W)&&j!==P&&(j!=null||P!=null))if(W==="style")if(P){for(k in P)!P.hasOwnProperty(k)||j&&j.hasOwnProperty(k)||(l||(l={}),l[k]="");for(k in j)j.hasOwnProperty(k)&&P[k]!==j[k]&&(l||(l={}),l[k]=j[k])}else l||(y||(y=[]),y.push(W,l)),l=j;else W==="dangerouslySetInnerHTML"?(j=j?j.__html:void 0,P=P?P.__html:void 0,j!=null&&P!==j&&(y=y||[]).push(W,j)):W==="children"?typeof j!="string"&&typeof j!="number"||(y=y||[]).push(W,""+j):W!=="suppressContentEditableWarning"&&W!=="suppressHydrationWarning"&&(o.hasOwnProperty(W)?(j!=null&&W==="onScroll"&&_t("scroll",r),y||P===j||(y=[])):(y=y||[]).push(W,j))}l&&(y=y||[]).push("style",l);var W=y;(i.updateQueue=W)&&(i.flags|=4)}},Ey=function(r,i,l,d){l!==d&&(i.flags|=4)};function fa(r,i){if(!Tt)switch(r.tailMode){case"hidden":i=r.tail;for(var l=null;i!==null;)i.alternate!==null&&(l=i),i=i.sibling;l===null?r.tail=null:l.sibling=null;break;case"collapsed":l=r.tail;for(var d=null;l!==null;)l.alternate!==null&&(d=l),l=l.sibling;d===null?i||r.tail===null?r.tail=null:r.tail.sibling=null:d.sibling=null}}function dn(r){var i=r.alternate!==null&&r.alternate.child===r.child,l=0,d=0;if(i)for(var p=r.child;p!==null;)l|=p.lanes|p.childLanes,d|=p.subtreeFlags&14680064,d|=p.flags&14680064,p.return=r,p=p.sibling;else for(p=r.child;p!==null;)l|=p.lanes|p.childLanes,d|=p.subtreeFlags,d|=p.flags,p.return=r,p=p.sibling;return r.subtreeFlags|=d,r.childLanes=l,i}function x1(r,i,l){var d=i.pendingProps;switch(Fd(i),i.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return dn(i),null;case 1:return Cn(i.type)&&Xl(),dn(i),null;case 3:return d=i.stateNode,oo(),Et(En),Et(un),Yd(),d.pendingContext&&(d.context=d.pendingContext,d.pendingContext=null),(r===null||r.child===null)&&(nu(i)?i.flags|=4:r===null||r.memoizedState.isDehydrated&&!(i.flags&256)||(i.flags|=1024,dr!==null&&(Tf(dr),dr=null))),gf(r,i),dn(i),null;case 5:Kd(i);var p=di(aa.current);if(l=i.type,r!==null&&i.stateNode!=null)_y(r,i,l,d,p),r.ref!==i.ref&&(i.flags|=512,i.flags|=2097152);else{if(!d){if(i.stateNode===null)throw Error(n(166));return dn(i),null}if(r=di(Ar.current),nu(i)){d=i.stateNode,l=i.type;var y=i.memoizedProps;switch(d[Nr]=i,d[na]=y,r=(i.mode&1)!==0,l){case"dialog":_t("cancel",d),_t("close",d);break;case"iframe":case"object":case"embed":_t("load",d);break;case"video":case"audio":for(p=0;p<Jo.length;p++)_t(Jo[p],d);break;case"source":_t("error",d);break;case"img":case"image":case"link":_t("error",d),_t("load",d);break;case"details":_t("toggle",d);break;case"input":It(d,y),_t("invalid",d);break;case"select":d._wrapperState={wasMultiple:!!y.multiple},_t("invalid",d);break;case"textarea":se(d,y),_t("invalid",d)}Rr(l,y),p=null;for(var k in y)if(y.hasOwnProperty(k)){var P=y[k];k==="children"?typeof P=="string"?d.textContent!==P&&(y.suppressHydrationWarning!==!0&&Kl(d.textContent,P,r),p=["children",P]):typeof P=="number"&&d.textContent!==""+P&&(y.suppressHydrationWarning!==!0&&Kl(d.textContent,P,r),p=["children",""+P]):o.hasOwnProperty(k)&&P!=null&&k==="onScroll"&&_t("scroll",d)}switch(l){case"input":at(d),A(d,y,!0);break;case"textarea":at(d),Fe(d);break;case"select":case"option":break;default:typeof y.onClick=="function"&&(d.onclick=ql)}d=p,i.updateQueue=d,d!==null&&(i.flags|=4)}else{k=p.nodeType===9?p:p.ownerDocument,r==="http://www.w3.org/1999/xhtml"&&(r=ut(l)),r==="http://www.w3.org/1999/xhtml"?l==="script"?(r=k.createElement("div"),r.innerHTML="<script><\/script>",r=r.removeChild(r.firstChild)):typeof d.is=="string"?r=k.createElement(l,{is:d.is}):(r=k.createElement(l),l==="select"&&(k=r,d.multiple?k.multiple=!0:d.size&&(k.size=d.size))):r=k.createElementNS(r,l),r[Nr]=i,r[na]=d,by(r,i,!1,!1),i.stateNode=r;e:{switch(k=gs(l,d),l){case"dialog":_t("cancel",r),_t("close",r),p=d;break;case"iframe":case"object":case"embed":_t("load",r),p=d;break;case"video":case"audio":for(p=0;p<Jo.length;p++)_t(Jo[p],r);p=d;break;case"source":_t("error",r),p=d;break;case"img":case"image":case"link":_t("error",r),_t("load",r),p=d;break;case"details":_t("toggle",r),p=d;break;case"input":It(r,d),p=mt(r,d),_t("invalid",r);break;case"option":p=d;break;case"select":r._wrapperState={wasMultiple:!!d.multiple},p=ie({},d,{value:void 0}),_t("invalid",r);break;case"textarea":se(r,d),p=ae(r,d),_t("invalid",r);break;default:p=d}Rr(l,p),P=p;for(y in P)if(P.hasOwnProperty(y)){var j=P[y];y==="style"?ms(r,j):y==="dangerouslySetInnerHTML"?(j=j?j.__html:void 0,j!=null&&kr(r,j)):y==="children"?typeof j=="string"?(l!=="textarea"||j!=="")&&bt(r,j):typeof j=="number"&&bt(r,""+j):y!=="suppressContentEditableWarning"&&y!=="suppressHydrationWarning"&&y!=="autoFocus"&&(o.hasOwnProperty(y)?j!=null&&y==="onScroll"&&_t("scroll",r):j!=null&&N(r,y,j,k))}switch(l){case"input":at(r),A(r,d,!1);break;case"textarea":at(r),Fe(r);break;case"option":d.value!=null&&r.setAttribute("value",""+Pe(d.value));break;case"select":r.multiple=!!d.multiple,y=d.value,y!=null?oe(r,!!d.multiple,y,!1):d.defaultValue!=null&&oe(r,!!d.multiple,d.defaultValue,!0);break;default:typeof p.onClick=="function"&&(r.onclick=ql)}switch(l){case"button":case"input":case"select":case"textarea":d=!!d.autoFocus;break e;case"img":d=!0;break e;default:d=!1}}d&&(i.flags|=4)}i.ref!==null&&(i.flags|=512,i.flags|=2097152)}return dn(i),null;case 6:if(r&&i.stateNode!=null)Ey(r,i,r.memoizedProps,d);else{if(typeof d!="string"&&i.stateNode===null)throw Error(n(166));if(l=di(aa.current),di(Ar.current),nu(i)){if(d=i.stateNode,l=i.memoizedProps,d[Nr]=i,(y=d.nodeValue!==l)&&(r=zn,r!==null))switch(r.tag){case 3:Kl(d.nodeValue,l,(r.mode&1)!==0);break;case 5:r.memoizedProps.suppressHydrationWarning!==!0&&Kl(d.nodeValue,l,(r.mode&1)!==0)}y&&(i.flags|=4)}else d=(l.nodeType===9?l:l.ownerDocument).createTextNode(d),d[Nr]=i,i.stateNode=d}return dn(i),null;case 13:if(Et(Pt),d=i.memoizedState,r===null||r.memoizedState!==null&&r.memoizedState.dehydrated!==null){if(Tt&&Un!==null&&i.mode&1&&!(i.flags&128))Tg(),no(),i.flags|=98560,y=!1;else if(y=nu(i),d!==null&&d.dehydrated!==null){if(r===null){if(!y)throw Error(n(318));if(y=i.memoizedState,y=y!==null?y.dehydrated:null,!y)throw Error(n(317));y[Nr]=i}else no(),!(i.flags&128)&&(i.memoizedState=null),i.flags|=4;dn(i),y=!1}else dr!==null&&(Tf(dr),dr=null),y=!0;if(!y)return i.flags&65536?i:null}return i.flags&128?(i.lanes=l,i):(d=d!==null,d!==(r!==null&&r.memoizedState!==null)&&d&&(i.child.flags|=8192,i.mode&1&&(r===null||Pt.current&1?Kt===0&&(Kt=3):Nf())),i.updateQueue!==null&&(i.flags|=4),dn(i),null);case 4:return oo(),gf(r,i),r===null&&ea(i.stateNode.containerInfo),dn(i),null;case 10:return $d(i.type._context),dn(i),null;case 17:return Cn(i.type)&&Xl(),dn(i),null;case 19:if(Et(Pt),y=i.memoizedState,y===null)return dn(i),null;if(d=(i.flags&128)!==0,k=y.rendering,k===null)if(d)fa(y,!1);else{if(Kt!==0||r!==null&&r.flags&128)for(r=i.child;r!==null;){if(k=lu(r),k!==null){for(i.flags|=128,fa(y,!1),d=k.updateQueue,d!==null&&(i.updateQueue=d,i.flags|=4),i.subtreeFlags=0,d=l,l=i.child;l!==null;)y=l,r=d,y.flags&=14680066,k=y.alternate,k===null?(y.childLanes=0,y.lanes=r,y.child=null,y.subtreeFlags=0,y.memoizedProps=null,y.memoizedState=null,y.updateQueue=null,y.dependencies=null,y.stateNode=null):(y.childLanes=k.childLanes,y.lanes=k.lanes,y.child=k.child,y.subtreeFlags=0,y.deletions=null,y.memoizedProps=k.memoizedProps,y.memoizedState=k.memoizedState,y.updateQueue=k.updateQueue,y.type=k.type,r=k.dependencies,y.dependencies=r===null?null:{lanes:r.lanes,firstContext:r.firstContext}),l=l.sibling;return St(Pt,Pt.current&1|2),i.child}r=r.sibling}y.tail!==null&&wt()>co&&(i.flags|=128,d=!0,fa(y,!1),i.lanes=4194304)}else{if(!d)if(r=lu(k),r!==null){if(i.flags|=128,d=!0,l=r.updateQueue,l!==null&&(i.updateQueue=l,i.flags|=4),fa(y,!0),y.tail===null&&y.tailMode==="hidden"&&!k.alternate&&!Tt)return dn(i),null}else 2*wt()-y.renderingStartTime>co&&l!==1073741824&&(i.flags|=128,d=!0,fa(y,!1),i.lanes=4194304);y.isBackwards?(k.sibling=i.child,i.child=k):(l=y.last,l!==null?l.sibling=k:i.child=k,y.last=k)}return y.tail!==null?(i=y.tail,y.rendering=i,y.tail=i.sibling,y.renderingStartTime=wt(),i.sibling=null,l=Pt.current,St(Pt,d?l&1|2:l&1),i):(dn(i),null);case 22:case 23:return Pf(),d=i.memoizedState!==null,r!==null&&r.memoizedState!==null!==d&&(i.flags|=8192),d&&i.mode&1?$n&1073741824&&(dn(i),i.subtreeFlags&6&&(i.flags|=8192)):dn(i),null;case 24:return null;case 25:return null}throw Error(n(156,i.tag))}function w1(r,i){switch(Fd(i),i.tag){case 1:return Cn(i.type)&&Xl(),r=i.flags,r&65536?(i.flags=r&-65537|128,i):null;case 3:return oo(),Et(En),Et(un),Yd(),r=i.flags,r&65536&&!(r&128)?(i.flags=r&-65537|128,i):null;case 5:return Kd(i),null;case 13:if(Et(Pt),r=i.memoizedState,r!==null&&r.dehydrated!==null){if(i.alternate===null)throw Error(n(340));no()}return r=i.flags,r&65536?(i.flags=r&-65537|128,i):null;case 19:return Et(Pt),null;case 4:return oo(),null;case 10:return $d(i.type._context),null;case 22:case 23:return Pf(),null;case 24:return null;default:return null}}var yu=!1,fn=!1,S1=typeof WeakSet=="function"?WeakSet:Set,Se=null;function lo(r,i){var l=r.ref;if(l!==null)if(typeof l=="function")try{l(null)}catch(d){Ot(r,i,d)}else l.current=null}function yf(r,i,l){try{l()}catch(d){Ot(r,i,d)}}var Cy=!1;function b1(r,i){if(Rd=Fl,r=rg(),wd(r)){if("selectionStart"in r)var l={start:r.selectionStart,end:r.selectionEnd};else e:{l=(l=r.ownerDocument)&&l.defaultView||window;var d=l.getSelection&&l.getSelection();if(d&&d.rangeCount!==0){l=d.anchorNode;var p=d.anchorOffset,y=d.focusNode;d=d.focusOffset;try{l.nodeType,y.nodeType}catch{l=null;break e}var k=0,P=-1,j=-1,W=0,ee=0,ne=r,Q=null;t:for(;;){for(var ye;ne!==l||p!==0&&ne.nodeType!==3||(P=k+p),ne!==y||d!==0&&ne.nodeType!==3||(j=k+d),ne.nodeType===3&&(k+=ne.nodeValue.length),(ye=ne.firstChild)!==null;)Q=ne,ne=ye;for(;;){if(ne===r)break t;if(Q===l&&++W===p&&(P=k),Q===y&&++ee===d&&(j=k),(ye=ne.nextSibling)!==null)break;ne=Q,Q=ne.parentNode}ne=ye}l=P===-1||j===-1?null:{start:P,end:j}}else l=null}l=l||{start:0,end:0}}else l=null;for(Pd={focusedElem:r,selectionRange:l},Fl=!1,Se=i;Se!==null;)if(i=Se,r=i.child,(i.subtreeFlags&1028)!==0&&r!==null)r.return=i,Se=r;else for(;Se!==null;){i=Se;try{var _e=i.alternate;if(i.flags&1024)switch(i.tag){case 0:case 11:case 15:break;case 1:if(_e!==null){var Te=_e.memoizedProps,Vt=_e.memoizedState,B=i.stateNode,M=B.getSnapshotBeforeUpdate(i.elementType===i.type?Te:fr(i.type,Te),Vt);B.__reactInternalSnapshotBeforeUpdate=M}break;case 3:var $=i.stateNode.containerInfo;$.nodeType===1?$.textContent="":$.nodeType===9&&$.documentElement&&$.removeChild($.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(n(163))}}catch(le){Ot(i,i.return,le)}if(r=i.sibling,r!==null){r.return=i.return,Se=r;break}Se=i.return}return _e=Cy,Cy=!1,_e}function ha(r,i,l){var d=i.updateQueue;if(d=d!==null?d.lastEffect:null,d!==null){var p=d=d.next;do{if((p.tag&r)===r){var y=p.destroy;p.destroy=void 0,y!==void 0&&yf(i,l,y)}p=p.next}while(p!==d)}}function vu(r,i){if(i=i.updateQueue,i=i!==null?i.lastEffect:null,i!==null){var l=i=i.next;do{if((l.tag&r)===r){var d=l.create;l.destroy=d()}l=l.next}while(l!==i)}}function vf(r){var i=r.ref;if(i!==null){var l=r.stateNode;switch(r.tag){case 5:r=l;break;default:r=l}typeof i=="function"?i(r):i.current=r}}function ky(r){var i=r.alternate;i!==null&&(r.alternate=null,ky(i)),r.child=null,r.deletions=null,r.sibling=null,r.tag===5&&(i=r.stateNode,i!==null&&(delete i[Nr],delete i[na],delete i[Dd],delete i[s1],delete i[i1])),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 Ty(r){return r.tag===5||r.tag===3||r.tag===4}function Ry(r){e:for(;;){for(;r.sibling===null;){if(r.return===null||Ty(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 xf(r,i,l){var d=r.tag;if(d===5||d===6)r=r.stateNode,i?l.nodeType===8?l.parentNode.insertBefore(r,i):l.insertBefore(r,i):(l.nodeType===8?(i=l.parentNode,i.insertBefore(r,l)):(i=l,i.appendChild(r)),l=l._reactRootContainer,l!=null||i.onclick!==null||(i.onclick=ql));else if(d!==4&&(r=r.child,r!==null))for(xf(r,i,l),r=r.sibling;r!==null;)xf(r,i,l),r=r.sibling}function wf(r,i,l){var d=r.tag;if(d===5||d===6)r=r.stateNode,i?l.insertBefore(r,i):l.appendChild(r);else if(d!==4&&(r=r.child,r!==null))for(wf(r,i,l),r=r.sibling;r!==null;)wf(r,i,l),r=r.sibling}var tn=null,hr=!1;function Ds(r,i,l){for(l=l.child;l!==null;)Py(r,i,l),l=l.sibling}function Py(r,i,l){if(Vn&&typeof Vn.onCommitFiberUnmount=="function")try{Vn.onCommitFiberUnmount(lr,l)}catch{}switch(l.tag){case 5:fn||lo(l,i);case 6:var d=tn,p=hr;tn=null,Ds(r,i,l),tn=d,hr=p,tn!==null&&(hr?(r=tn,l=l.stateNode,r.nodeType===8?r.parentNode.removeChild(l):r.removeChild(l)):tn.removeChild(l.stateNode));break;case 18:tn!==null&&(hr?(r=tn,l=l.stateNode,r.nodeType===8?jd(r.parentNode,l):r.nodeType===1&&jd(r,l),Ho(r)):jd(tn,l.stateNode));break;case 4:d=tn,p=hr,tn=l.stateNode.containerInfo,hr=!0,Ds(r,i,l),tn=d,hr=p;break;case 0:case 11:case 14:case 15:if(!fn&&(d=l.updateQueue,d!==null&&(d=d.lastEffect,d!==null))){p=d=d.next;do{var y=p,k=y.destroy;y=y.tag,k!==void 0&&(y&2||y&4)&&yf(l,i,k),p=p.next}while(p!==d)}Ds(r,i,l);break;case 1:if(!fn&&(lo(l,i),d=l.stateNode,typeof d.componentWillUnmount=="function"))try{d.props=l.memoizedProps,d.state=l.memoizedState,d.componentWillUnmount()}catch(P){Ot(l,i,P)}Ds(r,i,l);break;case 21:Ds(r,i,l);break;case 22:l.mode&1?(fn=(d=fn)||l.memoizedState!==null,Ds(r,i,l),fn=d):Ds(r,i,l);break;default:Ds(r,i,l)}}function Ny(r){var i=r.updateQueue;if(i!==null){r.updateQueue=null;var l=r.stateNode;l===null&&(l=r.stateNode=new S1),i.forEach(function(d){var p=A1.bind(null,r,d);l.has(d)||(l.add(d),d.then(p,p))})}}function pr(r,i){var l=i.deletions;if(l!==null)for(var d=0;d<l.length;d++){var p=l[d];try{var y=r,k=i,P=k;e:for(;P!==null;){switch(P.tag){case 5:tn=P.stateNode,hr=!1;break e;case 3:tn=P.stateNode.containerInfo,hr=!0;break e;case 4:tn=P.stateNode.containerInfo,hr=!0;break e}P=P.return}if(tn===null)throw Error(n(160));Py(y,k,p),tn=null,hr=!1;var j=p.alternate;j!==null&&(j.return=null),p.return=null}catch(W){Ot(p,i,W)}}if(i.subtreeFlags&12854)for(i=i.child;i!==null;)Ay(i,r),i=i.sibling}function Ay(r,i){var l=r.alternate,d=r.flags;switch(r.tag){case 0:case 11:case 14:case 15:if(pr(i,r),Dr(r),d&4){try{ha(3,r,r.return),vu(3,r)}catch(Te){Ot(r,r.return,Te)}try{ha(5,r,r.return)}catch(Te){Ot(r,r.return,Te)}}break;case 1:pr(i,r),Dr(r),d&512&&l!==null&&lo(l,l.return);break;case 5:if(pr(i,r),Dr(r),d&512&&l!==null&&lo(l,l.return),r.flags&32){var p=r.stateNode;try{bt(p,"")}catch(Te){Ot(r,r.return,Te)}}if(d&4&&(p=r.stateNode,p!=null)){var y=r.memoizedProps,k=l!==null?l.memoizedProps:y,P=r.type,j=r.updateQueue;if(r.updateQueue=null,j!==null)try{P==="input"&&y.type==="radio"&&y.name!=null&&en(p,y),gs(P,k);var W=gs(P,y);for(k=0;k<j.length;k+=2){var ee=j[k],ne=j[k+1];ee==="style"?ms(p,ne):ee==="dangerouslySetInnerHTML"?kr(p,ne):ee==="children"?bt(p,ne):N(p,ee,ne,W)}switch(P){case"input":an(p,y);break;case"textarea":Re(p,y);break;case"select":var Q=p._wrapperState.wasMultiple;p._wrapperState.wasMultiple=!!y.multiple;var ye=y.value;ye!=null?oe(p,!!y.multiple,ye,!1):Q!==!!y.multiple&&(y.defaultValue!=null?oe(p,!!y.multiple,y.defaultValue,!0):oe(p,!!y.multiple,y.multiple?[]:"",!1))}p[na]=y}catch(Te){Ot(r,r.return,Te)}}break;case 6:if(pr(i,r),Dr(r),d&4){if(r.stateNode===null)throw Error(n(162));p=r.stateNode,y=r.memoizedProps;try{p.nodeValue=y}catch(Te){Ot(r,r.return,Te)}}break;case 3:if(pr(i,r),Dr(r),d&4&&l!==null&&l.memoizedState.isDehydrated)try{Ho(i.containerInfo)}catch(Te){Ot(r,r.return,Te)}break;case 4:pr(i,r),Dr(r);break;case 13:pr(i,r),Dr(r),p=r.child,p.flags&8192&&(y=p.memoizedState!==null,p.stateNode.isHidden=y,!y||p.alternate!==null&&p.alternate.memoizedState!==null||(_f=wt())),d&4&&Ny(r);break;case 22:if(ee=l!==null&&l.memoizedState!==null,r.mode&1?(fn=(W=fn)||ee,pr(i,r),fn=W):pr(i,r),Dr(r),d&8192){if(W=r.memoizedState!==null,(r.stateNode.isHidden=W)&&!ee&&r.mode&1)for(Se=r,ee=r.child;ee!==null;){for(ne=Se=ee;Se!==null;){switch(Q=Se,ye=Q.child,Q.tag){case 0:case 11:case 14:case 15:ha(4,Q,Q.return);break;case 1:lo(Q,Q.return);var _e=Q.stateNode;if(typeof _e.componentWillUnmount=="function"){d=Q,l=Q.return;try{i=d,_e.props=i.memoizedProps,_e.state=i.memoizedState,_e.componentWillUnmount()}catch(Te){Ot(d,l,Te)}}break;case 5:lo(Q,Q.return);break;case 22:if(Q.memoizedState!==null){Ly(ne);continue}}ye!==null?(ye.return=Q,Se=ye):Ly(ne)}ee=ee.sibling}e:for(ee=null,ne=r;;){if(ne.tag===5){if(ee===null){ee=ne;try{p=ne.stateNode,W?(y=p.style,typeof y.setProperty=="function"?y.setProperty("display","none","important"):y.display="none"):(P=ne.stateNode,j=ne.memoizedProps.style,k=j!=null&&j.hasOwnProperty("display")?j.display:null,P.style.display=Fn("display",k))}catch(Te){Ot(r,r.return,Te)}}}else if(ne.tag===6){if(ee===null)try{ne.stateNode.nodeValue=W?"":ne.memoizedProps}catch(Te){Ot(r,r.return,Te)}}else if((ne.tag!==22&&ne.tag!==23||ne.memoizedState===null||ne===r)&&ne.child!==null){ne.child.return=ne,ne=ne.child;continue}if(ne===r)break e;for(;ne.sibling===null;){if(ne.return===null||ne.return===r)break e;ee===ne&&(ee=null),ne=ne.return}ee===ne&&(ee=null),ne.sibling.return=ne.return,ne=ne.sibling}}break;case 19:pr(i,r),Dr(r),d&4&&Ny(r);break;case 21:break;default:pr(i,r),Dr(r)}}function Dr(r){var i=r.flags;if(i&2){try{e:{for(var l=r.return;l!==null;){if(Ty(l)){var d=l;break e}l=l.return}throw Error(n(160))}switch(d.tag){case 5:var p=d.stateNode;d.flags&32&&(bt(p,""),d.flags&=-33);var y=Ry(r);wf(r,y,p);break;case 3:case 4:var k=d.stateNode.containerInfo,P=Ry(r);xf(r,P,k);break;default:throw Error(n(161))}}catch(j){Ot(r,r.return,j)}r.flags&=-3}i&4096&&(r.flags&=-4097)}function _1(r,i,l){Se=r,jy(r)}function jy(r,i,l){for(var d=(r.mode&1)!==0;Se!==null;){var p=Se,y=p.child;if(p.tag===22&&d){var k=p.memoizedState!==null||yu;if(!k){var P=p.alternate,j=P!==null&&P.memoizedState!==null||fn;P=yu;var W=fn;if(yu=k,(fn=j)&&!W)for(Se=p;Se!==null;)k=Se,j=k.child,k.tag===22&&k.memoizedState!==null?My(p):j!==null?(j.return=k,Se=j):My(p);for(;y!==null;)Se=y,jy(y),y=y.sibling;Se=p,yu=P,fn=W}Dy(r)}else p.subtreeFlags&8772&&y!==null?(y.return=p,Se=y):Dy(r)}}function Dy(r){for(;Se!==null;){var i=Se;if(i.flags&8772){var l=i.alternate;try{if(i.flags&8772)switch(i.tag){case 0:case 11:case 15:fn||vu(5,i);break;case 1:var d=i.stateNode;if(i.flags&4&&!fn)if(l===null)d.componentDidMount();else{var p=i.elementType===i.type?l.memoizedProps:fr(i.type,l.memoizedProps);d.componentDidUpdate(p,l.memoizedState,d.__reactInternalSnapshotBeforeUpdate)}var y=i.updateQueue;y!==null&&Lg(i,y,d);break;case 3:var k=i.updateQueue;if(k!==null){if(l=null,i.child!==null)switch(i.child.tag){case 5:l=i.child.stateNode;break;case 1:l=i.child.stateNode}Lg(i,k,l)}break;case 5:var P=i.stateNode;if(l===null&&i.flags&4){l=P;var j=i.memoizedProps;switch(i.type){case"button":case"input":case"select":case"textarea":j.autoFocus&&l.focus();break;case"img":j.src&&(l.src=j.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(i.memoizedState===null){var W=i.alternate;if(W!==null){var ee=W.memoizedState;if(ee!==null){var ne=ee.dehydrated;ne!==null&&Ho(ne)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(n(163))}fn||i.flags&512&&vf(i)}catch(Q){Ot(i,i.return,Q)}}if(i===r){Se=null;break}if(l=i.sibling,l!==null){l.return=i.return,Se=l;break}Se=i.return}}function Ly(r){for(;Se!==null;){var i=Se;if(i===r){Se=null;break}var l=i.sibling;if(l!==null){l.return=i.return,Se=l;break}Se=i.return}}function My(r){for(;Se!==null;){var i=Se;try{switch(i.tag){case 0:case 11:case 15:var l=i.return;try{vu(4,i)}catch(j){Ot(i,l,j)}break;case 1:var d=i.stateNode;if(typeof d.componentDidMount=="function"){var p=i.return;try{d.componentDidMount()}catch(j){Ot(i,p,j)}}var y=i.return;try{vf(i)}catch(j){Ot(i,y,j)}break;case 5:var k=i.return;try{vf(i)}catch(j){Ot(i,k,j)}}}catch(j){Ot(i,i.return,j)}if(i===r){Se=null;break}var P=i.sibling;if(P!==null){P.return=i.return,Se=P;break}Se=i.return}}var E1=Math.ceil,xu=I.ReactCurrentDispatcher,Sf=I.ReactCurrentOwner,er=I.ReactCurrentBatchConfig,ct=0,Xt=null,$t=null,nn=0,$n=0,uo=Rs(0),Kt=0,pa=null,hi=0,wu=0,bf=0,ma=null,Tn=null,_f=0,co=1/0,ss=null,Su=!1,Ef=null,Ls=null,bu=!1,Ms=null,_u=0,ga=0,Cf=null,Eu=-1,Cu=0;function vn(){return ct&6?wt():Eu!==-1?Eu:Eu=wt()}function Os(r){return r.mode&1?ct&2&&nn!==0?nn&-nn:a1.transition!==null?(Cu===0&&(Cu=Rm()),Cu):(r=gt,r!==0||(r=window.event,r=r===void 0?16:Fm(r.type)),r):1}function mr(r,i,l,d){if(50<ga)throw ga=0,Cf=null,Error(n(185));Bo(r,l,d),(!(ct&2)||r!==Xt)&&(r===Xt&&(!(ct&2)&&(wu|=l),Kt===4&&Fs(r,nn)),Rn(r,d),l===1&&ct===0&&!(i.mode&1)&&(co=wt()+500,Jl&&Ns()))}function Rn(r,i){var l=r.callbackNode;aE(r,i);var d=Ll(r,r===Xt?nn:0);if(d===0)l!==null&&Ui(l),r.callbackNode=null,r.callbackPriority=0;else if(i=d&-d,r.callbackPriority!==i){if(l!=null&&Ui(l),i===1)r.tag===0?o1(Fy.bind(null,r)):bg(Fy.bind(null,r)),n1(function(){!(ct&6)&&Ns()}),l=null;else{switch(Pm(d)){case 1:l=ht;break;case 4:l=Gt;break;case 16:l=Yr;break;case 536870912:l=Rt;break;default:l=Yr}l=Hy(l,Oy.bind(null,r))}r.callbackPriority=i,r.callbackNode=l}}function Oy(r,i){if(Eu=-1,Cu=0,ct&6)throw Error(n(327));var l=r.callbackNode;if(fo()&&r.callbackNode!==l)return null;var d=Ll(r,r===Xt?nn:0);if(d===0)return null;if(d&30||d&r.expiredLanes||i)i=ku(r,d);else{i=d;var p=ct;ct|=2;var y=Vy();(Xt!==r||nn!==i)&&(ss=null,co=wt()+500,mi(r,i));do try{T1();break}catch(P){Iy(r,P)}while(!0);Ud(),xu.current=y,ct=p,$t!==null?i=0:(Xt=null,nn=0,i=Kt)}if(i!==0){if(i===2&&(p=sd(r),p!==0&&(d=p,i=kf(r,p))),i===1)throw l=pa,mi(r,0),Fs(r,d),Rn(r,wt()),l;if(i===6)Fs(r,d);else{if(p=r.current.alternate,!(d&30)&&!C1(p)&&(i=ku(r,d),i===2&&(y=sd(r),y!==0&&(d=y,i=kf(r,y))),i===1))throw l=pa,mi(r,0),Fs(r,d),Rn(r,wt()),l;switch(r.finishedWork=p,r.finishedLanes=d,i){case 0:case 1:throw Error(n(345));case 2:gi(r,Tn,ss);break;case 3:if(Fs(r,d),(d&130023424)===d&&(i=_f+500-wt(),10<i)){if(Ll(r,0)!==0)break;if(p=r.suspendedLanes,(p&d)!==d){vn(),r.pingedLanes|=r.suspendedLanes&p;break}r.timeoutHandle=Ad(gi.bind(null,r,Tn,ss),i);break}gi(r,Tn,ss);break;case 4:if(Fs(r,d),(d&4194240)===d)break;for(i=r.eventTimes,p=-1;0<d;){var k=31-ur(d);y=1<<k,k=i[k],k>p&&(p=k),d&=~y}if(d=p,d=wt()-d,d=(120>d?120:480>d?480:1080>d?1080:1920>d?1920:3e3>d?3e3:4320>d?4320:1960*E1(d/1960))-d,10<d){r.timeoutHandle=Ad(gi.bind(null,r,Tn,ss),d);break}gi(r,Tn,ss);break;case 5:gi(r,Tn,ss);break;default:throw Error(n(329))}}}return Rn(r,wt()),r.callbackNode===l?Oy.bind(null,r):null}function kf(r,i){var l=ma;return r.current.memoizedState.isDehydrated&&(mi(r,i).flags|=256),r=ku(r,i),r!==2&&(i=Tn,Tn=l,i!==null&&Tf(i)),r}function Tf(r){Tn===null?Tn=r:Tn.push.apply(Tn,r)}function C1(r){for(var i=r;;){if(i.flags&16384){var l=i.updateQueue;if(l!==null&&(l=l.stores,l!==null))for(var d=0;d<l.length;d++){var p=l[d],y=p.getSnapshot;p=p.value;try{if(!cr(y(),p))return!1}catch{return!1}}}if(l=i.child,i.subtreeFlags&16384&&l!==null)l.return=i,i=l;else{if(i===r)break;for(;i.sibling===null;){if(i.return===null||i.return===r)return!0;i=i.return}i.sibling.return=i.return,i=i.sibling}}return!0}function Fs(r,i){for(i&=~bf,i&=~wu,r.suspendedLanes|=i,r.pingedLanes&=~i,r=r.expirationTimes;0<i;){var l=31-ur(i),d=1<<l;r[l]=-1,i&=~d}}function Fy(r){if(ct&6)throw Error(n(327));fo();var i=Ll(r,0);if(!(i&1))return Rn(r,wt()),null;var l=ku(r,i);if(r.tag!==0&&l===2){var d=sd(r);d!==0&&(i=d,l=kf(r,d))}if(l===1)throw l=pa,mi(r,0),Fs(r,i),Rn(r,wt()),l;if(l===6)throw Error(n(345));return r.finishedWork=r.current.alternate,r.finishedLanes=i,gi(r,Tn,ss),Rn(r,wt()),null}function Rf(r,i){var l=ct;ct|=1;try{return r(i)}finally{ct=l,ct===0&&(co=wt()+500,Jl&&Ns())}}function pi(r){Ms!==null&&Ms.tag===0&&!(ct&6)&&fo();var i=ct;ct|=1;var l=er.transition,d=gt;try{if(er.transition=null,gt=1,r)return r()}finally{gt=d,er.transition=l,ct=i,!(ct&6)&&Ns()}}function Pf(){$n=uo.current,Et(uo)}function mi(r,i){r.finishedWork=null,r.finishedLanes=0;var l=r.timeoutHandle;if(l!==-1&&(r.timeoutHandle=-1,t1(l)),$t!==null)for(l=$t.return;l!==null;){var d=l;switch(Fd(d),d.tag){case 1:d=d.type.childContextTypes,d!=null&&Xl();break;case 3:oo(),Et(En),Et(un),Yd();break;case 5:Kd(d);break;case 4:oo();break;case 13:Et(Pt);break;case 19:Et(Pt);break;case 10:$d(d.type._context);break;case 22:case 23:Pf()}l=l.return}if(Xt=r,$t=r=Is(r.current,null),nn=$n=i,Kt=0,pa=null,bf=wu=hi=0,Tn=ma=null,ci!==null){for(i=0;i<ci.length;i++)if(l=ci[i],d=l.interleaved,d!==null){l.interleaved=null;var p=d.next,y=l.pending;if(y!==null){var k=y.next;y.next=p,d.next=k}l.pending=d}ci=null}return r}function Iy(r,i){do{var l=$t;try{if(Ud(),uu.current=hu,cu){for(var d=Nt.memoizedState;d!==null;){var p=d.queue;p!==null&&(p.pending=null),d=d.next}cu=!1}if(fi=0,Yt=Zt=Nt=null,la=!1,ua=0,Sf.current=null,l===null||l.return===null){Kt=1,pa=i,$t=null;break}e:{var y=r,k=l.return,P=l,j=i;if(i=nn,P.flags|=32768,j!==null&&typeof j=="object"&&typeof j.then=="function"){var W=j,ee=P,ne=ee.tag;if(!(ee.mode&1)&&(ne===0||ne===11||ne===15)){var Q=ee.alternate;Q?(ee.updateQueue=Q.updateQueue,ee.memoizedState=Q.memoizedState,ee.lanes=Q.lanes):(ee.updateQueue=null,ee.memoizedState=null)}var ye=uy(k);if(ye!==null){ye.flags&=-257,cy(ye,k,P,y,i),ye.mode&1&&ly(y,W,i),i=ye,j=W;var _e=i.updateQueue;if(_e===null){var Te=new Set;Te.add(j),i.updateQueue=Te}else _e.add(j);break e}else{if(!(i&1)){ly(y,W,i),Nf();break e}j=Error(n(426))}}else if(Tt&&P.mode&1){var Vt=uy(k);if(Vt!==null){!(Vt.flags&65536)&&(Vt.flags|=256),cy(Vt,k,P,y,i),Bd(ao(j,P));break e}}y=j=ao(j,P),Kt!==4&&(Kt=2),ma===null?ma=[y]:ma.push(y),y=k;do{switch(y.tag){case 3:y.flags|=65536,i&=-i,y.lanes|=i;var B=oy(y,j,i);Dg(y,B);break e;case 1:P=j;var M=y.type,$=y.stateNode;if(!(y.flags&128)&&(typeof M.getDerivedStateFromError=="function"||$!==null&&typeof $.componentDidCatch=="function"&&(Ls===null||!Ls.has($)))){y.flags|=65536,i&=-i,y.lanes|=i;var le=ay(y,P,i);Dg(y,le);break e}}y=y.return}while(y!==null)}zy(l)}catch(Ae){i=Ae,$t===l&&l!==null&&($t=l=l.return);continue}break}while(!0)}function Vy(){var r=xu.current;return xu.current=hu,r===null?hu:r}function Nf(){(Kt===0||Kt===3||Kt===2)&&(Kt=4),Xt===null||!(hi&268435455)&&!(wu&268435455)||Fs(Xt,nn)}function ku(r,i){var l=ct;ct|=2;var d=Vy();(Xt!==r||nn!==i)&&(ss=null,mi(r,i));do try{k1();break}catch(p){Iy(r,p)}while(!0);if(Ud(),ct=l,xu.current=d,$t!==null)throw Error(n(261));return Xt=null,nn=0,Kt}function k1(){for(;$t!==null;)By($t)}function T1(){for(;$t!==null&&!si();)By($t)}function By(r){var i=Wy(r.alternate,r,$n);r.memoizedProps=r.pendingProps,i===null?zy(r):$t=i,Sf.current=null}function zy(r){var i=r;do{var l=i.alternate;if(r=i.return,i.flags&32768){if(l=w1(l,i),l!==null){l.flags&=32767,$t=l;return}if(r!==null)r.flags|=32768,r.subtreeFlags=0,r.deletions=null;else{Kt=6,$t=null;return}}else if(l=x1(l,i,$n),l!==null){$t=l;return}if(i=i.sibling,i!==null){$t=i;return}$t=i=r}while(i!==null);Kt===0&&(Kt=5)}function gi(r,i,l){var d=gt,p=er.transition;try{er.transition=null,gt=1,R1(r,i,l,d)}finally{er.transition=p,gt=d}return null}function R1(r,i,l,d){do fo();while(Ms!==null);if(ct&6)throw Error(n(327));l=r.finishedWork;var p=r.finishedLanes;if(l===null)return null;if(r.finishedWork=null,r.finishedLanes=0,l===r.current)throw Error(n(177));r.callbackNode=null,r.callbackPriority=0;var y=l.lanes|l.childLanes;if(lE(r,y),r===Xt&&($t=Xt=null,nn=0),!(l.subtreeFlags&2064)&&!(l.flags&2064)||bu||(bu=!0,Hy(Yr,function(){return fo(),null})),y=(l.flags&15990)!==0,l.subtreeFlags&15990||y){y=er.transition,er.transition=null;var k=gt;gt=1;var P=ct;ct|=4,Sf.current=null,b1(r,l),Ay(l,r),KE(Pd),Fl=!!Rd,Pd=Rd=null,r.current=l,_1(l),qr(),ct=P,gt=k,er.transition=y}else r.current=l;if(bu&&(bu=!1,Ms=r,_u=p),y=r.pendingLanes,y===0&&(Ls=null),rd(l.stateNode),Rn(r,wt()),i!==null)for(d=r.onRecoverableError,l=0;l<i.length;l++)p=i[l],d(p.value,{componentStack:p.stack,digest:p.digest});if(Su)throw Su=!1,r=Ef,Ef=null,r;return _u&1&&r.tag!==0&&fo(),y=r.pendingLanes,y&1?r===Cf?ga++:(ga=0,Cf=r):ga=0,Ns(),null}function fo(){if(Ms!==null){var r=Pm(_u),i=er.transition,l=gt;try{if(er.transition=null,gt=16>r?16:r,Ms===null)var d=!1;else{if(r=Ms,Ms=null,_u=0,ct&6)throw Error(n(331));var p=ct;for(ct|=4,Se=r.current;Se!==null;){var y=Se,k=y.child;if(Se.flags&16){var P=y.deletions;if(P!==null){for(var j=0;j<P.length;j++){var W=P[j];for(Se=W;Se!==null;){var ee=Se;switch(ee.tag){case 0:case 11:case 15:ha(8,ee,y)}var ne=ee.child;if(ne!==null)ne.return=ee,Se=ne;else for(;Se!==null;){ee=Se;var Q=ee.sibling,ye=ee.return;if(ky(ee),ee===W){Se=null;break}if(Q!==null){Q.return=ye,Se=Q;break}Se=ye}}}var _e=y.alternate;if(_e!==null){var Te=_e.child;if(Te!==null){_e.child=null;do{var Vt=Te.sibling;Te.sibling=null,Te=Vt}while(Te!==null)}}Se=y}}if(y.subtreeFlags&2064&&k!==null)k.return=y,Se=k;else e:for(;Se!==null;){if(y=Se,y.flags&2048)switch(y.tag){case 0:case 11:case 15:ha(9,y,y.return)}var B=y.sibling;if(B!==null){B.return=y.return,Se=B;break e}Se=y.return}}var M=r.current;for(Se=M;Se!==null;){k=Se;var $=k.child;if(k.subtreeFlags&2064&&$!==null)$.return=k,Se=$;else e:for(k=M;Se!==null;){if(P=Se,P.flags&2048)try{switch(P.tag){case 0:case 11:case 15:vu(9,P)}}catch(Ae){Ot(P,P.return,Ae)}if(P===k){Se=null;break e}var le=P.sibling;if(le!==null){le.return=P.return,Se=le;break e}Se=P.return}}if(ct=p,Ns(),Vn&&typeof Vn.onPostCommitFiberRoot=="function")try{Vn.onPostCommitFiberRoot(lr,r)}catch{}d=!0}return d}finally{gt=l,er.transition=i}}return!1}function Uy(r,i,l){i=ao(l,i),i=oy(r,i,1),r=js(r,i,1),i=vn(),r!==null&&(Bo(r,1,i),Rn(r,i))}function Ot(r,i,l){if(r.tag===3)Uy(r,r,l);else for(;i!==null;){if(i.tag===3){Uy(i,r,l);break}else if(i.tag===1){var d=i.stateNode;if(typeof i.type.getDerivedStateFromError=="function"||typeof d.componentDidCatch=="function"&&(Ls===null||!Ls.has(d))){r=ao(l,r),r=ay(i,r,1),i=js(i,r,1),r=vn(),i!==null&&(Bo(i,1,r),Rn(i,r));break}}i=i.return}}function P1(r,i,l){var d=r.pingCache;d!==null&&d.delete(i),i=vn(),r.pingedLanes|=r.suspendedLanes&l,Xt===r&&(nn&l)===l&&(Kt===4||Kt===3&&(nn&130023424)===nn&&500>wt()-_f?mi(r,0):bf|=l),Rn(r,i)}function $y(r,i){i===0&&(r.mode&1?(i=Dl,Dl<<=1,!(Dl&130023424)&&(Dl=4194304)):i=1);var l=vn();r=ts(r,i),r!==null&&(Bo(r,i,l),Rn(r,l))}function N1(r){var i=r.memoizedState,l=0;i!==null&&(l=i.retryLane),$y(r,l)}function A1(r,i){var l=0;switch(r.tag){case 13:var d=r.stateNode,p=r.memoizedState;p!==null&&(l=p.retryLane);break;case 19:d=r.stateNode;break;default:throw Error(n(314))}d!==null&&d.delete(i),$y(r,l)}var Wy;Wy=function(r,i,l){if(r!==null)if(r.memoizedProps!==i.pendingProps||En.current)kn=!0;else{if(!(r.lanes&l)&&!(i.flags&128))return kn=!1,v1(r,i,l);kn=!!(r.flags&131072)}else kn=!1,Tt&&i.flags&1048576&&_g(i,tu,i.index);switch(i.lanes=0,i.tag){case 2:var d=i.type;gu(r,i),r=i.pendingProps;var p=Ji(i,un.current);io(i,l),p=Jd(null,i,d,r,p,l);var y=ef();return i.flags|=1,typeof p=="object"&&p!==null&&typeof p.render=="function"&&p.$$typeof===void 0?(i.tag=1,i.memoizedState=null,i.updateQueue=null,Cn(d)?(y=!0,Ql(i)):y=!1,i.memoizedState=p.state!==null&&p.state!==void 0?p.state:null,Gd(i),p.updater=pu,i.stateNode=p,p._reactInternals=i,af(i,d,r,l),i=df(null,i,d,!0,y,l)):(i.tag=0,Tt&&y&&Od(i),yn(null,i,p,l),i=i.child),i;case 16:d=i.elementType;e:{switch(gu(r,i),r=i.pendingProps,p=d._init,d=p(d._payload),i.type=d,p=i.tag=D1(d),r=fr(d,r),p){case 0:i=cf(null,i,d,r,l);break e;case 1:i=gy(null,i,d,r,l);break e;case 11:i=dy(null,i,d,r,l);break e;case 14:i=fy(null,i,d,fr(d.type,r),l);break e}throw Error(n(306,d,""))}return i;case 0:return d=i.type,p=i.pendingProps,p=i.elementType===d?p:fr(d,p),cf(r,i,d,p,l);case 1:return d=i.type,p=i.pendingProps,p=i.elementType===d?p:fr(d,p),gy(r,i,d,p,l);case 3:e:{if(yy(i),r===null)throw Error(n(387));d=i.pendingProps,y=i.memoizedState,p=y.element,jg(r,i),au(i,d,null,l);var k=i.memoizedState;if(d=k.element,y.isDehydrated)if(y={element:d,isDehydrated:!1,cache:k.cache,pendingSuspenseBoundaries:k.pendingSuspenseBoundaries,transitions:k.transitions},i.updateQueue.baseState=y,i.memoizedState=y,i.flags&256){p=ao(Error(n(423)),i),i=vy(r,i,d,l,p);break e}else if(d!==p){p=ao(Error(n(424)),i),i=vy(r,i,d,l,p);break e}else for(Un=Ts(i.stateNode.containerInfo.firstChild),zn=i,Tt=!0,dr=null,l=Ng(i,null,d,l),i.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling;else{if(no(),d===p){i=rs(r,i,l);break e}yn(r,i,d,l)}i=i.child}return i;case 5:return Mg(i),r===null&&Vd(i),d=i.type,p=i.pendingProps,y=r!==null?r.memoizedProps:null,k=p.children,Nd(d,p)?k=null:y!==null&&Nd(d,y)&&(i.flags|=32),my(r,i),yn(r,i,k,l),i.child;case 6:return r===null&&Vd(i),null;case 13:return xy(r,i,l);case 4:return Zd(i,i.stateNode.containerInfo),d=i.pendingProps,r===null?i.child=ro(i,null,d,l):yn(r,i,d,l),i.child;case 11:return d=i.type,p=i.pendingProps,p=i.elementType===d?p:fr(d,p),dy(r,i,d,p,l);case 7:return yn(r,i,i.pendingProps,l),i.child;case 8:return yn(r,i,i.pendingProps.children,l),i.child;case 12:return yn(r,i,i.pendingProps.children,l),i.child;case 10:e:{if(d=i.type._context,p=i.pendingProps,y=i.memoizedProps,k=p.value,St(su,d._currentValue),d._currentValue=k,y!==null)if(cr(y.value,k)){if(y.children===p.children&&!En.current){i=rs(r,i,l);break e}}else for(y=i.child,y!==null&&(y.return=i);y!==null;){var P=y.dependencies;if(P!==null){k=y.child;for(var j=P.firstContext;j!==null;){if(j.context===d){if(y.tag===1){j=ns(-1,l&-l),j.tag=2;var W=y.updateQueue;if(W!==null){W=W.shared;var ee=W.pending;ee===null?j.next=j:(j.next=ee.next,ee.next=j),W.pending=j}}y.lanes|=l,j=y.alternate,j!==null&&(j.lanes|=l),Wd(y.return,l,i),P.lanes|=l;break}j=j.next}}else if(y.tag===10)k=y.type===i.type?null:y.child;else if(y.tag===18){if(k=y.return,k===null)throw Error(n(341));k.lanes|=l,P=k.alternate,P!==null&&(P.lanes|=l),Wd(k,l,i),k=y.sibling}else k=y.child;if(k!==null)k.return=y;else for(k=y;k!==null;){if(k===i){k=null;break}if(y=k.sibling,y!==null){y.return=k.return,k=y;break}k=k.return}y=k}yn(r,i,p.children,l),i=i.child}return i;case 9:return p=i.type,d=i.pendingProps.children,io(i,l),p=Qn(p),d=d(p),i.flags|=1,yn(r,i,d,l),i.child;case 14:return d=i.type,p=fr(d,i.pendingProps),p=fr(d.type,p),fy(r,i,d,p,l);case 15:return hy(r,i,i.type,i.pendingProps,l);case 17:return d=i.type,p=i.pendingProps,p=i.elementType===d?p:fr(d,p),gu(r,i),i.tag=1,Cn(d)?(r=!0,Ql(i)):r=!1,io(i,l),sy(i,d,p),af(i,d,p,l),df(null,i,d,!0,r,l);case 19:return Sy(r,i,l);case 22:return py(r,i,l)}throw Error(n(156,i.tag))};function Hy(r,i){return In(r,i)}function j1(r,i,l,d){this.tag=r,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=i,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=d,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function tr(r,i,l,d){return new j1(r,i,l,d)}function Af(r){return r=r.prototype,!(!r||!r.isReactComponent)}function D1(r){if(typeof r=="function")return Af(r)?1:0;if(r!=null){if(r=r.$$typeof,r===X)return 11;if(r===we)return 14}return 2}function Is(r,i){var l=r.alternate;return l===null?(l=tr(r.tag,i,r.key,r.mode),l.elementType=r.elementType,l.type=r.type,l.stateNode=r.stateNode,l.alternate=r,r.alternate=l):(l.pendingProps=i,l.type=r.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=r.flags&14680064,l.childLanes=r.childLanes,l.lanes=r.lanes,l.child=r.child,l.memoizedProps=r.memoizedProps,l.memoizedState=r.memoizedState,l.updateQueue=r.updateQueue,i=r.dependencies,l.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext},l.sibling=r.sibling,l.index=r.index,l.ref=r.ref,l}function Tu(r,i,l,d,p,y){var k=2;if(d=r,typeof r=="function")Af(r)&&(k=1);else if(typeof r=="string")k=5;else e:switch(r){case z:return yi(l.children,p,y,i);case O:k=8,p|=8;break;case q:return r=tr(12,l,i,p|2),r.elementType=q,r.lanes=y,r;case de:return r=tr(13,l,i,p),r.elementType=de,r.lanes=y,r;case ke:return r=tr(19,l,i,p),r.elementType=ke,r.lanes=y,r;case me:return Ru(l,p,y,i);default:if(typeof r=="object"&&r!==null)switch(r.$$typeof){case te:k=10;break e;case pe:k=9;break e;case X:k=11;break e;case we:k=14;break e;case De:k=16,d=null;break e}throw Error(n(130,r==null?r:typeof r,""))}return i=tr(k,l,i,p),i.elementType=r,i.type=d,i.lanes=y,i}function yi(r,i,l,d){return r=tr(7,r,d,i),r.lanes=l,r}function Ru(r,i,l,d){return r=tr(22,r,d,i),r.elementType=me,r.lanes=l,r.stateNode={isHidden:!1},r}function jf(r,i,l){return r=tr(6,r,null,i),r.lanes=l,r}function Df(r,i,l){return i=tr(4,r.children!==null?r.children:[],r.key,i),i.lanes=l,i.stateNode={containerInfo:r.containerInfo,pendingChildren:null,implementation:r.implementation},i}function L1(r,i,l,d,p){this.tag=i,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=id(0),this.expirationTimes=id(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=id(0),this.identifierPrefix=d,this.onRecoverableError=p,this.mutableSourceEagerHydrationData=null}function Lf(r,i,l,d,p,y,k,P,j){return r=new L1(r,i,l,P,j),i===1?(i=1,y===!0&&(i|=8)):i=0,y=tr(3,null,null,i),r.current=y,y.stateNode=r,y.memoizedState={element:d,isDehydrated:l,cache:null,transitions:null,pendingSuspenseBoundaries:null},Gd(y),r}function M1(r,i,l){var d=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:F,key:d==null?null:""+d,children:r,containerInfo:i,implementation:l}}function Gy(r){if(!r)return Ps;r=r._reactInternals;e:{if(ft(r)!==r||r.tag!==1)throw Error(n(170));var i=r;do{switch(i.tag){case 3:i=i.stateNode.context;break e;case 1:if(Cn(i.type)){i=i.stateNode.__reactInternalMemoizedMergedChildContext;break e}}i=i.return}while(i!==null);throw Error(n(171))}if(r.tag===1){var l=r.type;if(Cn(l))return wg(r,l,i)}return i}function Zy(r,i,l,d,p,y,k,P,j){return r=Lf(l,d,!0,r,p,y,k,P,j),r.context=Gy(null),l=r.current,d=vn(),p=Os(l),y=ns(d,p),y.callback=i??null,js(l,y,p),r.current.lanes=p,Bo(r,p,d),Rn(r,d),r}function Pu(r,i,l,d){var p=i.current,y=vn(),k=Os(p);return l=Gy(l),i.context===null?i.context=l:i.pendingContext=l,i=ns(y,k),i.payload={element:r},d=d===void 0?null:d,d!==null&&(i.callback=d),r=js(p,i,k),r!==null&&(mr(r,p,k,y),ou(r,p,k)),k}function Nu(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 Ky(r,i){if(r=r.memoizedState,r!==null&&r.dehydrated!==null){var l=r.retryLane;r.retryLane=l!==0&&l<i?l:i}}function Mf(r,i){Ky(r,i),(r=r.alternate)&&Ky(r,i)}var qy=typeof reportError=="function"?reportError:function(r){console.error(r)};function Of(r){this._internalRoot=r}Au.prototype.render=Of.prototype.render=function(r){var i=this._internalRoot;if(i===null)throw Error(n(409));Pu(r,i,null,null)},Au.prototype.unmount=Of.prototype.unmount=function(){var r=this._internalRoot;if(r!==null){this._internalRoot=null;var i=r.containerInfo;pi(function(){Pu(null,r,null,null)}),i[Xr]=null}};function Au(r){this._internalRoot=r}Au.prototype.unstable_scheduleHydration=function(r){if(r){var i=jm();r={blockedOn:null,target:r,priority:i};for(var l=0;l<Es.length&&i!==0&&i<Es[l].priority;l++);Es.splice(l,0,r),l===0&&Mm(r)}};function Ff(r){return!(!r||r.nodeType!==1&&r.nodeType!==9&&r.nodeType!==11)}function ju(r){return!(!r||r.nodeType!==1&&r.nodeType!==9&&r.nodeType!==11&&(r.nodeType!==8||r.nodeValue!==" react-mount-point-unstable "))}function Yy(){}function O1(r,i,l,d,p){if(p){if(typeof d=="function"){var y=d;d=function(){var W=Nu(k);y.call(W)}}var k=Zy(i,d,r,0,null,!1,!1,"",Yy);return r._reactRootContainer=k,r[Xr]=k.current,ea(r.nodeType===8?r.parentNode:r),pi(),k}for(;p=r.lastChild;)r.removeChild(p);if(typeof d=="function"){var P=d;d=function(){var W=Nu(j);P.call(W)}}var j=Lf(r,0,!1,null,null,!1,!1,"",Yy);return r._reactRootContainer=j,r[Xr]=j.current,ea(r.nodeType===8?r.parentNode:r),pi(function(){Pu(i,j,l,d)}),j}function Du(r,i,l,d,p){var y=l._reactRootContainer;if(y){var k=y;if(typeof p=="function"){var P=p;p=function(){var j=Nu(k);P.call(j)}}Pu(i,k,r,p)}else k=O1(l,i,r,p,d);return Nu(k)}Nm=function(r){switch(r.tag){case 3:var i=r.stateNode;if(i.current.memoizedState.isDehydrated){var l=Vo(i.pendingLanes);l!==0&&(od(i,l|1),Rn(i,wt()),!(ct&6)&&(co=wt()+500,Ns()))}break;case 13:pi(function(){var d=ts(r,1);if(d!==null){var p=vn();mr(d,r,1,p)}}),Mf(r,1)}},ad=function(r){if(r.tag===13){var i=ts(r,134217728);if(i!==null){var l=vn();mr(i,r,134217728,l)}Mf(r,134217728)}},Am=function(r){if(r.tag===13){var i=Os(r),l=ts(r,i);if(l!==null){var d=vn();mr(l,r,i,d)}Mf(r,i)}},jm=function(){return gt},Dm=function(r,i){var l=gt;try{return gt=r,i()}finally{gt=l}},vs=function(r,i,l){switch(i){case"input":if(an(r,l),i=l.name,l.type==="radio"&&i!=null){for(l=r;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll("input[name="+JSON.stringify(""+i)+'][type="radio"]'),i=0;i<l.length;i++){var d=l[i];if(d!==r&&d.form===r.form){var p=Yl(d);if(!p)throw Error(n(90));Ee(d),an(d,p)}}}break;case"textarea":Re(r,l);break;case"select":i=l.value,i!=null&&oe(r,!!l.multiple,i,!1)}},zi=Rf,D=pi;var F1={usingClientEntryPoint:!1,Events:[ra,Xi,Yl,Kr,ri,Rf]},ya={findFiberByHostInstance:oi,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},I1={bundleType:ya.bundleType,version:ya.version,rendererPackageName:ya.rendererPackageName,rendererConfig:ya.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:I.ReactCurrentDispatcher,findHostInstanceByFiber:function(r){return r=ws(r),r===null?null:r.stateNode},findFiberByHostInstance:ya.findFiberByHostInstance,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Lu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Lu.isDisabled&&Lu.supportsFiber)try{lr=Lu.inject(I1),Vn=Lu}catch{}}return Pn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=F1,Pn.createPortal=function(r,i){var l=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Ff(i))throw Error(n(200));return M1(r,i,null,l)},Pn.createRoot=function(r,i){if(!Ff(r))throw Error(n(299));var l=!1,d="",p=qy;return i!=null&&(i.unstable_strictMode===!0&&(l=!0),i.identifierPrefix!==void 0&&(d=i.identifierPrefix),i.onRecoverableError!==void 0&&(p=i.onRecoverableError)),i=Lf(r,1,!1,null,null,l,!1,d,p),r[Xr]=i.current,ea(r.nodeType===8?r.parentNode:r),new Of(i)},Pn.findDOMNode=function(r){if(r==null)return null;if(r.nodeType===1)return r;var i=r._reactInternals;if(i===void 0)throw typeof r.render=="function"?Error(n(188)):(r=Object.keys(r).join(","),Error(n(268,r)));return r=ws(i),r=r===null?null:r.stateNode,r},Pn.flushSync=function(r){return pi(r)},Pn.hydrate=function(r,i,l){if(!ju(i))throw Error(n(200));return Du(null,r,i,!0,l)},Pn.hydrateRoot=function(r,i,l){if(!Ff(r))throw Error(n(405));var d=l!=null&&l.hydratedSources||null,p=!1,y="",k=qy;if(l!=null&&(l.unstable_strictMode===!0&&(p=!0),l.identifierPrefix!==void 0&&(y=l.identifierPrefix),l.onRecoverableError!==void 0&&(k=l.onRecoverableError)),i=Zy(i,null,r,1,l??null,p,!1,y,k),r[Xr]=i.current,ea(r),d)for(r=0;r<d.length;r++)l=d[r],p=l._getVersion,p=p(l._source),i.mutableSourceEagerHydrationData==null?i.mutableSourceEagerHydrationData=[l,p]:i.mutableSourceEagerHydrationData.push(l,p);return new Au(i)},Pn.render=function(r,i,l){if(!ju(i))throw Error(n(200));return Du(null,r,i,!1,l)},Pn.unmountComponentAtNode=function(r){if(!ju(r))throw Error(n(40));return r._reactRootContainer?(pi(function(){Du(null,null,r,!1,function(){r._reactRootContainer=null,r[Xr]=null})}),!0):!1},Pn.unstable_batchedUpdates=Rf,Pn.unstable_renderSubtreeIntoContainer=function(r,i,l,d){if(!ju(l))throw Error(n(200));if(r==null||r._reactInternals===void 0)throw Error(n(38));return Du(r,i,l,!1,d)},Pn.version="18.3.1-next-f1338f8080-20240426",Pn}var sv;function B0(){if(sv)return Bf.exports;sv=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Bf.exports=Z1(),Bf.exports}var iv;function K1(){if(iv)return Ou;iv=1;var e=B0();return Ou.createRoot=e.createRoot,Ou.hydrateRoot=e.hydrateRoot,Ou}var q1=K1(),xa={},ov;function Y1(){if(ov)return xa;ov=1,Object.defineProperty(xa,"__esModule",{value:!0}),xa.parse=u,xa.serialize=h;const e=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,t=/^[\u0021-\u003A\u003C-\u007E]*$/,n=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,s=/^[\u0020-\u003A\u003D-\u007E]*$/,o=Object.prototype.toString,a=(()=>{const v=function(){};return v.prototype=Object.create(null),v})();function u(v,b){const w=new a,S=v.length;if(S<2)return w;const C=(b==null?void 0:b.decode)||m;let E=0;do{const R=v.indexOf("=",E);if(R===-1)break;const N=v.indexOf(";",E),I=N===-1?S:N;if(R>I){E=v.lastIndexOf(";",R-1)+1;continue}const T=c(v,E,R),F=f(v,R,T),z=v.slice(T,F);if(w[z]===void 0){let O=c(v,R+1,I),q=f(v,I,O);const te=C(v.slice(O,q));w[z]=te}E=I+1}while(E<S);return w}function c(v,b,w){do{const S=v.charCodeAt(b);if(S!==32&&S!==9)return b}while(++b<w);return w}function f(v,b,w){for(;b>w;){const S=v.charCodeAt(--b);if(S!==32&&S!==9)return b+1}return w}function h(v,b,w){const S=(w==null?void 0:w.encode)||encodeURIComponent;if(!e.test(v))throw new TypeError(`argument name is invalid: ${v}`);const C=S(b);if(!t.test(C))throw new TypeError(`argument val is invalid: ${b}`);let E=v+"="+C;if(!w)return E;if(w.maxAge!==void 0){if(!Number.isInteger(w.maxAge))throw new TypeError(`option maxAge is invalid: ${w.maxAge}`);E+="; Max-Age="+w.maxAge}if(w.domain){if(!n.test(w.domain))throw new TypeError(`option domain is invalid: ${w.domain}`);E+="; Domain="+w.domain}if(w.path){if(!s.test(w.path))throw new TypeError(`option path is invalid: ${w.path}`);E+="; Path="+w.path}if(w.expires){if(!g(w.expires)||!Number.isFinite(w.expires.valueOf()))throw new TypeError(`option expires is invalid: ${w.expires}`);E+="; Expires="+w.expires.toUTCString()}if(w.httpOnly&&(E+="; HttpOnly"),w.secure&&(E+="; Secure"),w.partitioned&&(E+="; Partitioned"),w.priority)switch(typeof w.priority=="string"?w.priority.toLowerCase():void 0){case"low":E+="; Priority=Low";break;case"medium":E+="; Priority=Medium";break;case"high":E+="; Priority=High";break;default:throw new TypeError(`option priority is invalid: ${w.priority}`)}if(w.sameSite)switch(typeof w.sameSite=="string"?w.sameSite.toLowerCase():w.sameSite){case!0:case"strict":E+="; SameSite=Strict";break;case"lax":E+="; SameSite=Lax";break;case"none":E+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${w.sameSite}`)}return E}function m(v){if(v.indexOf("%")===-1)return v;try{return decodeURIComponent(v)}catch{return v}}function g(v){return o.call(v)==="[object Date]"}return xa}Y1();/**
|
||
* react-router v7.1.3
|
||
*
|
||
* Copyright (c) Remix Software Inc.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE.md file in the root directory of this source tree.
|
||
*
|
||
* @license MIT
|
||
*/var av="popstate";function X1(e={}){function t(s,o){let{pathname:a,search:u,hash:c}=s.location;return Wa("",{pathname:a,search:u,hash:c},o.state&&o.state.usr||null,o.state&&o.state.key||"default")}function n(s,o){return typeof o=="string"?o:Zs(o)}return J1(t,n,null,e)}function ot(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function sn(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Q1(){return Math.random().toString(36).substring(2,10)}function lv(e,t){return{usr:e.state,key:e.key,idx:t}}function Wa(e,t,n=null,s){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?ti(t):t,state:n,key:t&&t.key||s||Q1()}}function Zs({pathname:e="/",search:t="",hash:n=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),n&&n!=="#"&&(e+=n.charAt(0)==="#"?n:"#"+n),e}function ti(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let s=e.indexOf("?");s>=0&&(t.search=e.substring(s),e=e.substring(0,s)),e&&(t.pathname=e)}return t}function J1(e,t,n,s={}){let{window:o=document.defaultView,v5Compat:a=!1}=s,u=o.history,c="POP",f=null,h=m();h==null&&(h=0,u.replaceState({...u.state,idx:h},""));function m(){return(u.state||{idx:null}).idx}function g(){c="POP";let C=m(),E=C==null?null:C-h;h=C,f&&f({action:c,location:S.location,delta:E})}function v(C,E){c="PUSH";let R=Wa(S.location,C,E);h=m()+1;let N=lv(R,h),I=S.createHref(R);try{u.pushState(N,"",I)}catch(T){if(T instanceof DOMException&&T.name==="DataCloneError")throw T;o.location.assign(I)}a&&f&&f({action:c,location:S.location,delta:1})}function b(C,E){c="REPLACE";let R=Wa(S.location,C,E);h=m();let N=lv(R,h),I=S.createHref(R);u.replaceState(N,"",I),a&&f&&f({action:c,location:S.location,delta:0})}function w(C){let E=o.location.origin!=="null"?o.location.origin:o.location.href,R=typeof C=="string"?C:Zs(C);return R=R.replace(/ $/,"%20"),ot(E,`No window.location.(origin|href) available to create URL for href: ${R}`),new URL(R,E)}let S={get action(){return c},get location(){return e(o,u)},listen(C){if(f)throw new Error("A history only accepts one active listener");return o.addEventListener(av,g),f=C,()=>{o.removeEventListener(av,g),f=null}},createHref(C){return t(o,C)},createURL:w,encodeLocation(C){let E=w(C);return{pathname:E.pathname,search:E.search,hash:E.hash}},push:v,replace:b,go(C){return u.go(C)}};return S}var eC=new Set(["lazy","caseSensitive","path","id","index","children"]);function tC(e){return e.index===!0}function ac(e,t,n=[],s={}){return e.map((o,a)=>{let u=[...n,String(a)],c=typeof o.id=="string"?o.id:u.join("-");if(ot(o.index!==!0||!o.children,"Cannot specify children on an index route"),ot(!s[c],`Found a route id collision on id "${c}". Route id's must be globally unique within Data Router usages`),tC(o)){let f={...o,...t(o),id:c};return s[c]=f,f}else{let f={...o,...t(o),id:c,children:void 0};return s[c]=f,o.children&&(f.children=ac(o.children,t,u,s)),f}})}function Hs(e,t,n="/"){return Ku(e,t,n,!1)}function Ku(e,t,n,s){let o=typeof t=="string"?ti(t):t,a=br(o.pathname||"/",n);if(a==null)return null;let u=z0(e);rC(u);let c=null;for(let f=0;c==null&&f<u.length;++f){let h=pC(a);c=fC(u[f],h,s)}return c}function nC(e,t){let{route:n,pathname:s,params:o}=e;return{id:n.id,pathname:s,params:o,data:t[n.id],handle:n.handle}}function z0(e,t=[],n=[],s=""){let o=(a,u,c)=>{let f={relativePath:c===void 0?a.path||"":c,caseSensitive:a.caseSensitive===!0,childrenIndex:u,route:a};f.relativePath.startsWith("/")&&(ot(f.relativePath.startsWith(s),`Absolute route path "${f.relativePath}" nested under path "${s}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),f.relativePath=f.relativePath.slice(s.length));let h=Ir([s,f.relativePath]),m=n.concat(f);a.children&&a.children.length>0&&(ot(a.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${h}".`),z0(a.children,t,m,h)),!(a.path==null&&!a.index)&&t.push({path:h,score:cC(h,a.index),routesMeta:m})};return e.forEach((a,u)=>{var c;if(a.path===""||!((c=a.path)!=null&&c.includes("?")))o(a,u);else for(let f of U0(a.path))o(a,u,f)}),t}function U0(e){let t=e.split("/");if(t.length===0)return[];let[n,...s]=t,o=n.endsWith("?"),a=n.replace(/\?$/,"");if(s.length===0)return o?[a,""]:[a];let u=U0(s.join("/")),c=[];return c.push(...u.map(f=>f===""?a:[a,f].join("/"))),o&&c.push(...u),c.map(f=>e.startsWith("/")&&f===""?"/":f)}function rC(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:dC(t.routesMeta.map(s=>s.childrenIndex),n.routesMeta.map(s=>s.childrenIndex)))}var sC=/^:[\w-]+$/,iC=3,oC=2,aC=1,lC=10,uC=-2,uv=e=>e==="*";function cC(e,t){let n=e.split("/"),s=n.length;return n.some(uv)&&(s+=uC),t&&(s+=oC),n.filter(o=>!uv(o)).reduce((o,a)=>o+(sC.test(a)?iC:a===""?aC:lC),s)}function dC(e,t){return e.length===t.length&&e.slice(0,-1).every((s,o)=>s===t[o])?e[e.length-1]-t[t.length-1]:0}function fC(e,t,n=!1){let{routesMeta:s}=e,o={},a="/",u=[];for(let c=0;c<s.length;++c){let f=s[c],h=c===s.length-1,m=a==="/"?t:t.slice(a.length)||"/",g=lc({path:f.relativePath,caseSensitive:f.caseSensitive,end:h},m),v=f.route;if(!g&&h&&n&&!s[s.length-1].route.index&&(g=lc({path:f.relativePath,caseSensitive:f.caseSensitive,end:!1},m)),!g)return null;Object.assign(o,g.params),u.push({params:o,pathname:Ir([a,g.pathname]),pathnameBase:yC(Ir([a,g.pathnameBase])),route:v}),g.pathnameBase!=="/"&&(a=Ir([a,g.pathnameBase]))}return u}function lc(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,s]=hC(e.path,e.caseSensitive,e.end),o=t.match(n);if(!o)return null;let a=o[0],u=a.replace(/(.)\/+$/,"$1"),c=o.slice(1);return{params:s.reduce((h,{paramName:m,isOptional:g},v)=>{if(m==="*"){let w=c[v]||"";u=a.slice(0,a.length-w.length).replace(/(.)\/+$/,"$1")}const b=c[v];return g&&!b?h[m]=void 0:h[m]=(b||"").replace(/%2F/g,"/"),h},{}),pathname:a,pathnameBase:u,pattern:e}}function hC(e,t=!1,n=!0){sn(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let s=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(u,c,f)=>(s.push({paramName:c,isOptional:f!=null}),f?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(s.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),s]}function pC(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return sn(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function br(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,s=e.charAt(n);return s&&s!=="/"?null:e.slice(n)||"/"}function mC(e,t="/"){let{pathname:n,search:s="",hash:o=""}=typeof e=="string"?ti(e):e;return{pathname:n?n.startsWith("/")?n:gC(n,t):t,search:vC(s),hash:xC(o)}}function gC(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function $f(e,t,n,s){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(s)}]. 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 $0(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function cp(e){let t=$0(e);return t.map((n,s)=>s===t.length-1?n.pathname:n.pathnameBase)}function dp(e,t,n,s=!1){let o;typeof e=="string"?o=ti(e):(o={...e},ot(!o.pathname||!o.pathname.includes("?"),$f("?","pathname","search",o)),ot(!o.pathname||!o.pathname.includes("#"),$f("#","pathname","hash",o)),ot(!o.search||!o.search.includes("#"),$f("#","search","hash",o)));let a=e===""||o.pathname==="",u=a?"/":o.pathname,c;if(u==null)c=n;else{let g=t.length-1;if(!s&&u.startsWith("..")){let v=u.split("/");for(;v[0]==="..";)v.shift(),g-=1;o.pathname=v.join("/")}c=g>=0?t[g]:"/"}let f=mC(o,c),h=u&&u!=="/"&&u.endsWith("/"),m=(a||u===".")&&n.endsWith("/");return!f.pathname.endsWith("/")&&(h||m)&&(f.pathname+="/"),f}var Ir=e=>e.join("/").replace(/\/\/+/g,"/"),yC=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),vC=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,xC=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,uc=class{constructor(e,t,n,s=!1){this.status=e,this.statusText=t||"",this.internal=s,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function Ac(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}var W0=["POST","PUT","PATCH","DELETE"],wC=new Set(W0),SC=["GET",...W0],bC=new Set(SC),_C=new Set([301,302,303,307,308]),EC=new Set([307,308]),Wf={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},CC={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},wa={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},fp=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,kC=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),H0="remix-router-transitions",G0=Symbol("ResetLoaderData");function TC(e){const t=e.window?e.window:typeof window<"u"?window:void 0,n=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u";ot(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let s=e.mapRouteProperties||kC,o={},a=ac(e.routes,s,void 0,o),u,c=e.basename||"/",f=e.dataStrategy||jC,h=e.patchRoutesOnNavigation,m={...e.future},g=null,v=new Set,b=null,w=null,S=null,C=e.hydrationData!=null,E=Hs(a,e.history.location,c),R=null;if(E==null&&!h){let D=sr(404,{pathname:e.history.location.pathname}),{matches:V,route:G}=wv(a);E=V,R={[G.id]:D}}E&&!e.hydrationData&&Pr(E,a,e.history.location.pathname).active&&(E=null);let N;if(E)if(E.some(D=>D.route.lazy))N=!1;else if(!E.some(D=>D.route.loader))N=!0;else{let D=e.hydrationData?e.hydrationData.loaderData:null,V=e.hydrationData?e.hydrationData.errors:null;if(V){let G=E.findIndex(J=>V[J.route.id]!==void 0);N=E.slice(0,G+1).every(J=>!Eh(J.route,D,V))}else N=E.every(G=>!Eh(G.route,D,V))}else{N=!1,E=[];let D=Pr(null,a,e.history.location.pathname);D.active&&D.matches&&(E=D.matches)}let I,T={historyAction:e.history.action,location:e.history.location,matches:E,initialized:N,navigation:Wf,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||R,fetchers:new Map,blockers:new Map},F="POP",z=!1,O,q=!1,te=new Map,pe=null,X=!1,de=!1,ke=new Set,we=new Map,De=0,me=-1,Y=new Map,ue=new Set,ie=new Map,L=new Map,K=new Set,Le=new Map,Oe,Be=null;function We(){if(g=e.history.listen(({action:D,location:V,delta:G})=>{if(Oe){Oe(),Oe=void 0;return}sn(Le.size===0||G!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let J=gs({currentLocation:T.location,nextLocation:V,historyAction:D});if(J&&G!=null){let ge=new Promise(Ne=>{Oe=Ne});e.history.go(G*-1),Rr(J,{state:"blocked",location:V,proceed(){Rr(J,{state:"proceeding",proceed:void 0,reset:void 0,location:V}),ge.then(()=>e.history.go(G))},reset(){let Ne=new Map(T.blockers);Ne.set(J,wa),Me({blockers:Ne})}});return}return Xe(D,V)}),n){$C(t,te);let D=()=>WC(t,te);t.addEventListener("pagehide",D),pe=()=>t.removeEventListener("pagehide",D)}return T.initialized||Xe("POP",T.location,{initialHydration:!0}),I}function be(){g&&g(),pe&&pe(),v.clear(),O&&O.abort(),T.fetchers.forEach((D,V)=>Wt(V)),T.blockers.forEach((D,V)=>Gr(V))}function Pe(D){return v.add(D),()=>v.delete(D)}function Me(D,V={}){T={...T,...D};let G=[],J=[];T.fetchers.forEach((ge,Ne)=>{ge.state==="idle"&&(K.has(Ne)?G.push(Ne):J.push(Ne))}),K.forEach(ge=>{!T.fetchers.has(ge)&&!we.has(ge)&&G.push(ge)}),[...v].forEach(ge=>ge(T,{deletedFetchers:G,viewTransitionOpts:V.viewTransitionOpts,flushSync:V.flushSync===!0})),G.forEach(ge=>Wt(ge)),J.forEach(ge=>T.fetchers.delete(ge))}function rt(D,V,{flushSync:G}={}){var fe,Ze;let J=T.actionData!=null&&T.navigation.formMethod!=null&&yr(T.navigation.formMethod)&&T.navigation.state==="loading"&&((fe=D.state)==null?void 0:fe._isRedirect)!==!0,ge;V.actionData?Object.keys(V.actionData).length>0?ge=V.actionData:ge=null:J?ge=T.actionData:ge=null;let Ne=V.loaderData?vv(T.loaderData,V.loaderData,V.matches||[],V.errors):T.loaderData,Ge=T.blockers;Ge.size>0&&(Ge=new Map(Ge),Ge.forEach((tt,xt)=>Ge.set(xt,wa)));let xe=z===!0||T.navigation.formMethod!=null&&yr(T.navigation.formMethod)&&((Ze=D.state)==null?void 0:Ze._isRedirect)!==!0;u&&(a=u,u=void 0),X||F==="POP"||(F==="PUSH"?e.history.push(D,D.state):F==="REPLACE"&&e.history.replace(D,D.state));let Ce;if(F==="POP"){let tt=te.get(T.location.pathname);tt&&tt.has(D.pathname)?Ce={currentLocation:T.location,nextLocation:D}:te.has(D.pathname)&&(Ce={currentLocation:D,nextLocation:T.location})}else if(q){let tt=te.get(T.location.pathname);tt?tt.add(D.pathname):(tt=new Set([D.pathname]),te.set(T.location.pathname,tt)),Ce={currentLocation:T.location,nextLocation:D}}Me({...V,actionData:ge,loaderData:Ne,historyAction:F,location:D,initialized:!0,navigation:Wf,revalidation:"idle",restoreScrollPosition:Kn(D,V.matches||T.matches),preventScrollReset:xe,blockers:Ge},{viewTransitionOpts:Ce,flushSync:G===!0}),F="POP",z=!1,q=!1,X=!1,de=!1,Be==null||Be.resolve(),Be=null}async function at(D,V){if(typeof D=="number"){e.history.go(D);return}let G=_h(T.location,T.matches,c,D,V==null?void 0:V.fromRouteId,V==null?void 0:V.relative),{path:J,submission:ge,error:Ne}=cv(!1,G,V),Ge=T.location,xe=Wa(T.location,J,V&&V.state);xe={...xe,...e.history.encodeLocation(xe)};let Ce=V&&V.replace!=null?V.replace:void 0,fe="PUSH";Ce===!0?fe="REPLACE":Ce===!1||ge!=null&&yr(ge.formMethod)&&ge.formAction===T.location.pathname+T.location.search&&(fe="REPLACE");let Ze=V&&"preventScrollReset"in V?V.preventScrollReset===!0:void 0,tt=(V&&V.flushSync)===!0,xt=gs({currentLocation:Ge,nextLocation:xe,historyAction:fe});if(xt){Rr(xt,{state:"blocked",location:xe,proceed(){Rr(xt,{state:"proceeding",proceed:void 0,reset:void 0,location:xe}),at(D,V)},reset(){let Ht=new Map(T.blockers);Ht.set(xt,wa),Me({blockers:Ht})}});return}await Xe(fe,xe,{submission:ge,pendingError:Ne,preventScrollReset:Ze,replace:V&&V.replace,enableViewTransition:V&&V.viewTransition,flushSync:tt})}function Ee(){Be||(Be=HC()),Re(),Me({revalidation:"loading"});let D=Be.promise;return T.navigation.state==="submitting"?D:T.navigation.state==="idle"?(Xe(T.historyAction,T.location,{startUninterruptedRevalidation:!0}),D):(Xe(F||T.historyAction,T.navigation.location,{overrideNavigation:T.navigation,enableViewTransition:q===!0}),D)}async function Xe(D,V,G){O&&O.abort(),O=null,F=D,X=(G&&G.startUninterruptedRevalidation)===!0,ar(T.location,T.matches),z=(G&&G.preventScrollReset)===!0,q=(G&&G.enableViewTransition)===!0;let J=u||a,ge=G&&G.overrideNavigation,Ne=Hs(J,V,c),Ge=(G&&G.flushSync)===!0,xe=Pr(Ne,J,V.pathname);if(xe.active&&xe.matches&&(Ne=xe.matches),!Ne){let{error:ft,notFoundMatches:vt,route:Mt}=Zr(V.pathname);rt(V,{matches:vt,loaderData:{},errors:{[Mt.id]:ft}},{flushSync:Ge});return}if(T.initialized&&!de&&IC(T.location,V)&&!(G&&G.submission&&yr(G.submission.formMethod))){rt(V,{matches:Ne},{flushSync:Ge});return}O=new AbortController;let Ce=ho(e.history,V,O.signal,G&&G.submission),fe;if(G&&G.pendingError)fe=[Si(Ne).route.id,{type:"error",error:G.pendingError}];else if(G&&G.submission&&yr(G.submission.formMethod)){let ft=await mt(Ce,V,G.submission,Ne,xe.active,{replace:G.replace,flushSync:Ge});if(ft.shortCircuited)return;if(ft.pendingActionResult){let[vt,Mt]=ft.pendingActionResult;if(Wn(Mt)&&Ac(Mt.error)&&Mt.error.status===404){O=null,rt(V,{matches:ft.matches,loaderData:{},errors:{[vt]:Mt.error}});return}}Ne=ft.matches||Ne,fe=ft.pendingActionResult,ge=Hf(V,G.submission),Ge=!1,xe.active=!1,Ce=ho(e.history,Ce.url,Ce.signal)}let{shortCircuited:Ze,matches:tt,loaderData:xt,errors:Ht}=await It(Ce,V,Ne,xe.active,ge,G&&G.submission,G&&G.fetcherSubmission,G&&G.replace,G&&G.initialHydration===!0,Ge,fe);Ze||(O=null,rt(V,{matches:tt||Ne,...xv(fe),loaderData:xt,errors:Ht}))}async function mt(D,V,G,J,ge,Ne={}){Re();let Ge=zC(V,G);if(Me({navigation:Ge},{flushSync:Ne.flushSync===!0}),ge){let fe=await Kr(J,V.pathname,D.signal);if(fe.type==="aborted")return{shortCircuited:!0};if(fe.type==="error"){let Ze=Si(fe.partialMatches).route.id;return{matches:fe.partialMatches,pendingActionResult:[Ze,{type:"error",error:fe.error}]}}else if(fe.matches)J=fe.matches;else{let{notFoundMatches:Ze,error:tt,route:xt}=Zr(V.pathname);return{matches:Ze,pendingActionResult:[xt.id,{type:"error",error:tt}]}}}let xe,Ce=Pa(J,V);if(!Ce.route.action&&!Ce.route.lazy)xe={type:"error",error:sr(405,{method:D.method,pathname:V.pathname,routeId:Ce.route.id})};else if(xe=(await ae("action",T,D,[Ce],J,null))[Ce.route.id],D.signal.aborted)return{shortCircuited:!0};if(bi(xe)){let fe;return Ne&&Ne.replace!=null?fe=Ne.replace:fe=mv(xe.response.headers.get("Location"),new URL(D.url),c)===T.location.pathname+T.location.search,await oe(D,xe,!0,{submission:G,replace:fe}),{shortCircuited:!0}}if(Wn(xe)){let fe=Si(J,Ce.route.id);return(Ne&&Ne.replace)!==!0&&(F="PUSH"),{matches:J,pendingActionResult:[fe.route.id,xe]}}return{matches:J,pendingActionResult:[Ce.route.id,xe]}}async function It(D,V,G,J,ge,Ne,Ge,xe,Ce,fe,Ze){let tt=ge||Hf(V,Ne),xt=Ne||Ge||bv(tt),Ht=!X&&!Ce;if(J){if(Ht){let Gt=en(Ze);Me({navigation:tt,...Gt!==void 0?{actionData:Gt}:{}},{flushSync:fe})}let ht=await Kr(G,V.pathname,D.signal);if(ht.type==="aborted")return{shortCircuited:!0};if(ht.type==="error"){let Gt=Si(ht.partialMatches).route.id;return{matches:ht.partialMatches,loaderData:{},errors:{[Gt]:ht.error}}}else if(ht.matches)G=ht.matches;else{let{error:Gt,notFoundMatches:Yr,route:ii}=Zr(V.pathname);return{matches:Yr,loaderData:{},errors:{[ii.id]:Gt}}}}let ft=u||a,[vt,Mt]=fv(e.history,T,G,xt,V,Ce===!0,de,ke,K,ie,ue,ft,c,Ze);if(me=++De,vt.length===0&&Mt.length===0){let ht=Tr();return rt(V,{matches:G,loaderData:{},errors:Ze&&Wn(Ze[1])?{[Ze[0]]:Ze[1].error}:null,...xv(Ze),...ht?{fetchers:new Map(T.fetchers)}:{}},{flushSync:fe}),{shortCircuited:!0}}if(Ht){let ht={};if(!J){ht.navigation=tt;let Gt=en(Ze);Gt!==void 0&&(ht.actionData=Gt)}Mt.length>0&&(ht.fetchers=an(Mt)),Me(ht,{flushSync:fe})}Mt.forEach(ht=>{bt(ht.key),ht.controller&&we.set(ht.key,ht.controller)});let xs=()=>Mt.forEach(ht=>bt(ht.key));O&&O.signal.addEventListener("abort",xs);let{loaderResults:ws,fetcherResults:qn}=await se(T,G,vt,Mt,D);if(D.signal.aborted)return{shortCircuited:!0};O&&O.signal.removeEventListener("abort",xs),Mt.forEach(ht=>we.delete(ht.key));let In=Fu(ws);if(In)return await oe(D,In.result,!0,{replace:xe}),{shortCircuited:!0};if(In=Fu(qn),In)return ue.add(In.key),await oe(D,In.result,!0,{replace:xe}),{shortCircuited:!0};let{loaderData:Ui,errors:si}=yv(T,G,ws,Ze,Mt,qn);Ce&&T.errors&&(si={...T.errors,...si});let qr=Tr(),wt=Fn(me),$i=qr||wt||Mt.length>0;return{matches:G,loaderData:Ui,errors:si,...$i?{fetchers:new Map(T.fetchers)}:{}}}function en(D){if(D&&!Wn(D[1]))return{[D[0]]:D[1].data};if(T.actionData)return Object.keys(T.actionData).length===0?null:T.actionData}function an(D){return D.forEach(V=>{let G=T.fetchers.get(V.key),J=Sa(void 0,G?G.data:void 0);T.fetchers.set(V.key,J)}),new Map(T.fetchers)}async function A(D,V,G,J){bt(D);let ge=(J&&J.flushSync)===!0,Ne=u||a,Ge=_h(T.location,T.matches,c,G,V,J==null?void 0:J.relative),xe=Hs(Ne,Ge,c),Ce=Pr(xe,Ne,Ge);if(Ce.active&&Ce.matches&&(xe=Ce.matches),!xe){ut(D,V,sr(404,{pathname:Ge}),{flushSync:ge});return}let{path:fe,submission:Ze,error:tt}=cv(!0,Ge,J);if(tt){ut(D,V,tt,{flushSync:ge});return}let xt=Pa(xe,fe),Ht=(J&&J.preventScrollReset)===!0;if(Ze&&yr(Ze.formMethod)){await U(D,V,fe,xt,xe,Ce.active,ge,Ht,Ze);return}ie.set(D,{routeId:V,path:fe}),await H(D,V,fe,xt,xe,Ce.active,ge,Ht,Ze)}async function U(D,V,G,J,ge,Ne,Ge,xe,Ce){Re(),ie.delete(D);function fe(Rt){if(!Rt.route.action&&!Rt.route.lazy){let lr=sr(405,{method:Ce.formMethod,pathname:G,routeId:V});return ut(D,V,lr,{flushSync:Ge}),!0}return!1}if(!Ne&&fe(J))return;let Ze=T.fetchers.get(D);Fe(D,UC(Ce,Ze),{flushSync:Ge});let tt=new AbortController,xt=ho(e.history,G,tt.signal,Ce);if(Ne){let Rt=await Kr(ge,G,xt.signal);if(Rt.type==="aborted")return;if(Rt.type==="error"){ut(D,V,Rt.error,{flushSync:Ge});return}else if(Rt.matches){if(ge=Rt.matches,J=Pa(ge,G),fe(J))return}else{ut(D,V,sr(404,{pathname:G}),{flushSync:Ge});return}}we.set(D,tt);let Ht=De,vt=(await ae("action",T,xt,[J],ge,D))[J.route.id];if(xt.signal.aborted){we.get(D)===tt&&we.delete(D);return}if(K.has(D)){if(bi(vt)||Wn(vt)){Fe(D,Us(void 0));return}}else{if(bi(vt))if(we.delete(D),me>Ht){Fe(D,Us(void 0));return}else return ue.add(D),Fe(D,Sa(Ce)),oe(xt,vt,!1,{fetcherSubmission:Ce,preventScrollReset:xe});if(Wn(vt)){ut(D,V,vt.error);return}}let Mt=T.navigation.location||T.location,xs=ho(e.history,Mt,tt.signal),ws=u||a,qn=T.navigation.state!=="idle"?Hs(ws,T.navigation.location,c):T.matches;ot(qn,"Didn't find any matches after fetcher action");let In=++De;Y.set(D,In);let Ui=Sa(Ce,vt.data);T.fetchers.set(D,Ui);let[si,qr]=fv(e.history,T,qn,Ce,Mt,!1,de,ke,K,ie,ue,ws,c,[J.route.id,vt]);qr.filter(Rt=>Rt.key!==D).forEach(Rt=>{let lr=Rt.key,Vn=T.fetchers.get(lr),rd=Sa(void 0,Vn?Vn.data:void 0);T.fetchers.set(lr,rd),bt(lr),Rt.controller&&we.set(lr,Rt.controller)}),Me({fetchers:new Map(T.fetchers)});let wt=()=>qr.forEach(Rt=>bt(Rt.key));tt.signal.addEventListener("abort",wt);let{loaderResults:$i,fetcherResults:ht}=await se(T,qn,si,qr,xs);if(tt.signal.aborted)return;tt.signal.removeEventListener("abort",wt),Y.delete(D),we.delete(D),qr.forEach(Rt=>we.delete(Rt.key));let Gt=Fu($i);if(Gt)return oe(xs,Gt.result,!1,{preventScrollReset:xe});if(Gt=Fu(ht),Gt)return ue.add(Gt.key),oe(xs,Gt.result,!1,{preventScrollReset:xe});let{loaderData:Yr,errors:ii}=yv(T,qn,$i,void 0,qr,ht);if(T.fetchers.has(D)){let Rt=Us(vt.data);T.fetchers.set(D,Rt)}Fn(In),T.navigation.state==="loading"&&In>me?(ot(F,"Expected pending action"),O&&O.abort(),rt(T.navigation.location,{matches:qn,loaderData:Yr,errors:ii,fetchers:new Map(T.fetchers)})):(Me({errors:ii,loaderData:vv(T.loaderData,Yr,qn,ii),fetchers:new Map(T.fetchers)}),de=!1)}async function H(D,V,G,J,ge,Ne,Ge,xe,Ce){let fe=T.fetchers.get(D);Fe(D,Sa(Ce,fe?fe.data:void 0),{flushSync:Ge});let Ze=new AbortController,tt=ho(e.history,G,Ze.signal);if(Ne){let vt=await Kr(ge,G,tt.signal);if(vt.type==="aborted")return;if(vt.type==="error"){ut(D,V,vt.error,{flushSync:Ge});return}else if(vt.matches)ge=vt.matches,J=Pa(ge,G);else{ut(D,V,sr(404,{pathname:G}),{flushSync:Ge});return}}we.set(D,Ze);let xt=De,ft=(await ae("loader",T,tt,[J],ge,D))[J.route.id];if(we.get(D)===Ze&&we.delete(D),!tt.signal.aborted){if(K.has(D)){Fe(D,Us(void 0));return}if(bi(ft))if(me>xt){Fe(D,Us(void 0));return}else{ue.add(D),await oe(tt,ft,!1,{preventScrollReset:xe});return}if(Wn(ft)){ut(D,V,ft.error);return}Fe(D,Us(ft.data))}}async function oe(D,V,G,{submission:J,fetcherSubmission:ge,preventScrollReset:Ne,replace:Ge}={}){V.response.headers.has("X-Remix-Revalidate")&&(de=!0);let xe=V.response.headers.get("Location");ot(xe,"Expected a Location header on the redirect Response"),xe=mv(xe,new URL(D.url),c);let Ce=Wa(T.location,xe,{_isRedirect:!0});if(n){let ft=!1;if(V.response.headers.has("X-Remix-Reload-Document"))ft=!0;else if(fp.test(xe)){const vt=e.history.createURL(xe);ft=vt.origin!==t.location.origin||br(vt.pathname,c)==null}if(ft){Ge?t.location.replace(xe):t.location.assign(xe);return}}O=null;let fe=Ge===!0||V.response.headers.has("X-Remix-Replace")?"REPLACE":"PUSH",{formMethod:Ze,formAction:tt,formEncType:xt}=T.navigation;!J&&!ge&&Ze&&tt&&xt&&(J=bv(T.navigation));let Ht=J||ge;if(EC.has(V.response.status)&&Ht&&yr(Ht.formMethod))await Xe(fe,Ce,{submission:{...Ht,formAction:xe},preventScrollReset:Ne||z,enableViewTransition:G?q:void 0});else{let ft=Hf(Ce,J);await Xe(fe,Ce,{overrideNavigation:ft,fetcherSubmission:ge,preventScrollReset:Ne||z,enableViewTransition:G?q:void 0})}}async function ae(D,V,G,J,ge,Ne){let Ge,xe={};try{Ge=await DC(f,D,V,G,J,ge,Ne,o,s)}catch(Ce){return J.forEach(fe=>{xe[fe.route.id]={type:"error",error:Ce}}),xe}for(let[Ce,fe]of Object.entries(Ge))if(VC(fe)){let Ze=fe.result;xe[Ce]={type:"redirect",response:OC(Ze,G,Ce,ge,c)}}else xe[Ce]=await MC(fe);return xe}async function se(D,V,G,J,ge){let Ne=ae("loader",D,ge,G,V,null),Ge=Promise.all(J.map(async fe=>{if(fe.matches&&fe.match&&fe.controller){let tt=(await ae("loader",D,ho(e.history,fe.path,fe.controller.signal),[fe.match],fe.matches,fe.key))[fe.match.route.id];return{[fe.key]:tt}}else return Promise.resolve({[fe.key]:{type:"error",error:sr(404,{pathname:fe.path})}})})),xe=await Ne,Ce=(await Ge).reduce((fe,Ze)=>Object.assign(fe,Ze),{});return{loaderResults:xe,fetcherResults:Ce}}function Re(){de=!0,ie.forEach((D,V)=>{we.has(V)&&ke.add(V),bt(V)})}function Fe(D,V,G={}){T.fetchers.set(D,V),Me({fetchers:new Map(T.fetchers)},{flushSync:(G&&G.flushSync)===!0})}function ut(D,V,G,J={}){let ge=Si(T.matches,V);Wt(D),Me({errors:{[ge.route.id]:G},fetchers:new Map(T.fetchers)},{flushSync:(J&&J.flushSync)===!0})}function yt(D){return L.set(D,(L.get(D)||0)+1),K.has(D)&&K.delete(D),T.fetchers.get(D)||CC}function Wt(D){let V=T.fetchers.get(D);we.has(D)&&!(V&&V.state==="loading"&&Y.has(D))&&bt(D),ie.delete(D),Y.delete(D),ue.delete(D),K.delete(D),ke.delete(D),T.fetchers.delete(D)}function kr(D){let V=(L.get(D)||0)-1;V<=0?(L.delete(D),K.add(D)):L.set(D,V),Me({fetchers:new Map(T.fetchers)})}function bt(D){let V=we.get(D);V&&(V.abort(),we.delete(D))}function ln(D){for(let V of D){let G=yt(V),J=Us(G.data);T.fetchers.set(V,J)}}function Tr(){let D=[],V=!1;for(let G of ue){let J=T.fetchers.get(G);ot(J,`Expected fetcher: ${G}`),J.state==="loading"&&(ue.delete(G),D.push(G),V=!0)}return ln(D),V}function Fn(D){let V=[];for(let[G,J]of Y)if(J<D){let ge=T.fetchers.get(G);ot(ge,`Expected fetcher: ${G}`),ge.state==="loading"&&(bt(G),Y.delete(G),V.push(G))}return ln(V),V.length>0}function ms(D,V){let G=T.blockers.get(D)||wa;return Le.get(D)!==V&&Le.set(D,V),G}function Gr(D){T.blockers.delete(D),Le.delete(D)}function Rr(D,V){let G=T.blockers.get(D)||wa;ot(G.state==="unblocked"&&V.state==="blocked"||G.state==="blocked"&&V.state==="blocked"||G.state==="blocked"&&V.state==="proceeding"||G.state==="blocked"&&V.state==="unblocked"||G.state==="proceeding"&&V.state==="unblocked",`Invalid blocker state transition: ${G.state} -> ${V.state}`);let J=new Map(T.blockers);J.set(D,V),Me({blockers:J})}function gs({currentLocation:D,nextLocation:V,historyAction:G}){if(Le.size===0)return;Le.size>1&&sn(!1,"A router only supports one blocker at a time");let J=Array.from(Le.entries()),[ge,Ne]=J[J.length-1],Ge=T.blockers.get(ge);if(!(Ge&&Ge.state==="proceeding")&&Ne({currentLocation:D,nextLocation:V,historyAction:G}))return ge}function Zr(D){let V=sr(404,{pathname:D}),G=u||a,{matches:J,route:ge}=wv(G);return{notFoundMatches:J,route:ge,error:V}}function ys(D,V,G){if(b=D,S=V,w=G||null,!C&&T.navigation===Wf){C=!0;let J=Kn(T.location,T.matches);J!=null&&Me({restoreScrollPosition:J})}return()=>{b=null,S=null,w=null}}function vs(D,V){return w&&w(D,V.map(J=>nC(J,T.loaderData)))||D.key}function ar(D,V){if(b&&S){let G=vs(D,V);b[G]=S()}}function Kn(D,V){if(b){let G=vs(D,V),J=b[G];if(typeof J=="number")return J}return null}function Pr(D,V,G){if(h)if(D){if(Object.keys(D[0].params).length>0)return{active:!0,matches:Ku(V,G,c,!0)}}else return{active:!0,matches:Ku(V,G,c,!0)||[]};return{active:!1,matches:null}}async function Kr(D,V,G){if(!h)return{type:"success",matches:D};let J=D;for(;;){let ge=u==null,Ne=u||a,Ge=o;try{await h({path:V,matches:J,patch:(fe,Ze)=>{G.aborted||pv(fe,Ze,Ne,Ge,s)}})}catch(fe){return{type:"error",error:fe,partialMatches:J}}finally{ge&&!G.aborted&&(a=[...a])}if(G.aborted)return{type:"aborted"};let xe=Hs(Ne,V,c);if(xe)return{type:"success",matches:xe};let Ce=Ku(Ne,V,c,!0);if(!Ce||J.length===Ce.length&&J.every((fe,Ze)=>fe.route.id===Ce[Ze].route.id))return{type:"success",matches:null};J=Ce}}function ri(D){o={},u=ac(D,s,void 0,o)}function zi(D,V){let G=u==null;pv(D,V,u||a,o,s),G&&(a=[...a],Me({}))}return I={get basename(){return c},get future(){return m},get state(){return T},get routes(){return a},get window(){return t},initialize:We,subscribe:Pe,enableScrollRestoration:ys,navigate:at,fetch:A,revalidate:Ee,createHref:D=>e.history.createHref(D),encodeLocation:D=>e.history.encodeLocation(D),getFetcher:yt,deleteFetcher:kr,dispose:be,getBlocker:ms,deleteBlocker:Gr,patchRoutes:zi,_internalFetchControllers:we,_internalSetRoutes:ri},I}function RC(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function _h(e,t,n,s,o,a){let u,c;if(o){u=[];for(let h of t)if(u.push(h),h.route.id===o){c=h;break}}else u=t,c=t[t.length-1];let f=dp(s||".",cp(u),br(e.pathname,n)||e.pathname,a==="path");if(s==null&&(f.search=e.search,f.hash=e.hash),(s==null||s===""||s===".")&&c){let h=hp(f.search);if(c.route.index&&!h)f.search=f.search?f.search.replace(/^\?/,"?index&"):"?index";else if(!c.route.index&&h){let m=new URLSearchParams(f.search),g=m.getAll("index");m.delete("index"),g.filter(b=>b).forEach(b=>m.append("index",b));let v=m.toString();f.search=v?`?${v}`:""}}return n!=="/"&&(f.pathname=f.pathname==="/"?n:Ir([n,f.pathname])),Zs(f)}function cv(e,t,n){if(!n||!RC(n))return{path:t};if(n.formMethod&&!BC(n.formMethod))return{path:t,error:sr(405,{method:n.formMethod})};let s=()=>({path:t,error:sr(400,{type:"invalid-body"})}),a=(n.formMethod||"get").toUpperCase(),u=K0(t);if(n.body!==void 0){if(n.formEncType==="text/plain"){if(!yr(a))return s();let g=typeof n.body=="string"?n.body:n.body instanceof FormData||n.body instanceof URLSearchParams?Array.from(n.body.entries()).reduce((v,[b,w])=>`${v}${b}=${w}
|
||
`,""):String(n.body);return{path:t,submission:{formMethod:a,formAction:u,formEncType:n.formEncType,formData:void 0,json:void 0,text:g}}}else if(n.formEncType==="application/json"){if(!yr(a))return s();try{let g=typeof n.body=="string"?JSON.parse(n.body):n.body;return{path:t,submission:{formMethod:a,formAction:u,formEncType:n.formEncType,formData:void 0,json:g,text:void 0}}}catch{return s()}}}ot(typeof FormData=="function","FormData is not available in this environment");let c,f;if(n.formData)c=Ch(n.formData),f=n.formData;else if(n.body instanceof FormData)c=Ch(n.body),f=n.body;else if(n.body instanceof URLSearchParams)c=n.body,f=gv(c);else if(n.body==null)c=new URLSearchParams,f=new FormData;else try{c=new URLSearchParams(n.body),f=gv(c)}catch{return s()}let h={formMethod:a,formAction:u,formEncType:n&&n.formEncType||"application/x-www-form-urlencoded",formData:f,json:void 0,text:void 0};if(yr(h.formMethod))return{path:t,submission:h};let m=ti(t);return e&&m.search&&hp(m.search)&&c.append("index",""),m.search=`?${c}`,{path:Zs(m),submission:h}}function dv(e,t,n=!1){let s=e.findIndex(o=>o.route.id===t);return s>=0?e.slice(0,n?s+1:s):e}function fv(e,t,n,s,o,a,u,c,f,h,m,g,v,b){let w=b?Wn(b[1])?b[1].error:b[1].data:void 0,S=e.createURL(t.location),C=e.createURL(o),E=n;a&&t.errors?E=dv(n,Object.keys(t.errors)[0],!0):b&&Wn(b[1])&&(E=dv(n,b[0]));let R=b?b[1].statusCode:void 0,N=R&&R>=400,I=E.filter((F,z)=>{let{route:O}=F;if(O.lazy)return!0;if(O.loader==null)return!1;if(a)return Eh(O,t.loaderData,t.errors);if(PC(t.loaderData,t.matches[z],F))return!0;let q=t.matches[z],te=F;return hv(F,{currentUrl:S,currentParams:q.params,nextUrl:C,nextParams:te.params,...s,actionResult:w,actionStatus:R,defaultShouldRevalidate:N?!1:u||S.pathname+S.search===C.pathname+C.search||S.search!==C.search||NC(q,te)})}),T=[];return h.forEach((F,z)=>{if(a||!n.some(X=>X.route.id===F.routeId)||f.has(z))return;let O=Hs(g,F.path,v);if(!O){T.push({key:z,routeId:F.routeId,path:F.path,matches:null,match:null,controller:null});return}let q=t.fetchers.get(z),te=Pa(O,F.path),pe=!1;m.has(z)?pe=!1:c.has(z)?(c.delete(z),pe=!0):q&&q.state!=="idle"&&q.data===void 0?pe=u:pe=hv(te,{currentUrl:S,currentParams:t.matches[t.matches.length-1].params,nextUrl:C,nextParams:n[n.length-1].params,...s,actionResult:w,actionStatus:R,defaultShouldRevalidate:N?!1:u}),pe&&T.push({key:z,routeId:F.routeId,path:F.path,matches:O,match:te,controller:new AbortController})}),[I,T]}function Eh(e,t,n){if(e.lazy)return!0;if(!e.loader)return!1;let s=t!=null&&t[e.id]!==void 0,o=n!=null&&n[e.id]!==void 0;return!s&&o?!1:typeof e.loader=="function"&&e.loader.hydrate===!0?!0:!s&&!o}function PC(e,t,n){let s=!t||n.route.id!==t.route.id,o=!e.hasOwnProperty(n.route.id);return s||o}function NC(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function hv(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}function pv(e,t,n,s,o){let a;if(e){let f=s[e];ot(f,`No route found to patch children into: routeId = ${e}`),f.children||(f.children=[]),a=f.children}else a=n;let u=t.filter(f=>!a.some(h=>Z0(f,h))),c=ac(u,o,[e||"_","patch",String((a==null?void 0:a.length)||"0")],s);a.push(...c)}function Z0(e,t){return"id"in e&&"id"in t&&e.id===t.id?!0:e.index===t.index&&e.path===t.path&&e.caseSensitive===t.caseSensitive?(!e.children||e.children.length===0)&&(!t.children||t.children.length===0)?!0:e.children.every((n,s)=>{var o;return(o=t.children)==null?void 0:o.some(a=>Z0(n,a))}):!1}async function AC(e,t,n){if(!e.lazy)return;let s=await e.lazy();if(!e.lazy)return;let o=n[e.id];ot(o,"No route found in manifest");let a={};for(let u in s){let f=o[u]!==void 0&&u!=="hasErrorBoundary";sn(!f,`Route "${o.id}" has a static property "${u}" defined but its lazy function is also returning a value for this property. The lazy route property "${u}" will be ignored.`),!f&&!eC.has(u)&&(a[u]=s[u])}Object.assign(o,a),Object.assign(o,{...t(o),lazy:void 0})}async function jC({matches:e}){let t=e.filter(s=>s.shouldLoad);return(await Promise.all(t.map(s=>s.resolve()))).reduce((s,o,a)=>Object.assign(s,{[t[a].route.id]:o}),{})}async function DC(e,t,n,s,o,a,u,c,f,h){let m=a.map(b=>b.route.lazy?AC(b.route,f,c):void 0),g=a.map((b,w)=>{let S=m[w],C=o.some(R=>R.route.id===b.route.id);return{...b,shouldLoad:C,resolve:async R=>(R&&s.method==="GET"&&(b.route.lazy||b.route.loader)&&(C=!0),C?LC(t,s,b,S,R,h):Promise.resolve({type:"data",result:void 0}))}}),v=await e({matches:g,request:s,params:a[0].params,fetcherKey:u,context:h});try{await Promise.all(m)}catch{}return v}async function LC(e,t,n,s,o,a){let u,c,f=h=>{let m,g=new Promise((w,S)=>m=S);c=()=>m(),t.signal.addEventListener("abort",c);let v=w=>typeof h!="function"?Promise.reject(new Error(`You cannot call the handler for a route which defines a boolean "${e}" [routeId: ${n.route.id}]`)):h({request:t,params:n.params,context:a},...w!==void 0?[w]:[]),b=(async()=>{try{return{type:"data",result:await(o?o(S=>v(S)):v())}}catch(w){return{type:"error",result:w}}})();return Promise.race([b,g])};try{let h=n.route[e];if(s)if(h){let m,[g]=await Promise.all([f(h).catch(v=>{m=v}),s]);if(m!==void 0)throw m;u=g}else if(await s,h=n.route[e],h)u=await f(h);else if(e==="action"){let m=new URL(t.url),g=m.pathname+m.search;throw sr(405,{method:t.method,pathname:g,routeId:n.route.id})}else return{type:"data",result:void 0};else if(h)u=await f(h);else{let m=new URL(t.url),g=m.pathname+m.search;throw sr(404,{pathname:g})}}catch(h){return{type:"error",result:h}}finally{c&&t.signal.removeEventListener("abort",c)}return u}async function MC(e){var s,o,a,u;let{result:t,type:n}=e;if(q0(t)){let c;try{let f=t.headers.get("Content-Type");f&&/\bapplication\/json\b/.test(f)?t.body==null?c=null:c=await t.json():c=await t.text()}catch(f){return{type:"error",error:f}}return n==="error"?{type:"error",error:new uc(t.status,t.statusText,c),statusCode:t.status,headers:t.headers}:{type:"data",data:c,statusCode:t.status,headers:t.headers}}if(n==="error"){if(Sv(t)){if(t.data instanceof Error)return{type:"error",error:t.data,statusCode:(s=t.init)==null?void 0:s.status};t=new uc(((o=t.init)==null?void 0:o.status)||500,void 0,t.data)}return{type:"error",error:t,statusCode:Ac(t)?t.status:void 0}}return Sv(t)?{type:"data",data:t.data,statusCode:(a=t.init)==null?void 0:a.status,headers:(u=t.init)!=null&&u.headers?new Headers(t.init.headers):void 0}:{type:"data",data:t}}function OC(e,t,n,s,o){let a=e.headers.get("Location");if(ot(a,"Redirects returned/thrown from loaders/actions must have a Location header"),!fp.test(a)){let u=s.slice(0,s.findIndex(c=>c.route.id===n)+1);a=_h(new URL(t.url),u,o,a),e.headers.set("Location",a)}return e}function mv(e,t,n){if(fp.test(e)){let s=e,o=s.startsWith("//")?new URL(t.protocol+s):new URL(s),a=br(o.pathname,n)!=null;if(o.origin===t.origin&&a)return o.pathname+o.search+o.hash}return e}function ho(e,t,n,s){let o=e.createURL(K0(t)).toString(),a={signal:n};if(s&&yr(s.formMethod)){let{formMethod:u,formEncType:c}=s;a.method=u.toUpperCase(),c==="application/json"?(a.headers=new Headers({"Content-Type":c}),a.body=JSON.stringify(s.json)):c==="text/plain"?a.body=s.text:c==="application/x-www-form-urlencoded"&&s.formData?a.body=Ch(s.formData):a.body=s.formData}return new Request(o,a)}function Ch(e){let t=new URLSearchParams;for(let[n,s]of e.entries())t.append(n,typeof s=="string"?s:s.name);return t}function gv(e){let t=new FormData;for(let[n,s]of e.entries())t.append(n,s);return t}function FC(e,t,n,s=!1,o=!1){let a={},u=null,c,f=!1,h={},m=n&&Wn(n[1])?n[1].error:void 0;return e.forEach(g=>{if(!(g.route.id in t))return;let v=g.route.id,b=t[v];if(ot(!bi(b),"Cannot handle redirect results in processLoaderData"),Wn(b)){let w=b.error;if(m!==void 0&&(w=m,m=void 0),u=u||{},o)u[v]=w;else{let S=Si(e,v);u[S.route.id]==null&&(u[S.route.id]=w)}s||(a[v]=G0),f||(f=!0,c=Ac(b.error)?b.error.status:500),b.headers&&(h[v]=b.headers)}else a[v]=b.data,b.statusCode&&b.statusCode!==200&&!f&&(c=b.statusCode),b.headers&&(h[v]=b.headers)}),m!==void 0&&n&&(u={[n[0]]:m},a[n[0]]=void 0),{loaderData:a,errors:u,statusCode:c||200,loaderHeaders:h}}function yv(e,t,n,s,o,a){let{loaderData:u,errors:c}=FC(t,n,s);return o.forEach(f=>{let{key:h,match:m,controller:g}=f,v=a[h];if(ot(v,"Did not find corresponding fetcher result"),!(g&&g.signal.aborted))if(Wn(v)){let b=Si(e.matches,m==null?void 0:m.route.id);c&&c[b.route.id]||(c={...c,[b.route.id]:v.error}),e.fetchers.delete(h)}else if(bi(v))ot(!1,"Unhandled fetcher revalidation redirect");else{let b=Us(v.data);e.fetchers.set(h,b)}}),{loaderData:u,errors:c}}function vv(e,t,n,s){let o=Object.entries(t).filter(([,a])=>a!==G0).reduce((a,[u,c])=>(a[u]=c,a),{});for(let a of n){let u=a.route.id;if(!t.hasOwnProperty(u)&&e.hasOwnProperty(u)&&a.route.loader&&(o[u]=e[u]),s&&s.hasOwnProperty(u))break}return o}function xv(e){return e?Wn(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function Si(e,t){return(t?e.slice(0,e.findIndex(s=>s.route.id===t)+1):[...e]).reverse().find(s=>s.route.hasErrorBoundary===!0)||e[0]}function wv(e){let t=e.length===1?e[0]:e.find(n=>n.index||!n.path||n.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function sr(e,{pathname:t,routeId:n,method:s,type:o,message:a}={}){let u="Unknown Server Error",c="Unknown @remix-run/router error";return e===400?(u="Bad Request",s&&t&&n?c=`You made a ${s} request to "${t}" but did not provide a \`loader\` for route "${n}", so there is no way to handle the request.`:o==="invalid-body"&&(c="Unable to encode submission body")):e===403?(u="Forbidden",c=`Route "${n}" does not match URL "${t}"`):e===404?(u="Not Found",c=`No route matches URL "${t}"`):e===405&&(u="Method Not Allowed",s&&t&&n?c=`You made a ${s.toUpperCase()} request to "${t}" but did not provide an \`action\` for route "${n}", so there is no way to handle the request.`:s&&(c=`Invalid request method "${s.toUpperCase()}"`)),new uc(e||500,u,new Error(c),!0)}function Fu(e){let t=Object.entries(e);for(let n=t.length-1;n>=0;n--){let[s,o]=t[n];if(bi(o))return{key:s,result:o}}}function K0(e){let t=typeof e=="string"?ti(e):e;return Zs({...t,hash:""})}function IC(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function VC(e){return q0(e.result)&&_C.has(e.result.status)}function Wn(e){return e.type==="error"}function bi(e){return(e&&e.type)==="redirect"}function Sv(e){return typeof e=="object"&&e!=null&&"type"in e&&"data"in e&&"init"in e&&e.type==="DataWithResponseInit"}function q0(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function BC(e){return bC.has(e.toUpperCase())}function yr(e){return wC.has(e.toUpperCase())}function hp(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function Pa(e,t){let n=typeof t=="string"?ti(t).search:t.search;if(e[e.length-1].route.index&&hp(n||""))return e[e.length-1];let s=$0(e);return s[s.length-1]}function bv(e){let{formMethod:t,formAction:n,formEncType:s,text:o,formData:a,json:u}=e;if(!(!t||!n||!s)){if(o!=null)return{formMethod:t,formAction:n,formEncType:s,formData:void 0,json:void 0,text:o};if(a!=null)return{formMethod:t,formAction:n,formEncType:s,formData:a,json:void 0,text:void 0};if(u!==void 0)return{formMethod:t,formAction:n,formEncType:s,formData:void 0,json:u,text:void 0}}}function Hf(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function zC(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function Sa(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function UC(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function Us(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function $C(e,t){try{let n=e.sessionStorage.getItem(H0);if(n){let s=JSON.parse(n);for(let[o,a]of Object.entries(s||{}))a&&Array.isArray(a)&&t.set(o,new Set(a||[]))}}catch{}}function WC(e,t){if(t.size>0){let n={};for(let[s,o]of t)n[s]=[...o];try{e.sessionStorage.setItem(H0,JSON.stringify(n))}catch(s){sn(!1,`Failed to save applied view transitions in sessionStorage (${s}).`)}}}function HC(){let e,t,n=new Promise((s,o)=>{e=async a=>{s(a);try{await n}catch{}},t=async a=>{o(a);try{await n}catch{}}});return{promise:n,resolve:e,reject:t}}var Oi=_.createContext(null);Oi.displayName="DataRouter";var yl=_.createContext(null);yl.displayName="DataRouterState";var pp=_.createContext({isTransitioning:!1});pp.displayName="ViewTransition";var Y0=_.createContext(new Map);Y0.displayName="Fetchers";var GC=_.createContext(null);GC.displayName="Await";var Wr=_.createContext(null);Wr.displayName="Navigation";var jc=_.createContext(null);jc.displayName="Location";var Hr=_.createContext({outlet:null,matches:[],isDataRoute:!1});Hr.displayName="Route";var mp=_.createContext(null);mp.displayName="RouteError";function ZC(e,{relative:t}={}){ot(vl(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:s}=_.useContext(Wr),{hash:o,pathname:a,search:u}=xl(e,{relative:t}),c=a;return n!=="/"&&(c=a==="/"?n:Ir([n,a])),s.createHref({pathname:c,search:u,hash:o})}function vl(){return _.useContext(jc)!=null}function Fi(){return ot(vl(),"useLocation() may be used only in the context of a <Router> component."),_.useContext(jc).location}var X0="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Q0(e){_.useContext(Wr).static||_.useLayoutEffect(e)}function KC(){let{isDataRoute:e}=_.useContext(Hr);return e?uk():qC()}function qC(){ot(vl(),"useNavigate() may be used only in the context of a <Router> component.");let e=_.useContext(Oi),{basename:t,navigator:n}=_.useContext(Wr),{matches:s}=_.useContext(Hr),{pathname:o}=Fi(),a=JSON.stringify(cp(s)),u=_.useRef(!1);return Q0(()=>{u.current=!0}),_.useCallback((f,h={})=>{if(sn(u.current,X0),!u.current)return;if(typeof f=="number"){n.go(f);return}let m=dp(f,JSON.parse(a),o,h.relative==="path");e==null&&t!=="/"&&(m.pathname=m.pathname==="/"?t:Ir([t,m.pathname])),(h.replace?n.replace:n.push)(m,h.state,h)},[t,n,a,o,e])}var YC=_.createContext(null);function XC(e){let t=_.useContext(Hr).outlet;return t&&_.createElement(YC.Provider,{value:e},t)}function xl(e,{relative:t}={}){let{matches:n}=_.useContext(Hr),{pathname:s}=Fi(),o=JSON.stringify(cp(n));return _.useMemo(()=>dp(e,JSON.parse(o),s,t==="path"),[e,o,s,t])}function QC(e,t,n,s){ot(vl(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:o}=_.useContext(Wr),{matches:a}=_.useContext(Hr),u=a[a.length-1],c=u?u.params:{},f=u?u.pathname:"/",h=u?u.pathnameBase:"/",m=u&&u.route;{let E=m&&m.path||"";J0(f,!m||E.endsWith("*")||E.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${f}" (under <Route path="${E}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
|
||
|
||
Please change the parent <Route path="${E}"> to <Route path="${E==="/"?"*":`${E}/*`}">.`)}let g=Fi(),v;v=g;let b=v.pathname||"/",w=b;if(h!=="/"){let E=h.replace(/^\//,"").split("/");w="/"+b.replace(/^\//,"").split("/").slice(E.length).join("/")}let S=Hs(e,{pathname:w});return sn(m||S!=null,`No routes matched location "${v.pathname}${v.search}${v.hash}" `),sn(S==null||S[S.length-1].route.element!==void 0||S[S.length-1].route.Component!==void 0||S[S.length-1].route.lazy!==void 0,`Matched leaf route at location "${v.pathname}${v.search}${v.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`),rk(S&&S.map(E=>Object.assign({},E,{params:Object.assign({},c,E.params),pathname:Ir([h,o.encodeLocation?o.encodeLocation(E.pathname).pathname:E.pathname]),pathnameBase:E.pathnameBase==="/"?h:Ir([h,o.encodeLocation?o.encodeLocation(E.pathnameBase).pathname:E.pathnameBase])})),a,n,s)}function JC(){let e=lk(),t=Ac(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,s="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:s},a={padding:"2px 4px",backgroundColor:s},u=null;return console.error("Error handled by React Router default ErrorBoundary:",e),u=_.createElement(_.Fragment,null,_.createElement("p",null,"💿 Hey developer 👋"),_.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",_.createElement("code",{style:a},"ErrorBoundary")," or"," ",_.createElement("code",{style:a},"errorElement")," prop on your route.")),_.createElement(_.Fragment,null,_.createElement("h2",null,"Unexpected Application Error!"),_.createElement("h3",{style:{fontStyle:"italic"}},t),n?_.createElement("pre",{style:o},n):null,u)}var ek=_.createElement(JC,null),tk=class extends _.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,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return this.state.error!==void 0?_.createElement(Hr.Provider,{value:this.props.routeContext},_.createElement(mp.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function nk({routeContext:e,match:t,children:n}){let s=_.useContext(Oi);return s&&s.static&&s.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(s.staticContext._deepestRenderedBoundaryId=t.route.id),_.createElement(Hr.Provider,{value:e},n)}function rk(e,t=[],n=null,s=null){if(e==null){if(!n)return null;if(n.errors)e=n.matches;else if(t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let o=e,a=n==null?void 0:n.errors;if(a!=null){let f=o.findIndex(h=>h.route.id&&(a==null?void 0:a[h.route.id])!==void 0);ot(f>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(a).join(",")}`),o=o.slice(0,Math.min(o.length,f+1))}let u=!1,c=-1;if(n)for(let f=0;f<o.length;f++){let h=o[f];if((h.route.HydrateFallback||h.route.hydrateFallbackElement)&&(c=f),h.route.id){let{loaderData:m,errors:g}=n,v=h.route.loader&&!m.hasOwnProperty(h.route.id)&&(!g||g[h.route.id]===void 0);if(h.route.lazy||v){u=!0,c>=0?o=o.slice(0,c+1):o=[o[0]];break}}}return o.reduceRight((f,h,m)=>{let g,v=!1,b=null,w=null;n&&(g=a&&h.route.id?a[h.route.id]:void 0,b=h.route.errorElement||ek,u&&(c<0&&m===0?(J0("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),v=!0,w=null):c===m&&(v=!0,w=h.route.hydrateFallbackElement||null)));let S=t.concat(o.slice(0,m+1)),C=()=>{let E;return g?E=b:v?E=w:h.route.Component?E=_.createElement(h.route.Component,null):h.route.element?E=h.route.element:E=f,_.createElement(nk,{match:h,routeContext:{outlet:f,matches:S,isDataRoute:n!=null},children:E})};return n&&(h.route.ErrorBoundary||h.route.errorElement||m===0)?_.createElement(tk,{location:n.location,revalidation:n.revalidation,component:b,error:g,children:C(),routeContext:{outlet:null,matches:S,isDataRoute:!0}}):C()},null)}function gp(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function sk(e){let t=_.useContext(Oi);return ot(t,gp(e)),t}function ik(e){let t=_.useContext(yl);return ot(t,gp(e)),t}function ok(e){let t=_.useContext(Hr);return ot(t,gp(e)),t}function yp(e){let t=ok(e),n=t.matches[t.matches.length-1];return ot(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function ak(){return yp("useRouteId")}function lk(){var s;let e=_.useContext(mp),t=ik("useRouteError"),n=yp("useRouteError");return e!==void 0?e:(s=t.errors)==null?void 0:s[n]}function uk(){let{router:e}=sk("useNavigate"),t=yp("useNavigate"),n=_.useRef(!1);return Q0(()=>{n.current=!0}),_.useCallback(async(o,a={})=>{sn(n.current,X0),n.current&&(typeof o=="number"?e.navigate(o):await e.navigate(o,{fromRouteId:t,...a}))},[e,t])}var _v={};function J0(e,t,n){!t&&!_v[e]&&(_v[e]=!0,sn(!1,n))}var Ev={};function Cv(e,t){!e&&!Ev[t]&&(Ev[t]=!0,console.warn(t))}function ck(e){let t={hasErrorBoundary:e.hasErrorBoundary||e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&(e.element&&sn(!1,"You should not include both `Component` and `element` on your route - `Component` will be used."),Object.assign(t,{element:_.createElement(e.Component),Component:void 0})),e.HydrateFallback&&(e.hydrateFallbackElement&&sn(!1,"You should not include both `HydrateFallback` and `hydrateFallbackElement` on your route - `HydrateFallback` will be used."),Object.assign(t,{hydrateFallbackElement:_.createElement(e.HydrateFallback),HydrateFallback:void 0})),e.ErrorBoundary&&(e.errorElement&&sn(!1,"You should not include both `ErrorBoundary` and `errorElement` on your route - `ErrorBoundary` will be used."),Object.assign(t,{errorElement:_.createElement(e.ErrorBoundary),ErrorBoundary:void 0})),t}var dk=class{constructor(){this.status="pending",this.promise=new Promise((e,t)=>{this.resolve=n=>{this.status==="pending"&&(this.status="resolved",e(n))},this.reject=n=>{this.status==="pending"&&(this.status="rejected",t(n))}})}};function fk({router:e,flushSync:t}){let[n,s]=_.useState(e.state),[o,a]=_.useState(),[u,c]=_.useState({isTransitioning:!1}),[f,h]=_.useState(),[m,g]=_.useState(),[v,b]=_.useState(),w=_.useRef(new Map),S=_.useCallback((N,{deletedFetchers:I,flushSync:T,viewTransitionOpts:F})=>{N.fetchers.forEach((O,q)=>{O.data!==void 0&&w.current.set(q,O.data)}),I.forEach(O=>w.current.delete(O)),Cv(T===!1||t!=null,'You provided the `flushSync` option to a router update, but you are not using the `<RouterProvider>` from `react-router/dom` so `ReactDOM.flushSync()` is unavailable. Please update your app to `import { RouterProvider } from "react-router/dom"` and ensure you have `react-dom` installed as a dependency to use the `flushSync` option.');let z=e.window!=null&&e.window.document!=null&&typeof e.window.document.startViewTransition=="function";if(Cv(F==null||z,"You provided the `viewTransition` option to a router update, but you do not appear to be running in a DOM environment as `window.startViewTransition` is not available."),!F||!z){t&&T?t(()=>s(N)):_.startTransition(()=>s(N));return}if(t&&T){t(()=>{m&&(f&&f.resolve(),m.skipTransition()),c({isTransitioning:!0,flushSync:!0,currentLocation:F.currentLocation,nextLocation:F.nextLocation})});let O=e.window.document.startViewTransition(()=>{t(()=>s(N))});O.finished.finally(()=>{t(()=>{h(void 0),g(void 0),a(void 0),c({isTransitioning:!1})})}),t(()=>g(O));return}m?(f&&f.resolve(),m.skipTransition(),b({state:N,currentLocation:F.currentLocation,nextLocation:F.nextLocation})):(a(N),c({isTransitioning:!0,flushSync:!1,currentLocation:F.currentLocation,nextLocation:F.nextLocation}))},[e.window,t,m,f]);_.useLayoutEffect(()=>e.subscribe(S),[e,S]),_.useEffect(()=>{u.isTransitioning&&!u.flushSync&&h(new dk)},[u]),_.useEffect(()=>{if(f&&o&&e.window){let N=o,I=f.promise,T=e.window.document.startViewTransition(async()=>{_.startTransition(()=>s(N)),await I});T.finished.finally(()=>{h(void 0),g(void 0),a(void 0),c({isTransitioning:!1})}),g(T)}},[o,f,e.window]),_.useEffect(()=>{f&&o&&n.location.key===o.location.key&&f.resolve()},[f,m,n.location,o]),_.useEffect(()=>{!u.isTransitioning&&v&&(a(v.state),c({isTransitioning:!0,flushSync:!1,currentLocation:v.currentLocation,nextLocation:v.nextLocation}),b(void 0))},[u.isTransitioning,v]);let C=_.useMemo(()=>({createHref:e.createHref,encodeLocation:e.encodeLocation,go:N=>e.navigate(N),push:(N,I,T)=>e.navigate(N,{state:I,preventScrollReset:T==null?void 0:T.preventScrollReset}),replace:(N,I,T)=>e.navigate(N,{replace:!0,state:I,preventScrollReset:T==null?void 0:T.preventScrollReset})}),[e]),E=e.basename||"/",R=_.useMemo(()=>({router:e,navigator:C,static:!1,basename:E}),[e,C,E]);return _.createElement(_.Fragment,null,_.createElement(Oi.Provider,{value:R},_.createElement(yl.Provider,{value:n},_.createElement(Y0.Provider,{value:w.current},_.createElement(pp.Provider,{value:u},_.createElement(gk,{basename:E,location:n.location,navigationType:n.historyAction,navigator:C},_.createElement(hk,{routes:e.routes,future:e.future,state:n})))))),null)}var hk=_.memo(pk);function pk({routes:e,future:t,state:n}){return QC(e,void 0,n,t)}function mk(e){return XC(e.context)}function gk({basename:e="/",children:t=null,location:n,navigationType:s="POP",navigator:o,static:a=!1}){ot(!vl(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let u=e.replace(/^\/*/,"/"),c=_.useMemo(()=>({basename:u,navigator:o,static:a,future:{}}),[u,o,a]);typeof n=="string"&&(n=ti(n));let{pathname:f="/",search:h="",hash:m="",state:g=null,key:v="default"}=n,b=_.useMemo(()=>{let w=br(f,u);return w==null?null:{location:{pathname:w,search:h,hash:m,state:g,key:v},navigationType:s}},[u,f,h,m,g,v,s]);return sn(b!=null,`<Router basename="${u}"> is not able to match the URL "${f}${h}${m}" because it does not start with the basename, so the <Router> won't render anything.`),b==null?null:_.createElement(Wr.Provider,{value:c},_.createElement(jc.Provider,{children:t,value:b}))}var qu="get",Yu="application/x-www-form-urlencoded";function Dc(e){return e!=null&&typeof e.tagName=="string"}function yk(e){return Dc(e)&&e.tagName.toLowerCase()==="button"}function vk(e){return Dc(e)&&e.tagName.toLowerCase()==="form"}function xk(e){return Dc(e)&&e.tagName.toLowerCase()==="input"}function wk(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Sk(e,t){return e.button===0&&(!t||t==="_self")&&!wk(e)}var Iu=null;function bk(){if(Iu===null)try{new FormData(document.createElement("form"),0),Iu=!1}catch{Iu=!0}return Iu}var _k=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Gf(e){return e!=null&&!_k.has(e)?(sn(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Yu}"`),null):e}function Ek(e,t){let n,s,o,a,u;if(vk(e)){let c=e.getAttribute("action");s=c?br(c,t):null,n=e.getAttribute("method")||qu,o=Gf(e.getAttribute("enctype"))||Yu,a=new FormData(e)}else if(yk(e)||xk(e)&&(e.type==="submit"||e.type==="image")){let c=e.form;if(c==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let f=e.getAttribute("formaction")||c.getAttribute("action");if(s=f?br(f,t):null,n=e.getAttribute("formmethod")||c.getAttribute("method")||qu,o=Gf(e.getAttribute("formenctype"))||Gf(c.getAttribute("enctype"))||Yu,a=new FormData(c,e),!bk()){let{name:h,type:m,value:g}=e;if(m==="image"){let v=h?`${h}.`:"";a.append(`${v}x`,"0"),a.append(`${v}y`,"0")}else h&&a.append(h,g)}}else{if(Dc(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=qu,s=null,o=Yu,u=e}return a&&o==="text/plain"&&(u=a,a=void 0),{action:s,method:n.toLowerCase(),encType:o,formData:a,body:u}}function vp(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}async function Ck(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(n){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(n),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function kk(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function Tk(e,t,n){let s=await Promise.all(e.map(async o=>{let a=t.routes[o.route.id];if(a){let u=await Ck(a,n);return u.links?u.links():[]}return[]}));return Ak(s.flat(1).filter(kk).filter(o=>o.rel==="stylesheet"||o.rel==="preload").map(o=>o.rel==="stylesheet"?{...o,rel:"prefetch",as:"style"}:{...o,rel:"prefetch"}))}function kv(e,t,n,s,o,a){let u=(f,h)=>n[h]?f.route.id!==n[h].route.id:!0,c=(f,h)=>{var m;return n[h].pathname!==f.pathname||((m=n[h].route.path)==null?void 0:m.endsWith("*"))&&n[h].params["*"]!==f.params["*"]};return a==="assets"?t.filter((f,h)=>u(f,h)||c(f,h)):a==="data"?t.filter((f,h)=>{var g;let m=s.routes[f.route.id];if(!m||!m.hasLoader)return!1;if(u(f,h)||c(f,h))return!0;if(f.route.shouldRevalidate){let v=f.route.shouldRevalidate({currentUrl:new URL(o.pathname+o.search+o.hash,window.origin),currentParams:((g=n[0])==null?void 0:g.params)||{},nextUrl:new URL(e,window.origin),nextParams:f.params,defaultShouldRevalidate:!0});if(typeof v=="boolean")return v}return!0}):[]}function Rk(e,t){return Pk(e.map(n=>{let s=t.routes[n.route.id];if(!s)return[];let o=[s.module];return s.imports&&(o=o.concat(s.imports)),o}).flat(1))}function Pk(e){return[...new Set(e)]}function Nk(e){let t={},n=Object.keys(e).sort();for(let s of n)t[s]=e[s];return t}function Ak(e,t){let n=new Set;return new Set(t),e.reduce((s,o)=>{let a=JSON.stringify(Nk(o));return n.has(a)||(n.add(a),s.push({key:a,link:o})),s},[])}function jk(e){let t=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return t.pathname==="/"?t.pathname="_root.data":t.pathname=`${t.pathname.replace(/\/$/,"")}.data`,t}function Dk(){let e=_.useContext(Oi);return vp(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function Lk(){let e=_.useContext(yl);return vp(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var xp=_.createContext(void 0);xp.displayName="FrameworkContext";function ew(){let e=_.useContext(xp);return vp(e,"You must render this element inside a <HydratedRouter> element"),e}function Mk(e,t){let n=_.useContext(xp),[s,o]=_.useState(!1),[a,u]=_.useState(!1),{onFocus:c,onBlur:f,onMouseEnter:h,onMouseLeave:m,onTouchStart:g}=t,v=_.useRef(null);_.useEffect(()=>{if(e==="render"&&u(!0),e==="viewport"){let S=E=>{E.forEach(R=>{u(R.isIntersecting)})},C=new IntersectionObserver(S,{threshold:.5});return v.current&&C.observe(v.current),()=>{C.disconnect()}}},[e]),_.useEffect(()=>{if(s){let S=setTimeout(()=>{u(!0)},100);return()=>{clearTimeout(S)}}},[s]);let b=()=>{o(!0)},w=()=>{o(!1),u(!1)};return n?e!=="intent"?[a,v,{}]:[a,v,{onFocus:ba(c,b),onBlur:ba(f,w),onMouseEnter:ba(h,b),onMouseLeave:ba(m,w),onTouchStart:ba(g,b)}]:[!1,v,{}]}function ba(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function Ok({page:e,...t}){let{router:n}=Dk(),s=_.useMemo(()=>Hs(n.routes,e,n.basename),[n.routes,e,n.basename]);return s?_.createElement(Ik,{page:e,matches:s,...t}):null}function Fk(e){let{manifest:t,routeModules:n}=ew(),[s,o]=_.useState([]);return _.useEffect(()=>{let a=!1;return Tk(e,t,n).then(u=>{a||o(u)}),()=>{a=!0}},[e,t,n]),s}function Ik({page:e,matches:t,...n}){let s=Fi(),{manifest:o,routeModules:a}=ew(),{loaderData:u,matches:c}=Lk(),f=_.useMemo(()=>kv(e,t,c,o,s,"data"),[e,t,c,o,s]),h=_.useMemo(()=>kv(e,t,c,o,s,"assets"),[e,t,c,o,s]),m=_.useMemo(()=>{if(e===s.pathname+s.search+s.hash)return[];let b=new Set,w=!1;if(t.forEach(C=>{var R;let E=o.routes[C.route.id];!E||!E.hasLoader||(!f.some(N=>N.route.id===C.route.id)&&C.route.id in u&&((R=a[C.route.id])!=null&&R.shouldRevalidate)||E.hasClientLoader?w=!0:b.add(C.route.id))}),b.size===0)return[];let S=jk(e);return w&&b.size>0&&S.searchParams.set("_routes",t.filter(C=>b.has(C.route.id)).map(C=>C.route.id).join(",")),[S.pathname+S.search]},[u,s,o,f,t,e,a]),g=_.useMemo(()=>Rk(h,o),[h,o]),v=Fk(h);return _.createElement(_.Fragment,null,m.map(b=>_.createElement("link",{key:b,rel:"prefetch",as:"fetch",href:b,...n})),g.map(b=>_.createElement("link",{key:b,rel:"modulepreload",href:b,...n})),v.map(({key:b,link:w})=>_.createElement("link",{key:b,...w})))}function Vk(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var tw=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{tw&&(window.__reactRouterVersion="7.1.3")}catch{}function Bk(e,t){return TC({basename:t==null?void 0:t.basename,future:t==null?void 0:t.future,history:X1({window:t==null?void 0:t.window}),hydrationData:zk(),routes:e,mapRouteProperties:ck,dataStrategy:t==null?void 0:t.dataStrategy,patchRoutesOnNavigation:t==null?void 0:t.patchRoutesOnNavigation,window:t==null?void 0:t.window}).initialize()}function zk(){let e=window==null?void 0:window.__staticRouterHydrationData;return e&&e.errors&&(e={...e,errors:Uk(e.errors)}),e}function Uk(e){if(!e)return null;let t=Object.entries(e),n={};for(let[s,o]of t)if(o&&o.__type==="RouteErrorResponse")n[s]=new uc(o.status,o.statusText,o.data,o.internal===!0);else if(o&&o.__type==="Error"){if(o.__subType){let a=window[o.__subType];if(typeof a=="function")try{let u=new a(o.message);u.stack="",n[s]=u}catch{}}if(n[s]==null){let a=new Error(o.message);a.stack="",n[s]=a}}else n[s]=o;return n}var nw=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,wn=_.forwardRef(function({onClick:t,discover:n="render",prefetch:s="none",relative:o,reloadDocument:a,replace:u,state:c,target:f,to:h,preventScrollReset:m,viewTransition:g,...v},b){let{basename:w}=_.useContext(Wr),S=typeof h=="string"&&nw.test(h),C,E=!1;if(typeof h=="string"&&S&&(C=h,tw))try{let q=new URL(window.location.href),te=h.startsWith("//")?new URL(q.protocol+h):new URL(h),pe=br(te.pathname,w);te.origin===q.origin&&pe!=null?h=pe+te.search+te.hash:E=!0}catch{sn(!1,`<Link to="${h}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let R=ZC(h,{relative:o}),[N,I,T]=Mk(s,v),F=Gk(h,{replace:u,state:c,target:f,preventScrollReset:m,relative:o,viewTransition:g});function z(q){t&&t(q),q.defaultPrevented||F(q)}let O=_.createElement("a",{...v,...T,href:C||R,onClick:E||a?t:z,ref:Vk(b,I),target:f,"data-discover":!S&&n==="render"?"true":void 0});return N&&!S?_.createElement(_.Fragment,null,O,_.createElement(Ok,{page:R})):O});wn.displayName="Link";var $k=_.forwardRef(function({"aria-current":t="page",caseSensitive:n=!1,className:s="",end:o=!1,style:a,to:u,viewTransition:c,children:f,...h},m){let g=xl(u,{relative:h.relative}),v=Fi(),b=_.useContext(yl),{navigator:w,basename:S}=_.useContext(Wr),C=b!=null&&Xk(g)&&c===!0,E=w.encodeLocation?w.encodeLocation(g).pathname:g.pathname,R=v.pathname,N=b&&b.navigation&&b.navigation.location?b.navigation.location.pathname:null;n||(R=R.toLowerCase(),N=N?N.toLowerCase():null,E=E.toLowerCase()),N&&S&&(N=br(N,S)||N);const I=E!=="/"&&E.endsWith("/")?E.length-1:E.length;let T=R===E||!o&&R.startsWith(E)&&R.charAt(I)==="/",F=N!=null&&(N===E||!o&&N.startsWith(E)&&N.charAt(E.length)==="/"),z={isActive:T,isPending:F,isTransitioning:C},O=T?t:void 0,q;typeof s=="function"?q=s(z):q=[s,T?"active":null,F?"pending":null,C?"transitioning":null].filter(Boolean).join(" ");let te=typeof a=="function"?a(z):a;return _.createElement(wn,{...h,"aria-current":O,className:q,ref:m,style:te,to:u,viewTransition:c},typeof f=="function"?f(z):f)});$k.displayName="NavLink";var Wk=_.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:s,replace:o,state:a,method:u=qu,action:c,onSubmit:f,relative:h,preventScrollReset:m,viewTransition:g,...v},b)=>{let w=qk(),S=Yk(c,{relative:h}),C=u.toLowerCase()==="get"?"get":"post",E=typeof c=="string"&&nw.test(c),R=N=>{if(f&&f(N),N.defaultPrevented)return;N.preventDefault();let I=N.nativeEvent.submitter,T=(I==null?void 0:I.getAttribute("formmethod"))||u;w(I||N.currentTarget,{fetcherKey:t,method:T,navigate:n,replace:o,state:a,relative:h,preventScrollReset:m,viewTransition:g})};return _.createElement("form",{ref:b,method:C,action:S,onSubmit:s?f:R,...v,"data-discover":!E&&e==="render"?"true":void 0})});Wk.displayName="Form";function Hk(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function rw(e){let t=_.useContext(Oi);return ot(t,Hk(e)),t}function Gk(e,{target:t,replace:n,state:s,preventScrollReset:o,relative:a,viewTransition:u}={}){let c=KC(),f=Fi(),h=xl(e,{relative:a});return _.useCallback(m=>{if(Sk(m,t)){m.preventDefault();let g=n!==void 0?n:Zs(f)===Zs(h);c(e,{replace:g,state:s,preventScrollReset:o,relative:a,viewTransition:u})}},[f,c,h,n,s,t,e,o,a,u])}var Zk=0,Kk=()=>`__${String(++Zk)}__`;function qk(){let{router:e}=rw("useSubmit"),{basename:t}=_.useContext(Wr),n=ak();return _.useCallback(async(s,o={})=>{let{action:a,method:u,encType:c,formData:f,body:h}=Ek(s,t);if(o.navigate===!1){let m=o.fetcherKey||Kk();await e.fetch(m,n,o.action||a,{preventScrollReset:o.preventScrollReset,formData:f,body:h,formMethod:o.method||u,formEncType:o.encType||c,flushSync:o.flushSync})}else await e.navigate(o.action||a,{preventScrollReset:o.preventScrollReset,formData:f,body:h,formMethod:o.method||u,formEncType:o.encType||c,replace:o.replace,state:o.state,fromRouteId:n,flushSync:o.flushSync,viewTransition:o.viewTransition})},[e,t,n])}function Yk(e,{relative:t}={}){let{basename:n}=_.useContext(Wr),s=_.useContext(Hr);ot(s,"useFormAction must be used inside a RouteContext");let[o]=s.matches.slice(-1),a={...xl(e||".",{relative:t})},u=Fi();if(e==null){a.search=u.search;let c=new URLSearchParams(a.search),f=c.getAll("index");if(f.some(m=>m==="")){c.delete("index"),f.filter(g=>g).forEach(g=>c.append("index",g));let m=c.toString();a.search=m?`?${m}`:""}}return(!e||e===".")&&o.route.index&&(a.search=a.search?a.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(a.pathname=a.pathname==="/"?n:Ir([n,a.pathname])),Zs(a)}function Xk(e,t={}){let n=_.useContext(pp);ot(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:s}=rw("useViewTransitionState"),o=xl(e,{relative:t.relative});if(!n.isTransitioning)return!1;let a=br(n.currentLocation.pathname,s)||n.currentLocation.pathname,u=br(n.nextLocation.pathname,s)||n.nextLocation.pathname;return lc(o.pathname,u)!=null||lc(o.pathname,a)!=null}new TextEncoder;var wp=B0();const Qk=V0(wp);/**
|
||
* react-router v7.1.3
|
||
*
|
||
* Copyright (c) Remix Software Inc.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE.md file in the root directory of this source tree.
|
||
*
|
||
* @license MIT
|
||
*/function Jk(e){return _.createElement(fk,{flushSync:wp.flushSync,...e})}function on(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function Tv(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function sw(...e){return t=>{let n=!1;const s=e.map(o=>{const a=Tv(o,t);return!n&&typeof a=="function"&&(n=!0),a});if(n)return()=>{for(let o=0;o<s.length;o++){const a=s[o];typeof a=="function"?a():Tv(e[o],null)}}}}function or(...e){return _.useCallback(sw(...e),e)}function eT(e,t){const n=_.createContext(t),s=a=>{const{children:u,...c}=a,f=_.useMemo(()=>c,Object.values(c));return x.jsx(n.Provider,{value:f,children:u})};s.displayName=e+"Provider";function o(a){const u=_.useContext(n);if(u)return u;if(t!==void 0)return t;throw new Error(`\`${a}\` must be used within \`${e}\``)}return[s,o]}function wl(e,t=[]){let n=[];function s(a,u){const c=_.createContext(u),f=n.length;n=[...n,u];const h=g=>{var E;const{scope:v,children:b,...w}=g,S=((E=v==null?void 0:v[e])==null?void 0:E[f])||c,C=_.useMemo(()=>w,Object.values(w));return x.jsx(S.Provider,{value:C,children:b})};h.displayName=a+"Provider";function m(g,v){var S;const b=((S=v==null?void 0:v[e])==null?void 0:S[f])||c,w=_.useContext(b);if(w)return w;if(u!==void 0)return u;throw new Error(`\`${g}\` must be used within \`${a}\``)}return[h,m]}const o=()=>{const a=n.map(u=>_.createContext(u));return function(c){const f=(c==null?void 0:c[e])||a;return _.useMemo(()=>({[`__scope${e}`]:{...c,[e]:f}}),[c,f])}};return o.scopeName=e,[s,tT(o,...t)]}function tT(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const s=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(a){const u=s.reduce((c,{useScope:f,scopeName:h})=>{const g=f(a)[`__scope${h}`];return{...c,...g}},{});return _.useMemo(()=>({[`__scope${t.scopeName}`]:u}),[u])}};return n.scopeName=t.scopeName,n}var Ha=globalThis!=null&&globalThis.document?_.useLayoutEffect:()=>{},nT=W1.useId||(()=>{}),rT=0;function Xu(e){const[t,n]=_.useState(nT());return Ha(()=>{n(s=>s??String(rT++))},[e]),t?`radix-${t}`:""}function Ks(e){const t=_.useRef(e);return _.useEffect(()=>{t.current=e}),_.useMemo(()=>(...n)=>{var s;return(s=t.current)==null?void 0:s.call(t,...n)},[])}function Sp({prop:e,defaultProp:t,onChange:n=()=>{}}){const[s,o]=sT({defaultProp:t,onChange:n}),a=e!==void 0,u=a?e:s,c=Ks(n),f=_.useCallback(h=>{if(a){const g=typeof h=="function"?h(e):h;g!==e&&c(g)}else o(h)},[a,e,o,c]);return[u,f]}function sT({defaultProp:e,onChange:t}){const n=_.useState(e),[s]=n,o=_.useRef(s),a=Ks(t);return _.useEffect(()=>{o.current!==s&&(a(s),o.current=s)},[s,o,a]),n}var Pi=_.forwardRef((e,t)=>{const{children:n,...s}=e,o=_.Children.toArray(n),a=o.find(oT);if(a){const u=a.props.children,c=o.map(f=>f===a?_.Children.count(u)>1?_.Children.only(null):_.isValidElement(u)?u.props.children:null:f);return x.jsx(kh,{...s,ref:t,children:_.isValidElement(u)?_.cloneElement(u,void 0,c):null})}return x.jsx(kh,{...s,ref:t,children:n})});Pi.displayName="Slot";var kh=_.forwardRef((e,t)=>{const{children:n,...s}=e;if(_.isValidElement(n)){const o=lT(n);return _.cloneElement(n,{...aT(s,n.props),ref:t?sw(t,o):o})}return _.Children.count(n)>1?_.Children.only(null):null});kh.displayName="SlotClone";var iT=({children:e})=>x.jsx(x.Fragment,{children:e});function oT(e){return _.isValidElement(e)&&e.type===iT}function aT(e,t){const n={...t};for(const s in t){const o=e[s],a=t[s];/^on[A-Z]/.test(s)?o&&a?n[s]=(...c)=>{a(...c),o(...c)}:o&&(n[s]=o):s==="style"?n[s]={...o,...a}:s==="className"&&(n[s]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}function lT(e){var s,o;let t=(s=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:s.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var uT=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],_n=uT.reduce((e,t)=>{const n=_.forwardRef((s,o)=>{const{asChild:a,...u}=s,c=a?Pi:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),x.jsx(c,{...u,ref:o})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function cT(e,t){e&&wp.flushSync(()=>e.dispatchEvent(t))}function dT(e,t=globalThis==null?void 0:globalThis.document){const n=Ks(e);_.useEffect(()=>{const s=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",s,{capture:!0}),()=>t.removeEventListener("keydown",s,{capture:!0})},[n,t])}var fT="DismissableLayer",Th="dismissableLayer.update",hT="dismissableLayer.pointerDownOutside",pT="dismissableLayer.focusOutside",Rv,iw=_.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),ow=_.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:s,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:u,onDismiss:c,...f}=e,h=_.useContext(iw),[m,g]=_.useState(null),v=(m==null?void 0:m.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,b]=_.useState({}),w=or(t,z=>g(z)),S=Array.from(h.layers),[C]=[...h.layersWithOutsidePointerEventsDisabled].slice(-1),E=S.indexOf(C),R=m?S.indexOf(m):-1,N=h.layersWithOutsidePointerEventsDisabled.size>0,I=R>=E,T=yT(z=>{const O=z.target,q=[...h.branches].some(te=>te.contains(O));!I||q||(o==null||o(z),u==null||u(z),z.defaultPrevented||c==null||c())},v),F=vT(z=>{const O=z.target;[...h.branches].some(te=>te.contains(O))||(a==null||a(z),u==null||u(z),z.defaultPrevented||c==null||c())},v);return dT(z=>{R===h.layers.size-1&&(s==null||s(z),!z.defaultPrevented&&c&&(z.preventDefault(),c()))},v),_.useEffect(()=>{if(m)return n&&(h.layersWithOutsidePointerEventsDisabled.size===0&&(Rv=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),h.layersWithOutsidePointerEventsDisabled.add(m)),h.layers.add(m),Pv(),()=>{n&&h.layersWithOutsidePointerEventsDisabled.size===1&&(v.body.style.pointerEvents=Rv)}},[m,v,n,h]),_.useEffect(()=>()=>{m&&(h.layers.delete(m),h.layersWithOutsidePointerEventsDisabled.delete(m),Pv())},[m,h]),_.useEffect(()=>{const z=()=>b({});return document.addEventListener(Th,z),()=>document.removeEventListener(Th,z)},[]),x.jsx(_n.div,{...f,ref:w,style:{pointerEvents:N?I?"auto":"none":void 0,...e.style},onFocusCapture:on(e.onFocusCapture,F.onFocusCapture),onBlurCapture:on(e.onBlurCapture,F.onBlurCapture),onPointerDownCapture:on(e.onPointerDownCapture,T.onPointerDownCapture)})});ow.displayName=fT;var mT="DismissableLayerBranch",gT=_.forwardRef((e,t)=>{const n=_.useContext(iw),s=_.useRef(null),o=or(t,s);return _.useEffect(()=>{const a=s.current;if(a)return n.branches.add(a),()=>{n.branches.delete(a)}},[n.branches]),x.jsx(_n.div,{...e,ref:o})});gT.displayName=mT;function yT(e,t=globalThis==null?void 0:globalThis.document){const n=Ks(e),s=_.useRef(!1),o=_.useRef(()=>{});return _.useEffect(()=>{const a=c=>{if(c.target&&!s.current){let f=function(){aw(hT,n,h,{discrete:!0})};const h={originalEvent:c};c.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=f,t.addEventListener("click",o.current,{once:!0})):f()}else t.removeEventListener("click",o.current);s.current=!1},u=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(u),t.removeEventListener("pointerdown",a),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>s.current=!0}}function vT(e,t=globalThis==null?void 0:globalThis.document){const n=Ks(e),s=_.useRef(!1);return _.useEffect(()=>{const o=a=>{a.target&&!s.current&&aw(pT,n,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>s.current=!0,onBlurCapture:()=>s.current=!1}}function Pv(){const e=new CustomEvent(Th);document.dispatchEvent(e)}function aw(e,t,n,{discrete:s}){const o=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),s?cT(o,a):o.dispatchEvent(a)}var Zf="focusScope.autoFocusOnMount",Kf="focusScope.autoFocusOnUnmount",Nv={bubbles:!1,cancelable:!0},xT="FocusScope",lw=_.forwardRef((e,t)=>{const{loop:n=!1,trapped:s=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...u}=e,[c,f]=_.useState(null),h=Ks(o),m=Ks(a),g=_.useRef(null),v=or(t,S=>f(S)),b=_.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;_.useEffect(()=>{if(s){let S=function(N){if(b.paused||!c)return;const I=N.target;c.contains(I)?g.current=I:$s(g.current,{select:!0})},C=function(N){if(b.paused||!c)return;const I=N.relatedTarget;I!==null&&(c.contains(I)||$s(g.current,{select:!0}))},E=function(N){if(document.activeElement===document.body)for(const T of N)T.removedNodes.length>0&&$s(c)};document.addEventListener("focusin",S),document.addEventListener("focusout",C);const R=new MutationObserver(E);return c&&R.observe(c,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",S),document.removeEventListener("focusout",C),R.disconnect()}}},[s,c,b.paused]),_.useEffect(()=>{if(c){jv.add(b);const S=document.activeElement;if(!c.contains(S)){const E=new CustomEvent(Zf,Nv);c.addEventListener(Zf,h),c.dispatchEvent(E),E.defaultPrevented||(wT(CT(uw(c)),{select:!0}),document.activeElement===S&&$s(c))}return()=>{c.removeEventListener(Zf,h),setTimeout(()=>{const E=new CustomEvent(Kf,Nv);c.addEventListener(Kf,m),c.dispatchEvent(E),E.defaultPrevented||$s(S??document.body,{select:!0}),c.removeEventListener(Kf,m),jv.remove(b)},0)}}},[c,h,m,b]);const w=_.useCallback(S=>{if(!n&&!s||b.paused)return;const C=S.key==="Tab"&&!S.altKey&&!S.ctrlKey&&!S.metaKey,E=document.activeElement;if(C&&E){const R=S.currentTarget,[N,I]=ST(R);N&&I?!S.shiftKey&&E===I?(S.preventDefault(),n&&$s(N,{select:!0})):S.shiftKey&&E===N&&(S.preventDefault(),n&&$s(I,{select:!0})):E===R&&S.preventDefault()}},[n,s,b.paused]);return x.jsx(_n.div,{tabIndex:-1,...u,ref:v,onKeyDown:w})});lw.displayName=xT;function wT(e,{select:t=!1}={}){const n=document.activeElement;for(const s of e)if($s(s,{select:t}),document.activeElement!==n)return}function ST(e){const t=uw(e),n=Av(t,e),s=Av(t.reverse(),e);return[n,s]}function uw(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:s=>{const o=s.tagName==="INPUT"&&s.type==="hidden";return s.disabled||s.hidden||o?NodeFilter.FILTER_SKIP:s.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Av(e,t){for(const n of e)if(!bT(n,{upTo:t}))return n}function bT(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function _T(e){return e instanceof HTMLInputElement&&"select"in e}function $s(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&_T(e)&&t&&e.select()}}var jv=ET();function ET(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=Dv(e,t),e.unshift(t)},remove(t){var n;e=Dv(e,t),(n=e[0])==null||n.resume()}}}function Dv(e,t){const n=[...e],s=n.indexOf(t);return s!==-1&&n.splice(s,1),n}function CT(e){return e.filter(t=>t.tagName!=="A")}var kT="Portal",cw=_.forwardRef((e,t)=>{var c;const{container:n,...s}=e,[o,a]=_.useState(!1);Ha(()=>a(!0),[]);const u=n||o&&((c=globalThis==null?void 0:globalThis.document)==null?void 0:c.body);return u?Qk.createPortal(x.jsx(_n.div,{...s,ref:t}),u):null});cw.displayName=kT;function TT(e,t){return _.useReducer((n,s)=>t[n][s]??n,e)}var Sl=e=>{const{present:t,children:n}=e,s=RT(t),o=typeof n=="function"?n({present:s.isPresent}):_.Children.only(n),a=or(s.ref,PT(o));return typeof n=="function"||s.isPresent?_.cloneElement(o,{ref:a}):null};Sl.displayName="Presence";function RT(e){const[t,n]=_.useState(),s=_.useRef({}),o=_.useRef(e),a=_.useRef("none"),u=e?"mounted":"unmounted",[c,f]=TT(u,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return _.useEffect(()=>{const h=Vu(s.current);a.current=c==="mounted"?h:"none"},[c]),Ha(()=>{const h=s.current,m=o.current;if(m!==e){const v=a.current,b=Vu(h);e?f("MOUNT"):b==="none"||(h==null?void 0:h.display)==="none"?f("UNMOUNT"):f(m&&v!==b?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,f]),Ha(()=>{if(t){let h;const m=t.ownerDocument.defaultView??window,g=b=>{const S=Vu(s.current).includes(b.animationName);if(b.target===t&&S&&(f("ANIMATION_END"),!o.current)){const C=t.style.animationFillMode;t.style.animationFillMode="forwards",h=m.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=C)})}},v=b=>{b.target===t&&(a.current=Vu(s.current))};return t.addEventListener("animationstart",v),t.addEventListener("animationcancel",g),t.addEventListener("animationend",g),()=>{m.clearTimeout(h),t.removeEventListener("animationstart",v),t.removeEventListener("animationcancel",g),t.removeEventListener("animationend",g)}}else f("ANIMATION_END")},[t,f]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:_.useCallback(h=>{h&&(s.current=getComputedStyle(h)),n(h)},[])}}function Vu(e){return(e==null?void 0:e.animationName)||"none"}function PT(e){var s,o;let t=(s=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:s.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var qf=0;function NT(){_.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Lv()),document.body.insertAdjacentElement("beforeend",e[1]??Lv()),qf++,()=>{qf===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),qf--}},[])}function Lv(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var Mr=function(){return Mr=Object.assign||function(t){for(var n,s=1,o=arguments.length;s<o;s++){n=arguments[s];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},Mr.apply(this,arguments)};function dw(e,t){var n={};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&t.indexOf(s)<0&&(n[s]=e[s]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,s=Object.getOwnPropertySymbols(e);o<s.length;o++)t.indexOf(s[o])<0&&Object.prototype.propertyIsEnumerable.call(e,s[o])&&(n[s[o]]=e[s[o]]);return n}function AT(e,t,n){if(n||arguments.length===2)for(var s=0,o=t.length,a;s<o;s++)(a||!(s in t))&&(a||(a=Array.prototype.slice.call(t,0,s)),a[s]=t[s]);return e.concat(a||Array.prototype.slice.call(t))}var Qu="right-scroll-bar-position",Ju="width-before-scroll-bar",jT="with-scroll-bars-hidden",DT="--removed-body-scroll-bar-size";function Yf(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function LT(e,t){var n=_.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(s){var o=n.value;o!==s&&(n.value=s,n.callback(s,o))}}}})[0];return n.callback=t,n.facade}var MT=typeof window<"u"?_.useLayoutEffect:_.useEffect,Mv=new WeakMap;function OT(e,t){var n=LT(null,function(s){return e.forEach(function(o){return Yf(o,s)})});return MT(function(){var s=Mv.get(n);if(s){var o=new Set(s),a=new Set(e),u=n.current;o.forEach(function(c){a.has(c)||Yf(c,null)}),a.forEach(function(c){o.has(c)||Yf(c,u)})}Mv.set(n,e)},[e]),n}function FT(e){return e}function IT(e,t){t===void 0&&(t=FT);var n=[],s=!1,o={read:function(){if(s)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(a){var u=t(a,s);return n.push(u),function(){n=n.filter(function(c){return c!==u})}},assignSyncMedium:function(a){for(s=!0;n.length;){var u=n;n=[],u.forEach(a)}n={push:function(c){return a(c)},filter:function(){return n}}},assignMedium:function(a){s=!0;var u=[];if(n.length){var c=n;n=[],c.forEach(a),u=n}var f=function(){var m=u;u=[],m.forEach(a)},h=function(){return Promise.resolve().then(f)};h(),n={push:function(m){u.push(m),h()},filter:function(m){return u=u.filter(m),n}}}};return o}function VT(e){e===void 0&&(e={});var t=IT(null);return t.options=Mr({async:!0,ssr:!1},e),t}var fw=function(e){var t=e.sideCar,n=dw(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var s=t.read();if(!s)throw new Error("Sidecar medium not found");return _.createElement(s,Mr({},n))};fw.isSideCarExport=!0;function BT(e,t){return e.useMedium(t),fw}var hw=VT(),Xf=function(){},Lc=_.forwardRef(function(e,t){var n=_.useRef(null),s=_.useState({onScrollCapture:Xf,onWheelCapture:Xf,onTouchMoveCapture:Xf}),o=s[0],a=s[1],u=e.forwardProps,c=e.children,f=e.className,h=e.removeScrollBar,m=e.enabled,g=e.shards,v=e.sideCar,b=e.noIsolation,w=e.inert,S=e.allowPinchZoom,C=e.as,E=C===void 0?"div":C,R=e.gapMode,N=dw(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),I=v,T=OT([n,t]),F=Mr(Mr({},N),o);return _.createElement(_.Fragment,null,m&&_.createElement(I,{sideCar:hw,removeScrollBar:h,shards:g,noIsolation:b,inert:w,setCallbacks:a,allowPinchZoom:!!S,lockRef:n,gapMode:R}),u?_.cloneElement(_.Children.only(c),Mr(Mr({},F),{ref:T})):_.createElement(E,Mr({},F,{className:f,ref:T}),c))});Lc.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Lc.classNames={fullWidth:Ju,zeroRight:Qu};var zT=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function UT(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=zT();return t&&e.setAttribute("nonce",t),e}function $T(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function WT(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var HT=function(){var e=0,t=null;return{add:function(n){e==0&&(t=UT())&&($T(t,n),WT(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},GT=function(){var e=HT();return function(t,n){_.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},pw=function(){var e=GT(),t=function(n){var s=n.styles,o=n.dynamic;return e(s,o),null};return t},ZT={left:0,top:0,right:0,gap:0},Qf=function(e){return parseInt(e||"",10)||0},KT=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],s=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[Qf(n),Qf(s),Qf(o)]},qT=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return ZT;var t=KT(e),n=document.documentElement.clientWidth,s=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,s-n+t[2]-t[0])}},YT=pw(),Co="data-scroll-locked",XT=function(e,t,n,s){var o=e.left,a=e.top,u=e.right,c=e.gap;return n===void 0&&(n="margin"),`
|
||
.`.concat(jT,` {
|
||
overflow: hidden `).concat(s,`;
|
||
padding-right: `).concat(c,"px ").concat(s,`;
|
||
}
|
||
body[`).concat(Co,`] {
|
||
overflow: hidden `).concat(s,`;
|
||
overscroll-behavior: contain;
|
||
`).concat([t&&"position: relative ".concat(s,";"),n==="margin"&&`
|
||
padding-left: `.concat(o,`px;
|
||
padding-top: `).concat(a,`px;
|
||
padding-right: `).concat(u,`px;
|
||
margin-left:0;
|
||
margin-top:0;
|
||
margin-right: `).concat(c,"px ").concat(s,`;
|
||
`),n==="padding"&&"padding-right: ".concat(c,"px ").concat(s,";")].filter(Boolean).join(""),`
|
||
}
|
||
|
||
.`).concat(Qu,` {
|
||
right: `).concat(c,"px ").concat(s,`;
|
||
}
|
||
|
||
.`).concat(Ju,` {
|
||
margin-right: `).concat(c,"px ").concat(s,`;
|
||
}
|
||
|
||
.`).concat(Qu," .").concat(Qu,` {
|
||
right: 0 `).concat(s,`;
|
||
}
|
||
|
||
.`).concat(Ju," .").concat(Ju,` {
|
||
margin-right: 0 `).concat(s,`;
|
||
}
|
||
|
||
body[`).concat(Co,`] {
|
||
`).concat(DT,": ").concat(c,`px;
|
||
}
|
||
`)},Ov=function(){var e=parseInt(document.body.getAttribute(Co)||"0",10);return isFinite(e)?e:0},QT=function(){_.useEffect(function(){return document.body.setAttribute(Co,(Ov()+1).toString()),function(){var e=Ov()-1;e<=0?document.body.removeAttribute(Co):document.body.setAttribute(Co,e.toString())}},[])},JT=function(e){var t=e.noRelative,n=e.noImportant,s=e.gapMode,o=s===void 0?"margin":s;QT();var a=_.useMemo(function(){return qT(o)},[o]);return _.createElement(YT,{styles:XT(a,!t,o,n?"":"!important")})},Rh=!1;if(typeof window<"u")try{var Bu=Object.defineProperty({},"passive",{get:function(){return Rh=!0,!0}});window.addEventListener("test",Bu,Bu),window.removeEventListener("test",Bu,Bu)}catch{Rh=!1}var po=Rh?{passive:!1}:!1,eR=function(e){return e.tagName==="TEXTAREA"},mw=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!eR(e)&&n[t]==="visible")},tR=function(e){return mw(e,"overflowY")},nR=function(e){return mw(e,"overflowX")},Fv=function(e,t){var n=t.ownerDocument,s=t;do{typeof ShadowRoot<"u"&&s instanceof ShadowRoot&&(s=s.host);var o=gw(e,s);if(o){var a=yw(e,s),u=a[1],c=a[2];if(u>c)return!0}s=s.parentNode}while(s&&s!==n.body);return!1},rR=function(e){var t=e.scrollTop,n=e.scrollHeight,s=e.clientHeight;return[t,n,s]},sR=function(e){var t=e.scrollLeft,n=e.scrollWidth,s=e.clientWidth;return[t,n,s]},gw=function(e,t){return e==="v"?tR(t):nR(t)},yw=function(e,t){return e==="v"?rR(t):sR(t)},iR=function(e,t){return e==="h"&&t==="rtl"?-1:1},oR=function(e,t,n,s,o){var a=iR(e,window.getComputedStyle(t).direction),u=a*s,c=n.target,f=t.contains(c),h=!1,m=u>0,g=0,v=0;do{var b=yw(e,c),w=b[0],S=b[1],C=b[2],E=S-C-a*w;(w||E)&&gw(e,c)&&(g+=E,v+=w),c instanceof ShadowRoot?c=c.host:c=c.parentNode}while(!f&&c!==document.body||f&&(t.contains(c)||t===c));return(m&&Math.abs(g)<1||!m&&Math.abs(v)<1)&&(h=!0),h},zu=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Iv=function(e){return[e.deltaX,e.deltaY]},Vv=function(e){return e&&"current"in e?e.current:e},aR=function(e,t){return e[0]===t[0]&&e[1]===t[1]},lR=function(e){return`
|
||
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
||
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
||
`)},uR=0,mo=[];function cR(e){var t=_.useRef([]),n=_.useRef([0,0]),s=_.useRef(),o=_.useState(uR++)[0],a=_.useState(pw)[0],u=_.useRef(e);_.useEffect(function(){u.current=e},[e]),_.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var S=AT([e.lockRef.current],(e.shards||[]).map(Vv),!0).filter(Boolean);return S.forEach(function(C){return C.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),S.forEach(function(C){return C.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var c=_.useCallback(function(S,C){if("touches"in S&&S.touches.length===2||S.type==="wheel"&&S.ctrlKey)return!u.current.allowPinchZoom;var E=zu(S),R=n.current,N="deltaX"in S?S.deltaX:R[0]-E[0],I="deltaY"in S?S.deltaY:R[1]-E[1],T,F=S.target,z=Math.abs(N)>Math.abs(I)?"h":"v";if("touches"in S&&z==="h"&&F.type==="range")return!1;var O=Fv(z,F);if(!O)return!0;if(O?T=z:(T=z==="v"?"h":"v",O=Fv(z,F)),!O)return!1;if(!s.current&&"changedTouches"in S&&(N||I)&&(s.current=T),!T)return!0;var q=s.current||T;return oR(q,C,S,q==="h"?N:I)},[]),f=_.useCallback(function(S){var C=S;if(!(!mo.length||mo[mo.length-1]!==a)){var E="deltaY"in C?Iv(C):zu(C),R=t.current.filter(function(T){return T.name===C.type&&(T.target===C.target||C.target===T.shadowParent)&&aR(T.delta,E)})[0];if(R&&R.should){C.cancelable&&C.preventDefault();return}if(!R){var N=(u.current.shards||[]).map(Vv).filter(Boolean).filter(function(T){return T.contains(C.target)}),I=N.length>0?c(C,N[0]):!u.current.noIsolation;I&&C.cancelable&&C.preventDefault()}}},[]),h=_.useCallback(function(S,C,E,R){var N={name:S,delta:C,target:E,should:R,shadowParent:dR(E)};t.current.push(N),setTimeout(function(){t.current=t.current.filter(function(I){return I!==N})},1)},[]),m=_.useCallback(function(S){n.current=zu(S),s.current=void 0},[]),g=_.useCallback(function(S){h(S.type,Iv(S),S.target,c(S,e.lockRef.current))},[]),v=_.useCallback(function(S){h(S.type,zu(S),S.target,c(S,e.lockRef.current))},[]);_.useEffect(function(){return mo.push(a),e.setCallbacks({onScrollCapture:g,onWheelCapture:g,onTouchMoveCapture:v}),document.addEventListener("wheel",f,po),document.addEventListener("touchmove",f,po),document.addEventListener("touchstart",m,po),function(){mo=mo.filter(function(S){return S!==a}),document.removeEventListener("wheel",f,po),document.removeEventListener("touchmove",f,po),document.removeEventListener("touchstart",m,po)}},[]);var b=e.removeScrollBar,w=e.inert;return _.createElement(_.Fragment,null,w?_.createElement(a,{styles:lR(o)}):null,b?_.createElement(JT,{gapMode:e.gapMode}):null)}function dR(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const fR=BT(hw,cR);var vw=_.forwardRef(function(e,t){return _.createElement(Lc,Mr({},e,{ref:t,sideCar:fR}))});vw.classNames=Lc.classNames;var hR=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},go=new WeakMap,Uu=new WeakMap,$u={},Jf=0,xw=function(e){return e&&(e.host||xw(e.parentNode))},pR=function(e,t){return t.map(function(n){if(e.contains(n))return n;var s=xw(n);return s&&e.contains(s)?s:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},mR=function(e,t,n,s){var o=pR(t,Array.isArray(e)?e:[e]);$u[n]||($u[n]=new WeakMap);var a=$u[n],u=[],c=new Set,f=new Set(o),h=function(g){!g||c.has(g)||(c.add(g),h(g.parentNode))};o.forEach(h);var m=function(g){!g||f.has(g)||Array.prototype.forEach.call(g.children,function(v){if(c.has(v))m(v);else try{var b=v.getAttribute(s),w=b!==null&&b!=="false",S=(go.get(v)||0)+1,C=(a.get(v)||0)+1;go.set(v,S),a.set(v,C),u.push(v),S===1&&w&&Uu.set(v,!0),C===1&&v.setAttribute(n,"true"),w||v.setAttribute(s,"true")}catch(E){console.error("aria-hidden: cannot operate on ",v,E)}})};return m(t),c.clear(),Jf++,function(){u.forEach(function(g){var v=go.get(g)-1,b=a.get(g)-1;go.set(g,v),a.set(g,b),v||(Uu.has(g)||g.removeAttribute(s),Uu.delete(g)),b||g.removeAttribute(n)}),Jf--,Jf||(go=new WeakMap,go=new WeakMap,Uu=new WeakMap,$u={})}},gR=function(e,t,n){n===void 0&&(n="data-aria-hidden");var s=Array.from(Array.isArray(e)?e:[e]),o=hR(e);return o?(s.push.apply(s,Array.from(o.querySelectorAll("[aria-live]"))),mR(s,o,n,"aria-hidden")):function(){return null}},bp="Dialog",[ww,oI]=wl(bp),[yR,Er]=ww(bp),Sw=e=>{const{__scopeDialog:t,children:n,open:s,defaultOpen:o,onOpenChange:a,modal:u=!0}=e,c=_.useRef(null),f=_.useRef(null),[h=!1,m]=Sp({prop:s,defaultProp:o,onChange:a});return x.jsx(yR,{scope:t,triggerRef:c,contentRef:f,contentId:Xu(),titleId:Xu(),descriptionId:Xu(),open:h,onOpenChange:m,onOpenToggle:_.useCallback(()=>m(g=>!g),[m]),modal:u,children:n})};Sw.displayName=bp;var bw="DialogTrigger",_w=_.forwardRef((e,t)=>{const{__scopeDialog:n,...s}=e,o=Er(bw,n),a=or(t,o.triggerRef);return x.jsx(_n.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Cp(o.open),...s,ref:a,onClick:on(e.onClick,o.onOpenToggle)})});_w.displayName=bw;var _p="DialogPortal",[vR,Ew]=ww(_p,{forceMount:void 0}),Cw=e=>{const{__scopeDialog:t,forceMount:n,children:s,container:o}=e,a=Er(_p,t);return x.jsx(vR,{scope:t,forceMount:n,children:_.Children.map(s,u=>x.jsx(Sl,{present:n||a.open,children:x.jsx(cw,{asChild:!0,container:o,children:u})}))})};Cw.displayName=_p;var cc="DialogOverlay",kw=_.forwardRef((e,t)=>{const n=Ew(cc,e.__scopeDialog),{forceMount:s=n.forceMount,...o}=e,a=Er(cc,e.__scopeDialog);return a.modal?x.jsx(Sl,{present:s||a.open,children:x.jsx(xR,{...o,ref:t})}):null});kw.displayName=cc;var xR=_.forwardRef((e,t)=>{const{__scopeDialog:n,...s}=e,o=Er(cc,n);return x.jsx(vw,{as:Pi,allowPinchZoom:!0,shards:[o.contentRef],children:x.jsx(_n.div,{"data-state":Cp(o.open),...s,ref:t,style:{pointerEvents:"auto",...s.style}})})}),Ni="DialogContent",Tw=_.forwardRef((e,t)=>{const n=Ew(Ni,e.__scopeDialog),{forceMount:s=n.forceMount,...o}=e,a=Er(Ni,e.__scopeDialog);return x.jsx(Sl,{present:s||a.open,children:a.modal?x.jsx(wR,{...o,ref:t}):x.jsx(SR,{...o,ref:t})})});Tw.displayName=Ni;var wR=_.forwardRef((e,t)=>{const n=Er(Ni,e.__scopeDialog),s=_.useRef(null),o=or(t,n.contentRef,s);return _.useEffect(()=>{const a=s.current;if(a)return gR(a)},[]),x.jsx(Rw,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:on(e.onCloseAutoFocus,a=>{var u;a.preventDefault(),(u=n.triggerRef.current)==null||u.focus()}),onPointerDownOutside:on(e.onPointerDownOutside,a=>{const u=a.detail.originalEvent,c=u.button===0&&u.ctrlKey===!0;(u.button===2||c)&&a.preventDefault()}),onFocusOutside:on(e.onFocusOutside,a=>a.preventDefault())})}),SR=_.forwardRef((e,t)=>{const n=Er(Ni,e.__scopeDialog),s=_.useRef(!1),o=_.useRef(!1);return x.jsx(Rw,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{var u,c;(u=e.onCloseAutoFocus)==null||u.call(e,a),a.defaultPrevented||(s.current||(c=n.triggerRef.current)==null||c.focus(),a.preventDefault()),s.current=!1,o.current=!1},onInteractOutside:a=>{var f,h;(f=e.onInteractOutside)==null||f.call(e,a),a.defaultPrevented||(s.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const u=a.target;((h=n.triggerRef.current)==null?void 0:h.contains(u))&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}})}),Rw=_.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:s,onOpenAutoFocus:o,onCloseAutoFocus:a,...u}=e,c=Er(Ni,n),f=_.useRef(null),h=or(t,f);return NT(),x.jsxs(x.Fragment,{children:[x.jsx(lw,{asChild:!0,loop:!0,trapped:s,onMountAutoFocus:o,onUnmountAutoFocus:a,children:x.jsx(ow,{role:"dialog",id:c.contentId,"aria-describedby":c.descriptionId,"aria-labelledby":c.titleId,"data-state":Cp(c.open),...u,ref:h,onDismiss:()=>c.onOpenChange(!1)})}),x.jsxs(x.Fragment,{children:[x.jsx(bR,{titleId:c.titleId}),x.jsx(ER,{contentRef:f,descriptionId:c.descriptionId})]})]})}),Ep="DialogTitle",Pw=_.forwardRef((e,t)=>{const{__scopeDialog:n,...s}=e,o=Er(Ep,n);return x.jsx(_n.h2,{id:o.titleId,...s,ref:t})});Pw.displayName=Ep;var Nw="DialogDescription",Aw=_.forwardRef((e,t)=>{const{__scopeDialog:n,...s}=e,o=Er(Nw,n);return x.jsx(_n.p,{id:o.descriptionId,...s,ref:t})});Aw.displayName=Nw;var jw="DialogClose",Dw=_.forwardRef((e,t)=>{const{__scopeDialog:n,...s}=e,o=Er(jw,n);return x.jsx(_n.button,{type:"button",...s,ref:t,onClick:on(e.onClick,()=>o.onOpenChange(!1))})});Dw.displayName=jw;function Cp(e){return e?"open":"closed"}var Lw="DialogTitleWarning",[aI,Mw]=eT(Lw,{contentName:Ni,titleName:Ep,docsSlug:"dialog"}),bR=({titleId:e})=>{const t=Mw(Lw),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
||
|
||
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
|
||
|
||
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return _.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},_R="DialogDescriptionWarning",ER=({contentRef:e,descriptionId:t})=>{const s=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Mw(_R).contentName}}.`;return _.useEffect(()=>{var a;const o=(a=e.current)==null?void 0:a.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(s))},[s,e,t]),null},CR=Sw,kR=_w,TR=Cw,Ow=kw,Fw=Tw,Iw=Pw,Vw=Aw,Bw=Dw;function zw(e){var t,n,s="";if(typeof e=="string"||typeof e=="number")s+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=zw(e[t]))&&(s&&(s+=" "),s+=n)}else for(n in e)e[n]&&(s&&(s+=" "),s+=n);return s}function Uw(){for(var e,t,n=0,s="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=zw(e))&&(s&&(s+=" "),s+=t);return s}const Bv=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,zv=Uw,kp=(e,t)=>n=>{var s;if((t==null?void 0:t.variants)==null)return zv(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:o,defaultVariants:a}=t,u=Object.keys(o).map(h=>{const m=n==null?void 0:n[h],g=a==null?void 0:a[h];if(m===null)return null;const v=Bv(m)||Bv(g);return o[h][v]}),c=n&&Object.entries(n).reduce((h,m)=>{let[g,v]=m;return v===void 0||(h[g]=v),h},{}),f=t==null||(s=t.compoundVariants)===null||s===void 0?void 0:s.reduce((h,m)=>{let{class:g,className:v,...b}=m;return Object.entries(b).every(w=>{let[S,C]=w;return Array.isArray(C)?C.includes({...a,...c}[S]):{...a,...c}[S]===C})?[...h,g,v]:h},[]);return zv(e,u,f,n==null?void 0:n.class,n==null?void 0:n.className)};/**
|
||
* @license lucide-react v0.473.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const RR=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),$w=(...e)=>e.filter((t,n,s)=>!!t&&t.trim()!==""&&s.indexOf(t)===n).join(" ").trim();/**
|
||
* @license lucide-react v0.473.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/var PR={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"};/**
|
||
* @license lucide-react v0.473.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const NR=_.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:s,className:o="",children:a,iconNode:u,...c},f)=>_.createElement("svg",{ref:f,...PR,width:t,height:t,stroke:e,strokeWidth:s?Number(n)*24/Number(t):n,className:$w("lucide",o),...c},[...u.map(([h,m])=>_.createElement(h,m)),...Array.isArray(a)?a:[a]]));/**
|
||
* @license lucide-react v0.473.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Ii=(e,t)=>{const n=_.forwardRef(({className:s,...o},a)=>_.createElement(NR,{ref:a,iconNode:t,className:$w(`lucide-${RR(e)}`,s),...o}));return n.displayName=`${e}`,n};/**
|
||
* @license lucide-react v0.473.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const AR=[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]],jR=Ii("ArrowUpRight",AR);/**
|
||
* @license lucide-react v0.473.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const DR=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],LR=Ii("LoaderCircle",DR);/**
|
||
* @license lucide-react v0.473.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const MR=[["path",{d:"M12 2v4",key:"3427ic"}],["path",{d:"m16.2 7.8 2.9-2.9",key:"r700ao"}],["path",{d:"M18 12h4",key:"wj9ykh"}],["path",{d:"m16.2 16.2 2.9 2.9",key:"1bxg5t"}],["path",{d:"M12 18v4",key:"jadmvz"}],["path",{d:"m4.9 19.1 2.9-2.9",key:"bwix9q"}],["path",{d:"M2 12h4",key:"j09sii"}],["path",{d:"m4.9 4.9 2.9 2.9",key:"giyufr"}]],Tp=Ii("Loader",MR);/**
|
||
* @license lucide-react v0.473.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const OR=[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]],FR=Ii("MapPin",OR);/**
|
||
* @license lucide-react v0.473.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const IR=[["rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2",key:"1yt0o3"}],["path",{d:"M12 18h.01",key:"mhygvu"}]],VR=Ii("Smartphone",IR);/**
|
||
* @license lucide-react v0.473.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const BR=[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"17 8 12 3 7 8",key:"t8dd8p"}],["line",{x1:"12",x2:"12",y1:"3",y2:"15",key:"widbto"}]],zR=Ii("Upload",BR);/**
|
||
* @license lucide-react v0.473.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const UR=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],$R=Ii("X",UR),Rp="-",WR=e=>{const t=GR(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:s}=e;return{getClassGroupId:u=>{const c=u.split(Rp);return c[0]===""&&c.length!==1&&c.shift(),Ww(c,t)||HR(u)},getConflictingClassGroupIds:(u,c)=>{const f=n[u]||[];return c&&s[u]?[...f,...s[u]]:f}}},Ww=(e,t)=>{var u;if(e.length===0)return t.classGroupId;const n=e[0],s=t.nextPart.get(n),o=s?Ww(e.slice(1),s):void 0;if(o)return o;if(t.validators.length===0)return;const a=e.join(Rp);return(u=t.validators.find(({validator:c})=>c(a)))==null?void 0:u.classGroupId},Uv=/^\[(.+)\]$/,HR=e=>{if(Uv.test(e)){const t=Uv.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},GR=e=>{const{theme:t,prefix:n}=e,s={nextPart:new Map,validators:[]};return KR(Object.entries(e.classGroups),n).forEach(([a,u])=>{Ph(u,s,a,t)}),s},Ph=(e,t,n,s)=>{e.forEach(o=>{if(typeof o=="string"){const a=o===""?t:$v(t,o);a.classGroupId=n;return}if(typeof o=="function"){if(ZR(o)){Ph(o(s),t,n,s);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([a,u])=>{Ph(u,$v(t,a),n,s)})})},$v=(e,t)=>{let n=e;return t.split(Rp).forEach(s=>{n.nextPart.has(s)||n.nextPart.set(s,{nextPart:new Map,validators:[]}),n=n.nextPart.get(s)}),n},ZR=e=>e.isThemeGetter,KR=(e,t)=>t?e.map(([n,s])=>{const o=s.map(a=>typeof a=="string"?t+a:typeof a=="object"?Object.fromEntries(Object.entries(a).map(([u,c])=>[t+u,c])):a);return[n,o]}):e,qR=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,s=new Map;const o=(a,u)=>{n.set(a,u),t++,t>e&&(t=0,s=n,n=new Map)};return{get(a){let u=n.get(a);if(u!==void 0)return u;if((u=s.get(a))!==void 0)return o(a,u),u},set(a,u){n.has(a)?n.set(a,u):o(a,u)}}},Hw="!",YR=e=>{const{separator:t,experimentalParseClassName:n}=e,s=t.length===1,o=t[0],a=t.length,u=c=>{const f=[];let h=0,m=0,g;for(let C=0;C<c.length;C++){let E=c[C];if(h===0){if(E===o&&(s||c.slice(C,C+a)===t)){f.push(c.slice(m,C)),m=C+a;continue}if(E==="/"){g=C;continue}}E==="["?h++:E==="]"&&h--}const v=f.length===0?c:c.substring(m),b=v.startsWith(Hw),w=b?v.substring(1):v,S=g&&g>m?g-m:void 0;return{modifiers:f,hasImportantModifier:b,baseClassName:w,maybePostfixModifierPosition:S}};return n?c=>n({className:c,parseClassName:u}):u},XR=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(s=>{s[0]==="["?(t.push(...n.sort(),s),n=[]):n.push(s)}),t.push(...n.sort()),t},QR=e=>({cache:qR(e.cacheSize),parseClassName:YR(e),...WR(e)}),JR=/\s+/,eP=(e,t)=>{const{parseClassName:n,getClassGroupId:s,getConflictingClassGroupIds:o}=t,a=[],u=e.trim().split(JR);let c="";for(let f=u.length-1;f>=0;f-=1){const h=u[f],{modifiers:m,hasImportantModifier:g,baseClassName:v,maybePostfixModifierPosition:b}=n(h);let w=!!b,S=s(w?v.substring(0,b):v);if(!S){if(!w){c=h+(c.length>0?" "+c:c);continue}if(S=s(v),!S){c=h+(c.length>0?" "+c:c);continue}w=!1}const C=XR(m).join(":"),E=g?C+Hw:C,R=E+S;if(a.includes(R))continue;a.push(R);const N=o(S,w);for(let I=0;I<N.length;++I){const T=N[I];a.push(E+T)}c=h+(c.length>0?" "+c:c)}return c};function tP(){let e=0,t,n,s="";for(;e<arguments.length;)(t=arguments[e++])&&(n=Gw(t))&&(s&&(s+=" "),s+=n);return s}const Gw=e=>{if(typeof e=="string")return e;let t,n="";for(let s=0;s<e.length;s++)e[s]&&(t=Gw(e[s]))&&(n&&(n+=" "),n+=t);return n};function nP(e,...t){let n,s,o,a=u;function u(f){const h=t.reduce((m,g)=>g(m),e());return n=QR(h),s=n.cache.get,o=n.cache.set,a=c,c(f)}function c(f){const h=s(f);if(h)return h;const m=eP(f,n);return o(f,m),m}return function(){return a(tP.apply(null,arguments))}}const Ct=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},Zw=/^\[(?:([a-z-]+):)?(.+)\]$/i,rP=/^\d+\/\d+$/,sP=new Set(["px","full","screen"]),iP=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,oP=/\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$/,aP=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,lP=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,uP=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,is=e=>ko(e)||sP.has(e)||rP.test(e),Bs=e=>Lo(e,"length",yP),ko=e=>!!e&&!Number.isNaN(Number(e)),eh=e=>Lo(e,"number",ko),_a=e=>!!e&&Number.isInteger(Number(e)),cP=e=>e.endsWith("%")&&ko(e.slice(0,-1)),et=e=>Zw.test(e),zs=e=>iP.test(e),dP=new Set(["length","size","percentage"]),fP=e=>Lo(e,dP,Kw),hP=e=>Lo(e,"position",Kw),pP=new Set(["image","url"]),mP=e=>Lo(e,pP,xP),gP=e=>Lo(e,"",vP),Ea=()=>!0,Lo=(e,t,n)=>{const s=Zw.exec(e);return s?s[1]?typeof t=="string"?s[1]===t:t.has(s[1]):n(s[2]):!1},yP=e=>oP.test(e)&&!aP.test(e),Kw=()=>!1,vP=e=>lP.test(e),xP=e=>uP.test(e),wP=()=>{const e=Ct("colors"),t=Ct("spacing"),n=Ct("blur"),s=Ct("brightness"),o=Ct("borderColor"),a=Ct("borderRadius"),u=Ct("borderSpacing"),c=Ct("borderWidth"),f=Ct("contrast"),h=Ct("grayscale"),m=Ct("hueRotate"),g=Ct("invert"),v=Ct("gap"),b=Ct("gradientColorStops"),w=Ct("gradientColorStopPositions"),S=Ct("inset"),C=Ct("margin"),E=Ct("opacity"),R=Ct("padding"),N=Ct("saturate"),I=Ct("scale"),T=Ct("sepia"),F=Ct("skew"),z=Ct("space"),O=Ct("translate"),q=()=>["auto","contain","none"],te=()=>["auto","hidden","clip","visible","scroll"],pe=()=>["auto",et,t],X=()=>[et,t],de=()=>["",is,Bs],ke=()=>["auto",ko,et],we=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],De=()=>["solid","dashed","dotted","double","none"],me=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Y=()=>["start","end","center","between","around","evenly","stretch"],ue=()=>["","0",et],ie=()=>["auto","avoid","all","avoid-page","page","left","right","column"],L=()=>[ko,et];return{cacheSize:500,separator:":",theme:{colors:[Ea],spacing:[is,Bs],blur:["none","",zs,et],brightness:L(),borderColor:[e],borderRadius:["none","","full",zs,et],borderSpacing:X(),borderWidth:de(),contrast:L(),grayscale:ue(),hueRotate:L(),invert:ue(),gap:X(),gradientColorStops:[e],gradientColorStopPositions:[cP,Bs],inset:pe(),margin:pe(),opacity:L(),padding:X(),saturate:L(),scale:L(),sepia:ue(),skew:L(),space:X(),translate:X()},classGroups:{aspect:[{aspect:["auto","square","video",et]}],container:["container"],columns:[{columns:[zs]}],"break-after":[{"break-after":ie()}],"break-before":[{"break-before":ie()}],"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"],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:[...we(),et]}],overflow:[{overflow:te()}],"overflow-x":[{"overflow-x":te()}],"overflow-y":[{"overflow-y":te()}],overscroll:[{overscroll:q()}],"overscroll-x":[{"overscroll-x":q()}],"overscroll-y":[{"overscroll-y":q()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[S]}],"inset-x":[{"inset-x":[S]}],"inset-y":[{"inset-y":[S]}],start:[{start:[S]}],end:[{end:[S]}],top:[{top:[S]}],right:[{right:[S]}],bottom:[{bottom:[S]}],left:[{left:[S]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",_a,et]}],basis:[{basis:pe()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",et]}],grow:[{grow:ue()}],shrink:[{shrink:ue()}],order:[{order:["first","last","none",_a,et]}],"grid-cols":[{"grid-cols":[Ea]}],"col-start-end":[{col:["auto",{span:["full",_a,et]},et]}],"col-start":[{"col-start":ke()}],"col-end":[{"col-end":ke()}],"grid-rows":[{"grid-rows":[Ea]}],"row-start-end":[{row:["auto",{span:[_a,et]},et]}],"row-start":[{"row-start":ke()}],"row-end":[{"row-end":ke()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",et]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",et]}],gap:[{gap:[v]}],"gap-x":[{"gap-x":[v]}],"gap-y":[{"gap-y":[v]}],"justify-content":[{justify:["normal",...Y()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...Y(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...Y(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[R]}],px:[{px:[R]}],py:[{py:[R]}],ps:[{ps:[R]}],pe:[{pe:[R]}],pt:[{pt:[R]}],pr:[{pr:[R]}],pb:[{pb:[R]}],pl:[{pl:[R]}],m:[{m:[C]}],mx:[{mx:[C]}],my:[{my:[C]}],ms:[{ms:[C]}],me:[{me:[C]}],mt:[{mt:[C]}],mr:[{mr:[C]}],mb:[{mb:[C]}],ml:[{ml:[C]}],"space-x":[{"space-x":[z]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[z]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",et,t]}],"min-w":[{"min-w":[et,t,"min","max","fit"]}],"max-w":[{"max-w":[et,t,"none","full","min","max","fit","prose",{screen:[zs]},zs]}],h:[{h:[et,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[et,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[et,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[et,t,"auto","min","max","fit"]}],"font-size":[{text:["base",zs,Bs]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",eh]}],"font-family":[{font:[Ea]}],"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:["tighter","tight","normal","wide","wider","widest",et]}],"line-clamp":[{"line-clamp":["none",ko,eh]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",is,et]}],"list-image":[{"list-image":["none",et]}],"list-style-type":[{list:["none","disc","decimal",et]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[E]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[E]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...De(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",is,Bs]}],"underline-offset":[{"underline-offset":["auto",is,et]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:X()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",et]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",et]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[E]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...we(),hP]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",fP]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},mP]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[w]}],"gradient-via-pos":[{via:[w]}],"gradient-to-pos":[{to:[w]}],"gradient-from":[{from:[b]}],"gradient-via":[{via:[b]}],"gradient-to":[{to:[b]}],rounded:[{rounded:[a]}],"rounded-s":[{"rounded-s":[a]}],"rounded-e":[{"rounded-e":[a]}],"rounded-t":[{"rounded-t":[a]}],"rounded-r":[{"rounded-r":[a]}],"rounded-b":[{"rounded-b":[a]}],"rounded-l":[{"rounded-l":[a]}],"rounded-ss":[{"rounded-ss":[a]}],"rounded-se":[{"rounded-se":[a]}],"rounded-ee":[{"rounded-ee":[a]}],"rounded-es":[{"rounded-es":[a]}],"rounded-tl":[{"rounded-tl":[a]}],"rounded-tr":[{"rounded-tr":[a]}],"rounded-br":[{"rounded-br":[a]}],"rounded-bl":[{"rounded-bl":[a]}],"border-w":[{border:[c]}],"border-w-x":[{"border-x":[c]}],"border-w-y":[{"border-y":[c]}],"border-w-s":[{"border-s":[c]}],"border-w-e":[{"border-e":[c]}],"border-w-t":[{"border-t":[c]}],"border-w-r":[{"border-r":[c]}],"border-w-b":[{"border-b":[c]}],"border-w-l":[{"border-l":[c]}],"border-opacity":[{"border-opacity":[E]}],"border-style":[{border:[...De(),"hidden"]}],"divide-x":[{"divide-x":[c]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[c]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[E]}],"divide-style":[{divide:De()}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-s":[{"border-s":[o]}],"border-color-e":[{"border-e":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["",...De()]}],"outline-offset":[{"outline-offset":[is,et]}],"outline-w":[{outline:[is,Bs]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:de()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[E]}],"ring-offset-w":[{"ring-offset":[is,Bs]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",zs,gP]}],"shadow-color":[{shadow:[Ea]}],opacity:[{opacity:[E]}],"mix-blend":[{"mix-blend":[...me(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":me()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[s]}],contrast:[{contrast:[f]}],"drop-shadow":[{"drop-shadow":["","none",zs,et]}],grayscale:[{grayscale:[h]}],"hue-rotate":[{"hue-rotate":[m]}],invert:[{invert:[g]}],saturate:[{saturate:[N]}],sepia:[{sepia:[T]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[s]}],"backdrop-contrast":[{"backdrop-contrast":[f]}],"backdrop-grayscale":[{"backdrop-grayscale":[h]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[m]}],"backdrop-invert":[{"backdrop-invert":[g]}],"backdrop-opacity":[{"backdrop-opacity":[E]}],"backdrop-saturate":[{"backdrop-saturate":[N]}],"backdrop-sepia":[{"backdrop-sepia":[T]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[u]}],"border-spacing-x":[{"border-spacing-x":[u]}],"border-spacing-y":[{"border-spacing-y":[u]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",et]}],duration:[{duration:L()}],ease:[{ease:["linear","in","out","in-out",et]}],delay:[{delay:L()}],animate:[{animate:["none","spin","ping","pulse","bounce",et]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[I]}],"scale-x":[{"scale-x":[I]}],"scale-y":[{"scale-y":[I]}],rotate:[{rotate:[_a,et]}],"translate-x":[{"translate-x":[O]}],"translate-y":[{"translate-y":[O]}],"skew-x":[{"skew-x":[F]}],"skew-y":[{"skew-y":[F]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",et]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],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",et]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":X()}],"scroll-mx":[{"scroll-mx":X()}],"scroll-my":[{"scroll-my":X()}],"scroll-ms":[{"scroll-ms":X()}],"scroll-me":[{"scroll-me":X()}],"scroll-mt":[{"scroll-mt":X()}],"scroll-mr":[{"scroll-mr":X()}],"scroll-mb":[{"scroll-mb":X()}],"scroll-ml":[{"scroll-ml":X()}],"scroll-p":[{"scroll-p":X()}],"scroll-px":[{"scroll-px":X()}],"scroll-py":[{"scroll-py":X()}],"scroll-ps":[{"scroll-ps":X()}],"scroll-pe":[{"scroll-pe":X()}],"scroll-pt":[{"scroll-pt":X()}],"scroll-pr":[{"scroll-pr":X()}],"scroll-pb":[{"scroll-pb":X()}],"scroll-pl":[{"scroll-pl":X()}],"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",et]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[is,Bs,eh]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},SP=nP(wP);function Ye(...e){return SP(Uw(e))}const bP=CR,_P=kR,EP=Bw,CP=TR,qw=_.forwardRef(({className:e,...t},n)=>x.jsx(Ow,{className:Ye("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t,ref:n}));qw.displayName=Ow.displayName;const kP=kp("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500 data-[state=open]:animate-in data-[state=closed]:animate-out",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-full data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),Yw=_.forwardRef(({side:e="right",className:t,children:n,...s},o)=>x.jsxs(CP,{children:[x.jsx(qw,{}),x.jsxs(Fw,{ref:o,className:Ye(kP({side:e}),t),...s,children:[x.jsxs(Bw,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary",children:[x.jsx($R,{className:"h-4 w-4"}),x.jsx("span",{className:"sr-only",children:"Close"})]}),n]})]}));Yw.displayName=Fw.displayName;const Xw=({className:e,...t})=>x.jsx("div",{className:Ye("flex flex-col space-y-2 text-center sm:text-left",e),...t});Xw.displayName="SheetHeader";const TP=_.forwardRef(({className:e,...t},n)=>x.jsx(Iw,{ref:n,className:Ye("text-lg font-semibold text-foreground",e),...t}));TP.displayName=Iw.displayName;const RP=_.forwardRef(({className:e,...t},n)=>x.jsx(Vw,{ref:n,className:Ye("text-sm text-muted-foreground",e),...t}));RP.displayName=Vw.displayName;const PP=kp("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-[18px] leading-[140%] font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-on_primary shadow hover:bg-primary/90",teritary:"bg-teritary hover:bg-teritary/90 text-on_surface",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-outline text-on_surface",secondary:"bg-secondary_container hover:bg-secondary_container/80 text-on_secondary_container",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-white h-8"},size:{default:"h-12 px-5 py-2 rounded-[2px]",sm:"h-10 text-base px-4 rounded-[2px]",lg:"lg:h-[88px] h-12 rounded-[2px] px-8 ",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),Jt=_.forwardRef(({className:e,variant:t,size:n,asChild:s=!1,...o},a)=>{const u=s?Pi:"button";return x.jsx(u,{className:Ye(PP({variant:t,size:n,className:e})),ref:a,...o})});Jt.displayName="Button";const Qw=({className:e})=>x.jsx("div",{className:Ye("",e),children:x.jsx("img",{src:"/logo.svg",alt:"logo"})}),Jw=({className:e,img:t,title:n,iconClassName:s})=>x.jsxs("article",{className:Ye("bg-bg_surface_container relative hover:bg-teritary_surface_container transition-all md:px-6 px-2 md:h-[224px] h-[124px]",e),children:[x.jsx("div",{className:"bg-primary size-full -z-[10] absolute top-2.5 left-2.5"}),x.jsx("div",{className:Ye("md:size-[84px] size-12 bg-teritary p-3",s),children:x.jsx("img",{src:t,alt:"theme icon"})}),x.jsx("h3",{className:"md:mt-6 mt-2 md:text-xl text-sm",children:n})]}),NP=({className:e,nums:t,text:n})=>x.jsxs("article",{className:Ye("px-6 py-4 relative bg-surface_container h-[160px] w-full overflow-hidden",e),children:[x.jsx("img",{src:"/about-card-bg.svg",className:"absolute top-2 right-0"}),x.jsx("h2",{className:"text-primary text-[32px] semibold leading-[130%] mb-4",children:t}),x.jsx("h4",{className:"text-on_surface normal text-base",children:n})]}),Wv=({className:e,title:t,text:n,img:s})=>x.jsxs("article",{className:Ye("md:px-8 md:py-6 p-4 relative overflow-hidden h-[296px] md:w-full w-[300px] text-on_primary",e),children:[x.jsx("div",{className:"absolute size-full z-10 top-0 left-0 bg-gradient-to-r from-25% from-primary to-primary/20 "}),x.jsx("img",{src:s,className:"absolute size-full top-0 right-0 object-cover"}),x.jsxs("div",{className:"relative z-20",children:[x.jsx("h4",{className:"md:text-2xl text-lg mb-4 max-w-[444px] z-20 h-16",children:t}),x.jsx("p",{className:"md:text-base text-sm normal max-w-[360px] z-20",children:n}),x.jsxs(Jt,{className:"text-sm px-0 mt-4 py-1.5 z-20",variant:"link",children:["Скачать PDF ",x.jsx(jR,{})]})]})]}),eS=({className:e,name:t,date:n,bottomClassName:s})=>x.jsxs("div",{className:Ye("rounded-t-[4px] overflow-hidden",e),children:[x.jsx("div",{className:"bg-teritary text-white flex items-center h-11 px-4",children:t}),x.jsx("div",{className:Ye("h-14 bg-bg_surface_container semibold flex items-center text-lg px-4",s),children:n})]}),AP=({className:e,subtitle:t,title:n,img:s})=>x.jsxs("div",{className:Ye("flex items-center gap-4",e),children:[x.jsx("div",{className:"bg-secondary_container size-16 rounded-[2px] p-3",children:x.jsx("img",{src:s,alt:"contact icon",className:"size-full"})}),x.jsxs("div",{className:"flex flex-col gap-2",children:[x.jsx("h5",{className:"text-sm text-[#454545]",children:t}),x.jsx("h4",{className:"text-[#171717] semibold",children:n})]})]}),Pp=_.createContext({});function Np(e){const t=_.useRef(null);return t.current===null&&(t.current=e()),t.current}const Mc=_.createContext(null),Ap=_.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});class jP extends _.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const s=n.offsetParent,o=s instanceof HTMLElement&&s.offsetWidth||0,a=this.props.sizeRef.current;a.height=n.offsetHeight||0,a.width=n.offsetWidth||0,a.top=n.offsetTop,a.left=n.offsetLeft,a.right=o-a.width-a.left}return null}componentDidUpdate(){}render(){return this.props.children}}function DP({children:e,isPresent:t,anchorX:n}){const s=_.useId(),o=_.useRef(null),a=_.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:u}=_.useContext(Ap);return _.useInsertionEffect(()=>{const{width:c,height:f,top:h,left:m,right:g}=a.current;if(t||!o.current||!c||!f)return;const v=n==="left"?`left: ${m}`:`right: ${g}`;o.current.dataset.motionPopId=s;const b=document.createElement("style");return u&&(b.nonce=u),document.head.appendChild(b),b.sheet&&b.sheet.insertRule(`
|
||
[data-motion-pop-id="${s}"] {
|
||
position: absolute !important;
|
||
width: ${c}px !important;
|
||
height: ${f}px !important;
|
||
${v}px !important;
|
||
top: ${h}px !important;
|
||
}
|
||
`),()=>{document.head.removeChild(b)}},[t]),x.jsx(jP,{isPresent:t,childRef:o,sizeRef:a,children:_.cloneElement(e,{ref:o})})}const LP=({children:e,initial:t,isPresent:n,onExitComplete:s,custom:o,presenceAffectsLayout:a,mode:u,anchorX:c})=>{const f=Np(MP),h=_.useId(),m=_.useCallback(v=>{f.set(v,!0);for(const b of f.values())if(!b)return;s&&s()},[f,s]),g=_.useMemo(()=>({id:h,initial:t,isPresent:n,custom:o,onExitComplete:m,register:v=>(f.set(v,!1),()=>f.delete(v))}),a?[Math.random(),m]:[n,m]);return _.useMemo(()=>{f.forEach((v,b)=>f.set(b,!1))},[n]),_.useEffect(()=>{!n&&!f.size&&s&&s()},[n]),u==="popLayout"&&(e=x.jsx(DP,{isPresent:n,anchorX:c,children:e})),x.jsx(Mc.Provider,{value:g,children:e})};function MP(){return new Map}function tS(e=!0){const t=_.useContext(Mc);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:s,register:o}=t,a=_.useId();_.useEffect(()=>{e&&o(a)},[e]);const u=_.useCallback(()=>e&&s&&s(a),[a,s,e]);return!n&&s?[!1,u]:[!0]}const Wu=e=>e.key||"";function Hv(e){const t=[];return _.Children.forEach(e,n=>{_.isValidElement(n)&&t.push(n)}),t}const jp=typeof window<"u",nS=jp?_.useLayoutEffect:_.useEffect,Oa=({children:e,custom:t,initial:n=!0,onExitComplete:s,presenceAffectsLayout:o=!0,mode:a="sync",propagate:u=!1,anchorX:c="left"})=>{const[f,h]=tS(u),m=_.useMemo(()=>Hv(e),[e]),g=u&&!f?[]:m.map(Wu),v=_.useRef(!0),b=_.useRef(m),w=Np(()=>new Map),[S,C]=_.useState(m),[E,R]=_.useState(m);nS(()=>{v.current=!1,b.current=m;for(let T=0;T<E.length;T++){const F=Wu(E[T]);g.includes(F)?w.delete(F):w.get(F)!==!0&&w.set(F,!1)}},[E,g.length,g.join("-")]);const N=[];if(m!==S){let T=[...m];for(let F=0;F<E.length;F++){const z=E[F],O=Wu(z);g.includes(O)||(T.splice(F,0,z),N.push(z))}a==="wait"&&N.length&&(T=N),R(Hv(T)),C(m);return}const{forceRender:I}=_.useContext(Pp);return x.jsx(x.Fragment,{children:E.map(T=>{const F=Wu(T),z=u&&!f?!1:m===E||g.includes(F),O=()=>{if(w.has(F))w.set(F,!0);else return;let q=!0;w.forEach(te=>{te||(q=!1)}),q&&(I==null||I(),R(b.current),u&&(h==null||h()),s&&s())};return x.jsx(LP,{isPresent:z,initial:!v.current||n?void 0:!1,custom:z?void 0:t,presenceAffectsLayout:o,mode:a,onExitComplete:z?void 0:O,anchorX:c,children:T},F)})})},Hn=e=>e;let Nh=Hn;const OP={skipAnimations:!1,useManualTiming:!1};function FP(e){let t=new Set,n=new Set,s=!1,o=!1;const a=new WeakSet;let u={delta:0,timestamp:0,isProcessing:!1};function c(h){a.has(h)&&(f.schedule(h),e()),h(u)}const f={schedule:(h,m=!1,g=!1)=>{const b=g&&s?t:n;return m&&a.add(h),b.has(h)||b.add(h),h},cancel:h=>{n.delete(h),a.delete(h)},process:h=>{if(u=h,s){o=!0;return}s=!0,[t,n]=[n,t],t.forEach(c),t.clear(),s=!1,o&&(o=!1,f.process(h))}};return f}const Hu=["read","resolveKeyframes","update","preRender","render","postRender"],IP=40;function rS(e,t){let n=!1,s=!0;const o={delta:0,timestamp:0,isProcessing:!1},a=()=>n=!0,u=Hu.reduce((E,R)=>(E[R]=FP(a),E),{}),{read:c,resolveKeyframes:f,update:h,preRender:m,render:g,postRender:v}=u,b=()=>{const E=performance.now();n=!1,o.delta=s?1e3/60:Math.max(Math.min(E-o.timestamp,IP),1),o.timestamp=E,o.isProcessing=!0,c.process(o),f.process(o),h.process(o),m.process(o),g.process(o),v.process(o),o.isProcessing=!1,n&&t&&(s=!1,e(b))},w=()=>{n=!0,s=!0,o.isProcessing||e(b)};return{schedule:Hu.reduce((E,R)=>{const N=u[R];return E[R]=(I,T=!1,F=!1)=>(n||w(),N.schedule(I,T,F)),E},{}),cancel:E=>{for(let R=0;R<Hu.length;R++)u[Hu[R]].cancel(E)},state:o,steps:u}}const{schedule:kt,cancel:qs,state:rn,steps:th}=rS(typeof requestAnimationFrame<"u"?requestAnimationFrame:Hn,!0),sS=_.createContext({strict:!1}),Gv={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"]},Ro={};for(const e in Gv)Ro[e]={isEnabled:t=>Gv[e].some(n=>!!t[n])};function VP(e){for(const t in e)Ro[t]={...Ro[t],...e[t]}}const BP=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 dc(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||BP.has(e)}let iS=e=>!dc(e);function zP(e){e&&(iS=t=>t.startsWith("on")?!dc(t):e(t))}try{zP(require("@emotion/is-prop-valid").default)}catch{}function UP(e,t,n){const s={};for(const o in e)o==="values"&&typeof e.values=="object"||(iS(o)||n===!0&&dc(o)||!t&&!dc(o)||e.draggable&&o.startsWith("onDrag"))&&(s[o]=e[o]);return s}function $P(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...s)=>e(...s);return new Proxy(n,{get:(s,o)=>o==="create"?e:(t.has(o)||t.set(o,e(o)),t.get(o))})}const Oc=_.createContext({});function Ga(e){return typeof e=="string"||Array.isArray(e)}function Fc(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const Dp=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Lp=["initial",...Dp];function Ic(e){return Fc(e.animate)||Lp.some(t=>Ga(e[t]))}function oS(e){return!!(Ic(e)||e.variants)}function WP(e,t){if(Ic(e)){const{initial:n,animate:s}=e;return{initial:n===!1||Ga(n)?n:void 0,animate:Ga(s)?s:void 0}}return e.inherit!==!1?t:{}}function HP(e){const{initial:t,animate:n}=WP(e,_.useContext(Oc));return _.useMemo(()=>({initial:t,animate:n}),[Zv(t),Zv(n)])}function Zv(e){return Array.isArray(e)?e.join(" "):e}const GP=Symbol.for("motionComponentSymbol");function xo(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function ZP(e,t,n){return _.useCallback(s=>{s&&e.onMount&&e.onMount(s),t&&(s?t.mount(s):t.unmount()),n&&(typeof n=="function"?n(s):xo(n)&&(n.current=s))},[t])}const Mp=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),KP="framerAppearId",aS="data-"+Mp(KP),{schedule:Op,cancel:lI}=rS(queueMicrotask,!1),lS=_.createContext({});function qP(e,t,n,s,o){var a,u;const{visualElement:c}=_.useContext(Oc),f=_.useContext(sS),h=_.useContext(Mc),m=_.useContext(Ap).reducedMotion,g=_.useRef(null);s=s||f.renderer,!g.current&&s&&(g.current=s(e,{visualState:t,parent:c,props:n,presenceContext:h,blockInitialAnimation:h?h.initial===!1:!1,reducedMotionConfig:m}));const v=g.current,b=_.useContext(lS);v&&!v.projection&&o&&(v.type==="html"||v.type==="svg")&&YP(g.current,n,o,b);const w=_.useRef(!1);_.useInsertionEffect(()=>{v&&w.current&&v.update(n,h)});const S=n[aS],C=_.useRef(!!S&&!(!((a=window.MotionHandoffIsComplete)===null||a===void 0)&&a.call(window,S))&&((u=window.MotionHasOptimisedAnimation)===null||u===void 0?void 0:u.call(window,S)));return nS(()=>{v&&(w.current=!0,window.MotionIsMounted=!0,v.updateFeatures(),Op.render(v.render),C.current&&v.animationState&&v.animationState.animateChanges())}),_.useEffect(()=>{v&&(!C.current&&v.animationState&&v.animationState.animateChanges(),C.current&&(queueMicrotask(()=>{var E;(E=window.MotionHandoffMarkAsComplete)===null||E===void 0||E.call(window,S)}),C.current=!1))}),v}function YP(e,t,n,s){const{layoutId:o,layout:a,drag:u,dragConstraints:c,layoutScroll:f,layoutRoot:h}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:uS(e.parent)),e.projection.setOptions({layoutId:o,layout:a,alwaysMeasureLayout:!!u||c&&xo(c),visualElement:e,animationType:typeof a=="string"?a:"both",initialPromotionConfig:s,layoutScroll:f,layoutRoot:h})}function uS(e){if(e)return e.options.allowProjection!==!1?e.projection:uS(e.parent)}function XP({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:s,Component:o}){var a,u;e&&VP(e);function c(h,m){let g;const v={..._.useContext(Ap),...h,layoutId:QP(h)},{isStatic:b}=v,w=HP(h),S=s(h,b);if(!b&&jp){JP();const C=eN(v);g=C.MeasureLayout,w.visualElement=qP(o,S,v,t,C.ProjectionNode)}return x.jsxs(Oc.Provider,{value:w,children:[g&&w.visualElement?x.jsx(g,{visualElement:w.visualElement,...v}):null,n(o,h,ZP(S,w.visualElement,m),S,b,w.visualElement)]})}c.displayName=`motion.${typeof o=="string"?o:`create(${(u=(a=o.displayName)!==null&&a!==void 0?a:o.name)!==null&&u!==void 0?u:""})`}`;const f=_.forwardRef(c);return f[GP]=o,f}function QP({layoutId:e}){const t=_.useContext(Pp).id;return t&&e!==void 0?t+"-"+e:e}function JP(e,t){_.useContext(sS).strict}function eN(e){const{drag:t,layout:n}=Ro;if(!t&&!n)return{};const s={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?s.MeasureLayout:void 0,ProjectionNode:s.ProjectionNode}}const tN=["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 Fp(e){return typeof e!="string"||e.includes("-")?!1:!!(tN.indexOf(e)>-1||/[A-Z]/u.test(e))}function Kv(e){const t=[{},{}];return e==null||e.values.forEach((n,s)=>{t[0][s]=n.get(),t[1][s]=n.getVelocity()}),t}function Ip(e,t,n,s){if(typeof t=="function"){const[o,a]=Kv(s);t=t(n!==void 0?n:e.custom,o,a)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[o,a]=Kv(s);t=t(n!==void 0?n:e.custom,o,a)}return t}const Ah=e=>Array.isArray(e),nN=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),rN=e=>Ah(e)?e[e.length-1]||0:e,mn=e=>!!(e&&e.getVelocity);function ec(e){const t=mn(e)?e.get():e;return nN(t)?t.toValue():t}function sN({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},s,o,a){const u={latestValues:iN(s,o,a,e),renderState:t()};return n&&(u.onMount=c=>n({props:s,current:c,...u}),u.onUpdate=c=>n(c)),u}const cS=e=>(t,n)=>{const s=_.useContext(Oc),o=_.useContext(Mc),a=()=>sN(e,t,s,o);return n?a():Np(a)};function iN(e,t,n,s){const o={},a=s(e,{});for(const v in a)o[v]=ec(a[v]);let{initial:u,animate:c}=e;const f=Ic(e),h=oS(e);t&&h&&!f&&e.inherit!==!1&&(u===void 0&&(u=t.initial),c===void 0&&(c=t.animate));let m=n?n.initial===!1:!1;m=m||u===!1;const g=m?c:u;if(g&&typeof g!="boolean"&&!Fc(g)){const v=Array.isArray(g)?g:[g];for(let b=0;b<v.length;b++){const w=Ip(e,v[b]);if(w){const{transitionEnd:S,transition:C,...E}=w;for(const R in E){let N=E[R];if(Array.isArray(N)){const I=m?N.length-1:0;N=N[I]}N!==null&&(o[R]=N)}for(const R in S)o[R]=S[R]}}}return o}const Mo=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Vi=new Set(Mo),dS=e=>t=>typeof t=="string"&&t.startsWith(e),Vp=dS("--"),oN=dS("var(--"),Bp=e=>oN(e)?aN.test(e.split("/*")[0].trim()):!1,aN=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,fS=(e,t)=>t&&typeof e=="number"?t.transform(e):e,hs=(e,t,n)=>n>t?t:n<e?e:n,Oo={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Za={...Oo,transform:e=>hs(0,1,e)},Gu={...Oo,default:1},bl=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Ws=bl("deg"),Vr=bl("%"),ze=bl("px"),lN=bl("vh"),uN=bl("vw"),qv={...Vr,parse:e=>Vr.parse(e)/100,transform:e=>Vr.transform(e*100)},cN={borderWidth:ze,borderTopWidth:ze,borderRightWidth:ze,borderBottomWidth:ze,borderLeftWidth:ze,borderRadius:ze,radius:ze,borderTopLeftRadius:ze,borderTopRightRadius:ze,borderBottomRightRadius:ze,borderBottomLeftRadius:ze,width:ze,maxWidth:ze,height:ze,maxHeight:ze,top:ze,right:ze,bottom:ze,left:ze,padding:ze,paddingTop:ze,paddingRight:ze,paddingBottom:ze,paddingLeft:ze,margin:ze,marginTop:ze,marginRight:ze,marginBottom:ze,marginLeft:ze,backgroundPositionX:ze,backgroundPositionY:ze},dN={rotate:Ws,rotateX:Ws,rotateY:Ws,rotateZ:Ws,scale:Gu,scaleX:Gu,scaleY:Gu,scaleZ:Gu,skew:Ws,skewX:Ws,skewY:Ws,distance:ze,translateX:ze,translateY:ze,translateZ:ze,x:ze,y:ze,z:ze,perspective:ze,transformPerspective:ze,opacity:Za,originX:qv,originY:qv,originZ:ze},Yv={...Oo,transform:Math.round},zp={...cN,...dN,zIndex:Yv,size:ze,fillOpacity:Za,strokeOpacity:Za,numOctaves:Yv},fN={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},hN=Mo.length;function pN(e,t,n){let s="",o=!0;for(let a=0;a<hN;a++){const u=Mo[a],c=e[u];if(c===void 0)continue;let f=!0;if(typeof c=="number"?f=c===(u.startsWith("scale")?1:0):f=parseFloat(c)===0,!f||n){const h=fS(c,zp[u]);if(!f){o=!1;const m=fN[u]||u;s+=`${m}(${h}) `}n&&(t[u]=h)}}return s=s.trim(),n?s=n(t,o?"":s):o&&(s="none"),s}function Up(e,t,n){const{style:s,vars:o,transformOrigin:a}=e;let u=!1,c=!1;for(const f in t){const h=t[f];if(Vi.has(f)){u=!0;continue}else if(Vp(f)){o[f]=h;continue}else{const m=fS(h,zp[f]);f.startsWith("origin")?(c=!0,a[f]=m):s[f]=m}}if(t.transform||(u||n?s.transform=pN(t,e.transform,n):s.transform&&(s.transform="none")),c){const{originX:f="50%",originY:h="50%",originZ:m=0}=a;s.transformOrigin=`${f} ${h} ${m}`}}const mN={offset:"stroke-dashoffset",array:"stroke-dasharray"},gN={offset:"strokeDashoffset",array:"strokeDasharray"};function yN(e,t,n=1,s=0,o=!0){e.pathLength=1;const a=o?mN:gN;e[a.offset]=ze.transform(-s);const u=ze.transform(t),c=ze.transform(n);e[a.array]=`${u} ${c}`}function Xv(e,t,n){return typeof e=="string"?e:ze.transform(t+n*e)}function vN(e,t,n){const s=Xv(t,e.x,e.width),o=Xv(n,e.y,e.height);return`${s} ${o}`}function $p(e,{attrX:t,attrY:n,attrScale:s,originX:o,originY:a,pathLength:u,pathSpacing:c=1,pathOffset:f=0,...h},m,g){if(Up(e,h,g),m){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:v,style:b,dimensions:w}=e;v.transform&&(w&&(b.transform=v.transform),delete v.transform),w&&(o!==void 0||a!==void 0||b.transform)&&(b.transformOrigin=vN(w,o!==void 0?o:.5,a!==void 0?a:.5)),t!==void 0&&(v.x=t),n!==void 0&&(v.y=n),s!==void 0&&(v.scale=s),u!==void 0&&yN(v,u,c,f,!1)}const Wp=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),hS=()=>({...Wp(),attrs:{}}),Hp=e=>typeof e=="string"&&e.toLowerCase()==="svg";function pS(e,{style:t,vars:n},s,o){Object.assign(e.style,t,o&&o.getProjectionStyles(s));for(const a in n)e.style.setProperty(a,n[a])}const mS=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 gS(e,t,n,s){pS(e,t,void 0,s);for(const o in t.attrs)e.setAttribute(mS.has(o)?o:Mp(o),t.attrs[o])}const Ka={};function xN(e){for(const t in e)Ka[t]=e[t],Vp(t)&&(Ka[t].isCSSVariable=!0)}function yS(e,{layout:t,layoutId:n}){return Vi.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Ka[e]||e==="opacity")}function Gp(e,t,n){var s;const{style:o}=e,a={};for(const u in o)(mn(o[u])||t.style&&mn(t.style[u])||yS(u,e)||((s=n==null?void 0:n.getValue(u))===null||s===void 0?void 0:s.liveStyle)!==void 0)&&(a[u]=o[u]);return a}function vS(e,t,n){const s=Gp(e,t,n);for(const o in e)if(mn(e[o])||mn(t[o])){const a=Mo.indexOf(o)!==-1?"attr"+o.charAt(0).toUpperCase()+o.substring(1):o;s[a]=e[o]}return s}function wN(e,t){try{t.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{t.dimensions={x:0,y:0,width:0,height:0}}}const Qv=["x","y","width","height","cx","cy","r"],SN={useVisualState:cS({scrapeMotionValuesFromProps:vS,createRenderState:hS,onUpdate:({props:e,prevProps:t,current:n,renderState:s,latestValues:o})=>{if(!n)return;let a=!!e.drag;if(!a){for(const c in o)if(Vi.has(c)){a=!0;break}}if(!a)return;let u=!t;if(t)for(let c=0;c<Qv.length;c++){const f=Qv[c];e[f]!==t[f]&&(u=!0)}u&&kt.read(()=>{wN(n,s),kt.render(()=>{$p(s,o,Hp(n.tagName),e.transformTemplate),gS(n,s)})})}})},bN={useVisualState:cS({scrapeMotionValuesFromProps:Gp,createRenderState:Wp})};function xS(e,t,n){for(const s in t)!mn(t[s])&&!yS(s,n)&&(e[s]=t[s])}function _N({transformTemplate:e},t){return _.useMemo(()=>{const n=Wp();return Up(n,t,e),Object.assign({},n.vars,n.style)},[t])}function EN(e,t){const n=e.style||{},s={};return xS(s,n,e),Object.assign(s,_N(e,t)),s}function CN(e,t){const n={},s=EN(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,s.userSelect=s.WebkitUserSelect=s.WebkitTouchCallout="none",s.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=s,n}function kN(e,t,n,s){const o=_.useMemo(()=>{const a=hS();return $p(a,t,Hp(s),e.transformTemplate),{...a.attrs,style:{...a.style}}},[t]);if(e.style){const a={};xS(a,e.style,e),o.style={...a,...o.style}}return o}function TN(e=!1){return(n,s,o,{latestValues:a},u)=>{const f=(Fp(n)?kN:CN)(s,a,u,n),h=UP(s,typeof n=="string",e),m=n!==_.Fragment?{...h,...f,ref:o}:{},{children:g}=s,v=_.useMemo(()=>mn(g)?g.get():g,[g]);return _.createElement(n,{...m,children:v})}}function RN(e,t){return function(s,{forwardMotionProps:o}={forwardMotionProps:!1}){const u={...Fp(s)?SN:bN,preloadedFeatures:e,useRender:TN(o),createVisualElement:t,Component:s};return XP(u)}}function wS(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let s=0;s<n;s++)if(t[s]!==e[s])return!1;return!0}function Vc(e,t,n){const s=e.getProps();return Ip(s,t,n!==void 0?n:s.custom,e)}function Zp(e,t){return e?e[t]||e.default||e:void 0}const SS=new Set(["width","height","top","left","right","bottom",...Mo]);let tc;function PN(){tc=void 0}const Br={now:()=>(tc===void 0&&Br.set(rn.isProcessing||OP.useManualTiming?rn.timestamp:performance.now()),tc),set:e=>{tc=e,queueMicrotask(PN)}};function Kp(e,t){e.indexOf(t)===-1&&e.push(t)}function qp(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Yp{constructor(){this.subscriptions=[]}add(t){return Kp(this.subscriptions,t),()=>qp(this.subscriptions,t)}notify(t,n,s){const o=this.subscriptions.length;if(o)if(o===1)this.subscriptions[0](t,n,s);else for(let a=0;a<o;a++){const u=this.subscriptions[a];u&&u(t,n,s)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function bS(e,t){return t?e*(1e3/t):0}const Jv=30,NN=e=>!isNaN(parseFloat(e));class AN{constructor(t,n={}){this.version="12.0.6",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(s,o=!0)=>{const a=Br.now();this.updatedAt!==a&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(s),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(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=Br.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=NN(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new Yp);const s=this.events[t].add(n);return t==="change"?()=>{s(),kt.read(()=>{this.events.change.getSize()||this.stop()})}:s}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,s){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-s}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=Br.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>Jv)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Jv);return bS(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(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 qa(e,t){return new AN(e,t)}function jN(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,qa(n))}function DN(e,t){const n=Vc(e,t);let{transitionEnd:s={},transition:o={},...a}=n||{};a={...a,...s};for(const u in a){const c=rN(a[u]);jN(e,u,c)}}function LN(e){return!!(mn(e)&&e.add)}function jh(e,t){const n=e.getValue("willChange");if(LN(n))return n.add(t)}function _S(e){return e.props[aS]}function Xp(e){let t;return()=>(t===void 0&&(t=e()),t)}const MN=Xp(()=>window.ScrollTimeline!==void 0);class ON{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>"finished"in t?t.finished:t))}getAll(t){return this.animations[0][t]}setAll(t,n){for(let s=0;s<this.animations.length;s++)this.animations[s][t]=n}attachTimeline(t,n){const s=this.animations.map(o=>{if(MN()&&o.attachTimeline)return o.attachTimeline(t);if(typeof n=="function")return n(o)});return()=>{s.forEach((o,a)=>{o&&o(),this.animations[a].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let n=0;n<this.animations.length;n++)t=Math.max(t,this.animations[n].duration);return t}runAll(t){this.animations.forEach(n=>n[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class FN extends ON{then(t,n){return Promise.all(this.animations).then(t).catch(n)}}const cs=e=>e*1e3,ds=e=>e/1e3;function Qp(e){return typeof e=="function"}function ex(e,t){e.timeline=t,e.onfinish=null}const Jp=e=>Array.isArray(e)&&typeof e[0]=="number",IN={linearEasing:void 0};function VN(e,t){const n=Xp(e);return()=>{var s;return(s=IN[t])!==null&&s!==void 0?s:n()}}const fc=VN(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Po=(e,t,n)=>{const s=t-e;return s===0?1:(n-e)/s},ES=(e,t,n=10)=>{let s="";const o=Math.max(Math.round(t/n),2);for(let a=0;a<o;a++)s+=e(Po(0,o-1,a))+", ";return`linear(${s.substring(0,s.length-2)})`};function CS(e){return!!(typeof e=="function"&&fc()||!e||typeof e=="string"&&(e in Dh||fc())||Jp(e)||Array.isArray(e)&&e.every(CS))}const Na=([e,t,n,s])=>`cubic-bezier(${e}, ${t}, ${n}, ${s})`,Dh={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Na([0,.65,.55,1]),circOut:Na([.55,0,1,.45]),backIn:Na([.31,.01,.66,-.59]),backOut:Na([.33,1.53,.69,.99])};function kS(e,t){if(e)return typeof e=="function"&&fc()?ES(e,t):Jp(e)?Na(e):Array.isArray(e)?e.map(n=>kS(n,t)||Dh.easeOut):Dh[e]}const TS=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,BN=1e-7,zN=12;function UN(e,t,n,s,o){let a,u,c=0;do u=t+(n-t)/2,a=TS(u,s,o)-e,a>0?n=u:t=u;while(Math.abs(a)>BN&&++c<zN);return u}function _l(e,t,n,s){if(e===t&&n===s)return Hn;const o=a=>UN(a,0,1,e,n);return a=>a===0||a===1?a:TS(o(a),t,s)}const RS=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,PS=e=>t=>1-e(1-t),NS=_l(.33,1.53,.69,.99),em=PS(NS),AS=RS(em),jS=e=>(e*=2)<1?.5*em(e):.5*(2-Math.pow(2,-10*(e-1))),tm=e=>1-Math.sin(Math.acos(e)),DS=PS(tm),LS=RS(tm),MS=e=>/^0[^.\s]+$/u.test(e);function $N(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||MS(e):!0}const Fa=e=>Math.round(e*1e5)/1e5,nm=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function WN(e){return e==null}const HN=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,rm=(e,t)=>n=>!!(typeof n=="string"&&HN.test(n)&&n.startsWith(e)||t&&!WN(n)&&Object.prototype.hasOwnProperty.call(n,t)),OS=(e,t,n)=>s=>{if(typeof s!="string")return s;const[o,a,u,c]=s.match(nm);return{[e]:parseFloat(o),[t]:parseFloat(a),[n]:parseFloat(u),alpha:c!==void 0?parseFloat(c):1}},GN=e=>hs(0,255,e),nh={...Oo,transform:e=>Math.round(GN(e))},_i={test:rm("rgb","red"),parse:OS("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:s=1})=>"rgba("+nh.transform(e)+", "+nh.transform(t)+", "+nh.transform(n)+", "+Fa(Za.transform(s))+")"};function ZN(e){let t="",n="",s="",o="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),s=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),s=e.substring(3,4),o=e.substring(4,5),t+=t,n+=n,s+=s,o+=o),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(s,16),alpha:o?parseInt(o,16)/255:1}}const Lh={test:rm("#"),parse:ZN,transform:_i.transform},wo={test:rm("hsl","hue"),parse:OS("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:s=1})=>"hsla("+Math.round(e)+", "+Vr.transform(Fa(t))+", "+Vr.transform(Fa(n))+", "+Fa(Za.transform(s))+")"},hn={test:e=>_i.test(e)||Lh.test(e)||wo.test(e),parse:e=>_i.test(e)?_i.parse(e):wo.test(e)?wo.parse(e):Lh.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?_i.transform(e):wo.transform(e)},KN=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function qN(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(nm))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(KN))===null||n===void 0?void 0:n.length)||0)>0}const FS="number",IS="color",YN="var",XN="var(",tx="${}",QN=/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 Ya(e){const t=e.toString(),n=[],s={color:[],number:[],var:[]},o=[];let a=0;const c=t.replace(QN,f=>(hn.test(f)?(s.color.push(a),o.push(IS),n.push(hn.parse(f))):f.startsWith(XN)?(s.var.push(a),o.push(YN),n.push(f)):(s.number.push(a),o.push(FS),n.push(parseFloat(f))),++a,tx)).split(tx);return{values:n,split:c,indexes:s,types:o}}function VS(e){return Ya(e).values}function BS(e){const{split:t,types:n}=Ya(e),s=t.length;return o=>{let a="";for(let u=0;u<s;u++)if(a+=t[u],o[u]!==void 0){const c=n[u];c===FS?a+=Fa(o[u]):c===IS?a+=hn.transform(o[u]):a+=o[u]}return a}}const JN=e=>typeof e=="number"?0:e;function eA(e){const t=VS(e);return BS(e)(t.map(JN))}const Ys={test:qN,parse:VS,createTransformer:BS,getAnimatableNone:eA},tA=new Set(["brightness","contrast","saturate","opacity"]);function nA(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[s]=n.match(nm)||[];if(!s)return e;const o=n.replace(s,"");let a=tA.has(t)?1:0;return s!==n&&(a*=100),t+"("+a+o+")"}const rA=/\b([a-z-]*)\(.*?\)/gu,Mh={...Ys,getAnimatableNone:e=>{const t=e.match(rA);return t?t.map(nA).join(" "):e}},sA={...zp,color:hn,backgroundColor:hn,outlineColor:hn,fill:hn,stroke:hn,borderColor:hn,borderTopColor:hn,borderRightColor:hn,borderBottomColor:hn,borderLeftColor:hn,filter:Mh,WebkitFilter:Mh},sm=e=>sA[e];function zS(e,t){let n=sm(e);return n!==Mh&&(n=Ys),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const iA=new Set(["auto","none","0"]);function oA(e,t,n){let s=0,o;for(;s<e.length&&!o;){const a=e[s];typeof a=="string"&&!iA.has(a)&&Ya(a).values.length&&(o=e[s]),s++}if(o&&n)for(const a of t)e[a]=zS(n,o)}const nx=e=>e===Oo||e===ze,rx=(e,t)=>parseFloat(e.split(", ")[t]),sx=(e,t)=>(n,{transform:s})=>{if(s==="none"||!s)return 0;const o=s.match(/^matrix3d\((.+)\)$/u);if(o)return rx(o[1],t);{const a=s.match(/^matrix\((.+)\)$/u);return a?rx(a[1],e):0}},aA=new Set(["x","y","z"]),lA=Mo.filter(e=>!aA.has(e));function uA(e){const t=[];return lA.forEach(n=>{const s=e.getValue(n);s!==void 0&&(t.push([n,s.get()]),s.set(n.startsWith("scale")?1:0))}),t}const No={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:sx(4,13),y:sx(5,14)};No.translateX=No.x;No.translateY=No.y;const ki=new Set;let Oh=!1,Fh=!1;function US(){if(Fh){const e=Array.from(ki).filter(s=>s.needsMeasurement),t=new Set(e.map(s=>s.element)),n=new Map;t.forEach(s=>{const o=uA(s);o.length&&(n.set(s,o),s.render())}),e.forEach(s=>s.measureInitialState()),t.forEach(s=>{s.render();const o=n.get(s);o&&o.forEach(([a,u])=>{var c;(c=s.getValue(a))===null||c===void 0||c.set(u)})}),e.forEach(s=>s.measureEndState()),e.forEach(s=>{s.suspendedScrollY!==void 0&&window.scrollTo(0,s.suspendedScrollY)})}Fh=!1,Oh=!1,ki.forEach(e=>e.complete()),ki.clear()}function $S(){ki.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Fh=!0)})}function cA(){$S(),US()}class im{constructor(t,n,s,o,a,u=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=s,this.motionValue=o,this.element=a,this.isAsync=u}scheduleResolve(){this.isScheduled=!0,this.isAsync?(ki.add(this),Oh||(Oh=!0,kt.read($S),kt.resolveKeyframes(US))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:s,motionValue:o}=this;for(let a=0;a<t.length;a++)if(t[a]===null)if(a===0){const u=o==null?void 0:o.get(),c=t[t.length-1];if(u!==void 0)t[0]=u;else if(s&&n){const f=s.readValue(n,c);f!=null&&(t[0]=f)}t[0]===void 0&&(t[0]=c),o&&u===void 0&&o.set(t[0])}else t[a]=t[a-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),ki.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,ki.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const WS=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),dA=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function fA(e){const t=dA.exec(e);if(!t)return[,];const[,n,s,o]=t;return[`--${n??s}`,o]}function HS(e,t,n=1){const[s,o]=fA(e);if(!s)return;const a=window.getComputedStyle(t).getPropertyValue(s);if(a){const u=a.trim();return WS(u)?parseFloat(u):u}return Bp(o)?HS(o,t,n+1):o}const GS=e=>t=>t.test(e),hA={test:e=>e==="auto",parse:e=>e},ZS=[Oo,ze,Vr,Ws,uN,lN,hA],ix=e=>ZS.find(GS(e));class KS extends im{constructor(t,n,s,o,a){super(t,n,s,o,a,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:s}=this;if(!n||!n.current)return;super.readKeyframes();for(let f=0;f<t.length;f++){let h=t[f];if(typeof h=="string"&&(h=h.trim(),Bp(h))){const m=HS(h,n.current);m!==void 0&&(t[f]=m),f===t.length-1&&(this.finalKeyframe=h)}}if(this.resolveNoneKeyframes(),!SS.has(s)||t.length!==2)return;const[o,a]=t,u=ix(o),c=ix(a);if(u!==c)if(nx(u)&&nx(c))for(let f=0;f<t.length;f++){const h=t[f];typeof h=="string"&&(t[f]=parseFloat(h))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,s=[];for(let o=0;o<t.length;o++)$N(t[o])&&s.push(o);s.length&&oA(t,s,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:s}=this;if(!t||!t.current)return;s==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=No[s](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const o=n[n.length-1];o!==void 0&&t.getValue(s,o).jump(o,!1)}measureEndState(){var t;const{element:n,name:s,unresolvedKeyframes:o}=this;if(!n||!n.current)return;const a=n.getValue(s);a&&a.jump(this.measuredOrigin,!1);const u=o.length-1,c=o[u];o[u]=No[s](n.measureViewportBox(),window.getComputedStyle(n.current)),c!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=c),!((t=this.removedTransforms)===null||t===void 0)&&t.length&&this.removedTransforms.forEach(([f,h])=>{n.getValue(f).set(h)}),this.resolveNoneKeyframes()}}const ox=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Ys.test(e)||e==="0")&&!e.startsWith("url("));function pA(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function mA(e,t,n,s){const o=e[0];if(o===null)return!1;if(t==="display"||t==="visibility")return!0;const a=e[e.length-1],u=ox(o,t),c=ox(a,t);return!u||!c?!1:pA(e)||(n==="spring"||Qp(n))&&s}const gA=e=>e!==null;function Bc(e,{repeat:t,repeatType:n="loop"},s){const o=e.filter(gA),a=t&&n!=="loop"&&t%2===1?0:o.length-1;return!a||s===void 0?o[a]:s}const yA=40;class qS{constructor({autoplay:t=!0,delay:n=0,type:s="keyframes",repeat:o=0,repeatDelay:a=0,repeatType:u="loop",...c}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=Br.now(),this.options={autoplay:t,delay:n,type:s,repeat:o,repeatDelay:a,repeatType:u,...c},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>yA?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&cA(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=Br.now(),this.hasAttemptedResolve=!0;const{name:s,type:o,velocity:a,delay:u,onComplete:c,onUpdate:f,isGenerator:h}=this.options;if(!h&&!mA(t,s,o,a))if(u)this.options.duration=0;else{f&&f(Bc(t,this.options,n)),c&&c(),this.resolveFinishedPromise();return}const m=this.initPlayback(t,n);m!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...m},this.onPostResolved())}onPostResolved(){}then(t,n){return this.currentFinishedPromise.then(t,n)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}const Ih=2e4;function YS(e){let t=0;const n=50;let s=e.next(t);for(;!s.done&&t<Ih;)t+=n,s=e.next(t);return t>=Ih?1/0:t}const jt=(e,t,n)=>e+(t-e)*n;function rh(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function vA({hue:e,saturation:t,lightness:n,alpha:s}){e/=360,t/=100,n/=100;let o=0,a=0,u=0;if(!t)o=a=u=n;else{const c=n<.5?n*(1+t):n+t-n*t,f=2*n-c;o=rh(f,c,e+1/3),a=rh(f,c,e),u=rh(f,c,e-1/3)}return{red:Math.round(o*255),green:Math.round(a*255),blue:Math.round(u*255),alpha:s}}function hc(e,t){return n=>n>0?t:e}const sh=(e,t,n)=>{const s=e*e,o=n*(t*t-s)+s;return o<0?0:Math.sqrt(o)},xA=[Lh,_i,wo],wA=e=>xA.find(t=>t.test(e));function ax(e){const t=wA(e);if(!t)return!1;let n=t.parse(e);return t===wo&&(n=vA(n)),n}const lx=(e,t)=>{const n=ax(e),s=ax(t);if(!n||!s)return hc(e,t);const o={...n};return a=>(o.red=sh(n.red,s.red,a),o.green=sh(n.green,s.green,a),o.blue=sh(n.blue,s.blue,a),o.alpha=jt(n.alpha,s.alpha,a),_i.transform(o))},SA=(e,t)=>n=>t(e(n)),El=(...e)=>e.reduce(SA),Vh=new Set(["none","hidden"]);function bA(e,t){return Vh.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function _A(e,t){return n=>jt(e,t,n)}function om(e){return typeof e=="number"?_A:typeof e=="string"?Bp(e)?hc:hn.test(e)?lx:kA:Array.isArray(e)?XS:typeof e=="object"?hn.test(e)?lx:EA:hc}function XS(e,t){const n=[...e],s=n.length,o=e.map((a,u)=>om(a)(a,t[u]));return a=>{for(let u=0;u<s;u++)n[u]=o[u](a);return n}}function EA(e,t){const n={...e,...t},s={};for(const o in n)e[o]!==void 0&&t[o]!==void 0&&(s[o]=om(e[o])(e[o],t[o]));return o=>{for(const a in s)n[a]=s[a](o);return n}}function CA(e,t){var n;const s=[],o={color:0,var:0,number:0};for(let a=0;a<t.values.length;a++){const u=t.types[a],c=e.indexes[u][o[u]],f=(n=e.values[c])!==null&&n!==void 0?n:0;s[a]=f,o[u]++}return s}const kA=(e,t)=>{const n=Ys.createTransformer(t),s=Ya(e),o=Ya(t);return s.indexes.var.length===o.indexes.var.length&&s.indexes.color.length===o.indexes.color.length&&s.indexes.number.length>=o.indexes.number.length?Vh.has(e)&&!o.values.length||Vh.has(t)&&!s.values.length?bA(e,t):El(XS(CA(s,o),o.values),n):hc(e,t)};function QS(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?jt(e,t,n):om(e)(e,t)}const TA=5;function JS(e,t,n){const s=Math.max(t-TA,0);return bS(n-e(s),t-s)}const Ft={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},ux=.001;function RA({duration:e=Ft.duration,bounce:t=Ft.bounce,velocity:n=Ft.velocity,mass:s=Ft.mass}){let o,a,u=1-t;u=hs(Ft.minDamping,Ft.maxDamping,u),e=hs(Ft.minDuration,Ft.maxDuration,ds(e)),u<1?(o=h=>{const m=h*u,g=m*e,v=m-n,b=Bh(h,u),w=Math.exp(-g);return ux-v/b*w},a=h=>{const g=h*u*e,v=g*n+n,b=Math.pow(u,2)*Math.pow(h,2)*e,w=Math.exp(-g),S=Bh(Math.pow(h,2),u);return(-o(h)+ux>0?-1:1)*((v-b)*w)/S}):(o=h=>{const m=Math.exp(-h*e),g=(h-n)*e+1;return-.001+m*g},a=h=>{const m=Math.exp(-h*e),g=(n-h)*(e*e);return m*g});const c=5/e,f=NA(o,a,c);if(e=cs(e),isNaN(f))return{stiffness:Ft.stiffness,damping:Ft.damping,duration:e};{const h=Math.pow(f,2)*s;return{stiffness:h,damping:u*2*Math.sqrt(s*h),duration:e}}}const PA=12;function NA(e,t,n){let s=n;for(let o=1;o<PA;o++)s=s-e(s)/t(s);return s}function Bh(e,t){return e*Math.sqrt(1-t*t)}const AA=["duration","bounce"],jA=["stiffness","damping","mass"];function cx(e,t){return t.some(n=>e[n]!==void 0)}function DA(e){let t={velocity:Ft.velocity,stiffness:Ft.stiffness,damping:Ft.damping,mass:Ft.mass,isResolvedFromDuration:!1,...e};if(!cx(e,jA)&&cx(e,AA))if(e.visualDuration){const n=e.visualDuration,s=2*Math.PI/(n*1.2),o=s*s,a=2*hs(.05,1,1-(e.bounce||0))*Math.sqrt(o);t={...t,mass:Ft.mass,stiffness:o,damping:a}}else{const n=RA(e);t={...t,...n,mass:Ft.mass},t.isResolvedFromDuration=!0}return t}function eb(e=Ft.visualDuration,t=Ft.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:s,restDelta:o}=n;const a=n.keyframes[0],u=n.keyframes[n.keyframes.length-1],c={done:!1,value:a},{stiffness:f,damping:h,mass:m,duration:g,velocity:v,isResolvedFromDuration:b}=DA({...n,velocity:-ds(n.velocity||0)}),w=v||0,S=h/(2*Math.sqrt(f*m)),C=u-a,E=ds(Math.sqrt(f/m)),R=Math.abs(C)<5;s||(s=R?Ft.restSpeed.granular:Ft.restSpeed.default),o||(o=R?Ft.restDelta.granular:Ft.restDelta.default);let N;if(S<1){const T=Bh(E,S);N=F=>{const z=Math.exp(-S*E*F);return u-z*((w+S*E*C)/T*Math.sin(T*F)+C*Math.cos(T*F))}}else if(S===1)N=T=>u-Math.exp(-E*T)*(C+(w+E*C)*T);else{const T=E*Math.sqrt(S*S-1);N=F=>{const z=Math.exp(-S*E*F),O=Math.min(T*F,300);return u-z*((w+S*E*C)*Math.sinh(O)+T*C*Math.cosh(O))/T}}const I={calculatedDuration:b&&g||null,next:T=>{const F=N(T);if(b)c.done=T>=g;else{let z=0;S<1&&(z=T===0?cs(w):JS(N,T,F));const O=Math.abs(z)<=s,q=Math.abs(u-F)<=o;c.done=O&&q}return c.value=c.done?u:F,c},toString:()=>{const T=Math.min(YS(I),Ih),F=ES(z=>I.next(T*z).value,T,30);return T+"ms "+F}};return I}function dx({keyframes:e,velocity:t=0,power:n=.8,timeConstant:s=325,bounceDamping:o=10,bounceStiffness:a=500,modifyTarget:u,min:c,max:f,restDelta:h=.5,restSpeed:m}){const g=e[0],v={done:!1,value:g},b=O=>c!==void 0&&O<c||f!==void 0&&O>f,w=O=>c===void 0?f:f===void 0||Math.abs(c-O)<Math.abs(f-O)?c:f;let S=n*t;const C=g+S,E=u===void 0?C:u(C);E!==C&&(S=E-g);const R=O=>-S*Math.exp(-O/s),N=O=>E+R(O),I=O=>{const q=R(O),te=N(O);v.done=Math.abs(q)<=h,v.value=v.done?E:te};let T,F;const z=O=>{b(v.value)&&(T=O,F=eb({keyframes:[v.value,w(v.value)],velocity:JS(N,O,v.value),damping:o,stiffness:a,restDelta:h,restSpeed:m}))};return z(0),{calculatedDuration:null,next:O=>{let q=!1;return!F&&T===void 0&&(q=!0,I(O),z(O)),T!==void 0&&O>=T?F.next(O-T):(!q&&I(O),v)}}}const LA=_l(.42,0,1,1),MA=_l(0,0,.58,1),tb=_l(.42,0,.58,1),OA=e=>Array.isArray(e)&&typeof e[0]!="number",fx={linear:Hn,easeIn:LA,easeInOut:tb,easeOut:MA,circIn:tm,circInOut:LS,circOut:DS,backIn:em,backInOut:AS,backOut:NS,anticipate:jS},hx=e=>{if(Jp(e)){Nh(e.length===4);const[t,n,s,o]=e;return _l(t,n,s,o)}else if(typeof e=="string")return Nh(fx[e]!==void 0),fx[e];return e};function FA(e,t,n){const s=[],o=n||QS,a=e.length-1;for(let u=0;u<a;u++){let c=o(e[u],e[u+1]);if(t){const f=Array.isArray(t)?t[u]||Hn:t;c=El(f,c)}s.push(c)}return s}function IA(e,t,{clamp:n=!0,ease:s,mixer:o}={}){const a=e.length;if(Nh(a===t.length),a===1)return()=>t[0];if(a===2&&t[0]===t[1])return()=>t[1];const u=e[0]===e[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());const c=FA(t,s,o),f=c.length,h=m=>{if(u&&m<e[0])return t[0];let g=0;if(f>1)for(;g<e.length-2&&!(m<e[g+1]);g++);const v=Po(e[g],e[g+1],m);return c[g](v)};return n?m=>h(hs(e[0],e[a-1],m)):h}function VA(e,t){const n=e[e.length-1];for(let s=1;s<=t;s++){const o=Po(0,t,s);e.push(jt(n,1,o))}}function BA(e){const t=[0];return VA(t,e.length-1),t}function zA(e,t){return e.map(n=>n*t)}function UA(e,t){return e.map(()=>t||tb).splice(0,e.length-1)}function pc({duration:e=300,keyframes:t,times:n,ease:s="easeInOut"}){const o=OA(s)?s.map(hx):hx(s),a={done:!1,value:t[0]},u=zA(n&&n.length===t.length?n:BA(t),e),c=IA(u,t,{ease:Array.isArray(o)?o:UA(t,o)});return{calculatedDuration:e,next:f=>(a.value=c(f),a.done=f>=e,a)}}const $A=e=>{const t=({timestamp:n})=>e(n);return{start:()=>kt.update(t,!0),stop:()=>qs(t),now:()=>rn.isProcessing?rn.timestamp:Br.now()}},WA={decay:dx,inertia:dx,tween:pc,keyframes:pc,spring:eb},HA=e=>e/100;class am extends qS{constructor(t){super(t),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:f}=this.options;f&&f()};const{name:n,motionValue:s,element:o,keyframes:a}=this.options,u=(o==null?void 0:o.KeyframeResolver)||im,c=(f,h)=>this.onKeyframesResolved(f,h);this.resolver=new u(a,c,n,s,o),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){const{type:n="keyframes",repeat:s=0,repeatDelay:o=0,repeatType:a,velocity:u=0}=this.options,c=Qp(n)?n:WA[n]||pc;let f,h;c!==pc&&typeof t[0]!="number"&&(f=El(HA,QS(t[0],t[1])),t=[0,100]);const m=c({...this.options,keyframes:t});a==="mirror"&&(h=c({...this.options,keyframes:[...t].reverse(),velocity:-u})),m.calculatedDuration===null&&(m.calculatedDuration=YS(m));const{calculatedDuration:g}=m,v=g+o,b=v*(s+1)-o;return{generator:m,mirroredGenerator:h,mapPercentToKeyframes:f,calculatedDuration:g,resolvedDuration:v,totalDuration:b}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,n=!1){const{resolved:s}=this;if(!s){const{keyframes:O}=this.options;return{done:!0,value:O[O.length-1]}}const{finalKeyframe:o,generator:a,mirroredGenerator:u,mapPercentToKeyframes:c,keyframes:f,calculatedDuration:h,totalDuration:m,resolvedDuration:g}=s;if(this.startTime===null)return a.next(0);const{delay:v,repeat:b,repeatType:w,repeatDelay:S,onUpdate:C}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-m/this.speed,this.startTime)),n?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const E=this.currentTime-v*(this.speed>=0?1:-1),R=this.speed>=0?E<0:E>m;this.currentTime=Math.max(E,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=m);let N=this.currentTime,I=a;if(b){const O=Math.min(this.currentTime,m)/g;let q=Math.floor(O),te=O%1;!te&&O>=1&&(te=1),te===1&&q--,q=Math.min(q,b+1),!!(q%2)&&(w==="reverse"?(te=1-te,S&&(te-=S/g)):w==="mirror"&&(I=u)),N=hs(0,1,te)*g}const T=R?{done:!1,value:f[0]}:I.next(N);c&&(T.value=c(T.value));let{done:F}=T;!R&&h!==null&&(F=this.speed>=0?this.currentTime>=m:this.currentTime<=0);const z=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&F);return z&&o!==void 0&&(T.value=Bc(f,this.options,o)),C&&C(T.value),z&&this.finish(),T}get duration(){const{resolved:t}=this;return t?ds(t.calculatedDuration):0}get time(){return ds(this.currentTime)}set time(t){t=cs(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=ds(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=$A,onPlay:n,startTime:s}=this.options;this.driver||(this.driver=t(a=>this.tick(a))),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=s??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}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(t){return this.startTime=0,this.tick(t,!0)}}const GA=new Set(["opacity","clipPath","filter","transform"]);function ZA(e,t,n,{delay:s=0,duration:o=300,repeat:a=0,repeatType:u="loop",ease:c="easeInOut",times:f}={}){const h={[t]:n};f&&(h.offset=f);const m=kS(c,o);return Array.isArray(m)&&(h.easing=m),e.animate(h,{delay:s,duration:o,easing:Array.isArray(m)?"linear":m,fill:"both",iterations:a+1,direction:u==="reverse"?"alternate":"normal"})}const KA=Xp(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),mc=10,qA=2e4;function YA(e){return Qp(e.type)||e.type==="spring"||!CS(e.ease)}function XA(e,t){const n=new am({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let s={done:!1,value:e[0]};const o=[];let a=0;for(;!s.done&&a<qA;)s=n.sample(a),o.push(s.value),a+=mc;return{times:void 0,keyframes:o,duration:a-mc,ease:"linear"}}const nb={anticipate:jS,backInOut:AS,circInOut:LS};function QA(e){return e in nb}class px extends qS{constructor(t){super(t);const{name:n,motionValue:s,element:o,keyframes:a}=this.options;this.resolver=new KS(a,(u,c)=>this.onKeyframesResolved(u,c),n,s,o),this.resolver.scheduleResolve()}initPlayback(t,n){let{duration:s=300,times:o,ease:a,type:u,motionValue:c,name:f,startTime:h}=this.options;if(!c.owner||!c.owner.current)return!1;if(typeof a=="string"&&fc()&&QA(a)&&(a=nb[a]),YA(this.options)){const{onComplete:g,onUpdate:v,motionValue:b,element:w,...S}=this.options,C=XA(t,S);t=C.keyframes,t.length===1&&(t[1]=t[0]),s=C.duration,o=C.times,a=C.ease,u="keyframes"}const m=ZA(c.owner.current,f,t,{...this.options,duration:s,times:o,ease:a});return m.startTime=h??this.calcStartTime(),this.pendingTimeline?(ex(m,this.pendingTimeline),this.pendingTimeline=void 0):m.onfinish=()=>{const{onComplete:g}=this.options;c.set(Bc(t,this.options,n)),g&&g(),this.cancel(),this.resolveFinishedPromise()},{animation:m,duration:s,times:o,type:u,ease:a,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return ds(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return ds(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:s}=n;s.currentTime=cs(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}set speed(t){const{resolved:n}=this;if(!n)return;const{animation:s}=n;s.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:n}=t;return n.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return Hn;const{animation:s}=n;ex(s,t)}return Hn}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:n,keyframes:s,duration:o,type:a,ease:u,times:c}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:h,onUpdate:m,onComplete:g,element:v,...b}=this.options,w=new am({...b,keyframes:s,duration:o,type:a,ease:u,times:c,isGenerator:!0}),S=cs(this.time);h.setWithVelocity(w.sample(S-mc).value,w.sample(S).value,mc)}const{onStop:f}=this.options;f&&f(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:n,name:s,repeatDelay:o,repeatType:a,damping:u,type:c}=t;if(!n||!n.owner||!(n.owner.current instanceof HTMLElement))return!1;const{onUpdate:f,transformTemplate:h}=n.owner.getProps();return KA()&&s&&GA.has(s)&&!f&&!h&&!o&&a!=="mirror"&&u!==0&&c!=="inertia"}}const JA={type:"spring",stiffness:500,damping:25,restSpeed:10},ej=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),tj={type:"keyframes",duration:.8},nj={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},rj=(e,{keyframes:t})=>t.length>2?tj:Vi.has(e)?e.startsWith("scale")?ej(t[1]):JA:nj;function sj({when:e,delay:t,delayChildren:n,staggerChildren:s,staggerDirection:o,repeat:a,repeatType:u,repeatDelay:c,from:f,elapsed:h,...m}){return!!Object.keys(m).length}const lm=(e,t,n,s={},o,a)=>u=>{const c=Zp(s,e)||{},f=c.delay||s.delay||0;let{elapsed:h=0}=s;h=h-cs(f);let m={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...c,delay:-h,onUpdate:v=>{t.set(v),c.onUpdate&&c.onUpdate(v)},onComplete:()=>{u(),c.onComplete&&c.onComplete()},name:e,motionValue:t,element:a?void 0:o};sj(c)||(m={...m,...rj(e,m)}),m.duration&&(m.duration=cs(m.duration)),m.repeatDelay&&(m.repeatDelay=cs(m.repeatDelay)),m.from!==void 0&&(m.keyframes[0]=m.from);let g=!1;if((m.type===!1||m.duration===0&&!m.repeatDelay)&&(m.duration=0,m.delay===0&&(g=!0)),g&&!a&&t.get()!==void 0){const v=Bc(m.keyframes,c);if(v!==void 0)return kt.update(()=>{m.onUpdate(v),m.onComplete()}),new FN([])}return!a&&px.supports(m)?new px(m):new am(m)};function ij({protectedKeys:e,needsAnimating:t},n){const s=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,s}function rb(e,t,{delay:n=0,transitionOverride:s,type:o}={}){var a;let{transition:u=e.getDefaultTransition(),transitionEnd:c,...f}=t;s&&(u=s);const h=[],m=o&&e.animationState&&e.animationState.getState()[o];for(const g in f){const v=e.getValue(g,(a=e.latestValues[g])!==null&&a!==void 0?a:null),b=f[g];if(b===void 0||m&&ij(m,g))continue;const w={delay:n,...Zp(u||{},g)};let S=!1;if(window.MotionHandoffAnimation){const E=_S(e);if(E){const R=window.MotionHandoffAnimation(E,g,kt);R!==null&&(w.startTime=R,S=!0)}}jh(e,g),v.start(lm(g,v,b,e.shouldReduceMotion&&SS.has(g)?{type:!1}:w,e,S));const C=v.animation;C&&h.push(C)}return c&&Promise.all(h).then(()=>{kt.update(()=>{c&&DN(e,c)})}),h}function zh(e,t,n={}){var s;const o=Vc(e,t,n.type==="exit"?(s=e.presenceContext)===null||s===void 0?void 0:s.custom:void 0);let{transition:a=e.getDefaultTransition()||{}}=o||{};n.transitionOverride&&(a=n.transitionOverride);const u=o?()=>Promise.all(rb(e,o,n)):()=>Promise.resolve(),c=e.variantChildren&&e.variantChildren.size?(h=0)=>{const{delayChildren:m=0,staggerChildren:g,staggerDirection:v}=a;return oj(e,t,m+h,g,v,n)}:()=>Promise.resolve(),{when:f}=a;if(f){const[h,m]=f==="beforeChildren"?[u,c]:[c,u];return h().then(()=>m())}else return Promise.all([u(),c(n.delay)])}function oj(e,t,n=0,s=0,o=1,a){const u=[],c=(e.variantChildren.size-1)*s,f=o===1?(h=0)=>h*s:(h=0)=>c-h*s;return Array.from(e.variantChildren).sort(aj).forEach((h,m)=>{h.notify("AnimationStart",t),u.push(zh(h,t,{...a,delay:n+f(m)}).then(()=>h.notify("AnimationComplete",t)))}),Promise.all(u)}function aj(e,t){return e.sortNodePosition(t)}function lj(e,t,n={}){e.notify("AnimationStart",t);let s;if(Array.isArray(t)){const o=t.map(a=>zh(e,a,n));s=Promise.all(o)}else if(typeof t=="string")s=zh(e,t,n);else{const o=typeof t=="function"?Vc(e,t,n.custom):t;s=Promise.all(rb(e,o,n))}return s.then(()=>{e.notify("AnimationComplete",t)})}const uj=Lp.length;function sb(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?sb(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<uj;n++){const s=Lp[n],o=e.props[s];(Ga(o)||o===!1)&&(t[s]=o)}return t}const cj=[...Dp].reverse(),dj=Dp.length;function fj(e){return t=>Promise.all(t.map(({animation:n,options:s})=>lj(e,n,s)))}function hj(e){let t=fj(e),n=mx(),s=!0;const o=f=>(h,m)=>{var g;const v=Vc(e,m,f==="exit"?(g=e.presenceContext)===null||g===void 0?void 0:g.custom:void 0);if(v){const{transition:b,transitionEnd:w,...S}=v;h={...h,...S,...w}}return h};function a(f){t=f(e)}function u(f){const{props:h}=e,m=sb(e.parent)||{},g=[],v=new Set;let b={},w=1/0;for(let C=0;C<dj;C++){const E=cj[C],R=n[E],N=h[E]!==void 0?h[E]:m[E],I=Ga(N),T=E===f?R.isActive:null;T===!1&&(w=C);let F=N===m[E]&&N!==h[E]&&I;if(F&&s&&e.manuallyAnimateOnMount&&(F=!1),R.protectedKeys={...b},!R.isActive&&T===null||!N&&!R.prevProp||Fc(N)||typeof N=="boolean")continue;const z=pj(R.prevProp,N);let O=z||E===f&&R.isActive&&!F&&I||C>w&&I,q=!1;const te=Array.isArray(N)?N:[N];let pe=te.reduce(o(E),{});T===!1&&(pe={});const{prevResolvedValues:X={}}=R,de={...X,...pe},ke=me=>{O=!0,v.has(me)&&(q=!0,v.delete(me)),R.needsAnimating[me]=!0;const Y=e.getValue(me);Y&&(Y.liveStyle=!1)};for(const me in de){const Y=pe[me],ue=X[me];if(b.hasOwnProperty(me))continue;let ie=!1;Ah(Y)&&Ah(ue)?ie=!wS(Y,ue):ie=Y!==ue,ie?Y!=null?ke(me):v.add(me):Y!==void 0&&v.has(me)?ke(me):R.protectedKeys[me]=!0}R.prevProp=N,R.prevResolvedValues=pe,R.isActive&&(b={...b,...pe}),s&&e.blockInitialAnimation&&(O=!1),O&&(!(F&&z)||q)&&g.push(...te.map(me=>({animation:me,options:{type:E}})))}if(v.size){const C={};v.forEach(E=>{const R=e.getBaseTarget(E),N=e.getValue(E);N&&(N.liveStyle=!0),C[E]=R??null}),g.push({animation:C})}let S=!!g.length;return s&&(h.initial===!1||h.initial===h.animate)&&!e.manuallyAnimateOnMount&&(S=!1),s=!1,S?t(g):Promise.resolve()}function c(f,h){var m;if(n[f].isActive===h)return Promise.resolve();(m=e.variantChildren)===null||m===void 0||m.forEach(v=>{var b;return(b=v.animationState)===null||b===void 0?void 0:b.setActive(f,h)}),n[f].isActive=h;const g=u(f);for(const v in n)n[v].protectedKeys={};return g}return{animateChanges:u,setActive:c,setAnimateFunction:a,getState:()=>n,reset:()=>{n=mx(),s=!0}}}function pj(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!wS(t,e):!1}function vi(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function mx(){return{animate:vi(!0),whileInView:vi(),whileHover:vi(),whileTap:vi(),whileDrag:vi(),whileFocus:vi(),exit:vi()}}class ni{constructor(t){this.isMounted=!1,this.node=t}update(){}}class mj extends ni{constructor(t){super(t),t.animationState||(t.animationState=hj(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Fc(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)===null||t===void 0||t.call(this)}}let gj=0;class yj extends ni{constructor(){super(...arguments),this.id=gj++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:s}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===s)return;const o=this.node.animationState.setActive("exit",!t);n&&!t&&o.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const vj={animation:{Feature:mj},exit:{Feature:yj}},gr={x:!1,y:!1};function ib(){return gr.x||gr.y}function xj(e){return e==="x"||e==="y"?gr[e]?null:(gr[e]=!0,()=>{gr[e]=!1}):gr.x||gr.y?null:(gr.x=gr.y=!0,()=>{gr.x=gr.y=!1})}const um=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function Xa(e,t,n,s={passive:!0}){return e.addEventListener(t,n,s),()=>e.removeEventListener(t,n)}function Cl(e){return{point:{x:e.pageX,y:e.pageY}}}const wj=e=>t=>um(t)&&e(t,Cl(t));function Ia(e,t,n,s){return Xa(e,t,wj(n),s)}const gx=(e,t)=>Math.abs(e-t);function Sj(e,t){const n=gx(e.x,t.x),s=gx(e.y,t.y);return Math.sqrt(n**2+s**2)}class ob{constructor(t,n,{transformPagePoint:s,contextWindow:o,dragSnapToOrigin:a=!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 g=oh(this.lastMoveEventInfo,this.history),v=this.startEvent!==null,b=Sj(g.offset,{x:0,y:0})>=3;if(!v&&!b)return;const{point:w}=g,{timestamp:S}=rn;this.history.push({...w,timestamp:S});const{onStart:C,onMove:E}=this.handlers;v||(C&&C(this.lastMoveEvent,g),this.startEvent=this.lastMoveEvent),E&&E(this.lastMoveEvent,g)},this.handlePointerMove=(g,v)=>{this.lastMoveEvent=g,this.lastMoveEventInfo=ih(v,this.transformPagePoint),kt.update(this.updatePoint,!0)},this.handlePointerUp=(g,v)=>{this.end();const{onEnd:b,onSessionEnd:w,resumeAnimation:S}=this.handlers;if(this.dragSnapToOrigin&&S&&S(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const C=oh(g.type==="pointercancel"?this.lastMoveEventInfo:ih(v,this.transformPagePoint),this.history);this.startEvent&&b&&b(g,C),w&&w(g,C)},!um(t))return;this.dragSnapToOrigin=a,this.handlers=n,this.transformPagePoint=s,this.contextWindow=o||window;const u=Cl(t),c=ih(u,this.transformPagePoint),{point:f}=c,{timestamp:h}=rn;this.history=[{...f,timestamp:h}];const{onSessionStart:m}=n;m&&m(t,oh(c,this.history)),this.removeListeners=El(Ia(this.contextWindow,"pointermove",this.handlePointerMove),Ia(this.contextWindow,"pointerup",this.handlePointerUp),Ia(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),qs(this.updatePoint)}}function ih(e,t){return t?{point:t(e.point)}:e}function yx(e,t){return{x:e.x-t.x,y:e.y-t.y}}function oh({point:e},t){return{point:e,delta:yx(e,ab(t)),offset:yx(e,bj(t)),velocity:_j(t,.1)}}function bj(e){return e[0]}function ab(e){return e[e.length-1]}function _j(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,s=null;const o=ab(e);for(;n>=0&&(s=e[n],!(o.timestamp-s.timestamp>cs(t)));)n--;if(!s)return{x:0,y:0};const a=ds(o.timestamp-s.timestamp);if(a===0)return{x:0,y:0};const u={x:(o.x-s.x)/a,y:(o.y-s.y)/a};return u.x===1/0&&(u.x=0),u.y===1/0&&(u.y=0),u}const lb=1e-4,Ej=1-lb,Cj=1+lb,ub=.01,kj=0-ub,Tj=0+ub;function Sn(e){return e.max-e.min}function Rj(e,t,n){return Math.abs(e-t)<=n}function vx(e,t,n,s=.5){e.origin=s,e.originPoint=jt(t.min,t.max,e.origin),e.scale=Sn(n)/Sn(t),e.translate=jt(n.min,n.max,e.origin)-e.originPoint,(e.scale>=Ej&&e.scale<=Cj||isNaN(e.scale))&&(e.scale=1),(e.translate>=kj&&e.translate<=Tj||isNaN(e.translate))&&(e.translate=0)}function Va(e,t,n,s){vx(e.x,t.x,n.x,s?s.originX:void 0),vx(e.y,t.y,n.y,s?s.originY:void 0)}function xx(e,t,n){e.min=n.min+t.min,e.max=e.min+Sn(t)}function Pj(e,t,n){xx(e.x,t.x,n.x),xx(e.y,t.y,n.y)}function wx(e,t,n){e.min=t.min-n.min,e.max=e.min+Sn(t)}function Ba(e,t,n){wx(e.x,t.x,n.x),wx(e.y,t.y,n.y)}function Nj(e,{min:t,max:n},s){return t!==void 0&&e<t?e=s?jt(t,e,s.min):Math.max(e,t):n!==void 0&&e>n&&(e=s?jt(n,e,s.max):Math.min(e,n)),e}function Sx(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function Aj(e,{top:t,left:n,bottom:s,right:o}){return{x:Sx(e.x,n,o),y:Sx(e.y,t,s)}}function bx(e,t){let n=t.min-e.min,s=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,s]=[s,n]),{min:n,max:s}}function jj(e,t){return{x:bx(e.x,t.x),y:bx(e.y,t.y)}}function Dj(e,t){let n=.5;const s=Sn(e),o=Sn(t);return o>s?n=Po(t.min,t.max-s,e.min):s>o&&(n=Po(e.min,e.max-o,t.min)),hs(0,1,n)}function Lj(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const Uh=.35;function Mj(e=Uh){return e===!1?e=0:e===!0&&(e=Uh),{x:_x(e,"left","right"),y:_x(e,"top","bottom")}}function _x(e,t,n){return{min:Ex(e,t),max:Ex(e,n)}}function Ex(e,t){return typeof e=="number"?e:e[t]||0}const Cx=()=>({translate:0,scale:1,origin:0,originPoint:0}),So=()=>({x:Cx(),y:Cx()}),kx=()=>({min:0,max:0}),Bt=()=>({x:kx(),y:kx()});function rr(e){return[e("x"),e("y")]}function cb({top:e,left:t,right:n,bottom:s}){return{x:{min:t,max:n},y:{min:e,max:s}}}function Oj({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function Fj(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),s=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:s.y,right:s.x}}function ah(e){return e===void 0||e===1}function $h({scale:e,scaleX:t,scaleY:n}){return!ah(e)||!ah(t)||!ah(n)}function xi(e){return $h(e)||db(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function db(e){return Tx(e.x)||Tx(e.y)}function Tx(e){return e&&e!=="0%"}function gc(e,t,n){const s=e-n,o=t*s;return n+o}function Rx(e,t,n,s,o){return o!==void 0&&(e=gc(e,o,s)),gc(e,n,s)+t}function Wh(e,t=0,n=1,s,o){e.min=Rx(e.min,t,n,s,o),e.max=Rx(e.max,t,n,s,o)}function fb(e,{x:t,y:n}){Wh(e.x,t.translate,t.scale,t.originPoint),Wh(e.y,n.translate,n.scale,n.originPoint)}const Px=.999999999999,Nx=1.0000000000001;function Ij(e,t,n,s=!1){const o=n.length;if(!o)return;t.x=t.y=1;let a,u;for(let c=0;c<o;c++){a=n[c],u=a.projectionDelta;const{visualElement:f}=a.options;f&&f.props.style&&f.props.style.display==="contents"||(s&&a.options.layoutScroll&&a.scroll&&a!==a.root&&_o(e,{x:-a.scroll.offset.x,y:-a.scroll.offset.y}),u&&(t.x*=u.x.scale,t.y*=u.y.scale,fb(e,u)),s&&xi(a.latestValues)&&_o(e,a.latestValues))}t.x<Nx&&t.x>Px&&(t.x=1),t.y<Nx&&t.y>Px&&(t.y=1)}function bo(e,t){e.min=e.min+t,e.max=e.max+t}function Ax(e,t,n,s,o=.5){const a=jt(e.min,e.max,o);Wh(e,t,n,a,s)}function _o(e,t){Ax(e.x,t.x,t.scaleX,t.scale,t.originX),Ax(e.y,t.y,t.scaleY,t.scale,t.originY)}function hb(e,t){return cb(Fj(e.getBoundingClientRect(),t))}function Vj(e,t,n){const s=hb(e,n),{scroll:o}=t;return o&&(bo(s.x,o.offset.x),bo(s.y,o.offset.y)),s}const pb=({current:e})=>e?e.ownerDocument.defaultView:null,Bj=new WeakMap;class zj{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Bt(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:s}=this.visualElement;if(s&&s.isPresent===!1)return;const o=m=>{const{dragSnapToOrigin:g}=this.getProps();g?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Cl(m).point)},a=(m,g)=>{const{drag:v,dragPropagation:b,onDragStart:w}=this.getProps();if(v&&!b&&(this.openDragLock&&this.openDragLock(),this.openDragLock=xj(v),!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),rr(C=>{let E=this.getAxisMotionValue(C).get()||0;if(Vr.test(E)){const{projection:R}=this.visualElement;if(R&&R.layout){const N=R.layout.layoutBox[C];N&&(E=Sn(N)*(parseFloat(E)/100))}}this.originPoint[C]=E}),w&&kt.postRender(()=>w(m,g)),jh(this.visualElement,"transform");const{animationState:S}=this.visualElement;S&&S.setActive("whileDrag",!0)},u=(m,g)=>{const{dragPropagation:v,dragDirectionLock:b,onDirectionLock:w,onDrag:S}=this.getProps();if(!v&&!this.openDragLock)return;const{offset:C}=g;if(b&&this.currentDirection===null){this.currentDirection=Uj(C),this.currentDirection!==null&&w&&w(this.currentDirection);return}this.updateAxis("x",g.point,C),this.updateAxis("y",g.point,C),this.visualElement.render(),S&&S(m,g)},c=(m,g)=>this.stop(m,g),f=()=>rr(m=>{var g;return this.getAnimationState(m)==="paused"&&((g=this.getAxisMotionValue(m).animation)===null||g===void 0?void 0:g.play())}),{dragSnapToOrigin:h}=this.getProps();this.panSession=new ob(t,{onSessionStart:o,onStart:a,onMove:u,onSessionEnd:c,resumeAnimation:f},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:h,contextWindow:pb(this.visualElement)})}stop(t,n){const s=this.isDragging;if(this.cancel(),!s)return;const{velocity:o}=n;this.startAnimation(o);const{onDragEnd:a}=this.getProps();a&&kt.postRender(()=>a(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:s}=this.getProps();!s&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,s){const{drag:o}=this.getProps();if(!s||!Zu(t,o,this.currentDirection))return;const a=this.getAxisMotionValue(t);let u=this.originPoint[t]+s[t];this.constraints&&this.constraints[t]&&(u=Nj(u,this.constraints[t],this.elastic[t])),a.set(u)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:s}=this.getProps(),o=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,a=this.constraints;n&&xo(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&o?this.constraints=Aj(o.layoutBox,n):this.constraints=!1,this.elastic=Mj(s),a!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&rr(u=>{this.constraints!==!1&&this.getAxisMotionValue(u)&&(this.constraints[u]=Lj(o.layoutBox[u],this.constraints[u]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!xo(t))return!1;const s=t.current,{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const a=Vj(s,o.root,this.visualElement.getTransformPagePoint());let u=jj(o.layout.layoutBox,a);if(n){const c=n(Oj(u));this.hasMutatedConstraints=!!c,c&&(u=cb(c))}return u}startAnimation(t){const{drag:n,dragMomentum:s,dragElastic:o,dragTransition:a,dragSnapToOrigin:u,onDragTransitionEnd:c}=this.getProps(),f=this.constraints||{},h=rr(m=>{if(!Zu(m,n,this.currentDirection))return;let g=f[m]||{};u&&(g={min:0,max:0});const v=o?200:1e6,b=o?40:1e7,w={type:"inertia",velocity:s?t[m]:0,bounceStiffness:v,bounceDamping:b,timeConstant:750,restDelta:1,restSpeed:10,...a,...g};return this.startAxisValueAnimation(m,w)});return Promise.all(h).then(c)}startAxisValueAnimation(t,n){const s=this.getAxisMotionValue(t);return jh(this.visualElement,t),s.start(lm(t,s,0,n,this.visualElement,!1))}stopAnimation(){rr(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){rr(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,s=this.visualElement.getProps(),o=s[n];return o||this.visualElement.getValue(t,(s.initial?s.initial[t]:void 0)||0)}snapToCursor(t){rr(n=>{const{drag:s}=this.getProps();if(!Zu(n,s,this.currentDirection))return;const{projection:o}=this.visualElement,a=this.getAxisMotionValue(n);if(o&&o.layout){const{min:u,max:c}=o.layout.layoutBox[n];a.set(t[n]-jt(u,c,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:s}=this.visualElement;if(!xo(n)||!s||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};rr(u=>{const c=this.getAxisMotionValue(u);if(c&&this.constraints!==!1){const f=c.get();o[u]=Dj({min:f,max:f},this.constraints[u])}});const{transformTemplate:a}=this.visualElement.getProps();this.visualElement.current.style.transform=a?a({},""):"none",s.root&&s.root.updateScroll(),s.updateLayout(),this.resolveConstraints(),rr(u=>{if(!Zu(u,t,null))return;const c=this.getAxisMotionValue(u),{min:f,max:h}=this.constraints[u];c.set(jt(f,h,o[u]))})}addListeners(){if(!this.visualElement.current)return;Bj.set(this.visualElement,this);const t=this.visualElement.current,n=Ia(t,"pointerdown",f=>{const{drag:h,dragListener:m=!0}=this.getProps();h&&m&&this.start(f)}),s=()=>{const{dragConstraints:f}=this.getProps();xo(f)&&f.current&&(this.constraints=this.resolveRefConstraints())},{projection:o}=this.visualElement,a=o.addEventListener("measure",s);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),kt.read(s);const u=Xa(window,"resize",()=>this.scalePositionWithinConstraints()),c=o.addEventListener("didUpdate",({delta:f,hasLayoutChanged:h})=>{this.isDragging&&h&&(rr(m=>{const g=this.getAxisMotionValue(m);g&&(this.originPoint[m]+=f[m].translate,g.set(g.get()+f[m].translate))}),this.visualElement.render())});return()=>{u(),n(),a(),c&&c()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:s=!1,dragPropagation:o=!1,dragConstraints:a=!1,dragElastic:u=Uh,dragMomentum:c=!0}=t;return{...t,drag:n,dragDirectionLock:s,dragPropagation:o,dragConstraints:a,dragElastic:u,dragMomentum:c}}}function Zu(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function Uj(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class $j extends ni{constructor(t){super(t),this.removeGroupControls=Hn,this.removeListeners=Hn,this.controls=new zj(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Hn}unmount(){this.removeGroupControls(),this.removeListeners()}}const jx=e=>(t,n)=>{e&&kt.postRender(()=>e(t,n))};class Wj extends ni{constructor(){super(...arguments),this.removePointerDownListener=Hn}onPointerDown(t){this.session=new ob(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:pb(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:s,onPanEnd:o}=this.node.getProps();return{onSessionStart:jx(t),onStart:jx(n),onMove:s,onEnd:(a,u)=>{delete this.session,o&&kt.postRender(()=>o(a,u))}}}mount(){this.removePointerDownListener=Ia(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const nc={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Dx(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Ca={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(ze.test(e))e=parseFloat(e);else return e;const n=Dx(e,t.target.x),s=Dx(e,t.target.y);return`${n}% ${s}%`}},Hj={correct:(e,{treeScale:t,projectionDelta:n})=>{const s=e,o=Ys.parse(e);if(o.length>5)return s;const a=Ys.createTransformer(e),u=typeof o[0]!="number"?1:0,c=n.x.scale*t.x,f=n.y.scale*t.y;o[0+u]/=c,o[1+u]/=f;const h=jt(c,f,.5);return typeof o[2+u]=="number"&&(o[2+u]/=h),typeof o[3+u]=="number"&&(o[3+u]/=h),a(o)}};class Gj extends _.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:s,layoutId:o}=this.props,{projection:a}=t;xN(Zj),a&&(n.group&&n.group.add(a),s&&s.register&&o&&s.register(a),a.root.didUpdate(),a.addEventListener("animationComplete",()=>{this.safeToRemove()}),a.setOptions({...a.options,onExitComplete:()=>this.safeToRemove()})),nc.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:s,drag:o,isPresent:a}=this.props,u=s.projection;return u&&(u.isPresent=a,o||t.layoutDependency!==n||n===void 0?u.willUpdate():this.safeToRemove(),t.isPresent!==a&&(a?u.promote():u.relegate()||kt.postRender(()=>{const c=u.getStack();(!c||!c.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),Op.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:s}=this.props,{projection:o}=t;o&&(o.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(o),s&&s.deregister&&s.deregister(o))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function mb(e){const[t,n]=tS(),s=_.useContext(Pp);return x.jsx(Gj,{...e,layoutGroup:s,switchLayoutGroup:_.useContext(lS),isPresent:t,safeToRemove:n})}const Zj={borderRadius:{...Ca,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Ca,borderTopRightRadius:Ca,borderBottomLeftRadius:Ca,borderBottomRightRadius:Ca,boxShadow:Hj};function Kj(e,t,n){const s=mn(e)?e:qa(e);return s.start(lm("",s,t,n)),s.animation}function qj(e){return e instanceof SVGElement&&e.tagName!=="svg"}const Yj=(e,t)=>e.depth-t.depth;class Xj{constructor(){this.children=[],this.isDirty=!1}add(t){Kp(this.children,t),this.isDirty=!0}remove(t){qp(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(Yj),this.isDirty=!1,this.children.forEach(t)}}function Qj(e,t){const n=Br.now(),s=({timestamp:o})=>{const a=o-n;a>=t&&(qs(s),e(a-t))};return kt.read(s,!0),()=>qs(s)}const gb=["TopLeft","TopRight","BottomLeft","BottomRight"],Jj=gb.length,Lx=e=>typeof e=="string"?parseFloat(e):e,Mx=e=>typeof e=="number"||ze.test(e);function eD(e,t,n,s,o,a){o?(e.opacity=jt(0,n.opacity!==void 0?n.opacity:1,tD(s)),e.opacityExit=jt(t.opacity!==void 0?t.opacity:1,0,nD(s))):a&&(e.opacity=jt(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,s));for(let u=0;u<Jj;u++){const c=`border${gb[u]}Radius`;let f=Ox(t,c),h=Ox(n,c);if(f===void 0&&h===void 0)continue;f||(f=0),h||(h=0),f===0||h===0||Mx(f)===Mx(h)?(e[c]=Math.max(jt(Lx(f),Lx(h),s),0),(Vr.test(h)||Vr.test(f))&&(e[c]+="%")):e[c]=h}(t.rotate||n.rotate)&&(e.rotate=jt(t.rotate||0,n.rotate||0,s))}function Ox(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const tD=yb(0,.5,DS),nD=yb(.5,.95,Hn);function yb(e,t,n){return s=>s<e?0:s>t?1:n(Po(e,t,s))}function Fx(e,t){e.min=t.min,e.max=t.max}function nr(e,t){Fx(e.x,t.x),Fx(e.y,t.y)}function Ix(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function Vx(e,t,n,s,o){return e-=t,e=gc(e,1/n,s),o!==void 0&&(e=gc(e,1/o,s)),e}function rD(e,t=0,n=1,s=.5,o,a=e,u=e){if(Vr.test(t)&&(t=parseFloat(t),t=jt(u.min,u.max,t/100)-u.min),typeof t!="number")return;let c=jt(a.min,a.max,s);e===a&&(c-=t),e.min=Vx(e.min,t,n,c,o),e.max=Vx(e.max,t,n,c,o)}function Bx(e,t,[n,s,o],a,u){rD(e,t[n],t[s],t[o],t.scale,a,u)}const sD=["x","scaleX","originX"],iD=["y","scaleY","originY"];function zx(e,t,n,s){Bx(e.x,t,sD,n?n.x:void 0,s?s.x:void 0),Bx(e.y,t,iD,n?n.y:void 0,s?s.y:void 0)}function Ux(e){return e.translate===0&&e.scale===1}function vb(e){return Ux(e.x)&&Ux(e.y)}function $x(e,t){return e.min===t.min&&e.max===t.max}function oD(e,t){return $x(e.x,t.x)&&$x(e.y,t.y)}function Wx(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function xb(e,t){return Wx(e.x,t.x)&&Wx(e.y,t.y)}function Hx(e){return Sn(e.x)/Sn(e.y)}function Gx(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class aD{constructor(){this.members=[]}add(t){Kp(this.members,t),t.scheduleRender()}remove(t){if(qp(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(o=>t===o);if(n===0)return!1;let s;for(let o=n;o>=0;o--){const a=this.members[o];if(a.isPresent!==!1){s=a;break}}return s?(this.promote(s),!0):!1}promote(t,n){const s=this.lead;if(t!==s&&(this.prevLead=s,this.lead=t,t.show(),s)){s.instance&&s.scheduleRender(),t.scheduleRender(),t.resumeFrom=s,n&&(t.resumeFrom.preserveOpacity=!0),s.snapshot&&(t.snapshot=s.snapshot,t.snapshot.latestValues=s.animationValues||s.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:o}=t.options;o===!1&&s.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:s}=t;n.onExitComplete&&n.onExitComplete(),s&&s.options.onExitComplete&&s.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function lD(e,t,n){let s="";const o=e.x.translate/t.x,a=e.y.translate/t.y,u=(n==null?void 0:n.z)||0;if((o||a||u)&&(s=`translate3d(${o}px, ${a}px, ${u}px) `),(t.x!==1||t.y!==1)&&(s+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:h,rotate:m,rotateX:g,rotateY:v,skewX:b,skewY:w}=n;h&&(s=`perspective(${h}px) ${s}`),m&&(s+=`rotate(${m}deg) `),g&&(s+=`rotateX(${g}deg) `),v&&(s+=`rotateY(${v}deg) `),b&&(s+=`skewX(${b}deg) `),w&&(s+=`skewY(${w}deg) `)}const c=e.x.scale*t.x,f=e.y.scale*t.y;return(c!==1||f!==1)&&(s+=`scale(${c}, ${f})`),s||"none"}const wi={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},Aa=typeof window<"u"&&window.MotionDebug!==void 0,lh=["","X","Y","Z"],uD={visibility:"hidden"},Zx=1e3;let cD=0;function uh(e,t,n,s){const{latestValues:o}=t;o[e]&&(n[e]=o[e],t.setStaticValue(e,0),s&&(s[e]=0))}function wb(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=_S(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:o,layoutId:a}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",kt,!(o||a))}const{parent:s}=e;s&&!s.hasCheckedOptimisedAppear&&wb(s)}function Sb({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:s,resetTransform:o}){return class{constructor(u={},c=t==null?void 0:t()){this.id=cD++,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,Aa&&(wi.totalNodes=wi.resolvedTargetDeltas=wi.recalculatedProjection=0),this.nodes.forEach(hD),this.nodes.forEach(vD),this.nodes.forEach(xD),this.nodes.forEach(pD),Aa&&window.MotionDebug.record(wi)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=u,this.root=c?c.root||c:this,this.path=c?[...c.path,c]:[],this.parent=c,this.depth=c?c.depth+1:0;for(let f=0;f<this.path.length;f++)this.path[f].shouldResetTransform=!0;this.root===this&&(this.nodes=new Xj)}addEventListener(u,c){return this.eventHandlers.has(u)||this.eventHandlers.set(u,new Yp),this.eventHandlers.get(u).add(c)}notifyListeners(u,...c){const f=this.eventHandlers.get(u);f&&f.notify(...c)}hasListeners(u){return this.eventHandlers.has(u)}mount(u,c=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=qj(u),this.instance=u;const{layoutId:f,layout:h,visualElement:m}=this.options;if(m&&!m.current&&m.mount(u),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),c&&(h||f)&&(this.isLayoutDirty=!0),e){let g;const v=()=>this.root.updateBlockedByResize=!1;e(u,()=>{this.root.updateBlockedByResize=!0,g&&g(),g=Qj(v,250),nc.hasAnimatedSinceResize&&(nc.hasAnimatedSinceResize=!1,this.nodes.forEach(qx))})}f&&this.root.registerSharedNode(f,this),this.options.animate!==!1&&m&&(f||h)&&this.addEventListener("didUpdate",({delta:g,hasLayoutChanged:v,hasRelativeLayoutChanged:b,layout:w})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const S=this.options.transition||m.getDefaultTransition()||ED,{onLayoutAnimationStart:C,onLayoutAnimationComplete:E}=m.getProps(),R=!this.targetLayout||!xb(this.targetLayout,w),N=!v&&b;if(this.options.layoutRoot||this.resumeFrom||N||v&&(R||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(g,N);const I={...Zp(S,"layout"),onPlay:C,onComplete:E};(m.shouldReduceMotion||this.options.layoutRoot)&&(I.delay=0,I.type=!1),this.startAnimation(I)}else v||qx(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=w})}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,qs(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(wD),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&&wb(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let m=0;m<this.path.length;m++){const g=this.path[m];g.shouldResetTransform=!0,g.updateScroll("snapshot"),g.options.layoutRoot&&g.willUpdate(!1)}const{layoutId:c,layout:f}=this.options;if(c===void 0&&!f)return;const h=this.getTransformTemplate();this.prevTransformTemplateValue=h?h(this.latestValues,""):void 0,this.updateSnapshot(),u&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Kx);return}this.isUpdating||this.nodes.forEach(gD),this.isUpdating=!1,this.nodes.forEach(yD),this.nodes.forEach(dD),this.nodes.forEach(fD),this.clearAllSnapshots();const c=Br.now();rn.delta=hs(0,1e3/60,c-rn.timestamp),rn.timestamp=c,rn.isProcessing=!0,th.update.process(rn),th.preRender.process(rn),th.render.process(rn),rn.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Op.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(mD),this.sharedNodes.forEach(SD)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,kt.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){kt.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Sn(this.snapshot.measuredBox.x)&&!Sn(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let f=0;f<this.path.length;f++)this.path[f].updateScroll();const u=this.layout;this.layout=this.measure(!1),this.layoutCorrected=Bt(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:c}=this.options;c&&c.notify("LayoutMeasure",this.layout.layoutBox,u?u.layoutBox:void 0)}updateScroll(u="measure"){let c=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===u&&(c=!1),c){const f=s(this.instance);this.scroll={animationId:this.root.animationId,phase:u,isRoot:f,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:f}}}resetTransform(){if(!o)return;const u=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,c=this.projectionDelta&&!vb(this.projectionDelta),f=this.getTransformTemplate(),h=f?f(this.latestValues,""):void 0,m=h!==this.prevTransformTemplateValue;u&&(c||xi(this.latestValues)||m)&&(o(this.instance,h),this.shouldResetTransform=!1,this.scheduleRender())}measure(u=!0){const c=this.measurePageBox();let f=this.removeElementScroll(c);return u&&(f=this.removeTransform(f)),CD(f),{animationId:this.root.animationId,measuredBox:c,layoutBox:f,latestValues:{},source:this.id}}measurePageBox(){var u;const{visualElement:c}=this.options;if(!c)return Bt();const f=c.measureViewportBox();if(!(((u=this.scroll)===null||u===void 0?void 0:u.wasRoot)||this.path.some(kD))){const{scroll:m}=this.root;m&&(bo(f.x,m.offset.x),bo(f.y,m.offset.y))}return f}removeElementScroll(u){var c;const f=Bt();if(nr(f,u),!((c=this.scroll)===null||c===void 0)&&c.wasRoot)return f;for(let h=0;h<this.path.length;h++){const m=this.path[h],{scroll:g,options:v}=m;m!==this.root&&g&&v.layoutScroll&&(g.wasRoot&&nr(f,u),bo(f.x,g.offset.x),bo(f.y,g.offset.y))}return f}applyTransform(u,c=!1){const f=Bt();nr(f,u);for(let h=0;h<this.path.length;h++){const m=this.path[h];!c&&m.options.layoutScroll&&m.scroll&&m!==m.root&&_o(f,{x:-m.scroll.offset.x,y:-m.scroll.offset.y}),xi(m.latestValues)&&_o(f,m.latestValues)}return xi(this.latestValues)&&_o(f,this.latestValues),f}removeTransform(u){const c=Bt();nr(c,u);for(let f=0;f<this.path.length;f++){const h=this.path[f];if(!h.instance||!xi(h.latestValues))continue;$h(h.latestValues)&&h.updateSnapshot();const m=Bt(),g=h.measurePageBox();nr(m,g),zx(c,h.latestValues,h.snapshot?h.snapshot.layoutBox:void 0,m)}return xi(this.latestValues)&&zx(c,this.latestValues),c}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!==rn.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(u=!1){var c;const f=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=f.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=f.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=f.isSharedProjectionDirty);const h=!!this.resumingFrom||this!==f;if(!(u||h&&this.isSharedProjectionDirty||this.isProjectionDirty||!((c=this.parent)===null||c===void 0)&&c.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:g,layoutId:v}=this.options;if(!(!this.layout||!(g||v))){if(this.resolvedRelativeTargetAt=rn.timestamp,!this.targetDelta&&!this.relativeTarget){const b=this.getClosestProjectingParent();b&&b.layout&&this.animationProgress!==1?(this.relativeParent=b,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Bt(),this.relativeTargetOrigin=Bt(),Ba(this.relativeTargetOrigin,this.layout.layoutBox,b.layout.layoutBox),nr(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=Bt(),this.targetWithTransforms=Bt()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Pj(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):nr(this.target,this.layout.layoutBox),fb(this.target,this.targetDelta)):nr(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const b=this.getClosestProjectingParent();b&&!!b.resumingFrom==!!this.resumingFrom&&!b.options.layoutScroll&&b.target&&this.animationProgress!==1?(this.relativeParent=b,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Bt(),this.relativeTargetOrigin=Bt(),Ba(this.relativeTargetOrigin,this.target,b.target),nr(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}Aa&&wi.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||$h(this.parent.latestValues)||db(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 c=this.getLead(),f=!!this.resumingFrom||this!==c;let h=!0;if((this.isProjectionDirty||!((u=this.parent)===null||u===void 0)&&u.isProjectionDirty)&&(h=!1),f&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(h=!1),this.resolvedRelativeTargetAt===rn.timestamp&&(h=!1),h)return;const{layout:m,layoutId:g}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(m||g))return;nr(this.layoutCorrected,this.layout.layoutBox);const v=this.treeScale.x,b=this.treeScale.y;Ij(this.layoutCorrected,this.treeScale,this.path,f),c.layout&&!c.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(c.target=c.layout.layoutBox,c.targetWithTransforms=Bt());const{target:w}=c;if(!w){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Ix(this.prevProjectionDelta.x,this.projectionDelta.x),Ix(this.prevProjectionDelta.y,this.projectionDelta.y)),Va(this.projectionDelta,this.layoutCorrected,w,this.latestValues),(this.treeScale.x!==v||this.treeScale.y!==b||!Gx(this.projectionDelta.x,this.prevProjectionDelta.x)||!Gx(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",w)),Aa&&wi.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(u=!0){var c;if((c=this.options.visualElement)===null||c===void 0||c.scheduleRender(),u){const f=this.getStack();f&&f.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=So(),this.projectionDelta=So(),this.projectionDeltaWithTransform=So()}setAnimationOrigin(u,c=!1){const f=this.snapshot,h=f?f.latestValues:{},m={...this.latestValues},g=So();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!c;const v=Bt(),b=f?f.source:void 0,w=this.layout?this.layout.source:void 0,S=b!==w,C=this.getStack(),E=!C||C.members.length<=1,R=!!(S&&!E&&this.options.crossfade===!0&&!this.path.some(_D));this.animationProgress=0;let N;this.mixTargetDelta=I=>{const T=I/1e3;Yx(g.x,u.x,T),Yx(g.y,u.y,T),this.setTargetDelta(g),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Ba(v,this.layout.layoutBox,this.relativeParent.layout.layoutBox),bD(this.relativeTarget,this.relativeTargetOrigin,v,T),N&&oD(this.relativeTarget,N)&&(this.isProjectionDirty=!1),N||(N=Bt()),nr(N,this.relativeTarget)),S&&(this.animationValues=m,eD(m,h,this.latestValues,T,R,E)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=T},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&&(qs(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=kt.update(()=>{nc.hasAnimatedSinceResize=!0,this.currentAnimation=Kj(0,Zx,{...u,onUpdate:c=>{this.mixTargetDelta(c),u.onUpdate&&u.onUpdate(c)},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(Zx),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const u=this.getLead();let{targetWithTransforms:c,target:f,layout:h,latestValues:m}=u;if(!(!c||!f||!h)){if(this!==u&&this.layout&&h&&bb(this.options.animationType,this.layout.layoutBox,h.layoutBox)){f=this.target||Bt();const g=Sn(this.layout.layoutBox.x);f.x.min=u.target.x.min,f.x.max=f.x.min+g;const v=Sn(this.layout.layoutBox.y);f.y.min=u.target.y.min,f.y.max=f.y.min+v}nr(c,f),_o(c,m),Va(this.projectionDeltaWithTransform,this.layoutCorrected,c,m)}}registerSharedNode(u,c){this.sharedNodes.has(u)||this.sharedNodes.set(u,new aD),this.sharedNodes.get(u).add(c);const h=c.options.initialPromotionConfig;c.promote({transition:h?h.transition:void 0,preserveFollowOpacity:h&&h.shouldPreserveFollowOpacity?h.shouldPreserveFollowOpacity(c):void 0})}isLead(){const u=this.getStack();return u?u.lead===this:!0}getLead(){var u;const{layoutId:c}=this.options;return c?((u=this.getStack())===null||u===void 0?void 0:u.lead)||this:this}getPrevLead(){var u;const{layoutId:c}=this.options;return c?(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:c,preserveFollowOpacity:f}={}){const h=this.getStack();h&&h.promote(this,f),u&&(this.projectionDelta=void 0,this.needsReset=!0),c&&this.setOptions({transition:c})}relegate(){const u=this.getStack();return u?u.relegate(this):!1}resetSkewAndRotation(){const{visualElement:u}=this.options;if(!u)return;let c=!1;const{latestValues:f}=u;if((f.z||f.rotate||f.rotateX||f.rotateY||f.rotateZ||f.skewX||f.skewY)&&(c=!0),!c)return;const h={};f.z&&uh("z",u,h,this.animationValues);for(let m=0;m<lh.length;m++)uh(`rotate${lh[m]}`,u,h,this.animationValues),uh(`skew${lh[m]}`,u,h,this.animationValues);u.render();for(const m in h)u.setStaticValue(m,h[m]),this.animationValues&&(this.animationValues[m]=h[m]);u.scheduleRender()}getProjectionStyles(u){var c,f;if(!this.instance||this.isSVG)return;if(!this.isVisible)return uD;const h={visibility:""},m=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,h.opacity="",h.pointerEvents=ec(u==null?void 0:u.pointerEvents)||"",h.transform=m?m(this.latestValues,""):"none",h;const g=this.getLead();if(!this.projectionDelta||!this.layout||!g.target){const S={};return this.options.layoutId&&(S.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,S.pointerEvents=ec(u==null?void 0:u.pointerEvents)||""),this.hasProjected&&!xi(this.latestValues)&&(S.transform=m?m({},""):"none",this.hasProjected=!1),S}const v=g.animationValues||g.latestValues;this.applyTransformsToTarget(),h.transform=lD(this.projectionDeltaWithTransform,this.treeScale,v),m&&(h.transform=m(v,h.transform));const{x:b,y:w}=this.projectionDelta;h.transformOrigin=`${b.origin*100}% ${w.origin*100}% 0`,g.animationValues?h.opacity=g===this?(f=(c=v.opacity)!==null&&c!==void 0?c:this.latestValues.opacity)!==null&&f!==void 0?f:1:this.preserveOpacity?this.latestValues.opacity:v.opacityExit:h.opacity=g===this?v.opacity!==void 0?v.opacity:"":v.opacityExit!==void 0?v.opacityExit:0;for(const S in Ka){if(v[S]===void 0)continue;const{correct:C,applyTo:E,isCSSVariable:R}=Ka[S],N=h.transform==="none"?v[S]:C(v[S],g);if(E){const I=E.length;for(let T=0;T<I;T++)h[E[T]]=N}else R?this.options.visualElement.renderState.vars[S]=N:h[S]=N}return this.options.layoutId&&(h.pointerEvents=g===this?ec(u==null?void 0:u.pointerEvents)||"":"none"),h}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(u=>{var c;return(c=u.currentAnimation)===null||c===void 0?void 0:c.stop()}),this.root.nodes.forEach(Kx),this.root.sharedNodes.clear()}}}function dD(e){e.updateLayout()}function fD(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:s,measuredBox:o}=e.layout,{animationType:a}=e.options,u=n.source!==e.layout.source;a==="size"?rr(g=>{const v=u?n.measuredBox[g]:n.layoutBox[g],b=Sn(v);v.min=s[g].min,v.max=v.min+b}):bb(a,n.layoutBox,s)&&rr(g=>{const v=u?n.measuredBox[g]:n.layoutBox[g],b=Sn(s[g]);v.max=v.min+b,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[g].max=e.relativeTarget[g].min+b)});const c=So();Va(c,s,n.layoutBox);const f=So();u?Va(f,e.applyTransform(o,!0),n.measuredBox):Va(f,s,n.layoutBox);const h=!vb(c);let m=!1;if(!e.resumeFrom){const g=e.getClosestProjectingParent();if(g&&!g.resumeFrom){const{snapshot:v,layout:b}=g;if(v&&b){const w=Bt();Ba(w,n.layoutBox,v.layoutBox);const S=Bt();Ba(S,s,b.layoutBox),xb(w,S)||(m=!0),g.options.layoutRoot&&(e.relativeTarget=S,e.relativeTargetOrigin=w,e.relativeParent=g)}}}e.notifyListeners("didUpdate",{layout:s,snapshot:n,delta:f,layoutDelta:c,hasLayoutChanged:h,hasRelativeLayoutChanged:m})}else if(e.isLead()){const{onExitComplete:s}=e.options;s&&s()}e.options.transition=void 0}function hD(e){Aa&&wi.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function pD(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function mD(e){e.clearSnapshot()}function Kx(e){e.clearMeasurements()}function gD(e){e.isLayoutDirty=!1}function yD(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function qx(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function vD(e){e.resolveTargetDelta()}function xD(e){e.calcProjection()}function wD(e){e.resetSkewAndRotation()}function SD(e){e.removeLeadSnapshot()}function Yx(e,t,n){e.translate=jt(t.translate,0,n),e.scale=jt(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Xx(e,t,n,s){e.min=jt(t.min,n.min,s),e.max=jt(t.max,n.max,s)}function bD(e,t,n,s){Xx(e.x,t.x,n.x,s),Xx(e.y,t.y,n.y,s)}function _D(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const ED={duration:.45,ease:[.4,0,.1,1]},Qx=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Jx=Qx("applewebkit/")&&!Qx("chrome/")?Math.round:Hn;function e0(e){e.min=Jx(e.min),e.max=Jx(e.max)}function CD(e){e0(e.x),e0(e.y)}function bb(e,t,n){return e==="position"||e==="preserve-aspect"&&!Rj(Hx(t),Hx(n),.2)}function kD(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const TD=Sb({attachResizeListener:(e,t)=>Xa(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),ch={current:void 0},_b=Sb({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!ch.current){const e=new TD({});e.mount(window),e.setOptions({layoutScroll:!0}),ch.current=e}return ch.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),RD={pan:{Feature:Wj},drag:{Feature:$j,ProjectionNode:_b,MeasureLayout:mb}};function PD(e,t,n){var s;if(e instanceof Element)return[e];if(typeof e=="string"){let o=document;const a=(s=void 0)!==null&&s!==void 0?s:o.querySelectorAll(e);return a?Array.from(a):[]}return Array.from(e)}function Eb(e,t){const n=PD(e),s=new AbortController,o={passive:!0,...t,signal:s.signal};return[n,o,()=>s.abort()]}function t0(e){return!(e.pointerType==="touch"||ib())}function ND(e,t,n={}){const[s,o,a]=Eb(e,n),u=c=>{if(!t0(c))return;const{target:f}=c,h=t(f,c);if(typeof h!="function"||!f)return;const m=g=>{t0(g)&&(h(g),f.removeEventListener("pointerleave",m))};f.addEventListener("pointerleave",m,o)};return s.forEach(c=>{c.addEventListener("pointerenter",u,o)}),a}function n0(e,t,n){const{props:s}=e;e.animationState&&s.whileHover&&e.animationState.setActive("whileHover",n==="Start");const o="onHover"+n,a=s[o];a&&kt.postRender(()=>a(t,Cl(t)))}class AD extends ni{mount(){const{current:t}=this.node;t&&(this.unmount=ND(t,(n,s)=>(n0(this.node,s,"Start"),o=>n0(this.node,o,"End"))))}unmount(){}}class jD extends ni{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!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=El(Xa(this.node.current,"focus",()=>this.onFocus()),Xa(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const Cb=(e,t)=>t?e===t?!0:Cb(e,t.parentElement):!1,DD=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function LD(e){return DD.has(e.tagName)||e.tabIndex!==-1}const ja=new WeakSet;function r0(e){return t=>{t.key==="Enter"&&e(t)}}function dh(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const MD=(e,t)=>{const n=e.currentTarget;if(!n)return;const s=r0(()=>{if(ja.has(n))return;dh(n,"down");const o=r0(()=>{dh(n,"up")}),a=()=>dh(n,"cancel");n.addEventListener("keyup",o,t),n.addEventListener("blur",a,t)});n.addEventListener("keydown",s,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",s),t)};function s0(e){return um(e)&&!ib()}function OD(e,t,n={}){const[s,o,a]=Eb(e,n),u=c=>{const f=c.currentTarget;if(!s0(c)||ja.has(f))return;ja.add(f);const h=t(f,c),m=(b,w)=>{window.removeEventListener("pointerup",g),window.removeEventListener("pointercancel",v),!(!s0(b)||!ja.has(f))&&(ja.delete(f),typeof h=="function"&&h(b,{success:w}))},g=b=>{m(b,n.useGlobalTarget||Cb(f,b.target))},v=b=>{m(b,!1)};window.addEventListener("pointerup",g,o),window.addEventListener("pointercancel",v,o)};return s.forEach(c=>{!LD(c)&&c.getAttribute("tabindex")===null&&(c.tabIndex=0),(n.useGlobalTarget?window:c).addEventListener("pointerdown",u,o),c.addEventListener("focus",h=>MD(h,o),o)}),a}function i0(e,t,n){const{props:s}=e;e.animationState&&s.whileTap&&e.animationState.setActive("whileTap",n==="Start");const o="onTap"+(n==="End"?"":n),a=s[o];a&&kt.postRender(()=>a(t,Cl(t)))}class FD extends ni{mount(){const{current:t}=this.node;t&&(this.unmount=OD(t,(n,s)=>(i0(this.node,s,"Start"),(o,{success:a})=>i0(this.node,o,a?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Hh=new WeakMap,fh=new WeakMap,ID=e=>{const t=Hh.get(e.target);t&&t(e)},VD=e=>{e.forEach(ID)};function BD({root:e,...t}){const n=e||document;fh.has(n)||fh.set(n,{});const s=fh.get(n),o=JSON.stringify(t);return s[o]||(s[o]=new IntersectionObserver(VD,{root:e,...t})),s[o]}function zD(e,t,n){const s=BD(t);return Hh.set(e,n),s.observe(e),()=>{Hh.delete(e),s.unobserve(e)}}const UD={some:0,all:1};class $D extends ni{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:s,amount:o="some",once:a}=t,u={root:n?n.current:void 0,rootMargin:s,threshold:typeof o=="number"?o:UD[o]},c=f=>{const{isIntersecting:h}=f;if(this.isInView===h||(this.isInView=h,a&&!h&&this.hasEnteredView))return;h&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",h);const{onViewportEnter:m,onViewportLeave:g}=this.node.getProps(),v=h?m:g;v&&v(f)};return zD(this.node.current,u,c)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(WD(t,n))&&this.startObserver()}unmount(){}}function WD({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const HD={inView:{Feature:$D},tap:{Feature:FD},focus:{Feature:jD},hover:{Feature:AD}},GD={layout:{ProjectionNode:_b,MeasureLayout:mb}},Gh={current:null},kb={current:!1};function ZD(){if(kb.current=!0,!!jp)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Gh.current=e.matches;e.addListener(t),t()}else Gh.current=!1}const KD=[...ZS,hn,Ys],qD=e=>KD.find(GS(e)),o0=new WeakMap;function YD(e,t,n){for(const s in t){const o=t[s],a=n[s];if(mn(o))e.addValue(s,o);else if(mn(a))e.addValue(s,qa(o,{owner:e}));else if(a!==o)if(e.hasValue(s)){const u=e.getValue(s);u.liveStyle===!0?u.jump(o):u.hasAnimated||u.set(o)}else{const u=e.getStaticValue(s);e.addValue(s,qa(u!==void 0?u:o,{owner:e}))}}for(const s in n)t[s]===void 0&&e.removeValue(s);return t}const a0=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class XD{scrapeMotionValuesFromProps(t,n,s){return{}}constructor({parent:t,props:n,presenceContext:s,reducedMotionConfig:o,blockInitialAnimation:a,visualState:u},c={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=im,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 b=Br.now();this.renderScheduledAt<b&&(this.renderScheduledAt=b,kt.render(this.render,!1,!0))};const{latestValues:f,renderState:h,onUpdate:m}=u;this.onUpdate=m,this.latestValues=f,this.baseTarget={...f},this.initialValues=n.initial?{...f}:{},this.renderState=h,this.parent=t,this.props=n,this.presenceContext=s,this.depth=t?t.depth+1:0,this.reducedMotionConfig=o,this.options=c,this.blockInitialAnimation=!!a,this.isControllingVariants=Ic(n),this.isVariantNode=oS(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:g,...v}=this.scrapeMotionValuesFromProps(n,{},this);for(const b in v){const w=v[b];f[b]!==void 0&&mn(w)&&w.set(f[b],!1)}}mount(t){this.current=t,o0.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,s)=>this.bindToMotionValue(s,n)),kb.current||ZD(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Gh.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){o0.delete(this.current),this.projection&&this.projection.unmount(),qs(this.notifyUpdate),qs(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const s=Vi.has(t),o=n.on("change",c=>{this.latestValues[t]=c,this.props.onUpdate&&kt.preRender(this.notifyUpdate),s&&this.projection&&(this.projection.isTransformDirty=!0)}),a=n.on("renderRequest",this.scheduleRender);let u;window.MotionCheckAppearSync&&(u=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{o(),a(),u&&u(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in Ro){const n=Ro[t];if(!n)continue;const{isEnabled:s,Feature:o}=n;if(!this.features[t]&&o&&s(this.props)&&(this.features[t]=new o(this)),this.features[t]){const a=this.features[t];a.isMounted?a.update():(a.mount(),a.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Bt()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let s=0;s<a0.length;s++){const o=a0[s];this.propEventSubscriptions[o]&&(this.propEventSubscriptions[o](),delete this.propEventSubscriptions[o]);const a="on"+o,u=t[a];u&&(this.propEventSubscriptions[o]=this.on(o,u))}this.prevMotionValues=YD(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]: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(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const s=this.values.get(t);n!==s&&(s&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let s=this.values.get(t);return s===void 0&&n!==void 0&&(s=qa(n===null?void 0:n,{owner:this}),this.addValue(t,s)),s}readValue(t,n){var s;let o=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(s=this.getBaseTargetFromProps(this.props,t))!==null&&s!==void 0?s:this.readValueFromInstance(this.current,t,this.options);return o!=null&&(typeof o=="string"&&(WS(o)||MS(o))?o=parseFloat(o):!qD(o)&&Ys.test(n)&&(o=zS(t,n)),this.setBaseTarget(t,mn(o)?o.get():o)),mn(o)?o.get():o}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:s}=this.props;let o;if(typeof s=="string"||typeof s=="object"){const u=Ip(this.props,s,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);u&&(o=u[t])}if(s&&o!==void 0)return o;const a=this.getBaseTargetFromProps(this.props,t);return a!==void 0&&!mn(a)?a:this.initialValues[t]!==void 0&&o===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Yp),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class Tb extends XD{constructor(){super(...arguments),this.KeyframeResolver=KS}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:s}){delete n[t],delete s[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;mn(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function QD(e){return window.getComputedStyle(e)}class JD extends Tb{constructor(){super(...arguments),this.type="html",this.renderInstance=pS}readValueFromInstance(t,n){if(Vi.has(n)){const s=sm(n);return s&&s.default||0}else{const s=QD(t),o=(Vp(n)?s.getPropertyValue(n):s[n])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:n}){return hb(t,n)}build(t,n,s){Up(t,n,s.transformTemplate)}scrapeMotionValuesFromProps(t,n,s){return Gp(t,n,s)}}class eL extends Tb{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Bt}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Vi.has(n)){const s=sm(n);return s&&s.default||0}return n=mS.has(n)?n:Mp(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,s){return vS(t,n,s)}build(t,n,s){$p(t,n,this.isSVGTag,s.transformTemplate)}renderInstance(t,n,s,o){gS(t,n,s,o)}mount(t){this.isSVGTag=Hp(t.tagName),super.mount(t)}}const tL=(e,t)=>Fp(e)?new eL(t):new JD(t,{allowProjection:e!==_.Fragment}),nL=RN({...vj,...HD,...RD,...GD},tL),fs=$P(nL);var hh,l0;function rL(){if(l0)return hh;l0=1;var e="Expected a function",t=NaN,n="[object Symbol]",s=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,u=/^0o[0-7]+$/i,c=parseInt,f=typeof Mu=="object"&&Mu&&Mu.Object===Object&&Mu,h=typeof self=="object"&&self&&self.Object===Object&&self,m=f||h||Function("return this")(),g=Object.prototype,v=g.toString,b=Math.max,w=Math.min,S=function(){return m.Date.now()};function C(T,F,z){var O,q,te,pe,X,de,ke=0,we=!1,De=!1,me=!0;if(typeof T!="function")throw new TypeError(e);F=I(F)||0,E(z)&&(we=!!z.leading,De="maxWait"in z,te=De?b(I(z.maxWait)||0,F):te,me="trailing"in z?!!z.trailing:me);function Y(be){var Pe=O,Me=q;return O=q=void 0,ke=be,pe=T.apply(Me,Pe),pe}function ue(be){return ke=be,X=setTimeout(K,F),we?Y(be):pe}function ie(be){var Pe=be-de,Me=be-ke,rt=F-Pe;return De?w(rt,te-Me):rt}function L(be){var Pe=be-de,Me=be-ke;return de===void 0||Pe>=F||Pe<0||De&&Me>=te}function K(){var be=S();if(L(be))return Le(be);X=setTimeout(K,ie(be))}function Le(be){return X=void 0,me&&O?Y(be):(O=q=void 0,pe)}function Oe(){X!==void 0&&clearTimeout(X),ke=0,O=de=q=X=void 0}function Be(){return X===void 0?pe:Le(S())}function We(){var be=S(),Pe=L(be);if(O=arguments,q=this,de=be,Pe){if(X===void 0)return ue(de);if(De)return X=setTimeout(K,F),Y(de)}return X===void 0&&(X=setTimeout(K,F)),pe}return We.cancel=Oe,We.flush=Be,We}function E(T){var F=typeof T;return!!T&&(F=="object"||F=="function")}function R(T){return!!T&&typeof T=="object"}function N(T){return typeof T=="symbol"||R(T)&&v.call(T)==n}function I(T){if(typeof T=="number")return T;if(N(T))return t;if(E(T)){var F=typeof T.valueOf=="function"?T.valueOf():T;T=E(F)?F+"":F}if(typeof T!="string")return T===0?T:+T;T=T.replace(s,"");var z=a.test(T);return z||u.test(T)?c(T.slice(2),z?2:8):o.test(T)?t:+T}return hh=C,hh}rL();var sL=typeof window<"u"?_.useLayoutEffect:_.useEffect,iL=typeof window>"u";function Zh(e,{defaultValue:t=!1,initializeWithValue:n=!0}={}){const s=c=>iL?t:window.matchMedia(c).matches,[o,a]=_.useState(()=>n?s(e):t);function u(){a(s(e))}return sL(()=>{const c=window.matchMedia(e);return u(),c.addListener?c.addListener(u):c.addEventListener("change",u),()=>{c.removeListener?c.removeListener(u):c.removeEventListener("change",u)}},[e]),o}const oL=({className:e,stage:t})=>{const n=Zh("(min-width: 768px");return x.jsx("div",{className:e,children:x.jsx("div",{className:"max-w-[808px] md:mx-auto my-20 mx-5",children:x.jsxs("div",{className:"relative h-14 w-full",children:[x.jsx("div",{className:Ye("h-2 absolute bg-[#D0D3D8] rounded-[2px] w-full top-0 left-0")}),x.jsx(fs.div,{initial:{width:0},animate:t===2?{width:"20%"}:t===3&&{width:"75%"},transition:{delay:.5,duration:.5},className:Ye("h-2 absolute bg-primary rounded-[2px] top-0 left-0 z-[5]",{"w-[20%]":t===2,"w-[75%]":t===3})}),x.jsx(fs.div,{initial:{width:n?"50%":"35%"},animate:t===2?{width:"75%"}:t===3&&{width:"100%"},className:Ye("bg-reverse_primary w-1/2 absolute top-0 left-0 rounded-[2px] z-[3] h-2")}),x.jsx(fs.div,{className:Ye("progress-circle absolute transition-all duration-500 -top-6 flex items-center justify-center",{"bg-reverse_primary md:left-1/2 left-1/3":t===1,"bg-primary left-[20%] !text-on_primary":t===2||t===3}),children:"1"}),x.jsx("div",{className:Ye("progress-circle absolute -top-6 right-[17%] transition-all -translate-x-1/2 flex items-center justify-center",{"bg-[#D0D3D8]":t===1,"bg-reverse_primary":t===2,"bg-primary !text-on_primary":t===3}),children:"2"}),x.jsx("div",{className:Ye("progress-circle absolute -top-6 right-0 transition-all duration-500 flex items-center justify-center",{"bg-[#D0D3D8]":t===1||t===2,"bg-reverse_primary":t===3}),children:"3"})]})})})};var kl=e=>e.type==="checkbox",Ei=e=>e instanceof Date,xn=e=>e==null;const Rb=e=>typeof e=="object";var Ut=e=>!xn(e)&&!Array.isArray(e)&&Rb(e)&&!Ei(e),Pb=e=>Ut(e)&&e.target?kl(e.target)?e.target.checked:e.target.value:e,aL=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,Nb=(e,t)=>e.has(aL(t)),lL=e=>{const t=e.constructor&&e.constructor.prototype;return Ut(t)&&t.hasOwnProperty("isPrototypeOf")},cm=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function Nn(e){let t;const n=Array.isArray(e),s=typeof FileList<"u"?e instanceof FileList:!1;if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else if(!(cm&&(e instanceof Blob||s))&&(n||Ut(e)))if(t=n?[]:{},!n&&!lL(e))t=e;else for(const o in e)e.hasOwnProperty(o)&&(t[o]=Nn(e[o]));else return e;return t}var zc=e=>Array.isArray(e)?e.filter(Boolean):[],zt=e=>e===void 0,ce=(e,t,n)=>{if(!t||!Ut(e))return n;const s=zc(t.split(/[,[\].]+?/)).reduce((o,a)=>xn(o)?o:o[a],e);return zt(s)||s===e?zt(e[t])?n:e[t]:s},ir=e=>typeof e=="boolean",dm=e=>/^\w*$/.test(e),Ab=e=>zc(e.replace(/["|']|\]/g,"").split(/\.|\[/)),pt=(e,t,n)=>{let s=-1;const o=dm(t)?[t]:Ab(t),a=o.length,u=a-1;for(;++s<a;){const c=o[s];let f=n;if(s!==u){const h=e[c];f=Ut(h)||Array.isArray(h)?h:isNaN(+o[s+1])?{}:[]}if(c==="__proto__"||c==="constructor"||c==="prototype")return;e[c]=f,e=e[c]}return e};const yc={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},vr={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},os={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},jb=it.createContext(null),Bi=()=>it.useContext(jb),uL=e=>{const{children:t,...n}=e;return it.createElement(jb.Provider,{value:n},t)};var Db=(e,t,n,s=!0)=>{const o={defaultValues:t._defaultValues};for(const a in e)Object.defineProperty(o,a,{get:()=>{const u=a;return t._proxyFormState[u]!==vr.all&&(t._proxyFormState[u]=!s||vr.all),n&&(n[u]=!0),e[u]}});return o},An=e=>Ut(e)&&!Object.keys(e).length,Lb=(e,t,n,s)=>{n(e);const{name:o,...a}=e;return An(a)||Object.keys(a).length>=Object.keys(t).length||Object.keys(a).find(u=>t[u]===(!s||vr.all))},za=e=>Array.isArray(e)?e:[e],Mb=(e,t,n)=>!e||!t||e===t||za(e).some(s=>s&&(n?s===t:s.startsWith(t)||t.startsWith(s)));function fm(e){const t=it.useRef(e);t.current=e,it.useEffect(()=>{const n=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{n&&n.unsubscribe()}},[e.disabled])}function cL(e){const t=Bi(),{control:n=t.control,disabled:s,name:o,exact:a}=e,[u,c]=it.useState(n._formState),f=it.useRef(!0),h=it.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1}),m=it.useRef(o);return m.current=o,fm({disabled:s,next:g=>f.current&&Mb(m.current,g.name,a)&&Lb(g,h.current,n._updateFormState)&&c({...n._formState,...g}),subject:n._subjects.state}),it.useEffect(()=>(f.current=!0,h.current.isValid&&n._updateValid(!0),()=>{f.current=!1}),[n]),it.useMemo(()=>Db(u,n,h.current,!1),[u,n])}var Fr=e=>typeof e=="string",Ob=(e,t,n,s,o)=>Fr(e)?(s&&t.watch.add(e),ce(n,e,o)):Array.isArray(e)?e.map(a=>(s&&t.watch.add(a),ce(n,a))):(s&&(t.watchAll=!0),n);function dL(e){const t=Bi(),{control:n=t.control,name:s,defaultValue:o,disabled:a,exact:u}=e,c=it.useRef(s);c.current=s,fm({disabled:a,subject:n._subjects.values,next:m=>{Mb(c.current,m.name,u)&&h(Nn(Ob(c.current,n._names,m.values||n._formValues,!1,o)))}});const[f,h]=it.useState(n._getWatch(s,o));return it.useEffect(()=>n._removeUnmounted()),f}function fL(e){const t=Bi(),{name:n,disabled:s,control:o=t.control,shouldUnregister:a}=e,u=Nb(o._names.array,n),c=dL({control:o,name:n,defaultValue:ce(o._formValues,n,ce(o._defaultValues,n,e.defaultValue)),exact:!0}),f=cL({control:o,name:n,exact:!0}),h=it.useRef(o.register(n,{...e.rules,value:c,...ir(e.disabled)?{disabled:e.disabled}:{}})),m=it.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!ce(f.errors,n)},isDirty:{enumerable:!0,get:()=>!!ce(f.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!ce(f.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!ce(f.validatingFields,n)},error:{enumerable:!0,get:()=>ce(f.errors,n)}}),[f,n]),g=it.useMemo(()=>({name:n,value:c,...ir(s)||f.disabled?{disabled:f.disabled||s}:{},onChange:v=>h.current.onChange({target:{value:Pb(v),name:n},type:yc.CHANGE}),onBlur:()=>h.current.onBlur({target:{value:ce(o._formValues,n),name:n},type:yc.BLUR}),ref:v=>{const b=ce(o._fields,n);b&&v&&(b._f.ref={focus:()=>v.focus(),select:()=>v.select(),setCustomValidity:w=>v.setCustomValidity(w),reportValidity:()=>v.reportValidity()})}}),[n,o._formValues,s,f.disabled,c,o._fields]);return it.useEffect(()=>{const v=o._options.shouldUnregister||a,b=(w,S)=>{const C=ce(o._fields,w);C&&C._f&&(C._f.mount=S)};if(b(n,!0),v){const w=Nn(ce(o._options.defaultValues,n));pt(o._defaultValues,n,w),zt(ce(o._formValues,n))&&pt(o._formValues,n,w)}return!u&&o.register(n),()=>{(u?v&&!o._state.action:v)?o.unregister(n):b(n,!1)}},[n,o,u,a]),it.useEffect(()=>{o._updateDisabledField({disabled:s,fields:o._fields,name:n})},[s,n,o]),it.useMemo(()=>({field:g,formState:f,fieldState:m}),[g,f,m])}const hL=e=>e.render(fL(e));var Fb=(e,t,n,s,o)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[s]:o||!0}}:{},u0=e=>({isOnSubmit:!e||e===vr.onSubmit,isOnBlur:e===vr.onBlur,isOnChange:e===vr.onChange,isOnAll:e===vr.all,isOnTouch:e===vr.onTouched}),c0=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(s=>e.startsWith(s)&&/^\.\w+/.test(e.slice(s.length))));const Ua=(e,t,n,s)=>{for(const o of n||Object.keys(e)){const a=ce(e,o);if(a){const{_f:u,...c}=a;if(u){if(u.refs&&u.refs[0]&&t(u.refs[0],o)&&!s)return!0;if(u.ref&&t(u.ref,u.name)&&!s)return!0;if(Ua(c,t))break}else if(Ut(c)&&Ua(c,t))break}}};var pL=(e,t,n)=>{const s=za(ce(e,n));return pt(s,"root",t[n]),pt(e,n,s),e},hm=e=>e.type==="file",Or=e=>typeof e=="function",vc=e=>{if(!cm)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},rc=e=>Fr(e),pm=e=>e.type==="radio",xc=e=>e instanceof RegExp;const d0={value:!1,isValid:!1},f0={value:!0,isValid:!0};var Ib=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(n=>n&&n.checked&&!n.disabled).map(n=>n.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!zt(e[0].attributes.value)?zt(e[0].value)||e[0].value===""?f0:{value:e[0].value,isValid:!0}:f0:d0}return d0};const h0={isValid:!1,value:null};var Vb=e=>Array.isArray(e)?e.reduce((t,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:t,h0):h0;function p0(e,t,n="validate"){if(rc(e)||Array.isArray(e)&&e.every(rc)||ir(e)&&!e)return{type:n,message:rc(e)?e:"",ref:t}}var yo=e=>Ut(e)&&!xc(e)?e:{value:e,message:""},m0=async(e,t,n,s,o,a)=>{const{ref:u,refs:c,required:f,maxLength:h,minLength:m,min:g,max:v,pattern:b,validate:w,name:S,valueAsNumber:C,mount:E}=e._f,R=ce(n,S);if(!E||t.has(S))return{};const N=c?c[0]:u,I=X=>{o&&N.reportValidity&&(N.setCustomValidity(ir(X)?"":X||""),N.reportValidity())},T={},F=pm(u),z=kl(u),O=F||z,q=(C||hm(u))&&zt(u.value)&&zt(R)||vc(u)&&u.value===""||R===""||Array.isArray(R)&&!R.length,te=Fb.bind(null,S,s,T),pe=(X,de,ke,we=os.maxLength,De=os.minLength)=>{const me=X?de:ke;T[S]={type:X?we:De,message:me,ref:u,...te(X?we:De,me)}};if(a?!Array.isArray(R)||!R.length:f&&(!O&&(q||xn(R))||ir(R)&&!R||z&&!Ib(c).isValid||F&&!Vb(c).isValid)){const{value:X,message:de}=rc(f)?{value:!!f,message:f}:yo(f);if(X&&(T[S]={type:os.required,message:de,ref:N,...te(os.required,de)},!s))return I(de),T}if(!q&&(!xn(g)||!xn(v))){let X,de;const ke=yo(v),we=yo(g);if(!xn(R)&&!isNaN(R)){const De=u.valueAsNumber||R&&+R;xn(ke.value)||(X=De>ke.value),xn(we.value)||(de=De<we.value)}else{const De=u.valueAsDate||new Date(R),me=ie=>new Date(new Date().toDateString()+" "+ie),Y=u.type=="time",ue=u.type=="week";Fr(ke.value)&&R&&(X=Y?me(R)>me(ke.value):ue?R>ke.value:De>new Date(ke.value)),Fr(we.value)&&R&&(de=Y?me(R)<me(we.value):ue?R<we.value:De<new Date(we.value))}if((X||de)&&(pe(!!X,ke.message,we.message,os.max,os.min),!s))return I(T[S].message),T}if((h||m)&&!q&&(Fr(R)||a&&Array.isArray(R))){const X=yo(h),de=yo(m),ke=!xn(X.value)&&R.length>+X.value,we=!xn(de.value)&&R.length<+de.value;if((ke||we)&&(pe(ke,X.message,de.message),!s))return I(T[S].message),T}if(b&&!q&&Fr(R)){const{value:X,message:de}=yo(b);if(xc(X)&&!R.match(X)&&(T[S]={type:os.pattern,message:de,ref:u,...te(os.pattern,de)},!s))return I(de),T}if(w){if(Or(w)){const X=await w(R,n),de=p0(X,N);if(de&&(T[S]={...de,...te(os.validate,de.message)},!s))return I(de.message),T}else if(Ut(w)){let X={};for(const de in w){if(!An(X)&&!s)break;const ke=p0(await w[de](R,n),N,de);ke&&(X={...ke,...te(de,ke.message)},I(ke.message),s&&(T[S]=X))}if(!An(X)&&(T[S]={ref:N,...X},!s))return T}}return I(!0),T};function mL(e,t){const n=t.slice(0,-1).length;let s=0;for(;s<n;)e=zt(e)?s++:e[t[s++]];return e}function gL(e){for(const t in e)if(e.hasOwnProperty(t)&&!zt(e[t]))return!1;return!0}function qt(e,t){const n=Array.isArray(t)?t:dm(t)?[t]:Ab(t),s=n.length===1?e:mL(e,n),o=n.length-1,a=n[o];return s&&delete s[a],o!==0&&(Ut(s)&&An(s)||Array.isArray(s)&&gL(s))&&qt(e,n.slice(0,-1)),e}var ph=()=>{let e=[];return{get observers(){return e},next:o=>{for(const a of e)a.next&&a.next(o)},subscribe:o=>(e.push(o),{unsubscribe:()=>{e=e.filter(a=>a!==o)}}),unsubscribe:()=>{e=[]}}},Kh=e=>xn(e)||!Rb(e);function Gs(e,t){if(Kh(e)||Kh(t))return e===t;if(Ei(e)&&Ei(t))return e.getTime()===t.getTime();const n=Object.keys(e),s=Object.keys(t);if(n.length!==s.length)return!1;for(const o of n){const a=e[o];if(!s.includes(o))return!1;if(o!=="ref"){const u=t[o];if(Ei(a)&&Ei(u)||Ut(a)&&Ut(u)||Array.isArray(a)&&Array.isArray(u)?!Gs(a,u):a!==u)return!1}}return!0}var Bb=e=>e.type==="select-multiple",yL=e=>pm(e)||kl(e),mh=e=>vc(e)&&e.isConnected,zb=e=>{for(const t in e)if(Or(e[t]))return!0;return!1};function wc(e,t={}){const n=Array.isArray(e);if(Ut(e)||n)for(const s in e)Array.isArray(e[s])||Ut(e[s])&&!zb(e[s])?(t[s]=Array.isArray(e[s])?[]:{},wc(e[s],t[s])):xn(e[s])||(t[s]=!0);return t}function Ub(e,t,n){const s=Array.isArray(e);if(Ut(e)||s)for(const o in e)Array.isArray(e[o])||Ut(e[o])&&!zb(e[o])?zt(t)||Kh(n[o])?n[o]=Array.isArray(e[o])?wc(e[o],[]):{...wc(e[o])}:Ub(e[o],xn(t)?{}:t[o],n[o]):n[o]=!Gs(e[o],t[o]);return n}var ka=(e,t)=>Ub(e,t,wc(t)),$b=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:s})=>zt(e)?e:t?e===""?NaN:e&&+e:n&&Fr(e)?new Date(e):s?s(e):e;function gh(e){const t=e.ref;return hm(t)?t.files:pm(t)?Vb(e.refs).value:Bb(t)?[...t.selectedOptions].map(({value:n})=>n):kl(t)?Ib(e.refs).value:$b(zt(t.value)?e.ref.value:t.value,e)}var vL=(e,t,n,s)=>{const o={};for(const a of e){const u=ce(t,a);u&&pt(o,a,u._f)}return{criteriaMode:n,names:[...e],fields:o,shouldUseNativeValidation:s}},Ta=e=>zt(e)?e:xc(e)?e.source:Ut(e)?xc(e.value)?e.value.source:e.value:e;const g0="AsyncFunction";var xL=e=>!!e&&!!e.validate&&!!(Or(e.validate)&&e.validate.constructor.name===g0||Ut(e.validate)&&Object.values(e.validate).find(t=>t.constructor.name===g0)),wL=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function y0(e,t,n){const s=ce(e,n);if(s||dm(n))return{error:s,name:n};const o=n.split(".");for(;o.length;){const a=o.join("."),u=ce(t,a),c=ce(e,a);if(u&&!Array.isArray(u)&&n!==a)return{name:n};if(c&&c.type)return{name:a,error:c};o.pop()}return{name:n}}var SL=(e,t,n,s,o)=>o.isOnAll?!1:!n&&o.isOnTouch?!(t||e):(n?s.isOnBlur:o.isOnBlur)?!e:(n?s.isOnChange:o.isOnChange)?e:!0,bL=(e,t)=>!zc(ce(e,t)).length&&qt(e,t);const _L={mode:vr.onSubmit,reValidateMode:vr.onChange,shouldFocusError:!0};function EL(e={}){let t={..._L,...e},n={submitCount:0,isDirty:!1,isLoading:Or(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1},s={},o=Ut(t.defaultValues)||Ut(t.values)?Nn(t.defaultValues||t.values)||{}:{},a=t.shouldUnregister?{}:Nn(o),u={action:!1,mount:!1,watch:!1},c={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},f,h=0;const m={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},g={values:ph(),array:ph(),state:ph()},v=u0(t.mode),b=u0(t.reValidateMode),w=t.criteriaMode===vr.all,S=A=>U=>{clearTimeout(h),h=setTimeout(A,U)},C=async A=>{if(!t.disabled&&(m.isValid||A)){const U=t.resolver?An((await O()).errors):await te(s,!0);U!==n.isValid&&g.state.next({isValid:U})}},E=(A,U)=>{!t.disabled&&(m.isValidating||m.validatingFields)&&((A||Array.from(c.mount)).forEach(H=>{H&&(U?pt(n.validatingFields,H,U):qt(n.validatingFields,H))}),g.state.next({validatingFields:n.validatingFields,isValidating:!An(n.validatingFields)}))},R=(A,U=[],H,oe,ae=!0,se=!0)=>{if(oe&&H&&!t.disabled){if(u.action=!0,se&&Array.isArray(ce(s,A))){const Re=H(ce(s,A),oe.argA,oe.argB);ae&&pt(s,A,Re)}if(se&&Array.isArray(ce(n.errors,A))){const Re=H(ce(n.errors,A),oe.argA,oe.argB);ae&&pt(n.errors,A,Re),bL(n.errors,A)}if(m.touchedFields&&se&&Array.isArray(ce(n.touchedFields,A))){const Re=H(ce(n.touchedFields,A),oe.argA,oe.argB);ae&&pt(n.touchedFields,A,Re)}m.dirtyFields&&(n.dirtyFields=ka(o,a)),g.state.next({name:A,isDirty:X(A,U),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else pt(a,A,U)},N=(A,U)=>{pt(n.errors,A,U),g.state.next({errors:n.errors})},I=A=>{n.errors=A,g.state.next({errors:n.errors,isValid:!1})},T=(A,U,H,oe)=>{const ae=ce(s,A);if(ae){const se=ce(a,A,zt(H)?ce(o,A):H);zt(se)||oe&&oe.defaultChecked||U?pt(a,A,U?se:gh(ae._f)):we(A,se),u.mount&&C()}},F=(A,U,H,oe,ae)=>{let se=!1,Re=!1;const Fe={name:A};if(!t.disabled){const ut=!!(ce(s,A)&&ce(s,A)._f&&ce(s,A)._f.disabled);if(!H||oe){m.isDirty&&(Re=n.isDirty,n.isDirty=Fe.isDirty=X(),se=Re!==Fe.isDirty);const yt=ut||Gs(ce(o,A),U);Re=!!(!ut&&ce(n.dirtyFields,A)),yt||ut?qt(n.dirtyFields,A):pt(n.dirtyFields,A,!0),Fe.dirtyFields=n.dirtyFields,se=se||m.dirtyFields&&Re!==!yt}if(H){const yt=ce(n.touchedFields,A);yt||(pt(n.touchedFields,A,H),Fe.touchedFields=n.touchedFields,se=se||m.touchedFields&&yt!==H)}se&&ae&&g.state.next(Fe)}return se?Fe:{}},z=(A,U,H,oe)=>{const ae=ce(n.errors,A),se=m.isValid&&ir(U)&&n.isValid!==U;if(t.delayError&&H?(f=S(()=>N(A,H)),f(t.delayError)):(clearTimeout(h),f=null,H?pt(n.errors,A,H):qt(n.errors,A)),(H?!Gs(ae,H):ae)||!An(oe)||se){const Re={...oe,...se&&ir(U)?{isValid:U}:{},errors:n.errors,name:A};n={...n,...Re},g.state.next(Re)}},O=async A=>{E(A,!0);const U=await t.resolver(a,t.context,vL(A||c.mount,s,t.criteriaMode,t.shouldUseNativeValidation));return E(A),U},q=async A=>{const{errors:U}=await O(A);if(A)for(const H of A){const oe=ce(U,H);oe?pt(n.errors,H,oe):qt(n.errors,H)}else n.errors=U;return U},te=async(A,U,H={valid:!0})=>{for(const oe in A){const ae=A[oe];if(ae){const{_f:se,...Re}=ae;if(se){const Fe=c.array.has(se.name),ut=ae._f&&xL(ae._f);ut&&m.validatingFields&&E([oe],!0);const yt=await m0(ae,c.disabled,a,w,t.shouldUseNativeValidation&&!U,Fe);if(ut&&m.validatingFields&&E([oe]),yt[se.name]&&(H.valid=!1,U))break;!U&&(ce(yt,se.name)?Fe?pL(n.errors,yt,se.name):pt(n.errors,se.name,yt[se.name]):qt(n.errors,se.name))}!An(Re)&&await te(Re,U,H)}}return H.valid},pe=()=>{for(const A of c.unMount){const U=ce(s,A);U&&(U._f.refs?U._f.refs.every(H=>!mh(H)):!mh(U._f.ref))&&We(A)}c.unMount=new Set},X=(A,U)=>!t.disabled&&(A&&U&&pt(a,A,U),!Gs(L(),o)),de=(A,U,H)=>Ob(A,c,{...u.mount?a:zt(U)?o:Fr(A)?{[A]:U}:U},H,U),ke=A=>zc(ce(u.mount?a:o,A,t.shouldUnregister?ce(o,A,[]):[])),we=(A,U,H={})=>{const oe=ce(s,A);let ae=U;if(oe){const se=oe._f;se&&(!se.disabled&&pt(a,A,$b(U,se)),ae=vc(se.ref)&&xn(U)?"":U,Bb(se.ref)?[...se.ref.options].forEach(Re=>Re.selected=ae.includes(Re.value)):se.refs?kl(se.ref)?se.refs.length>1?se.refs.forEach(Re=>(!Re.defaultChecked||!Re.disabled)&&(Re.checked=Array.isArray(ae)?!!ae.find(Fe=>Fe===Re.value):ae===Re.value)):se.refs[0]&&(se.refs[0].checked=!!ae):se.refs.forEach(Re=>Re.checked=Re.value===ae):hm(se.ref)?se.ref.value="":(se.ref.value=ae,se.ref.type||g.values.next({name:A,values:{...a}})))}(H.shouldDirty||H.shouldTouch)&&F(A,ae,H.shouldTouch,H.shouldDirty,!0),H.shouldValidate&&ie(A)},De=(A,U,H)=>{for(const oe in U){const ae=U[oe],se=`${A}.${oe}`,Re=ce(s,se);(c.array.has(A)||Ut(ae)||Re&&!Re._f)&&!Ei(ae)?De(se,ae,H):we(se,ae,H)}},me=(A,U,H={})=>{const oe=ce(s,A),ae=c.array.has(A),se=Nn(U);pt(a,A,se),ae?(g.array.next({name:A,values:{...a}}),(m.isDirty||m.dirtyFields)&&H.shouldDirty&&g.state.next({name:A,dirtyFields:ka(o,a),isDirty:X(A,se)})):oe&&!oe._f&&!xn(se)?De(A,se,H):we(A,se,H),c0(A,c)&&g.state.next({...n}),g.values.next({name:u.mount?A:void 0,values:{...a}})},Y=async A=>{u.mount=!0;const U=A.target;let H=U.name,oe=!0;const ae=ce(s,H),se=()=>U.type?gh(ae._f):Pb(A),Re=Fe=>{oe=Number.isNaN(Fe)||Ei(Fe)&&isNaN(Fe.getTime())||Gs(Fe,ce(a,H,Fe))};if(ae){let Fe,ut;const yt=se(),Wt=A.type===yc.BLUR||A.type===yc.FOCUS_OUT,kr=!wL(ae._f)&&!t.resolver&&!ce(n.errors,H)&&!ae._f.deps||SL(Wt,ce(n.touchedFields,H),n.isSubmitted,b,v),bt=c0(H,c,Wt);pt(a,H,yt),Wt?(ae._f.onBlur&&ae._f.onBlur(A),f&&f(0)):ae._f.onChange&&ae._f.onChange(A);const ln=F(H,yt,Wt,!1),Tr=!An(ln)||bt;if(!Wt&&g.values.next({name:H,type:A.type,values:{...a}}),kr)return m.isValid&&(t.mode==="onBlur"&&Wt?C():Wt||C()),Tr&&g.state.next({name:H,...bt?{}:ln});if(!Wt&&bt&&g.state.next({...n}),t.resolver){const{errors:Fn}=await O([H]);if(Re(yt),oe){const ms=y0(n.errors,s,H),Gr=y0(Fn,s,ms.name||H);Fe=Gr.error,H=Gr.name,ut=An(Fn)}}else E([H],!0),Fe=(await m0(ae,c.disabled,a,w,t.shouldUseNativeValidation))[H],E([H]),Re(yt),oe&&(Fe?ut=!1:m.isValid&&(ut=await te(s,!0)));oe&&(ae._f.deps&&ie(ae._f.deps),z(H,ut,Fe,ln))}},ue=(A,U)=>{if(ce(n.errors,U)&&A.focus)return A.focus(),1},ie=async(A,U={})=>{let H,oe;const ae=za(A);if(t.resolver){const se=await q(zt(A)?A:ae);H=An(se),oe=A?!ae.some(Re=>ce(se,Re)):H}else A?(oe=(await Promise.all(ae.map(async se=>{const Re=ce(s,se);return await te(Re&&Re._f?{[se]:Re}:Re)}))).every(Boolean),!(!oe&&!n.isValid)&&C()):oe=H=await te(s);return g.state.next({...!Fr(A)||m.isValid&&H!==n.isValid?{}:{name:A},...t.resolver||!A?{isValid:H}:{},errors:n.errors}),U.shouldFocus&&!oe&&Ua(s,ue,A?ae:c.mount),oe},L=A=>{const U={...u.mount?a:o};return zt(A)?U:Fr(A)?ce(U,A):A.map(H=>ce(U,H))},K=(A,U)=>({invalid:!!ce((U||n).errors,A),isDirty:!!ce((U||n).dirtyFields,A),error:ce((U||n).errors,A),isValidating:!!ce(n.validatingFields,A),isTouched:!!ce((U||n).touchedFields,A)}),Le=A=>{A&&za(A).forEach(U=>qt(n.errors,U)),g.state.next({errors:A?n.errors:{}})},Oe=(A,U,H)=>{const oe=(ce(s,A,{_f:{}})._f||{}).ref,ae=ce(n.errors,A)||{},{ref:se,message:Re,type:Fe,...ut}=ae;pt(n.errors,A,{...ut,...U,ref:oe}),g.state.next({name:A,errors:n.errors,isValid:!1}),H&&H.shouldFocus&&oe&&oe.focus&&oe.focus()},Be=(A,U)=>Or(A)?g.values.subscribe({next:H=>A(de(void 0,U),H)}):de(A,U,!0),We=(A,U={})=>{for(const H of A?za(A):c.mount)c.mount.delete(H),c.array.delete(H),U.keepValue||(qt(s,H),qt(a,H)),!U.keepError&&qt(n.errors,H),!U.keepDirty&&qt(n.dirtyFields,H),!U.keepTouched&&qt(n.touchedFields,H),!U.keepIsValidating&&qt(n.validatingFields,H),!t.shouldUnregister&&!U.keepDefaultValue&&qt(o,H);g.values.next({values:{...a}}),g.state.next({...n,...U.keepDirty?{isDirty:X()}:{}}),!U.keepIsValid&&C()},be=({disabled:A,name:U,field:H,fields:oe})=>{(ir(A)&&u.mount||A||c.disabled.has(U))&&(A?c.disabled.add(U):c.disabled.delete(U),F(U,gh(H?H._f:ce(oe,U)._f),!1,!1,!0))},Pe=(A,U={})=>{let H=ce(s,A);const oe=ir(U.disabled)||ir(t.disabled);return pt(s,A,{...H||{},_f:{...H&&H._f?H._f:{ref:{name:A}},name:A,mount:!0,...U}}),c.mount.add(A),H?be({field:H,disabled:ir(U.disabled)?U.disabled:t.disabled,name:A}):T(A,!0,U.value),{...oe?{disabled:U.disabled||t.disabled}:{},...t.progressive?{required:!!U.required,min:Ta(U.min),max:Ta(U.max),minLength:Ta(U.minLength),maxLength:Ta(U.maxLength),pattern:Ta(U.pattern)}:{},name:A,onChange:Y,onBlur:Y,ref:ae=>{if(ae){Pe(A,U),H=ce(s,A);const se=zt(ae.value)&&ae.querySelectorAll&&ae.querySelectorAll("input,select,textarea")[0]||ae,Re=yL(se),Fe=H._f.refs||[];if(Re?Fe.find(ut=>ut===se):se===H._f.ref)return;pt(s,A,{_f:{...H._f,...Re?{refs:[...Fe.filter(mh),se,...Array.isArray(ce(o,A))?[{}]:[]],ref:{type:se.type,name:A}}:{ref:se}}}),T(A,!1,void 0,se)}else H=ce(s,A,{}),H._f&&(H._f.mount=!1),(t.shouldUnregister||U.shouldUnregister)&&!(Nb(c.array,A)&&u.action)&&c.unMount.add(A)}}},Me=()=>t.shouldFocusError&&Ua(s,ue,c.mount),rt=A=>{ir(A)&&(g.state.next({disabled:A}),Ua(s,(U,H)=>{const oe=ce(s,H);oe&&(U.disabled=oe._f.disabled||A,Array.isArray(oe._f.refs)&&oe._f.refs.forEach(ae=>{ae.disabled=oe._f.disabled||A}))},0,!1))},at=(A,U)=>async H=>{let oe;H&&(H.preventDefault&&H.preventDefault(),H.persist&&H.persist());let ae=Nn(a);if(c.disabled.size)for(const se of c.disabled)pt(ae,se,void 0);if(g.state.next({isSubmitting:!0}),t.resolver){const{errors:se,values:Re}=await O();n.errors=se,ae=Re}else await te(s);if(qt(n.errors,"root"),An(n.errors)){g.state.next({errors:{}});try{await A(ae,H)}catch(se){oe=se}}else U&&await U({...n.errors},H),Me(),setTimeout(Me);if(g.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:An(n.errors)&&!oe,submitCount:n.submitCount+1,errors:n.errors}),oe)throw oe},Ee=(A,U={})=>{ce(s,A)&&(zt(U.defaultValue)?me(A,Nn(ce(o,A))):(me(A,U.defaultValue),pt(o,A,Nn(U.defaultValue))),U.keepTouched||qt(n.touchedFields,A),U.keepDirty||(qt(n.dirtyFields,A),n.isDirty=U.defaultValue?X(A,Nn(ce(o,A))):X()),U.keepError||(qt(n.errors,A),m.isValid&&C()),g.state.next({...n}))},Xe=(A,U={})=>{const H=A?Nn(A):o,oe=Nn(H),ae=An(A),se=ae?o:oe;if(U.keepDefaultValues||(o=H),!U.keepValues){if(U.keepDirtyValues){const Re=new Set([...c.mount,...Object.keys(ka(o,a))]);for(const Fe of Array.from(Re))ce(n.dirtyFields,Fe)?pt(se,Fe,ce(a,Fe)):me(Fe,ce(se,Fe))}else{if(cm&&zt(A))for(const Re of c.mount){const Fe=ce(s,Re);if(Fe&&Fe._f){const ut=Array.isArray(Fe._f.refs)?Fe._f.refs[0]:Fe._f.ref;if(vc(ut)){const yt=ut.closest("form");if(yt){yt.reset();break}}}}s={}}a=t.shouldUnregister?U.keepDefaultValues?Nn(o):{}:Nn(se),g.array.next({values:{...se}}),g.values.next({values:{...se}})}c={mount:U.keepDirtyValues?c.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},u.mount=!m.isValid||!!U.keepIsValid||!!U.keepDirtyValues,u.watch=!!t.shouldUnregister,g.state.next({submitCount:U.keepSubmitCount?n.submitCount:0,isDirty:ae?!1:U.keepDirty?n.isDirty:!!(U.keepDefaultValues&&!Gs(A,o)),isSubmitted:U.keepIsSubmitted?n.isSubmitted:!1,dirtyFields:ae?{}:U.keepDirtyValues?U.keepDefaultValues&&a?ka(o,a):n.dirtyFields:U.keepDefaultValues&&A?ka(o,A):U.keepDirty?n.dirtyFields:{},touchedFields:U.keepTouched?n.touchedFields:{},errors:U.keepErrors?n.errors:{},isSubmitSuccessful:U.keepIsSubmitSuccessful?n.isSubmitSuccessful:!1,isSubmitting:!1})},mt=(A,U)=>Xe(Or(A)?A(a):A,U);return{control:{register:Pe,unregister:We,getFieldState:K,handleSubmit:at,setError:Oe,_executeSchema:O,_getWatch:de,_getDirty:X,_updateValid:C,_removeUnmounted:pe,_updateFieldArray:R,_updateDisabledField:be,_getFieldArray:ke,_reset:Xe,_resetDefaultValues:()=>Or(t.defaultValues)&&t.defaultValues().then(A=>{mt(A,t.resetOptions),g.state.next({isLoading:!1})}),_updateFormState:A=>{n={...n,...A}},_disableForm:rt,_subjects:g,_proxyFormState:m,_setErrors:I,get _fields(){return s},get _formValues(){return a},get _state(){return u},set _state(A){u=A},get _defaultValues(){return o},get _names(){return c},set _names(A){c=A},get _formState(){return n},set _formState(A){n=A},get _options(){return t},set _options(A){t={...t,...A}}},trigger:ie,register:Pe,handleSubmit:at,watch:Be,setValue:me,getValues:L,reset:mt,resetField:Ee,clearErrors:Le,unregister:We,setError:Oe,setFocus:(A,U={})=>{const H=ce(s,A),oe=H&&H._f;if(oe){const ae=oe.refs?oe.refs[0]:oe.ref;ae.focus&&(ae.focus(),U.shouldSelect&&Or(ae.select)&&ae.select())}},getFieldState:K}}function Uc(e={}){const t=it.useRef(void 0),n=it.useRef(void 0),[s,o]=it.useState({isDirty:!1,isValidating:!1,isLoading:Or(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,defaultValues:Or(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...EL(e),formState:s});const a=t.current.control;return a._options=e,fm({subject:a._subjects.state,next:u=>{Lb(u,a._proxyFormState,a._updateFormState,!0)&&o({...a._formState})}}),it.useEffect(()=>a._disableForm(e.disabled),[a,e.disabled]),it.useEffect(()=>{if(a._proxyFormState.isDirty){const u=a._getDirty();u!==s.isDirty&&a._subjects.state.next({isDirty:u})}},[a,s.isDirty]),it.useEffect(()=>{e.values&&!Gs(e.values,n.current)?(a._reset(e.values,a._options.resetOptions),n.current=e.values,o(u=>({...u}))):a._resetDefaultValues()},[e.values,a]),it.useEffect(()=>{e.errors&&a._setErrors(e.errors)},[e.errors,a]),it.useEffect(()=>{a._state.mount||(a._updateValid(),a._state.mount=!0),a._state.watch&&(a._state.watch=!1,a._subjects.state.next({...a._formState})),a._removeUnmounted()}),it.useEffect(()=>{e.shouldUnregister&&a._subjects.values.next({values:a._getWatch()})},[e.shouldUnregister,a]),t.current.formState=Db(s,a),t.current}var CL="Label",Wb=_.forwardRef((e,t)=>x.jsx(_n.label,{...e,ref:t,onMouseDown:n=>{var o;n.target.closest("button, input, select, textarea")||((o=e.onMouseDown)==null||o.call(e,n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));Wb.displayName=CL;var Hb=Wb;const kL=kp("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),Gb=_.forwardRef(({className:e,...t},n)=>x.jsx(Hb,{ref:n,className:Ye(kL(),e),...t}));Gb.displayName=Hb.displayName;const $c=uL,Zb=_.createContext({}),Qa=({...e})=>x.jsx(Zb.Provider,{value:{name:e.name},children:x.jsx(hL,{...e})}),Wc=()=>{const e=_.useContext(Zb),t=_.useContext(Kb),{getFieldState:n,formState:s}=Bi(),o=n(e.name,s);if(!e)throw new Error("useFormField should be used within <FormField>");const{id:a}=t;return{id:a,name:e.name,formItemId:`${a}-form-item`,formDescriptionId:`${a}-form-item-description`,formMessageId:`${a}-form-item-message`,...o}},Kb=_.createContext({}),jn=_.forwardRef(({className:e,...t},n)=>{const s=_.useId();return x.jsx(Kb.Provider,{value:{id:s},children:x.jsx("div",{ref:n,className:Ye("space-y-2",e),...t})})});jn.displayName="FormItem";const Dn=_.forwardRef(({className:e,...t},n)=>{const{error:s,formItemId:o}=Wc();return x.jsx(Gb,{ref:n,className:Ye(s&&"text-destructive",e),htmlFor:o,...t})});Dn.displayName="FormLabel";const Ln=_.forwardRef(({...e},t)=>{const{error:n,formItemId:s,formDescriptionId:o,formMessageId:a}=Wc();return x.jsx(Pi,{ref:t,id:s,"aria-describedby":n?`${o} ${a}`:`${o}`,"aria-invalid":!!n,...e})});Ln.displayName="FormControl";const TL=_.forwardRef(({className:e,...t},n)=>{const{formDescriptionId:s}=Wc();return x.jsx("p",{ref:n,id:s,className:Ye("text-[0.8rem] text-muted-foreground",e),...t})});TL.displayName="FormDescription";const qb=_.forwardRef(({className:e,children:t,...n},s)=>{const{error:o,formMessageId:a}=Wc(),u=o?String(o==null?void 0:o.message):t;return u?x.jsx("p",{ref:s,id:a,className:Ye("text-[0.8rem] font-medium text-destructive",e),...n,children:u}):null});qb.displayName="FormMessage";const qh=_.forwardRef(({className:e,type:t,...n},s)=>t!=="file"?x.jsx("input",{type:t,className:Ye("flex h-14 rounded-[2px] border p-4 focus:border-[3px] focus:outline-none focus:border-primary transition-all hover:border-on_surface border-outline bg-transparent text-base w-regular file:border-0 file:bg-secondary_container file:outline-none file:text-sm file:w-fit file:text-on_secondary_container file:font-medium placeholder:text-muted-foreground focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50",e),ref:s,...n}):x.jsxs("div",{className:"relative w-[160px] h-9 overflow-hidden !cursor-pointer",children:[x.jsx("input",{ref:s,accept:".pdf, .png, .jpeg, .jpg",type:t,className:Ye("h-9 absolute top-0 left-0 !cursor-pointer opacity-0 z-20 size-full"),...n}),x.jsxs("div",{className:"absolute rounded-[2px] cursor-pointer size-full flex items-center gap-4 px-3 py-2.5 top-0 left-0 bg-secondary_container",children:[x.jsx(zR,{className:"cursor-pointer",size:16})," Upload file"]})]}));qh.displayName="Input";const Yb=_.forwardRef(({className:e,...t},n)=>x.jsx("textarea",{className:Ye("flex min-h-[60px] w-full rounded-md border border-input bg-transparent px-3 py-2 text-base shadow-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:n,...t}));Yb.displayName="Textarea";const qe=({control:e,name:t,label:n,placeholder:s,error:o,type:a="text",className:u,disabled:c,textArea:f=!1,textDark:h,supporText:m,handleChange:g,onPrimary:v=!1})=>x.jsx(Qa,{control:e,name:t,render:({field:b})=>x.jsxs(jn,{className:Ye(u,"flex flex-col w-full relative"),children:[x.jsx(Dn,{className:Ye("text-xl",v&&"!text-on_primary",h?"text-on_surface":"text-on_surface_v"),children:n}),x.jsx(Ln,{children:x.jsx(x.Fragment,{children:f?x.jsx(Yb,{rows:3,...b,placeholder:s,className:Ye(o&&"border-[#BA1A1A]",v&&"border-primary_outline_reverse focus:border-white hover:border-white focus:border-1 text-on_primary")}):a!=="file"?x.jsx(qh,{...b,type:a,placeholder:s,disabled:c,className:Ye(o&&"border-[#BA1A1A]",v&&"border-primary_outline_reverse focus:border-white hover:border-white focus:border-1 text-on_primary")}):x.jsxs("div",{className:"relative",children:[x.jsx(qh,{type:"file",placeholder:s,onChange:w=>{var C;const S=((C=w.target.files)==null?void 0:C[0])||null;console.log("Выбранный файл:",S),b.onChange(S),g&&g(w)},disabled:c}),b.value&&x.jsxs("div",{className:"text-sm mt-2 text-gray-500 absolute top-8",children:["Выбранный файл: ",b.value.name]})]})})}),x.jsx(qb,{className:Ye("absolute -bottom-5 left-0 text-sm font-medium leading-[130%]",o&&v?"text-teritary_04":"text-[#BA1A1A]"),children:o?o.message:m})]})}),mm=({className:e,delay:t=.15})=>x.jsxs(fs.div,{initial:{opacity:0,y:50},animate:{opacity:1,y:0,transition:{delay:t}},className:Ye("flex flex-col gap-8 my-16",e),children:[x.jsx("h3",{className:"text-3xl text-center",children:"Форма успешно отправлена!"}),x.jsx(wn,{className:"w-fit mx-auto",to:"/",children:x.jsx(Jt,{variant:"outline",children:"Вернуться на главную"})})]}),Xb=[{title:"Текстильные машины и оборудование",img:"/theme/1.svg"},{title:"Одежда, обувь, кожаные изделия",img:"/theme/2.svg"},{title:"Переработка натуральных волокон",img:"/theme/3.svg"},{title:"Домашний текстиль и эко-текстиль",img:"/theme/4.svg"},{title:"Запасные части и вспомогательные материалы",img:"/theme/5.svg"},{title:"Химические средства и красители",img:"/theme/6.svg"},{title:"Аксессуары и швейная фурнитура",img:"/theme/7.svg"},{title:"Мода и дизайн",img:"/theme/8.svg"}],RL=()=>x.jsx("section",{className:"",children:x.jsxs(On,{children:[x.jsx("h2",{className:"h2 mb-10 text-center",children:"Тематические направления выставки"}),x.jsx("div",{className:"grid md:grid-cols-4 grid-cols-2 gap-6",children:Xb.map(e=>x.jsx(Jw,{...e,iconClassName:"bg-teritary_04"},e.title))})]})}),PL=({className:e})=>x.jsxs("section",{className:Ye("relative w-full bg-[#FDE8C4] -z-10 py-10",e),children:[x.jsx("img",{src:"/theme-cover.png",alt:"",className:"absolute top-0 left-0 size-full -z-10 object-cover"}),x.jsxs(On,{children:[x.jsx("h3",{className:"h2 mb-4",children:"Отрасли"}),x.jsx("p",{className:"text-lg text-primary_09 mb-6",children:"Мероприятие объединит ключевых игроков в таких отраслях, как:"}),x.jsx("div",{className:"grid md:grid-cols-4 grid-cols-2 gap-6",children:Xb.map(t=>x.jsx(Jw,{className:"!bg-primary_container",...t},t.title))}),x.jsxs("div",{className:"flex items-center gap-3 mt-8 text-on_surface_v text-lg",children:[x.jsx("div",{className:"md:w-1 w-4 md:h-[38px] h-40 bg-primary_09"}),x.jsx("p",{className:"text-18 !text-primary_09",children:"Участники смогут продемонстрировать свои инновационные решения, наладить взаимовыгодные партнерства и выйти на новые рынки."})]})]})]}),Qb=[{name:"Монтаж выставки",date:"12 мая – 10 июня 2025 года"},{name:"Работа",date:"11–13 июня 2025 года"},{name:"Демонтаж",date:"13–14 июня 2025 года"}],NL=[{title:"contact@turkmenexpo.com",subtitle:"Адрес электронной почты",img:"/contacts/mail.svg"},{title:"здание ТПП Туркменистана",subtitle:"Адрес выставки",img:"/contacts/location.svg"},{title:"+99371871812; 99363719588",subtitle:"Контактный номер",img:"/contacts/mobile.svg"}],AL=({className:e})=>x.jsx("section",{className:Ye("bg-surface_high pt-10 pb-20",e),children:x.jsxs(On,{children:[x.jsx("h2",{className:"h2 mb-10",children:"Время выставки"}),x.jsxs("div",{className:"flex flex-col gap-6",children:[x.jsx("div",{className:"flex flex-col md:flex-row items-center gap-6",children:Qb.map(t=>_.createElement(eS,{...t,key:t.name,className:"w-full"}))}),x.jsx("div",{className:"md:p-10 pt-16 flex flex-col md:flex-row items-center gap-6",children:NL.map(t=>_.createElement(AP,{...t,key:t.title,className:"w-full"}))}),x.jsx(wn,{to:"/stend-form",className:"md:w-fit w-full mx-auto",children:x.jsx(Jt,{className:"w-full",children:"Забронируйте стенд "})})]})]})}),jL=({className:e})=>x.jsx("section",{className:Ye("bg-bg_surface_container py-10 md:py-[160px]",e),children:x.jsxs(On,{children:[x.jsx("h3",{className:"h2 mb-6",children:"Время выставки"}),x.jsx("div",{className:"flex flex-col md:flex-row items-center gap-6",children:Qb.map(t=>_.createElement(eS,{bottomClassName:"!bg-white rounded-b-[2px]",...t,key:t.name,className:"w-full"}))})]})}),DL=({className:e})=>x.jsxs("section",{className:Ye(" gap-6 relative overflow-hidden",e),children:[x.jsxs(On,{className:"md:py-20 py-10 ",children:[x.jsx("h3",{className:"h2 mb-6 xl:max-w-[496px]",children:"Место проведения"}),x.jsx("p",{className:"text-lg text-on_surface_v normal xl:max-w-[496px] mb-10",children:"Торгово-промышленная палата Туркменистана создана в целях содействия развитию экономики Туркменистана, ее интегрированию в мировую хозяйственную систему, формированию современной промышленной, финансовой и торговой инфраструктуры, создания благоприятных условий для предпринимательской деятельности, оказания содействия в установлении торгово-экономических, научных и технических связей с зарубежными партнерами."}),x.jsx("div",{className:"size-full xl:hidden",children:x.jsx("img",{src:"/map.png",alt:"map",className:"size-full object-cover"})})]}),x.jsx("div",{className:"h-full 2xl:w-[850px] xl:w-[650px] xl:block hidden absolute top-0 right-0",children:x.jsx("img",{src:"/map.png",alt:"",className:"size-full object-cover"})})]}),LL=({className:e})=>x.jsxs("section",{className:Ye("md:py-20 py-10 relative overflow-hidden",e),children:[x.jsx("img",{src:"/CTA.png",className:"absolute top-0 left-0 size-full -z-10 object-cover"}),x.jsxs(On,{children:[x.jsx("h3",{className:"h2 text-center !text-on_primary mb-6",children:"Приглашение к участию"}),x.jsx("p",{className:"text-center md:text-lg text-sm text-primary_03 max-w-[828px] px-5 mx-auto mb-10",children:"Торгово-промышленная палата Туркменистана приглашает бизнес-сообщество со всего мира присоединиться к этому уникальному событию, которое станет важным шагом к укреплению позиций Туркменистана на глобальной экономической арене."}),x.jsxs("div",{className:"flex flex-col md:flex-row items-center gap-6",children:[x.jsx(wn,{to:"/stend-form",className:"w-full",children:x.jsx(Jt,{className:"bg-reverse_primary w-full text-primary hover:bg-reverse_primary/90",children:"Забронировать стенд"})}),x.jsx(wn,{to:"/B2B-B2G",className:"w-full",children:x.jsx(Jt,{className:"bg-reverse_primary w-full hover:bg-reverse_primary/90 text-primary",children:"B2B | B2G встречи"})})]})]})]});function ML(e){return Object.prototype.toString.call(e)==="[object Object]"}function v0(e){return ML(e)||Array.isArray(e)}function OL(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function gm(e,t){const n=Object.keys(e),s=Object.keys(t);if(n.length!==s.length)return!1;const o=JSON.stringify(Object.keys(e.breakpoints||{})),a=JSON.stringify(Object.keys(t.breakpoints||{}));return o!==a?!1:n.every(u=>{const c=e[u],f=t[u];return typeof c=="function"?`${c}`==`${f}`:!v0(c)||!v0(f)?c===f:gm(c,f)})}function x0(e){return e.concat().sort((t,n)=>t.name>n.name?1:-1).map(t=>t.options)}function FL(e,t){if(e.length!==t.length)return!1;const n=x0(e),s=x0(t);return n.every((o,a)=>{const u=s[a];return gm(o,u)})}function ym(e){return typeof e=="number"}function Yh(e){return typeof e=="string"}function Hc(e){return typeof e=="boolean"}function w0(e){return Object.prototype.toString.call(e)==="[object Object]"}function Dt(e){return Math.abs(e)}function vm(e){return Math.sign(e)}function $a(e,t){return Dt(e-t)}function IL(e,t){if(e===0||t===0||Dt(e)<=Dt(t))return 0;const n=$a(Dt(e),Dt(t));return Dt(n/e)}function VL(e){return Math.round(e*100)/100}function Ja(e){return el(e).map(Number)}function wr(e){return e[Tl(e)]}function Tl(e){return Math.max(0,e.length-1)}function xm(e,t){return t===Tl(e)}function S0(e,t=0){return Array.from(Array(e),(n,s)=>t+s)}function el(e){return Object.keys(e)}function Jb(e,t){return[e,t].reduce((n,s)=>(el(s).forEach(o=>{const a=n[o],u=s[o],c=w0(a)&&w0(u);n[o]=c?Jb(a,u):u}),n),{})}function Xh(e,t){return typeof t.MouseEvent<"u"&&e instanceof t.MouseEvent}function BL(e,t){const n={start:s,center:o,end:a};function s(){return 0}function o(f){return a(f)/2}function a(f){return t-f}function u(f,h){return Yh(e)?n[e](f):e(t,f,h)}return{measure:u}}function tl(){let e=[];function t(o,a,u,c={passive:!0}){let f;if("addEventListener"in o)o.addEventListener(a,u,c),f=()=>o.removeEventListener(a,u,c);else{const h=o;h.addListener(u),f=()=>h.removeListener(u)}return e.push(f),s}function n(){e=e.filter(o=>o())}const s={add:t,clear:n};return s}function zL(e,t,n,s){const o=tl(),a=1e3/60;let u=null,c=0,f=0;function h(){o.add(e,"visibilitychange",()=>{e.hidden&&w()})}function m(){b(),o.clear()}function g(C){if(!f)return;u||(u=C,n(),n());const E=C-u;for(u=C,c+=E;c>=a;)n(),c-=a;const R=c/a;s(R),f&&(f=t.requestAnimationFrame(g))}function v(){f||(f=t.requestAnimationFrame(g))}function b(){t.cancelAnimationFrame(f),u=null,c=0,f=0}function w(){u=null,c=0}return{init:h,destroy:m,start:v,stop:b,update:n,render:s}}function UL(e,t){const n=t==="rtl",s=e==="y",o=s?"y":"x",a=s?"x":"y",u=!s&&n?-1:1,c=m(),f=g();function h(w){const{height:S,width:C}=w;return s?S:C}function m(){return s?"top":n?"right":"left"}function g(){return s?"bottom":n?"left":"right"}function v(w){return w*u}return{scroll:o,cross:a,startEdge:c,endEdge:f,measureSize:h,direction:v}}function Ai(e=0,t=0){const n=Dt(e-t);function s(h){return h<e}function o(h){return h>t}function a(h){return s(h)||o(h)}function u(h){return a(h)?s(h)?e:t:h}function c(h){return n?h-n*Math.ceil((h-t)/n):h}return{length:n,max:t,min:e,constrain:u,reachedAny:a,reachedMax:o,reachedMin:s,removeOffset:c}}function e_(e,t,n){const{constrain:s}=Ai(0,e),o=e+1;let a=u(t);function u(v){return n?Dt((o+v)%o):s(v)}function c(){return a}function f(v){return a=u(v),g}function h(v){return m().set(c()+v)}function m(){return e_(e,c(),n)}const g={get:c,set:f,add:h,clone:m};return g}function $L(e,t,n,s,o,a,u,c,f,h,m,g,v,b,w,S,C,E,R){const{cross:N,direction:I}=e,T=["INPUT","SELECT","TEXTAREA"],F={passive:!1},z=tl(),O=tl(),q=Ai(50,225).constrain(b.measure(20)),te={mouse:300,touch:400},pe={mouse:500,touch:600},X=w?43:25;let de=!1,ke=0,we=0,De=!1,me=!1,Y=!1,ue=!1;function ie(Ee){if(!R)return;function Xe(It){(Hc(R)||R(Ee,It))&&We(It)}const mt=t;z.add(mt,"dragstart",It=>It.preventDefault(),F).add(mt,"touchmove",()=>{},F).add(mt,"touchend",()=>{}).add(mt,"touchstart",Xe).add(mt,"mousedown",Xe).add(mt,"touchcancel",Pe).add(mt,"contextmenu",Pe).add(mt,"click",Me,!0)}function L(){z.clear(),O.clear()}function K(){const Ee=ue?n:t;O.add(Ee,"touchmove",be,F).add(Ee,"touchend",Pe).add(Ee,"mousemove",be,F).add(Ee,"mouseup",Pe)}function Le(Ee){const Xe=Ee.nodeName||"";return T.includes(Xe)}function Oe(){return(w?pe:te)[ue?"mouse":"touch"]}function Be(Ee,Xe){const mt=g.add(vm(Ee)*-1),It=m.byDistance(Ee,!w).distance;return w||Dt(Ee)<q?It:C&&Xe?It*.5:m.byIndex(mt.get(),0).distance}function We(Ee){const Xe=Xh(Ee,s);ue=Xe,Y=w&&Xe&&!Ee.buttons&&de,de=$a(o.get(),u.get())>=2,!(Xe&&Ee.button!==0)&&(Le(Ee.target)||(De=!0,a.pointerDown(Ee),h.useFriction(0).useDuration(0),o.set(u),K(),ke=a.readPoint(Ee),we=a.readPoint(Ee,N),v.emit("pointerDown")))}function be(Ee){if(!Xh(Ee,s)&&Ee.touches.length>=2)return Pe(Ee);const mt=a.readPoint(Ee),It=a.readPoint(Ee,N),en=$a(mt,ke),an=$a(It,we);if(!me&&!ue&&(!Ee.cancelable||(me=en>an,!me)))return Pe(Ee);const A=a.pointerMove(Ee);en>S&&(Y=!0),h.useFriction(.3).useDuration(.75),c.start(),o.add(I(A)),Ee.preventDefault()}function Pe(Ee){const mt=m.byDistance(0,!1).index!==g.get(),It=a.pointerUp(Ee)*Oe(),en=Be(I(It),mt),an=IL(It,en),A=X-10*an,U=E+an/50;me=!1,De=!1,O.clear(),h.useDuration(A).useFriction(U),f.distance(en,!w),ue=!1,v.emit("pointerUp")}function Me(Ee){Y&&(Ee.stopPropagation(),Ee.preventDefault(),Y=!1)}function rt(){return De}return{init:ie,destroy:L,pointerDown:rt}}function WL(e,t){let s,o;function a(g){return g.timeStamp}function u(g,v){const w=`client${(v||e.scroll)==="x"?"X":"Y"}`;return(Xh(g,t)?g:g.touches[0])[w]}function c(g){return s=g,o=g,u(g)}function f(g){const v=u(g)-u(o),b=a(g)-a(s)>170;return o=g,b&&(s=g),v}function h(g){if(!s||!o)return 0;const v=u(o)-u(s),b=a(g)-a(s),w=a(g)-a(o)>170,S=v/b;return b&&!w&&Dt(S)>.1?S:0}return{pointerDown:c,pointerMove:f,pointerUp:h,readPoint:u}}function HL(){function e(n){const{offsetTop:s,offsetLeft:o,offsetWidth:a,offsetHeight:u}=n;return{top:s,right:o+a,bottom:s+u,left:o,width:a,height:u}}return{measure:e}}function GL(e){function t(s){return e*(s/100)}return{measure:t}}function ZL(e,t,n,s,o,a,u){const c=[e].concat(s);let f,h,m=[],g=!1;function v(C){return o.measureSize(u.measure(C))}function b(C){if(!a)return;h=v(e),m=s.map(v);function E(R){for(const N of R){if(g)return;const I=N.target===e,T=s.indexOf(N.target),F=I?h:m[T],z=v(I?e:s[T]);if(Dt(z-F)>=.5){C.reInit(),t.emit("resize");break}}}f=new ResizeObserver(R=>{(Hc(a)||a(C,R))&&E(R)}),n.requestAnimationFrame(()=>{c.forEach(R=>f.observe(R))})}function w(){g=!0,f&&f.disconnect()}return{init:b,destroy:w}}function KL(e,t,n,s,o,a){let u=0,c=0,f=o,h=a,m=e.get(),g=0;function v(){const F=s.get()-e.get(),z=!f;let O=0;return z?(u=0,n.set(s),e.set(s),O=F):(n.set(e),u+=F/f,u*=h,m+=u,e.add(u),O=m-g),c=vm(O),g=m,T}function b(){const F=s.get()-t.get();return Dt(F)<.001}function w(){return f}function S(){return c}function C(){return u}function E(){return N(o)}function R(){return I(a)}function N(F){return f=F,T}function I(F){return h=F,T}const T={direction:S,duration:w,velocity:C,seek:v,settled:b,useBaseFriction:R,useBaseDuration:E,useFriction:I,useDuration:N};return T}function qL(e,t,n,s,o){const a=o.measure(10),u=o.measure(50),c=Ai(.1,.99);let f=!1;function h(){return!(f||!e.reachedAny(n.get())||!e.reachedAny(t.get()))}function m(b){if(!h())return;const w=e.reachedMin(t.get())?"min":"max",S=Dt(e[w]-t.get()),C=n.get()-t.get(),E=c.constrain(S/u);n.subtract(C*E),!b&&Dt(C)<a&&(n.set(e.constrain(n.get())),s.useDuration(25).useBaseFriction())}function g(b){f=!b}return{shouldConstrain:h,constrain:m,toggleActive:g}}function YL(e,t,n,s,o){const a=Ai(-t+e,0),u=g(),c=m(),f=v();function h(w,S){return $a(w,S)<=1}function m(){const w=u[0],S=wr(u),C=u.lastIndexOf(w),E=u.indexOf(S)+1;return Ai(C,E)}function g(){return n.map((w,S)=>{const{min:C,max:E}=a,R=a.constrain(w),N=!S,I=xm(n,S);return N?E:I||h(C,R)?C:h(E,R)?E:R}).map(w=>parseFloat(w.toFixed(3)))}function v(){if(t<=e+o)return[a.max];if(s==="keepSnaps")return u;const{min:w,max:S}=c;return u.slice(w,S)}return{snapsContained:f,scrollContainLimit:c}}function XL(e,t,n){const s=t[0],o=n?s-e:wr(t);return{limit:Ai(o,s)}}function QL(e,t,n,s){const a=t.min+.1,u=t.max+.1,{reachedMin:c,reachedMax:f}=Ai(a,u);function h(v){return v===1?f(n.get()):v===-1?c(n.get()):!1}function m(v){if(!h(v))return;const b=e*(v*-1);s.forEach(w=>w.add(b))}return{loop:m}}function JL(e){const{max:t,length:n}=e;function s(a){const u=a-t;return n?u/-n:0}return{get:s}}function eM(e,t,n,s,o){const{startEdge:a,endEdge:u}=e,{groupSlides:c}=o,f=g().map(t.measure),h=v(),m=b();function g(){return c(s).map(S=>wr(S)[u]-S[0][a]).map(Dt)}function v(){return s.map(S=>n[a]-S[a]).map(S=>-Dt(S))}function b(){return c(h).map(S=>S[0]).map((S,C)=>S+f[C])}return{snaps:h,snapsAligned:m}}function tM(e,t,n,s,o,a){const{groupSlides:u}=o,{min:c,max:f}=s,h=m();function m(){const v=u(a),b=!e||t==="keepSnaps";return n.length===1?[a]:b?v:v.slice(c,f).map((w,S,C)=>{const E=!S,R=xm(C,S);if(E){const N=wr(C[0])+1;return S0(N)}if(R){const N=Tl(a)-wr(C)[0]+1;return S0(N,wr(C)[0])}return w})}return{slideRegistry:h}}function nM(e,t,n,s,o){const{reachedAny:a,removeOffset:u,constrain:c}=s;function f(w){return w.concat().sort((S,C)=>Dt(S)-Dt(C))[0]}function h(w){const S=e?u(w):c(w),C=t.map((R,N)=>({diff:m(R-S,0),index:N})).sort((R,N)=>Dt(R.diff)-Dt(N.diff)),{index:E}=C[0];return{index:E,distance:S}}function m(w,S){const C=[w,w+n,w-n];if(!e)return w;if(!S)return f(C);const E=C.filter(R=>vm(R)===S);return E.length?f(E):wr(C)-n}function g(w,S){const C=t[w]-o.get(),E=m(C,S);return{index:w,distance:E}}function v(w,S){const C=o.get()+w,{index:E,distance:R}=h(C),N=!e&&a(C);if(!S||N)return{index:E,distance:w};const I=t[E]-R,T=w+m(I,0);return{index:E,distance:T}}return{byDistance:v,byIndex:g,shortcut:m}}function rM(e,t,n,s,o,a,u){function c(g){const v=g.distance,b=g.index!==t.get();a.add(v),v&&(s.duration()?e.start():(e.update(),e.render(1),e.update())),b&&(n.set(t.get()),t.set(g.index),u.emit("select"))}function f(g,v){const b=o.byDistance(g,v);c(b)}function h(g,v){const b=t.clone().set(g),w=o.byIndex(b.get(),v);c(w)}return{distance:f,index:h}}function sM(e,t,n,s,o,a,u,c){const f={passive:!0,capture:!0};let h=0;function m(b){if(!c)return;function w(S){if(new Date().getTime()-h>10)return;u.emit("slideFocusStart"),e.scrollLeft=0;const R=n.findIndex(N=>N.includes(S));ym(R)&&(o.useDuration(0),s.index(R,0),u.emit("slideFocus"))}a.add(document,"keydown",g,!1),t.forEach((S,C)=>{a.add(S,"focus",E=>{(Hc(c)||c(b,E))&&w(C)},f)})}function g(b){b.code==="Tab"&&(h=new Date().getTime())}return{init:m}}function Da(e){let t=e;function n(){return t}function s(f){t=u(f)}function o(f){t+=u(f)}function a(f){t-=u(f)}function u(f){return ym(f)?f:f.get()}return{get:n,set:s,add:o,subtract:a}}function t_(e,t){const n=e.scroll==="x"?u:c,s=t.style;let o=null,a=!1;function u(v){return`translate3d(${v}px,0px,0px)`}function c(v){return`translate3d(0px,${v}px,0px)`}function f(v){if(a)return;const b=VL(e.direction(v));b!==o&&(s.transform=n(b),o=b)}function h(v){a=!v}function m(){a||(s.transform="",t.getAttribute("style")||t.removeAttribute("style"))}return{clear:m,to:f,toggleActive:h}}function iM(e,t,n,s,o,a,u,c,f){const m=Ja(o),g=Ja(o).reverse(),v=E().concat(R());function b(z,O){return z.reduce((q,te)=>q-o[te],O)}function w(z,O){return z.reduce((q,te)=>b(q,O)>0?q.concat([te]):q,[])}function S(z){return a.map((O,q)=>({start:O-s[q]+.5+z,end:O+t-.5+z}))}function C(z,O,q){const te=S(O);return z.map(pe=>{const X=q?0:-n,de=q?n:0,ke=q?"end":"start",we=te[pe][ke];return{index:pe,loopPoint:we,slideLocation:Da(-1),translate:t_(e,f[pe]),target:()=>c.get()>we?X:de}})}function E(){const z=u[0],O=w(g,z);return C(O,n,!1)}function R(){const z=t-u[0]-1,O=w(m,z);return C(O,-n,!0)}function N(){return v.every(({index:z})=>{const O=m.filter(q=>q!==z);return b(O,t)<=.1})}function I(){v.forEach(z=>{const{target:O,translate:q,slideLocation:te}=z,pe=O();pe!==te.get()&&(q.to(pe),te.set(pe))})}function T(){v.forEach(z=>z.translate.clear())}return{canLoop:N,clear:T,loop:I,loopPoints:v}}function oM(e,t,n){let s,o=!1;function a(f){if(!n)return;function h(m){for(const g of m)if(g.type==="childList"){f.reInit(),t.emit("slidesChanged");break}}s=new MutationObserver(m=>{o||(Hc(n)||n(f,m))&&h(m)}),s.observe(e,{childList:!0})}function u(){s&&s.disconnect(),o=!0}return{init:a,destroy:u}}function aM(e,t,n,s){const o={};let a=null,u=null,c,f=!1;function h(){c=new IntersectionObserver(w=>{f||(w.forEach(S=>{const C=t.indexOf(S.target);o[C]=S}),a=null,u=null,n.emit("slidesInView"))},{root:e.parentElement,threshold:s}),t.forEach(w=>c.observe(w))}function m(){c&&c.disconnect(),f=!0}function g(w){return el(o).reduce((S,C)=>{const E=parseInt(C),{isIntersecting:R}=o[E];return(w&&R||!w&&!R)&&S.push(E),S},[])}function v(w=!0){if(w&&a)return a;if(!w&&u)return u;const S=g(w);return w&&(a=S),w||(u=S),S}return{init:h,destroy:m,get:v}}function lM(e,t,n,s,o,a){const{measureSize:u,startEdge:c,endEdge:f}=e,h=n[0]&&o,m=w(),g=S(),v=n.map(u),b=C();function w(){if(!h)return 0;const R=n[0];return Dt(t[c]-R[c])}function S(){if(!h)return 0;const R=a.getComputedStyle(wr(s));return parseFloat(R.getPropertyValue(`margin-${f}`))}function C(){return n.map((R,N,I)=>{const T=!N,F=xm(I,N);return T?v[N]+m:F?v[N]+g:I[N+1][c]-R[c]}).map(Dt)}return{slideSizes:v,slideSizesWithGaps:b,startGap:m,endGap:g}}function uM(e,t,n,s,o,a,u,c,f){const{startEdge:h,endEdge:m,direction:g}=e,v=ym(n);function b(E,R){return Ja(E).filter(N=>N%R===0).map(N=>E.slice(N,N+R))}function w(E){return E.length?Ja(E).reduce((R,N,I)=>{const T=wr(R)||0,F=T===0,z=N===Tl(E),O=o[h]-a[T][h],q=o[h]-a[N][m],te=!s&&F?g(u):0,pe=!s&&z?g(c):0,X=Dt(q-pe-(O+te));return I&&X>t+f&&R.push(N),z&&R.push(E.length),R},[]).map((R,N,I)=>{const T=Math.max(I[N-1]||0);return E.slice(T,R)}):[]}function S(E){return v?b(E,n):w(E)}return{groupSlides:S}}function cM(e,t,n,s,o,a,u){const{align:c,axis:f,direction:h,startIndex:m,loop:g,duration:v,dragFree:b,dragThreshold:w,inViewThreshold:S,slidesToScroll:C,skipSnaps:E,containScroll:R,watchResize:N,watchSlides:I,watchDrag:T,watchFocus:F}=a,z=2,O=HL(),q=O.measure(t),te=n.map(O.measure),pe=UL(f,h),X=pe.measureSize(q),de=GL(X),ke=BL(c,X),we=!g&&!!R,De=g||!!R,{slideSizes:me,slideSizesWithGaps:Y,startGap:ue,endGap:ie}=lM(pe,q,te,n,De,o),L=uM(pe,X,C,g,q,te,ue,ie,z),{snaps:K,snapsAligned:Le}=eM(pe,ke,q,te,L),Oe=-wr(K)+wr(Y),{snapsContained:Be,scrollContainLimit:We}=YL(X,Oe,Le,R,z),be=we?Be:Le,{limit:Pe}=XL(Oe,be,g),Me=e_(Tl(be),m,g),rt=Me.clone(),at=Ja(n),Ee=({dragHandler:bt,scrollBody:ln,scrollBounds:Tr,options:{loop:Fn}})=>{Fn||Tr.constrain(bt.pointerDown()),ln.seek()},Xe=({scrollBody:bt,translate:ln,location:Tr,offsetLocation:Fn,previousLocation:ms,scrollLooper:Gr,slideLooper:Rr,dragHandler:gs,animation:Zr,eventHandler:ys,scrollBounds:vs,options:{loop:ar}},Kn)=>{const Pr=bt.settled(),Kr=!vs.shouldConstrain(),ri=ar?Pr:Pr&&Kr;ri&&!gs.pointerDown()&&(Zr.stop(),ys.emit("settle")),ri||ys.emit("scroll");const zi=Tr.get()*Kn+ms.get()*(1-Kn);Fn.set(zi),ar&&(Gr.loop(bt.direction()),Rr.loop()),ln.to(Fn.get())},mt=zL(s,o,()=>Ee(kr),bt=>Xe(kr,bt)),It=.68,en=be[Me.get()],an=Da(en),A=Da(en),U=Da(en),H=Da(en),oe=KL(an,U,A,H,v,It),ae=nM(g,be,Oe,Pe,H),se=rM(mt,Me,rt,oe,ae,H,u),Re=JL(Pe),Fe=tl(),ut=aM(t,n,u,S),{slideRegistry:yt}=tM(we,R,be,We,L,at),Wt=sM(e,n,yt,se,oe,Fe,u,F),kr={ownerDocument:s,ownerWindow:o,eventHandler:u,containerRect:q,slideRects:te,animation:mt,axis:pe,dragHandler:$L(pe,e,s,o,H,WL(pe,o),an,mt,se,oe,ae,Me,u,de,b,w,E,It,T),eventStore:Fe,percentOfView:de,index:Me,indexPrevious:rt,limit:Pe,location:an,offsetLocation:U,previousLocation:A,options:a,resizeHandler:ZL(t,u,o,n,pe,N,O),scrollBody:oe,scrollBounds:qL(Pe,U,H,oe,de),scrollLooper:QL(Oe,Pe,U,[an,U,A,H]),scrollProgress:Re,scrollSnapList:be.map(Re.get),scrollSnaps:be,scrollTarget:ae,scrollTo:se,slideLooper:iM(pe,X,Oe,me,Y,K,be,U,n),slideFocus:Wt,slidesHandler:oM(t,u,I),slidesInView:ut,slideIndexes:at,slideRegistry:yt,slidesToScroll:L,target:H,translate:t_(pe,t)};return kr}function dM(){let e={},t;function n(h){t=h}function s(h){return e[h]||[]}function o(h){return s(h).forEach(m=>m(t,h)),f}function a(h,m){return e[h]=s(h).concat([m]),f}function u(h,m){return e[h]=s(h).filter(g=>g!==m),f}function c(){e={}}const f={init:n,emit:o,off:u,on:a,clear:c};return f}const fM={align:"center",axis:"x",container:null,slides:null,containScroll:"trimSnaps",direction:"ltr",slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0,watchFocus:!0};function hM(e){function t(a,u){return Jb(a,u||{})}function n(a){const u=a.breakpoints||{},c=el(u).filter(f=>e.matchMedia(f).matches).map(f=>u[f]).reduce((f,h)=>t(f,h),{});return t(a,c)}function s(a){return a.map(u=>el(u.breakpoints||{})).reduce((u,c)=>u.concat(c),[]).map(e.matchMedia)}return{mergeOptions:t,optionsAtMedia:n,optionsMediaQueries:s}}function pM(e){let t=[];function n(a,u){return t=u.filter(({options:c})=>e.optionsAtMedia(c).active!==!1),t.forEach(c=>c.init(a,e)),u.reduce((c,f)=>Object.assign(c,{[f.name]:f}),{})}function s(){t=t.filter(a=>a.destroy())}return{init:n,destroy:s}}function Sc(e,t,n){const s=e.ownerDocument,o=s.defaultView,a=hM(o),u=pM(a),c=tl(),f=dM(),{mergeOptions:h,optionsAtMedia:m,optionsMediaQueries:g}=a,{on:v,off:b,emit:w}=f,S=pe;let C=!1,E,R=h(fM,Sc.globalOptions),N=h(R),I=[],T,F,z;function O(){const{container:at,slides:Ee}=N;F=(Yh(at)?e.querySelector(at):at)||e.children[0];const mt=Yh(Ee)?F.querySelectorAll(Ee):Ee;z=[].slice.call(mt||F.children)}function q(at){const Ee=cM(e,F,z,s,o,at,f);if(at.loop&&!Ee.slideLooper.canLoop()){const Xe=Object.assign({},at,{loop:!1});return q(Xe)}return Ee}function te(at,Ee){C||(R=h(R,at),N=m(R),I=Ee||I,O(),E=q(N),g([R,...I.map(({options:Xe})=>Xe)]).forEach(Xe=>c.add(Xe,"change",pe)),N.active&&(E.translate.to(E.location.get()),E.animation.init(),E.slidesInView.init(),E.slideFocus.init(rt),E.eventHandler.init(rt),E.resizeHandler.init(rt),E.slidesHandler.init(rt),E.options.loop&&E.slideLooper.loop(),F.offsetParent&&z.length&&E.dragHandler.init(rt),T=u.init(rt,I)))}function pe(at,Ee){const Xe=L();X(),te(h({startIndex:Xe},at),Ee),f.emit("reInit")}function X(){E.dragHandler.destroy(),E.eventStore.clear(),E.translate.clear(),E.slideLooper.clear(),E.resizeHandler.destroy(),E.slidesHandler.destroy(),E.slidesInView.destroy(),E.animation.destroy(),u.destroy(),c.clear()}function de(){C||(C=!0,c.clear(),X(),f.emit("destroy"),f.clear())}function ke(at,Ee,Xe){!N.active||C||(E.scrollBody.useBaseFriction().useDuration(Ee===!0?0:N.duration),E.scrollTo.index(at,Xe||0))}function we(at){const Ee=E.index.add(1).get();ke(Ee,at,-1)}function De(at){const Ee=E.index.add(-1).get();ke(Ee,at,1)}function me(){return E.index.add(1).get()!==L()}function Y(){return E.index.add(-1).get()!==L()}function ue(){return E.scrollSnapList}function ie(){return E.scrollProgress.get(E.location.get())}function L(){return E.index.get()}function K(){return E.indexPrevious.get()}function Le(){return E.slidesInView.get()}function Oe(){return E.slidesInView.get(!1)}function Be(){return T}function We(){return E}function be(){return e}function Pe(){return F}function Me(){return z}const rt={canScrollNext:me,canScrollPrev:Y,containerNode:Pe,internalEngine:We,destroy:de,off:b,on:v,emit:w,plugins:Be,previousScrollSnap:K,reInit:S,rootNode:be,scrollNext:we,scrollPrev:De,scrollProgress:ie,scrollSnapList:ue,scrollTo:ke,selectedScrollSnap:L,slideNodes:Me,slidesInView:Le,slidesNotInView:Oe};return te(t,n),setTimeout(()=>f.emit("init"),0),rt}Sc.globalOptions=void 0;function Rl(e={},t=[]){const n=_.useRef(e),s=_.useRef(t),[o,a]=_.useState(),[u,c]=_.useState(),f=_.useCallback(()=>{o&&o.reInit(n.current,s.current)},[o]);return _.useEffect(()=>{gm(n.current,e)||(n.current=e,f())},[e,f]),_.useEffect(()=>{FL(s.current,t)||(s.current=t,f())},[t,f]),_.useEffect(()=>{if(OL()&&u){Sc.globalOptions=Rl.globalOptions;const h=Sc(u,n.current,s.current);return a(h),()=>h.destroy()}else a(void 0)},[u,a]),[c,o]}Rl.globalOptions=void 0;const mM=[{title:"План выставки",link:""},{title:"Забронировать стенд",link:"/stend-form"},{title:"Программа ",link:""},{title:"Стать спонсором",link:"/become-sponsor"}],gM=()=>{const[e]=Rl(),t=Zh("(min-width: 1024px)"),n=Zh("(min-width: 768px)");function s(){return t?"/banners/ru/l.jpg":n?"/banners/ru/m.jpg":"/banners/ru/s.jpg"}return x.jsxs("section",{className:"flex flex-col gap-5",children:[x.jsx("div",{ref:e,className:"embla",children:x.jsx("div",{className:"embla__container",children:x.jsx("div",{className:"embla__slide",children:x.jsx("img",{src:s(),alt:"",className:"size-full object-cover lg:max-h-[600px] lg:min-h-[320px]"})})})}),x.jsx(On,{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 items-center gap-6 text-2xl",children:mM.map(({title:o,link:a})=>x.jsx(wn,{to:a,className:"w-full",children:x.jsx(Jt,{size:"lg",variant:"teritary",className:"w-full drop-shadow-sm shadow-md text-xl bg-teritary text-on_teritary hover:bg-teritary/90",children:o})},o))})]})},yM=[{nums:"4,200 m²",text:"выставочной площади"},{nums:"10000+",text:"Посетители посетят выставку"},{nums:"100+",text:"Экспоненты из более чем 30 стран"},{nums:"80%",text:"Участники принимают участие в принятии решений о закупках"}],vM=()=>{const[e]=Rl();return x.jsx("section",{children:x.jsxs(On,{className:"flex flex-col gap-6",children:[x.jsxs("div",{className:"text-center",children:[x.jsxs("h2",{className:"h2 md:mb-3 mb-6 text-left sm:text-center",children:["Выставка-ярмарка «TurkmenTextile Expo 2025» в Ашхабаде"," "]}),x.jsxs("p",{className:"md:text-base text-sm normal text-left sm:text-center text-[#454545]",children:["Глобальная выставка и ярмарка текстиля и моды, которая объединит мировых лидеров отрасли, инновационных производителей и творческих дизайнеров. Наша миссия — укрепить позиции Туркменистана как ключевого центра текстильной и модной индустрии. Выставка станет платформой для изучения устойчивых практик, современных технологий и новых дизайнерских решений, вдохновляя на развитие индустрии."," "]})]}),x.jsx("div",{ref:e,className:"embla overflow-hidden",children:x.jsx("div",{className:"flex embla__container items-center gap-6",children:yM.map(t=>x.jsx(NP,{...t,className:"embla__slide flex-[0_0_288px]"},t.text))})}),x.jsx(wn,{to:"/about",className:"mx-auto",children:x.jsx(Jt,{variant:"outline",children:"Подробнее о выставке"})})]})})},xM=()=>{const[e]=Rl({align:"start"});return x.jsx("section",{className:"bg-surface_high py-10 relative overflow-hidden",children:x.jsx(On,{children:x.jsx("div",{ref:e,className:"embla ",children:x.jsxs("div",{className:"mb-2 flex gap-6 embla__container",children:[x.jsx(Wv,{img:"/offer-1.png",className:"embla__slide flex-[0_0_300px] md:flex-[0_0_600px]",title:"Гостиницы, трансфер, визы",text:"По вопросам размещения в гостиницах, визовой поддержки, транспортного и экскурсионного обслуживания Вы можете обращаться к официальным туроператорам выставки"}),x.jsx(Wv,{img:"/offer-2.png",className:"embla__slide flex-[0_0_300px] md:flex-[0_0_600px]",title:"Ознакомьтесь с планом выставки ITSE 2025",text:"Как выбрать лучшее место на выставке? Вы всегда должны помнить, что удачное расположение выставочной экспозиции повышает Ваши шансы привлечь внимание Ваших потенциальных клиентов"})]})})})})},wM=[{title:"Медиа",link:""},{title:"Контакты",link:"/contacts"}],n_=[{title:"О выставке",link:"/about"},{title:"Посетителям",link:""},{title:"Экспонентам",link:""}],SM=()=>x.jsxs("header",{children:[x.jsx("div",{className:"h-12 hidden lg:flex bg-teritary text-on_primary items-center overflow-hidden",children:x.jsxs(On,{className:"flex items-center justify-between",children:[x.jsxs("div",{className:"gap-8 flex items-center justify-between",children:[x.jsxs("div",{className:"flex items-center gap-2",children:[x.jsx(FR,{}),x.jsx("h4",{className:"text-sm",children:"Ашхабад, Туркменистан"})]}),x.jsx("nav",{className:"flex items-center gap-6 text-white",children:wM.map(({title:e,link:t})=>x.jsx(wn,{className:"py-2",to:t,children:e},e))})]}),x.jsx("div",{className:"flex items-center gap-6",children:x.jsxs("div",{className:"flex items-center gap-2",children:[x.jsx(VR,{size:16,strokeWidth:"3px"}),x.jsx("h4",{className:"text-sm text-white",children:"+99371871812"})]})})]})}),x.jsx("div",{className:"bg-primary py-2 flex items-center justify-between h-20 overflow-hidden",children:x.jsxs(On,{className:"flex items-center justify-between ",children:[x.jsxs("div",{className:"flex items-center gap-8",children:[x.jsx(wn,{to:"/",children:x.jsx(Qw,{})}),x.jsx("nav",{className:"lg:flex hidden items-center gap-6 text-white",children:n_.map(({title:e,link:t})=>x.jsxs(wn,{to:t,className:"flex items-center gap-2",children:[e," ",x.jsx("img",{src:"/chevron.svg"})]},e))})]}),x.jsx("div",{className:"flex items-center",children:x.jsx(bM,{})}),x.jsxs("div",{className:"lg:flex hidden items-center gap-2",children:[x.jsx(Jt,{variant:"secondary",size:"sm",className:"bg-white text-primary hover:bg-white/90",children:"Официальная поддержка"}),x.jsx(wn,{to:"/B2B-B2G",children:x.jsx(Jt,{variant:"secondary",size:"sm",className:"bg-teritary text-white hover:bg-teritary/90",children:"B2B | B2G встречи"})})]})]})})]}),bM=()=>{const[e,t]=_.useState(!1);return x.jsxs(bP,{onOpenChange:()=>t(!e),open:e,children:[x.jsx(_P,{children:x.jsxs("div",{className:"flex flex-col gap-1 lg:hidden items-center justify-center size-10",children:[x.jsx("div",{className:"w-[18px] h-0.5 bg-reverse_primary rounded-[2px]"}),x.jsx("div",{className:"w-[18px] h-0.5 bg-reverse_primary rounded-[2px]"}),x.jsx("div",{className:"w-[18px] h-0.5 bg-reverse_primary rounded-[2px]"})]})}),x.jsxs(Yw,{className:"overflow-y-auto",children:[x.jsx(EP,{}),x.jsxs(Xw,{className:"mt-16 flex flex-col gap-2",children:[x.jsx(wn,{to:"",children:x.jsx(Jt,{variant:"secondary",size:"sm",className:"bg-teritary w-full text-on_teritary hover:bg-teritary/90",children:"Официальная поддержка"})}),x.jsx(wn,{to:"/B2B-B2G",onClick:()=>t(!1),children:x.jsx(Jt,{className:"text-base w-full",size:"sm",children:"B2B | B2G встречи"})})]}),x.jsx("hr",{className:"border-slate-500/20 my-8"}),x.jsx("div",{className:"flex flex-col gap-6",children:n_.map(n=>x.jsx(wn,{onClick:()=>t(!1),className:"h-10 text-on_surface ",to:n.link,children:n.title},n.title))})]})]})},_M=()=>x.jsx("footer",{className:"py-5 bg-primary",children:x.jsxs(On,{className:"flex flex-col gap-6",children:[x.jsxs("div",{className:"flex flex-col md:flex-row gap-6 md:items-end md:justify-between items-center",children:[x.jsx(Qw,{}),x.jsxs("div",{className:"flex items-center gap-6",children:[x.jsx("img",{src:"/inst.svg"}),x.jsx("img",{src:"/in.svg"}),x.jsx("img",{src:"/x.svg"})]})]}),x.jsx("hr",{className:"border-white/50"}),x.jsx("h5",{className:"text-base text-center normal text-white",children:"©2025 Все права защищены"})]})}),On=({className:e,children:t})=>x.jsx("div",{className:Ye("w-full mx-auto max-w-[1240px] px-4",e),children:t}),Gc=({title:e})=>x.jsxs("div",{className:"relative flex items-center h-[216px] w-full justify-center",children:[x.jsx("img",{src:"/cover.png",className:"-z-10 absolute size-full object-cover top-0 left-0"}),x.jsx("h1",{className:"text-on_primary md:text-5xl text-3xl",children:e})]});function EM(){return x.jsxs("main",{className:"flex flex-col min-h-screen",children:[x.jsx(SM,{}),x.jsx("div",{className:"flex-auto",children:x.jsx(mk,{})}),x.jsx(_M,{})]})}const b0=(e,t,n)=>{if(e&&"reportValidity"in e){const s=ce(n,t);e.setCustomValidity(s&&s.message||""),e.reportValidity()}},r_=(e,t)=>{for(const n in t.fields){const s=t.fields[n];s&&s.ref&&"reportValidity"in s.ref?b0(s.ref,n,e):s.refs&&s.refs.forEach(o=>b0(o,n,e))}},CM=(e,t)=>{t.shouldUseNativeValidation&&r_(e,t);const n={};for(const s in e){const o=ce(t.fields,s),a=Object.assign(e[s]||{},{ref:o&&o.ref});if(kM(t.names||Object.keys(e),s)){const u=Object.assign({},ce(n,s));pt(u,"root",a),pt(n,s,u)}else pt(n,s,a)}return n},kM=(e,t)=>e.some(n=>n.startsWith(t+"."));var TM=function(e,t){for(var n={};e.length;){var s=e[0],o=s.code,a=s.message,u=s.path.join(".");if(!n[u])if("unionErrors"in s){var c=s.unionErrors[0].errors[0];n[u]={message:c.message,type:c.code}}else n[u]={message:a,type:o};if("unionErrors"in s&&s.unionErrors.forEach(function(m){return m.errors.forEach(function(g){return e.push(g)})}),t){var f=n[u].types,h=f&&f[s.code];n[u]=Fb(u,t,n,o,h?[].concat(h,s.message):s.message)}e.shift()}return n},Zc=function(e,t,n){return n===void 0&&(n={}),function(s,o,a){try{return Promise.resolve(function(u,c){try{var f=Promise.resolve(e[n.mode==="sync"?"parse":"parseAsync"](s,t)).then(function(h){return a.shouldUseNativeValidation&&r_({},a),{errors:{},values:n.raw?s:h}})}catch(h){return c(h)}return f&&f.then?f.then(void 0,c):f}(0,function(u){if(function(c){return Array.isArray(c==null?void 0:c.errors)}(u))return{values:{},errors:CM(TM(u.errors,!a.shouldUseNativeValidation&&a.criteriaMode==="all"),a)};throw u}))}catch(u){return Promise.reject(u)}}};function s_(e,t){return function(){return e.apply(t,arguments)}}const{toString:RM}=Object.prototype,{getPrototypeOf:wm}=Object,Kc=(e=>t=>{const n=RM.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Cr=e=>(e=e.toLowerCase(),t=>Kc(t)===e),qc=e=>t=>typeof t===e,{isArray:Fo}=Array,nl=qc("undefined");function PM(e){return e!==null&&!nl(e)&&e.constructor!==null&&!nl(e.constructor)&&Gn(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const i_=Cr("ArrayBuffer");function NM(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&i_(e.buffer),t}const AM=qc("string"),Gn=qc("function"),o_=qc("number"),Yc=e=>e!==null&&typeof e=="object",jM=e=>e===!0||e===!1,sc=e=>{if(Kc(e)!=="object")return!1;const t=wm(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},DM=Cr("Date"),LM=Cr("File"),MM=Cr("Blob"),OM=Cr("FileList"),FM=e=>Yc(e)&&Gn(e.pipe),IM=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Gn(e.append)&&((t=Kc(e))==="formdata"||t==="object"&&Gn(e.toString)&&e.toString()==="[object FormData]"))},VM=Cr("URLSearchParams"),[BM,zM,UM,$M]=["ReadableStream","Request","Response","Headers"].map(Cr),WM=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Pl(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let s,o;if(typeof e!="object"&&(e=[e]),Fo(e))for(s=0,o=e.length;s<o;s++)t.call(null,e[s],s,e);else{const a=n?Object.getOwnPropertyNames(e):Object.keys(e),u=a.length;let c;for(s=0;s<u;s++)c=a[s],t.call(null,e[c],c,e)}}function a_(e,t){t=t.toLowerCase();const n=Object.keys(e);let s=n.length,o;for(;s-- >0;)if(o=n[s],t===o.toLowerCase())return o;return null}const Ci=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,l_=e=>!nl(e)&&e!==Ci;function Qh(){const{caseless:e}=l_(this)&&this||{},t={},n=(s,o)=>{const a=e&&a_(t,o)||o;sc(t[a])&&sc(s)?t[a]=Qh(t[a],s):sc(s)?t[a]=Qh({},s):Fo(s)?t[a]=s.slice():t[a]=s};for(let s=0,o=arguments.length;s<o;s++)arguments[s]&&Pl(arguments[s],n);return t}const HM=(e,t,n,{allOwnKeys:s}={})=>(Pl(t,(o,a)=>{n&&Gn(o)?e[a]=s_(o,n):e[a]=o},{allOwnKeys:s}),e),GM=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),ZM=(e,t,n,s)=>{e.prototype=Object.create(t.prototype,s),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},KM=(e,t,n,s)=>{let o,a,u;const c={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),a=o.length;a-- >0;)u=o[a],(!s||s(u,e,t))&&!c[u]&&(t[u]=e[u],c[u]=!0);e=n!==!1&&wm(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},qM=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const s=e.indexOf(t,n);return s!==-1&&s===n},YM=e=>{if(!e)return null;if(Fo(e))return e;let t=e.length;if(!o_(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},XM=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&wm(Uint8Array)),QM=(e,t)=>{const s=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=s.next())&&!o.done;){const a=o.value;t.call(e,a[0],a[1])}},JM=(e,t)=>{let n;const s=[];for(;(n=e.exec(t))!==null;)s.push(n);return s},eO=Cr("HTMLFormElement"),tO=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,s,o){return s.toUpperCase()+o}),_0=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),nO=Cr("RegExp"),u_=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),s={};Pl(n,(o,a)=>{let u;(u=t(o,a,e))!==!1&&(s[a]=u||o)}),Object.defineProperties(e,s)},rO=e=>{u_(e,(t,n)=>{if(Gn(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const s=e[n];if(Gn(s)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},sO=(e,t)=>{const n={},s=o=>{o.forEach(a=>{n[a]=!0})};return Fo(e)?s(e):s(String(e).split(t)),n},iO=()=>{},oO=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,yh="abcdefghijklmnopqrstuvwxyz",E0="0123456789",c_={DIGIT:E0,ALPHA:yh,ALPHA_DIGIT:yh+yh.toUpperCase()+E0},aO=(e=16,t=c_.ALPHA_DIGIT)=>{let n="";const{length:s}=t;for(;e--;)n+=t[Math.random()*s|0];return n};function lO(e){return!!(e&&Gn(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const uO=e=>{const t=new Array(10),n=(s,o)=>{if(Yc(s)){if(t.indexOf(s)>=0)return;if(!("toJSON"in s)){t[o]=s;const a=Fo(s)?[]:{};return Pl(s,(u,c)=>{const f=n(u,o+1);!nl(f)&&(a[c]=f)}),t[o]=void 0,a}}return s};return n(e,0)},cO=Cr("AsyncFunction"),dO=e=>e&&(Yc(e)||Gn(e))&&Gn(e.then)&&Gn(e.catch),d_=((e,t)=>e?setImmediate:t?((n,s)=>(Ci.addEventListener("message",({source:o,data:a})=>{o===Ci&&a===n&&s.length&&s.shift()()},!1),o=>{s.push(o),Ci.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Gn(Ci.postMessage)),fO=typeof queueMicrotask<"u"?queueMicrotask.bind(Ci):typeof process<"u"&&process.nextTick||d_,Z={isArray:Fo,isArrayBuffer:i_,isBuffer:PM,isFormData:IM,isArrayBufferView:NM,isString:AM,isNumber:o_,isBoolean:jM,isObject:Yc,isPlainObject:sc,isReadableStream:BM,isRequest:zM,isResponse:UM,isHeaders:$M,isUndefined:nl,isDate:DM,isFile:LM,isBlob:MM,isRegExp:nO,isFunction:Gn,isStream:FM,isURLSearchParams:VM,isTypedArray:XM,isFileList:OM,forEach:Pl,merge:Qh,extend:HM,trim:WM,stripBOM:GM,inherits:ZM,toFlatObject:KM,kindOf:Kc,kindOfTest:Cr,endsWith:qM,toArray:YM,forEachEntry:QM,matchAll:JM,isHTMLForm:eO,hasOwnProperty:_0,hasOwnProp:_0,reduceDescriptors:u_,freezeMethods:rO,toObjectSet:sO,toCamelCase:tO,noop:iO,toFiniteNumber:oO,findKey:a_,global:Ci,isContextDefined:l_,ALPHABET:c_,generateString:aO,isSpecCompliantForm:lO,toJSONObject:uO,isAsyncFn:cO,isThenable:dO,setImmediate:d_,asap:fO};function Qe(e,t,n,s,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),s&&(this.request=s),o&&(this.response=o,this.status=o.status?o.status:null)}Z.inherits(Qe,Error,{toJSON:function(){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:Z.toJSONObject(this.config),code:this.code,status:this.status}}});const f_=Qe.prototype,h_={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{h_[e]={value:e}});Object.defineProperties(Qe,h_);Object.defineProperty(f_,"isAxiosError",{value:!0});Qe.from=(e,t,n,s,o,a)=>{const u=Object.create(f_);return Z.toFlatObject(e,u,function(f){return f!==Error.prototype},c=>c!=="isAxiosError"),Qe.call(u,e.message,t,n,s,o),u.cause=e,u.name=e.name,a&&Object.assign(u,a),u};const hO=null;function Jh(e){return Z.isPlainObject(e)||Z.isArray(e)}function p_(e){return Z.endsWith(e,"[]")?e.slice(0,-2):e}function C0(e,t,n){return e?e.concat(t).map(function(o,a){return o=p_(o),!n&&a?"["+o+"]":o}).join(n?".":""):t}function pO(e){return Z.isArray(e)&&!e.some(Jh)}const mO=Z.toFlatObject(Z,{},null,function(t){return/^is[A-Z]/.test(t)});function Xc(e,t,n){if(!Z.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=Z.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(S,C){return!Z.isUndefined(C[S])});const s=n.metaTokens,o=n.visitor||m,a=n.dots,u=n.indexes,f=(n.Blob||typeof Blob<"u"&&Blob)&&Z.isSpecCompliantForm(t);if(!Z.isFunction(o))throw new TypeError("visitor must be a function");function h(w){if(w===null)return"";if(Z.isDate(w))return w.toISOString();if(!f&&Z.isBlob(w))throw new Qe("Blob is not supported. Use a Buffer instead.");return Z.isArrayBuffer(w)||Z.isTypedArray(w)?f&&typeof Blob=="function"?new Blob([w]):Buffer.from(w):w}function m(w,S,C){let E=w;if(w&&!C&&typeof w=="object"){if(Z.endsWith(S,"{}"))S=s?S:S.slice(0,-2),w=JSON.stringify(w);else if(Z.isArray(w)&&pO(w)||(Z.isFileList(w)||Z.endsWith(S,"[]"))&&(E=Z.toArray(w)))return S=p_(S),E.forEach(function(N,I){!(Z.isUndefined(N)||N===null)&&t.append(u===!0?C0([S],I,a):u===null?S:S+"[]",h(N))}),!1}return Jh(w)?!0:(t.append(C0(C,S,a),h(w)),!1)}const g=[],v=Object.assign(mO,{defaultVisitor:m,convertValue:h,isVisitable:Jh});function b(w,S){if(!Z.isUndefined(w)){if(g.indexOf(w)!==-1)throw Error("Circular reference detected in "+S.join("."));g.push(w),Z.forEach(w,function(E,R){(!(Z.isUndefined(E)||E===null)&&o.call(t,E,Z.isString(R)?R.trim():R,S,v))===!0&&b(E,S?S.concat(R):[R])}),g.pop()}}if(!Z.isObject(e))throw new TypeError("data must be an object");return b(e),t}function k0(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(s){return t[s]})}function Sm(e,t){this._pairs=[],e&&Xc(e,this,t)}const m_=Sm.prototype;m_.append=function(t,n){this._pairs.push([t,n])};m_.toString=function(t){const n=t?function(s){return t.call(this,s,k0)}:k0;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function gO(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function g_(e,t,n){if(!t)return e;const s=n&&n.encode||gO;Z.isFunction(n)&&(n={serialize:n});const o=n&&n.serialize;let a;if(o?a=o(t,n):a=Z.isURLSearchParams(t)?t.toString():new Sm(t,n).toString(s),a){const u=e.indexOf("#");u!==-1&&(e=e.slice(0,u)),e+=(e.indexOf("?")===-1?"?":"&")+a}return e}class T0{constructor(){this.handlers=[]}use(t,n,s){return this.handlers.push({fulfilled:t,rejected:n,synchronous:s?s.synchronous:!1,runWhen:s?s.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){Z.forEach(this.handlers,function(s){s!==null&&t(s)})}}const y_={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},yO=typeof URLSearchParams<"u"?URLSearchParams:Sm,vO=typeof FormData<"u"?FormData:null,xO=typeof Blob<"u"?Blob:null,wO={isBrowser:!0,classes:{URLSearchParams:yO,FormData:vO,Blob:xO},protocols:["http","https","file","blob","url","data"]},bm=typeof window<"u"&&typeof document<"u",ep=typeof navigator=="object"&&navigator||void 0,SO=bm&&(!ep||["ReactNative","NativeScript","NS"].indexOf(ep.product)<0),bO=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",_O=bm&&window.location.href||"http://localhost",EO=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:bm,hasStandardBrowserEnv:SO,hasStandardBrowserWebWorkerEnv:bO,navigator:ep,origin:_O},Symbol.toStringTag,{value:"Module"})),pn={...EO,...wO};function CO(e,t){return Xc(e,new pn.classes.URLSearchParams,Object.assign({visitor:function(n,s,o,a){return pn.isNode&&Z.isBuffer(n)?(this.append(s,n.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)}},t))}function kO(e){return Z.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function TO(e){const t={},n=Object.keys(e);let s;const o=n.length;let a;for(s=0;s<o;s++)a=n[s],t[a]=e[a];return t}function v_(e){function t(n,s,o,a){let u=n[a++];if(u==="__proto__")return!0;const c=Number.isFinite(+u),f=a>=n.length;return u=!u&&Z.isArray(o)?o.length:u,f?(Z.hasOwnProp(o,u)?o[u]=[o[u],s]:o[u]=s,!c):((!o[u]||!Z.isObject(o[u]))&&(o[u]=[]),t(n,s,o[u],a)&&Z.isArray(o[u])&&(o[u]=TO(o[u])),!c)}if(Z.isFormData(e)&&Z.isFunction(e.entries)){const n={};return Z.forEachEntry(e,(s,o)=>{t(kO(s),o,n,0)}),n}return null}function RO(e,t,n){if(Z.isString(e))try{return(t||JSON.parse)(e),Z.trim(e)}catch(s){if(s.name!=="SyntaxError")throw s}return(0,JSON.stringify)(e)}const Nl={transitional:y_,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const s=n.getContentType()||"",o=s.indexOf("application/json")>-1,a=Z.isObject(t);if(a&&Z.isHTMLForm(t)&&(t=new FormData(t)),Z.isFormData(t))return o?JSON.stringify(v_(t)):t;if(Z.isArrayBuffer(t)||Z.isBuffer(t)||Z.isStream(t)||Z.isFile(t)||Z.isBlob(t)||Z.isReadableStream(t))return t;if(Z.isArrayBufferView(t))return t.buffer;if(Z.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let c;if(a){if(s.indexOf("application/x-www-form-urlencoded")>-1)return CO(t,this.formSerializer).toString();if((c=Z.isFileList(t))||s.indexOf("multipart/form-data")>-1){const f=this.env&&this.env.FormData;return Xc(c?{"files[]":t}:t,f&&new f,this.formSerializer)}}return a||o?(n.setContentType("application/json",!1),RO(t)):t}],transformResponse:[function(t){const n=this.transitional||Nl.transitional,s=n&&n.forcedJSONParsing,o=this.responseType==="json";if(Z.isResponse(t)||Z.isReadableStream(t))return t;if(t&&Z.isString(t)&&(s&&!this.responseType||o)){const u=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(c){if(u)throw c.name==="SyntaxError"?Qe.from(c,Qe.ERR_BAD_RESPONSE,this,null,this.response):c}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:pn.classes.FormData,Blob:pn.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Z.forEach(["delete","get","head","post","put","patch"],e=>{Nl.headers[e]={}});const PO=Z.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"]),NO=e=>{const t={};let n,s,o;return e&&e.split(`
|
||
`).forEach(function(u){o=u.indexOf(":"),n=u.substring(0,o).trim().toLowerCase(),s=u.substring(o+1).trim(),!(!n||t[n]&&PO[n])&&(n==="set-cookie"?t[n]?t[n].push(s):t[n]=[s]:t[n]=t[n]?t[n]+", "+s:s)}),t},R0=Symbol("internals");function Ra(e){return e&&String(e).trim().toLowerCase()}function ic(e){return e===!1||e==null?e:Z.isArray(e)?e.map(ic):String(e)}function AO(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let s;for(;s=n.exec(e);)t[s[1]]=s[2];return t}const jO=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function vh(e,t,n,s,o){if(Z.isFunction(s))return s.call(this,t,n);if(o&&(t=n),!!Z.isString(t)){if(Z.isString(s))return t.indexOf(s)!==-1;if(Z.isRegExp(s))return s.test(t)}}function DO(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,s)=>n.toUpperCase()+s)}function LO(e,t){const n=Z.toCamelCase(" "+t);["get","set","has"].forEach(s=>{Object.defineProperty(e,s+n,{value:function(o,a,u){return this[s].call(this,t,o,a,u)},configurable:!0})})}class Mn{constructor(t){t&&this.set(t)}set(t,n,s){const o=this;function a(c,f,h){const m=Ra(f);if(!m)throw new Error("header name must be a non-empty string");const g=Z.findKey(o,m);(!g||o[g]===void 0||h===!0||h===void 0&&o[g]!==!1)&&(o[g||f]=ic(c))}const u=(c,f)=>Z.forEach(c,(h,m)=>a(h,m,f));if(Z.isPlainObject(t)||t instanceof this.constructor)u(t,n);else if(Z.isString(t)&&(t=t.trim())&&!jO(t))u(NO(t),n);else if(Z.isHeaders(t))for(const[c,f]of t.entries())a(f,c,s);else t!=null&&a(n,t,s);return this}get(t,n){if(t=Ra(t),t){const s=Z.findKey(this,t);if(s){const o=this[s];if(!n)return o;if(n===!0)return AO(o);if(Z.isFunction(n))return n.call(this,o,s);if(Z.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Ra(t),t){const s=Z.findKey(this,t);return!!(s&&this[s]!==void 0&&(!n||vh(this,this[s],s,n)))}return!1}delete(t,n){const s=this;let o=!1;function a(u){if(u=Ra(u),u){const c=Z.findKey(s,u);c&&(!n||vh(s,s[c],c,n))&&(delete s[c],o=!0)}}return Z.isArray(t)?t.forEach(a):a(t),o}clear(t){const n=Object.keys(this);let s=n.length,o=!1;for(;s--;){const a=n[s];(!t||vh(this,this[a],a,t,!0))&&(delete this[a],o=!0)}return o}normalize(t){const n=this,s={};return Z.forEach(this,(o,a)=>{const u=Z.findKey(s,a);if(u){n[u]=ic(o),delete n[a];return}const c=t?DO(a):String(a).trim();c!==a&&delete n[a],n[c]=ic(o),s[c]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return Z.forEach(this,(s,o)=>{s!=null&&s!==!1&&(n[o]=t&&Z.isArray(s)?s.join(", "):s)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
|
||
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const s=new this(t);return n.forEach(o=>s.set(o)),s}static accessor(t){const s=(this[R0]=this[R0]={accessors:{}}).accessors,o=this.prototype;function a(u){const c=Ra(u);s[c]||(LO(o,u),s[c]=!0)}return Z.isArray(t)?t.forEach(a):a(t),this}}Mn.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);Z.reduceDescriptors(Mn.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(s){this[n]=s}}});Z.freezeMethods(Mn);function xh(e,t){const n=this||Nl,s=t||n,o=Mn.from(s.headers);let a=s.data;return Z.forEach(e,function(c){a=c.call(n,a,o.normalize(),t?t.status:void 0)}),o.normalize(),a}function x_(e){return!!(e&&e.__CANCEL__)}function Io(e,t,n){Qe.call(this,e??"canceled",Qe.ERR_CANCELED,t,n),this.name="CanceledError"}Z.inherits(Io,Qe,{__CANCEL__:!0});function w_(e,t,n){const s=n.config.validateStatus;!n.status||!s||s(n.status)?e(n):t(new Qe("Request failed with status code "+n.status,[Qe.ERR_BAD_REQUEST,Qe.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function MO(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function OO(e,t){e=e||10;const n=new Array(e),s=new Array(e);let o=0,a=0,u;return t=t!==void 0?t:1e3,function(f){const h=Date.now(),m=s[a];u||(u=h),n[o]=f,s[o]=h;let g=a,v=0;for(;g!==o;)v+=n[g++],g=g%e;if(o=(o+1)%e,o===a&&(a=(a+1)%e),h-u<t)return;const b=m&&h-m;return b?Math.round(v*1e3/b):void 0}}function FO(e,t){let n=0,s=1e3/t,o,a;const u=(h,m=Date.now())=>{n=m,o=null,a&&(clearTimeout(a),a=null),e.apply(null,h)};return[(...h)=>{const m=Date.now(),g=m-n;g>=s?u(h,m):(o=h,a||(a=setTimeout(()=>{a=null,u(o)},s-g)))},()=>o&&u(o)]}const bc=(e,t,n=3)=>{let s=0;const o=OO(50,250);return FO(a=>{const u=a.loaded,c=a.lengthComputable?a.total:void 0,f=u-s,h=o(f),m=u<=c;s=u;const g={loaded:u,total:c,progress:c?u/c:void 0,bytes:f,rate:h||void 0,estimated:h&&c&&m?(c-u)/h:void 0,event:a,lengthComputable:c!=null,[t?"download":"upload"]:!0};e(g)},n)},P0=(e,t)=>{const n=e!=null;return[s=>t[0]({lengthComputable:n,total:e,loaded:s}),t[1]]},N0=e=>(...t)=>Z.asap(()=>e(...t)),IO=pn.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,pn.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(pn.origin),pn.navigator&&/(msie|trident)/i.test(pn.navigator.userAgent)):()=>!0,VO=pn.hasStandardBrowserEnv?{write(e,t,n,s,o,a){const u=[e+"="+encodeURIComponent(t)];Z.isNumber(n)&&u.push("expires="+new Date(n).toGMTString()),Z.isString(s)&&u.push("path="+s),Z.isString(o)&&u.push("domain="+o),a===!0&&u.push("secure"),document.cookie=u.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function BO(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function zO(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function S_(e,t){return e&&!BO(t)?zO(e,t):t}const A0=e=>e instanceof Mn?{...e}:e;function ji(e,t){t=t||{};const n={};function s(h,m,g,v){return Z.isPlainObject(h)&&Z.isPlainObject(m)?Z.merge.call({caseless:v},h,m):Z.isPlainObject(m)?Z.merge({},m):Z.isArray(m)?m.slice():m}function o(h,m,g,v){if(Z.isUndefined(m)){if(!Z.isUndefined(h))return s(void 0,h,g,v)}else return s(h,m,g,v)}function a(h,m){if(!Z.isUndefined(m))return s(void 0,m)}function u(h,m){if(Z.isUndefined(m)){if(!Z.isUndefined(h))return s(void 0,h)}else return s(void 0,m)}function c(h,m,g){if(g in t)return s(h,m);if(g in e)return s(void 0,h)}const f={url:a,method:a,data:a,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,responseEncoding:u,validateStatus:c,headers:(h,m,g)=>o(A0(h),A0(m),g,!0)};return Z.forEach(Object.keys(Object.assign({},e,t)),function(m){const g=f[m]||o,v=g(e[m],t[m],m);Z.isUndefined(v)&&g!==c||(n[m]=v)}),n}const b_=e=>{const t=ji({},e);let{data:n,withXSRFToken:s,xsrfHeaderName:o,xsrfCookieName:a,headers:u,auth:c}=t;t.headers=u=Mn.from(u),t.url=g_(S_(t.baseURL,t.url),e.params,e.paramsSerializer),c&&u.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):"")));let f;if(Z.isFormData(n)){if(pn.hasStandardBrowserEnv||pn.hasStandardBrowserWebWorkerEnv)u.setContentType(void 0);else if((f=u.getContentType())!==!1){const[h,...m]=f?f.split(";").map(g=>g.trim()).filter(Boolean):[];u.setContentType([h||"multipart/form-data",...m].join("; "))}}if(pn.hasStandardBrowserEnv&&(s&&Z.isFunction(s)&&(s=s(t)),s||s!==!1&&IO(t.url))){const h=o&&a&&VO.read(a);h&&u.set(o,h)}return t},UO=typeof XMLHttpRequest<"u",$O=UO&&function(e){return new Promise(function(n,s){const o=b_(e);let a=o.data;const u=Mn.from(o.headers).normalize();let{responseType:c,onUploadProgress:f,onDownloadProgress:h}=o,m,g,v,b,w;function S(){b&&b(),w&&w(),o.cancelToken&&o.cancelToken.unsubscribe(m),o.signal&&o.signal.removeEventListener("abort",m)}let C=new XMLHttpRequest;C.open(o.method.toUpperCase(),o.url,!0),C.timeout=o.timeout;function E(){if(!C)return;const N=Mn.from("getAllResponseHeaders"in C&&C.getAllResponseHeaders()),T={data:!c||c==="text"||c==="json"?C.responseText:C.response,status:C.status,statusText:C.statusText,headers:N,config:e,request:C};w_(function(z){n(z),S()},function(z){s(z),S()},T),C=null}"onloadend"in C?C.onloadend=E:C.onreadystatechange=function(){!C||C.readyState!==4||C.status===0&&!(C.responseURL&&C.responseURL.indexOf("file:")===0)||setTimeout(E)},C.onabort=function(){C&&(s(new Qe("Request aborted",Qe.ECONNABORTED,e,C)),C=null)},C.onerror=function(){s(new Qe("Network Error",Qe.ERR_NETWORK,e,C)),C=null},C.ontimeout=function(){let I=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const T=o.transitional||y_;o.timeoutErrorMessage&&(I=o.timeoutErrorMessage),s(new Qe(I,T.clarifyTimeoutError?Qe.ETIMEDOUT:Qe.ECONNABORTED,e,C)),C=null},a===void 0&&u.setContentType(null),"setRequestHeader"in C&&Z.forEach(u.toJSON(),function(I,T){C.setRequestHeader(T,I)}),Z.isUndefined(o.withCredentials)||(C.withCredentials=!!o.withCredentials),c&&c!=="json"&&(C.responseType=o.responseType),h&&([v,w]=bc(h,!0),C.addEventListener("progress",v)),f&&C.upload&&([g,b]=bc(f),C.upload.addEventListener("progress",g),C.upload.addEventListener("loadend",b)),(o.cancelToken||o.signal)&&(m=N=>{C&&(s(!N||N.type?new Io(null,e,C):N),C.abort(),C=null)},o.cancelToken&&o.cancelToken.subscribe(m),o.signal&&(o.signal.aborted?m():o.signal.addEventListener("abort",m)));const R=MO(o.url);if(R&&pn.protocols.indexOf(R)===-1){s(new Qe("Unsupported protocol "+R+":",Qe.ERR_BAD_REQUEST,e));return}C.send(a||null)})},WO=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let s=new AbortController,o;const a=function(h){if(!o){o=!0,c();const m=h instanceof Error?h:this.reason;s.abort(m instanceof Qe?m:new Io(m instanceof Error?m.message:m))}};let u=t&&setTimeout(()=>{u=null,a(new Qe(`timeout ${t} of ms exceeded`,Qe.ETIMEDOUT))},t);const c=()=>{e&&(u&&clearTimeout(u),u=null,e.forEach(h=>{h.unsubscribe?h.unsubscribe(a):h.removeEventListener("abort",a)}),e=null)};e.forEach(h=>h.addEventListener("abort",a));const{signal:f}=s;return f.unsubscribe=()=>Z.asap(c),f}},HO=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let s=0,o;for(;s<n;)o=s+t,yield e.slice(s,o),s=o},GO=async function*(e,t){for await(const n of ZO(e))yield*HO(n,t)},ZO=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:s}=await t.read();if(n)break;yield s}}finally{await t.cancel()}},j0=(e,t,n,s)=>{const o=GO(e,t);let a=0,u,c=f=>{u||(u=!0,s&&s(f))};return new ReadableStream({async pull(f){try{const{done:h,value:m}=await o.next();if(h){c(),f.close();return}let g=m.byteLength;if(n){let v=a+=g;n(v)}f.enqueue(new Uint8Array(m))}catch(h){throw c(h),h}},cancel(f){return c(f),o.return()}},{highWaterMark:2})},Qc=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",__=Qc&&typeof ReadableStream=="function",KO=Qc&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),E_=(e,...t)=>{try{return!!e(...t)}catch{return!1}},qO=__&&E_(()=>{let e=!1;const t=new Request(pn.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),D0=64*1024,tp=__&&E_(()=>Z.isReadableStream(new Response("").body)),_c={stream:tp&&(e=>e.body)};Qc&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!_c[t]&&(_c[t]=Z.isFunction(e[t])?n=>n[t]():(n,s)=>{throw new Qe(`Response type '${t}' is not supported`,Qe.ERR_NOT_SUPPORT,s)})})})(new Response);const YO=async e=>{if(e==null)return 0;if(Z.isBlob(e))return e.size;if(Z.isSpecCompliantForm(e))return(await new Request(pn.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(Z.isArrayBufferView(e)||Z.isArrayBuffer(e))return e.byteLength;if(Z.isURLSearchParams(e)&&(e=e+""),Z.isString(e))return(await KO(e)).byteLength},XO=async(e,t)=>{const n=Z.toFiniteNumber(e.getContentLength());return n??YO(t)},QO=Qc&&(async e=>{let{url:t,method:n,data:s,signal:o,cancelToken:a,timeout:u,onDownloadProgress:c,onUploadProgress:f,responseType:h,headers:m,withCredentials:g="same-origin",fetchOptions:v}=b_(e);h=h?(h+"").toLowerCase():"text";let b=WO([o,a&&a.toAbortSignal()],u),w;const S=b&&b.unsubscribe&&(()=>{b.unsubscribe()});let C;try{if(f&&qO&&n!=="get"&&n!=="head"&&(C=await XO(m,s))!==0){let T=new Request(t,{method:"POST",body:s,duplex:"half"}),F;if(Z.isFormData(s)&&(F=T.headers.get("content-type"))&&m.setContentType(F),T.body){const[z,O]=P0(C,bc(N0(f)));s=j0(T.body,D0,z,O)}}Z.isString(g)||(g=g?"include":"omit");const E="credentials"in Request.prototype;w=new Request(t,{...v,signal:b,method:n.toUpperCase(),headers:m.normalize().toJSON(),body:s,duplex:"half",credentials:E?g:void 0});let R=await fetch(w);const N=tp&&(h==="stream"||h==="response");if(tp&&(c||N&&S)){const T={};["status","statusText","headers"].forEach(q=>{T[q]=R[q]});const F=Z.toFiniteNumber(R.headers.get("content-length")),[z,O]=c&&P0(F,bc(N0(c),!0))||[];R=new Response(j0(R.body,D0,z,()=>{O&&O(),S&&S()}),T)}h=h||"text";let I=await _c[Z.findKey(_c,h)||"text"](R,e);return!N&&S&&S(),await new Promise((T,F)=>{w_(T,F,{data:I,headers:Mn.from(R.headers),status:R.status,statusText:R.statusText,config:e,request:w})})}catch(E){throw S&&S(),E&&E.name==="TypeError"&&/fetch/i.test(E.message)?Object.assign(new Qe("Network Error",Qe.ERR_NETWORK,e,w),{cause:E.cause||E}):Qe.from(E,E&&E.code,e,w)}}),np={http:hO,xhr:$O,fetch:QO};Z.forEach(np,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const L0=e=>`- ${e}`,JO=e=>Z.isFunction(e)||e===null||e===!1,C_={getAdapter:e=>{e=Z.isArray(e)?e:[e];const{length:t}=e;let n,s;const o={};for(let a=0;a<t;a++){n=e[a];let u;if(s=n,!JO(n)&&(s=np[(u=String(n)).toLowerCase()],s===void 0))throw new Qe(`Unknown adapter '${u}'`);if(s)break;o[u||"#"+a]=s}if(!s){const a=Object.entries(o).map(([c,f])=>`adapter ${c} `+(f===!1?"is not supported by the environment":"is not available in the build"));let u=t?a.length>1?`since :
|
||
`+a.map(L0).join(`
|
||
`):" "+L0(a[0]):"as no adapter specified";throw new Qe("There is no suitable adapter to dispatch the request "+u,"ERR_NOT_SUPPORT")}return s},adapters:np};function wh(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Io(null,e)}function M0(e){return wh(e),e.headers=Mn.from(e.headers),e.data=xh.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),C_.getAdapter(e.adapter||Nl.adapter)(e).then(function(s){return wh(e),s.data=xh.call(e,e.transformResponse,s),s.headers=Mn.from(s.headers),s},function(s){return x_(s)||(wh(e),s&&s.response&&(s.response.data=xh.call(e,e.transformResponse,s.response),s.response.headers=Mn.from(s.response.headers))),Promise.reject(s)})}const k_="1.7.9",Jc={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Jc[e]=function(s){return typeof s===e||"a"+(t<1?"n ":" ")+e}});const O0={};Jc.transitional=function(t,n,s){function o(a,u){return"[Axios v"+k_+"] Transitional option '"+a+"'"+u+(s?". "+s:"")}return(a,u,c)=>{if(t===!1)throw new Qe(o(u," has been removed"+(n?" in "+n:"")),Qe.ERR_DEPRECATED);return n&&!O0[u]&&(O0[u]=!0,console.warn(o(u," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(a,u,c):!0}};Jc.spelling=function(t){return(n,s)=>(console.warn(`${s} is likely a misspelling of ${t}`),!0)};function e2(e,t,n){if(typeof e!="object")throw new Qe("options must be an object",Qe.ERR_BAD_OPTION_VALUE);const s=Object.keys(e);let o=s.length;for(;o-- >0;){const a=s[o],u=t[a];if(u){const c=e[a],f=c===void 0||u(c,a,e);if(f!==!0)throw new Qe("option "+a+" must be "+f,Qe.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Qe("Unknown option "+a,Qe.ERR_BAD_OPTION)}}const oc={assertOptions:e2,validators:Jc},Lr=oc.validators;class Ti{constructor(t){this.defaults=t,this.interceptors={request:new T0,response:new T0}}async request(t,n){try{return await this._request(t,n)}catch(s){if(s instanceof Error){let o={};Error.captureStackTrace?Error.captureStackTrace(o):o=new Error;const a=o.stack?o.stack.replace(/^.+\n/,""):"";try{s.stack?a&&!String(s.stack).endsWith(a.replace(/^.+\n.+\n/,""))&&(s.stack+=`
|
||
`+a):s.stack=a}catch{}}throw s}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=ji(this.defaults,n);const{transitional:s,paramsSerializer:o,headers:a}=n;s!==void 0&&oc.assertOptions(s,{silentJSONParsing:Lr.transitional(Lr.boolean),forcedJSONParsing:Lr.transitional(Lr.boolean),clarifyTimeoutError:Lr.transitional(Lr.boolean)},!1),o!=null&&(Z.isFunction(o)?n.paramsSerializer={serialize:o}:oc.assertOptions(o,{encode:Lr.function,serialize:Lr.function},!0)),oc.assertOptions(n,{baseUrl:Lr.spelling("baseURL"),withXsrfToken:Lr.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let u=a&&Z.merge(a.common,a[n.method]);a&&Z.forEach(["delete","get","head","post","put","patch","common"],w=>{delete a[w]}),n.headers=Mn.concat(u,a);const c=[];let f=!0;this.interceptors.request.forEach(function(S){typeof S.runWhen=="function"&&S.runWhen(n)===!1||(f=f&&S.synchronous,c.unshift(S.fulfilled,S.rejected))});const h=[];this.interceptors.response.forEach(function(S){h.push(S.fulfilled,S.rejected)});let m,g=0,v;if(!f){const w=[M0.bind(this),void 0];for(w.unshift.apply(w,c),w.push.apply(w,h),v=w.length,m=Promise.resolve(n);g<v;)m=m.then(w[g++],w[g++]);return m}v=c.length;let b=n;for(g=0;g<v;){const w=c[g++],S=c[g++];try{b=w(b)}catch(C){S.call(this,C);break}}try{m=M0.call(this,b)}catch(w){return Promise.reject(w)}for(g=0,v=h.length;g<v;)m=m.then(h[g++],h[g++]);return m}getUri(t){t=ji(this.defaults,t);const n=S_(t.baseURL,t.url);return g_(n,t.params,t.paramsSerializer)}}Z.forEach(["delete","get","head","options"],function(t){Ti.prototype[t]=function(n,s){return this.request(ji(s||{},{method:t,url:n,data:(s||{}).data}))}});Z.forEach(["post","put","patch"],function(t){function n(s){return function(a,u,c){return this.request(ji(c||{},{method:t,headers:s?{"Content-Type":"multipart/form-data"}:{},url:a,data:u}))}}Ti.prototype[t]=n(),Ti.prototype[t+"Form"]=n(!0)});class _m{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(a){n=a});const s=this;this.promise.then(o=>{if(!s._listeners)return;let a=s._listeners.length;for(;a-- >0;)s._listeners[a](o);s._listeners=null}),this.promise.then=o=>{let a;const u=new Promise(c=>{s.subscribe(c),a=c}).then(o);return u.cancel=function(){s.unsubscribe(a)},u},t(function(a,u,c){s.reason||(s.reason=new Io(a,u,c),n(s.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=s=>{t.abort(s)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new _m(function(o){t=o}),cancel:t}}}function t2(e){return function(n){return e.apply(null,n)}}function n2(e){return Z.isObject(e)&&e.isAxiosError===!0}const rp={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};Object.entries(rp).forEach(([e,t])=>{rp[t]=e});function T_(e){const t=new Ti(e),n=s_(Ti.prototype.request,t);return Z.extend(n,Ti.prototype,t,{allOwnKeys:!0}),Z.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return T_(ji(e,o))},n}const Lt=T_(Nl);Lt.Axios=Ti;Lt.CanceledError=Io;Lt.CancelToken=_m;Lt.isCancel=x_;Lt.VERSION=k_;Lt.toFormData=Xc;Lt.AxiosError=Qe;Lt.Cancel=Lt.CanceledError;Lt.all=function(t){return Promise.all(t)};Lt.spread=t2;Lt.isAxiosError=n2;Lt.mergeConfig=ji;Lt.AxiosHeaders=Mn;Lt.formToJSON=e=>v_(Z.isHTMLForm(e)?new FormData(e):e);Lt.getAdapter=C_.getAdapter;Lt.HttpStatusCode=rp;Lt.default=Lt;var lt;(function(e){e.assertEqual=o=>o;function t(o){}e.assertIs=t;function n(o){throw new Error}e.assertNever=n,e.arrayToEnum=o=>{const a={};for(const u of o)a[u]=u;return a},e.getValidEnumValues=o=>{const a=e.objectKeys(o).filter(c=>typeof o[o[c]]!="number"),u={};for(const c of a)u[c]=o[c];return e.objectValues(u)},e.objectValues=o=>e.objectKeys(o).map(function(a){return o[a]}),e.objectKeys=typeof Object.keys=="function"?o=>Object.keys(o):o=>{const a=[];for(const u in o)Object.prototype.hasOwnProperty.call(o,u)&&a.push(u);return a},e.find=(o,a)=>{for(const u of o)if(a(u))return u},e.isInteger=typeof Number.isInteger=="function"?o=>Number.isInteger(o):o=>typeof o=="number"&&isFinite(o)&&Math.floor(o)===o;function s(o,a=" | "){return o.map(u=>typeof u=="string"?`'${u}'`:u).join(a)}e.joinValues=s,e.jsonStringifyReplacer=(o,a)=>typeof a=="bigint"?a.toString():a})(lt||(lt={}));var sp;(function(e){e.mergeShapes=(t,n)=>({...t,...n})})(sp||(sp={}));const ve=lt.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),ls=e=>{switch(typeof e){case"undefined":return ve.undefined;case"string":return ve.string;case"number":return isNaN(e)?ve.nan:ve.number;case"boolean":return ve.boolean;case"function":return ve.function;case"bigint":return ve.bigint;case"symbol":return ve.symbol;case"object":return Array.isArray(e)?ve.array:e===null?ve.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?ve.promise:typeof Map<"u"&&e instanceof Map?ve.map:typeof Set<"u"&&e instanceof Set?ve.set:typeof Date<"u"&&e instanceof Date?ve.date:ve.object;default:return ve.unknown}},re=lt.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),r2=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:");class Zn extends Error{get errors(){return this.issues}constructor(t){super(),this.issues=[],this.addIssue=s=>{this.issues=[...this.issues,s]},this.addIssues=(s=[])=>{this.issues=[...this.issues,...s]};const n=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,n):this.__proto__=n,this.name="ZodError",this.issues=t}format(t){const n=t||function(a){return a.message},s={_errors:[]},o=a=>{for(const u of a.issues)if(u.code==="invalid_union")u.unionErrors.map(o);else if(u.code==="invalid_return_type")o(u.returnTypeError);else if(u.code==="invalid_arguments")o(u.argumentsError);else if(u.path.length===0)s._errors.push(n(u));else{let c=s,f=0;for(;f<u.path.length;){const h=u.path[f];f===u.path.length-1?(c[h]=c[h]||{_errors:[]},c[h]._errors.push(n(u))):c[h]=c[h]||{_errors:[]},c=c[h],f++}}};return o(this),s}static assert(t){if(!(t instanceof Zn))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,lt.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=n=>n.message){const n={},s=[];for(const o of this.issues)o.path.length>0?(n[o.path[0]]=n[o.path[0]]||[],n[o.path[0]].push(t(o))):s.push(t(o));return{formErrors:s,fieldErrors:n}}get formErrors(){return this.flatten()}}Zn.create=e=>new Zn(e);const Ao=(e,t)=>{let n;switch(e.code){case re.invalid_type:e.received===ve.undefined?n="Required":n=`Expected ${e.expected}, received ${e.received}`;break;case re.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,lt.jsonStringifyReplacer)}`;break;case re.unrecognized_keys:n=`Unrecognized key(s) in object: ${lt.joinValues(e.keys,", ")}`;break;case re.invalid_union:n="Invalid input";break;case re.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${lt.joinValues(e.options)}`;break;case re.invalid_enum_value:n=`Invalid enum value. Expected ${lt.joinValues(e.options)}, received '${e.received}'`;break;case re.invalid_arguments:n="Invalid function arguments";break;case re.invalid_return_type:n="Invalid function return type";break;case re.invalid_date:n="Invalid date";break;case re.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:lt.assertNever(e.validation):e.validation!=="regex"?n=`Invalid ${e.validation}`:n="Invalid";break;case re.too_small:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:n="Invalid input";break;case re.too_big:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?n=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:n="Invalid input";break;case re.custom:n="Invalid input";break;case re.invalid_intersection_types:n="Intersection results could not be merged";break;case re.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case re.not_finite:n="Number must be finite";break;default:n=t.defaultError,lt.assertNever(e)}return{message:n}};let R_=Ao;function s2(e){R_=e}function Ec(){return R_}const Cc=e=>{const{data:t,path:n,errorMaps:s,issueData:o}=e,a=[...n,...o.path||[]],u={...o,path:a};if(o.message!==void 0)return{...o,path:a,message:o.message};let c="";const f=s.filter(h=>!!h).slice().reverse();for(const h of f)c=h(u,{data:t,defaultError:c}).message;return{...o,path:a,message:c}},i2=[];function he(e,t){const n=Ec(),s=Cc({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===Ao?void 0:Ao].filter(o=>!!o)});e.common.issues.push(s)}class gn{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,n){const s=[];for(const o of n){if(o.status==="aborted")return He;o.status==="dirty"&&t.dirty(),s.push(o.value)}return{status:t.value,value:s}}static async mergeObjectAsync(t,n){const s=[];for(const o of n){const a=await o.key,u=await o.value;s.push({key:a,value:u})}return gn.mergeObjectSync(t,s)}static mergeObjectSync(t,n){const s={};for(const o of n){const{key:a,value:u}=o;if(a.status==="aborted"||u.status==="aborted")return He;a.status==="dirty"&&t.dirty(),u.status==="dirty"&&t.dirty(),a.value!=="__proto__"&&(typeof u.value<"u"||o.alwaysSet)&&(s[a.value]=u.value)}return{status:t.value,value:s}}}const He=Object.freeze({status:"aborted"}),Eo=e=>({status:"dirty",value:e}),bn=e=>({status:"valid",value:e}),ip=e=>e.status==="aborted",op=e=>e.status==="dirty",Di=e=>e.status==="valid",rl=e=>typeof Promise<"u"&&e instanceof Promise;function kc(e,t,n,s){if(typeof t=="function"?e!==t||!0:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t.get(e)}function P_(e,t,n,s,o){if(typeof t=="function"?e!==t||!0:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return t.set(e,n),n}var je;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t==null?void 0:t.message})(je||(je={}));var La,Ma;class Ur{constructor(t,n,s,o){this._cachedPath=[],this.parent=t,this.data=n,this._path=s,this._key=o}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const F0=(e,t)=>{if(Di(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const n=new Zn(e.common.issues);return this._error=n,this._error}}};function Je(e){if(!e)return{};const{errorMap:t,invalid_type_error:n,required_error:s,description:o}=e;if(t&&(n||s))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:o}:{errorMap:(u,c)=>{var f,h;const{message:m}=e;return u.code==="invalid_enum_value"?{message:m??c.defaultError}:typeof c.data>"u"?{message:(f=m??s)!==null&&f!==void 0?f:c.defaultError}:u.code!=="invalid_type"?{message:c.defaultError}:{message:(h=m??n)!==null&&h!==void 0?h:c.defaultError}},description:o}}class nt{get description(){return this._def.description}_getType(t){return ls(t.data)}_getOrReturnCtx(t,n){return n||{common:t.parent.common,data:t.data,parsedType:ls(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new gn,ctx:{common:t.parent.common,data:t.data,parsedType:ls(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){const n=this._parse(t);if(rl(n))throw new Error("Synchronous parse encountered promise.");return n}_parseAsync(t){const n=this._parse(t);return Promise.resolve(n)}parse(t,n){const s=this.safeParse(t,n);if(s.success)return s.data;throw s.error}safeParse(t,n){var s;const o={common:{issues:[],async:(s=n==null?void 0:n.async)!==null&&s!==void 0?s:!1,contextualErrorMap:n==null?void 0:n.errorMap},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:ls(t)},a=this._parseSync({data:t,path:o.path,parent:o});return F0(o,a)}"~validate"(t){var n,s;const o={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:ls(t)};if(!this["~standard"].async)try{const a=this._parseSync({data:t,path:[],parent:o});return Di(a)?{value:a.value}:{issues:o.common.issues}}catch(a){!((s=(n=a==null?void 0:a.message)===null||n===void 0?void 0:n.toLowerCase())===null||s===void 0)&&s.includes("encountered")&&(this["~standard"].async=!0),o.common={issues:[],async:!0}}return this._parseAsync({data:t,path:[],parent:o}).then(a=>Di(a)?{value:a.value}:{issues:o.common.issues})}async parseAsync(t,n){const s=await this.safeParseAsync(t,n);if(s.success)return s.data;throw s.error}async safeParseAsync(t,n){const s={common:{issues:[],contextualErrorMap:n==null?void 0:n.errorMap,async:!0},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:ls(t)},o=this._parse({data:t,path:s.path,parent:s}),a=await(rl(o)?o:Promise.resolve(o));return F0(s,a)}refine(t,n){const s=o=>typeof n=="string"||typeof n>"u"?{message:n}:typeof n=="function"?n(o):n;return this._refinement((o,a)=>{const u=t(o),c=()=>a.addIssue({code:re.custom,...s(o)});return typeof Promise<"u"&&u instanceof Promise?u.then(f=>f?!0:(c(),!1)):u?!0:(c(),!1)})}refinement(t,n){return this._refinement((s,o)=>t(s)?!0:(o.addIssue(typeof n=="function"?n(s,o):n),!1))}_refinement(t){return new _r({schema:this,typeName:$e.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:n=>this["~validate"](n)}}optional(){return zr.create(this,this._def)}nullable(){return ei.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Sr.create(this)}promise(){return Do.create(this,this._def)}or(t){return al.create([this,t],this._def)}and(t){return ll.create(this,t,this._def)}transform(t){return new _r({...Je(this._def),schema:this,typeName:$e.ZodEffects,effect:{type:"transform",transform:t}})}default(t){const n=typeof t=="function"?t:()=>t;return new hl({...Je(this._def),innerType:this,defaultValue:n,typeName:$e.ZodDefault})}brand(){return new Em({typeName:$e.ZodBranded,type:this,...Je(this._def)})}catch(t){const n=typeof t=="function"?t:()=>t;return new pl({...Je(this._def),innerType:this,catchValue:n,typeName:$e.ZodCatch})}describe(t){const n=this.constructor;return new n({...this._def,description:t})}pipe(t){return Al.create(this,t)}readonly(){return ml.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const o2=/^c[^\s-]{8,}$/i,a2=/^[0-9a-z]+$/,l2=/^[0-9A-HJKMNP-TV-Z]{26}$/i,u2=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,c2=/^[a-z0-9_-]{21}$/i,d2=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,f2=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,h2=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,p2="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let Sh;const m2=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,g2=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,y2=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,v2=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,x2=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,w2=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,N_="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",S2=new RegExp(`^${N_}$`);function A_(e){let t="([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d";return e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision==null&&(t=`${t}(\\.\\d+)?`),t}function b2(e){return new RegExp(`^${A_(e)}$`)}function j_(e){let t=`${N_}T${A_(e)}`;const n=[];return n.push(e.local?"Z?":"Z"),e.offset&&n.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${n.join("|")})`,new RegExp(`^${t}$`)}function _2(e,t){return!!((t==="v4"||!t)&&m2.test(e)||(t==="v6"||!t)&&y2.test(e))}function E2(e,t){if(!d2.test(e))return!1;try{const[n]=e.split("."),s=n.replace(/-/g,"+").replace(/_/g,"/").padEnd(n.length+(4-n.length%4)%4,"="),o=JSON.parse(atob(s));return!(typeof o!="object"||o===null||!o.typ||!o.alg||t&&o.alg!==t)}catch{return!1}}function C2(e,t){return!!((t==="v4"||!t)&&g2.test(e)||(t==="v6"||!t)&&v2.test(e))}class xr extends nt{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==ve.string){const a=this._getOrReturnCtx(t);return he(a,{code:re.invalid_type,expected:ve.string,received:a.parsedType}),He}const s=new gn;let o;for(const a of this._def.checks)if(a.kind==="min")t.data.length<a.value&&(o=this._getOrReturnCtx(t,o),he(o,{code:re.too_small,minimum:a.value,type:"string",inclusive:!0,exact:!1,message:a.message}),s.dirty());else if(a.kind==="max")t.data.length>a.value&&(o=this._getOrReturnCtx(t,o),he(o,{code:re.too_big,maximum:a.value,type:"string",inclusive:!0,exact:!1,message:a.message}),s.dirty());else if(a.kind==="length"){const u=t.data.length>a.value,c=t.data.length<a.value;(u||c)&&(o=this._getOrReturnCtx(t,o),u?he(o,{code:re.too_big,maximum:a.value,type:"string",inclusive:!0,exact:!0,message:a.message}):c&&he(o,{code:re.too_small,minimum:a.value,type:"string",inclusive:!0,exact:!0,message:a.message}),s.dirty())}else if(a.kind==="email")h2.test(t.data)||(o=this._getOrReturnCtx(t,o),he(o,{validation:"email",code:re.invalid_string,message:a.message}),s.dirty());else if(a.kind==="emoji")Sh||(Sh=new RegExp(p2,"u")),Sh.test(t.data)||(o=this._getOrReturnCtx(t,o),he(o,{validation:"emoji",code:re.invalid_string,message:a.message}),s.dirty());else if(a.kind==="uuid")u2.test(t.data)||(o=this._getOrReturnCtx(t,o),he(o,{validation:"uuid",code:re.invalid_string,message:a.message}),s.dirty());else if(a.kind==="nanoid")c2.test(t.data)||(o=this._getOrReturnCtx(t,o),he(o,{validation:"nanoid",code:re.invalid_string,message:a.message}),s.dirty());else if(a.kind==="cuid")o2.test(t.data)||(o=this._getOrReturnCtx(t,o),he(o,{validation:"cuid",code:re.invalid_string,message:a.message}),s.dirty());else if(a.kind==="cuid2")a2.test(t.data)||(o=this._getOrReturnCtx(t,o),he(o,{validation:"cuid2",code:re.invalid_string,message:a.message}),s.dirty());else if(a.kind==="ulid")l2.test(t.data)||(o=this._getOrReturnCtx(t,o),he(o,{validation:"ulid",code:re.invalid_string,message:a.message}),s.dirty());else if(a.kind==="url")try{new URL(t.data)}catch{o=this._getOrReturnCtx(t,o),he(o,{validation:"url",code:re.invalid_string,message:a.message}),s.dirty()}else a.kind==="regex"?(a.regex.lastIndex=0,a.regex.test(t.data)||(o=this._getOrReturnCtx(t,o),he(o,{validation:"regex",code:re.invalid_string,message:a.message}),s.dirty())):a.kind==="trim"?t.data=t.data.trim():a.kind==="includes"?t.data.includes(a.value,a.position)||(o=this._getOrReturnCtx(t,o),he(o,{code:re.invalid_string,validation:{includes:a.value,position:a.position},message:a.message}),s.dirty()):a.kind==="toLowerCase"?t.data=t.data.toLowerCase():a.kind==="toUpperCase"?t.data=t.data.toUpperCase():a.kind==="startsWith"?t.data.startsWith(a.value)||(o=this._getOrReturnCtx(t,o),he(o,{code:re.invalid_string,validation:{startsWith:a.value},message:a.message}),s.dirty()):a.kind==="endsWith"?t.data.endsWith(a.value)||(o=this._getOrReturnCtx(t,o),he(o,{code:re.invalid_string,validation:{endsWith:a.value},message:a.message}),s.dirty()):a.kind==="datetime"?j_(a).test(t.data)||(o=this._getOrReturnCtx(t,o),he(o,{code:re.invalid_string,validation:"datetime",message:a.message}),s.dirty()):a.kind==="date"?S2.test(t.data)||(o=this._getOrReturnCtx(t,o),he(o,{code:re.invalid_string,validation:"date",message:a.message}),s.dirty()):a.kind==="time"?b2(a).test(t.data)||(o=this._getOrReturnCtx(t,o),he(o,{code:re.invalid_string,validation:"time",message:a.message}),s.dirty()):a.kind==="duration"?f2.test(t.data)||(o=this._getOrReturnCtx(t,o),he(o,{validation:"duration",code:re.invalid_string,message:a.message}),s.dirty()):a.kind==="ip"?_2(t.data,a.version)||(o=this._getOrReturnCtx(t,o),he(o,{validation:"ip",code:re.invalid_string,message:a.message}),s.dirty()):a.kind==="jwt"?E2(t.data,a.alg)||(o=this._getOrReturnCtx(t,o),he(o,{validation:"jwt",code:re.invalid_string,message:a.message}),s.dirty()):a.kind==="cidr"?C2(t.data,a.version)||(o=this._getOrReturnCtx(t,o),he(o,{validation:"cidr",code:re.invalid_string,message:a.message}),s.dirty()):a.kind==="base64"?x2.test(t.data)||(o=this._getOrReturnCtx(t,o),he(o,{validation:"base64",code:re.invalid_string,message:a.message}),s.dirty()):a.kind==="base64url"?w2.test(t.data)||(o=this._getOrReturnCtx(t,o),he(o,{validation:"base64url",code:re.invalid_string,message:a.message}),s.dirty()):lt.assertNever(a);return{status:s.value,value:t.data}}_regex(t,n,s){return this.refinement(o=>t.test(o),{validation:n,code:re.invalid_string,...je.errToObj(s)})}_addCheck(t){return new xr({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...je.errToObj(t)})}url(t){return this._addCheck({kind:"url",...je.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...je.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...je.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...je.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...je.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...je.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...je.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...je.errToObj(t)})}base64url(t){return this._addCheck({kind:"base64url",...je.errToObj(t)})}jwt(t){return this._addCheck({kind:"jwt",...je.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...je.errToObj(t)})}cidr(t){return this._addCheck({kind:"cidr",...je.errToObj(t)})}datetime(t){var n,s;return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:t}):this._addCheck({kind:"datetime",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,offset:(n=t==null?void 0:t.offset)!==null&&n!==void 0?n:!1,local:(s=t==null?void 0:t.local)!==null&&s!==void 0?s:!1,...je.errToObj(t==null?void 0:t.message)})}date(t){return this._addCheck({kind:"date",message:t})}time(t){return typeof t=="string"?this._addCheck({kind:"time",precision:null,message:t}):this._addCheck({kind:"time",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,...je.errToObj(t==null?void 0:t.message)})}duration(t){return this._addCheck({kind:"duration",...je.errToObj(t)})}regex(t,n){return this._addCheck({kind:"regex",regex:t,...je.errToObj(n)})}includes(t,n){return this._addCheck({kind:"includes",value:t,position:n==null?void 0:n.position,...je.errToObj(n==null?void 0:n.message)})}startsWith(t,n){return this._addCheck({kind:"startsWith",value:t,...je.errToObj(n)})}endsWith(t,n){return this._addCheck({kind:"endsWith",value:t,...je.errToObj(n)})}min(t,n){return this._addCheck({kind:"min",value:t,...je.errToObj(n)})}max(t,n){return this._addCheck({kind:"max",value:t,...je.errToObj(n)})}length(t,n){return this._addCheck({kind:"length",value:t,...je.errToObj(n)})}nonempty(t){return this.min(1,je.errToObj(t))}trim(){return new xr({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new xr({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new xr({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}get isDate(){return!!this._def.checks.find(t=>t.kind==="date")}get isTime(){return!!this._def.checks.find(t=>t.kind==="time")}get isDuration(){return!!this._def.checks.find(t=>t.kind==="duration")}get isEmail(){return!!this._def.checks.find(t=>t.kind==="email")}get isURL(){return!!this._def.checks.find(t=>t.kind==="url")}get isEmoji(){return!!this._def.checks.find(t=>t.kind==="emoji")}get isUUID(){return!!this._def.checks.find(t=>t.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(t=>t.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(t=>t.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(t=>t.kind==="cuid2")}get isULID(){return!!this._def.checks.find(t=>t.kind==="ulid")}get isIP(){return!!this._def.checks.find(t=>t.kind==="ip")}get isCIDR(){return!!this._def.checks.find(t=>t.kind==="cidr")}get isBase64(){return!!this._def.checks.find(t=>t.kind==="base64")}get isBase64url(){return!!this._def.checks.find(t=>t.kind==="base64url")}get minLength(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxLength(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}}xr.create=e=>{var t;return new xr({checks:[],typeName:$e.ZodString,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...Je(e)})};function k2(e,t){const n=(e.toString().split(".")[1]||"").length,s=(t.toString().split(".")[1]||"").length,o=n>s?n:s,a=parseInt(e.toFixed(o).replace(".","")),u=parseInt(t.toFixed(o).replace(".",""));return a%u/Math.pow(10,o)}class Xs extends nt{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==ve.number){const a=this._getOrReturnCtx(t);return he(a,{code:re.invalid_type,expected:ve.number,received:a.parsedType}),He}let s;const o=new gn;for(const a of this._def.checks)a.kind==="int"?lt.isInteger(t.data)||(s=this._getOrReturnCtx(t,s),he(s,{code:re.invalid_type,expected:"integer",received:"float",message:a.message}),o.dirty()):a.kind==="min"?(a.inclusive?t.data<a.value:t.data<=a.value)&&(s=this._getOrReturnCtx(t,s),he(s,{code:re.too_small,minimum:a.value,type:"number",inclusive:a.inclusive,exact:!1,message:a.message}),o.dirty()):a.kind==="max"?(a.inclusive?t.data>a.value:t.data>=a.value)&&(s=this._getOrReturnCtx(t,s),he(s,{code:re.too_big,maximum:a.value,type:"number",inclusive:a.inclusive,exact:!1,message:a.message}),o.dirty()):a.kind==="multipleOf"?k2(t.data,a.value)!==0&&(s=this._getOrReturnCtx(t,s),he(s,{code:re.not_multiple_of,multipleOf:a.value,message:a.message}),o.dirty()):a.kind==="finite"?Number.isFinite(t.data)||(s=this._getOrReturnCtx(t,s),he(s,{code:re.not_finite,message:a.message}),o.dirty()):lt.assertNever(a);return{status:o.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,je.toString(n))}gt(t,n){return this.setLimit("min",t,!1,je.toString(n))}lte(t,n){return this.setLimit("max",t,!0,je.toString(n))}lt(t,n){return this.setLimit("max",t,!1,je.toString(n))}setLimit(t,n,s,o){return new Xs({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:s,message:je.toString(o)}]})}_addCheck(t){return new Xs({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:je.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:je.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:je.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:je.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:je.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:je.toString(n)})}finite(t){return this._addCheck({kind:"finite",message:je.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:je.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:je.toString(t)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}get isInt(){return!!this._def.checks.find(t=>t.kind==="int"||t.kind==="multipleOf"&<.isInteger(t.value))}get isFinite(){let t=null,n=null;for(const s of this._def.checks){if(s.kind==="finite"||s.kind==="int"||s.kind==="multipleOf")return!0;s.kind==="min"?(n===null||s.value>n)&&(n=s.value):s.kind==="max"&&(t===null||s.value<t)&&(t=s.value)}return Number.isFinite(n)&&Number.isFinite(t)}}Xs.create=e=>new Xs({checks:[],typeName:$e.ZodNumber,coerce:(e==null?void 0:e.coerce)||!1,...Je(e)});class Qs extends nt{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce)try{t.data=BigInt(t.data)}catch{return this._getInvalidInput(t)}if(this._getType(t)!==ve.bigint)return this._getInvalidInput(t);let s;const o=new gn;for(const a of this._def.checks)a.kind==="min"?(a.inclusive?t.data<a.value:t.data<=a.value)&&(s=this._getOrReturnCtx(t,s),he(s,{code:re.too_small,type:"bigint",minimum:a.value,inclusive:a.inclusive,message:a.message}),o.dirty()):a.kind==="max"?(a.inclusive?t.data>a.value:t.data>=a.value)&&(s=this._getOrReturnCtx(t,s),he(s,{code:re.too_big,type:"bigint",maximum:a.value,inclusive:a.inclusive,message:a.message}),o.dirty()):a.kind==="multipleOf"?t.data%a.value!==BigInt(0)&&(s=this._getOrReturnCtx(t,s),he(s,{code:re.not_multiple_of,multipleOf:a.value,message:a.message}),o.dirty()):lt.assertNever(a);return{status:o.value,value:t.data}}_getInvalidInput(t){const n=this._getOrReturnCtx(t);return he(n,{code:re.invalid_type,expected:ve.bigint,received:n.parsedType}),He}gte(t,n){return this.setLimit("min",t,!0,je.toString(n))}gt(t,n){return this.setLimit("min",t,!1,je.toString(n))}lte(t,n){return this.setLimit("max",t,!0,je.toString(n))}lt(t,n){return this.setLimit("max",t,!1,je.toString(n))}setLimit(t,n,s,o){return new Qs({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:s,message:je.toString(o)}]})}_addCheck(t){return new Qs({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:je.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:je.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:je.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:je.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:je.toString(n)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}}Qs.create=e=>{var t;return new Qs({checks:[],typeName:$e.ZodBigInt,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...Je(e)})};class sl extends nt{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==ve.boolean){const s=this._getOrReturnCtx(t);return he(s,{code:re.invalid_type,expected:ve.boolean,received:s.parsedType}),He}return bn(t.data)}}sl.create=e=>new sl({typeName:$e.ZodBoolean,coerce:(e==null?void 0:e.coerce)||!1,...Je(e)});class Li extends nt{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==ve.date){const a=this._getOrReturnCtx(t);return he(a,{code:re.invalid_type,expected:ve.date,received:a.parsedType}),He}if(isNaN(t.data.getTime())){const a=this._getOrReturnCtx(t);return he(a,{code:re.invalid_date}),He}const s=new gn;let o;for(const a of this._def.checks)a.kind==="min"?t.data.getTime()<a.value&&(o=this._getOrReturnCtx(t,o),he(o,{code:re.too_small,message:a.message,inclusive:!0,exact:!1,minimum:a.value,type:"date"}),s.dirty()):a.kind==="max"?t.data.getTime()>a.value&&(o=this._getOrReturnCtx(t,o),he(o,{code:re.too_big,message:a.message,inclusive:!0,exact:!1,maximum:a.value,type:"date"}),s.dirty()):lt.assertNever(a);return{status:s.value,value:new Date(t.data.getTime())}}_addCheck(t){return new Li({...this._def,checks:[...this._def.checks,t]})}min(t,n){return this._addCheck({kind:"min",value:t.getTime(),message:je.toString(n)})}max(t,n){return this._addCheck({kind:"max",value:t.getTime(),message:je.toString(n)})}get minDate(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t!=null?new Date(t):null}}Li.create=e=>new Li({checks:[],coerce:(e==null?void 0:e.coerce)||!1,typeName:$e.ZodDate,...Je(e)});class Tc extends nt{_parse(t){if(this._getType(t)!==ve.symbol){const s=this._getOrReturnCtx(t);return he(s,{code:re.invalid_type,expected:ve.symbol,received:s.parsedType}),He}return bn(t.data)}}Tc.create=e=>new Tc({typeName:$e.ZodSymbol,...Je(e)});class il extends nt{_parse(t){if(this._getType(t)!==ve.undefined){const s=this._getOrReturnCtx(t);return he(s,{code:re.invalid_type,expected:ve.undefined,received:s.parsedType}),He}return bn(t.data)}}il.create=e=>new il({typeName:$e.ZodUndefined,...Je(e)});class ol extends nt{_parse(t){if(this._getType(t)!==ve.null){const s=this._getOrReturnCtx(t);return he(s,{code:re.invalid_type,expected:ve.null,received:s.parsedType}),He}return bn(t.data)}}ol.create=e=>new ol({typeName:$e.ZodNull,...Je(e)});class jo extends nt{constructor(){super(...arguments),this._any=!0}_parse(t){return bn(t.data)}}jo.create=e=>new jo({typeName:$e.ZodAny,...Je(e)});class Ri extends nt{constructor(){super(...arguments),this._unknown=!0}_parse(t){return bn(t.data)}}Ri.create=e=>new Ri({typeName:$e.ZodUnknown,...Je(e)});class ps extends nt{_parse(t){const n=this._getOrReturnCtx(t);return he(n,{code:re.invalid_type,expected:ve.never,received:n.parsedType}),He}}ps.create=e=>new ps({typeName:$e.ZodNever,...Je(e)});class Rc extends nt{_parse(t){if(this._getType(t)!==ve.undefined){const s=this._getOrReturnCtx(t);return he(s,{code:re.invalid_type,expected:ve.void,received:s.parsedType}),He}return bn(t.data)}}Rc.create=e=>new Rc({typeName:$e.ZodVoid,...Je(e)});class Sr extends nt{_parse(t){const{ctx:n,status:s}=this._processInputParams(t),o=this._def;if(n.parsedType!==ve.array)return he(n,{code:re.invalid_type,expected:ve.array,received:n.parsedType}),He;if(o.exactLength!==null){const u=n.data.length>o.exactLength.value,c=n.data.length<o.exactLength.value;(u||c)&&(he(n,{code:u?re.too_big:re.too_small,minimum:c?o.exactLength.value:void 0,maximum:u?o.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:o.exactLength.message}),s.dirty())}if(o.minLength!==null&&n.data.length<o.minLength.value&&(he(n,{code:re.too_small,minimum:o.minLength.value,type:"array",inclusive:!0,exact:!1,message:o.minLength.message}),s.dirty()),o.maxLength!==null&&n.data.length>o.maxLength.value&&(he(n,{code:re.too_big,maximum:o.maxLength.value,type:"array",inclusive:!0,exact:!1,message:o.maxLength.message}),s.dirty()),n.common.async)return Promise.all([...n.data].map((u,c)=>o.type._parseAsync(new Ur(n,u,n.path,c)))).then(u=>gn.mergeArray(s,u));const a=[...n.data].map((u,c)=>o.type._parseSync(new Ur(n,u,n.path,c)));return gn.mergeArray(s,a)}get element(){return this._def.type}min(t,n){return new Sr({...this._def,minLength:{value:t,message:je.toString(n)}})}max(t,n){return new Sr({...this._def,maxLength:{value:t,message:je.toString(n)}})}length(t,n){return new Sr({...this._def,exactLength:{value:t,message:je.toString(n)}})}nonempty(t){return this.min(1,t)}}Sr.create=(e,t)=>new Sr({type:e,minLength:null,maxLength:null,exactLength:null,typeName:$e.ZodArray,...Je(t)});function vo(e){if(e instanceof At){const t={};for(const n in e.shape){const s=e.shape[n];t[n]=zr.create(vo(s))}return new At({...e._def,shape:()=>t})}else return e instanceof Sr?new Sr({...e._def,type:vo(e.element)}):e instanceof zr?zr.create(vo(e.unwrap())):e instanceof ei?ei.create(vo(e.unwrap())):e instanceof $r?$r.create(e.items.map(t=>vo(t))):e}class At extends nt{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const t=this._def.shape(),n=lt.objectKeys(t);return this._cached={shape:t,keys:n}}_parse(t){if(this._getType(t)!==ve.object){const h=this._getOrReturnCtx(t);return he(h,{code:re.invalid_type,expected:ve.object,received:h.parsedType}),He}const{status:s,ctx:o}=this._processInputParams(t),{shape:a,keys:u}=this._getCached(),c=[];if(!(this._def.catchall instanceof ps&&this._def.unknownKeys==="strip"))for(const h in o.data)u.includes(h)||c.push(h);const f=[];for(const h of u){const m=a[h],g=o.data[h];f.push({key:{status:"valid",value:h},value:m._parse(new Ur(o,g,o.path,h)),alwaysSet:h in o.data})}if(this._def.catchall instanceof ps){const h=this._def.unknownKeys;if(h==="passthrough")for(const m of c)f.push({key:{status:"valid",value:m},value:{status:"valid",value:o.data[m]}});else if(h==="strict")c.length>0&&(he(o,{code:re.unrecognized_keys,keys:c}),s.dirty());else if(h!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const h=this._def.catchall;for(const m of c){const g=o.data[m];f.push({key:{status:"valid",value:m},value:h._parse(new Ur(o,g,o.path,m)),alwaysSet:m in o.data})}}return o.common.async?Promise.resolve().then(async()=>{const h=[];for(const m of f){const g=await m.key,v=await m.value;h.push({key:g,value:v,alwaysSet:m.alwaysSet})}return h}).then(h=>gn.mergeObjectSync(s,h)):gn.mergeObjectSync(s,f)}get shape(){return this._def.shape()}strict(t){return je.errToObj,new At({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(n,s)=>{var o,a,u,c;const f=(u=(a=(o=this._def).errorMap)===null||a===void 0?void 0:a.call(o,n,s).message)!==null&&u!==void 0?u:s.defaultError;return n.code==="unrecognized_keys"?{message:(c=je.errToObj(t).message)!==null&&c!==void 0?c:f}:{message:f}}}:{}})}strip(){return new At({...this._def,unknownKeys:"strip"})}passthrough(){return new At({...this._def,unknownKeys:"passthrough"})}extend(t){return new At({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new At({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:$e.ZodObject})}setKey(t,n){return this.augment({[t]:n})}catchall(t){return new At({...this._def,catchall:t})}pick(t){const n={};return lt.objectKeys(t).forEach(s=>{t[s]&&this.shape[s]&&(n[s]=this.shape[s])}),new At({...this._def,shape:()=>n})}omit(t){const n={};return lt.objectKeys(this.shape).forEach(s=>{t[s]||(n[s]=this.shape[s])}),new At({...this._def,shape:()=>n})}deepPartial(){return vo(this)}partial(t){const n={};return lt.objectKeys(this.shape).forEach(s=>{const o=this.shape[s];t&&!t[s]?n[s]=o:n[s]=o.optional()}),new At({...this._def,shape:()=>n})}required(t){const n={};return lt.objectKeys(this.shape).forEach(s=>{if(t&&!t[s])n[s]=this.shape[s];else{let a=this.shape[s];for(;a instanceof zr;)a=a._def.innerType;n[s]=a}}),new At({...this._def,shape:()=>n})}keyof(){return D_(lt.objectKeys(this.shape))}}At.create=(e,t)=>new At({shape:()=>e,unknownKeys:"strip",catchall:ps.create(),typeName:$e.ZodObject,...Je(t)});At.strictCreate=(e,t)=>new At({shape:()=>e,unknownKeys:"strict",catchall:ps.create(),typeName:$e.ZodObject,...Je(t)});At.lazycreate=(e,t)=>new At({shape:e,unknownKeys:"strip",catchall:ps.create(),typeName:$e.ZodObject,...Je(t)});class al extends nt{_parse(t){const{ctx:n}=this._processInputParams(t),s=this._def.options;function o(a){for(const c of a)if(c.result.status==="valid")return c.result;for(const c of a)if(c.result.status==="dirty")return n.common.issues.push(...c.ctx.common.issues),c.result;const u=a.map(c=>new Zn(c.ctx.common.issues));return he(n,{code:re.invalid_union,unionErrors:u}),He}if(n.common.async)return Promise.all(s.map(async a=>{const u={...n,common:{...n.common,issues:[]},parent:null};return{result:await a._parseAsync({data:n.data,path:n.path,parent:u}),ctx:u}})).then(o);{let a;const u=[];for(const f of s){const h={...n,common:{...n.common,issues:[]},parent:null},m=f._parseSync({data:n.data,path:n.path,parent:h});if(m.status==="valid")return m;m.status==="dirty"&&!a&&(a={result:m,ctx:h}),h.common.issues.length&&u.push(h.common.issues)}if(a)return n.common.issues.push(...a.ctx.common.issues),a.result;const c=u.map(f=>new Zn(f));return he(n,{code:re.invalid_union,unionErrors:c}),He}}get options(){return this._def.options}}al.create=(e,t)=>new al({options:e,typeName:$e.ZodUnion,...Je(t)});const as=e=>e instanceof cl?as(e.schema):e instanceof _r?as(e.innerType()):e instanceof dl?[e.value]:e instanceof Js?e.options:e instanceof fl?lt.objectValues(e.enum):e instanceof hl?as(e._def.innerType):e instanceof il?[void 0]:e instanceof ol?[null]:e instanceof zr?[void 0,...as(e.unwrap())]:e instanceof ei?[null,...as(e.unwrap())]:e instanceof Em||e instanceof ml?as(e.unwrap()):e instanceof pl?as(e._def.innerType):[];class ed extends nt{_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==ve.object)return he(n,{code:re.invalid_type,expected:ve.object,received:n.parsedType}),He;const s=this.discriminator,o=n.data[s],a=this.optionsMap.get(o);return a?n.common.async?a._parseAsync({data:n.data,path:n.path,parent:n}):a._parseSync({data:n.data,path:n.path,parent:n}):(he(n,{code:re.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[s]}),He)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,n,s){const o=new Map;for(const a of n){const u=as(a.shape[t]);if(!u.length)throw new Error(`A discriminator value for key \`${t}\` could not be extracted from all schema options`);for(const c of u){if(o.has(c))throw new Error(`Discriminator property ${String(t)} has duplicate value ${String(c)}`);o.set(c,a)}}return new ed({typeName:$e.ZodDiscriminatedUnion,discriminator:t,options:n,optionsMap:o,...Je(s)})}}function ap(e,t){const n=ls(e),s=ls(t);if(e===t)return{valid:!0,data:e};if(n===ve.object&&s===ve.object){const o=lt.objectKeys(t),a=lt.objectKeys(e).filter(c=>o.indexOf(c)!==-1),u={...e,...t};for(const c of a){const f=ap(e[c],t[c]);if(!f.valid)return{valid:!1};u[c]=f.data}return{valid:!0,data:u}}else if(n===ve.array&&s===ve.array){if(e.length!==t.length)return{valid:!1};const o=[];for(let a=0;a<e.length;a++){const u=e[a],c=t[a],f=ap(u,c);if(!f.valid)return{valid:!1};o.push(f.data)}return{valid:!0,data:o}}else return n===ve.date&&s===ve.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}class ll extends nt{_parse(t){const{status:n,ctx:s}=this._processInputParams(t),o=(a,u)=>{if(ip(a)||ip(u))return He;const c=ap(a.value,u.value);return c.valid?((op(a)||op(u))&&n.dirty(),{status:n.value,value:c.data}):(he(s,{code:re.invalid_intersection_types}),He)};return s.common.async?Promise.all([this._def.left._parseAsync({data:s.data,path:s.path,parent:s}),this._def.right._parseAsync({data:s.data,path:s.path,parent:s})]).then(([a,u])=>o(a,u)):o(this._def.left._parseSync({data:s.data,path:s.path,parent:s}),this._def.right._parseSync({data:s.data,path:s.path,parent:s}))}}ll.create=(e,t,n)=>new ll({left:e,right:t,typeName:$e.ZodIntersection,...Je(n)});class $r extends nt{_parse(t){const{status:n,ctx:s}=this._processInputParams(t);if(s.parsedType!==ve.array)return he(s,{code:re.invalid_type,expected:ve.array,received:s.parsedType}),He;if(s.data.length<this._def.items.length)return he(s,{code:re.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),He;!this._def.rest&&s.data.length>this._def.items.length&&(he(s,{code:re.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),n.dirty());const a=[...s.data].map((u,c)=>{const f=this._def.items[c]||this._def.rest;return f?f._parse(new Ur(s,u,s.path,c)):null}).filter(u=>!!u);return s.common.async?Promise.all(a).then(u=>gn.mergeArray(n,u)):gn.mergeArray(n,a)}get items(){return this._def.items}rest(t){return new $r({...this._def,rest:t})}}$r.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new $r({items:e,typeName:$e.ZodTuple,rest:null,...Je(t)})};class ul extends nt{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:s}=this._processInputParams(t);if(s.parsedType!==ve.object)return he(s,{code:re.invalid_type,expected:ve.object,received:s.parsedType}),He;const o=[],a=this._def.keyType,u=this._def.valueType;for(const c in s.data)o.push({key:a._parse(new Ur(s,c,s.path,c)),value:u._parse(new Ur(s,s.data[c],s.path,c)),alwaysSet:c in s.data});return s.common.async?gn.mergeObjectAsync(n,o):gn.mergeObjectSync(n,o)}get element(){return this._def.valueType}static create(t,n,s){return n instanceof nt?new ul({keyType:t,valueType:n,typeName:$e.ZodRecord,...Je(s)}):new ul({keyType:xr.create(),valueType:t,typeName:$e.ZodRecord,...Je(n)})}}class Pc extends nt{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:s}=this._processInputParams(t);if(s.parsedType!==ve.map)return he(s,{code:re.invalid_type,expected:ve.map,received:s.parsedType}),He;const o=this._def.keyType,a=this._def.valueType,u=[...s.data.entries()].map(([c,f],h)=>({key:o._parse(new Ur(s,c,s.path,[h,"key"])),value:a._parse(new Ur(s,f,s.path,[h,"value"]))}));if(s.common.async){const c=new Map;return Promise.resolve().then(async()=>{for(const f of u){const h=await f.key,m=await f.value;if(h.status==="aborted"||m.status==="aborted")return He;(h.status==="dirty"||m.status==="dirty")&&n.dirty(),c.set(h.value,m.value)}return{status:n.value,value:c}})}else{const c=new Map;for(const f of u){const h=f.key,m=f.value;if(h.status==="aborted"||m.status==="aborted")return He;(h.status==="dirty"||m.status==="dirty")&&n.dirty(),c.set(h.value,m.value)}return{status:n.value,value:c}}}}Pc.create=(e,t,n)=>new Pc({valueType:t,keyType:e,typeName:$e.ZodMap,...Je(n)});class Mi extends nt{_parse(t){const{status:n,ctx:s}=this._processInputParams(t);if(s.parsedType!==ve.set)return he(s,{code:re.invalid_type,expected:ve.set,received:s.parsedType}),He;const o=this._def;o.minSize!==null&&s.data.size<o.minSize.value&&(he(s,{code:re.too_small,minimum:o.minSize.value,type:"set",inclusive:!0,exact:!1,message:o.minSize.message}),n.dirty()),o.maxSize!==null&&s.data.size>o.maxSize.value&&(he(s,{code:re.too_big,maximum:o.maxSize.value,type:"set",inclusive:!0,exact:!1,message:o.maxSize.message}),n.dirty());const a=this._def.valueType;function u(f){const h=new Set;for(const m of f){if(m.status==="aborted")return He;m.status==="dirty"&&n.dirty(),h.add(m.value)}return{status:n.value,value:h}}const c=[...s.data.values()].map((f,h)=>a._parse(new Ur(s,f,s.path,h)));return s.common.async?Promise.all(c).then(f=>u(f)):u(c)}min(t,n){return new Mi({...this._def,minSize:{value:t,message:je.toString(n)}})}max(t,n){return new Mi({...this._def,maxSize:{value:t,message:je.toString(n)}})}size(t,n){return this.min(t,n).max(t,n)}nonempty(t){return this.min(1,t)}}Mi.create=(e,t)=>new Mi({valueType:e,minSize:null,maxSize:null,typeName:$e.ZodSet,...Je(t)});class To extends nt{constructor(){super(...arguments),this.validate=this.implement}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==ve.function)return he(n,{code:re.invalid_type,expected:ve.function,received:n.parsedType}),He;function s(c,f){return Cc({data:c,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,Ec(),Ao].filter(h=>!!h),issueData:{code:re.invalid_arguments,argumentsError:f}})}function o(c,f){return Cc({data:c,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,Ec(),Ao].filter(h=>!!h),issueData:{code:re.invalid_return_type,returnTypeError:f}})}const a={errorMap:n.common.contextualErrorMap},u=n.data;if(this._def.returns instanceof Do){const c=this;return bn(async function(...f){const h=new Zn([]),m=await c._def.args.parseAsync(f,a).catch(b=>{throw h.addIssue(s(f,b)),h}),g=await Reflect.apply(u,this,m);return await c._def.returns._def.type.parseAsync(g,a).catch(b=>{throw h.addIssue(o(g,b)),h})})}else{const c=this;return bn(function(...f){const h=c._def.args.safeParse(f,a);if(!h.success)throw new Zn([s(f,h.error)]);const m=Reflect.apply(u,this,h.data),g=c._def.returns.safeParse(m,a);if(!g.success)throw new Zn([o(m,g.error)]);return g.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new To({...this._def,args:$r.create(t).rest(Ri.create())})}returns(t){return new To({...this._def,returns:t})}implement(t){return this.parse(t)}strictImplement(t){return this.parse(t)}static create(t,n,s){return new To({args:t||$r.create([]).rest(Ri.create()),returns:n||Ri.create(),typeName:$e.ZodFunction,...Je(s)})}}class cl extends nt{get schema(){return this._def.getter()}_parse(t){const{ctx:n}=this._processInputParams(t);return this._def.getter()._parse({data:n.data,path:n.path,parent:n})}}cl.create=(e,t)=>new cl({getter:e,typeName:$e.ZodLazy,...Je(t)});class dl extends nt{_parse(t){if(t.data!==this._def.value){const n=this._getOrReturnCtx(t);return he(n,{received:n.data,code:re.invalid_literal,expected:this._def.value}),He}return{status:"valid",value:t.data}}get value(){return this._def.value}}dl.create=(e,t)=>new dl({value:e,typeName:$e.ZodLiteral,...Je(t)});function D_(e,t){return new Js({values:e,typeName:$e.ZodEnum,...Je(t)})}class Js extends nt{constructor(){super(...arguments),La.set(this,void 0)}_parse(t){if(typeof t.data!="string"){const n=this._getOrReturnCtx(t),s=this._def.values;return he(n,{expected:lt.joinValues(s),received:n.parsedType,code:re.invalid_type}),He}if(kc(this,La)||P_(this,La,new Set(this._def.values)),!kc(this,La).has(t.data)){const n=this._getOrReturnCtx(t),s=this._def.values;return he(n,{received:n.data,code:re.invalid_enum_value,options:s}),He}return bn(t.data)}get options(){return this._def.values}get enum(){const t={};for(const n of this._def.values)t[n]=n;return t}get Values(){const t={};for(const n of this._def.values)t[n]=n;return t}get Enum(){const t={};for(const n of this._def.values)t[n]=n;return t}extract(t,n=this._def){return Js.create(t,{...this._def,...n})}exclude(t,n=this._def){return Js.create(this.options.filter(s=>!t.includes(s)),{...this._def,...n})}}La=new WeakMap;Js.create=D_;class fl extends nt{constructor(){super(...arguments),Ma.set(this,void 0)}_parse(t){const n=lt.getValidEnumValues(this._def.values),s=this._getOrReturnCtx(t);if(s.parsedType!==ve.string&&s.parsedType!==ve.number){const o=lt.objectValues(n);return he(s,{expected:lt.joinValues(o),received:s.parsedType,code:re.invalid_type}),He}if(kc(this,Ma)||P_(this,Ma,new Set(lt.getValidEnumValues(this._def.values))),!kc(this,Ma).has(t.data)){const o=lt.objectValues(n);return he(s,{received:s.data,code:re.invalid_enum_value,options:o}),He}return bn(t.data)}get enum(){return this._def.values}}Ma=new WeakMap;fl.create=(e,t)=>new fl({values:e,typeName:$e.ZodNativeEnum,...Je(t)});class Do extends nt{unwrap(){return this._def.type}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==ve.promise&&n.common.async===!1)return he(n,{code:re.invalid_type,expected:ve.promise,received:n.parsedType}),He;const s=n.parsedType===ve.promise?n.data:Promise.resolve(n.data);return bn(s.then(o=>this._def.type.parseAsync(o,{path:n.path,errorMap:n.common.contextualErrorMap})))}}Do.create=(e,t)=>new Do({type:e,typeName:$e.ZodPromise,...Je(t)});class _r extends nt{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===$e.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){const{status:n,ctx:s}=this._processInputParams(t),o=this._def.effect||null,a={addIssue:u=>{he(s,u),u.fatal?n.abort():n.dirty()},get path(){return s.path}};if(a.addIssue=a.addIssue.bind(a),o.type==="preprocess"){const u=o.transform(s.data,a);if(s.common.async)return Promise.resolve(u).then(async c=>{if(n.value==="aborted")return He;const f=await this._def.schema._parseAsync({data:c,path:s.path,parent:s});return f.status==="aborted"?He:f.status==="dirty"||n.value==="dirty"?Eo(f.value):f});{if(n.value==="aborted")return He;const c=this._def.schema._parseSync({data:u,path:s.path,parent:s});return c.status==="aborted"?He:c.status==="dirty"||n.value==="dirty"?Eo(c.value):c}}if(o.type==="refinement"){const u=c=>{const f=o.refinement(c,a);if(s.common.async)return Promise.resolve(f);if(f instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return c};if(s.common.async===!1){const c=this._def.schema._parseSync({data:s.data,path:s.path,parent:s});return c.status==="aborted"?He:(c.status==="dirty"&&n.dirty(),u(c.value),{status:n.value,value:c.value})}else return this._def.schema._parseAsync({data:s.data,path:s.path,parent:s}).then(c=>c.status==="aborted"?He:(c.status==="dirty"&&n.dirty(),u(c.value).then(()=>({status:n.value,value:c.value}))))}if(o.type==="transform")if(s.common.async===!1){const u=this._def.schema._parseSync({data:s.data,path:s.path,parent:s});if(!Di(u))return u;const c=o.transform(u.value,a);if(c instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:n.value,value:c}}else return this._def.schema._parseAsync({data:s.data,path:s.path,parent:s}).then(u=>Di(u)?Promise.resolve(o.transform(u.value,a)).then(c=>({status:n.value,value:c})):u);lt.assertNever(o)}}_r.create=(e,t,n)=>new _r({schema:e,typeName:$e.ZodEffects,effect:t,...Je(n)});_r.createWithPreprocess=(e,t,n)=>new _r({schema:t,effect:{type:"preprocess",transform:e},typeName:$e.ZodEffects,...Je(n)});class zr extends nt{_parse(t){return this._getType(t)===ve.undefined?bn(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}zr.create=(e,t)=>new zr({innerType:e,typeName:$e.ZodOptional,...Je(t)});class ei extends nt{_parse(t){return this._getType(t)===ve.null?bn(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}ei.create=(e,t)=>new ei({innerType:e,typeName:$e.ZodNullable,...Je(t)});class hl extends nt{_parse(t){const{ctx:n}=this._processInputParams(t);let s=n.data;return n.parsedType===ve.undefined&&(s=this._def.defaultValue()),this._def.innerType._parse({data:s,path:n.path,parent:n})}removeDefault(){return this._def.innerType}}hl.create=(e,t)=>new hl({innerType:e,typeName:$e.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...Je(t)});class pl extends nt{_parse(t){const{ctx:n}=this._processInputParams(t),s={...n,common:{...n.common,issues:[]}},o=this._def.innerType._parse({data:s.data,path:s.path,parent:{...s}});return rl(o)?o.then(a=>({status:"valid",value:a.status==="valid"?a.value:this._def.catchValue({get error(){return new Zn(s.common.issues)},input:s.data})})):{status:"valid",value:o.status==="valid"?o.value:this._def.catchValue({get error(){return new Zn(s.common.issues)},input:s.data})}}removeCatch(){return this._def.innerType}}pl.create=(e,t)=>new pl({innerType:e,typeName:$e.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...Je(t)});class Nc extends nt{_parse(t){if(this._getType(t)!==ve.nan){const s=this._getOrReturnCtx(t);return he(s,{code:re.invalid_type,expected:ve.nan,received:s.parsedType}),He}return{status:"valid",value:t.data}}}Nc.create=e=>new Nc({typeName:$e.ZodNaN,...Je(e)});const T2=Symbol("zod_brand");class Em extends nt{_parse(t){const{ctx:n}=this._processInputParams(t),s=n.data;return this._def.type._parse({data:s,path:n.path,parent:n})}unwrap(){return this._def.type}}class Al extends nt{_parse(t){const{status:n,ctx:s}=this._processInputParams(t);if(s.common.async)return(async()=>{const a=await this._def.in._parseAsync({data:s.data,path:s.path,parent:s});return a.status==="aborted"?He:a.status==="dirty"?(n.dirty(),Eo(a.value)):this._def.out._parseAsync({data:a.value,path:s.path,parent:s})})();{const o=this._def.in._parseSync({data:s.data,path:s.path,parent:s});return o.status==="aborted"?He:o.status==="dirty"?(n.dirty(),{status:"dirty",value:o.value}):this._def.out._parseSync({data:o.value,path:s.path,parent:s})}}static create(t,n){return new Al({in:t,out:n,typeName:$e.ZodPipeline})}}class ml extends nt{_parse(t){const n=this._def.innerType._parse(t),s=o=>(Di(o)&&(o.value=Object.freeze(o.value)),o);return rl(n)?n.then(o=>s(o)):s(n)}unwrap(){return this._def.innerType}}ml.create=(e,t)=>new ml({innerType:e,typeName:$e.ZodReadonly,...Je(t)});function L_(e,t={},n){return e?jo.create().superRefine((s,o)=>{var a,u;if(!e(s)){const c=typeof t=="function"?t(s):typeof t=="string"?{message:t}:t,f=(u=(a=c.fatal)!==null&&a!==void 0?a:n)!==null&&u!==void 0?u:!0,h=typeof c=="string"?{message:c}:c;o.addIssue({code:"custom",...h,fatal:f})}}):jo.create()}const R2={object:At.lazycreate};var $e;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})($e||($e={}));const P2=(e,t={message:`Input not instance of ${e.name}`})=>L_(n=>n instanceof e,t),M_=xr.create,O_=Xs.create,N2=Nc.create,A2=Qs.create,F_=sl.create,j2=Li.create,D2=Tc.create,L2=il.create,M2=ol.create,O2=jo.create,F2=Ri.create,I2=ps.create,V2=Rc.create,B2=Sr.create,z2=At.create,U2=At.strictCreate,$2=al.create,W2=ed.create,H2=ll.create,G2=$r.create,Z2=ul.create,K2=Pc.create,q2=Mi.create,Y2=To.create,X2=cl.create,Q2=dl.create,J2=Js.create,eF=fl.create,tF=Do.create,I0=_r.create,nF=zr.create,rF=ei.create,sF=_r.createWithPreprocess,iF=Al.create,oF=()=>M_().optional(),aF=()=>O_().optional(),lF=()=>F_().optional(),uF={string:e=>xr.create({...e,coerce:!0}),number:e=>Xs.create({...e,coerce:!0}),boolean:e=>sl.create({...e,coerce:!0}),bigint:e=>Qs.create({...e,coerce:!0}),date:e=>Li.create({...e,coerce:!0})},cF=He;var Ue=Object.freeze({__proto__:null,defaultErrorMap:Ao,setErrorMap:s2,getErrorMap:Ec,makeIssue:Cc,EMPTY_PATH:i2,addIssueToContext:he,ParseStatus:gn,INVALID:He,DIRTY:Eo,OK:bn,isAborted:ip,isDirty:op,isValid:Di,isAsync:rl,get util(){return lt},get objectUtil(){return sp},ZodParsedType:ve,getParsedType:ls,ZodType:nt,datetimeRegex:j_,ZodString:xr,ZodNumber:Xs,ZodBigInt:Qs,ZodBoolean:sl,ZodDate:Li,ZodSymbol:Tc,ZodUndefined:il,ZodNull:ol,ZodAny:jo,ZodUnknown:Ri,ZodNever:ps,ZodVoid:Rc,ZodArray:Sr,ZodObject:At,ZodUnion:al,ZodDiscriminatedUnion:ed,ZodIntersection:ll,ZodTuple:$r,ZodRecord:ul,ZodMap:Pc,ZodSet:Mi,ZodFunction:To,ZodLazy:cl,ZodLiteral:dl,ZodEnum:Js,ZodNativeEnum:fl,ZodPromise:Do,ZodEffects:_r,ZodTransformer:_r,ZodOptional:zr,ZodNullable:ei,ZodDefault:hl,ZodCatch:pl,ZodNaN:Nc,BRAND:T2,ZodBranded:Em,ZodPipeline:Al,ZodReadonly:ml,custom:L_,Schema:nt,ZodSchema:nt,late:R2,get ZodFirstPartyTypeKind(){return $e},coerce:uF,any:O2,array:B2,bigint:A2,boolean:F_,date:j2,discriminatedUnion:W2,effect:I0,enum:J2,function:Y2,instanceof:P2,intersection:H2,lazy:X2,literal:Q2,map:K2,nan:N2,nativeEnum:eF,never:I2,null:M2,nullable:rF,number:O_,object:z2,oboolean:lF,onumber:aF,optional:nF,ostring:oF,pipeline:iF,preprocess:sF,promise:tF,record:Z2,set:q2,strictObject:U2,string:M_,symbol:D2,transformer:I0,tuple:G2,undefined:L2,union:$2,unknown:F2,void:V2,NEVER:cF,ZodIssueCode:re,quotelessJson:r2,ZodError:Zn});const dF=Ue.object({type:Ue.string(),company_name:Ue.string().min(3,{message:"Название компании должно быть не менее 3 символов"}),representative_name:Ue.string().min(3,{message:"Имя представителя должно быть не менее 3 символов"}),job_title:Ue.string().min(3,{message:"Должность должна быть не менее 3 символов"}),participants_number:Ue.string().min(1,{message:"Укажите количество участников"}),country:Ue.string().min(3,{message:"Название страны должно быть не менее 3 символов"}),email_address:Ue.string().email({message:"Укажите корректный email"}),phone_number:Ue.string().min(8,{message:"Номер телефона должен быть не менее 8 символов"}),website:Ue.string().optional(),meeting_objective:Ue.string().min(3,{message:"Укажите цель встречи"}),proposal_description:Ue.string().optional(),government_agency:Ue.string().optional(),sector_industry:Ue.string().optional(),key_services:Ue.string().optional(),government_experience:Ue.string().optional(),preferred_meeting_datetime:Ue.string().optional(),meeting_mode:Ue.string().optional(),language_preference:Ue.string().optional(),technical_requirements:Ue.string().optional(),company_profile:Ue.custom(e=>e instanceof File,{message:"Выберите корректный файл"}).refine(e=>e&&["image/jpeg","image/png","application/pdf"].includes(e.type),{message:"Допускаются только файлы JPG, PNG и PDF"}).optional(),proposal_presentation:Ue.custom(e=>e instanceof File,{message:"Выберите корректный файл"}).refine(e=>e&&["image/jpeg","image/png","application/pdf"].includes(e.type),{message:"Допускаются только файлы JPG, PNG и PDF"}).optional(),relevant_certification:Ue.custom(e=>e instanceof File,{message:"Выберите корректный файл"}).refine(e=>e&&["image/jpeg","image/png","application/pdf"].includes(e.type),{message:"Допускаются только файлы JPG, PNG и PDF"}).optional()}),fF={type:"B2B",company_name:"",representative_name:"",job_title:"",participants_number:"",country:"",email_address:"",phone_number:"",website:"",meeting_objective:"",proposal_description:"",government_agency:"",sector_industry:"",key_services:"",government_experience:"",preferred_meeting_datetime:"",meeting_mode:"",language_preference:"",technical_requirements:""};function hF(e){const t=e+"CollectionProvider",[n,s]=wl(t),[o,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),u=b=>{const{scope:w,children:S}=b,C=it.useRef(null),E=it.useRef(new Map).current;return x.jsx(o,{scope:w,itemMap:E,collectionRef:C,children:S})};u.displayName=t;const c=e+"CollectionSlot",f=it.forwardRef((b,w)=>{const{scope:S,children:C}=b,E=a(c,S),R=or(w,E.collectionRef);return x.jsx(Pi,{ref:R,children:C})});f.displayName=c;const h=e+"CollectionItemSlot",m="data-radix-collection-item",g=it.forwardRef((b,w)=>{const{scope:S,children:C,...E}=b,R=it.useRef(null),N=or(w,R),I=a(h,S);return it.useEffect(()=>(I.itemMap.set(R,{ref:R,...E}),()=>void I.itemMap.delete(R))),x.jsx(Pi,{[m]:"",ref:N,children:C})});g.displayName=h;function v(b){const w=a(e+"CollectionConsumer",b);return it.useCallback(()=>{const C=w.collectionRef.current;if(!C)return[];const E=Array.from(C.querySelectorAll(`[${m}]`));return Array.from(w.itemMap.values()).sort((I,T)=>E.indexOf(I.ref.current)-E.indexOf(T.ref.current))},[w.collectionRef,w.itemMap])}return[{Provider:u,Slot:f,ItemSlot:g},v,s]}var pF=_.createContext(void 0);function I_(e){const t=_.useContext(pF);return e||t||"ltr"}var bh="rovingFocusGroup.onEntryFocus",mF={bubbles:!1,cancelable:!0},td="RovingFocusGroup",[lp,V_,gF]=hF(td),[yF,B_]=wl(td,[gF]),[vF,xF]=yF(td),z_=_.forwardRef((e,t)=>x.jsx(lp.Provider,{scope:e.__scopeRovingFocusGroup,children:x.jsx(lp.Slot,{scope:e.__scopeRovingFocusGroup,children:x.jsx(wF,{...e,ref:t})})}));z_.displayName=td;var wF=_.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:s,loop:o=!1,dir:a,currentTabStopId:u,defaultCurrentTabStopId:c,onCurrentTabStopIdChange:f,onEntryFocus:h,preventScrollOnEntryFocus:m=!1,...g}=e,v=_.useRef(null),b=or(t,v),w=I_(a),[S=null,C]=Sp({prop:u,defaultProp:c,onChange:f}),[E,R]=_.useState(!1),N=Ks(h),I=V_(n),T=_.useRef(!1),[F,z]=_.useState(0);return _.useEffect(()=>{const O=v.current;if(O)return O.addEventListener(bh,N),()=>O.removeEventListener(bh,N)},[N]),x.jsx(vF,{scope:n,orientation:s,dir:w,loop:o,currentTabStopId:S,onItemFocus:_.useCallback(O=>C(O),[C]),onItemShiftTab:_.useCallback(()=>R(!0),[]),onFocusableItemAdd:_.useCallback(()=>z(O=>O+1),[]),onFocusableItemRemove:_.useCallback(()=>z(O=>O-1),[]),children:x.jsx(_n.div,{tabIndex:E||F===0?-1:0,"data-orientation":s,...g,ref:b,style:{outline:"none",...e.style},onMouseDown:on(e.onMouseDown,()=>{T.current=!0}),onFocus:on(e.onFocus,O=>{const q=!T.current;if(O.target===O.currentTarget&&q&&!E){const te=new CustomEvent(bh,mF);if(O.currentTarget.dispatchEvent(te),!te.defaultPrevented){const pe=I().filter(De=>De.focusable),X=pe.find(De=>De.active),de=pe.find(De=>De.id===S),we=[X,de,...pe].filter(Boolean).map(De=>De.ref.current);W_(we,m)}}T.current=!1}),onBlur:on(e.onBlur,()=>R(!1))})})}),U_="RovingFocusGroupItem",$_=_.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:s=!0,active:o=!1,tabStopId:a,...u}=e,c=Xu(),f=a||c,h=xF(U_,n),m=h.currentTabStopId===f,g=V_(n),{onFocusableItemAdd:v,onFocusableItemRemove:b}=h;return _.useEffect(()=>{if(s)return v(),()=>b()},[s,v,b]),x.jsx(lp.ItemSlot,{scope:n,id:f,focusable:s,active:o,children:x.jsx(_n.span,{tabIndex:m?0:-1,"data-orientation":h.orientation,...u,ref:t,onMouseDown:on(e.onMouseDown,w=>{s?h.onItemFocus(f):w.preventDefault()}),onFocus:on(e.onFocus,()=>h.onItemFocus(f)),onKeyDown:on(e.onKeyDown,w=>{if(w.key==="Tab"&&w.shiftKey){h.onItemShiftTab();return}if(w.target!==w.currentTarget)return;const S=_F(w,h.orientation,h.dir);if(S!==void 0){if(w.metaKey||w.ctrlKey||w.altKey||w.shiftKey)return;w.preventDefault();let E=g().filter(R=>R.focusable).map(R=>R.ref.current);if(S==="last")E.reverse();else if(S==="prev"||S==="next"){S==="prev"&&E.reverse();const R=E.indexOf(w.currentTarget);E=h.loop?EF(E,R+1):E.slice(R+1)}setTimeout(()=>W_(E))}})})})});$_.displayName=U_;var SF={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function bF(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function _F(e,t,n){const s=bF(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(s))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(s)))return SF[s]}function W_(e,t=!1){const n=document.activeElement;for(const s of e)if(s===n||(s.focus({preventScroll:t}),document.activeElement!==n))return}function EF(e,t){return e.map((n,s)=>e[(t+s)%e.length])}var CF=z_,kF=$_;function TF(e){const[t,n]=_.useState(void 0);return Ha(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const s=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const a=o[0];let u,c;if("borderBoxSize"in a){const f=a.borderBoxSize,h=Array.isArray(f)?f[0]:f;u=h.inlineSize,c=h.blockSize}else u=e.offsetWidth,c=e.offsetHeight;n({width:u,height:c})});return s.observe(e,{box:"border-box"}),()=>s.unobserve(e)}else n(void 0)},[e]),t}function RF(e){const t=_.useRef({value:e,previous:e});return _.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var Cm="Radio",[PF,H_]=wl(Cm),[NF,AF]=PF(Cm),G_=_.forwardRef((e,t)=>{const{__scopeRadio:n,name:s,checked:o=!1,required:a,disabled:u,value:c="on",onCheck:f,form:h,...m}=e,[g,v]=_.useState(null),b=or(t,C=>v(C)),w=_.useRef(!1),S=g?h||!!g.closest("form"):!0;return x.jsxs(NF,{scope:n,checked:o,disabled:u,children:[x.jsx(_n.button,{type:"button",role:"radio","aria-checked":o,"data-state":q_(o),"data-disabled":u?"":void 0,disabled:u,value:c,...m,ref:b,onClick:on(e.onClick,C=>{o||f==null||f(),S&&(w.current=C.isPropagationStopped(),w.current||C.stopPropagation())})}),S&&x.jsx(jF,{control:g,bubbles:!w.current,name:s,value:c,checked:o,required:a,disabled:u,form:h,style:{transform:"translateX(-100%)"}})]})});G_.displayName=Cm;var Z_="RadioIndicator",K_=_.forwardRef((e,t)=>{const{__scopeRadio:n,forceMount:s,...o}=e,a=AF(Z_,n);return x.jsx(Sl,{present:s||a.checked,children:x.jsx(_n.span,{"data-state":q_(a.checked),"data-disabled":a.disabled?"":void 0,...o,ref:t})})});K_.displayName=Z_;var jF=e=>{const{control:t,checked:n,bubbles:s=!0,...o}=e,a=_.useRef(null),u=RF(n),c=TF(t);return _.useEffect(()=>{const f=a.current,h=window.HTMLInputElement.prototype,g=Object.getOwnPropertyDescriptor(h,"checked").set;if(u!==n&&g){const v=new Event("click",{bubbles:s});g.call(f,n),f.dispatchEvent(v)}},[u,n,s]),x.jsx("input",{type:"radio","aria-hidden":!0,defaultChecked:n,...o,tabIndex:-1,ref:a,style:{...e.style,...c,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function q_(e){return e?"checked":"unchecked"}var DF=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],km="RadioGroup",[LF,cI]=wl(km,[B_,H_]),Y_=B_(),X_=H_(),[MF,OF]=LF(km),Q_=_.forwardRef((e,t)=>{const{__scopeRadioGroup:n,name:s,defaultValue:o,value:a,required:u=!1,disabled:c=!1,orientation:f,dir:h,loop:m=!0,onValueChange:g,...v}=e,b=Y_(n),w=I_(h),[S,C]=Sp({prop:a,defaultProp:o,onChange:g});return x.jsx(MF,{scope:n,name:s,required:u,disabled:c,value:S,onValueChange:C,children:x.jsx(CF,{asChild:!0,...b,orientation:f,dir:w,loop:m,children:x.jsx(_n.div,{role:"radiogroup","aria-required":u,"aria-orientation":f,"data-disabled":c?"":void 0,dir:w,...v,ref:t})})})});Q_.displayName=km;var J_="RadioGroupItem",eE=_.forwardRef((e,t)=>{const{__scopeRadioGroup:n,disabled:s,...o}=e,a=OF(J_,n),u=a.disabled||s,c=Y_(n),f=X_(n),h=_.useRef(null),m=or(t,h),g=a.value===o.value,v=_.useRef(!1);return _.useEffect(()=>{const b=S=>{DF.includes(S.key)&&(v.current=!0)},w=()=>v.current=!1;return document.addEventListener("keydown",b),document.addEventListener("keyup",w),()=>{document.removeEventListener("keydown",b),document.removeEventListener("keyup",w)}},[]),x.jsx(kF,{asChild:!0,...c,focusable:!u,active:g,children:x.jsx(G_,{disabled:u,required:a.required,checked:g,...f,...o,name:a.name,ref:m,onCheck:()=>a.onValueChange(o.value),onKeyDown:on(b=>{b.key==="Enter"&&b.preventDefault()}),onFocus:on(o.onFocus,()=>{var b;v.current&&((b=h.current)==null||b.click())})})})});eE.displayName=J_;var FF="RadioGroupIndicator",IF=_.forwardRef((e,t)=>{const{__scopeRadioGroup:n,...s}=e,o=X_(n);return x.jsx(K_,{...o,...s,ref:t})});IF.displayName=FF;var tE=Q_,nE=eE;const gl=_.forwardRef(({className:e,...t},n)=>x.jsx(tE,{className:Ye("grid gap-2",e),...t,ref:n}));gl.displayName=tE.displayName;const us=_.forwardRef(({className:e,...t},n)=>x.jsx(nE,{ref:n,className:Ye(t.checked?"border-primary after:bg-opacity-1":"border-on_surface bg-transparent after:bg-opacity-0","size-5 rounded-full border-[2px] after:size-[9px] after:bg-primary before:scale-0 hover:before:scale-100 before:size-10 before:rounded-full before:transition-all before:absolute before:-top-3 before:-left-3 before:bg-on_surface/[8%] duration-300 after:rounded-full flex relative items-center justify-center text-primary focus:outline-none focus-visible:ring-1 focus-visible:ring-ring transition-all disabled:cursor-not-allowed disabled:opacity-50",e),...t}));us.displayName=nE.displayName;const VF=({handleNext:e})=>{const{control:t,formState:n}=Bi();return x.jsxs(fs.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0,y:"100%",transition:{duration:.2}},className:"w-full",children:[x.jsx("h3",{className:"h2 mb-8",children:"Информация об экспоненте:"}),x.jsxs("div",{className:"flex flex-col gap-8",children:[x.jsx(Qa,{defaultValue:1,control:t,name:"type",render:({field:s})=>x.jsxs(jn,{className:"space-y-3",children:[x.jsx(Dn,{className:"text-xl",children:"Тип:"}),x.jsx(Ln,{children:x.jsxs(gl,{onValueChange:s.onChange,defaultValue:s.value,className:"flex flex-col space-y-4",children:[x.jsxs(jn,{className:"flex items-center space-x-3 space-y-0",children:[x.jsx(Ln,{children:x.jsx(us,{value:"B2B",checked:s.value==="B2B"})}),x.jsx(Dn,{className:"text-base",children:"B2B"})]}),x.jsxs(jn,{className:"flex items-center space-x-3 space-y-0",children:[x.jsx(Ln,{children:x.jsx(us,{value:"B2G",checked:s.value==="B2G"})}),x.jsx(Dn,{className:"text-base",children:"B2G"})]})]})})]})}),x.jsx(qe,{control:t,name:"company_name",error:n.errors.company_name,placeholder:"",label:"Название компании/организации"}),x.jsx(qe,{control:t,name:"representative_name",error:n.errors.representative_name,placeholder:"",label:"Имя представителя"}),x.jsx(qe,{control:t,name:"job_title",error:n.errors.job_title,placeholder:"",label:"Название должности/позиция"}),x.jsx(qe,{control:t,name:"participants_number",error:n.errors.participants_number,placeholder:"",label:"Количество участников"}),x.jsx(qe,{control:t,name:"country",error:n.errors.country,placeholder:"",label:"Страна"}),x.jsx(qe,{control:t,name:"email_address",error:n.errors.email_address,placeholder:"",label:"E-mail адрес"}),x.jsx(qe,{control:t,name:"phone_number",error:n.errors.phone_number,placeholder:"",label:"Номер телефона"}),x.jsx(qe,{control:t,name:"website",placeholder:"",label:"Вебсайт"})]}),x.jsx(Jt,{variant:"secondary",type:"button",onClick:e,className:"w-full mt-10",children:"Далее"})]})},BF=({handleNext:e})=>{const{control:t,formState:n}=Bi();return x.jsxs(fs.div,{initial:{opacity:0,y:-100},animate:{opacity:1,y:0,transition:{delay:.5,duration:.3}},exit:{opacity:0,y:100},children:[x.jsx("h3",{className:"h2 mb-8",children:"Цели встречи:"}),x.jsxs("div",{className:"flex flex-col gap-8",children:[x.jsx(qe,{control:t,name:"meeting_objective",error:n.errors.meeting_objective,placeholder:"",label:"Основная цель встречи"}),x.jsx(qe,{control:t,name:"proposal_description",error:n.errors.proposal_description,placeholder:"",label:"Краткое описание вашего предложения/проекта/запроса"}),x.jsx(qe,{control:t,name:"government_agency",error:n.errors.government_agency,placeholder:"",label:"Соответствующее государственное учреждение/департамент"}),x.jsx("h3",{className:"h2 mt-4",children:"Информация о компании/организации:"}),x.jsx(qe,{control:t,name:"sector_industry",error:n.errors.sector_industry,placeholder:"",label:"Отраслевая промышленность"}),x.jsx(qe,{control:t,name:"key_services",error:n.errors.key_services,placeholder:"",label:"Ключевые услуги/продукты"}),x.jsx(qe,{control:t,name:"government_experience",error:n.errors.government_experience,placeholder:"",label:"Предыдущий опыт работы с правительствами (если применимо)"})]}),x.jsx(Jt,{variant:"secondary",type:"button",onClick:e,className:"w-full mt-10",children:"Далее"})]})},zF=()=>{const{control:e,formState:t}=Bi();return x.jsxs(fs.div,{initial:{opacity:0,y:-100},animate:{opacity:1,y:0,transition:{delay:.5,duration:.3}},transition:{duration:1},children:[x.jsx("h3",{className:"h2 mb-8",children:"Логистика встречи:"}),x.jsxs("div",{className:"flex flex-col gap-6",children:[x.jsx(qe,{control:e,name:"preferred_meeting_datetime",error:t.errors.preferred_meeting_datetime,placeholder:"",label:"Предпочтительная дата и время "}),x.jsx(qe,{control:e,name:"preferred_mode",error:t.errors.preferred_mode,placeholder:"",label:"Предпочтительный способ проведения встречи (лично, виртуально (через zoom/ teams/другое), гибридный)"}),x.jsx(qe,{control:e,name:"language_preference",error:t.errors.language_preference,placeholder:"",label:"Предпочитаемый язык (английский, туркменский, русский, другой)"}),x.jsx(qe,{control:e,name:"additional_technical",error:t.errors.additional_technical,placeholder:"",label:"Дополнительные технические или логистические требования (например, аудио-видео оборудование, переводчики и т.д.)"}),x.jsx("h3",{className:"h2 mt-4",children:"Название компании/организации"}),x.jsx(qe,{control:e,name:"sector_industry",error:t.errors.sector_industry,placeholder:"",label:"Sector Industry"}),x.jsx(qe,{control:e,name:"key_services",error:t.errors.key_services,placeholder:"",label:"Key Services/Products"}),x.jsx(qe,{control:e,name:"government_experience",error:t.errors.government_experience,placeholder:"",label:"Previous Experience working with Governments (if applicable)"})]}),x.jsxs("div",{className:"flex flex-col gap-8",children:[x.jsxs("div",{className:"",children:[x.jsx("h3",{className:"h2 mt-10",children:"Attachments"}),x.jsx("h5",{className:"text-on_surface_v",children:"(Please attach the following documents as applicable)"})]}),x.jsx(qe,{control:e,name:"company_profile",label:"Company/organization profile",type:"file",textDark:!0}),x.jsx(qe,{control:e,name:"proposal_presentation",label:"Proposal presentation",type:"file",textDark:!0}),x.jsx(qe,{control:e,name:"relevant_certification",label:"Relevant certification/licenses",type:"file",textDark:!0})]}),x.jsx(Jt,{disabled:t.isSubmitting,type:"submit",className:"w-full mt-10",children:t.isSubmitting?x.jsx(Tp,{className:"animate-spin"}):"Отправить"})]})},UF=({stage:e,setStage:t,success:n,setSuccess:s})=>{const o=Uc({resolver:Zc(dF),defaultValues:fF,mode:"onChange"}),a=f=>{switch(f){case 1:return["type","company_name","representative_name","job_title","participants_number","country","email_address","phone_number","website"];case 2:return["meeting_objective","proposal_description","government_agency","sector_industry","key_services","government_experience"];case 3:return["preferred_meeting_datetime","meeting_mode","language_preference","technical_requirements","company_profile","proposal_presentation","relevant_certification"];default:return[]}},u=async()=>{const f=a(e);await o.trigger(f)&&t(m=>m+1)},c=async f=>{try{const h=new FormData;Object.entries(f).forEach(([g,v])=>{v instanceof File?(console.log(`Добавляем файл: ${g}`,v),h.append(g,v)):v!==void 0&&(console.log(`Добавляем поле: ${g}`,v),h.append(g,v))}),(await Lt.post("https://turkmentextile.turkmenexpo.com/app/api/v1/form",h,{headers:{"Content-Type":"multipart/form-data"}})).status===201&&(console.log("Форма успешно отправлена!"),s(!0))}catch(h){console.error("Ошибка при отправке B2B формы:",h)}};return x.jsx($c,{...o,children:x.jsx("form",{onSubmit:o.handleSubmit(c),children:x.jsxs("div",{className:"relative",children:[x.jsx(Oa,{children:e===1&&x.jsx(VF,{handleNext:u})}),x.jsx(Oa,{children:e===2&&x.jsx(BF,{handleNext:u})}),x.jsx(Oa,{children:e===3&&n===!1&&x.jsx(zF,{})}),n&&x.jsx(mm,{})]})})})},nd=e=>{_.useEffect(()=>{window.scrollTo({behavior:"smooth",top:0})},[e])},$F=()=>{nd();const[e,t]=_.useState(1),[n,s]=_.useState(!1);return x.jsxs("div",{className:"pb-[120px]",children:[x.jsx(Gc,{title:"B2B | B2G встречи"}),!n&&e!==0&&x.jsx(oL,{stage:e}),x.jsx("div",{className:"max-w-[808px] md:mx-auto mx-5",children:x.jsx(UF,{success:n,setSuccess:s,stage:e,setStage:t})})]})},WF=()=>x.jsxs("div",{className:"flex flex-col gap-20",children:[x.jsx(gM,{}),x.jsx(vM,{}),x.jsx(xM,{}),x.jsx(RL,{}),x.jsx(AL,{})]}),HF=({className:e})=>(nd(),x.jsxs("div",{className:Ye("",e),children:[x.jsx(Gc,{title:"О выставке"}),x.jsxs(On,{className:"flex flex-col md:my-20 my-10 gap-16",children:[x.jsxs("div",{className:"flex flex-col gap-6",children:[x.jsx("h3",{className:"h2",children:"Выставка-ярмарка «TurkmenTextile Expo 2025» "}),x.jsxs("p",{className:"p",children:["Глобальная выставка и ярмарка текстиля и моды, которая объединит мировых лидеров отрасли, инновационных производителей и творческих дизайнеров. Наша миссия — укрепить позиции Туркменистана как ключевого центра текстильной и модной индустрии. Выставка станет платформой для изучения устойчивых практик, современных технологий и новых дизайнерских решений, вдохновляя на развитие индустрии."," "]})]}),x.jsxs("div",{className:"flex flex-col gap-6",children:[x.jsx("h3",{className:"h2",children:"Перспективы"}),x.jsx("h4",{className:"p",children:"TurkmenTextile Expo-2025 открывает широкие перспективы для участников:"}),x.jsxs("ol",{type:"1",className:"list-decimal pl-8 flex flex-col gap-3 p",children:[x.jsx("li",{children:"Расширение деловых связей — уникальная возможность для B2B и B2G-встреч, заключения торговых соглашений и установления стратегических партнёрств."}),x.jsx("li",{children:"Доступ к инновациям — знакомство с передовыми технологиями текстильного производства, экологичными материалами и трендами устойчивого дизайна."}),x.jsx("li",{children:"Повышение экспортного потенциала — участие в форумах и семинарах, посвящённых продвижению продукции на новые рынки."}),x.jsx("li",{children:"Обучение и развитие — мастер-классы и лекции от ведущих мировых экспертов помогут участникам углубить знания и освоить современные подходы в области текстильной индустрии."}),x.jsx("li",{children:"Культурный обмен — возможность продемонстрировать богатое текстильное наследие Туркменистана и вдохновиться культурными традициями других стран."})]})]}),x.jsxs("div",{className:"flex flex-col gap-6",children:[x.jsx("h3",{className:"h2",children:"Направления"}),x.jsx("h4",{className:"p",children:"Выставка охватывает ключевые аспекты текстильной и модной индустрии, включая:"}),x.jsxs("ul",{className:"list-disc pl-8 flex flex-col gap-3 p",children:[x.jsx("li",{children:"Традиционный текстиль: экспозиции, шёлковым изделиям и ремесленным техникам Туркменистана."}),x.jsx("li",{children:"Инновационные материалы и технологии: зоны, где демонстрируются устойчивые материалы, 3D-ткацкие технологии и экологически чистые красители."}),x.jsx("li",{children:"Модные показы: ежедневные подиумные шоу с участием местных и международных дизайнеров, включая зарубежных модельеров."}),x.jsx("li",{children:"Маркетплейс для переговоров: пространство для встреч между экспортёрами и импортёрами."}),x.jsx("li",{children:"Оборудование для текстильной промышленности: современные технологии и машины для повышения эффективности и конкурентоспособности."}),x.jsx("li",{children:"Образовательные зоны: интерактивные экспозиции и семинары на тему устойчивости, дизайна и переработки."})]}),x.jsx("p",{className:"text-18",children:"Участники смогут обсудить современные технологии, лучшие практики и эффективные стратегии для устойчивого бизнеса."})]}),x.jsxs("div",{className:"flex flex-col gap-6",children:[x.jsx("h3",{className:"h2",children:"Партнёрство и спонсорство"}),x.jsx("h4",{className:"p",children:"TurkmenTextile Expo-2025 приглашает к сотрудничеству международные организации, ассоциации и бренды для продвижения своих продуктов и услуг. Партнёры получат:"}),x.jsxs("ul",{className:"list-disc pl-8 flex flex-col gap-3 p",children:[x.jsx("li",{children:"Признание на международной арене — участие в масштабном событии, привлекающем ведущих игроков текстильной и модной индустрий."}),x.jsx("li",{children:"Рекламные возможности — интеграция бренда в маркетинговую кампанию выставки, включая digital и офлайн-каналы."}),x.jsx("li",{children:"Вклад в развитие индустрии — поддержка инноваций, устойчивых практик и культурного наследия."})]})]})]}),x.jsx(PL,{}),x.jsx(jL,{}),x.jsx(DL,{}),x.jsx(LL,{})]})),GF=Ue.object({company_name:Ue.string().min(3,{message:"Название компании должно быть не менее 3 символов"}),rep_name:Ue.string().min(3,{message:"Имя представителя должно быть не менее 3 символов"}),job_title:Ue.string().min(3,{message:"Должность должна быть не менее 3 символов"}),country:Ue.string().min(3,{message:"Название страны должно быть не менее 3 символов"}),email:Ue.string().email({message:"Укажите корректный email"}),phone:Ue.string().min(8,{message:"Номер телефона должен быть не менее 8 символов"}),website:Ue.string().optional(),visa_support:Ue.string().optional()}),ZF={company_name:"",rep_name:"",job_title:"",country:"",email:"",phone:"",website:"",visa_support:""},Tm="https://turkmentextile.turkmenexpo.com/app/api/v1",KF=async e=>(await Lt.post(`${Tm}/book_stand_form`,e)).status===201,qF=async e=>(await Lt.post(`${Tm}/become_sponsor_form`,e)).status===201,YF=async e=>(await Lt.post(`${Tm}/contact_form`,e)).status===201,XF=({className:e})=>{nd();const[t,n]=_.useState(!1),s=Uc({resolver:Zc(GF),defaultValues:ZF}),o=async u=>{try{await qF(u)&&n(!0)}catch(c){console.error("POST sponsor error",c)}},{errors:a}=s.formState;return x.jsxs("div",{className:e,children:[x.jsx(Gc,{title:"Стать спонсором"}),x.jsx(Oa,{children:!t&&x.jsx($c,{...s,children:x.jsxs(fs.form,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:"max-w-[828px] mx-auto px-5 md:mt-20 mt-10 mb-20 md:mb-[120px] flex flex-col gap-8",onSubmit:s.handleSubmit(o),children:[x.jsx(qe,{label:"Название компании/организации",name:"company_name",control:s.control,error:a.company_name}),x.jsx(qe,{label:"Имя представителя",name:"rep_name",control:s.control,error:a.rep_name}),x.jsx(qe,{label:"Название должности/позиция",name:"job_title",control:s.control,error:a.job_title}),x.jsx(qe,{label:"Страна",name:"country",control:s.control,error:a.country}),x.jsx(qe,{label:"E-mail адрес",name:"email",control:s.control,error:a.email}),x.jsx(qe,{label:"Номер телефона",name:"phone",control:s.control,error:a.phone}),x.jsx(qe,{label:"Вебсайт",name:"website",control:s.control}),x.jsx(Qa,{control:s.control,name:"visa_support",render:({field:u})=>x.jsxs(jn,{className:"space-y-5",children:[x.jsx(Dn,{className:"text-xl",children:"Визовая поддержка:"}),x.jsx(Ln,{children:x.jsxs(gl,{onValueChange:u.onChange,defaultValue:u.value,className:"flex flex-col space-y-4 ml-3",children:[x.jsxs(jn,{className:"flex items-center space-x-5 space-y-0",children:[x.jsx(Ln,{children:x.jsx(us,{value:"yes",checked:u.value==="yes"})}),x.jsx(Dn,{className:"text-base",children:"Да"})]}),x.jsxs(jn,{className:"flex items-center space-x-5 space-y-0 ",children:[x.jsx(Ln,{children:x.jsx(us,{value:"no",checked:u.value==="no"})}),x.jsx(Dn,{className:"text-base",children:"Нет"})]})]})})]})}),x.jsx(Jt,{disabled:s.formState.isSubmitting,className:"mt-5",children:s.formState.isSubmitting?x.jsx(Tp,{className:"animate-spin"}):"Отправить"})]})})}),t&&x.jsx(mm,{delay:.3})]})},QF=Ue.object({space_package:Ue.string(),company_name:Ue.string().min(3,{message:"Название компании должно быть не менее 3 символов"}),rep_name:Ue.string().min(3,{message:"Имя представителя должно быть не менее 3 символов"}),job_title:Ue.string().min(3,{message:"Должность должна быть не менее 3 символов"}),participants_number:Ue.preprocess(e=>Number(e),Ue.number().min(1,"Укажите количество участников")),country:Ue.string().min(3,{message:"Название страны должно быть не менее 3 символов"}),email:Ue.string().email({message:"Укажите корректный email"}),phone:Ue.string().min(8,{message:"Номер телефона должен быть не менее 8 символов"}),website:Ue.string().optional(),visa_support:Ue.string().optional()}),JF={space_package:"space",company_name:"",rep_name:"",job_title:"",participants_number:1,country:"",email:"",phone:"",website:"",visa_support:""},eI=({className:e})=>{const[t,n]=_.useState(!1),s=Uc({resolver:Zc(QF),defaultValues:JF}),o=async u=>{await KF(u)&&n(!0)};_.useEffect(()=>{window.scrollTo({behavior:"smooth",top:0})},[status]);const{errors:a}=s.formState;return x.jsxs("div",{className:e,children:[x.jsx(Gc,{title:"Забронировать стенд"}),x.jsx(Oa,{children:!t&&x.jsx($c,{...s,children:x.jsxs(fs.form,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:"max-w-[828px] px-5 mx-auto mt-20 mb-[120px] flex flex-col gap-8",onSubmit:s.handleSubmit(o),children:[x.jsx(Qa,{control:s.control,name:"space_package",render:({field:u})=>x.jsxs(jn,{className:"space-y-5",children:[x.jsx(Dn,{className:"text-xl",children:"Выберите один из вариантов:"}),x.jsx(Ln,{children:x.jsxs(gl,{onValueChange:u.onChange,defaultValue:u.value,className:"flex flex-col space-y-4 ml-3",children:[x.jsxs(jn,{className:"flex items-center space-x-5 space-y-0",children:[x.jsx(Ln,{children:x.jsx(us,{value:"space",checked:u.value==="space"})}),x.jsx(Dn,{className:"text-base",children:"Только стенд"})]}),x.jsxs(jn,{className:"flex items-center space-x-5 space-y-0",children:[x.jsx(Ln,{children:x.jsx(us,{value:"package",checked:u.value==="package"})}),x.jsx(Dn,{className:"text-base",children:"Комплексное предложение"})]})]})})]})}),x.jsx(qe,{label:"Название компании/организации",name:"company_name",control:s.control,error:a.company_name}),x.jsx(qe,{label:"Имя представителя",name:"rep_name",control:s.control,error:a.rep_name}),x.jsx(qe,{label:"Название должности/позиция",name:"job_title",control:s.control,error:a.job_title}),x.jsx(qe,{label:"Количество участников",type:"number",name:"participants_number",control:s.control,error:a.participants_number}),x.jsx(qe,{label:"Страна",name:"country",control:s.control,error:a.country}),x.jsx(qe,{label:"E-mail адрес",name:"email",control:s.control,error:a.email}),x.jsx(qe,{label:"Номер телефона",name:"phone",control:s.control,error:a.phone}),x.jsx(qe,{label:"Вебсайт",name:"website",control:s.control}),x.jsx(Qa,{control:s.control,name:"visa_support",render:({field:u})=>x.jsxs(jn,{className:"space-y-5",children:[x.jsx(Dn,{className:"text-xl",children:"Визовая поддержка:"}),x.jsx(Ln,{children:x.jsxs(gl,{onValueChange:u.onChange,defaultValue:u.value,className:"flex flex-col space-y-4 ml-3",children:[x.jsxs(jn,{className:"flex items-center space-x-5 space-y-0",children:[x.jsx(Ln,{children:x.jsx(us,{value:"yes",checked:u.value==="yes"})}),x.jsx(Dn,{className:"text-base",children:"Да"})]}),x.jsxs(jn,{className:"flex items-center space-x-5 space-y-0 ",children:[x.jsx(Ln,{children:x.jsx(us,{value:"no",checked:u.value==="no"})}),x.jsx(Dn,{className:"text-base",children:"Нет"})]})]})})]})}),x.jsx(Jt,{disabled:s.formState.isSubmitting,className:"mt-5",children:s.formState.isSubmitting?x.jsx(Tp,{className:"animate-spin"}):"Отправить"})]})})}),t&&x.jsx(mm,{delay:.3})]})},tI=Ue.object({name:Ue.string().min(2,"error"),email:Ue.string().email(),phone:Ue.string().min(8,"error"),company:Ue.string().min(2,"error"),msg:Ue.string().min(5,"error")}),nI={name:"",email:"",phone:"",company:"",msg:""},rI=({className:e})=>{const[t,n]=_.useState(!1),s=Uc({resolver:Zc(tI),defaultValues:nI});async function o(u){try{const c=await YF(u);n(c)}catch(c){console.error("POST contact",c)}}const{errors:a}=s.formState;return x.jsx("div",{className:Ye("bg-primary rounded-[8px] py-8 px-6 ",e),children:x.jsx($c,{...s,children:x.jsxs("form",{onSubmit:s.handleSubmit(o),children:[x.jsx("h2",{className:"h2 !text-on_primary lg:mb-8 mb-6",children:"Связаться с нами"}),x.jsxs("div",{className:"flex flex-col gap-8",children:[x.jsx(qe,{onPrimary:!0,name:"name",control:s.control,label:"Имя",error:a.name}),x.jsxs("div",{className:"flex flex-col lg:flex-row gap-6",children:[x.jsx(qe,{onPrimary:!0,name:"email",control:s.control,label:"E-mail",error:a.email}),x.jsx(qe,{onPrimary:!0,name:"phone",control:s.control,label:"Телефон",error:a.phone})]}),x.jsx(qe,{onPrimary:!0,name:"company",control:s.control,label:"Название компании",error:a.name}),x.jsx(qe,{onPrimary:!0,textArea:!0,name:"msg",label:"Сообщение",control:s.control,error:a.msg}),x.jsx(Jt,{disabled:s.formState.isSubmitting||t,className:"w-full h-12 overflow-hidden",variant:"secondary",children:t?"Форма отправлена":s.formState.isSubmitting?x.jsx(LR,{className:"animate-spin text-white"}):"Отправить"})]})]})})})},sI=()=>(nd(),x.jsxs("div",{className:"flex flex-col gap-20 pt-10 md:pt-20",children:[x.jsx(On,{children:x.jsxs("section",{className:"grid grid-cols-1 lg:grid-cols-2 gap-20 lg:gap-6",children:[x.jsx(rI,{}),x.jsxs("div",{className:"p-6 bg-bg_surface_container rounded-[8px]",children:[x.jsx("h2",{className:"h2 mb-10 xl:mb-8",children:"Контакты"}),x.jsxs("div",{className:"flex flex-col gap-20",children:[x.jsxs("div",{className:"flex items-center gap-6",children:[x.jsx("img",{src:"/contacts/map.svg",alt:"address"}),x.jsxs("div",{children:[x.jsx("h3",{className:"text-xl mb-2",children:"Адрес офиса:"}),x.jsx("address",{className:"text-base normal not-italic",children:"744000, г. Ашхабад, просп. Битарап Туркменистан, 183"})]})]}),x.jsxs("div",{className:"flex items-center gap-6",children:[x.jsx("img",{src:"/contacts/phone.svg",alt:"phone"}),x.jsxs("div",{children:[x.jsx("h3",{className:"text-xl mb-2",children:"Телефон:"}),x.jsx("h4",{className:"text-base normal",children:"+99371871812; 99363719588"})]})]}),x.jsxs("div",{className:"flex items-center gap-6",children:[x.jsx("img",{src:"/contacts/fax.svg",alt:"fax"}),x.jsxs("div",{children:[x.jsx("h3",{className:"text-xl mb-2",children:"Факс:"}),x.jsx("h4",{className:"text-base normal",children:"+99312454111"})]})]}),x.jsxs("div",{className:"flex items-center gap-6",children:[x.jsx("img",{src:"/contacts/email.svg",alt:"email"}),x.jsxs("div",{children:[x.jsx("h3",{className:"text-xl mb-2",children:"E-mail:"}),x.jsx("h4",{className:"text-base normal",children:"contact@turkmenexpo.com"})]})]})]})]})]})}),x.jsx("section",{className:"relative w-full h-[300px] sm:h-[350px] md:h-[400px] lg:h-[600px]",children:x.jsx("iframe",{src:"https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d1443.0869986358682!2d58.35620779177324!3d37.921200202365405!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x3f7001fd7afd2a95%3A0x9ce9dca95ea4b87e!2z0JDQstC40LDQutCw0YHRgdCwINCw0LLQuNCw0LrQvtC80L_QsNC90LjQuCDCq9CR0LXQu9Cw0LLQuNCwwrsg0LIg0KLRg9GA0LrQvNC10L3QuNGB0YLQsNC90LU!5e0!3m2!1sru!2sru!4v1738063695919!5m2!1sru!2sru",className:"absolute inset-0 w-full h-full ",style:{border:0},allowFullScreen:!0,loading:"lazy"})})]})),iI=Bk([{element:x.jsx(EM,{}),path:"/",children:[{element:x.jsx(WF,{}),path:""},{element:x.jsx(HF,{}),path:"/about"},{element:x.jsx($F,{}),path:"/B2B-B2G"},{element:x.jsx(XF,{}),path:"/become-sponsor"},{element:x.jsx(eI,{}),path:"/stend-form"},{element:x.jsx(sI,{}),path:"/contacts"}]}]);q1.createRoot(document.getElementById("root")).render(x.jsx(_.StrictMode,{children:x.jsx(Jk,{router:iI})}));
|