function Z1(e,t){for(var n=0;nr[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"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const a of i.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();const p6="modulepreload",m6=function(e){return"/"+e},Im={},Wo=function(t,n,r){if(!n||n.length===0)return t();const o=document.getElementsByTagName("link");return Promise.all(n.map(i=>{if(i=m6(i),i in Im)return;Im[i]=!0;const a=i.endsWith(".css"),s=a?'[rel="stylesheet"]':"";if(!!r)for(let c=o.length-1;c>=0;c--){const f=o[c];if(f.href===i&&(!a||f.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${i}"]${s}`))return;const u=document.createElement("link");if(u.rel=a?"stylesheet":p6,a||(u.as="script",u.crossOrigin=""),u.href=i,document.head.appendChild(u),a)return new Promise((c,f)=>{u.addEventListener("load",c),u.addEventListener("error",()=>f(new Error(`Unable to preload CSS for ${i}`)))})})).then(()=>t()).catch(i=>{const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=i,window.dispatchEvent(a),!a.defaultPrevented)throw i})};var vj=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function jh(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function yj(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var q1={exports:{}},Ru={},X1={exports:{}},ve={};/** * @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 ms=Symbol.for("react.element"),g6=Symbol.for("react.portal"),v6=Symbol.for("react.fragment"),y6=Symbol.for("react.strict_mode"),C6=Symbol.for("react.profiler"),S6=Symbol.for("react.provider"),x6=Symbol.for("react.context"),w6=Symbol.for("react.forward_ref"),b6=Symbol.for("react.suspense"),E6=Symbol.for("react.memo"),P6=Symbol.for("react.lazy"),_m=Symbol.iterator;function T6(e){return e===null||typeof e!="object"?null:(e=_m&&e[_m]||e["@@iterator"],typeof e=="function"?e:null)}var Q1={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Y1=Object.assign,J1={};function Ii(e,t,n){this.props=e,this.context=t,this.refs=J1,this.updater=n||Q1}Ii.prototype.isReactComponent={};Ii.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=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,e,t,"setState")};Ii.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function ey(){}ey.prototype=Ii.prototype;function Ah(e,t,n){this.props=e,this.context=t,this.refs=J1,this.updater=n||Q1}var Nh=Ah.prototype=new ey;Nh.constructor=Ah;Y1(Nh,Ii.prototype);Nh.isPureReactComponent=!0;var Dm=Array.isArray,ty=Object.prototype.hasOwnProperty,Ih={current:null},ny={key:!0,ref:!0,__self:!0,__source:!0};function ry(e,t,n){var r,o={},i=null,a=null;if(t!=null)for(r in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(i=""+t.key),t)ty.call(t,r)&&!ny.hasOwnProperty(r)&&(o[r]=t[r]);var s=arguments.length-2;if(s===1)o.children=n;else if(1>>1,K=M[I];if(0>>1;Io(de,B))neo(me,de)?(M[I]=me,M[ne]=B,I=ne):(M[I]=de,M[te]=B,I=te);else if(neo(me,B))M[I]=me,M[ne]=B,I=ne;else break e}}return N}function o(M,N){var B=M.sortIndex-N.sortIndex;return B!==0?B:M.id-N.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var a=Date,s=a.now();e.unstable_now=function(){return a.now()-s}}var l=[],u=[],c=1,f=null,d=3,y=!1,C=!1,v=!1,S=typeof setTimeout=="function"?setTimeout:null,g=typeof clearTimeout=="function"?clearTimeout:null,p=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function m(M){for(var N=n(u);N!==null;){if(N.callback===null)r(u);else if(N.startTime<=M)r(u),N.sortIndex=N.expirationTime,t(l,N);else break;N=n(u)}}function w(M){if(v=!1,m(M),!C)if(n(l)!==null)C=!0,j(E);else{var N=n(u);N!==null&&R(w,N.startTime-M)}}function E(M,N){C=!1,v&&(v=!1,g(T),T=-1),y=!0;var B=d;try{for(m(N),f=n(l);f!==null&&(!(f.expirationTime>N)||M&&!$());){var I=f.callback;if(typeof I=="function"){f.callback=null,d=f.priorityLevel;var K=I(f.expirationTime<=N);N=e.unstable_now(),typeof K=="function"?f.callback=K:f===n(l)&&r(l),m(N)}else r(l);f=n(l)}if(f!==null)var X=!0;else{var te=n(u);te!==null&&R(w,te.startTime-N),X=!1}return X}finally{f=null,d=B,y=!1}}var x=!1,b=null,T=-1,P=5,O=-1;function $(){return!(e.unstable_now()-OM||125I?(M.sortIndex=B,t(u,M),n(l)===null&&M===n(u)&&(v?(g(T),T=-1):v=!0,R(w,B-I))):(M.sortIndex=K,t(l,M),C||y||(C=!0,j(E))),M},e.unstable_shouldYield=$,e.unstable_wrapCallback=function(M){var N=d;return function(){var B=d;d=N;try{return M.apply(this,arguments)}finally{d=B}}}})(sy);ay.exports=sy;var I6=ay.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 ly=h,Yt=I6;function G(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Vf=Object.prototype.hasOwnProperty,_6=/^[: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]*$/,Bm={},zm={};function D6(e){return Vf.call(zm,e)?!0:Vf.call(Bm,e)?!1:_6.test(e)?zm[e]=!0:(Bm[e]=!0,!1)}function V6(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function B6(e,t,n,r){if(t===null||typeof t>"u"||V6(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Ft(e,t,n,r,o,i,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var yt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){yt[e]=new Ft(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];yt[t]=new Ft(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){yt[e]=new Ft(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){yt[e]=new Ft(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){yt[e]=new Ft(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){yt[e]=new Ft(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){yt[e]=new Ft(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){yt[e]=new Ft(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){yt[e]=new Ft(e,5,!1,e.toLowerCase(),null,!1,!1)});var Dh=/[\-:]([a-z])/g;function Vh(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Dh,Vh);yt[t]=new Ft(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Dh,Vh);yt[t]=new Ft(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Dh,Vh);yt[t]=new Ft(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){yt[e]=new Ft(e,1,!1,e.toLowerCase(),null,!1,!1)});yt.xlinkHref=new Ft("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){yt[e]=new Ft(e,1,!1,e.toLowerCase(),null,!0,!0)});function Bh(e,t,n,r){var o=yt.hasOwnProperty(t)?yt[t]:null;(o!==null?o.type!==0:r||!(2s||o[a]!==i[s]){var l=` `+o[a].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=a&&0<=s);break}}}finally{Lc=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?ca(e):""}function z6(e){switch(e.tag){case 5:return ca(e.type);case 16:return ca("Lazy");case 13:return ca("Suspense");case 19:return ca("SuspenseList");case 0:case 2:case 15:return e=$c(e.type,!1),e;case 11:return e=$c(e.type.render,!1),e;case 1:return e=$c(e.type,!0),e;default:return""}}function Uf(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Yo:return"Fragment";case Qo:return"Portal";case Bf:return"Profiler";case zh:return"StrictMode";case zf:return"Suspense";case Hf:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case fy:return(e.displayName||"Context")+".Consumer";case cy:return(e._context.displayName||"Context")+".Provider";case Hh:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Uh:return t=e.displayName||null,t!==null?t:Uf(e.type)||"Memo";case Pr:t=e._payload,e=e._init;try{return Uf(e(t))}catch{}}return null}function H6(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Uf(t);case 8:return t===zh?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Ur(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function hy(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function U6(e){var t=hy(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(a){r=""+a,i.call(this,a)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(a){r=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Us(e){e._valueTracker||(e._valueTracker=U6(e))}function py(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=hy(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Ul(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Wf(e,t){var n=t.checked;return ze({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Um(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Ur(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function my(e,t){t=t.checked,t!=null&&Bh(e,"checked",t,!1)}function Gf(e,t){my(e,t);var n=Ur(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Kf(e,t.type,n):t.hasOwnProperty("defaultValue")&&Kf(e,t.type,Ur(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Wm(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Kf(e,t,n){(t!=="number"||Ul(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var fa=Array.isArray;function yi(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=Ws.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Ia(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var va={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},W6=["Webkit","ms","Moz","O"];Object.keys(va).forEach(function(e){W6.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),va[t]=va[e]})});function Cy(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||va.hasOwnProperty(e)&&va[e]?(""+t).trim():t+"px"}function Sy(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=Cy(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var G6=ze({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 Xf(e,t){if(t){if(G6[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(G(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(G(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(G(61))}if(t.style!=null&&typeof t.style!="object")throw Error(G(62))}}function Qf(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Yf=null;function Wh(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Jf=null,Ci=null,Si=null;function Zm(e){if(e=ys(e)){if(typeof Jf!="function")throw Error(G(280));var t=e.stateNode;t&&(t=ju(t),Jf(e.stateNode,e.type,t))}}function xy(e){Ci?Si?Si.push(e):Si=[e]:Ci=e}function wy(){if(Ci){var e=Ci,t=Si;if(Si=Ci=null,Zm(e),t)for(e=0;e>>=0,e===0?32:31-(rS(e)/oS|0)|0}var Gs=64,Ks=4194304;function da(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Zl(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,a=n&268435455;if(a!==0){var s=a&~o;s!==0?r=da(s):(i&=a,i!==0&&(r=da(i)))}else a=n&~o,a!==0?r=da(a):i!==0&&(r=da(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function gs(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Rn(t),e[t]=n}function lS(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=Ca),r0=String.fromCharCode(32),o0=!1;function zy(e,t){switch(e){case"keyup":return NS.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Hy(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Jo=!1;function _S(e,t){switch(e){case"compositionend":return Hy(t);case"keypress":return t.which!==32?null:(o0=!0,r0);case"textInput":return e=t.data,e===r0&&o0?null:e;default:return null}}function DS(e,t){if(Jo)return e==="compositionend"||!Jh&&zy(e,t)?(e=Vy(),El=Xh=kr=null,Jo=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=l0(n)}}function Ky(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Ky(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Zy(){for(var e=window,t=Ul();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Ul(e.document)}return t}function ep(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function ZS(e){var t=Zy(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Ky(n.ownerDocument.documentElement,n)){if(r!==null&&ep(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=u0(n,i);var a=u0(n,r);o&&a&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,ei=null,id=null,xa=null,ad=!1;function c0(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;ad||ei==null||ei!==Ul(r)||(r=ei,"selectionStart"in r&&ep(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),xa&&Ha(xa,r)||(xa=r,r=Ql(id,"onSelect"),0ri||(e.current=dd[ri],dd[ri]=null,ri--)}function Le(e,t){ri++,dd[ri]=e.current,e.current=t}var Wr={},Pt=Qr(Wr),_t=Qr(!1),Po=Wr;function Ti(e,t){var n=e.type.contextTypes;if(!n)return Wr;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Dt(e){return e=e.childContextTypes,e!=null}function Jl(){Ne(_t),Ne(Pt)}function v0(e,t,n){if(Pt.current!==Wr)throw Error(G(168));Le(Pt,t),Le(_t,n)}function r2(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(G(108,H6(e)||"Unknown",o));return ze({},n,r)}function eu(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Wr,Po=Pt.current,Le(Pt,e),Le(_t,_t.current),!0}function y0(e,t,n){var r=e.stateNode;if(!r)throw Error(G(169));n?(e=r2(e,t,Po),r.__reactInternalMemoizedMergedChildContext=e,Ne(_t),Ne(Pt),Le(Pt,e)):Ne(_t),Le(_t,n)}var Qn=null,Au=!1,Gc=!1;function o2(e){Qn===null?Qn=[e]:Qn.push(e)}function ax(e){Au=!0,o2(e)}function Yr(){if(!Gc&&Qn!==null){Gc=!0;var e=0,t=be;try{var n=Qn;for(be=1;e>=a,o-=a,Jn=1<<32-Rn(t)+o|n<T?(P=b,b=null):P=b.sibling;var O=d(g,b,m[T],w);if(O===null){b===null&&(b=P);break}e&&b&&O.alternate===null&&t(g,b),p=i(O,p,T),x===null?E=O:x.sibling=O,x=O,b=P}if(T===m.length)return n(g,b),_e&&oo(g,T),E;if(b===null){for(;TT?(P=b,b=null):P=b.sibling;var $=d(g,b,O.value,w);if($===null){b===null&&(b=P);break}e&&b&&$.alternate===null&&t(g,b),p=i($,p,T),x===null?E=$:x.sibling=$,x=$,b=P}if(O.done)return n(g,b),_e&&oo(g,T),E;if(b===null){for(;!O.done;T++,O=m.next())O=f(g,O.value,w),O!==null&&(p=i(O,p,T),x===null?E=O:x.sibling=O,x=O);return _e&&oo(g,T),E}for(b=r(g,b);!O.done;T++,O=m.next())O=y(b,g,T,O.value,w),O!==null&&(e&&O.alternate!==null&&b.delete(O.key===null?T:O.key),p=i(O,p,T),x===null?E=O:x.sibling=O,x=O);return e&&b.forEach(function(D){return t(g,D)}),_e&&oo(g,T),E}function S(g,p,m,w){if(typeof m=="object"&&m!==null&&m.type===Yo&&m.key===null&&(m=m.props.children),typeof m=="object"&&m!==null){switch(m.$$typeof){case Hs:e:{for(var E=m.key,x=p;x!==null;){if(x.key===E){if(E=m.type,E===Yo){if(x.tag===7){n(g,x.sibling),p=o(x,m.props.children),p.return=g,g=p;break e}}else if(x.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===Pr&&P0(E)===x.type){n(g,x.sibling),p=o(x,m.props),p.ref=Yi(g,x,m),p.return=g,g=p;break e}n(g,x);break}else t(g,x);x=x.sibling}m.type===Yo?(p=wo(m.props.children,g.mode,w,m.key),p.return=g,g=p):(w=$l(m.type,m.key,m.props,null,g.mode,w),w.ref=Yi(g,p,m),w.return=g,g=w)}return a(g);case Qo:e:{for(x=m.key;p!==null;){if(p.key===x)if(p.tag===4&&p.stateNode.containerInfo===m.containerInfo&&p.stateNode.implementation===m.implementation){n(g,p.sibling),p=o(p,m.children||[]),p.return=g,g=p;break e}else{n(g,p);break}else t(g,p);p=p.sibling}p=ef(m,g.mode,w),p.return=g,g=p}return a(g);case Pr:return x=m._init,S(g,p,x(m._payload),w)}if(fa(m))return C(g,p,m,w);if(Ki(m))return v(g,p,m,w);el(g,m)}return typeof m=="string"&&m!==""||typeof m=="number"?(m=""+m,p!==null&&p.tag===6?(n(g,p.sibling),p=o(p,m),p.return=g,g=p):(n(g,p),p=Jc(m,g.mode,w),p.return=g,g=p),a(g)):n(g,p)}return S}var Mi=d2(!0),h2=d2(!1),Cs={},Wn=Qr(Cs),Ka=Qr(Cs),Za=Qr(Cs);function mo(e){if(e===Cs)throw Error(G(174));return e}function up(e,t){switch(Le(Za,t),Le(Ka,e),Le(Wn,Cs),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:qf(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=qf(t,e)}Ne(Wn),Le(Wn,t)}function Ri(){Ne(Wn),Ne(Ka),Ne(Za)}function p2(e){mo(Za.current);var t=mo(Wn.current),n=qf(t,e.type);t!==n&&(Le(Ka,e),Le(Wn,n))}function cp(e){Ka.current===e&&(Ne(Wn),Ne(Ka))}var De=Qr(0);function au(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Kc=[];function fp(){for(var e=0;en?n:4,e(!0);var r=Zc.transition;Zc.transition={};try{e(!1),t()}finally{be=n,Zc.transition=r}}function k2(){return mn().memoizedState}function cx(e,t,n){var r=Vr(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},L2(e))$2(t,n);else if(n=l2(e,t,n,r),n!==null){var o=Rt();kn(n,e,r,o),F2(n,t,r)}}function fx(e,t,n){var r=Vr(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(L2(e))$2(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var a=t.lastRenderedState,s=i(a,n);if(o.hasEagerState=!0,o.eagerState=s,Fn(s,a)){var l=t.interleaved;l===null?(o.next=o,sp(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}finally{}n=l2(e,t,o,r),n!==null&&(o=Rt(),kn(n,e,r,o),F2(n,t,r))}}function L2(e){var t=e.alternate;return e===Be||t!==null&&t===Be}function $2(e,t){wa=su=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function F2(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Kh(e,n)}}var lu={readContext:pn,useCallback:xt,useContext:xt,useEffect:xt,useImperativeHandle:xt,useInsertionEffect:xt,useLayoutEffect:xt,useMemo:xt,useReducer:xt,useRef:xt,useState:xt,useDebugValue:xt,useDeferredValue:xt,useTransition:xt,useMutableSource:xt,useSyncExternalStore:xt,useId:xt,unstable_isNewReconciler:!1},dx={readContext:pn,useCallback:function(e,t){return Bn().memoizedState=[e,t===void 0?null:t],e},useContext:pn,useEffect:O0,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Ml(4194308,4,P2.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ml(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ml(4,2,e,t)},useMemo:function(e,t){var n=Bn();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Bn();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=cx.bind(null,Be,e),[r.memoizedState,e]},useRef:function(e){var t=Bn();return e={current:e},t.memoizedState=e},useState:T0,useDebugValue:gp,useDeferredValue:function(e){return Bn().memoizedState=e},useTransition:function(){var e=T0(!1),t=e[0];return e=ux.bind(null,e[1]),Bn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Be,o=Bn();if(_e){if(n===void 0)throw Error(G(407));n=n()}else{if(n=t(),ct===null)throw Error(G(349));Oo&30||v2(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,O0(C2.bind(null,r,i,e),[e]),r.flags|=2048,Qa(9,y2.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Bn(),t=ct.identifierPrefix;if(_e){var n=er,r=Jn;n=(r&~(1<<32-Rn(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=qa++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=a.createElement(n,{is:r.is}):(e=a.createElement(n),n==="select"&&(a=e,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):e=a.createElementNS(e,n),e[zn]=t,e[Ga]=r,z2(e,t,!1,!1),t.stateNode=e;e:{switch(a=Qf(n,r),n){case"dialog":Ae("cancel",e),Ae("close",e),o=r;break;case"iframe":case"object":case"embed":Ae("load",e),o=r;break;case"video":case"audio":for(o=0;oLi&&(t.flags|=128,r=!0,Ji(i,!1),t.lanes=4194304)}else{if(!r)if(e=au(a),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Ji(i,!0),i.tail===null&&i.tailMode==="hidden"&&!a.alternate&&!_e)return wt(t),null}else 2*Ye()-i.renderingStartTime>Li&&n!==1073741824&&(t.flags|=128,r=!0,Ji(i,!1),t.lanes=4194304);i.isBackwards?(a.sibling=t.child,t.child=a):(n=i.last,n!==null?n.sibling=a:t.child=a,i.last=a)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Ye(),t.sibling=null,n=De.current,Le(De,r?n&1|2:n&1),t):(wt(t),null);case 22:case 23:return wp(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Gt&1073741824&&(wt(t),t.subtreeFlags&6&&(t.flags|=8192)):wt(t),null;case 24:return null;case 25:return null}throw Error(G(156,t.tag))}function Sx(e,t){switch(np(t),t.tag){case 1:return Dt(t.type)&&Jl(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ri(),Ne(_t),Ne(Pt),fp(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return cp(t),null;case 13:if(Ne(De),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(G(340));Oi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Ne(De),null;case 4:return Ri(),null;case 10:return ap(t.type._context),null;case 22:case 23:return wp(),null;case 24:return null;default:return null}}var nl=!1,Et=!1,xx=typeof WeakSet=="function"?WeakSet:Set,Q=null;function si(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){We(e,t,r)}else n.current=null}function Ed(e,t,n){try{n()}catch(r){We(e,t,r)}}var N0=!1;function wx(e,t){if(sd=ql,e=Zy(),ep(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var a=0,s=-1,l=-1,u=0,c=0,f=e,d=null;t:for(;;){for(var y;f!==n||o!==0&&f.nodeType!==3||(s=a+o),f!==i||r!==0&&f.nodeType!==3||(l=a+r),f.nodeType===3&&(a+=f.nodeValue.length),(y=f.firstChild)!==null;)d=f,f=y;for(;;){if(f===e)break t;if(d===n&&++u===o&&(s=a),d===i&&++c===r&&(l=a),(y=f.nextSibling)!==null)break;f=d,d=f.parentNode}f=y}n=s===-1||l===-1?null:{start:s,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(ld={focusedElem:e,selectionRange:n},ql=!1,Q=t;Q!==null;)if(t=Q,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Q=e;else for(;Q!==null;){t=Q;try{var C=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(C!==null){var v=C.memoizedProps,S=C.memoizedState,g=t.stateNode,p=g.getSnapshotBeforeUpdate(t.elementType===t.type?v:wn(t.type,v),S);g.__reactInternalSnapshotBeforeUpdate=p}break;case 3:var m=t.stateNode.containerInfo;m.nodeType===1?m.textContent="":m.nodeType===9&&m.documentElement&&m.removeChild(m.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(G(163))}}catch(w){We(t,t.return,w)}if(e=t.sibling,e!==null){e.return=t.return,Q=e;break}Q=t.return}return C=N0,N0=!1,C}function ba(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&Ed(t,n,i)}o=o.next}while(o!==r)}}function _u(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Pd(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function W2(e){var t=e.alternate;t!==null&&(e.alternate=null,W2(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[zn],delete t[Ga],delete t[fd],delete t[ox],delete t[ix])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function G2(e){return e.tag===5||e.tag===3||e.tag===4}function I0(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||G2(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Td(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Yl));else if(r!==4&&(e=e.child,e!==null))for(Td(e,t,n),e=e.sibling;e!==null;)Td(e,t,n),e=e.sibling}function Od(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Od(e,t,n),e=e.sibling;e!==null;)Od(e,t,n),e=e.sibling}var mt=null,bn=!1;function wr(e,t,n){for(n=n.child;n!==null;)K2(e,t,n),n=n.sibling}function K2(e,t,n){if(Un&&typeof Un.onCommitFiberUnmount=="function")try{Un.onCommitFiberUnmount(ku,n)}catch{}switch(n.tag){case 5:Et||si(n,t);case 6:var r=mt,o=bn;mt=null,wr(e,t,n),mt=r,bn=o,mt!==null&&(bn?(e=mt,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):mt.removeChild(n.stateNode));break;case 18:mt!==null&&(bn?(e=mt,n=n.stateNode,e.nodeType===8?Wc(e.parentNode,n):e.nodeType===1&&Wc(e,n),Ba(e)):Wc(mt,n.stateNode));break;case 4:r=mt,o=bn,mt=n.stateNode.containerInfo,bn=!0,wr(e,t,n),mt=r,bn=o;break;case 0:case 11:case 14:case 15:if(!Et&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,a=i.destroy;i=i.tag,a!==void 0&&(i&2||i&4)&&Ed(n,t,a),o=o.next}while(o!==r)}wr(e,t,n);break;case 1:if(!Et&&(si(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){We(n,t,s)}wr(e,t,n);break;case 21:wr(e,t,n);break;case 22:n.mode&1?(Et=(r=Et)||n.memoizedState!==null,wr(e,t,n),Et=r):wr(e,t,n);break;default:wr(e,t,n)}}function _0(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new xx),t.forEach(function(r){var o=Lx.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function Sn(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=a),r&=~i}if(r=o,r=Ye()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Ex(r/1960))-r,10e?16:e,Lr===null)var r=!1;else{if(e=Lr,Lr=null,fu=0,Se&6)throw Error(G(331));var o=Se;for(Se|=4,Q=e.current;Q!==null;){var i=Q,a=i.child;if(Q.flags&16){var s=i.deletions;if(s!==null){for(var l=0;lYe()-Sp?xo(e,0):Cp|=n),Vt(e,t)}function t3(e,t){t===0&&(e.mode&1?(t=Ks,Ks<<=1,!(Ks&130023424)&&(Ks=4194304)):t=1);var n=Rt();e=ur(e,t),e!==null&&(gs(e,t,n),Vt(e,n))}function kx(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),t3(e,n)}function Lx(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(G(314))}r!==null&&r.delete(t),t3(e,n)}var n3;n3=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||_t.current)Nt=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Nt=!1,yx(e,t,n);Nt=!!(e.flags&131072)}else Nt=!1,_e&&t.flags&1048576&&i2(t,nu,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Rl(e,t),e=t.pendingProps;var o=Ti(t,Pt.current);wi(t,n),o=hp(null,t,r,e,o,n);var i=pp();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Dt(r)?(i=!0,eu(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,lp(t),o.updater=Nu,t.stateNode=o,o._reactInternals=t,vd(t,r,e,n),t=Sd(null,t,r,!0,i,n)):(t.tag=0,_e&&i&&tp(t),Mt(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Rl(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=Fx(r),e=wn(r,e),o){case 0:t=Cd(null,t,r,e,n);break e;case 1:t=F0(null,t,r,e,n);break e;case 11:t=L0(null,t,r,e,n);break e;case 14:t=$0(null,t,r,wn(r.type,e),n);break e}throw Error(G(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:wn(r,o),Cd(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:wn(r,o),F0(e,t,r,o,n);case 3:e:{if(D2(t),e===null)throw Error(G(387));r=t.pendingProps,i=t.memoizedState,o=i.element,u2(e,t),iu(t,r,null,n);var a=t.memoizedState;if(r=a.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=ki(Error(G(423)),t),t=j0(e,t,r,n,o);break e}else if(r!==o){o=ki(Error(G(424)),t),t=j0(e,t,r,n,o);break e}else for(Zt=Ir(t.stateNode.containerInfo.firstChild),Xt=t,_e=!0,On=null,n=h2(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Oi(),r===o){t=cr(e,t,n);break e}Mt(e,t,r,n)}t=t.child}return t;case 5:return p2(t),e===null&&pd(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,a=o.children,ud(r,o)?a=null:i!==null&&ud(r,i)&&(t.flags|=32),_2(e,t),Mt(e,t,a,n),t.child;case 6:return e===null&&pd(t),null;case 13:return V2(e,t,n);case 4:return up(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Mi(t,null,r,n):Mt(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:wn(r,o),L0(e,t,r,o,n);case 7:return Mt(e,t,t.pendingProps,n),t.child;case 8:return Mt(e,t,t.pendingProps.children,n),t.child;case 12:return Mt(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,a=o.value,Le(ru,r._currentValue),r._currentValue=a,i!==null)if(Fn(i.value,a)){if(i.children===o.children&&!_t.current){t=cr(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var s=i.dependencies;if(s!==null){a=i.child;for(var l=s.firstContext;l!==null;){if(l.context===r){if(i.tag===1){l=nr(-1,n&-n),l.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?l.next=l:(l.next=c.next,c.next=l),u.pending=l}}i.lanes|=n,l=i.alternate,l!==null&&(l.lanes|=n),md(i.return,n,t),s.lanes|=n;break}l=l.next}}else if(i.tag===10)a=i.type===t.type?null:i.child;else if(i.tag===18){if(a=i.return,a===null)throw Error(G(341));a.lanes|=n,s=a.alternate,s!==null&&(s.lanes|=n),md(a,n,t),a=i.sibling}else a=i.child;if(a!==null)a.return=i;else for(a=i;a!==null;){if(a===t){a=null;break}if(i=a.sibling,i!==null){i.return=a.return,a=i;break}a=a.return}i=a}Mt(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,wi(t,n),o=pn(o),r=r(o),t.flags|=1,Mt(e,t,r,n),t.child;case 14:return r=t.type,o=wn(r,t.pendingProps),o=wn(r.type,o),$0(e,t,r,o,n);case 15:return N2(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:wn(r,o),Rl(e,t),t.tag=1,Dt(r)?(e=!0,eu(t)):e=!1,wi(t,n),f2(t,r,o),vd(t,r,o,n),Sd(null,t,r,!0,e,n);case 19:return B2(e,t,n);case 22:return I2(e,t,n)}throw Error(G(156,t.tag))};function r3(e,t){return Ry(e,t)}function $x(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function dn(e,t,n,r){return new $x(e,t,n,r)}function Ep(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Fx(e){if(typeof e=="function")return Ep(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Hh)return 11;if(e===Uh)return 14}return 2}function Br(e,t){var n=e.alternate;return n===null?(n=dn(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function $l(e,t,n,r,o,i){var a=2;if(r=e,typeof e=="function")Ep(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case Yo:return wo(n.children,o,i,t);case zh:a=8,o|=8;break;case Bf:return e=dn(12,n,t,o|2),e.elementType=Bf,e.lanes=i,e;case zf:return e=dn(13,n,t,o),e.elementType=zf,e.lanes=i,e;case Hf:return e=dn(19,n,t,o),e.elementType=Hf,e.lanes=i,e;case dy:return Vu(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case cy:a=10;break e;case fy:a=9;break e;case Hh:a=11;break e;case Uh:a=14;break e;case Pr:a=16,r=null;break e}throw Error(G(130,e==null?e:typeof e,""))}return t=dn(a,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function wo(e,t,n,r){return e=dn(7,e,r,t),e.lanes=n,e}function Vu(e,t,n,r){return e=dn(22,e,r,t),e.elementType=dy,e.lanes=n,e.stateNode={isHidden:!1},e}function Jc(e,t,n){return e=dn(6,e,null,t),e.lanes=n,e}function ef(e,t,n){return t=dn(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function jx(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=jc(0),this.expirationTimes=jc(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=jc(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Pp(e,t,n,r,o,i,a,s,l){return e=new jx(e,t,n,s,l),t===1?(t=1,i===!0&&(t|=8)):t=0,i=dn(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},lp(i),e}function Ax(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(s3)}catch(e){console.error(e)}}s3(),iy.exports=en;var Ss=iy.exports;const l3=jh(Ss),u3=Z1({__proto__:null,default:l3},[Ss]);var c3,G0=Ss;c3=G0.createRoot,G0.hydrateRoot;/** * @remix-run/router v1.14.1 * * 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 Ge(){return Ge=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function ko(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Bx(){return Math.random().toString(36).substr(2,8)}function Z0(e,t){return{usr:e.state,key:e.key,idx:t}}function Ja(e,t,n,r){return n===void 0&&(n=null),Ge({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?mr(t):t,{state:n,key:t&&t.key||r||Bx()})}function Lo(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function mr(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function zx(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:i=!1}=r,a=o.history,s=Qe.Pop,l=null,u=c();u==null&&(u=0,a.replaceState(Ge({},a.state,{idx:u}),""));function c(){return(a.state||{idx:null}).idx}function f(){s=Qe.Pop;let S=c(),g=S==null?null:S-u;u=S,l&&l({action:s,location:v.location,delta:g})}function d(S,g){s=Qe.Push;let p=Ja(v.location,S,g);n&&n(p,S),u=c()+1;let m=Z0(p,u),w=v.createHref(p);try{a.pushState(m,"",w)}catch(E){if(E instanceof DOMException&&E.name==="DataCloneError")throw E;o.location.assign(w)}i&&l&&l({action:s,location:v.location,delta:1})}function y(S,g){s=Qe.Replace;let p=Ja(v.location,S,g);n&&n(p,S),u=c();let m=Z0(p,u),w=v.createHref(p);a.replaceState(m,"",w),i&&l&&l({action:s,location:v.location,delta:0})}function C(S){let g=o.location.origin!=="null"?o.location.origin:o.location.href,p=typeof S=="string"?S:Lo(S);return pe(g,"No window.location.(origin|href) available to create URL for href: "+p),new URL(p,g)}let v={get action(){return s},get location(){return e(o,a)},listen(S){if(l)throw new Error("A history only accepts one active listener");return o.addEventListener(K0,f),l=S,()=>{o.removeEventListener(K0,f),l=null}},createHref(S){return t(o,S)},createURL:C,encodeLocation(S){let g=C(S);return{pathname:g.pathname,search:g.search,hash:g.hash}},push:d,replace:y,go(S){return a.go(S)}};return v}var Ue;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Ue||(Ue={}));const Hx=new Set(["lazy","caseSensitive","path","id","index","children"]);function Ux(e){return e.index===!0}function $d(e,t,n,r){return n===void 0&&(n=[]),r===void 0&&(r={}),e.map((o,i)=>{let a=[...n,i],s=typeof o.id=="string"?o.id:a.join("-");if(pe(o.index!==!0||!o.children,"Cannot specify children on an index route"),pe(!r[s],'Found a route id collision on id "'+s+`". Route id's must be globally unique within Data Router usages`),Ux(o)){let l=Ge({},o,t(o),{id:s});return r[s]=l,l}else{let l=Ge({},o,t(o),{id:s,children:void 0});return r[s]=l,o.children&&(l.children=$d(o.children,t,a,r)),l}})}function ui(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?mr(t):t,o=Bi(r.pathname||"/",n);if(o==null)return null;let i=d3(e);Wx(i);let a=null;for(let s=0;a==null&&s{let l={relativePath:s===void 0?i.path||"":s,caseSensitive:i.caseSensitive===!0,childrenIndex:a,route:i};l.relativePath.startsWith("/")&&(pe(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let u=rr([r,l.relativePath]),c=n.concat(l);i.children&&i.children.length>0&&(pe(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),d3(i.children,t,c,u)),!(i.path==null&&!i.index)&&t.push({path:u,score:Yx(u,i.index),routesMeta:c})};return e.forEach((i,a)=>{var s;if(i.path===""||!((s=i.path)!=null&&s.includes("?")))o(i,a);else for(let l of h3(i.path))o(i,a,l)}),t}function h3(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return o?[i,""]:[i];let a=h3(r.join("/")),s=[];return s.push(...a.map(l=>l===""?i:[i,l].join("/"))),o&&s.push(...a),s.map(l=>e.startsWith("/")&&l===""?"/":l)}function Wx(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:Jx(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const Gx=/^:\w+$/,Kx=3,Zx=2,qx=1,Xx=10,Qx=-2,q0=e=>e==="*";function Yx(e,t){let n=e.split("/"),r=n.length;return n.some(q0)&&(r+=Qx),t&&(r+=Zx),n.filter(o=>!q0(o)).reduce((o,i)=>o+(Gx.test(i)?Kx:i===""?qx:Xx),r)}function Jx(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function e9(e,t){let{routesMeta:n}=e,r={},o="/",i=[];for(let a=0;a{let{paramName:d,isOptional:y}=c;if(d==="*"){let v=s[f]||"";a=i.slice(0,i.length-v.length).replace(/(.)\/+$/,"$1")}const C=s[f];return y&&!C?u[d]=void 0:u[d]=o9(C||"",d),u},{}),pathname:i,pathnameBase:a,pattern:e}}function n9(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),ko(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 r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:(\w+)(\?)?/g,(a,s,l)=>(r.push({paramName:s,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function r9(e){try{return decodeURI(e)}catch(t){return ko(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function o9(e,t){try{return decodeURIComponent(e)}catch(n){return ko(!1,'The value for the URL param "'+t+'" will not be decoded because'+(' the string "'+e+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+n+").")),e}}function Bi(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function i9(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?mr(e):e;return{pathname:n?n.startsWith("/")?n:a9(n,t):t,search:l9(r),hash:u9(o)}}function a9(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 tf(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function p3(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Rp(e,t){let n=p3(e);return t?n.map((r,o)=>o===e.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function kp(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=mr(e):(o=Ge({},e),pe(!o.pathname||!o.pathname.includes("?"),tf("?","pathname","search",o)),pe(!o.pathname||!o.pathname.includes("#"),tf("#","pathname","hash",o)),pe(!o.search||!o.search.includes("#"),tf("#","search","hash",o)));let i=e===""||o.pathname==="",a=i?"/":o.pathname,s;if(a==null)s=n;else{let f=t.length-1;if(!r&&a.startsWith("..")){let d=a.split("/");for(;d[0]==="..";)d.shift(),f-=1;o.pathname=d.join("/")}s=f>=0?t[f]:"/"}let l=i9(o,s),u=a&&a!=="/"&&a.endsWith("/"),c=(i||a===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(u||c)&&(l.pathname+="/"),l}const rr=e=>e.join("/").replace(/\/\/+/g,"/"),s9=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),l9=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,u9=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class X0 extends Error{}class c9{constructor(t,n){this.pendingKeysSet=new Set,this.subscribers=new Set,this.deferredKeys=[],pe(t&&typeof t=="object"&&!Array.isArray(t),"defer() only accepts plain objects");let r;this.abortPromise=new Promise((i,a)=>r=a),this.controller=new AbortController;let o=()=>r(new X0("Deferred data aborted"));this.unlistenAbortSignal=()=>this.controller.signal.removeEventListener("abort",o),this.controller.signal.addEventListener("abort",o),this.data=Object.entries(t).reduce((i,a)=>{let[s,l]=a;return Object.assign(i,{[s]:this.trackPromise(s,l)})},{}),this.done&&this.unlistenAbortSignal(),this.init=n}trackPromise(t,n){if(!(n instanceof Promise))return n;this.deferredKeys.push(t),this.pendingKeysSet.add(t);let r=Promise.race([n,this.abortPromise]).then(o=>this.onSettle(r,t,void 0,o),o=>this.onSettle(r,t,o));return r.catch(()=>{}),Object.defineProperty(r,"_tracked",{get:()=>!0}),r}onSettle(t,n,r,o){if(this.controller.signal.aborted&&r instanceof X0)return this.unlistenAbortSignal(),Object.defineProperty(t,"_error",{get:()=>r}),Promise.reject(r);if(this.pendingKeysSet.delete(n),this.done&&this.unlistenAbortSignal(),r===void 0&&o===void 0){let i=new Error('Deferred data for key "'+n+'" resolved/rejected with `undefined`, you must resolve/reject with a value or `null`.');return Object.defineProperty(t,"_error",{get:()=>i}),this.emit(!1,n),Promise.reject(i)}return o===void 0?(Object.defineProperty(t,"_error",{get:()=>r}),this.emit(!1,n),Promise.reject(r)):(Object.defineProperty(t,"_data",{get:()=>o}),this.emit(!1,n),o)}emit(t,n){this.subscribers.forEach(r=>r(t,n))}subscribe(t){return this.subscribers.add(t),()=>this.subscribers.delete(t)}cancel(){this.controller.abort(),this.pendingKeysSet.forEach((t,n)=>this.pendingKeysSet.delete(n)),this.emit(!0)}async resolveData(t){let n=!1;if(!this.done){let r=()=>this.cancel();t.addEventListener("abort",r),n=await new Promise(o=>{this.subscribe(i=>{t.removeEventListener("abort",r),(i||this.done)&&o(i)})})}return n}get done(){return this.pendingKeysSet.size===0}get unwrappedData(){return pe(this.data!==null&&this.done,"Can only unwrap data on initialized and settled deferreds"),Object.entries(this.data).reduce((t,n)=>{let[r,o]=n;return Object.assign(t,{[r]:d9(o)})},{})}get pendingKeys(){return Array.from(this.pendingKeysSet)}}function f9(e){return e instanceof Promise&&e._tracked===!0}function d9(e){if(!f9(e))return e;if(e._error)throw e._error;return e._data}const Cj=function(t,n){n===void 0&&(n={});let r=typeof n=="number"?{status:n}:n;return new c9(t,r)};class Lp{constructor(t,n,r,o){o===void 0&&(o=!1),this.status=t,this.statusText=n||"",this.internal=o,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function m3(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const g3=["post","put","patch","delete"],h9=new Set(g3),p9=["get",...g3],m9=new Set(p9),g9=new Set([301,302,303,307,308]),v9=new Set([307,308]),nf={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},y9={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},ta={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},v3=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,C9=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),y3="remix-router-transitions";function S9(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",r=!n;pe(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let o;if(e.mapRouteProperties)o=e.mapRouteProperties;else if(e.detectErrorBoundary){let k=e.detectErrorBoundary;o=A=>({hasErrorBoundary:k(A)})}else o=C9;let i={},a=$d(e.routes,o,void 0,i),s,l=e.basename||"/",u=Ge({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1},e.future),c=null,f=new Set,d=null,y=null,C=null,v=e.hydrationData!=null,S=ui(a,e.history.location,l),g=null;if(S==null){let k=un(404,{pathname:e.history.location.pathname}),{matches:A,route:_}=og(a);S=A,g={[_.id]:k}}let p,m=S.some(k=>k.route.lazy),w=S.some(k=>k.route.loader);if(m)p=!1;else if(!w)p=!0;else if(u.v7_partialHydration){let k=e.hydrationData?e.hydrationData.loaderData:null,A=e.hydrationData?e.hydrationData.errors:null;p=S.every(_=>_.route.loader&&_.route.loader.hydrate!==!0&&(k&&k[_.route.id]!==void 0||A&&A[_.route.id]!==void 0))}else p=e.hydrationData!=null;let E,x={historyAction:e.history.action,location:e.history.location,matches:S,initialized:p,navigation:nf,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||g,fetchers:new Map,blockers:new Map},b=Qe.Pop,T=!1,P,O=!1,$=new Map,D=null,F=!1,z=!1,H=[],j=[],R=new Map,M=0,N=-1,B=new Map,I=new Set,K=new Map,X=new Map,te=new Set,de=new Map,ne=new Map,me=!1;function Ct(){if(c=e.history.listen(k=>{let{action:A,location:_,delta:W}=k;if(me){me=!1;return}ko(ne.size===0||W!=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 q=Cr({currentLocation:x.location,nextLocation:_,historyAction:A});if(q&&W!=null){me=!0,e.history.go(W*-1),_n(q,{state:"blocked",location:_,proceed(){_n(q,{state:"proceeding",proceed:void 0,reset:void 0,location:_}),e.history.go(W)},reset(){let ae=new Map(x.blockers);ae.set(q,ta),fe({blockers:ae})}});return}return ke(A,_)}),n){L9(t,$);let k=()=>$9(t,$);t.addEventListener("pagehide",k),D=()=>t.removeEventListener("pagehide",k)}return x.initialized||ke(Qe.Pop,x.location,{initialHydration:!0}),E}function Tt(){c&&c(),D&&D(),f.clear(),P&&P.abort(),x.fetchers.forEach((k,A)=>yr(A)),x.blockers.forEach((k,A)=>_s(A))}function Ze(k){return f.add(k),()=>f.delete(k)}function fe(k,A){A===void 0&&(A={}),x=Ge({},x,k);let _=[],W=[];u.v7_fetcherPersist&&x.fetchers.forEach((q,ae)=>{q.state==="idle"&&(te.has(ae)?W.push(ae):_.push(ae))}),[...f].forEach(q=>q(x,{deletedFetchers:W,unstable_viewTransitionOpts:A.viewTransitionOpts,unstable_flushSync:A.flushSync===!0})),u.v7_fetcherPersist&&(_.forEach(q=>x.fetchers.delete(q)),W.forEach(q=>yr(q)))}function St(k,A,_){var W,q;let{flushSync:ae}=_===void 0?{}:_,re=x.actionData!=null&&x.navigation.formMethod!=null&&En(x.navigation.formMethod)&&x.navigation.state==="loading"&&((W=k.state)==null?void 0:W._isRedirect)!==!0,ie;A.actionData?Object.keys(A.actionData).length>0?ie=A.actionData:ie=null:re?ie=x.actionData:ie=null;let J=A.loaderData?rg(x.loaderData,A.loaderData,A.matches||[],A.errors):x.loaderData,he=x.blockers;he.size>0&&(he=new Map(he),he.forEach((Te,ot)=>he.set(ot,ta)));let qe=T===!0||x.navigation.formMethod!=null&&En(x.navigation.formMethod)&&((q=k.state)==null?void 0:q._isRedirect)!==!0;s&&(a=s,s=void 0),F||b===Qe.Pop||(b===Qe.Push?e.history.push(k,k.state):b===Qe.Replace&&e.history.replace(k,k.state));let ue;if(b===Qe.Pop){let Te=$.get(x.location.pathname);Te&&Te.has(k.pathname)?ue={currentLocation:x.location,nextLocation:k}:$.has(k.pathname)&&(ue={currentLocation:k,nextLocation:x.location})}else if(O){let Te=$.get(x.location.pathname);Te?Te.add(k.pathname):(Te=new Set([k.pathname]),$.set(x.location.pathname,Te)),ue={currentLocation:x.location,nextLocation:k}}fe(Ge({},A,{actionData:ie,loaderData:J,historyAction:b,location:k,initialized:!0,navigation:nf,revalidation:"idle",restoreScrollPosition:Ds(k,A.matches||x.matches),preventScrollReset:qe,blockers:he}),{viewTransitionOpts:ue,flushSync:ae===!0}),b=Qe.Pop,T=!1,O=!1,F=!1,z=!1,H=[],j=[]}async function ye(k,A){if(typeof k=="number"){e.history.go(k);return}let _=Fd(x.location,x.matches,l,u.v7_prependBasename,k,u.v7_relativeSplatPath,A==null?void 0:A.fromRouteId,A==null?void 0:A.relative),{path:W,submission:q,error:ae}=Q0(u.v7_normalizeFormMethod,!1,_,A),re=x.location,ie=Ja(x.location,W,A&&A.state);ie=Ge({},ie,e.history.encodeLocation(ie));let J=A&&A.replace!=null?A.replace:void 0,he=Qe.Push;J===!0?he=Qe.Replace:J===!1||q!=null&&En(q.formMethod)&&q.formAction===x.location.pathname+x.location.search&&(he=Qe.Replace);let qe=A&&"preventScrollReset"in A?A.preventScrollReset===!0:void 0,ue=(A&&A.unstable_flushSync)===!0,Te=Cr({currentLocation:re,nextLocation:ie,historyAction:he});if(Te){_n(Te,{state:"blocked",location:ie,proceed(){_n(Te,{state:"proceeding",proceed:void 0,reset:void 0,location:ie}),ye(k,A)},reset(){let ot=new Map(x.blockers);ot.set(Te,ta),fe({blockers:ot})}});return}return await ke(he,ie,{submission:q,pendingError:ae,preventScrollReset:qe,replace:A&&A.replace,enableViewTransition:A&&A.unstable_viewTransition,flushSync:ue})}function ht(){if(pt(),fe({revalidation:"loading"}),x.navigation.state!=="submitting"){if(x.navigation.state==="idle"){ke(x.historyAction,x.location,{startUninterruptedRevalidation:!0});return}ke(b||x.historyAction,x.navigation.location,{overrideNavigation:x.navigation})}}async function ke(k,A,_){P&&P.abort(),P=null,b=k,F=(_&&_.startUninterruptedRevalidation)===!0,Sr(x.location,x.matches),T=(_&&_.preventScrollReset)===!0,O=(_&&_.enableViewTransition)===!0;let W=s||a,q=_&&_.overrideNavigation,ae=ui(W,A,l),re=(_&&_.flushSync)===!0;if(!ae){let ot=un(404,{pathname:A.pathname}),{matches:He,route:lt}=og(W);eo(),St(A,{matches:He,loaderData:{},errors:{[lt.id]:ot}},{flushSync:re});return}if(x.initialized&&!z&&P9(x.location,A)&&!(_&&_.submission&&En(_.submission.formMethod))){St(A,{matches:ae},{flushSync:re});return}P=new AbortController;let ie=ra(e.history,A,P.signal,_&&_.submission),J,he;if(_&&_.pendingError)he={[Ta(ae).route.id]:_.pendingError};else if(_&&_.submission&&En(_.submission.formMethod)){let ot=await Nn(ie,A,_.submission,ae,{replace:_.replace,flushSync:re});if(ot.shortCircuited)return;J=ot.pendingActionData,he=ot.pendingActionError,q=rf(A,_.submission),re=!1,ie=new Request(ie.url,{signal:ie.signal})}let{shortCircuited:qe,loaderData:ue,errors:Te}=await zt(ie,A,ae,q,_&&_.submission,_&&_.fetcherSubmission,_&&_.replace,_&&_.initialHydration===!0,re,J,he);qe||(P=null,St(A,Ge({matches:ae},J?{actionData:J}:{},{loaderData:ue,errors:Te})))}async function Nn(k,A,_,W,q){q===void 0&&(q={}),pt();let ae=R9(A,_);fe({navigation:ae},{flushSync:q.flushSync===!0});let re,ie=Ad(W,A);if(!ie.route.action&&!ie.route.lazy)re={type:Ue.error,error:un(405,{method:k.method,pathname:A.pathname,routeId:ie.route.id})};else if(re=await na("action",k,ie,W,i,o,l,u.v7_relativeSplatPath),k.signal.aborted)return{shortCircuited:!0};if(vo(re)){let J;return q&&q.replace!=null?J=q.replace:J=re.location===x.location.pathname+x.location.search,await ce(x,re,{submission:_,replace:J}),{shortCircuited:!0}}if(ci(re)){let J=Ta(W,ie.route.id);return(q&&q.replace)!==!0&&(b=Qe.Push),{pendingActionData:{},pendingActionError:{[J.route.id]:re.error}}}if(go(re))throw un(400,{type:"defer-action"});return{pendingActionData:{[ie.route.id]:re.data}}}async function zt(k,A,_,W,q,ae,re,ie,J,he,qe){let ue=W||rf(A,q),Te=q||ae||sg(ue),ot=s||a,[He,lt]=Y0(e.history,x,_,Te,A,u.v7_partialHydration&&ie===!0,z,H,j,te,K,I,ot,l,he,qe);if(eo(Re=>!(_&&_.some(Ie=>Ie.route.id===Re))||He&&He.some(Ie=>Ie.route.id===Re)),N=++M,He.length===0&<.length===0){let Re=Ns();return St(A,Ge({matches:_,loaderData:{},errors:qe||null},he?{actionData:he}:{},Re?{fetchers:new Map(x.fetchers)}:{}),{flushSync:J}),{shortCircuited:!0}}if(!F&&(!u.v7_partialHydration||!ie)){lt.forEach(Ie=>{let Dn=x.fetchers.get(Ie.key),Bs=oa(void 0,Dn?Dn.data:void 0);x.fetchers.set(Ie.key,Bs)});let Re=he||x.actionData;fe(Ge({navigation:ue},Re?Object.keys(Re).length===0?{actionData:null}:{actionData:Re}:{},lt.length>0?{fetchers:new Map(x.fetchers)}:{}),{flushSync:J})}lt.forEach(Re=>{R.has(Re.key)&&In(Re.key),Re.controller&&R.set(Re.key,Re.controller)});let zo=()=>lt.forEach(Re=>In(Re.key));P&&P.signal.addEventListener("abort",zo);let{results:Pc,loaderResults:Ho,fetcherResults:xr}=await we(x.matches,_,He,lt,k);if(k.signal.aborted)return{shortCircuited:!0};P&&P.signal.removeEventListener("abort",zo),lt.forEach(Re=>R.delete(Re.key));let no=ig(Pc);if(no){if(no.idx>=He.length){let Re=lt[no.idx-He.length].key;I.add(Re)}return await ce(x,no.result,{replace:re}),{shortCircuited:!0}}let{loaderData:Tc,errors:Oc}=ng(x,_,He,Ho,qe,lt,xr,de);de.forEach((Re,Ie)=>{Re.subscribe(Dn=>{(Dn||Re.done)&&de.delete(Ie)})});let Mc=Ns(),Uo=Is(N),Vs=Mc||Uo||lt.length>0;return Ge({loaderData:Tc,errors:Oc},Vs?{fetchers:new Map(x.fetchers)}:{})}function jt(k,A,_,W){if(r)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");R.has(k)&&In(k);let q=(W&&W.unstable_flushSync)===!0,ae=s||a,re=Fd(x.location,x.matches,l,u.v7_prependBasename,_,u.v7_relativeSplatPath,A,W==null?void 0:W.relative),ie=ui(ae,re,l);if(!ie){rn(k,A,un(404,{pathname:re}),{flushSync:q});return}let{path:J,submission:he,error:qe}=Q0(u.v7_normalizeFormMethod,!0,re,W);if(qe){rn(k,A,qe,{flushSync:q});return}let ue=Ad(ie,J);if(T=(W&&W.preventScrollReset)===!0,he&&En(he.formMethod)){je(k,A,J,ue,ie,q,he);return}K.set(k,{routeId:A,path:J}),Me(k,A,J,ue,ie,q,he)}async function je(k,A,_,W,q,ae,re){if(pt(),K.delete(k),!W.route.action&&!W.route.lazy){let Ie=un(405,{method:re.formMethod,pathname:_,routeId:A});rn(k,A,Ie,{flushSync:ae});return}let ie=x.fetchers.get(k);nn(k,k9(re,ie),{flushSync:ae});let J=new AbortController,he=ra(e.history,_,J.signal,re);R.set(k,J);let qe=M,ue=await na("action",he,W,q,i,o,l,u.v7_relativeSplatPath);if(he.signal.aborted){R.get(k)===J&&R.delete(k);return}if(u.v7_fetcherPersist&&te.has(k)){if(vo(ue)||ci(ue)){nn(k,br(void 0));return}}else{if(vo(ue))if(R.delete(k),N>qe){nn(k,br(void 0));return}else return I.add(k),nn(k,oa(re)),ce(x,ue,{fetcherSubmission:re});if(ci(ue)){rn(k,A,ue.error);return}}if(go(ue))throw un(400,{type:"defer-action"});let Te=x.navigation.location||x.location,ot=ra(e.history,Te,J.signal),He=s||a,lt=x.navigation.state!=="idle"?ui(He,x.navigation.location,l):x.matches;pe(lt,"Didn't find any matches after fetcher action");let zo=++M;B.set(k,zo);let Pc=oa(re,ue.data);x.fetchers.set(k,Pc);let[Ho,xr]=Y0(e.history,x,lt,re,Te,!1,z,H,j,te,K,I,He,l,{[W.route.id]:ue.data},void 0);xr.filter(Ie=>Ie.key!==k).forEach(Ie=>{let Dn=Ie.key,Bs=x.fetchers.get(Dn),h6=oa(void 0,Bs?Bs.data:void 0);x.fetchers.set(Dn,h6),R.has(Dn)&&In(Dn),Ie.controller&&R.set(Dn,Ie.controller)}),fe({fetchers:new Map(x.fetchers)});let no=()=>xr.forEach(Ie=>In(Ie.key));J.signal.addEventListener("abort",no);let{results:Tc,loaderResults:Oc,fetcherResults:Mc}=await we(x.matches,lt,Ho,xr,ot);if(J.signal.aborted)return;J.signal.removeEventListener("abort",no),B.delete(k),R.delete(k),xr.forEach(Ie=>R.delete(Ie.key));let Uo=ig(Tc);if(Uo){if(Uo.idx>=Ho.length){let Ie=xr[Uo.idx-Ho.length].key;I.add(Ie)}return ce(x,Uo.result)}let{loaderData:Vs,errors:Re}=ng(x,x.matches,Ho,Oc,void 0,xr,Mc,de);if(x.fetchers.has(k)){let Ie=br(ue.data);x.fetchers.set(k,Ie)}Is(zo),x.navigation.state==="loading"&&zo>N?(pe(b,"Expected pending action"),P&&P.abort(),St(x.navigation.location,{matches:lt,loaderData:Vs,errors:Re,fetchers:new Map(x.fetchers)})):(fe({errors:Re,loaderData:rg(x.loaderData,Vs,lt,Re),fetchers:new Map(x.fetchers)}),z=!1)}async function Me(k,A,_,W,q,ae,re){let ie=x.fetchers.get(k);nn(k,oa(re,ie?ie.data:void 0),{flushSync:ae});let J=new AbortController,he=ra(e.history,_,J.signal);R.set(k,J);let qe=M,ue=await na("loader",he,W,q,i,o,l,u.v7_relativeSplatPath);if(go(ue)&&(ue=await x3(ue,he.signal,!0)||ue),R.get(k)===J&&R.delete(k),!he.signal.aborted){if(te.has(k)){nn(k,br(void 0));return}if(vo(ue))if(N>qe){nn(k,br(void 0));return}else{I.add(k),await ce(x,ue);return}if(ci(ue)){rn(k,A,ue.error);return}pe(!go(ue),"Unhandled fetcher deferred data"),nn(k,br(ue.data))}}async function ce(k,A,_){let{submission:W,fetcherSubmission:q,replace:ae}=_===void 0?{}:_;A.revalidate&&(z=!0);let re=Ja(k.location,A.location,{_isRedirect:!0});if(pe(re,"Expected a location on the redirect navigation"),n){let Te=!1;if(A.reloadDocument)Te=!0;else if(v3.test(A.location)){const ot=e.history.createURL(A.location);Te=ot.origin!==t.location.origin||Bi(ot.pathname,l)==null}if(Te){ae?t.location.replace(A.location):t.location.assign(A.location);return}}P=null;let ie=ae===!0?Qe.Replace:Qe.Push,{formMethod:J,formAction:he,formEncType:qe}=k.navigation;!W&&!q&&J&&he&&qe&&(W=sg(k.navigation));let ue=W||q;if(v9.has(A.status)&&ue&&En(ue.formMethod))await ke(ie,re,{submission:Ge({},ue,{formAction:A.location}),preventScrollReset:T});else{let Te=rf(re,W);await ke(ie,re,{overrideNavigation:Te,fetcherSubmission:q,preventScrollReset:T})}}async function we(k,A,_,W,q){let ae=await Promise.all([..._.map(J=>na("loader",q,J,A,i,o,l,u.v7_relativeSplatPath)),...W.map(J=>J.matches&&J.match&&J.controller?na("loader",ra(e.history,J.path,J.controller.signal),J.match,J.matches,i,o,l,u.v7_relativeSplatPath):{type:Ue.error,error:un(404,{pathname:J.path})})]),re=ae.slice(0,_.length),ie=ae.slice(_.length);return await Promise.all([ag(k,_,re,re.map(()=>q.signal),!1,x.loaderData),ag(k,W.map(J=>J.match),ie,W.map(J=>J.controller?J.controller.signal:null),!0)]),{results:ae,loaderResults:re,fetcherResults:ie}}function pt(){z=!0,H.push(...eo()),K.forEach((k,A)=>{R.has(A)&&(j.push(A),In(A))})}function nn(k,A,_){_===void 0&&(_={}),x.fetchers.set(k,A),fe({fetchers:new Map(x.fetchers)},{flushSync:(_&&_.flushSync)===!0})}function rn(k,A,_,W){W===void 0&&(W={});let q=Ta(x.matches,A);yr(k),fe({errors:{[q.route.id]:_},fetchers:new Map(x.fetchers)},{flushSync:(W&&W.flushSync)===!0})}function on(k){return u.v7_fetcherPersist&&(X.set(k,(X.get(k)||0)+1),te.has(k)&&te.delete(k)),x.fetchers.get(k)||y9}function yr(k){let A=x.fetchers.get(k);R.has(k)&&!(A&&A.state==="loading"&&B.has(k))&&In(k),K.delete(k),B.delete(k),I.delete(k),te.delete(k),x.fetchers.delete(k)}function bc(k){if(u.v7_fetcherPersist){let A=(X.get(k)||0)-1;A<=0?(X.delete(k),te.add(k)):X.set(k,A)}else yr(k);fe({fetchers:new Map(x.fetchers)})}function In(k){let A=R.get(k);pe(A,"Expected fetch controller: "+k),A.abort(),R.delete(k)}function As(k){for(let A of k){let _=on(A),W=br(_.data);x.fetchers.set(A,W)}}function Ns(){let k=[],A=!1;for(let _ of I){let W=x.fetchers.get(_);pe(W,"Expected fetcher: "+_),W.state==="loading"&&(I.delete(_),k.push(_),A=!0)}return As(k),A}function Is(k){let A=[];for(let[_,W]of B)if(W0}function Ec(k,A){let _=x.blockers.get(k)||ta;return ne.get(k)!==A&&ne.set(k,A),_}function _s(k){x.blockers.delete(k),ne.delete(k)}function _n(k,A){let _=x.blockers.get(k)||ta;pe(_.state==="unblocked"&&A.state==="blocked"||_.state==="blocked"&&A.state==="blocked"||_.state==="blocked"&&A.state==="proceeding"||_.state==="blocked"&&A.state==="unblocked"||_.state==="proceeding"&&A.state==="unblocked","Invalid blocker state transition: "+_.state+" -> "+A.state);let W=new Map(x.blockers);W.set(k,A),fe({blockers:W})}function Cr(k){let{currentLocation:A,nextLocation:_,historyAction:W}=k;if(ne.size===0)return;ne.size>1&&ko(!1,"A router only supports one blocker at a time");let q=Array.from(ne.entries()),[ae,re]=q[q.length-1],ie=x.blockers.get(ae);if(!(ie&&ie.state==="proceeding")&&re({currentLocation:A,nextLocation:_,historyAction:W}))return ae}function eo(k){let A=[];return de.forEach((_,W)=>{(!k||k(W))&&(_.cancel(),A.push(W),de.delete(W))}),A}function Gi(k,A,_){if(d=k,C=A,y=_||null,!v&&x.navigation===nf){v=!0;let W=Ds(x.location,x.matches);W!=null&&fe({restoreScrollPosition:W})}return()=>{d=null,C=null,y=null}}function to(k,A){return y&&y(k,A.map(W=>f3(W,x.loaderData)))||k.key}function Sr(k,A){if(d&&C){let _=to(k,A);d[_]=C()}}function Ds(k,A){if(d){let _=to(k,A),W=d[_];if(typeof W=="number")return W}return null}function rt(k){i={},s=$d(k,o,void 0,i)}return E={get basename(){return l},get future(){return u},get state(){return x},get routes(){return a},get window(){return t},initialize:Ct,subscribe:Ze,enableScrollRestoration:Gi,navigate:ye,fetch:jt,revalidate:ht,createHref:k=>e.history.createHref(k),encodeLocation:k=>e.history.encodeLocation(k),getFetcher:on,deleteFetcher:bc,dispose:Tt,getBlocker:Ec,deleteBlocker:_s,_internalFetchControllers:R,_internalActiveDeferreds:de,_internalSetRoutes:rt},E}function x9(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function Fd(e,t,n,r,o,i,a,s){let l,u;if(a){l=[];for(let f of t)if(l.push(f),f.route.id===a){u=f;break}}else l=t,u=t[t.length-1];let c=kp(o||".",Rp(l,i),Bi(e.pathname,n)||e.pathname,s==="path");return o==null&&(c.search=e.search,c.hash=e.hash),(o==null||o===""||o===".")&&u&&u.route.index&&!$p(c.search)&&(c.search=c.search?c.search.replace(/^\?/,"?index&"):"?index"),r&&n!=="/"&&(c.pathname=c.pathname==="/"?n:rr([n,c.pathname])),Lo(c)}function Q0(e,t,n,r){if(!r||!x9(r))return{path:n};if(r.formMethod&&!M9(r.formMethod))return{path:n,error:un(405,{method:r.formMethod})};let o=()=>({path:n,error:un(400,{type:"invalid-body"})}),i=r.formMethod||"get",a=e?i.toUpperCase():i.toLowerCase(),s=S3(n);if(r.body!==void 0){if(r.formEncType==="text/plain"){if(!En(a))return o();let d=typeof r.body=="string"?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((y,C)=>{let[v,S]=C;return""+y+v+"="+S+` `},""):String(r.body);return{path:n,submission:{formMethod:a,formAction:s,formEncType:r.formEncType,formData:void 0,json:void 0,text:d}}}else if(r.formEncType==="application/json"){if(!En(a))return o();try{let d=typeof r.body=="string"?JSON.parse(r.body):r.body;return{path:n,submission:{formMethod:a,formAction:s,formEncType:r.formEncType,formData:void 0,json:d,text:void 0}}}catch{return o()}}}pe(typeof FormData=="function","FormData is not available in this environment");let l,u;if(r.formData)l=jd(r.formData),u=r.formData;else if(r.body instanceof FormData)l=jd(r.body),u=r.body;else if(r.body instanceof URLSearchParams)l=r.body,u=tg(l);else if(r.body==null)l=new URLSearchParams,u=new FormData;else try{l=new URLSearchParams(r.body),u=tg(l)}catch{return o()}let c={formMethod:a,formAction:s,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:u,json:void 0,text:void 0};if(En(c.formMethod))return{path:n,submission:c};let f=mr(n);return t&&f.search&&$p(f.search)&&l.append("index",""),f.search="?"+l,{path:Lo(f),submission:c}}function w9(e,t){let n=e;if(t){let r=e.findIndex(o=>o.route.id===t);r>=0&&(n=e.slice(0,r))}return n}function Y0(e,t,n,r,o,i,a,s,l,u,c,f,d,y,C,v){let S=v?Object.values(v)[0]:C?Object.values(C)[0]:void 0,g=e.createURL(t.location),p=e.createURL(o),m=v?Object.keys(v)[0]:void 0,E=w9(n,m).filter((b,T)=>{let{route:P}=b;if(P.lazy)return!0;if(P.loader==null)return!1;if(i)return P.loader.hydrate?!0:t.loaderData[P.id]===void 0&&(!t.errors||t.errors[P.id]===void 0);if(b9(t.loaderData,t.matches[T],b)||s.some(D=>D===b.route.id))return!0;let O=t.matches[T],$=b;return J0(b,Ge({currentUrl:g,currentParams:O.params,nextUrl:p,nextParams:$.params},r,{actionResult:S,defaultShouldRevalidate:a||g.pathname+g.search===p.pathname+p.search||g.search!==p.search||C3(O,$)}))}),x=[];return c.forEach((b,T)=>{if(i||!n.some(F=>F.route.id===b.routeId)||u.has(T))return;let P=ui(d,b.path,y);if(!P){x.push({key:T,routeId:b.routeId,path:b.path,matches:null,match:null,controller:null});return}let O=t.fetchers.get(T),$=Ad(P,b.path),D=!1;f.has(T)?D=!1:l.includes(T)?D=!0:O&&O.state!=="idle"&&O.data===void 0?D=a:D=J0($,Ge({currentUrl:g,currentParams:t.matches[t.matches.length-1].params,nextUrl:p,nextParams:n[n.length-1].params},r,{actionResult:S,defaultShouldRevalidate:a})),D&&x.push({key:T,routeId:b.routeId,path:b.path,matches:P,match:$,controller:new AbortController})}),[E,x]}function b9(e,t,n){let r=!t||n.route.id!==t.route.id,o=e[n.route.id]===void 0;return r||o}function C3(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function J0(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}async function eg(e,t,n){if(!e.lazy)return;let r=await e.lazy();if(!e.lazy)return;let o=n[e.id];pe(o,"No route found in manifest");let i={};for(let a in r){let l=o[a]!==void 0&&a!=="hasErrorBoundary";ko(!l,'Route "'+o.id+'" has a static property "'+a+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+a+'" will be ignored.')),!l&&!Hx.has(a)&&(i[a]=r[a])}Object.assign(o,i),Object.assign(o,Ge({},t(o),{lazy:void 0}))}async function na(e,t,n,r,o,i,a,s,l){l===void 0&&(l={});let u,c,f,d=v=>{let S,g=new Promise((p,m)=>S=m);return f=()=>S(),t.signal.addEventListener("abort",f),Promise.race([v({request:t,params:n.params,context:l.requestContext}),g])};try{let v=n.route[e];if(n.route.lazy)if(v){let S,g=await Promise.all([d(v).catch(p=>{S=p}),eg(n.route,i,o)]);if(S)throw S;c=g[0]}else if(await eg(n.route,i,o),v=n.route[e],v)c=await d(v);else if(e==="action"){let S=new URL(t.url),g=S.pathname+S.search;throw un(405,{method:t.method,pathname:g,routeId:n.route.id})}else return{type:Ue.data,data:void 0};else if(v)c=await d(v);else{let S=new URL(t.url),g=S.pathname+S.search;throw un(404,{pathname:g})}pe(c!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+n.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(v){u=Ue.error,c=v}finally{f&&t.signal.removeEventListener("abort",f)}if(O9(c)){let v=c.status;if(g9.has(v)){let g=c.headers.get("Location");if(pe(g,"Redirects returned/thrown from loaders/actions must have a Location header"),!v3.test(g))g=Fd(new URL(t.url),r.slice(0,r.indexOf(n)+1),a,!0,g,s);else if(!l.isStaticRequest){let p=new URL(t.url),m=g.startsWith("//")?new URL(p.protocol+g):new URL(g),w=Bi(m.pathname,a)!=null;m.origin===p.origin&&w&&(g=m.pathname+m.search+m.hash)}if(l.isStaticRequest)throw c.headers.set("Location",g),c;return{type:Ue.redirect,status:v,location:g,revalidate:c.headers.get("X-Remix-Revalidate")!==null,reloadDocument:c.headers.get("X-Remix-Reload-Document")!==null}}if(l.isRouteRequest)throw{type:u===Ue.error?Ue.error:Ue.data,response:c};let S;try{let g=c.headers.get("Content-Type");g&&/\bapplication\/json\b/.test(g)?S=await c.json():S=await c.text()}catch(g){return{type:Ue.error,error:g}}return u===Ue.error?{type:u,error:new Lp(v,c.statusText,S),headers:c.headers}:{type:Ue.data,data:S,statusCode:c.status,headers:c.headers}}if(u===Ue.error)return{type:u,error:c};if(T9(c)){var y,C;return{type:Ue.deferred,deferredData:c,statusCode:(y=c.init)==null?void 0:y.status,headers:((C=c.init)==null?void 0:C.headers)&&new Headers(c.init.headers)}}return{type:Ue.data,data:c}}function ra(e,t,n,r){let o=e.createURL(S3(t)).toString(),i={signal:n};if(r&&En(r.formMethod)){let{formMethod:a,formEncType:s}=r;i.method=a.toUpperCase(),s==="application/json"?(i.headers=new Headers({"Content-Type":s}),i.body=JSON.stringify(r.json)):s==="text/plain"?i.body=r.text:s==="application/x-www-form-urlencoded"&&r.formData?i.body=jd(r.formData):i.body=r.formData}return new Request(o,i)}function jd(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r=="string"?r:r.name);return t}function tg(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function E9(e,t,n,r,o){let i={},a=null,s,l=!1,u={};return n.forEach((c,f)=>{let d=t[f].route.id;if(pe(!vo(c),"Cannot handle redirect results in processLoaderData"),ci(c)){let y=Ta(e,d),C=c.error;r&&(C=Object.values(r)[0],r=void 0),a=a||{},a[y.route.id]==null&&(a[y.route.id]=C),i[d]=void 0,l||(l=!0,s=m3(c.error)?c.error.status:500),c.headers&&(u[d]=c.headers)}else go(c)?(o.set(d,c.deferredData),i[d]=c.deferredData.data):i[d]=c.data,c.statusCode!=null&&c.statusCode!==200&&!l&&(s=c.statusCode),c.headers&&(u[d]=c.headers)}),r&&(a=r,i[Object.keys(r)[0]]=void 0),{loaderData:i,errors:a,statusCode:s||200,loaderHeaders:u}}function ng(e,t,n,r,o,i,a,s){let{loaderData:l,errors:u}=E9(t,n,r,o,s);for(let c=0;cr.route.id===t)+1):[...e]).reverse().find(r=>r.route.hasErrorBoundary===!0)||e[0]}function og(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 un(e,t){let{pathname:n,routeId:r,method:o,type:i}=t===void 0?{}:t,a="Unknown Server Error",s="Unknown @remix-run/router error";return e===400?(a="Bad Request",o&&n&&r?s="You made a "+o+' request to "'+n+'" but '+('did not provide a `loader` for route "'+r+'", ')+"so there is no way to handle the request.":i==="defer-action"?s="defer() is not supported in actions":i==="invalid-body"&&(s="Unable to encode submission body")):e===403?(a="Forbidden",s='Route "'+r+'" does not match URL "'+n+'"'):e===404?(a="Not Found",s='No route matches URL "'+n+'"'):e===405&&(a="Method Not Allowed",o&&n&&r?s="You made a "+o.toUpperCase()+' request to "'+n+'" but '+('did not provide an `action` for route "'+r+'", ')+"so there is no way to handle the request.":o&&(s='Invalid request method "'+o.toUpperCase()+'"')),new Lp(e||500,a,new Error(s),!0)}function ig(e){for(let t=e.length-1;t>=0;t--){let n=e[t];if(vo(n))return{result:n,idx:t}}}function S3(e){let t=typeof e=="string"?mr(e):e;return Lo(Ge({},t,{hash:""}))}function P9(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function go(e){return e.type===Ue.deferred}function ci(e){return e.type===Ue.error}function vo(e){return(e&&e.type)===Ue.redirect}function T9(e){let t=e;return t&&typeof t=="object"&&typeof t.data=="object"&&typeof t.subscribe=="function"&&typeof t.cancel=="function"&&typeof t.resolveData=="function"}function O9(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function M9(e){return m9.has(e.toLowerCase())}function En(e){return h9.has(e.toLowerCase())}async function ag(e,t,n,r,o,i){for(let a=0;af.route.id===l.route.id),c=u!=null&&!C3(u,l)&&(i&&i[l.route.id])!==void 0;if(go(s)&&(o||c)){let f=r[a];pe(f,"Expected an AbortSignal for revalidating fetcher deferred result"),await x3(s,f,o).then(d=>{d&&(n[a]=d||n[a])})}}}async function x3(e,t,n){if(n===void 0&&(n=!1),!await e.deferredData.resolveData(t)){if(n)try{return{type:Ue.data,data:e.deferredData.unwrappedData}}catch(o){return{type:Ue.error,error:o}}return{type:Ue.data,data:e.deferredData.data}}}function $p(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function Ad(e,t){let n=typeof t=="string"?mr(t).search:t.search;if(e[e.length-1].route.index&&$p(n||""))return e[e.length-1];let r=p3(e);return r[r.length-1]}function sg(e){let{formMethod:t,formAction:n,formEncType:r,text:o,formData:i,json:a}=e;if(!(!t||!n||!r)){if(o!=null)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:o};if(i!=null)return{formMethod:t,formAction:n,formEncType:r,formData:i,json:void 0,text:void 0};if(a!==void 0)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:a,text:void 0}}}function rf(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 R9(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 oa(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 k9(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 br(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 L9(e,t){try{let n=e.sessionStorage.getItem(y3);if(n){let r=JSON.parse(n);for(let[o,i]of Object.entries(r||{}))i&&Array.isArray(i)&&t.set(o,new Set(i||[]))}}catch{}}function $9(e,t){if(t.size>0){let n={};for(let[r,o]of t)n[r]=[...o];try{e.sessionStorage.setItem(y3,JSON.stringify(n))}catch(r){ko(!1,"Failed to save applied view transitions in sessionStorage ("+r+").")}}}/** * React Router v6.21.1 * * 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 es(){return es=Object.assign?Object.assign.bind():function(e){for(var t=1;t{s.current=!0}),h.useCallback(function(u,c){if(c===void 0&&(c={}),!s.current)return;if(typeof u=="number"){r.go(u);return}let f=kp(u,JSON.parse(a),i,c.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:rr([t,f.pathname])),(c.replace?r.replace:r.push)(f,c.state,c)},[t,r,a,i,e])}const A9=h.createContext(null);function N9(e){let t=h.useContext(gr).outlet;return t&&h.createElement(A9.Provider,{value:e},t)}function Sj(){let{matches:e}=h.useContext(gr),t=e[e.length-1];return t?t.params:{}}function T3(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=h.useContext(Io),{matches:o}=h.useContext(gr),{pathname:i}=ws(),a=JSON.stringify(Rp(o,r.v7_relativeSplatPath));return h.useMemo(()=>kp(e,JSON.parse(a),i,n==="path"),[e,a,i,n])}function I9(e,t,n,r){xs()||pe(!1);let{navigator:o}=h.useContext(Io),{matches:i}=h.useContext(gr),a=i[i.length-1],s=a?a.params:{};a&&a.pathname;let l=a?a.pathnameBase:"/";a&&a.route;let u=ws(),c;if(t){var f;let S=typeof t=="string"?mr(t):t;l==="/"||(f=S.pathname)!=null&&f.startsWith(l)||pe(!1),c=S}else c=u;let d=c.pathname||"/",y=l==="/"?d:d.slice(l.length)||"/",C=ui(e,{pathname:y}),v=z9(C&&C.map(S=>Object.assign({},S,{params:Object.assign({},s,S.params),pathname:rr([l,o.encodeLocation?o.encodeLocation(S.pathname).pathname:S.pathname]),pathnameBase:S.pathnameBase==="/"?l:rr([l,o.encodeLocation?o.encodeLocation(S.pathnameBase).pathname:S.pathnameBase])})),i,n,r);return t&&v?h.createElement(Gu.Provider,{value:{location:es({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:Qe.Pop}},v):v}function _9(){let e=K9(),t=m3(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"},i=null;return h.createElement(h.Fragment,null,h.createElement("h2",null,"Unexpected Application Error!"),h.createElement("h3",{style:{fontStyle:"italic"}},t),n?h.createElement("pre",{style:o},n):null,i)}const D9=h.createElement(_9,null);class V9 extends h.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?h.createElement(gr.Provider,{value:this.props.routeContext},h.createElement(b3.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function B9(e){let{routeContext:t,match:n,children:r}=e,o=h.useContext(Wu);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),h.createElement(gr.Provider,{value:t},r)}function z9(e,t,n,r){var o;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var i;if((i=n)!=null&&i.errors)e=n.matches;else return null}let a=e,s=(o=n)==null?void 0:o.errors;if(s!=null){let c=a.findIndex(f=>f.route.id&&(s==null?void 0:s[f.route.id]));c>=0||pe(!1),a=a.slice(0,Math.min(a.length,c+1))}let l=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let c=0;c=0?a=a.slice(0,u+1):a=[a[0]];break}}}return a.reduceRight((c,f,d)=>{let y,C=!1,v=null,S=null;n&&(y=s&&f.route.id?s[f.route.id]:void 0,v=f.route.errorElement||D9,l&&(u<0&&d===0?(q9("route-fallback",!1),C=!0,S=null):u===d&&(C=!0,S=f.route.hydrateFallbackElement||null)));let g=t.concat(a.slice(0,d+1)),p=()=>{let m;return y?m=v:C?m=S:f.route.Component?m=h.createElement(f.route.Component,null):f.route.element?m=f.route.element:m=c,h.createElement(B9,{match:f,routeContext:{outlet:c,matches:g,isDataRoute:n!=null},children:m})};return n&&(f.route.ErrorBoundary||f.route.errorElement||d===0)?h.createElement(V9,{location:n.location,revalidation:n.revalidation,component:v,error:y,children:p(),routeContext:{outlet:null,matches:g,isDataRoute:!0}}):p()},null)}var O3=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(O3||{}),fr=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(fr||{});function H9(e){let t=h.useContext(Wu);return t||pe(!1),t}function bs(e){let t=h.useContext(w3);return t||pe(!1),t}function U9(e){let t=h.useContext(gr);return t||pe(!1),t}function Fp(e){let t=U9(),n=t.matches[t.matches.length-1];return n.route.id||pe(!1),n.route.id}function W9(){return bs(fr.UseNavigation).navigation}function G9(){let{matches:e,loaderData:t}=bs(fr.UseMatches);return h.useMemo(()=>e.map(n=>f3(n,t)),[e,t])}function xj(){let e=bs(fr.UseLoaderData),t=Fp(fr.UseLoaderData);if(e.errors&&e.errors[t]!=null){console.error("You cannot `useLoaderData` in an errorElement (routeId: "+t+")");return}return e.loaderData[t]}function wj(e){return bs(fr.UseRouteLoaderData).loaderData[e]}function K9(){var e;let t=h.useContext(b3),n=bs(fr.UseRouteError),r=Fp(fr.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function Z9(){let{router:e}=H9(O3.UseNavigateStable),t=Fp(fr.UseNavigateStable),n=h.useRef(!1);return E3(()=>{n.current=!0}),h.useCallback(function(o,i){i===void 0&&(i={}),n.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,es({fromRouteId:t},i)))},[e,t])}const lg={};function q9(e,t,n){!t&&!lg[e]&&(lg[e]=!0)}function X9(e){return N9(e.context)}function Q9(e){let{basename:t="/",children:n=null,location:r,navigationType:o=Qe.Pop,navigator:i,static:a=!1,future:s}=e;xs()&&pe(!1);let l=t.replace(/^\/*/,"/"),u=h.useMemo(()=>({basename:l,navigator:i,static:a,future:es({v7_relativeSplatPath:!1},s)}),[l,s,i,a]);typeof r=="string"&&(r=mr(r));let{pathname:c="/",search:f="",hash:d="",state:y=null,key:C="default"}=r,v=h.useMemo(()=>{let S=Bi(c,l);return S==null?null:{location:{pathname:S,search:f,hash:d,state:y,key:C},navigationType:o}},[l,c,f,d,y,C,o]);return v==null?null:h.createElement(Io.Provider,{value:u},h.createElement(Gu.Provider,{children:n,value:v}))}new Promise(()=>{});function Y9(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:h.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:h.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:h.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}/** * React Router DOM v6.21.1 * * 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 ts(){return ts=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[o]=e[o]);return n}function e8(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function t8(e,t){return e.button===0&&(!t||t==="_self")&&!e8(e)}function Nd(e){return e===void 0&&(e=""),new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(o=>[n,o]):[[n,r]])},[]))}function n8(e,t){let n=Nd(e);return t&&t.forEach((r,o)=>{n.has(o)||t.getAll(o).forEach(i=>{n.append(o,i)})}),n}const r8=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"];function o8(e,t){return S9({basename:t==null?void 0:t.basename,future:ts({},t==null?void 0:t.future,{v7_prependBasename:!0}),history:Vx({window:t==null?void 0:t.window}),hydrationData:(t==null?void 0:t.hydrationData)||i8(),routes:e,mapRouteProperties:Y9,window:t==null?void 0:t.window}).initialize()}function i8(){var e;let t=(e=window)==null?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=ts({},t,{errors:a8(t.errors)})),t}function a8(e){if(!e)return null;let t=Object.entries(e),n={};for(let[r,o]of t)if(o&&o.__type==="RouteErrorResponse")n[r]=new Lp(o.status,o.statusText,o.data,o.internal===!0);else if(o&&o.__type==="Error"){if(o.__subType){let i=window[o.__subType];if(typeof i=="function")try{let a=new i(o.message);a.stack="",n[r]=a}catch{}}if(n[r]==null){let i=new Error(o.message);i.stack="",n[r]=i}}else n[r]=o;return n}const s8=h.createContext({isTransitioning:!1}),l8=h.createContext(new Map),u8="startTransition",ug=_i[u8],c8="flushSync",cg=u3[c8];function f8(e){ug?ug(e):e()}function ia(e){cg?cg(e):e()}class d8{constructor(){this.status="pending",this.promise=new Promise((t,n)=>{this.resolve=r=>{this.status==="pending"&&(this.status="resolved",t(r))},this.reject=r=>{this.status==="pending"&&(this.status="rejected",n(r))}})}}function h8(e){let{fallbackElement:t,router:n,future:r}=e,[o,i]=h.useState(n.state),[a,s]=h.useState(),[l,u]=h.useState({isTransitioning:!1}),[c,f]=h.useState(),[d,y]=h.useState(),[C,v]=h.useState(),S=h.useRef(new Map),{v7_startTransition:g}=r||{},p=h.useCallback(b=>{g?f8(b):b()},[g]),m=h.useCallback((b,T)=>{let{deletedFetchers:P,unstable_flushSync:O,unstable_viewTransitionOpts:$}=T;P.forEach(F=>S.current.delete(F)),b.fetchers.forEach((F,z)=>{F.data!==void 0&&S.current.set(z,F.data)});let D=n.window==null||typeof n.window.document.startViewTransition!="function";if(!$||D){O?ia(()=>i(b)):p(()=>i(b));return}if(O){ia(()=>{d&&(c&&c.resolve(),d.skipTransition()),u({isTransitioning:!0,flushSync:!0,currentLocation:$.currentLocation,nextLocation:$.nextLocation})});let F=n.window.document.startViewTransition(()=>{ia(()=>i(b))});F.finished.finally(()=>{ia(()=>{f(void 0),y(void 0),s(void 0),u({isTransitioning:!1})})}),ia(()=>y(F));return}d?(c&&c.resolve(),d.skipTransition(),v({state:b,currentLocation:$.currentLocation,nextLocation:$.nextLocation})):(s(b),u({isTransitioning:!0,flushSync:!1,currentLocation:$.currentLocation,nextLocation:$.nextLocation}))},[n.window,d,c,S,p]);h.useLayoutEffect(()=>n.subscribe(m),[n,m]),h.useEffect(()=>{l.isTransitioning&&!l.flushSync&&f(new d8)},[l]),h.useEffect(()=>{if(c&&a&&n.window){let b=a,T=c.promise,P=n.window.document.startViewTransition(async()=>{p(()=>i(b)),await T});P.finished.finally(()=>{f(void 0),y(void 0),s(void 0),u({isTransitioning:!1})}),y(P)}},[p,a,c,n.window]),h.useEffect(()=>{c&&a&&o.location.key===a.location.key&&c.resolve()},[c,d,o.location,a]),h.useEffect(()=>{!l.isTransitioning&&C&&(s(C.state),u({isTransitioning:!0,flushSync:!1,currentLocation:C.currentLocation,nextLocation:C.nextLocation}),v(void 0))},[l.isTransitioning,C]),h.useEffect(()=>{},[]);let w=h.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:b=>n.navigate(b),push:(b,T,P)=>n.navigate(b,{state:T,preventScrollReset:P==null?void 0:P.preventScrollReset}),replace:(b,T,P)=>n.navigate(b,{replace:!0,state:T,preventScrollReset:P==null?void 0:P.preventScrollReset})}),[n]),E=n.basename||"/",x=h.useMemo(()=>({router:n,navigator:w,static:!1,basename:E}),[n,w,E]);return h.createElement(h.Fragment,null,h.createElement(Wu.Provider,{value:x},h.createElement(w3.Provider,{value:o},h.createElement(l8.Provider,{value:S.current},h.createElement(s8.Provider,{value:l},h.createElement(Q9,{basename:E,location:o.location,navigationType:o.historyAction,navigator:w,future:{v7_relativeSplatPath:n.future.v7_relativeSplatPath}},o.initialized||n.future.v7_partialHydration?h.createElement(p8,{routes:n.routes,future:n.future,state:o}):t))))),null)}function p8(e){let{routes:t,future:n,state:r}=e;return I9(t,void 0,r,n)}const m8=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",g8=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,bj=h.forwardRef(function(t,n){let{onClick:r,relative:o,reloadDocument:i,replace:a,state:s,target:l,to:u,preventScrollReset:c,unstable_viewTransition:f}=t,d=J9(t,r8),{basename:y}=h.useContext(Io),C,v=!1;if(typeof u=="string"&&g8.test(u)&&(C=u,m8))try{let m=new URL(window.location.href),w=u.startsWith("//")?new URL(m.protocol+u):new URL(u),E=Bi(w.pathname,y);w.origin===m.origin&&E!=null?u=E+w.search+w.hash:v=!0}catch{}let S=F9(u,{relative:o}),g=v8(u,{replace:a,state:s,target:l,preventScrollReset:c,relative:o,unstable_viewTransition:f});function p(m){r&&r(m),m.defaultPrevented||g(m)}return h.createElement("a",ts({},d,{href:C||S,onClick:v||i?r:p,ref:n,target:l}))});var fg;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(fg||(fg={}));var dg;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(dg||(dg={}));function v8(e,t){let{target:n,replace:r,state:o,preventScrollReset:i,relative:a,unstable_viewTransition:s}=t===void 0?{}:t,l=P3(),u=ws(),c=T3(e,{relative:a});return h.useCallback(f=>{if(t8(f,n)){f.preventDefault();let d=r!==void 0?r:Lo(u)===Lo(c);l(e,{replace:d,state:o,preventScrollReset:i,relative:a,unstable_viewTransition:s})}},[u,l,c,r,o,n,e,i,a,s])}function Ej(e){let t=h.useRef(Nd(e)),n=h.useRef(!1),r=ws(),o=h.useMemo(()=>n8(r.search,n.current?null:t.current),[r.search]),i=P3(),a=h.useCallback((s,l)=>{const u=Nd(typeof s=="function"?s(o):s);n.current=!0,i("?"+u,l)},[i,o]);return[o,a]}var M3={exports:{}};/*! Copyright (c) 2018 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames */(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var i="",a=0;a1&&arguments[1]!==void 0?arguments[1]:{},n=[];return Z.Children.forEach(e,function(r){r==null&&!t.keepEmpty||(Array.isArray(r)?n=n.concat(ns(r)):Np.isFragment(r)&&r.props?n=n.concat(ns(r.props.children,t)):n.push(r))}),n}var Id={},x8=function(t){};function w8(e,t){}function b8(e,t){}function E8(){Id={}}function L3(e,t,n){!t&&!Id[n]&&(e(!1,n),Id[n]=!0)}function Qt(e,t){L3(w8,e,t)}function P8(e,t){L3(b8,e,t)}Qt.preMessage=x8;Qt.resetWarned=E8;Qt.noteOnce=P8;function Ee(e){"@babel/helpers - typeof";return Ee=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ee(e)}function T8(e,t){if(Ee(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Ee(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function $3(e){var t=T8(e,"string");return Ee(t)=="symbol"?t:String(t)}function V(e,t,n){return t=$3(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function U(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Ce(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function k8(e,t){if(t&&(Ee(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ce(e)}function Ps(e){var t=R8();return function(){var r=pu(e),o;if(t){var i=pu(this).constructor;o=Reflect.construct(r,arguments,i)}else o=r.apply(this,arguments);return k8(this,o)}}function _p(e,t){var n=U({},e);return Array.isArray(t)&&t.forEach(function(r){delete n[r]}),n}function Dd(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&arguments[1]!==void 0?arguments[1]:1;mg+=1;var r=mg;function o(i){if(i===0)_3(r),t();else{var a=N3(function(){o(i-1)});Vp.set(r,a)}}return o(n),r};$o.cancel=function(e){var t=Vp.get(e);return _3(e),I3(t)};function D3(e){if(Array.isArray(e))return e}function F8(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,i,a,s=[],l=!0,u=!1;try{if(i=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(c){u=!0,o=c}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}function V3(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Y(e,t){return D3(e)||F8(e,t)||Dp(e,t)||V3()}function mu(e){for(var t=0,n,r=0,o=e.length;o>=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}function kt(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Vd(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var n=t;n;){if(n===e)return!0;n=n.parentNode}return!1}var gg="data-rc-order",vg="data-rc-priority",j8="rc-util-key",Bd=new Map;function B3(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):j8}function ic(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function A8(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function z3(e){return Array.from((Bd.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function H3(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!kt())return null;var n=t.csp,r=t.prepend,o=t.priority,i=o===void 0?0:o,a=A8(r),s=a==="prependQueue",l=document.createElement("style");l.setAttribute(gg,a),s&&i&&l.setAttribute(vg,"".concat(i)),n!=null&&n.nonce&&(l.nonce=n==null?void 0:n.nonce),l.innerHTML=e;var u=ic(t),c=u.firstChild;if(r){if(s){var f=z3(u).filter(function(d){if(!["prepend","prependQueue"].includes(d.getAttribute(gg)))return!1;var y=Number(d.getAttribute(vg)||0);return i>=y});if(f.length)return u.insertBefore(l,f[f.length-1].nextSibling),l}u.insertBefore(l,c)}else u.appendChild(l);return l}function U3(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=ic(t);return z3(n).find(function(r){return r.getAttribute(B3(t))===e})}function rs(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=U3(e,t);if(n){var r=ic(t);r.removeChild(n)}}function N8(e,t){var n=Bd.get(e);if(!n||!Vd(document,n)){var r=H3("",t),o=r.parentNode;Bd.set(e,o),e.removeChild(r)}}function Gr(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=ic(n);N8(r,n);var o=U3(t,n);if(o){var i,a;if((i=n.csp)!==null&&i!==void 0&&i.nonce&&o.nonce!==((a=n.csp)===null||a===void 0?void 0:a.nonce)){var s;o.nonce=(s=n.csp)===null||s===void 0?void 0:s.nonce}return o.innerHTML!==e&&(o.innerHTML=e),o}var l=H3(e,n);return l.setAttribute(B3(n),t),l}function I8(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i=0)&&(n[o]=e[o]);return n}function jn(e,t){if(e==null)return{};var n=I8(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function gu(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=new Set;function o(i,a){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,l=r.has(i);if(Qt(!l,"Warning: There may be circular references"),l)return!1;if(i===a)return!0;if(n&&s>1)return!1;r.add(i);var u=s+1;if(Array.isArray(i)){if(!Array.isArray(a)||i.length!==a.length)return!1;for(var c=0;c1&&arguments[1]!==void 0?arguments[1]:!1,a={map:this.cache};return n.forEach(function(s){if(!a)a=void 0;else{var l;a=(l=a)===null||l===void 0||(l=l.map)===null||l===void 0?void 0:l.get(s)}}),(r=a)!==null&&r!==void 0&&r.value&&i&&(a.value[1]=this.cacheCallTimes++),(o=a)===null||o===void 0?void 0:o.value}},{key:"get",value:function(n){var r;return(r=this.internalGet(n,!0))===null||r===void 0?void 0:r[0]}},{key:"has",value:function(n){return!!this.internalGet(n)}},{key:"set",value:function(n,r){var o=this;if(!this.has(n)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var i=this.keys.reduce(function(u,c){var f=Y(u,2),d=f[1];return o.internalGet(c)[1]0,void 0),Cg+=1}return Cn(e,[{key:"getDerivativeToken",value:function(n){return this.derivatives.reduce(function(r,o){return o(n,r)},void 0)}}]),e}(),of=new Bp;function zd(e){var t=Array.isArray(e)?e:[e];return of.has(t)||of.set(t,new G3(t)),of.get(t)}var B8=new WeakMap,af={};function z8(e,t){for(var n=B8,r=0;r3&&arguments[3]!==void 0?arguments[3]:{},i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(i)return e;var a=U(U({},o),{},(r={},V(r,$i,t),V(r,Ln,n),r)),s=Object.keys(a).map(function(l){var u=a[l];return u?"".concat(l,'="').concat(u,'"'):null}).filter(function(l){return l}).join(" ");return"")}var K3=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return"--".concat(n?"".concat(n,"-"):"").concat(t).replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1-$2").replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase()},U8=function(t,n,r){return Object.keys(t).length?".".concat(n).concat(r!=null&&r.scope?".".concat(r.scope):"","{").concat(Object.entries(t).map(function(o){var i=Y(o,2),a=i[0],s=i[1];return"".concat(a,":").concat(s,";")}).join(""),"}"):""},Z3=function(t,n,r){var o={},i={};return Object.entries(t).forEach(function(a){var s,l,u=Y(a,2),c=u[0],f=u[1];if(r!=null&&(s=r.preserve)!==null&&s!==void 0&&s[c])i[c]=f;else if((typeof f=="string"||typeof f=="number")&&!(r!=null&&(l=r.ignore)!==null&&l!==void 0&&l[c])){var d,y=K3(c,r==null?void 0:r.prefix);o[y]=typeof f=="number"&&!(r!=null&&(d=r.unitless)!==null&&d!==void 0&&d[c])?"".concat(f,"px"):String(f),i[c]="var(".concat(y,")")}}),[i,U8(o,n,{scope:r==null?void 0:r.scope})]},wg=kt()?h.useLayoutEffect:h.useEffect,is=function(t,n){var r=h.useRef(!0);wg(function(){return t(r.current)},n),wg(function(){return r.current=!1,function(){r.current=!0}},[])},Rj=function(t,n){is(function(r){if(!r)return t()},n)},W8=U({},_i),bg=W8.useInsertionEffect,G8=function(t,n,r){h.useMemo(t,r),is(function(){return n(!0)},r)},K8=bg?function(e,t,n){return bg(function(){return e(),t()},n)}:G8,Z8=U({},_i),q8=Z8.useInsertionEffect,X8=function(t){var n=[],r=!1;function o(i){r||n.push(i)}return h.useEffect(function(){return r=!1,function(){r=!0,n.length&&n.forEach(function(i){return i()})}},t),o},Q8=function(){return function(t){t()}},Y8=typeof q8<"u"?X8:Q8;function Up(e,t,n,r,o){var i=h.useContext(Fi),a=i.cache,s=[e].concat(ee(t)),l=s.join("_"),u=Y8([l]),c=function(C){a.update(s,function(v){var S=v||[void 0,void 0],g=Y(S,2),p=g[0],m=p===void 0?0:p,w=g[1],E=w,x=E||n(),b=[m,x];return C?C(b):b})};h.useMemo(function(){c()},[l]);var f=a.get(s),d=f[1];return K8(function(){o==null||o(d)},function(y){return c(function(C){var v=Y(C,2),S=v[0],g=v[1];return y&&S===0&&(o==null||o(d)),[S+1,g]}),function(){a.update(s,function(C){var v=C||[],S=Y(v,2),g=S[0],p=g===void 0?0:g,m=S[1],w=p-1;return w===0?(u(function(){(y||!a.get(s))&&(r==null||r(m,!1))}),null):[p-1,m]})}},[l]),d}var J8={},ew="css",fo=new Map;function tw(e){fo.set(e,(fo.get(e)||0)+1)}function nw(e,t){if(typeof document<"u"){var n=document.querySelectorAll("style[".concat($i,'="').concat(e,'"]'));n.forEach(function(r){if(r[$r]===t){var o;(o=r.parentNode)===null||o===void 0||o.removeChild(r)}})}}var rw=0;function ow(e,t){fo.set(e,(fo.get(e)||0)-1);var n=Array.from(fo.keys()),r=n.filter(function(o){var i=fo.get(o)||0;return i<=0});n.length-r.length>rw&&r.forEach(function(o){nw(o,t),fo.delete(o)})}var iw=function(t,n,r,o){var i=r.getDerivativeToken(t),a=U(U({},i),n);return o&&(a=o(a)),a},q3="token";function aw(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=h.useContext(Fi),o=r.cache.instanceId,i=r.container,a=n.salt,s=a===void 0?"":a,l=n.override,u=l===void 0?J8:l,c=n.formatToken,f=n.getComputedToken,d=n.cssVar,y=z8(function(){return Object.assign.apply(Object,[{}].concat(ee(t)))},t),C=Oa(y),v=Oa(u),S=d?Oa(d):"",g=Up(q3,[s,e.id,C,v,S],function(){var p,m=f?f(y,u,e):iw(y,u,e,c),w=U({},m),E="";if(d){var x=Z3(m,d.key,{prefix:d.prefix,ignore:d.ignore,unitless:d.unitless,preserve:d.preserve}),b=Y(x,2);m=b[0],E=b[1]}var T=xg(m,s);m._tokenKey=T,w._tokenKey=xg(w,s);var P=(p=d==null?void 0:d.key)!==null&&p!==void 0?p:T;m._themeKey=P,tw(P);var O="".concat(ew,"-").concat(mu(T));return m._hashId=O,[m,O,w,E,(d==null?void 0:d.key)||""]},function(p){ow(p[0]._themeKey,o)},function(p){var m=Y(p,4),w=m[0],E=m[3];if(d&&E){var x=Gr(E,mu("css-variables-".concat(w._themeKey)),{mark:Ln,prepend:"queue",attachTo:i,priority:-999});x[$r]=o,x.setAttribute($i,w._themeKey)}});return g}var sw=function(t,n,r){var o=Y(t,5),i=o[2],a=o[3],s=o[4],l=r||{},u=l.plain;if(!a)return null;var c=i._tokenKey,f=-999,d={"data-rc-order":"prependQueue","data-rc-priority":"".concat(f)},y=os(a,s,c,d,u);return[f,c,y]},lw={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},X3="comm",Q3="rule",Y3="decl",uw="@import",cw="@keyframes",fw="@layer",J3=Math.abs,Wp=String.fromCharCode;function eC(e){return e.trim()}function Fl(e,t,n){return e.replace(t,n)}function dw(e,t,n){return e.indexOf(t,n)}function as(e,t){return e.charCodeAt(t)|0}function ss(e,t,n){return e.slice(t,n)}function Yn(e){return e.length}function hw(e){return e.length}function il(e,t){return t.push(e),e}var ac=1,ji=1,tC=0,gn=0,tt=0,zi="";function Gp(e,t,n,r,o,i,a,s){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:ac,column:ji,length:a,return:"",siblings:s}}function pw(){return tt}function mw(){return tt=gn>0?as(zi,--gn):0,ji--,tt===10&&(ji=1,ac--),tt}function $n(){return tt=gn2||Ud(tt)>3?"":" "}function Cw(e,t){for(;--t&&$n()&&!(tt<48||tt>102||tt>57&&tt<65||tt>70&&tt<97););return sc(e,jl()+(t<6&&bo()==32&&$n()==32))}function Wd(e){for(;$n();)switch(tt){case e:return gn;case 34:case 39:e!==34&&e!==39&&Wd(tt);break;case 40:e===41&&Wd(e);break;case 92:$n();break}return gn}function Sw(e,t){for(;$n()&&e+tt!==47+10;)if(e+tt===42+42&&bo()===47)break;return"/*"+sc(t,gn-1)+"*"+Wp(e===47?e:$n())}function xw(e){for(;!Ud(bo());)$n();return sc(e,gn)}function ww(e){return vw(Al("",null,null,null,[""],e=gw(e),0,[0],e))}function Al(e,t,n,r,o,i,a,s,l){for(var u=0,c=0,f=a,d=0,y=0,C=0,v=1,S=1,g=1,p=0,m="",w=o,E=i,x=r,b=m;S;)switch(C=p,p=$n()){case 40:if(C!=108&&as(b,f-1)==58){dw(b+=Fl(cf(p),"&","&\f"),"&\f",J3(u?s[u-1]:0))!=-1&&(g=-1);break}case 34:case 39:case 91:b+=cf(p);break;case 9:case 10:case 13:case 32:b+=yw(C);break;case 92:b+=Cw(jl()-1,7);continue;case 47:switch(bo()){case 42:case 47:il(bw(Sw($n(),jl()),t,n,l),l);break;default:b+="/"}break;case 123*v:s[u++]=Yn(b)*g;case 125*v:case 59:case 0:switch(p){case 0:case 125:S=0;case 59+c:g==-1&&(b=Fl(b,/\f/g,"")),y>0&&Yn(b)-f&&il(y>32?Pg(b+";",r,n,f-1,l):Pg(Fl(b," ","")+";",r,n,f-2,l),l);break;case 59:b+=";";default:if(il(x=Eg(b,t,n,u,c,o,s,m,w=[],E=[],f,i),i),p===123)if(c===0)Al(b,t,x,x,w,i,f,s,E);else switch(d===99&&as(b,3)===110?100:d){case 100:case 108:case 109:case 115:Al(e,x,x,r&&il(Eg(e,x,x,0,0,o,s,m,o,w=[],f,E),E),o,E,f,s,r?w:E);break;default:Al(b,x,x,x,[""],E,0,s,E)}}u=c=y=0,v=g=1,m=b="",f=a;break;case 58:f=1+Yn(b),y=C;default:if(v<1){if(p==123)--v;else if(p==125&&v++==0&&mw()==125)continue}switch(b+=Wp(p),p*v){case 38:g=c>0?1:(b+="\f",-1);break;case 44:s[u++]=(Yn(b)-1)*g,g=1;break;case 64:bo()===45&&(b+=cf($n())),d=bo(),c=f=Yn(m=b+=xw(jl())),p++;break;case 45:C===45&&Yn(b)==2&&(v=0)}}return i}function Eg(e,t,n,r,o,i,a,s,l,u,c,f){for(var d=o-1,y=o===0?i:[""],C=hw(y),v=0,S=0,g=0;v0?y[p]+" "+m:Fl(m,/&\f/g,y[p])))&&(l[g++]=w);return Gp(e,t,n,o===0?Q3:s,l,u,c,f)}function bw(e,t,n,r){return Gp(e,t,n,X3,Wp(pw()),ss(e,2,-2),0,r)}function Pg(e,t,n,r,o){return Gp(e,t,n,Y3,ss(e,0,r),ss(e,r+1,-1),r,o)}function Gd(e,t){for(var n="",r=0;r1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]},o=r.root,i=r.injectHash,a=r.parentSelectors,s=n.hashId,l=n.layer;n.path;var u=n.hashPriority,c=n.transformers,f=c===void 0?[]:c;n.linters;var d="",y={};function C(m){var w=m.getName(s);if(!y[w]){var E=e(m.style,n,{root:!1,parentSelectors:a}),x=Y(E,1),b=x[0];y[w]="@keyframes ".concat(m.getName(s)).concat(b)}}function v(m){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return m.forEach(function(E){Array.isArray(E)?v(E,w):E&&w.push(E)}),w}var S=v(Array.isArray(t)?t:[t]);if(S.forEach(function(m){var w=typeof m=="string"&&!o?{}:m;if(typeof w=="string")d+="".concat(w,` `);else if(w._keyframe)C(w);else{var E=f.reduce(function(x,b){var T;return(b==null||(T=b.visit)===null||T===void 0?void 0:T.call(b,x))||x},w);Object.keys(E).forEach(function(x){var b=E[x];if(Ee(b)==="object"&&b&&(x!=="animationName"||!b._keyframe)&&!kw(b)){var T=!1,P=x.trim(),O=!1;(o||i)&&s?P.startsWith("@")?T=!0:P=Lw(x,s,u):o&&!s&&(P==="&"||P==="")&&(P="",O=!0);var $=e(b,n,{root:O,injectHash:T,parentSelectors:[].concat(ee(a),[P])}),D=Y($,2),F=D[0],z=D[1];y=U(U({},y),z),d+="".concat(P).concat(F)}else{let R=function(M,N){var B=M.replace(/[A-Z]/g,function(K){return"-".concat(K.toLowerCase())}),I=N;!lw[M]&&typeof I=="number"&&I!==0&&(I="".concat(I,"px")),M==="animationName"&&N!==null&&N!==void 0&&N._keyframe&&(C(N),I=N.getName(s)),d+="".concat(B,":").concat(I,";")};var H,j=(H=b==null?void 0:b.value)!==null&&H!==void 0?H:b;Ee(b)==="object"&&b!==null&&b!==void 0&&b[oC]&&Array.isArray(j)?j.forEach(function(M){R(x,M)}):R(x,j)}})}}),!o)d="{".concat(d,"}");else if(l&&H8()){var g=l.split(","),p=g[g.length-1].trim();d="@layer ".concat(p," {").concat(d,"}"),g.length>1&&(d="@layer ".concat(l,"{%%%:%}").concat(d))}return[d,y]};function iC(e,t){return mu("".concat(e.join("%")).concat(t))}function Fw(){return null}var aC="style";function Zd(e,t){var n=e.token,r=e.path,o=e.hashId,i=e.layer,a=e.nonce,s=e.clientOnly,l=e.order,u=l===void 0?0:l,c=h.useContext(Fi),f=c.autoClear;c.mock;var d=c.defaultCache,y=c.hashPriority,C=c.container,v=c.ssrInline,S=c.transformers,g=c.linters,p=c.cache,m=n._tokenKey,w=[m].concat(ee(r)),E=Hd,x=Up(aC,w,function(){var $=w.join("|");if(Ow($)){var D=Mw($),F=Y(D,2),z=F[0],H=F[1];if(z)return[z,m,H,{},s,u]}var j=t(),R=$w(j,{hashId:o,hashPriority:y,layer:i,path:r.join("-"),transformers:S,linters:g}),M=Y(R,2),N=M[0],B=M[1],I=Kd(N),K=iC(w,I);return[I,m,K,B,s,u]},function($,D){var F=Y($,3),z=F[2];(D||f)&&Hd&&rs(z,{mark:Ln})},function($){var D=Y($,4),F=D[0];D[1];var z=D[2],H=D[3];if(E&&F!==nC){var j={mark:Ln,prepend:"queue",attachTo:C,priority:u},R=typeof a=="function"?a():a;R&&(j.csp={nonce:R});var M=Gr(F,z,j);M[$r]=p.instanceId,M.setAttribute($i,m),Object.keys(H).forEach(function(N){Gr(Kd(H[N]),"_effect-".concat(N),j)})}}),b=Y(x,3),T=b[0],P=b[1],O=b[2];return function($){var D;if(!v||E||!d)D=h.createElement(Fw,null);else{var F;D=h.createElement("style",Fe({},(F={},V(F,$i,P),V(F,Ln,O),F),{dangerouslySetInnerHTML:{__html:T}}))}return h.createElement(h.Fragment,null,D,$)}}var jw=function(t,n,r){var o=Y(t,6),i=o[0],a=o[1],s=o[2],l=o[3],u=o[4],c=o[5],f=r||{},d=f.plain;if(u)return null;var y=i,C={"data-rc-order":"prependQueue","data-rc-priority":"".concat(c)};return y=os(i,a,s,C,d),l&&Object.keys(l).forEach(function(v){if(!n[v]){n[v]=!0;var S=Kd(l[v]);y+=os(S,a,"_effect-".concat(v),C,d)}}),[c,s,y]},sC="cssVar",Aw=function(t,n){var r=t.key,o=t.prefix,i=t.unitless,a=t.ignore,s=t.token,l=t.scope,u=l===void 0?"":l,c=h.useContext(Fi),f=c.cache.instanceId,d=c.container,y=s._tokenKey,C=[].concat(ee(t.path),[r,u,y]),v=Up(sC,C,function(){var S=n(),g=Z3(S,r,{prefix:o,unitless:i,ignore:a,scope:u}),p=Y(g,2),m=p[0],w=p[1],E=iC(C,w);return[m,w,E,r]},function(S){var g=Y(S,3),p=g[2];Hd&&rs(p,{mark:Ln})},function(S){var g=Y(S,3),p=g[1],m=g[2];if(p){var w=Gr(p,m,{mark:Ln,prepend:"queue",attachTo:d,priority:-999});w[$r]=f,w.setAttribute($i,r)}});return v},Nw=function(t,n,r){var o=Y(t,4),i=o[1],a=o[2],s=o[3],l=r||{},u=l.plain;if(!i)return null;var c=-999,f={"data-rc-order":"prependQueue","data-rc-priority":"".concat(c)},d=os(i,s,a,f,u);return[c,a,d]},aa,Iw=(aa={},V(aa,aC,jw),V(aa,q3,sw),V(aa,sC,Nw),aa);function _w(e){return e!==null}function kj(e,t){var n=typeof t=="boolean"?{plain:t}:t||{},r=n.plain,o=r===void 0?!1:r,i=n.types,a=i===void 0?["style","token","cssVar"]:i,s=new RegExp("^(".concat((typeof a=="string"?[a]:a).join("|"),")%")),l=Array.from(e.cache.keys()).filter(function(d){return s.test(d)}),u={},c={},f="";return l.map(function(d){var y=d.replace(s,"").replace(/%/g,"|"),C=d.split("%"),v=Y(C,1),S=v[0],g=Iw[S],p=g(e.cache.get(d)[1],u,{plain:o});if(!p)return null;var m=Y(p,3),w=m[0],E=m[1],x=m[2];return d.startsWith("style")&&(c[y]=E),[w,x]}).filter(_w).sort(function(d,y){var C=Y(d,1),v=C[0],S=Y(y,1),g=S[0];return v-g}).forEach(function(d){var y=Y(d,2),C=y[1];f+=C}),f+=os(".".concat(Ma,'{content:"').concat(Pw(c),'";}'),void 0,void 0,V({},Ma,Ma),o),f}var Je=function(){function e(t,n){yn(this,e),V(this,"name",void 0),V(this,"style",void 0),V(this,"_keyframe",!0),this.name=t,this.style=n}return Cn(e,[{key:"getName",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return n?"".concat(n,"-").concat(this.name):this.name}}]),e}();function Dw(e){if(typeof e=="number")return[[e],!1];var t=String(e).trim(),n=t.match(/(.*)(!important)/),r=(n?n[1]:t).trim().split(/\s+/),o="",i=0;return[r.reduce(function(a,s){if(s.includes("(")||s.includes(")")){var l=s.split("(").length-1,u=s.split(")").length-1;i+=l-u}return i===0?(a.push(o+s),o=""):i>0&&(o+=s),a},[]),!!n]}function Ko(e){return e.notSplit=!0,e}var Vw={inset:["top","right","bottom","left"],insetBlock:["top","bottom"],insetBlockStart:["top"],insetBlockEnd:["bottom"],insetInline:["left","right"],insetInlineStart:["left"],insetInlineEnd:["right"],marginBlock:["marginTop","marginBottom"],marginBlockStart:["marginTop"],marginBlockEnd:["marginBottom"],marginInline:["marginLeft","marginRight"],marginInlineStart:["marginLeft"],marginInlineEnd:["marginRight"],paddingBlock:["paddingTop","paddingBottom"],paddingBlockStart:["paddingTop"],paddingBlockEnd:["paddingBottom"],paddingInline:["paddingLeft","paddingRight"],paddingInlineStart:["paddingLeft"],paddingInlineEnd:["paddingRight"],borderBlock:Ko(["borderTop","borderBottom"]),borderBlockStart:Ko(["borderTop"]),borderBlockEnd:Ko(["borderBottom"]),borderInline:Ko(["borderLeft","borderRight"]),borderInlineStart:Ko(["borderLeft"]),borderInlineEnd:Ko(["borderRight"]),borderBlockWidth:["borderTopWidth","borderBottomWidth"],borderBlockStartWidth:["borderTopWidth"],borderBlockEndWidth:["borderBottomWidth"],borderInlineWidth:["borderLeftWidth","borderRightWidth"],borderInlineStartWidth:["borderLeftWidth"],borderInlineEndWidth:["borderRightWidth"],borderBlockStyle:["borderTopStyle","borderBottomStyle"],borderBlockStartStyle:["borderTopStyle"],borderBlockEndStyle:["borderBottomStyle"],borderInlineStyle:["borderLeftStyle","borderRightStyle"],borderInlineStartStyle:["borderLeftStyle"],borderInlineEndStyle:["borderRightStyle"],borderBlockColor:["borderTopColor","borderBottomColor"],borderBlockStartColor:["borderTopColor"],borderBlockEndColor:["borderBottomColor"],borderInlineColor:["borderLeftColor","borderRightColor"],borderInlineStartColor:["borderLeftColor"],borderInlineEndColor:["borderRightColor"],borderStartStartRadius:["borderTopLeftRadius"],borderStartEndRadius:["borderTopRightRadius"],borderEndStartRadius:["borderBottomLeftRadius"],borderEndEndRadius:["borderBottomRightRadius"]};function al(e,t){var n=e;return t&&(n="".concat(n," !important")),{_skip_check_:!0,value:n}}var Lj={visit:function(t){var n={};return Object.keys(t).forEach(function(r){var o=t[r],i=Vw[r];if(i&&(typeof o=="number"||typeof o=="string")){var a=Dw(o),s=Y(a,2),l=s[0],u=s[1];i.length&&i.notSplit?i.forEach(function(c){n[c]=al(o,u)}):i.length===1?n[i[0]]=al(o,u):i.length===2?i.forEach(function(c,f){var d;n[c]=al((d=l[f])!==null&&d!==void 0?d:l[0],u)}):i.length===4?i.forEach(function(c,f){var d,y;n[c]=al((d=(y=l[f])!==null&&y!==void 0?y:l[f-2])!==null&&d!==void 0?d:l[0],u)}):n[r]=o}else n[r]=o}),n}},Bw=h.createContext({});const Kp=Bw;function zw(e){return D3(e)||A3(e)||Dp(e)||V3()}function Hn(e,t){for(var n=e,r=0;r3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&r&&n===void 0&&!Hn(e,t.slice(0,-1))?e:lC(e,t,n,r)}function Hw(e){return Ee(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function Tg(e){return Array.isArray(e)?[]:{}}var Uw=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function fi(){for(var e=arguments.length,t=new Array(e),n=0;n{const e=()=>{};return e.deprecated=Ww,e},Kw=h.createContext(void 0);var Zw={items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"Page",prev_page:"Previous Page",next_page:"Next Page",prev_5:"Previous 5 Pages",next_5:"Next 5 Pages",prev_3:"Previous 3 Pages",next_3:"Next 3 Pages",page_size:"Page Size"},qw={locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",yearFormat:"YYYY",dateFormat:"M/D/YYYY",dayFormat:"D",dateTimeFormat:"M/D/YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"};const Xw={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},uC=Xw,Qw={lang:Object.assign({placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"]},qw),timePickerLocale:Object.assign({},uC)},Og=Qw,Ht="${label} is not a valid ${type}",Yw={locale:"en",Pagination:Zw,DatePicker:Og,TimePicker:uC,Calendar:Og,global:{placeholder:"Please select"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckall:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand"},PageHeader:{back:"Back"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:Ht,method:Ht,array:Ht,object:Ht,number:Ht,date:Ht,boolean:Ht,integer:Ht,float:Ht,regexp:Ht,email:Ht,url:Ht,hex:Ht},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"},QRCode:{expired:"QR code expired",refresh:"Refresh"},ColorPicker:{presetEmpty:"Empty"}},Fo=Yw;let Nl=Object.assign({},Fo.Modal),Il=[];const Mg=()=>Il.reduce((e,t)=>Object.assign(Object.assign({},e),t),Fo.Modal);function Jw(e){if(e){const t=Object.assign({},e);return Il.push(t),Nl=Mg(),()=>{Il=Il.filter(n=>n!==t),Nl=Mg()}}Nl=Object.assign({},Fo.Modal)}function cC(){return Nl}const eb=h.createContext(void 0),qp=eb,tb=(e,t)=>{const n=h.useContext(qp),r=h.useMemo(()=>{var i;const a=t||Fo[e],s=(i=n==null?void 0:n[e])!==null&&i!==void 0?i:{};return Object.assign(Object.assign({},typeof a=="function"?a():a),s||{})},[e,t,n]),o=h.useMemo(()=>{const i=n==null?void 0:n.locale;return n!=null&&n.exist&&!i?Fo.locale:i},[n]);return[r,o]},Xp=tb,nb="internalMark",rb=e=>{const{locale:t={},children:n,_ANT_MARK__:r}=e;h.useEffect(()=>Jw(t&&t.Modal),[t]);const o=h.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return h.createElement(qp.Provider,{value:o},n)},ob=rb;function vt(e,t){ib(e)&&(e="100%");var n=ab(e);return e=t===360?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:(t===360?e=(e<0?e%t+t:e%t)/parseFloat(String(t)):e=e%t/parseFloat(String(t)),e)}function sl(e){return Math.min(1,Math.max(0,e))}function ib(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function ab(e){return typeof e=="string"&&e.indexOf("%")!==-1}function fC(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function ll(e){return e<=1?"".concat(Number(e)*100,"%"):e}function Mn(e){return e.length===1?"0"+e:String(e)}function sb(e,t,n){return{r:vt(e,255)*255,g:vt(t,255)*255,b:vt(n,255)*255}}function Rg(e,t,n){e=vt(e,255),t=vt(t,255),n=vt(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),i=0,a=0,s=(r+o)/2;if(r===o)a=0,i=0;else{var l=r-o;switch(a=s>.5?l/(2-r-o):l/(r+o),r){case e:i=(t-n)/l+(t1&&(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 lb(e,t,n){var r,o,i;if(e=vt(e,360),t=vt(t,100),n=vt(n,100),t===0)o=n,i=n,r=n;else{var a=n<.5?n*(1+t):n+t-n*t,s=2*n-a;r=ff(s,a,e+1/3),o=ff(s,a,e),i=ff(s,a,e-1/3)}return{r:r*255,g:o*255,b:i*255}}function qd(e,t,n){e=vt(e,255),t=vt(t,255),n=vt(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),i=0,a=r,s=r-o,l=r===0?0:s/r;if(r===o)i=0;else{switch(r){case e:i=(t-n)/s+(t>16,g:(e&65280)>>8,b:e&255}}var Qd={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function Xo(e){var t={r:0,g:0,b:0},n=1,r=null,o=null,i=null,a=!1,s=!1;return typeof e=="string"&&(e=pb(e)),typeof e=="object"&&(Zn(e.r)&&Zn(e.g)&&Zn(e.b)?(t=sb(e.r,e.g,e.b),a=!0,s=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Zn(e.h)&&Zn(e.s)&&Zn(e.v)?(r=ll(e.s),o=ll(e.v),t=ub(e.h,r,o),a=!0,s="hsv"):Zn(e.h)&&Zn(e.s)&&Zn(e.l)&&(r=ll(e.s),i=ll(e.l),t=lb(e.h,r,i),a=!0,s="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=fC(n),{ok:a,format:e.format||s,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}var db="[-\\+]?\\d+%?",hb="[-\\+]?\\d*\\.\\d+%?",Fr="(?:".concat(hb,")|(?:").concat(db,")"),df="[\\s|\\(]+(".concat(Fr,")[,|\\s]+(").concat(Fr,")[,|\\s]+(").concat(Fr,")\\s*\\)?"),hf="[\\s|\\(]+(".concat(Fr,")[,|\\s]+(").concat(Fr,")[,|\\s]+(").concat(Fr,")[,|\\s]+(").concat(Fr,")\\s*\\)?"),xn={CSS_UNIT:new RegExp(Fr),rgb:new RegExp("rgb"+df),rgba:new RegExp("rgba"+hf),hsl:new RegExp("hsl"+df),hsla:new RegExp("hsla"+hf),hsv:new RegExp("hsv"+df),hsva:new RegExp("hsva"+hf),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function pb(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(Qd[e])e=Qd[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=xn.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=xn.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=xn.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=xn.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=xn.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=xn.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=xn.hex8.exec(e),n?{r:Wt(n[1]),g:Wt(n[2]),b:Wt(n[3]),a:kg(n[4]),format:t?"name":"hex8"}:(n=xn.hex6.exec(e),n?{r:Wt(n[1]),g:Wt(n[2]),b:Wt(n[3]),format:t?"name":"hex"}:(n=xn.hex4.exec(e),n?{r:Wt(n[1]+n[1]),g:Wt(n[2]+n[2]),b:Wt(n[3]+n[3]),a:kg(n[4]+n[4]),format:t?"name":"hex8"}:(n=xn.hex3.exec(e),n?{r:Wt(n[1]+n[1]),g:Wt(n[2]+n[2]),b:Wt(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function Zn(e){return!!xn.CSS_UNIT.exec(String(e))}var It=function(){function e(t,n){t===void 0&&(t=""),n===void 0&&(n={});var r;if(t instanceof e)return t;typeof t=="number"&&(t=fb(t)),this.originalInput=t;var o=Xo(t);this.originalInput=t,this.r=o.r,this.g=o.g,this.b=o.b,this.a=o.a,this.roundA=Math.round(100*this.a)/100,this.format=(r=n.format)!==null&&r!==void 0?r:o.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=o.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},e.prototype.getLuminance=function(){var t=this.toRgb(),n,r,o,i=t.r/255,a=t.g/255,s=t.b/255;return i<=.03928?n=i/12.92:n=Math.pow((i+.055)/1.055,2.4),a<=.03928?r=a/12.92:r=Math.pow((a+.055)/1.055,2.4),s<=.03928?o=s/12.92:o=Math.pow((s+.055)/1.055,2.4),.2126*n+.7152*r+.0722*o},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=fC(t),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){var t=this.toHsl().s;return t===0},e.prototype.toHsv=function(){var t=qd(this.r,this.g,this.b);return{h:t.h*360,s:t.s,v:t.v,a:this.a}},e.prototype.toHsvString=function(){var t=qd(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),o=Math.round(t.v*100);return this.a===1?"hsv(".concat(n,", ").concat(r,"%, ").concat(o,"%)"):"hsva(".concat(n,", ").concat(r,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=Rg(this.r,this.g,this.b);return{h:t.h*360,s:t.s,l:t.l,a:this.a}},e.prototype.toHslString=function(){var t=Rg(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),o=Math.round(t.l*100);return this.a===1?"hsl(".concat(n,", ").concat(r,"%, ").concat(o,"%)"):"hsla(".concat(n,", ").concat(r,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),Xd(this.r,this.g,this.b,t)},e.prototype.toHexString=function(t){return t===void 0&&(t=!1),"#"+this.toHex(t)},e.prototype.toHex8=function(t){return t===void 0&&(t=!1),cb(this.r,this.g,this.b,this.a,t)},e.prototype.toHex8String=function(t){return t===void 0&&(t=!1),"#"+this.toHex8(t)},e.prototype.toHexShortString=function(t){return t===void 0&&(t=!1),this.a===1?this.toHexString(t):this.toHex8String(t)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var t=Math.round(this.r),n=Math.round(this.g),r=Math.round(this.b);return this.a===1?"rgb(".concat(t,", ").concat(n,", ").concat(r,")"):"rgba(".concat(t,", ").concat(n,", ").concat(r,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var t=function(n){return"".concat(Math.round(vt(n,255)*100),"%")};return{r:t(this.r),g:t(this.g),b:t(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var t=function(n){return Math.round(vt(n,255)*100)};return this.a===1?"rgb(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%)"):"rgba(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var t="#"+Xd(this.r,this.g,this.b,!1),n=0,r=Object.entries(Qd);n=0,i=!n&&o&&(t.startsWith("hex")||t==="name");return i?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(r=this.toRgbString()),t==="prgb"&&(r=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(r=this.toHexString()),t==="hex3"&&(r=this.toHexString(!0)),t==="hex4"&&(r=this.toHex8String(!0)),t==="hex8"&&(r=this.toHex8String()),t==="name"&&(r=this.toName()),t==="hsl"&&(r=this.toHslString()),t==="hsv"&&(r=this.toHsvString()),r||this.toHexString())},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=sl(n.l),new e(n)},e.prototype.brighten=function(t){t===void 0&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(255*-(t/100)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(255*-(t/100)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(255*-(t/100)))),new e(n)},e.prototype.darken=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=sl(n.l),new e(n)},e.prototype.tint=function(t){return t===void 0&&(t=10),this.mix("white",t)},e.prototype.shade=function(t){return t===void 0&&(t=10),this.mix("black",t)},e.prototype.desaturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=sl(n.s),new e(n)},e.prototype.saturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=sl(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,new e(n)},e.prototype.mix=function(t,n){n===void 0&&(n=50);var r=this.toRgb(),o=new e(t).toRgb(),i=n/100,a={r:(o.r-r.r)*i+r.r,g:(o.g-r.g)*i+r.g,b:(o.b-r.b)*i+r.b,a:(o.a-r.a)*i+r.a};return new e(a)},e.prototype.analogous=function(t,n){t===void 0&&(t=6),n===void 0&&(n=30);var r=this.toHsl(),o=360/n,i=[this];for(r.h=(r.h-(o*t>>1)+720)%360;--t;)r.h=(r.h+o)%360,i.push(new e(r));return i},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){t===void 0&&(t=6);for(var n=this.toHsv(),r=n.h,o=n.s,i=n.v,a=[],s=1/t;t--;)a.push(new e({h:r,s:o,v:i})),i=(i+s)%1;return a},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),r=new e(t).toRgb(),o=n.a+r.a*(1-n.a);return new e({r:(n.r*n.a+r.r*r.a*(1-n.a))/o,g:(n.g*n.a+r.g*r.a*(1-n.a))/o,b:(n.b*n.a+r.b*r.a*(1-n.a))/o,a:o})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),r=n.h,o=[this],i=360/t,a=1;a=60&&Math.round(e.h)<=240?r=n?Math.round(e.h)-ul*t:Math.round(e.h)+ul*t:r=n?Math.round(e.h)+ul*t:Math.round(e.h)-ul*t,r<0?r+=360:r>=360&&(r-=360),r}function jg(e,t,n){if(e.h===0&&e.s===0)return e.s;var r;return n?r=e.s-Lg*t:t===pC?r=e.s+Lg:r=e.s+mb*t,r>1&&(r=1),n&&t===hC&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2))}function Ag(e,t,n){var r;return n?r=e.v+gb*t:r=e.v-vb*t,r>1&&(r=1),Number(r.toFixed(2))}function Kr(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=Xo(e),o=hC;o>0;o-=1){var i=$g(r),a=cl(Xo({h:Fg(i,o,!0),s:jg(i,o,!0),v:Ag(i,o,!0)}));n.push(a)}n.push(cl(r));for(var s=1;s<=pC;s+=1){var l=$g(r),u=cl(Xo({h:Fg(l,s),s:jg(l,s),v:Ag(l,s)}));n.push(u)}return t.theme==="dark"?yb.map(function(c){var f=c.index,d=c.opacity,y=cl(Cb(Xo(t.backgroundColor||"#141414"),Xo(n[f]),d*100));return y}):n}var _l={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1677FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},ft={},Dl={};Object.keys(_l).forEach(function(e){ft[e]=Kr(_l[e]),ft[e].primary=ft[e][5],Dl[e]=Kr(_l[e],{theme:"dark",backgroundColor:"#141414"}),Dl[e].primary=Dl[e][5]});var Sb=ft.red,xb=ft.volcano,wb=ft.gold,bb=ft.orange,Eb=ft.yellow,Pb=ft.lime,Tb=ft.green,Ob=ft.cyan,mC=ft.blue,Mb=ft.geekblue,Rb=ft.purple,kb=ft.magenta,Lb=ft.grey,$b=ft.grey;const jj=Object.freeze(Object.defineProperty({__proto__:null,blue:mC,cyan:Ob,geekblue:Mb,generate:Kr,gold:wb,gray:$b,green:Tb,grey:Lb,lime:Pb,magenta:kb,orange:bb,presetDarkPalettes:Dl,presetPalettes:ft,presetPrimaryColors:_l,purple:Rb,red:Sb,volcano:xb,yellow:Eb},Symbol.toStringTag,{value:"Module"})),Fb=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}},jb=Fb;function Ab(e){const{sizeUnit:t,sizeStep:n}=e;return{sizeXXL:t*(n+8),sizeXL:t*(n+4),sizeLG:t*(n+2),sizeMD:t*(n+1),sizeMS:t*n,size:t*n,sizeSM:t*(n-1),sizeXS:t*(n-2),sizeXXS:t*(n-3)}}const gC={blue:"#1677ff",purple:"#722ED1",cyan:"#13C2C2",green:"#52C41A",magenta:"#EB2F96",pink:"#eb2f96",red:"#F5222D",orange:"#FA8C16",yellow:"#FADB14",volcano:"#FA541C",geekblue:"#2F54EB",gold:"#FAAD14",lime:"#A0D911"},Nb=Object.assign(Object.assign({},gC),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji'`,fontFamilyCode:"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1,motion:!0}),ls=Nb;function Ib(e,t){let{generateColorPalettes:n,generateNeutralColorPalettes:r}=t;const{colorSuccess:o,colorWarning:i,colorError:a,colorInfo:s,colorPrimary:l,colorBgBase:u,colorTextBase:c}=e,f=n(l),d=n(o),y=n(i),C=n(a),v=n(s),S=r(u,c),g=e.colorLink||e.colorInfo,p=n(g);return Object.assign(Object.assign({},S),{colorPrimaryBg:f[1],colorPrimaryBgHover:f[2],colorPrimaryBorder:f[3],colorPrimaryBorderHover:f[4],colorPrimaryHover:f[5],colorPrimary:f[6],colorPrimaryActive:f[7],colorPrimaryTextHover:f[8],colorPrimaryText:f[9],colorPrimaryTextActive:f[10],colorSuccessBg:d[1],colorSuccessBgHover:d[2],colorSuccessBorder:d[3],colorSuccessBorderHover:d[4],colorSuccessHover:d[4],colorSuccess:d[6],colorSuccessActive:d[7],colorSuccessTextHover:d[8],colorSuccessText:d[9],colorSuccessTextActive:d[10],colorErrorBg:C[1],colorErrorBgHover:C[2],colorErrorBorder:C[3],colorErrorBorderHover:C[4],colorErrorHover:C[5],colorError:C[6],colorErrorActive:C[7],colorErrorTextHover:C[8],colorErrorText:C[9],colorErrorTextActive:C[10],colorWarningBg:y[1],colorWarningBgHover:y[2],colorWarningBorder:y[3],colorWarningBorderHover:y[4],colorWarningHover:y[4],colorWarning:y[6],colorWarningActive:y[7],colorWarningTextHover:y[8],colorWarningText:y[9],colorWarningTextActive:y[10],colorInfoBg:v[1],colorInfoBgHover:v[2],colorInfoBorder:v[3],colorInfoBorderHover:v[4],colorInfoHover:v[4],colorInfo:v[6],colorInfoActive:v[7],colorInfoTextHover:v[8],colorInfoText:v[9],colorInfoTextActive:v[10],colorLinkHover:p[4],colorLink:p[6],colorLinkActive:p[7],colorBgMask:new It("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}const _b=e=>{let t=e,n=e,r=e,o=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?n=4:e<8&&e>=7?n=5:e<14&&e>=8?n=6:e<16&&e>=14?n=7:e>=16&&(n=8),e<6&&e>=2?r=1:e>=6&&(r=2),e>4&&e<8?o=4:e>=8&&(o=6),{borderRadius:e,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:o}},Db=_b;function Vb(e){const{motionUnit:t,motionBase:n,borderRadius:r,lineWidth:o}=e;return Object.assign({motionDurationFast:`${(n+t).toFixed(1)}s`,motionDurationMid:`${(n+t*2).toFixed(1)}s`,motionDurationSlow:`${(n+t*3).toFixed(1)}s`,lineWidthBold:o+1},Db(r))}const qn=(e,t)=>new It(e).setAlpha(t).toRgbString(),sa=(e,t)=>new It(e).darken(t).toHexString(),Bb=e=>{const t=Kr(e);return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[4],6:t[5],7:t[6],8:t[4],9:t[5],10:t[6]}},zb=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:qn(r,.88),colorTextSecondary:qn(r,.65),colorTextTertiary:qn(r,.45),colorTextQuaternary:qn(r,.25),colorFill:qn(r,.15),colorFillSecondary:qn(r,.06),colorFillTertiary:qn(r,.04),colorFillQuaternary:qn(r,.02),colorBgLayout:sa(n,4),colorBgContainer:sa(n,0),colorBgElevated:sa(n,0),colorBgSpotlight:qn(r,.85),colorBgBlur:"transparent",colorBorder:sa(n,15),colorBorderSecondary:sa(n,6)}};function Hb(e){const t=new Array(10).fill(null).map((n,r)=>{const o=r-1,i=e*Math.pow(2.71828,o/5),a=r>1?Math.floor(i):Math.ceil(i);return Math.floor(a/2)*2});return t[1]=e,t.map(n=>{const r=n+8;return{size:n,lineHeight:r/n}})}const Ub=e=>{const t=Hb(e),n=t.map(c=>c.size),r=t.map(c=>c.lineHeight),o=n[1],i=n[0],a=n[2],s=r[1],l=r[0],u=r[2];return{fontSizeSM:i,fontSize:o,fontSizeLG:a,fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:s,lineHeightLG:u,lineHeightSM:l,fontHeight:Math.round(s*o),fontHeightLG:Math.round(u*a),fontHeightSM:Math.round(l*i),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}},Wb=Ub;function Gb(e){const t=Object.keys(gC).map(n=>{const r=Kr(e[n]);return new Array(10).fill(1).reduce((o,i,a)=>(o[`${n}-${a+1}`]=r[a],o[`${n}${a+1}`]=r[a],o),{})}).reduce((n,r)=>(n=Object.assign(Object.assign({},n),r),n),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),Ib(e,{generateColorPalettes:Bb,generateNeutralColorPalettes:zb})),Wb(e.fontSize)),Ab(e)),jb(e)),Vb(e))}const vC=zd(Gb),yC={token:ls,override:{override:ls},hashed:!0},CC=Z.createContext(yC),Qp="anticon",Kb=(e,t)=>t||(e?`ant-${e}`:"ant"),dt=h.createContext({getPrefixCls:Kb,iconPrefixCls:Qp}),Zb=`-ant-${Date.now()}-${Math.random()}`;function qb(e,t){const n={},r=(a,s)=>{let l=a.clone();return l=(s==null?void 0:s(l))||l,l.toRgbString()},o=(a,s)=>{const l=new It(a),u=Kr(l.toRgbString());n[`${s}-color`]=r(l),n[`${s}-color-disabled`]=u[1],n[`${s}-color-hover`]=u[4],n[`${s}-color-active`]=u[6],n[`${s}-color-outline`]=l.clone().setAlpha(.2).toRgbString(),n[`${s}-color-deprecated-bg`]=u[0],n[`${s}-color-deprecated-border`]=u[2]};if(t.primaryColor){o(t.primaryColor,"primary");const a=new It(t.primaryColor),s=Kr(a.toRgbString());s.forEach((u,c)=>{n[`primary-${c+1}`]=u}),n["primary-color-deprecated-l-35"]=r(a,u=>u.lighten(35)),n["primary-color-deprecated-l-20"]=r(a,u=>u.lighten(20)),n["primary-color-deprecated-t-20"]=r(a,u=>u.tint(20)),n["primary-color-deprecated-t-50"]=r(a,u=>u.tint(50)),n["primary-color-deprecated-f-12"]=r(a,u=>u.setAlpha(u.getAlpha()*.12));const l=new It(s[0]);n["primary-color-active-deprecated-f-30"]=r(l,u=>u.setAlpha(u.getAlpha()*.3)),n["primary-color-active-deprecated-d-02"]=r(l,u=>u.darken(2))}return t.successColor&&o(t.successColor,"success"),t.warningColor&&o(t.warningColor,"warning"),t.errorColor&&o(t.errorColor,"error"),t.infoColor&&o(t.infoColor,"info"),` :root { ${Object.keys(n).map(a=>`--${e}-${a}: ${n[a]};`).join(` `)} } `.trim()}function Xb(e,t){const n=qb(e,t);kt()&&Gr(n,`${Zb}-dynamic-theme`)}const Yd=h.createContext(!1),SC=e=>{let{children:t,disabled:n}=e;const r=h.useContext(Yd);return h.createElement(Yd.Provider,{value:n??r},t)},xC=Yd,Jd=h.createContext(void 0),Qb=e=>{let{children:t,size:n}=e;const r=h.useContext(Jd);return h.createElement(Jd.Provider,{value:n||r},t)},lc=Jd;function Yb(){const e=h.useContext(xC),t=h.useContext(lc);return{componentDisabled:e,componentSize:t}}const Jb="5.12.7";function pf(e){return e>=0&&e<=255}function fl(e,t){const{r:n,g:r,b:o,a:i}=new It(e).toRgb();if(i<1)return e;const{r:a,g:s,b:l}=new It(t).toRgb();for(let u=.01;u<=1;u+=.01){const c=Math.round((n-a*(1-u))/u),f=Math.round((r-s*(1-u))/u),d=Math.round((o-l*(1-u))/u);if(pf(c)&&pf(f)&&pf(d))return new It({r:c,g:f,b:d,a:Math.round(u*100)/100}).toRgbString()}return new It({r:n,g:r,b:o,a:1}).toRgbString()}var e7=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{delete r[d]});const o=Object.assign(Object.assign({},n),r),i=480,a=576,s=768,l=992,u=1200,c=1600;if(o.motion===!1){const d="0s";o.motionDurationFast=d,o.motionDurationMid=d,o.motionDurationSlow=d}return Object.assign(Object.assign(Object.assign({},o),{colorFillContent:o.colorFillSecondary,colorFillContentHover:o.colorFill,colorFillAlter:o.colorFillQuaternary,colorBgContainerDisabled:o.colorFillTertiary,colorBorderBg:o.colorBgContainer,colorSplit:fl(o.colorBorderSecondary,o.colorBgContainer),colorTextPlaceholder:o.colorTextQuaternary,colorTextDisabled:o.colorTextQuaternary,colorTextHeading:o.colorText,colorTextLabel:o.colorTextSecondary,colorTextDescription:o.colorTextTertiary,colorTextLightSolid:o.colorWhite,colorHighlight:o.colorError,colorBgTextHover:o.colorFillSecondary,colorBgTextActive:o.colorFill,colorIcon:o.colorTextTertiary,colorIconHover:o.colorText,colorErrorOutline:fl(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:fl(o.colorWarningBg,o.colorBgContainer),fontSizeIcon:o.fontSizeSM,lineWidthFocus:o.lineWidth*4,lineWidth:o.lineWidth,controlOutlineWidth:o.lineWidth*2,controlInteractiveSize:o.controlHeight/2,controlItemBgHover:o.colorFillTertiary,controlItemBgActive:o.colorPrimaryBg,controlItemBgActiveHover:o.colorPrimaryBgHover,controlItemBgActiveDisabled:o.colorFill,controlTmpOutline:o.colorFillQuaternary,controlOutline:fl(o.colorPrimaryBg,o.colorBgContainer),lineType:o.lineType,borderRadius:o.borderRadius,borderRadiusXS:o.borderRadiusXS,borderRadiusSM:o.borderRadiusSM,borderRadiusLG:o.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:o.sizeXXS,paddingXS:o.sizeXS,paddingSM:o.sizeSM,padding:o.size,paddingMD:o.sizeMD,paddingLG:o.sizeLG,paddingXL:o.sizeXL,paddingContentHorizontalLG:o.sizeLG,paddingContentVerticalLG:o.sizeMS,paddingContentHorizontal:o.sizeMS,paddingContentVertical:o.sizeSM,paddingContentHorizontalSM:o.size,paddingContentVerticalSM:o.sizeXS,marginXXS:o.sizeXXS,marginXS:o.sizeXS,marginSM:o.sizeSM,margin:o.size,marginMD:o.sizeMD,marginLG:o.sizeLG,marginXL:o.sizeXL,marginXXL:o.sizeXXL,boxShadow:` 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 9px 28px 8px rgba(0, 0, 0, 0.05) `,boxShadowSecondary:` 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 9px 28px 8px rgba(0, 0, 0, 0.05) `,boxShadowTertiary:` 0 1px 2px 0 rgba(0, 0, 0, 0.03), 0 1px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px 0 rgba(0, 0, 0, 0.02) `,screenXS:i,screenXSMin:i,screenXSMax:a-1,screenSM:a,screenSMMin:a,screenSMMax:s-1,screenMD:s,screenMDMin:s,screenMDMax:l-1,screenLG:l,screenLGMin:l,screenLGMax:u-1,screenXL:u,screenXLMin:u,screenXLMax:c-1,screenXXL:c,screenXXLMin:c,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:` 0 1px 2px -2px ${new It("rgba(0, 0, 0, 0.16)").toRgbString()}, 0 3px 6px 0 ${new It("rgba(0, 0, 0, 0.12)").toRgbString()}, 0 5px 12px 4px ${new It("rgba(0, 0, 0, 0.09)").toRgbString()} `,boxShadowDrawerRight:` -6px 0 16px 0 rgba(0, 0, 0, 0.08), -3px 0 6px -4px rgba(0, 0, 0, 0.12), -9px 0 28px 8px rgba(0, 0, 0, 0.05) `,boxShadowDrawerLeft:` 6px 0 16px 0 rgba(0, 0, 0, 0.08), 3px 0 6px -4px rgba(0, 0, 0, 0.12), 9px 0 28px 8px rgba(0, 0, 0, 0.05) `,boxShadowDrawerUp:` 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 9px 28px 8px rgba(0, 0, 0, 0.05) `,boxShadowDrawerDown:` 0 -6px 16px 0 rgba(0, 0, 0, 0.08), 0 -3px 6px -4px rgba(0, 0, 0, 0.12), 0 -9px 28px 8px rgba(0, 0, 0, 0.05) `,boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),r)}var Ng=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const r=n.getDerivativeToken(e),{override:o}=t,i=Ng(t,["override"]);let a=Object.assign(Object.assign({},r),{override:o});return a=wC(a),i&&Object.entries(i).forEach(s=>{let[l,u]=s;const{theme:c}=u,f=Ng(u,["theme"]);let d=f;c&&(d=PC(Object.assign(Object.assign({},a),f),{override:f},c)),a[l]=d}),a};function An(){const{token:e,hashed:t,theme:n,override:r,cssVar:o}=Z.useContext(CC),i=`${Jb}-${t||""}`,a=n||vC,[s,l,u]=aw(a,[ls,e],{salt:i,override:r,getComputedToken:PC,formatToken:wC,cssVar:o&&{prefix:o.prefix,key:o.key,unitless:bC,ignore:EC,preserve:t7}});return[a,u,t?l:"",s,o]}function TC(e){var t=h.useRef();t.current=e;var n=h.useCallback(function(){for(var r,o=arguments.length,i=new Array(o),a=0;a1&&arguments[1]!==void 0?arguments[1]:!1;return{boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:t?"inherit":e.fontFamily}},n7=()=>({display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),r7=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),o7=e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},"&:active,\n &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),i7=(e,t)=>{const{fontFamily:n,fontSize:r}=e,o=`[class^="${t}"], [class*=" ${t}"]`;return{[o]:{fontFamily:n,fontSize:r,boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"},[o]:{boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}}}}},a7=e=>({outline:`${xe(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),OC=e=>({"&:focus-visible":Object.assign({},a7(e))});let s7=Cn(function e(){yn(this,e)});const MC=s7;let l7=function(e){Es(n,e);var t=Ps(n);function n(r){var o;return yn(this,n),o=t.call(this),o.result=0,r instanceof n?o.result=r.result:typeof r=="number"&&(o.result=r),o}return Cn(n,[{key:"add",value:function(o){return o instanceof n?this.result+=o.result:typeof o=="number"&&(this.result+=o),this}},{key:"sub",value:function(o){return o instanceof n?this.result-=o.result:typeof o=="number"&&(this.result-=o),this}},{key:"mul",value:function(o){return o instanceof n?this.result*=o.result:typeof o=="number"&&(this.result*=o),this}},{key:"div",value:function(o){return o instanceof n?this.result/=o.result:typeof o=="number"&&(this.result/=o),this}},{key:"equal",value:function(){return this.result}}]),n}(MC);const RC="CALC_UNIT";function mf(e){return typeof e=="number"?`${e}${RC}`:e}let u7=function(e){Es(n,e);var t=Ps(n);function n(r){var o;return yn(this,n),o=t.call(this),o.result="",r instanceof n?o.result=`(${r.result})`:typeof r=="number"?o.result=mf(r):typeof r=="string"&&(o.result=r),o}return Cn(n,[{key:"add",value:function(o){return o instanceof n?this.result=`${this.result} + ${o.getResult()}`:(typeof o=="number"||typeof o=="string")&&(this.result=`${this.result} + ${mf(o)}`),this.lowPriority=!0,this}},{key:"sub",value:function(o){return o instanceof n?this.result=`${this.result} - ${o.getResult()}`:(typeof o=="number"||typeof o=="string")&&(this.result=`${this.result} - ${mf(o)}`),this.lowPriority=!0,this}},{key:"mul",value:function(o){return this.lowPriority&&(this.result=`(${this.result})`),o instanceof n?this.result=`${this.result} * ${o.getResult(!0)}`:(typeof o=="number"||typeof o=="string")&&(this.result=`${this.result} * ${o}`),this.lowPriority=!1,this}},{key:"div",value:function(o){return this.lowPriority&&(this.result=`(${this.result})`),o instanceof n?this.result=`${this.result} / ${o.getResult(!0)}`:(typeof o=="number"||typeof o=="string")&&(this.result=`${this.result} / ${o}`),this.lowPriority=!1,this}},{key:"getResult",value:function(o){return this.lowPriority||o?`(${this.result})`:this.result}},{key:"equal",value:function(o){const{unit:i=!0}=o||{},a=new RegExp(`${RC}`,"g");return this.result=this.result.replace(a,i?"px":""),typeof this.lowPriority<"u"?`calc(${this.result})`:this.result}}]),n}(MC);const c7=e=>{const t=e==="css"?u7:l7;return n=>new t(n)},f7=c7;function d7(e){return e==="js"?{max:Math.max,min:Math.min}:{max:function(){for(var t=arguments.length,n=new Array(t),r=0;rxe(o)).join(",")})`},min:function(){for(var t=arguments.length,n=new Array(t),r=0;rxe(o)).join(",")})`}}}const kC=typeof CSSINJS_STATISTIC<"u";let eh=!0;function Kn(){for(var e=arguments.length,t=new Array(e),n=0;n{Object.keys(o).forEach(a=>{Object.defineProperty(r,a,{configurable:!0,enumerable:!0,get:()=>o[a]})})}),eh=!0,r}const Ig={};function h7(){}const p7=e=>{let t,n=e,r=h7;return kC&&typeof Proxy<"u"&&(t=new Set,n=new Proxy(e,{get(o,i){return eh&&t.add(i),o[i]}}),r=(o,i)=>{var a;Ig[o]={global:Array.from(t),component:Object.assign(Object.assign({},(a=Ig[o])===null||a===void 0?void 0:a.component),i)}}),{token:n,keys:t,flush:r}},m7=(e,t)=>{const[n,r]=An();return Zd({theme:n,token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>t==null?void 0:t.nonce},()=>[{[`.${e}`]:Object.assign(Object.assign({},n7()),{[`.${e} .${e}-icon`]:{display:"block"}})}])},LC=m7,$C=(e,t,n)=>{var r;return typeof n=="function"?n(Kn(t,(r=t[e])!==null&&r!==void 0?r:{})):n??{}},FC=(e,t,n,r)=>{const o=Object.assign({},t[e]);if(r!=null&&r.deprecatedTokens){const{deprecatedTokens:a}=r;a.forEach(s=>{let[l,u]=s;var c;(o!=null&&o[l]||o!=null&&o[u])&&((c=o[u])!==null&&c!==void 0||(o[u]=o==null?void 0:o[l]))})}let i=Object.assign(Object.assign({},n),o);return r!=null&&r.format&&(i=r.format(i)),Object.keys(i).forEach(a=>{i[a]===t[a]&&delete i[a]}),i},g7=(e,t)=>`${[t,e.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-")}`;function Jp(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const o=Array.isArray(e)?e:[e,e],[i]=o,a=o.join("-");return s=>{const[l,u,c,f,d]=An(),{getPrefixCls:y,iconPrefixCls:C,csp:v}=h.useContext(dt),S=y(),g=d?"css":"js",p=f7(g),{max:m,min:w}=d7(g),E={theme:l,token:f,hashId:c,nonce:()=>v==null?void 0:v.nonce,clientOnly:r.clientOnly,order:r.order||-999};return Zd(Object.assign(Object.assign({},E),{clientOnly:!1,path:["Shared",S]}),()=>[{"&":o7(f)}]),LC(C,v),[Zd(Object.assign(Object.assign({},E),{path:[a,s,C]}),()=>{if(r.injectStyle===!1)return[];const{token:b,flush:T}=p7(f),P=$C(i,u,n),O=`.${s}`,$=FC(i,u,P,{deprecatedTokens:r.deprecatedTokens,format:r.format});d&&Object.keys(P).forEach(z=>{P[z]=`var(${K3(z,g7(i,d.prefix))})`});const D=Kn(b,{componentCls:O,prefixCls:s,iconCls:`.${C}`,antCls:`.${S}`,calc:p,max:m,min:w},d?P:$),F=t(D,{hashId:c,prefixCls:s,rootPrefixCls:S,iconPrefixCls:C});return T(i,$),[r.resetStyle===!1?null:i7(D,s),F]}),c]}}const jC=(e,t,n,r)=>{const o=Jp(e,t,n,Object.assign({resetStyle:!1,order:-998},r));return a=>{let{prefixCls:s}=a;return o(s),null}},v7=(e,t,n)=>{function r(u){return`${e}${u.slice(0,1).toUpperCase()}${u.slice(1)}`}const{unitless:o={},injectStyle:i=!0}=n??{},a={[r("zIndexPopup")]:!0};Object.keys(o).forEach(u=>{a[r(u)]=o[u]});const s=u=>{let{rootCls:c,cssVar:f}=u;const[,d]=An();return Aw({path:[e],prefix:f.prefix,key:f==null?void 0:f.key,unitless:Object.assign(Object.assign({},bC),a),ignore:EC,token:d,scope:c},()=>{const y=$C(e,d,t),C=FC(e,d,y,{format:n==null?void 0:n.format,deprecatedTokens:n==null?void 0:n.deprecatedTokens});return Object.keys(y).forEach(v=>{C[r(v)]=C[v],delete C[v]}),C}),null};return u=>{const[,,,,c]=An();return[f=>i&&c?Z.createElement(Z.Fragment,null,Z.createElement(s,{rootCls:u,cssVar:c,component:e}),f):f,c==null?void 0:c.key]}},_o=(e,t,n,r)=>{const o=Jp(e,t,n,r),i=v7(Array.isArray(e)?e[0]:e,n,r);return function(a){let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:a;const[,l]=o(a),[u,c]=i(s);return[u,l,c]}},y7=Object.assign({},_i),{useId:_g}=y7,C7=()=>"",S7=typeof _g>"u"?C7:_g,x7=S7;function w7(e,t){Zp();const n=e||{},r=n.inherit===!1||!t?yC:t,o=x7();return rc(()=>{var i,a;if(!e)return t;const s=Object.assign({},r.components);Object.keys(e.components||{}).forEach(c=>{s[c]=Object.assign(Object.assign({},s[c]),e.components[c])});const l=`css-var-${o.replace(/:/g,"")}`,u=((i=n.cssVar)!==null&&i!==void 0?i:r.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:"ant"},typeof r.cssVar=="object"?r.cssVar:{}),typeof n.cssVar=="object"?n.cssVar:{}),{key:typeof n.cssVar=="object"&&((a=n.cssVar)===null||a===void 0?void 0:a.key)||l});return Object.assign(Object.assign(Object.assign({},r),n),{token:Object.assign(Object.assign({},r.token),n.token),components:s,cssVar:u})},[n,r],(i,a)=>i.some((s,l)=>{const u=a[l];return!gu(s,u,!0)}))}var b7=["children"],AC=h.createContext({});function E7(e){var t=e.children,n=jn(e,b7);return h.createElement(AC.Provider,{value:n},t)}var P7=function(e){Es(n,e);var t=Ps(n);function n(){return yn(this,n),t.apply(this,arguments)}return Cn(n,[{key:"render",value:function(){return this.props.children}}]),n}(h.Component),ao="none",dl="appear",hl="enter",pl="leave",Dg="none",Tn="prepare",di="start",hi="active",em="end",NC="prepared";function Vg(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit".concat(e)]="webkit".concat(t),n["Moz".concat(e)]="moz".concat(t),n["ms".concat(e)]="MS".concat(t),n["O".concat(e)]="o".concat(t.toLowerCase()),n}function T7(e,t){var n={animationend:Vg("Animation","AnimationEnd"),transitionend:Vg("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}var O7=T7(kt(),typeof window<"u"?window:{}),IC={};if(kt()){var M7=document.createElement("div");IC=M7.style}var ml={};function _C(e){if(ml[e])return ml[e];var t=O7[e];if(t)for(var n=Object.keys(t),r=n.length,o=0;o1&&arguments[1]!==void 0?arguments[1]:2;t();var i=$o(function(){o<=1?r({isCanceled:function(){return i!==e.current}}):n(r,o-1)});e.current=i}return h.useEffect(function(){return function(){t()}},[]),[n,t]};var L7=[Tn,di,hi,em],$7=[Tn,NC],HC=!1,F7=!0;function UC(e){return e===hi||e===em}const j7=function(e,t,n){var r=Ra(Dg),o=Y(r,2),i=o[0],a=o[1],s=k7(),l=Y(s,2),u=l[0],c=l[1];function f(){a(Tn,!0)}var d=t?$7:L7;return zC(function(){if(i!==Dg&&i!==em){var y=d.indexOf(i),C=d[y+1],v=n(i);v===HC?a(C,!0):C&&u(function(S){function g(){S.isCanceled()||a(C,!0)}v===!0?g():Promise.resolve(v).then(g)})}},[e,i]),h.useEffect(function(){return function(){c()}},[]),[f,i]};function A7(e,t,n,r){var o=r.motionEnter,i=o===void 0?!0:o,a=r.motionAppear,s=a===void 0?!0:a,l=r.motionLeave,u=l===void 0?!0:l,c=r.motionDeadline,f=r.motionLeaveImmediately,d=r.onAppearPrepare,y=r.onEnterPrepare,C=r.onLeavePrepare,v=r.onAppearStart,S=r.onEnterStart,g=r.onLeaveStart,p=r.onAppearActive,m=r.onEnterActive,w=r.onLeaveActive,E=r.onAppearEnd,x=r.onEnterEnd,b=r.onLeaveEnd,T=r.onVisibleChanged,P=Ra(),O=Y(P,2),$=O[0],D=O[1],F=Ra(ao),z=Y(F,2),H=z[0],j=z[1],R=Ra(null),M=Y(R,2),N=M[0],B=M[1],I=h.useRef(!1),K=h.useRef(null);function X(){return n()}var te=h.useRef(!1);function de(){j(ao,!0),B(null,!0)}function ne(je){var Me=X();if(!(je&&!je.deadline&&je.target!==Me)){var ce=te.current,we;H===dl&&ce?we=E==null?void 0:E(Me,je):H===hl&&ce?we=x==null?void 0:x(Me,je):H===pl&&ce&&(we=b==null?void 0:b(Me,je)),H!==ao&&ce&&we!==!1&&de()}}var me=R7(ne),Ct=Y(me,1),Tt=Ct[0],Ze=function(Me){var ce,we,pt;switch(Me){case dl:return ce={},V(ce,Tn,d),V(ce,di,v),V(ce,hi,p),ce;case hl:return we={},V(we,Tn,y),V(we,di,S),V(we,hi,m),we;case pl:return pt={},V(pt,Tn,C),V(pt,di,g),V(pt,hi,w),pt;default:return{}}},fe=h.useMemo(function(){return Ze(H)},[H]),St=j7(H,!e,function(je){if(je===Tn){var Me=fe[Tn];return Me?Me(X()):HC}if(ke in fe){var ce;B(((ce=fe[ke])===null||ce===void 0?void 0:ce.call(fe,X(),null))||null)}return ke===hi&&(Tt(X()),c>0&&(clearTimeout(K.current),K.current=setTimeout(function(){ne({deadline:!0})},c))),ke===NC&&de(),F7}),ye=Y(St,2),ht=ye[0],ke=ye[1],Nn=UC(ke);te.current=Nn,zC(function(){D(t);var je=I.current;I.current=!0;var Me;!je&&t&&s&&(Me=dl),je&&t&&i&&(Me=hl),(je&&!t&&u||!je&&f&&!t&&u)&&(Me=pl);var ce=Ze(Me);Me&&(e||ce[Tn])?(j(Me),ht()):j(ao)},[t]),h.useEffect(function(){(H===dl&&!s||H===hl&&!i||H===pl&&!u)&&j(ao)},[s,i,u]),h.useEffect(function(){return function(){I.current=!1,clearTimeout(K.current)}},[]);var zt=h.useRef(!1);h.useEffect(function(){$&&(zt.current=!0),$!==void 0&&H===ao&&((zt.current||$)&&(T==null||T($)),zt.current=!0)},[$,H]);var jt=N;return fe[Tn]&&ke===di&&(jt=U({transition:"none"},jt)),[H,ke,jt,$??t]}function N7(e){var t=e;Ee(e)==="object"&&(t=e.transitionSupport);function n(o,i){return!!(o.motionName&&t&&i!==!1)}var r=h.forwardRef(function(o,i){var a=o.visible,s=a===void 0?!0:a,l=o.removeOnLeave,u=l===void 0?!0:l,c=o.forceRender,f=o.children,d=o.motionName,y=o.leavedClassName,C=o.eventProps,v=h.useContext(AC),S=v.motion,g=n(o,S),p=h.useRef(),m=h.useRef();function w(){try{return p.current instanceof HTMLElement?p.current:M8(m.current)}catch{return null}}var E=A7(g,s,w,o),x=Y(E,4),b=x[0],T=x[1],P=x[2],O=x[3],$=h.useRef(O);O&&($.current=!0);var D=h.useCallback(function(B){p.current=B,F3(i,B)},[i]),F,z=U(U({},C),{},{visible:s});if(!f)F=null;else if(b===ao)O?F=f(U({},z),D):!u&&$.current&&y?F=f(U(U({},z),{},{className:y}),D):c||!u&&!y?F=f(U(U({},z),{},{style:{display:"none"}}),D):F=null;else{var H,j;T===Tn?j="prepare":UC(T)?j="active":T===di&&(j="start");var R=Hg(d,"".concat(b,"-").concat(j));F=f(U(U({},z),{},{className:le(Hg(d,b),(H={},V(H,R,R&&j),V(H,d,typeof d=="string"),H)),style:P}),D)}if(h.isValidElement(F)&&oc(F)){var M=F,N=M.ref;N||(F=h.cloneElement(F,{ref:D}))}return h.createElement(P7,{ref:m},F)});return r.displayName="CSSMotion",r}const Ts=N7(BC);var th="add",nh="keep",rh="remove",gf="removed";function I7(e){var t;return e&&Ee(e)==="object"&&"key"in e?t=e:t={key:e},U(U({},t),{},{key:String(t.key)})}function oh(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(I7)}function _7(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=[],r=0,o=t.length,i=oh(e),a=oh(t);i.forEach(function(u){for(var c=!1,f=r;f1});return l.forEach(function(u){n=n.filter(function(c){var f=c.key,d=c.status;return f!==u||d!==rh}),n.forEach(function(c){c.key===u&&(c.status=nh)})}),n}var D7=["component","children","onVisibleChanged","onAllRemoved"],V7=["status"],B7=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function z7(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ts,n=function(r){Es(i,r);var o=Ps(i);function i(){var a;yn(this,i);for(var s=arguments.length,l=new Array(s),u=0;unull;var G7=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);ot.endsWith("Color"))}const Q7=e=>{let{prefixCls:t,iconPrefixCls:n,theme:r}=e;t!==void 0&&(vu=t),n!==void 0&&(WC=n),r&&(X7(r)?Xb(Vl(),r):GC=r)},Y7=()=>({getPrefixCls:(e,t)=>t||(e?`${Vl()}-${e}`:Vl()),getIconPrefixCls:q7,getRootPrefixCls:()=>vu||Vl(),getTheme:()=>GC}),J7=e=>{const{children:t,csp:n,autoInsertSpaceInButton:r,alert:o,anchor:i,form:a,locale:s,componentSize:l,direction:u,space:c,virtual:f,dropdownMatchSelectWidth:d,popupMatchSelectWidth:y,popupOverflow:C,legacyLocale:v,parentContext:S,iconPrefixCls:g,theme:p,componentDisabled:m,segmented:w,statistic:E,spin:x,calendar:b,carousel:T,cascader:P,collapse:O,typography:$,checkbox:D,descriptions:F,divider:z,drawer:H,skeleton:j,steps:R,image:M,layout:N,list:B,mentions:I,modal:K,progress:X,result:te,slider:de,breadcrumb:ne,menu:me,pagination:Ct,input:Tt,empty:Ze,badge:fe,radio:St,rate:ye,switch:ht,transfer:ke,avatar:Nn,message:zt,tag:jt,table:je,card:Me,tabs:ce,timeline:we,timePicker:pt,upload:nn,notification:rn,tree:on,colorPicker:yr,datePicker:bc,rangePicker:In,flex:As,wave:Ns,dropdown:Is,warning:Ec}=e,_s=h.useCallback((_,W)=>{const{prefixCls:q}=e;if(W)return W;const ae=q||S.getPrefixCls("");return _?`${ae}-${_}`:ae},[S.getPrefixCls,e.prefixCls]),_n=g||S.iconPrefixCls||Qp,Cr=n||S.csp;LC(_n,Cr);const eo=w7(p,S.theme),Gi={csp:Cr,autoInsertSpaceInButton:r,alert:o,anchor:i,locale:s||v,direction:u,space:c,virtual:f,popupMatchSelectWidth:y??d,popupOverflow:C,getPrefixCls:_s,iconPrefixCls:_n,theme:eo,segmented:w,statistic:E,spin:x,calendar:b,carousel:T,cascader:P,collapse:O,typography:$,checkbox:D,descriptions:F,divider:z,drawer:H,skeleton:j,steps:R,image:M,input:Tt,layout:N,list:B,mentions:I,modal:K,progress:X,result:te,slider:de,breadcrumb:ne,menu:me,pagination:Ct,empty:Ze,badge:fe,radio:St,rate:ye,switch:ht,transfer:ke,avatar:Nn,message:zt,tag:jt,table:je,card:Me,tabs:ce,timeline:we,timePicker:pt,upload:nn,notification:rn,tree:on,colorPicker:yr,datePicker:bc,rangePicker:In,flex:As,wave:Ns,dropdown:Is,warning:Ec},to=Object.assign({},S);Object.keys(Gi).forEach(_=>{Gi[_]!==void 0&&(to[_]=Gi[_])}),K7.forEach(_=>{const W=e[_];W&&(to[_]=W)});const Sr=rc(()=>to,to,(_,W)=>{const q=Object.keys(_),ae=Object.keys(W);return q.length!==ae.length||q.some(re=>_[re]!==W[re])}),Ds=h.useMemo(()=>({prefixCls:_n,csp:Cr}),[_n,Cr]);let rt=h.createElement(h.Fragment,null,h.createElement(W7,{dropdownMatchSelectWidth:d}),t);const k=h.useMemo(()=>{var _,W,q,ae;return fi(((_=Fo.Form)===null||_===void 0?void 0:_.defaultValidateMessages)||{},((q=(W=Sr.locale)===null||W===void 0?void 0:W.Form)===null||q===void 0?void 0:q.defaultValidateMessages)||{},((ae=Sr.form)===null||ae===void 0?void 0:ae.validateMessages)||{},(a==null?void 0:a.validateMessages)||{})},[Sr,a==null?void 0:a.validateMessages]);Object.keys(k).length>0&&(rt=h.createElement(Kw.Provider,{value:k},rt)),s&&(rt=h.createElement(ob,{locale:s,_ANT_MARK__:nb},rt)),(_n||Cr)&&(rt=h.createElement(Kp.Provider,{value:Ds},rt)),l&&(rt=h.createElement(Qb,{size:l},rt)),rt=h.createElement(U7,null,rt);const A=h.useMemo(()=>{const _=eo||{},{algorithm:W,token:q,components:ae,cssVar:re}=_,ie=G7(_,["algorithm","token","components","cssVar"]),J=W&&(!Array.isArray(W)||W.length>0)?zd(W):vC,he={};Object.entries(ae||{}).forEach(ue=>{let[Te,ot]=ue;const He=Object.assign({},ot);"algorithm"in He&&(He.algorithm===!0?He.theme=J:(Array.isArray(He.algorithm)||typeof He.algorithm=="function")&&(He.theme=zd(He.algorithm)),delete He.algorithm),he[Te]=He});const qe=Object.assign(Object.assign({},ls),q);return Object.assign(Object.assign({},ie),{theme:J,token:qe,components:he,override:Object.assign({override:qe},he),cssVar:re})},[eo]);return p&&(rt=h.createElement(CC.Provider,{value:A},rt)),Sr.warning&&(rt=h.createElement(Gw.Provider,{value:Sr.warning},rt)),m!==void 0&&(rt=h.createElement(SC,{disabled:m},rt)),h.createElement(dt.Provider,{value:Sr},rt)},Hi=e=>{const t=h.useContext(dt),n=h.useContext(qp);return h.createElement(J7,Object.assign({parentContext:t,legacyLocale:n},e))};Hi.ConfigContext=dt;Hi.SizeContext=lc;Hi.config=Q7;Hi.useConfig=Yb;Object.defineProperty(Hi,"SizeContext",{get:()=>lc});const KC=Hi;var eE={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"check-circle",theme:"filled"};const tE=eE;function ZC(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function nE(e){return ZC(e)instanceof ShadowRoot}function rE(e){return nE(e)?ZC(e):null}function oE(e){return e.replace(/-(.)/g,function(t,n){return n.toUpperCase()})}function iE(e,t){Qt(e,"[@ant-design/icons] ".concat(t))}function Ug(e){return Ee(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(Ee(e.icon)==="object"||typeof e.icon=="function")}function Wg(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(e).reduce(function(t,n){var r=e[n];switch(n){case"class":t.className=r,delete t.class;break;default:delete t[n],t[oE(n)]=r}return t},{})}function ih(e,t,n){return n?Z.createElement(e.tag,U(U({key:t},Wg(e.attrs)),n),(e.children||[]).map(function(r,o){return ih(r,"".concat(t,"-").concat(e.tag,"-").concat(o))})):Z.createElement(e.tag,U({key:t},Wg(e.attrs)),(e.children||[]).map(function(r,o){return ih(r,"".concat(t,"-").concat(e.tag,"-").concat(o))}))}function qC(e){return Kr(e)[0]}function XC(e){return e?Array.isArray(e)?e:[e]:[]}var aE=` .anticon { display: inline-block; color: inherit; font-style: normal; line-height: 0; text-align: center; text-transform: none; vertical-align: -0.125em; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } .anticon > * { line-height: 1; } .anticon svg { display: inline-block; } .anticon::before { display: none; } .anticon .anticon-icon { display: block; } .anticon[tabindex] { cursor: pointer; } .anticon-spin::before, .anticon-spin { display: inline-block; -webkit-animation: loadingCircle 1s infinite linear; animation: loadingCircle 1s infinite linear; } @-webkit-keyframes loadingCircle { 100% { -webkit-transform: rotate(360deg); transform: rotate(360deg); } } @keyframes loadingCircle { 100% { -webkit-transform: rotate(360deg); transform: rotate(360deg); } } `,sE=function(t){var n=h.useContext(Kp),r=n.csp,o=n.prefixCls,i=aE;o&&(i=i.replace(/anticon/g,o)),h.useEffect(function(){var a=t.current,s=rE(a);Gr(i,"@ant-design-icons",{prepend:!0,csp:r,attachTo:s})},[])},lE=["icon","className","onClick","style","primaryColor","secondaryColor"],ka={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function uE(e){var t=e.primaryColor,n=e.secondaryColor;ka.primaryColor=t,ka.secondaryColor=n||qC(t),ka.calculated=!!n}function cE(){return U({},ka)}var uc=function(t){var n=t.icon,r=t.className,o=t.onClick,i=t.style,a=t.primaryColor,s=t.secondaryColor,l=jn(t,lE),u=h.useRef(),c=ka;if(a&&(c={primaryColor:a,secondaryColor:s||qC(a)}),sE(u),iE(Ug(n),"icon should be icon definiton, but got ".concat(n)),!Ug(n))return null;var f=n;return f&&typeof f.icon=="function"&&(f=U(U({},f),{},{icon:f.icon(c.primaryColor,c.secondaryColor)})),ih(f.icon,"svg-".concat(f.name),U(U({className:r,onClick:o,style:i,"data-icon":f.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},l),{},{ref:u}))};uc.displayName="IconReact";uc.getTwoToneColors=cE;uc.setTwoToneColors=uE;const tm=uc;function QC(e){var t=XC(e),n=Y(t,2),r=n[0],o=n[1];return tm.setTwoToneColors({primaryColor:r,secondaryColor:o})}function fE(){var e=tm.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var dE=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];QC(mC.primary);var cc=h.forwardRef(function(e,t){var n,r=e.className,o=e.icon,i=e.spin,a=e.rotate,s=e.tabIndex,l=e.onClick,u=e.twoToneColor,c=jn(e,dE),f=h.useContext(Kp),d=f.prefixCls,y=d===void 0?"anticon":d,C=f.rootClassName,v=le(C,y,(n={},V(n,"".concat(y,"-").concat(o.name),!!o.name),V(n,"".concat(y,"-spin"),!!i||o.name==="loading"),n),r),S=s;S===void 0&&l&&(S=-1);var g=a?{msTransform:"rotate(".concat(a,"deg)"),transform:"rotate(".concat(a,"deg)")}:void 0,p=XC(u),m=Y(p,2),w=m[0],E=m[1];return h.createElement("span",Fe({role:"img","aria-label":o.name},c,{ref:t,tabIndex:S,onClick:l,className:v}),h.createElement(tm,{icon:o,primaryColor:w,secondaryColor:E,style:g}))});cc.displayName="AntdIcon";cc.getTwoToneColor=fE;cc.setTwoToneColor=QC;const vr=cc;var hE=function(t,n){return h.createElement(vr,Fe({},t,{ref:n,icon:tE}))};const nm=h.forwardRef(hE);var pE={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z"}}]},name:"close-circle",theme:"filled"};const mE=pE;var gE=function(t,n){return h.createElement(vr,Fe({},t,{ref:n,icon:mE}))};const rm=h.forwardRef(gE);var vE={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"};const yE=vE;var CE=function(t,n){return h.createElement(vr,Fe({},t,{ref:n,icon:yE}))};const Os=h.forwardRef(CE);var SE={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"exclamation-circle",theme:"filled"};const xE=SE;var wE=function(t,n){return h.createElement(vr,Fe({},t,{ref:n,icon:xE}))};const om=h.forwardRef(wE);var bE={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"info-circle",theme:"filled"};const EE=bE;var PE=function(t,n){return h.createElement(vr,Fe({},t,{ref:n,icon:EE}))};const im=h.forwardRef(PE);var TE=`accept acceptCharset accessKey action allowFullScreen allowTransparency alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge charSet checked classID className colSpan cols content contentEditable contextMenu controls coords crossOrigin data dateTime default defer dir disabled download draggable encType form formAction formEncType formMethod formNoValidate formTarget frameBorder headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media mediaGroup method min minLength multiple muted name noValidate nonce open optimum pattern placeholder poster preload radioGroup readOnly rel required reversed role rowSpan rows sandbox scope scoped scrolling seamless selected shape size sizes span spellCheck src srcDoc srcLang srcSet start step style summary tabIndex target title type useMap value width wmode wrap`,OE=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,ME="".concat(TE," ").concat(OE).split(/[\s\n]+/),RE="aria-",kE="data-";function Gg(e,t){return e.indexOf(t)===0}function LE(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n;t===!1?n={aria:!0,data:!0,attr:!0}:t===!0?n={aria:!0}:n=U({},t);var r={};return Object.keys(e).forEach(function(o){(n.aria&&(o==="role"||Gg(o,RE))||n.data&&Gg(o,kE)||n.attr&&ME.includes(o))&&(r[o]=e[o])}),r}const{isValidElement:YC}=_i;function $E(e){return e&&YC(e)&&e.type===h.Fragment}function FE(e,t,n){return YC(e)?h.cloneElement(e,typeof n=="function"?n(e.props||{}):n):t}function JC(e,t){return FE(e,e,t)}const jE=e=>{const[,,,,t]=An();return t?`${e}-css-var`:""},am=jE;var oe={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(t){var n=t.keyCode;if(t.altKey&&!t.ctrlKey||t.metaKey||n>=oe.F1&&n<=oe.F12)return!1;switch(n){case oe.ALT:case oe.CAPS_LOCK:case oe.CONTEXT_MENU:case oe.CTRL:case oe.DOWN:case oe.END:case oe.ESC:case oe.HOME:case oe.INSERT:case oe.LEFT:case oe.MAC_FF_META:case oe.META:case oe.NUMLOCK:case oe.NUM_CENTER:case oe.PAGE_DOWN:case oe.PAGE_UP:case oe.PAUSE:case oe.PRINT_SCREEN:case oe.RIGHT:case oe.SHIFT:case oe.UP:case oe.WIN_KEY:case oe.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(t){if(t>=oe.ZERO&&t<=oe.NINE||t>=oe.NUM_ZERO&&t<=oe.NUM_MULTIPLY||t>=oe.A&&t<=oe.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&t===0)return!0;switch(t){case oe.SPACE:case oe.QUESTION_MARK:case oe.NUM_PLUS:case oe.NUM_MINUS:case oe.NUM_PERIOD:case oe.NUM_DIVISION:case oe.SEMICOLON:case oe.DASH:case oe.EQUALS:case oe.COMMA:case oe.PERIOD:case oe.SLASH:case oe.APOSTROPHE:case oe.SINGLE_QUOTE:case oe.OPEN_SQUARE_BRACKET:case oe.BACKSLASH:case oe.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},AE=h.forwardRef(function(e,t){var n=e.prefixCls,r=e.style,o=e.className,i=e.duration,a=i===void 0?4.5:i,s=e.eventKey,l=e.content,u=e.closable,c=e.closeIcon,f=c===void 0?"x":c,d=e.props,y=e.onClick,C=e.onNoticeClose,v=e.times,S=e.hovering,g=h.useState(!1),p=Y(g,2),m=p[0],w=p[1],E=S||m,x=function(){C(s)},b=function(O){(O.key==="Enter"||O.code==="Enter"||O.keyCode===oe.ENTER)&&x()};h.useEffect(function(){if(!E&&a>0){var P=setTimeout(function(){x()},a*1e3);return function(){clearTimeout(P)}}},[a,E,v]);var T="".concat(n,"-notice");return h.createElement("div",Fe({},d,{ref:t,className:le(T,o,V({},"".concat(T,"-closable"),u)),style:r,onMouseEnter:function(O){var $;w(!0),d==null||($=d.onMouseEnter)===null||$===void 0||$.call(d,O)},onMouseLeave:function(O){var $;w(!1),d==null||($=d.onMouseLeave)===null||$===void 0||$.call(d,O)},onClick:y}),h.createElement("div",{className:"".concat(T,"-content")},l),u&&h.createElement("a",{tabIndex:0,className:"".concat(T,"-close"),onKeyDown:b,onClick:function(O){O.preventDefault(),O.stopPropagation(),x()}},f))}),e5=Z.createContext({}),t5=function(t){var n=t.children,r=t.classNames;return Z.createElement(e5.Provider,{value:{classNames:r}},n)},Kg=8,Zg=3,qg=16,NE=function(t){var n={offset:Kg,threshold:Zg,gap:qg};if(t&&Ee(t)==="object"){var r,o,i;n.offset=(r=t.offset)!==null&&r!==void 0?r:Kg,n.threshold=(o=t.threshold)!==null&&o!==void 0?o:Zg,n.gap=(i=t.gap)!==null&&i!==void 0?i:qg}return[!!t,n]},IE=["className","style","classNames","styles"],_E=function(t){var n,r=t.configList,o=t.placement,i=t.prefixCls,a=t.className,s=t.style,l=t.motion,u=t.onAllNoticeRemoved,c=t.onNoticeClose,f=t.stack,d=h.useContext(e5),y=d.classNames,C=h.useRef({}),v=h.useState(null),S=Y(v,2),g=S[0],p=S[1],m=h.useState([]),w=Y(m,2),E=w[0],x=w[1],b=r.map(function(R){return{config:R,key:String(R.key)}}),T=NE(f),P=Y(T,2),O=P[0],$=P[1],D=$.offset,F=$.threshold,z=$.gap,H=O&&(E.length>0||b.length<=F),j=typeof l=="function"?l(o):l;return h.useEffect(function(){O&&E.length>1&&x(function(R){return R.filter(function(M){return b.some(function(N){var B=N.key;return M===B})})})},[E,b,O]),h.useEffect(function(){var R;if(O&&C.current[(R=b[b.length-1])===null||R===void 0?void 0:R.key]){var M;p(C.current[(M=b[b.length-1])===null||M===void 0?void 0:M.key])}},[b,O]),Z.createElement(H7,Fe({key:o,className:le(i,"".concat(i,"-").concat(o),y==null?void 0:y.list,a,(n={},V(n,"".concat(i,"-stack"),!!O),V(n,"".concat(i,"-stack-expanded"),H),n)),style:s,keys:b,motionAppear:!0},j,{onAllRemoved:function(){u(o)}}),function(R,M){var N=R.config,B=R.className,I=R.style,K=R.index,X=N,te=X.key,de=X.times,ne=String(te),me=N,Ct=me.className,Tt=me.style,Ze=me.classNames,fe=me.styles,St=jn(me,IE),ye=b.findIndex(function(rn){return rn.key===ne}),ht={};if(O){var ke=b.length-1-(ye>-1?ye:K-1),Nn=o==="top"||o==="bottom"?"-50%":"0";if(ke>0){var zt,jt,je;ht.height=H?(zt=C.current[ne])===null||zt===void 0?void 0:zt.offsetHeight:g==null?void 0:g.offsetHeight;for(var Me=0,ce=0;ce-1?C.current[ne]=on:delete C.current[ne]},prefixCls:i,classNames:Ze,styles:fe,className:le(Ct,y==null?void 0:y.notice),style:Tt,times:de,key:te,eventKey:te,onNoticeClose:c,hovering:O&&E.length>0})))})},DE=h.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-notification":n,o=e.container,i=e.motion,a=e.maxCount,s=e.className,l=e.style,u=e.onAllRemoved,c=e.stack,f=e.renderNotifications,d=h.useState([]),y=Y(d,2),C=y[0],v=y[1],S=function(P){var O,$=C.find(function(D){return D.key===P});$==null||(O=$.onClose)===null||O===void 0||O.call($),v(function(D){return D.filter(function(F){return F.key!==P})})};h.useImperativeHandle(t,function(){return{open:function(P){v(function(O){var $=ee(O),D=$.findIndex(function(H){return H.key===P.key}),F=U({},P);if(D>=0){var z;F.times=(((z=O[D])===null||z===void 0?void 0:z.times)||0)+1,$[D]=F}else F.times=0,$.push(F);return a>0&&$.length>a&&($=$.slice(-a)),$})},close:function(P){S(P)},destroy:function(){v([])}}});var g=h.useState({}),p=Y(g,2),m=p[0],w=p[1];h.useEffect(function(){var T={};C.forEach(function(P){var O=P.placement,$=O===void 0?"topRight":O;$&&(T[$]=T[$]||[],T[$].push(P))}),Object.keys(m).forEach(function(P){T[P]=T[P]||[]}),w(T)},[C]);var E=function(P){w(function(O){var $=U({},O),D=$[P]||[];return D.length||delete $[P],$})},x=h.useRef(!1);if(h.useEffect(function(){Object.keys(m).length>0?x.current=!0:x.current&&(u==null||u(),x.current=!1)},[m]),!o)return null;var b=Object.keys(m);return Ss.createPortal(h.createElement(h.Fragment,null,b.map(function(T){var P=m[T],O=h.createElement(_E,{key:T,configList:P,placement:T,prefixCls:r,className:s==null?void 0:s(T),style:l==null?void 0:l(T),motion:i,onNoticeClose:S,onAllNoticeRemoved:E,stack:c});return f?f(O,{prefixCls:r,key:T}):O})),o)}),VE=["getContainer","motion","prefixCls","maxCount","className","style","onAllRemoved","stack","renderNotifications"],BE=function(){return document.body},Xg=0;function zE(){for(var e={},t=arguments.length,n=new Array(t),r=0;r0&&arguments[0]!==void 0?arguments[0]:{},t=e.getContainer,n=t===void 0?BE:t,r=e.motion,o=e.prefixCls,i=e.maxCount,a=e.className,s=e.style,l=e.onAllRemoved,u=e.stack,c=e.renderNotifications,f=jn(e,VE),d=h.useState(),y=Y(d,2),C=y[0],v=y[1],S=h.useRef(),g=h.createElement(DE,{container:C,ref:S,prefixCls:o,motion:r,maxCount:i,className:a,style:s,onAllRemoved:l,stack:u,renderNotifications:c}),p=h.useState([]),m=Y(p,2),w=m[0],E=m[1],x=h.useMemo(function(){return{open:function(T){var P=zE(f,T);(P.key===null||P.key===void 0)&&(P.key="rc-notification-".concat(Xg),Xg+=1),E(function(O){return[].concat(ee(O),[{type:"open",config:P}])})},close:function(T){E(function(P){return[].concat(ee(P),[{type:"close",key:T}])})},destroy:function(){E(function(T){return[].concat(ee(T),[{type:"destroy"}])})}}},[]);return h.useEffect(function(){v(n())}),h.useEffect(function(){S.current&&w.length&&(w.forEach(function(b){switch(b.type){case"open":S.current.open(b.config);break;case"close":S.current.close(b.key);break;case"destroy":S.current.destroy();break}}),E(function(b){return b.filter(function(T){return!w.includes(T)})}))},[w]),[x,g]}var HE={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"};const UE=HE;var WE=function(t,n){return h.createElement(vr,Fe({},t,{ref:n,icon:UE}))};const r5=h.forwardRef(WE),GE=Z.createContext(void 0),o5=GE,so=100,KE=10,fc=so*KE,i5={Modal:so,Drawer:so,Popover:so,Popconfirm:so,Tooltip:so,Tour:so},ZE={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function qE(e){return e in i5}function XE(e,t){const[,n]=An(),r=Z.useContext(o5),o=qE(e);if(t!==void 0)return[t,t];let i=r??0;return o?(i+=(r?0:n.zIndexPopupBase)+i5[e],i=Math.min(i,n.zIndexPopupBase+fc)):i+=ZE[e],[r===void 0?t:i,i]}const QE=e=>{const{componentCls:t,iconCls:n,boxShadow:r,colorText:o,colorSuccess:i,colorError:a,colorWarning:s,colorInfo:l,fontSizeLG:u,motionEaseInOutCirc:c,motionDurationSlow:f,marginXS:d,paddingXS:y,borderRadiusLG:C,zIndexPopup:v,contentPadding:S,contentBg:g}=e,p=`${t}-notice`,m=new Je("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:y,transform:"translateY(0)",opacity:1}}),w=new Je("MessageMoveOut",{"0%":{maxHeight:e.height,padding:y,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}}),E={padding:y,textAlign:"center",[`${t}-custom-content > ${n}`]:{verticalAlign:"text-bottom",marginInlineEnd:d,fontSize:u},[`${p}-content`]:{display:"inline-block",padding:S,background:g,borderRadius:C,boxShadow:r,pointerEvents:"all"},[`${t}-success > ${n}`]:{color:i},[`${t}-error > ${n}`]:{color:a},[`${t}-warning > ${n}`]:{color:s},[`${t}-info > ${n}, ${t}-loading > ${n}`]:{color:l}};return[{[t]:Object.assign(Object.assign({},Yp(e)),{color:o,position:"fixed",top:d,width:"100%",pointerEvents:"none",zIndex:v,[`${t}-move-up`]:{animationFillMode:"forwards"},[` ${t}-move-up-appear, ${t}-move-up-enter `]:{animationName:m,animationDuration:f,animationPlayState:"paused",animationTimingFunction:c},[` ${t}-move-up-appear${t}-move-up-appear-active, ${t}-move-up-enter${t}-move-up-enter-active `]:{animationPlayState:"running"},[`${t}-move-up-leave`]:{animationName:w,animationDuration:f,animationPlayState:"paused",animationTimingFunction:c},[`${t}-move-up-leave${t}-move-up-leave-active`]:{animationPlayState:"running"},"&-rtl":{direction:"rtl",span:{direction:"rtl"}}})},{[t]:{[`${p}-wrapper`]:Object.assign({},E)}},{[`${t}-notice-pure-panel`]:Object.assign(Object.assign({},E),{padding:0,textAlign:"start"})}]},YE=e=>({zIndexPopup:e.zIndexPopupBase+fc+10,contentBg:e.colorBgElevated,contentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`}),JE=_o("Message",e=>{const t=Kn(e,{height:150});return[QE(t)]},YE);globalThis&&globalThis.__rest;const eP={info:h.createElement(im,null),success:h.createElement(nm,null),error:h.createElement(rm,null),warning:h.createElement(om,null),loading:h.createElement(r5,null)},tP=e=>{let{prefixCls:t,type:n,icon:r,children:o}=e;return h.createElement("div",{className:le(`${t}-custom-content`,`${t}-${n}`)},r||eP[n],h.createElement("span",null,o))};function nP(e,t){return{motionName:t??`${e}-move-up`}}function rP(e){let t;const n=new Promise(o=>{t=e(()=>{o(!0)})}),r=()=>{t==null||t()};return r.then=(o,i)=>n.then(o,i),r.promise=n,r}var oP=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{let{children:t,prefixCls:n}=e;const r=am(n),[o,i,a]=JE(n,r);return o(h.createElement(t5,{classNames:{list:le(i,a,r)}},t))},lP=(e,t)=>{let{prefixCls:n,key:r}=t;return h.createElement(sP,{prefixCls:n,key:r},e)},uP=h.forwardRef((e,t)=>{const{top:n,prefixCls:r,getContainer:o,maxCount:i,duration:a=aP,rtl:s,transitionName:l,onAllRemoved:u}=e,{getPrefixCls:c,getPopupContainer:f,message:d}=h.useContext(dt),y=r||c("message"),C=()=>({left:"50%",transform:"translateX(-50%)",top:n??iP}),v=()=>le({[`${y}-rtl`]:s}),S=()=>nP(y,l),g=h.createElement("span",{className:`${y}-close-x`},h.createElement(Os,{className:`${y}-close-icon`})),[p,m]=n5({prefixCls:y,style:C,className:v,motion:S,closable:!1,closeIcon:g,duration:a,getContainer:()=>(o==null?void 0:o())||(f==null?void 0:f())||document.body,maxCount:i,onAllRemoved:u,renderNotifications:lP});return h.useImperativeHandle(t,()=>Object.assign(Object.assign({},p),{prefixCls:y,message:d})),m});let Qg=0;function cP(e){const t=h.useRef(null);return Zp(),[h.useMemo(()=>{const r=l=>{var u;(u=t.current)===null||u===void 0||u.close(l)},o=l=>{if(!t.current){const x=()=>{};return x.then=()=>{},x}const{open:u,prefixCls:c,message:f}=t.current,d=`${c}-notice`,{content:y,icon:C,type:v,key:S,className:g,style:p,onClose:m}=l,w=oP(l,["content","icon","type","key","className","style","onClose"]);let E=S;return E==null&&(Qg+=1,E=`antd-message-${Qg}`),rP(x=>(u(Object.assign(Object.assign({},w),{key:E,content:h.createElement(tP,{prefixCls:c,type:v,icon:C},y),placement:"top",className:le(v&&`${d}-${v}`,g,f==null?void 0:f.className),style:Object.assign(Object.assign({},f==null?void 0:f.style),p),onClose:()=>{m==null||m(),x()}})),()=>{r(E)}))},a={open:o,destroy:l=>{var u;l!==void 0?r(l):(u=t.current)===null||u===void 0||u.destroy()}};return["info","success","warning","error","loading"].forEach(l=>{const u=(c,f,d)=>{let y;c&&typeof c=="object"&&"content"in c?y=c:y={content:c};let C,v;typeof f=="function"?v=f:(C=f,v=d);const S=Object.assign(Object.assign({onClose:v,duration:C},y),{type:l});return o(S)};a[l]=u}),a},[]),h.createElement(uP,Object.assign({key:"message-holder"},e,{ref:t}))]}function fP(e){return cP(e)}function dP(){const[e,t]=h.useState([]),n=h.useCallback(r=>(t(o=>[].concat(ee(o),[r])),()=>{t(o=>o.filter(i=>i!==r))}),[]);return[e,n]}function Lt(){Lt=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(j,R,M){j[R]=M.value},i=typeof Symbol=="function"?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function u(j,R,M){return Object.defineProperty(j,R,{value:M,enumerable:!0,configurable:!0,writable:!0}),j[R]}try{u({},"")}catch{u=function(M,N,B){return M[N]=B}}function c(j,R,M,N){var B=R&&R.prototype instanceof g?R:g,I=Object.create(B.prototype),K=new z(N||[]);return o(I,"_invoke",{value:O(j,M,K)}),I}function f(j,R,M){try{return{type:"normal",arg:j.call(R,M)}}catch(N){return{type:"throw",arg:N}}}t.wrap=c;var d="suspendedStart",y="suspendedYield",C="executing",v="completed",S={};function g(){}function p(){}function m(){}var w={};u(w,a,function(){return this});var E=Object.getPrototypeOf,x=E&&E(E(H([])));x&&x!==n&&r.call(x,a)&&(w=x);var b=m.prototype=g.prototype=Object.create(w);function T(j){["next","throw","return"].forEach(function(R){u(j,R,function(M){return this._invoke(R,M)})})}function P(j,R){function M(B,I,K,X){var te=f(j[B],j,I);if(te.type!=="throw"){var de=te.arg,ne=de.value;return ne&&Ee(ne)=="object"&&r.call(ne,"__await")?R.resolve(ne.__await).then(function(me){M("next",me,K,X)},function(me){M("throw",me,K,X)}):R.resolve(ne).then(function(me){de.value=me,K(de)},function(me){return M("throw",me,K,X)})}X(te.arg)}var N;o(this,"_invoke",{value:function(I,K){function X(){return new R(function(te,de){M(I,K,te,de)})}return N=N?N.then(X,X):X()}})}function O(j,R,M){var N=d;return function(B,I){if(N===C)throw new Error("Generator is already running");if(N===v){if(B==="throw")throw I;return{value:e,done:!0}}for(M.method=B,M.arg=I;;){var K=M.delegate;if(K){var X=$(K,M);if(X){if(X===S)continue;return X}}if(M.method==="next")M.sent=M._sent=M.arg;else if(M.method==="throw"){if(N===d)throw N=v,M.arg;M.dispatchException(M.arg)}else M.method==="return"&&M.abrupt("return",M.arg);N=C;var te=f(j,R,M);if(te.type==="normal"){if(N=M.done?v:y,te.arg===S)continue;return{value:te.arg,done:M.done}}te.type==="throw"&&(N=v,M.method="throw",M.arg=te.arg)}}}function $(j,R){var M=R.method,N=j.iterator[M];if(N===e)return R.delegate=null,M==="throw"&&j.iterator.return&&(R.method="return",R.arg=e,$(j,R),R.method==="throw")||M!=="return"&&(R.method="throw",R.arg=new TypeError("The iterator does not provide a '"+M+"' method")),S;var B=f(N,j.iterator,R.arg);if(B.type==="throw")return R.method="throw",R.arg=B.arg,R.delegate=null,S;var I=B.arg;return I?I.done?(R[j.resultName]=I.value,R.next=j.nextLoc,R.method!=="return"&&(R.method="next",R.arg=e),R.delegate=null,S):I:(R.method="throw",R.arg=new TypeError("iterator result is not an object"),R.delegate=null,S)}function D(j){var R={tryLoc:j[0]};1 in j&&(R.catchLoc=j[1]),2 in j&&(R.finallyLoc=j[2],R.afterLoc=j[3]),this.tryEntries.push(R)}function F(j){var R=j.completion||{};R.type="normal",delete R.arg,j.completion=R}function z(j){this.tryEntries=[{tryLoc:"root"}],j.forEach(D,this),this.reset(!0)}function H(j){if(j||j===""){var R=j[a];if(R)return R.call(j);if(typeof j.next=="function")return j;if(!isNaN(j.length)){var M=-1,N=function B(){for(;++M=0;--B){var I=this.tryEntries[B],K=I.completion;if(I.tryLoc==="root")return N("end");if(I.tryLoc<=this.prev){var X=r.call(I,"catchLoc"),te=r.call(I,"finallyLoc");if(X&&te){if(this.prev=0;--N){var B=this.tryEntries[N];if(B.tryLoc<=this.prev&&r.call(B,"finallyLoc")&&this.prev=0;--M){var N=this.tryEntries[M];if(N.finallyLoc===R)return this.complete(N.completion,N.afterLoc),F(N),S}},catch:function(R){for(var M=this.tryEntries.length-1;M>=0;--M){var N=this.tryEntries[M];if(N.tryLoc===R){var B=N.completion;if(B.type==="throw"){var I=B.arg;F(N)}return I}}throw new Error("illegal catch attempt")},delegateYield:function(R,M,N){return this.delegate={iterator:H(R),resultName:M,nextLoc:N},this.method==="next"&&(this.arg=e),S}},t}function Yg(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(u){n(u);return}s.done?t(l):Promise.resolve(l).then(r,o)}function Do(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(l){Yg(i,r,o,a,s,"next",l)}function s(l){Yg(i,r,o,a,s,"throw",l)}a(void 0)})}}var Ms=U({},u3),hP=Ms.version,pP=Ms.render,mP=Ms.unmountComponentAtNode,dc;try{var gP=Number((hP||"").split(".")[0]);gP>=18&&(dc=Ms.createRoot)}catch{}function Jg(e){var t=Ms.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&Ee(t)==="object"&&(t.usingClientEntryPoint=e)}var yu="__rc_react_root__";function vP(e,t){Jg(!0);var n=t[yu]||dc(t);Jg(!1),n.render(e),t[yu]=n}function yP(e,t){pP(e,t)}function a5(e,t){if(dc){vP(e,t);return}yP(e,t)}function CP(e){return ah.apply(this,arguments)}function ah(){return ah=Do(Lt().mark(function e(t){return Lt().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.resolve().then(function(){var o;(o=t[yu])===null||o===void 0||o.unmount(),delete t[yu]}));case 1:case"end":return r.stop()}},e)})),ah.apply(this,arguments)}function SP(e){mP(e)}function s5(e){return sh.apply(this,arguments)}function sh(){return sh=Do(Lt().mark(function e(t){return Lt().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(dc===void 0){r.next=2;break}return r.abrupt("return",CP(t));case 2:SP(t);case 3:case"end":return r.stop()}},e)})),sh.apply(this,arguments)}const vf=()=>({height:0,opacity:0}),ev=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},xP=e=>({height:e?e.offsetHeight:0}),yf=(e,t)=>(t==null?void 0:t.deadline)===!0||t.propertyName==="height",wP=function(){return{motionName:`${arguments.length>0&&arguments[0]!==void 0?arguments[0]:"ant"}-motion-collapse`,onAppearStart:vf,onEnterStart:vf,onAppearActive:ev,onEnterActive:ev,onLeaveStart:xP,onLeaveActive:vf,onAppearEnd:yf,onEnterEnd:yf,onLeaveEnd:yf,motionDeadline:500}},Cu=(e,t,n)=>n!==void 0?n:`${e}-${t}`,Nj=wP,bP=function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox(),n=t.width,r=t.height;if(n||r)return!0}if(e.getBoundingClientRect){var o=e.getBoundingClientRect(),i=o.width,a=o.height;if(i||a)return!0}}return!1},EP=e=>{const{componentCls:t,colorPrimary:n}=e;return{[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${n})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s ${e.motionEaseOutCirc}`,`opacity 2s ${e.motionEaseOutCirc}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:[`box-shadow 0.3s ${e.motionEaseInOut}`,`opacity 0.35s ${e.motionEaseInOut}`].join(",")}}}}},PP=Jp("Wave",e=>[EP(e)]);function TP(e){const t=(e||"").match(/rgba?\((\d*), (\d*), (\d*)(, [\d.]*)?\)/);return t&&t[1]&&t[2]&&t[3]?!(t[1]===t[2]&&t[2]===t[3]):!0}function Cf(e){return e&&e!=="#fff"&&e!=="#ffffff"&&e!=="rgb(255, 255, 255)"&&e!=="rgba(255, 255, 255, 1)"&&TP(e)&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&e!=="transparent"}function OP(e){const{borderTopColor:t,borderColor:n,backgroundColor:r}=getComputedStyle(e);return Cf(t)?t:Cf(n)?n:Cf(r)?r:null}const l5="ant-wave-target";function Sf(e){return Number.isNaN(e)?0:e}const MP=e=>{const{className:t,target:n,component:r}=e,o=h.useRef(null),[i,a]=h.useState(null),[s,l]=h.useState([]),[u,c]=h.useState(0),[f,d]=h.useState(0),[y,C]=h.useState(0),[v,S]=h.useState(0),[g,p]=h.useState(!1),m={left:u,top:f,width:y,height:v,borderRadius:s.map(x=>`${x}px`).join(" ")};i&&(m["--wave-color"]=i);function w(){const x=getComputedStyle(n);a(OP(n));const b=x.position==="static",{borderLeftWidth:T,borderTopWidth:P}=x;c(b?n.offsetLeft:Sf(-parseFloat(T))),d(b?n.offsetTop:Sf(-parseFloat(P))),C(n.offsetWidth),S(n.offsetHeight);const{borderTopLeftRadius:O,borderTopRightRadius:$,borderBottomLeftRadius:D,borderBottomRightRadius:F}=x;l([O,$,F,D].map(z=>Sf(parseFloat(z))))}if(h.useEffect(()=>{if(n){const x=$o(()=>{w(),p(!0)});let b;return typeof ResizeObserver<"u"&&(b=new ResizeObserver(w),b.observe(n)),()=>{$o.cancel(x),b==null||b.disconnect()}}},[]),!g)return null;const E=(r==="Checkbox"||r==="Radio")&&(n==null?void 0:n.classList.contains(l5));return h.createElement(Ts,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(x,b)=>{var T;if(b.deadline||b.propertyName==="opacity"){const P=(T=o.current)===null||T===void 0?void 0:T.parentElement;s5(P).then(()=>{P==null||P.remove()})}return!1}},x=>{let{className:b}=x;return h.createElement("div",{ref:o,className:le(t,{"wave-quick":E},b),style:m})})},RP=(e,t)=>{var n;const{component:r}=t;if(r==="Checkbox"&&!(!((n=e.querySelector("input"))===null||n===void 0)&&n.checked))return;const o=document.createElement("div");o.style.position="absolute",o.style.left="0px",o.style.top="0px",e==null||e.insertBefore(o,e==null?void 0:e.firstChild),a5(h.createElement(MP,Object.assign({},t,{target:e})),o)},kP=RP;function LP(e,t,n){const{wave:r}=h.useContext(dt),[,o,i]=An(),a=TC(u=>{const c=e.current;if(r!=null&&r.disabled||!c)return;const f=c.querySelector(`.${l5}`)||c,{showEffect:d}=r||{};(d||kP)(f,{className:t,token:o,component:n,event:u,hashId:i})}),s=h.useRef();return u=>{$o.cancel(s.current),s.current=$o(()=>{a(u)})}}const $P=e=>{const{children:t,disabled:n,component:r}=e,{getPrefixCls:o}=h.useContext(dt),i=h.useRef(null),a=o("wave"),[,s]=PP(a),l=LP(i,le(a,s),r);if(Z.useEffect(()=>{const c=i.current;if(!c||c.nodeType!==1||n)return;const f=d=>{!bP(d.target)||!c.getAttribute||c.getAttribute("disabled")||c.disabled||c.className.includes("disabled")||c.className.includes("-leave")||l(d)};return c.addEventListener("click",f,!0),()=>{c.removeEventListener("click",f,!0)}},[n]),!Z.isValidElement(t))return t??null;const u=oc(t)?Ip(t.ref,i):i;return JC(t,{ref:u})},FP=$P,jP=e=>{const t=Z.useContext(lc);return Z.useMemo(()=>e?typeof e=="string"?e??t:e instanceof Function?e(t):t:t,[e,t])},u5=jP,AP=e=>{const{componentCls:t}=e;return{[t]:{"&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}},NP=AP,IP=e=>{const{componentCls:t}=e;return{[t]:{display:"inline-flex","&-rtl":{direction:"rtl"},"&-vertical":{flexDirection:"column"},"&-align":{flexDirection:"column","&-center":{alignItems:"center"},"&-start":{alignItems:"flex-start"},"&-end":{alignItems:"flex-end"},"&-baseline":{alignItems:"baseline"}},[`${t}-item:empty`]:{display:"none"}}}},_P=e=>{const{componentCls:t}=e;return{[t]:{"&-gap-row-small":{rowGap:e.spaceGapSmallSize},"&-gap-row-middle":{rowGap:e.spaceGapMiddleSize},"&-gap-row-large":{rowGap:e.spaceGapLargeSize},"&-gap-col-small":{columnGap:e.spaceGapSmallSize},"&-gap-col-middle":{columnGap:e.spaceGapMiddleSize},"&-gap-col-large":{columnGap:e.spaceGapLargeSize}}}},DP=_o("Space",e=>{const t=Kn(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[IP(t),_P(t),NP(t)]},()=>({}),{resetStyle:!1});var c5=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const n=h.useContext(hc),r=h.useMemo(()=>{if(!n)return"";const{compactDirection:o,isFirstItem:i,isLastItem:a}=n,s=o==="vertical"?"-vertical-":"-";return le(`${e}-compact${s}item`,{[`${e}-compact${s}first-item`]:i,[`${e}-compact${s}last-item`]:a,[`${e}-compact${s}item-rtl`]:t==="rtl"})},[e,t,n]);return{compactSize:n==null?void 0:n.compactSize,compactDirection:n==null?void 0:n.compactDirection,compactItemClassnames:r}},BP=e=>{let{children:t}=e;return h.createElement(hc.Provider,{value:null},t)},zP=e=>{var{children:t}=e,n=c5(e,["children"]);return h.createElement(hc.Provider,{value:n},t)},Ij=e=>{const{getPrefixCls:t,direction:n}=h.useContext(dt),{size:r,direction:o,block:i,prefixCls:a,className:s,rootClassName:l,children:u}=e,c=c5(e,["size","direction","block","prefixCls","className","rootClassName","children"]),f=u5(m=>r??m),d=t("space-compact",a),[y,C]=DP(d),v=le(d,C,{[`${d}-rtl`]:n==="rtl",[`${d}-block`]:i,[`${d}-vertical`]:o==="vertical"},s,l),S=h.useContext(hc),g=ns(u),p=h.useMemo(()=>g.map((m,w)=>{const E=m&&m.key||`${d}-item-${w}`;return h.createElement(zP,{key:E,compactSize:f,compactDirection:o,isFirstItem:w===0&&(!S||(S==null?void 0:S.isFirstItem)),isLastItem:w===g.length-1&&(!S||(S==null?void 0:S.isLastItem))},m)}),[r,g,S]);return g.length===0?null:y(h.createElement("div",Object.assign({className:v},c),p))};var HP=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{getPrefixCls:t,direction:n}=h.useContext(dt),{prefixCls:r,size:o,className:i}=e,a=HP(e,["prefixCls","size","className"]),s=t("btn-group",r),[,,l]=An();let u="";switch(o){case"large":u="lg";break;case"small":u="sm";break}const c=le(s,{[`${s}-${u}`]:u,[`${s}-rtl`]:n==="rtl"},i,l);return h.createElement(f5.Provider,{value:o},h.createElement("div",Object.assign({},a,{className:c})))},WP=UP,tv=/^[\u4e00-\u9fa5]{2}$/,lh=tv.test.bind(tv);function d5(e){return e==="danger"?{danger:!0}:{type:e}}function nv(e){return typeof e=="string"}function xf(e){return e==="text"||e==="link"}function GP(e,t){if(e==null)return;const n=t?" ":"";return typeof e!="string"&&typeof e!="number"&&nv(e.type)&&lh(e.props.children)?JC(e,{children:e.props.children.split("").join(n)}):nv(e)?lh(e)?Z.createElement("span",null,e.split("").join(n)):Z.createElement("span",null,e):$E(e)?Z.createElement("span",null,e):e}function KP(e,t){let n=!1;const r=[];return Z.Children.forEach(e,o=>{const i=typeof o,a=i==="string"||i==="number";if(n&&a){const s=r.length-1,l=r[s];r[s]=`${l}${o}`}else r.push(o);n=a}),Z.Children.map(r,o=>GP(o,t))}const ZP=h.forwardRef((e,t)=>{const{className:n,style:r,children:o,prefixCls:i}=e,a=le(`${i}-icon`,n);return Z.createElement("span",{ref:t,className:a,style:r},o)}),h5=ZP,rv=h.forwardRef((e,t)=>{let{prefixCls:n,className:r,style:o,iconClassName:i}=e;const a=le(`${n}-loading-icon`,r);return Z.createElement(h5,{prefixCls:n,className:a,style:o,ref:t},Z.createElement(r5,{className:i}))}),wf=()=>({width:0,opacity:0,transform:"scale(0)"}),bf=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),qP=e=>{const{prefixCls:t,loading:n,existIcon:r,className:o,style:i}=e,a=!!n;return r?Z.createElement(rv,{prefixCls:t,className:o,style:i}):Z.createElement(Ts,{visible:a,motionName:`${t}-loading-icon-motion`,motionLeave:a,removeOnLeave:!0,onAppearStart:wf,onAppearActive:bf,onEnterStart:wf,onEnterActive:bf,onLeaveStart:bf,onLeaveActive:wf},(s,l)=>{let{className:u,style:c}=s;return Z.createElement(rv,{prefixCls:t,className:o,style:Object.assign(Object.assign({},i),c),ref:l,iconClassName:u})})},XP=qP,ov=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),QP=e=>{const{componentCls:t,fontSize:n,lineWidth:r,groupBorderColor:o,colorErrorHover:i}=e;return{[`${t}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:e.calc(r).mul(-1).equal(),[`&, & > ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:"relative",zIndex:1,"&:hover,\n &:focus,\n &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:n}},ov(`${t}-primary`,o),ov(`${t}-danger`,i)]}},YP=QP,JP=e=>{const{componentCls:t,iconCls:n,fontWeight:r}=e;return{[t]:{outline:"none",position:"relative",display:"inline-block",fontWeight:r,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:`${xe(e.lineWidth)} ${e.lineType} transparent`,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",lineHeight:e.lineHeight,color:e.colorText,"&:disabled > *":{pointerEvents:"none"},"> span":{display:"inline-block"},[`${t}-icon`]:{lineHeight:0},[`> ${n} + span, > span + ${n}`]:{marginInlineStart:e.marginXS},[`&:not(${t}-icon-only) > ${t}-icon`]:{[`&${t}-loading-icon, &:not(:last-child)`]:{marginInlineEnd:e.marginXS}},"> a":{color:"currentColor"},"&:not(:disabled)":Object.assign({},OC(e)),[`&${t}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${t}-two-chinese-chars > *:not(${n})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},[`&-icon-only${t}-compact-item`]:{flex:"none"}}}},dr=(e,t,n)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":n}}),eT=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),tT=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.calc(e.controlHeight).div(2).equal(),paddingInlineEnd:e.calc(e.controlHeight).div(2).equal()}),nT=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),us=(e,t,n,r,o,i,a,s)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:n||void 0,background:t,borderColor:r||void 0,boxShadow:"none"},dr(e,Object.assign({background:t},a),Object.assign({background:t},s))),{"&:disabled":{cursor:"not-allowed",color:o||void 0,borderColor:i||void 0}})}),sm=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},nT(e))}),p5=e=>Object.assign({},sm(e)),Su=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),m5=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},p5(e)),{background:e.defaultBg,borderColor:e.defaultBorderColor,color:e.defaultColor,boxShadow:e.defaultShadow}),dr(e.componentCls,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),us(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({color:e.colorError,borderColor:e.colorError},dr(e.componentCls,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),us(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder)),sm(e))}),rT=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},p5(e)),{color:e.primaryColor,background:e.colorPrimary,boxShadow:e.primaryShadow}),dr(e.componentCls,{color:e.colorTextLightSolid,background:e.colorPrimaryHover},{color:e.colorTextLightSolid,background:e.colorPrimaryActive})),us(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({background:e.colorError,boxShadow:e.dangerShadow,color:e.dangerColor},dr(e.componentCls,{background:e.colorErrorHover},{background:e.colorErrorActive})),us(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),sm(e))}),oT=e=>Object.assign(Object.assign({},m5(e)),{borderStyle:"dashed"}),iT=e=>Object.assign(Object.assign(Object.assign({color:e.colorLink},dr(e.componentCls,{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),Su(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},dr(e.componentCls,{color:e.colorErrorHover},{color:e.colorErrorActive})),Su(e))}),aT=e=>Object.assign(Object.assign(Object.assign({},dr(e.componentCls,{color:e.colorText,background:e.textHoverBg},{color:e.colorText,background:e.colorBgTextActive})),Su(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},Su(e)),dr(e.componentCls,{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBg}))}),sT=e=>{const{componentCls:t}=e;return{[`${t}-default`]:m5(e),[`${t}-primary`]:rT(e),[`${t}-dashed`]:oT(e),[`${t}-link`]:iT(e),[`${t}-text`]:aT(e),[`${t}-ghost`]:us(e.componentCls,e.ghostBg,e.colorBgContainer,e.colorBgContainer,e.colorTextDisabled,e.colorBorder)}},lm=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const{componentCls:n,controlHeight:r,fontSize:o,borderRadius:i,buttonPaddingHorizontal:a,iconCls:s,buttonPaddingVertical:l}=e,u=`${n}-icon-only`;return[{[`${n}${t}`]:{fontSize:o,height:r,padding:`${xe(l)} ${xe(a)}`,borderRadius:i,[`&${u}`]:{width:r,paddingInlineStart:0,paddingInlineEnd:0,[`&${n}-round`]:{width:"auto"},[s]:{fontSize:e.buttonIconOnlyFontSize}},[`&${n}-loading`]:{opacity:e.opacityLoading,cursor:"default"},[`${n}-loading-icon`]:{transition:`width ${e.motionDurationSlow} ${e.motionEaseInOut}, opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`}}},{[`${n}${n}-circle${t}`]:eT(e)},{[`${n}${n}-round${t}`]:tT(e)}]},lT=e=>lm(Kn(e,{fontSize:e.contentFontSize})),uT=e=>{const t=Kn(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:e.paddingBlockSM,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return lm(t,`${e.componentCls}-sm`)},cT=e=>{const t=Kn(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:e.paddingBlockLG,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return lm(t,`${e.componentCls}-lg`)},fT=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},g5=e=>{const{paddingInline:t,onlyIconSize:n,paddingBlock:r}=e;return Kn(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:r,buttonIconOnlyFontSize:n})},v5=e=>{const t=e.fontSize,n=e.fontSize,r=e.fontSizeLG;return{fontWeight:400,defaultShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`,primaryShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`,dangerShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`,primaryColor:e.colorTextLightSolid,dangerColor:e.colorTextLightSolid,borderColorDisabled:e.colorBorder,defaultGhostColor:e.colorBgContainer,ghostBg:"transparent",defaultGhostBorderColor:e.colorBgContainer,paddingInline:e.paddingContentHorizontal-e.lineWidth,paddingInlineLG:e.paddingContentHorizontal-e.lineWidth,paddingInlineSM:8-e.lineWidth,paddingBlock:Math.max((e.controlHeight-t*e.lineHeight)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-n*e.lineHeight)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-r*e.lineHeight)/2-e.lineWidth,0),onlyIconSize:e.fontSizeLG,onlyIconSizeSM:e.fontSizeLG-2,onlyIconSizeLG:e.fontSizeLG+2,groupBorderColor:e.colorPrimaryHover,linkHoverBg:"transparent",textHoverBg:e.colorBgTextHover,defaultColor:e.colorText,defaultBg:e.colorBgContainer,defaultBorderColor:e.colorBorder,defaultBorderColorDisabled:e.colorBorder,contentFontSize:t,contentFontSizeSM:n,contentFontSizeLG:r}},dT=_o("Button",e=>{const t=g5(e);return[JP(t),uT(t),lT(t),cT(t),fT(t),sT(t),YP(t)]},v5,{unitless:{fontWeight:!0}});function hT(e,t,n){const{focusElCls:r,focus:o,borderElCls:i}=n,a=i?"> *":"",s=["hover",o?"focus":null,"active"].filter(Boolean).map(l=>`&:${l} ${a}`).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},"&-item":Object.assign(Object.assign({[s]:{zIndex:2}},r?{[`&${r}`]:{zIndex:2}}:{}),{[`&[disabled] ${a}`]:{zIndex:0}})}}function pT(e,t,n){const{borderElCls:r}=n,o=r?`> ${r}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${o}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${o}, &${e}-sm ${o}, &${e}-lg ${o}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${o}, &${e}-sm ${o}, &${e}-lg ${o}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function mT(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{focus:!0};const{componentCls:n}=e,r=`${n}-compact`;return{[r]:Object.assign(Object.assign({},hT(e,r,t)),pT(n,r,t))}}function gT(e,t){return{[`&-item:not(${t}-last-item)`]:{marginBottom:e.calc(e.lineWidth).mul(-1).equal()},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function vT(e,t){return{[`&-item:not(${t}-first-item):not(${t}-last-item)`]:{borderRadius:0},[`&-item${t}-first-item:not(${t}-last-item)`]:{[`&, &${e}-sm, &${e}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${t}-last-item:not(${t}-first-item)`]:{[`&, &${e}-sm, &${e}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}}function yT(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},gT(e,t)),vT(e.componentCls,t))}}const CT=e=>{const{componentCls:t,calc:n}=e;return{[t]:{[`&-compact-item${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:n(e.lineWidth).mul(-1).equal(),insetInlineStart:n(e.lineWidth).mul(-1).equal(),display:"inline-block",width:e.lineWidth,height:`calc(100% + ${xe(e.lineWidth)} * 2)`,backgroundColor:e.colorPrimaryHover,content:'""'}}},"&-compact-vertical-item":{[`&${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-vertical-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:n(e.lineWidth).mul(-1).equal(),insetInlineStart:n(e.lineWidth).mul(-1).equal(),display:"inline-block",width:`calc(100% + ${xe(e.lineWidth)} * 2)`,height:e.lineWidth,backgroundColor:e.colorPrimaryHover,content:'""'}}}}}}},ST=jC(["Button","compact"],e=>{const t=g5(e);return[mT(t),yT(t),CT(t)]},v5);var xT=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{var n,r;const{loading:o=!1,prefixCls:i,type:a="default",danger:s,shape:l="default",size:u,styles:c,disabled:f,className:d,rootClassName:y,children:C,icon:v,ghost:S=!1,block:g=!1,htmlType:p="button",classNames:m,style:w={}}=e,E=xT(e,["loading","prefixCls","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","ghost","block","htmlType","classNames","style"]),{getPrefixCls:x,autoInsertSpaceInButton:b,direction:T,button:P}=h.useContext(dt),O=x("btn",i),[$,D,F]=dT(O),z=h.useContext(xC),H=f??z,j=h.useContext(f5),R=h.useMemo(()=>wT(o),[o]),[M,N]=h.useState(R.loading),[B,I]=h.useState(!1),X=Ip(t,h.createRef()),te=h.Children.count(C)===1&&!v&&!xf(a);h.useEffect(()=>{let ce=null;R.delay>0?ce=setTimeout(()=>{ce=null,N(!0)},R.delay):N(R.loading);function we(){ce&&(clearTimeout(ce),ce=null)}return we},[R]),h.useEffect(()=>{if(!X||!X.current||b===!1)return;const ce=X.current.textContent;te&&lh(ce)?B||I(!0):B&&I(!1)},[X]);const de=ce=>{const{onClick:we}=e;if(M||H){ce.preventDefault();return}we==null||we(ce)},ne=b!==!1,{compactSize:me,compactItemClassnames:Ct}=VP(O,T),Tt={large:"lg",small:"sm",middle:void 0},Ze=u5(ce=>{var we,pt;return(pt=(we=u??me)!==null&&we!==void 0?we:j)!==null&&pt!==void 0?pt:ce}),fe=Ze&&Tt[Ze]||"",St=M?"loading":v,ye=_p(E,["navigate"]),ht=le(O,D,F,{[`${O}-${l}`]:l!=="default"&&l,[`${O}-${a}`]:a,[`${O}-${fe}`]:fe,[`${O}-icon-only`]:!C&&C!==0&&!!St,[`${O}-background-ghost`]:S&&!xf(a),[`${O}-loading`]:M,[`${O}-two-chinese-chars`]:B&&ne&&!M,[`${O}-block`]:g,[`${O}-dangerous`]:!!s,[`${O}-rtl`]:T==="rtl"},Ct,d,y,P==null?void 0:P.className),ke=Object.assign(Object.assign({},P==null?void 0:P.style),w),Nn=le(m==null?void 0:m.icon,(n=P==null?void 0:P.classNames)===null||n===void 0?void 0:n.icon),zt=Object.assign(Object.assign({},(c==null?void 0:c.icon)||{}),((r=P==null?void 0:P.styles)===null||r===void 0?void 0:r.icon)||{}),jt=v&&!M?Z.createElement(h5,{prefixCls:O,className:Nn,style:zt},v):Z.createElement(XP,{existIcon:!!v,prefixCls:O,loading:!!M}),je=C||C===0?KP(C,te&&ne):null;if(ye.href!==void 0)return $(Z.createElement("a",Object.assign({},ye,{className:le(ht,{[`${O}-disabled`]:H}),href:H?void 0:ye.href,style:ke,onClick:de,ref:X,tabIndex:H?-1:0}),jt,je));let Me=Z.createElement("button",Object.assign({},E,{type:p,className:ht,style:ke,onClick:de,disabled:H,ref:X}),jt,je,Ct&&Z.createElement(ST,{key:"compact",prefixCls:O}));return xf(a)||(Me=Z.createElement(FP,{component:"Button",disabled:!!M},Me)),$(Me)},um=h.forwardRef(bT);um.Group=WP;um.__ANT_BUTTON=!0;const cm=um;function iv(e){return!!(e&&e.then)}const ET=e=>{const{type:t,children:n,prefixCls:r,buttonProps:o,close:i,autoFocus:a,emitEvent:s,isSilent:l,quitOnNullishReturnValue:u,actionFn:c}=e,f=h.useRef(!1),d=h.useRef(null),[y,C]=Ra(!1),v=function(){i==null||i.apply(void 0,arguments)};h.useEffect(()=>{let p=null;return a&&(p=setTimeout(()=>{var m;(m=d.current)===null||m===void 0||m.focus()})),()=>{p&&clearTimeout(p)}},[]);const S=p=>{iv(p)&&(C(!0),p.then(function(){C(!1,!0),v.apply(void 0,arguments),f.current=!1},m=>{if(C(!1,!0),f.current=!1,!(l!=null&&l()))return Promise.reject(m)}))},g=p=>{if(f.current)return;if(f.current=!0,!c){v();return}let m;if(s){if(m=c(p),u&&!iv(m)){f.current=!1,v(p);return}}else if(c.length)m=c(i),f.current=!1;else if(m=c(),!m){v();return}S(m)};return h.createElement(cm,Object.assign({},d5(t),{onClick:g,loading:y,prefixCls:r},o,{ref:d}),n)},y5=ET,Rs=Z.createContext({}),{Provider:C5}=Rs,PT=()=>{const{autoFocusButton:e,cancelButtonProps:t,cancelTextLocale:n,isSilent:r,mergedOkCancel:o,rootPrefixCls:i,close:a,onCancel:s,onConfirm:l}=h.useContext(Rs);return o?Z.createElement(y5,{isSilent:r,actionFn:s,close:function(){a==null||a.apply(void 0,arguments),l==null||l(!1)},autoFocus:e==="cancel",buttonProps:t,prefixCls:`${i}-btn`},n):null},av=PT,TT=()=>{const{autoFocusButton:e,close:t,isSilent:n,okButtonProps:r,rootPrefixCls:o,okTextLocale:i,okType:a,onConfirm:s,onOk:l}=h.useContext(Rs);return Z.createElement(y5,{isSilent:n,type:a||"primary",actionFn:l,close:function(){t==null||t.apply(void 0,arguments),s==null||s(!0)},autoFocus:e==="ok",buttonProps:r,prefixCls:`${o}-btn`},i)},sv=TT;var S5=h.createContext(null),lv=[];function OT(e,t){var n=h.useState(function(){if(!kt())return null;var C=document.createElement("div");return C}),r=Y(n,1),o=r[0],i=h.useRef(!1),a=h.useContext(S5),s=h.useState(lv),l=Y(s,2),u=l[0],c=l[1],f=a||(i.current?void 0:function(C){c(function(v){var S=[C].concat(ee(v));return S})});function d(){o.parentElement||document.body.appendChild(o),i.current=!0}function y(){var C;(C=o.parentElement)===null||C===void 0||C.removeChild(o),i.current=!1}return is(function(){return e?a?a(d):d():y(),y},[e]),is(function(){u.length&&(u.forEach(function(C){return C()}),c(lv))},[u]),[o,f]}var Ef;function MT(e){if(typeof document>"u")return 0;if(e||Ef===void 0){var t=document.createElement("div");t.style.width="100%",t.style.height="200px";var n=document.createElement("div"),r=n.style;r.position="absolute",r.top="0",r.left="0",r.pointerEvents="none",r.visibility="hidden",r.width="200px",r.height="150px",r.overflow="hidden",n.appendChild(t),document.body.appendChild(n);var o=t.offsetWidth;n.style.overflow="scroll";var i=t.offsetWidth;o===i&&(i=n.clientWidth),document.body.removeChild(n),Ef=o-i}return Ef}function uv(e){var t=e.match(/^(.*)px$/),n=Number(t==null?void 0:t[1]);return Number.isNaN(n)?MT():n}function RT(e){if(typeof document>"u"||!e||!(e instanceof Element))return{width:0,height:0};var t=getComputedStyle(e,"::-webkit-scrollbar"),n=t.width,r=t.height;return{width:uv(n),height:uv(r)}}function kT(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var LT="rc-util-locker-".concat(Date.now()),cv=0;function $T(e){var t=!!e,n=h.useState(function(){return cv+=1,"".concat(LT,"_").concat(cv)}),r=Y(n,1),o=r[0];is(function(){if(t){var i=RT(document.body).width,a=kT();Gr(` html body { overflow-y: hidden; `.concat(a?"width: calc(100% - ".concat(i,"px);"):"",` }`),o)}else rs(o);return function(){rs(o)}},[t,o])}var fv=!1;function FT(e){return typeof e=="boolean"&&(fv=e),fv}var dv=function(t){return t===!1?!1:!kt()||!t?null:typeof t=="string"?document.querySelector(t):typeof t=="function"?t():t},jT=h.forwardRef(function(e,t){var n=e.open,r=e.autoLock,o=e.getContainer;e.debug;var i=e.autoDestroy,a=i===void 0?!0:i,s=e.children,l=h.useState(n),u=Y(l,2),c=u[0],f=u[1],d=c||n;h.useEffect(function(){(a||n)&&f(n)},[n,a]);var y=h.useState(function(){return dv(o)}),C=Y(y,2),v=C[0],S=C[1];h.useEffect(function(){var $=dv(o);S($??null)});var g=OT(d&&!v),p=Y(g,2),m=p[0],w=p[1],E=v??m;$T(r&&n&&kt()&&(E===m||E===document.body));var x=null;if(s&&oc(s)&&t){var b=s;x=b.ref}var T=j3(x,t);if(!d||!kt()||v===void 0)return null;var P=E===!1||FT(),O=s;return t&&(O=h.cloneElement(s,{ref:T})),h.createElement(S5.Provider,{value:w},P?O:Ss.createPortal(O,E))}),x5=h.createContext({});function AT(){var e=U({},_i);return e.useId}var hv=0,pv=AT();const NT=pv?function(t){var n=pv();return t||n}:function(t){var n=h.useState("ssr-id"),r=Y(n,2),o=r[0],i=r[1];return h.useEffect(function(){var a=hv;hv+=1,i("rc_unique_".concat(a))},[]),t||o};function mv(e,t,n){var r=t;return!r&&n&&(r="".concat(e,"-").concat(n)),r}function gv(e,t){var n=e["page".concat(t?"Y":"X","Offset")],r="scroll".concat(t?"Top":"Left");if(typeof n!="number"){var o=e.document;n=o.documentElement[r],typeof n!="number"&&(n=o.body[r])}return n}function IT(e){var t=e.getBoundingClientRect(),n={left:t.left,top:t.top},r=e.ownerDocument,o=r.defaultView||r.parentWindow;return n.left+=gv(o),n.top+=gv(o,!0),n}const _T=h.memo(function(e){var t=e.children;return t},function(e,t){var n=t.shouldUpdate;return!n});var vv={width:0,height:0,overflow:"hidden",outline:"none"},DT=Z.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,o=e.style,i=e.title,a=e.ariaId,s=e.footer,l=e.closable,u=e.closeIcon,c=e.onClose,f=e.children,d=e.bodyStyle,y=e.bodyProps,C=e.modalRender,v=e.onMouseDown,S=e.onMouseUp,g=e.holderRef,p=e.visible,m=e.forceRender,w=e.width,E=e.height,x=e.classNames,b=e.styles,T=Z.useContext(x5),P=T.panel,O=j3(g,P),$=h.useRef(),D=h.useRef();Z.useImperativeHandle(t,function(){return{focus:function(){var N;(N=$.current)===null||N===void 0||N.focus()},changeActive:function(N){var B=document,I=B.activeElement;N&&I===D.current?$.current.focus():!N&&I===$.current&&D.current.focus()}}});var F={};w!==void 0&&(F.width=w),E!==void 0&&(F.height=E);var z;s&&(z=Z.createElement("div",{className:le("".concat(n,"-footer"),x==null?void 0:x.footer),style:U({},b==null?void 0:b.footer)},s));var H;i&&(H=Z.createElement("div",{className:le("".concat(n,"-header"),x==null?void 0:x.header),style:U({},b==null?void 0:b.header)},Z.createElement("div",{className:"".concat(n,"-title"),id:a},i)));var j;l&&(j=Z.createElement("button",{type:"button",onClick:c,"aria-label":"Close",className:"".concat(n,"-close")},u||Z.createElement("span",{className:"".concat(n,"-close-x")})));var R=Z.createElement("div",{className:le("".concat(n,"-content"),x==null?void 0:x.content),style:b==null?void 0:b.content},j,H,Z.createElement("div",Fe({className:le("".concat(n,"-body"),x==null?void 0:x.body),style:U(U({},d),b==null?void 0:b.body)},y),f),z);return Z.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":i?a:null,"aria-modal":"true",ref:O,style:U(U({},o),F),className:le(n,r),onMouseDown:v,onMouseUp:S},Z.createElement("div",{tabIndex:0,ref:$,style:vv,"aria-hidden":"true"}),Z.createElement(_T,{shouldUpdate:p||m},C?C(R):R),Z.createElement("div",{tabIndex:0,ref:D,style:vv,"aria-hidden":"true"}))}),w5=h.forwardRef(function(e,t){var n=e.prefixCls,r=e.title,o=e.style,i=e.className,a=e.visible,s=e.forceRender,l=e.destroyOnClose,u=e.motionName,c=e.ariaId,f=e.onVisibleChanged,d=e.mousePosition,y=h.useRef(),C=h.useState(),v=Y(C,2),S=v[0],g=v[1],p={};S&&(p.transformOrigin=S);function m(){var w=IT(y.current);g(d?"".concat(d.x-w.left,"px ").concat(d.y-w.top,"px"):"")}return h.createElement(Ts,{visible:a,onVisibleChanged:f,onAppearPrepare:m,onEnterPrepare:m,forceRender:s,motionName:u,removeOnLeave:l,ref:y},function(w,E){var x=w.className,b=w.style;return h.createElement(DT,Fe({},e,{ref:t,title:r,ariaId:c,prefixCls:n,holderRef:E,style:U(U(U({},b),o),p),className:le(i,x)}))})});w5.displayName="Content";function VT(e){var t=e.prefixCls,n=e.style,r=e.visible,o=e.maskProps,i=e.motionName,a=e.className;return h.createElement(Ts,{key:"mask",visible:r,motionName:i,leavedClassName:"".concat(t,"-mask-hidden")},function(s,l){var u=s.className,c=s.style;return h.createElement("div",Fe({ref:l,style:U(U({},c),n),className:le("".concat(t,"-mask"),u,a)},o))})}function BT(e){var t=e.prefixCls,n=t===void 0?"rc-dialog":t,r=e.zIndex,o=e.visible,i=o===void 0?!1:o,a=e.keyboard,s=a===void 0?!0:a,l=e.focusTriggerAfterClose,u=l===void 0?!0:l,c=e.wrapStyle,f=e.wrapClassName,d=e.wrapProps,y=e.onClose,C=e.afterOpenChange,v=e.afterClose,S=e.transitionName,g=e.animation,p=e.closable,m=p===void 0?!0:p,w=e.mask,E=w===void 0?!0:w,x=e.maskTransitionName,b=e.maskAnimation,T=e.maskClosable,P=T===void 0?!0:T,O=e.maskStyle,$=e.maskProps,D=e.rootClassName,F=e.classNames,z=e.styles,H=h.useRef(),j=h.useRef(),R=h.useRef(),M=h.useState(i),N=Y(M,2),B=N[0],I=N[1],K=NT();function X(){Vd(j.current,document.activeElement)||(H.current=document.activeElement)}function te(){if(!Vd(j.current,document.activeElement)){var ye;(ye=R.current)===null||ye===void 0||ye.focus()}}function de(ye){if(ye)te();else{if(I(!1),E&&H.current&&u){try{H.current.focus({preventScroll:!0})}catch{}H.current=null}B&&(v==null||v())}C==null||C(ye)}function ne(ye){y==null||y(ye)}var me=h.useRef(!1),Ct=h.useRef(),Tt=function(){clearTimeout(Ct.current),me.current=!0},Ze=function(){Ct.current=setTimeout(function(){me.current=!1})},fe=null;P&&(fe=function(ht){me.current?me.current=!1:j.current===ht.target&&ne(ht)});function St(ye){if(s&&ye.keyCode===oe.ESC){ye.stopPropagation(),ne(ye);return}i&&ye.keyCode===oe.TAB&&R.current.changeActive(!ye.shiftKey)}return h.useEffect(function(){i&&(I(!0),X())},[i]),h.useEffect(function(){return function(){clearTimeout(Ct.current)}},[]),h.createElement("div",Fe({className:le("".concat(n,"-root"),D)},LE(e,{data:!0})),h.createElement(VT,{prefixCls:n,visible:E&&i,motionName:mv(n,x,b),style:U(U({zIndex:r},O),z==null?void 0:z.mask),maskProps:$,className:F==null?void 0:F.mask}),h.createElement("div",Fe({tabIndex:-1,onKeyDown:St,className:le("".concat(n,"-wrap"),f,F==null?void 0:F.wrapper),ref:j,onClick:fe,style:U(U(U({zIndex:r},c),z==null?void 0:z.wrapper),{},{display:B?null:"none"})},d),h.createElement(w5,Fe({},e,{onMouseDown:Tt,onMouseUp:Ze,ref:R,closable:m,ariaId:K,prefixCls:n,visible:i&&B,onClose:ne,onVisibleChanged:de,motionName:mv(n,S,g)}))))}var b5=function(t){var n=t.visible,r=t.getContainer,o=t.forceRender,i=t.destroyOnClose,a=i===void 0?!1:i,s=t.afterClose,l=t.panelRef,u=h.useState(n),c=Y(u,2),f=c[0],d=c[1],y=h.useMemo(function(){return{panel:l}},[l]);return h.useEffect(function(){n&&d(!0)},[n]),!o&&a&&!f?null:h.createElement(x5.Provider,{value:y},h.createElement(jT,{open:n||o||f,autoDestroy:!1,getContainer:r,autoLock:n||f},h.createElement(BT,Fe({},t,{destroyOnClose:a,afterClose:function(){s==null||s(),d(!1)}}))))};b5.displayName="Dialog";function zT(e,t,n){return typeof e=="boolean"?e:t===void 0?!!n:t!==!1&&t!==null}function HT(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:Z.createElement(Os,null),o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(!zT(e,t,o))return[!1,null];const a=typeof t=="boolean"||t===void 0||t===null?r:t;return[!0,n?n(a):a]}const UT=()=>kt()&&window.document.documentElement;var yo="RC_FORM_INTERNAL_HOOKS",Oe=function(){Qt(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},jo=h.createContext({getFieldValue:Oe,getFieldsValue:Oe,getFieldError:Oe,getFieldWarning:Oe,getFieldsError:Oe,isFieldsTouched:Oe,isFieldTouched:Oe,isFieldValidating:Oe,isFieldsValidating:Oe,resetFields:Oe,setFields:Oe,setFieldValue:Oe,setFieldsValue:Oe,validateFields:Oe,submit:Oe,getInternalHooks:function(){return Oe(),{dispatch:Oe,initEntityValue:Oe,registerField:Oe,useSubscribe:Oe,setInitialValues:Oe,destroyForm:Oe,setCallbacks:Oe,registerWatch:Oe,getFields:Oe,setValidateMessages:Oe,setPreserve:Oe,getInitialValue:Oe}}}),cs=h.createContext(null);function uh(e){return e==null?[]:Array.isArray(e)?e:[e]}function WT(e){return e&&!!e._init}function Co(){return Co=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Bl(e,t,n){return KT()?Bl=Reflect.construct.bind():Bl=function(o,i,a){var s=[null];s.push.apply(s,i);var l=Function.bind.apply(o,s),u=new l;return a&&fs(u,a.prototype),u},Bl.apply(null,arguments)}function ZT(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function fh(e){var t=typeof Map=="function"?new Map:void 0;return fh=function(r){if(r===null||!ZT(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t<"u"){if(t.has(r))return t.get(r);t.set(r,o)}function o(){return Bl(r,arguments,ch(this).constructor)}return o.prototype=Object.create(r.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),fs(o,r)},fh(e)}var qT=/%[sdj%]/g,XT=function(){};typeof process<"u"&&process.env;function dh(e){if(!e||!e.length)return null;var t={};return e.forEach(function(n){var r=n.field;t[r]=t[r]||[],t[r].push(n)}),t}function qt(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r=i)return s;switch(s){case"%s":return String(n[o++]);case"%d":return Number(n[o++]);case"%j":try{return JSON.stringify(n[o++])}catch{return"[Circular]"}break;default:return s}});return a}return e}function QT(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function st(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||QT(t)&&typeof e=="string"&&!e)}function YT(e,t,n){var r=[],o=0,i=e.length;function a(s){r.push.apply(r,s||[]),o++,o===i&&n(r)}e.forEach(function(s){t(s,a)})}function yv(e,t,n){var r=0,o=e.length;function i(a){if(a&&a.length){n(a);return}var s=r;r=r+1,s()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},pa={integer:function(t){return pa.number(t)&&parseInt(t,10)===t},float:function(t){return pa.number(t)&&!pa.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch{return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return typeof t=="object"&&!pa.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(wv.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(oO())},hex:function(t){return typeof t=="string"&&!!t.match(wv.hex)}},iO=function(t,n,r,o,i){if(t.required&&n===void 0){E5(t,n,r,o,i);return}var a=["integer","float","array","regexp","object","method","email","number","date","url","hex"],s=t.type;a.indexOf(s)>-1?pa[s](n)||o.push(qt(i.messages.types[s],t.fullField,t.type)):s&&typeof n!==t.type&&o.push(qt(i.messages.types[s],t.fullField,t.type))},aO=function(t,n,r,o,i){var a=typeof t.len=="number",s=typeof t.min=="number",l=typeof t.max=="number",u=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,c=n,f=null,d=typeof n=="number",y=typeof n=="string",C=Array.isArray(n);if(d?f="number":y?f="string":C&&(f="array"),!f)return!1;C&&(c=n.length),y&&(c=n.replace(u,"_").length),a?c!==t.len&&o.push(qt(i.messages[f].len,t.fullField,t.len)):s&&!l&&ct.max?o.push(qt(i.messages[f].max,t.fullField,t.max)):s&&l&&(ct.max)&&o.push(qt(i.messages[f].range,t.fullField,t.min,t.max))},Zo="enum",sO=function(t,n,r,o,i){t[Zo]=Array.isArray(t[Zo])?t[Zo]:[],t[Zo].indexOf(n)===-1&&o.push(qt(i.messages[Zo],t.fullField,t[Zo].join(", ")))},lO=function(t,n,r,o,i){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||o.push(qt(i.messages.pattern.mismatch,t.fullField,n,t.pattern));else if(typeof t.pattern=="string"){var a=new RegExp(t.pattern);a.test(n)||o.push(qt(i.messages.pattern.mismatch,t.fullField,n,t.pattern))}}},ge={required:E5,whitespace:rO,type:iO,range:aO,enum:sO,pattern:lO},uO=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(st(n,"string")&&!t.required)return r();ge.required(t,n,o,a,i,"string"),st(n,"string")||(ge.type(t,n,o,a,i),ge.range(t,n,o,a,i),ge.pattern(t,n,o,a,i),t.whitespace===!0&&ge.whitespace(t,n,o,a,i))}r(a)},cO=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(st(n)&&!t.required)return r();ge.required(t,n,o,a,i),n!==void 0&&ge.type(t,n,o,a,i)}r(a)},fO=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(n===""&&(n=void 0),st(n)&&!t.required)return r();ge.required(t,n,o,a,i),n!==void 0&&(ge.type(t,n,o,a,i),ge.range(t,n,o,a,i))}r(a)},dO=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(st(n)&&!t.required)return r();ge.required(t,n,o,a,i),n!==void 0&&ge.type(t,n,o,a,i)}r(a)},hO=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(st(n)&&!t.required)return r();ge.required(t,n,o,a,i),st(n)||ge.type(t,n,o,a,i)}r(a)},pO=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(st(n)&&!t.required)return r();ge.required(t,n,o,a,i),n!==void 0&&(ge.type(t,n,o,a,i),ge.range(t,n,o,a,i))}r(a)},mO=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(st(n)&&!t.required)return r();ge.required(t,n,o,a,i),n!==void 0&&(ge.type(t,n,o,a,i),ge.range(t,n,o,a,i))}r(a)},gO=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(n==null&&!t.required)return r();ge.required(t,n,o,a,i,"array"),n!=null&&(ge.type(t,n,o,a,i),ge.range(t,n,o,a,i))}r(a)},vO=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(st(n)&&!t.required)return r();ge.required(t,n,o,a,i),n!==void 0&&ge.type(t,n,o,a,i)}r(a)},yO="enum",CO=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(st(n)&&!t.required)return r();ge.required(t,n,o,a,i),n!==void 0&&ge[yO](t,n,o,a,i)}r(a)},SO=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(st(n,"string")&&!t.required)return r();ge.required(t,n,o,a,i),st(n,"string")||ge.pattern(t,n,o,a,i)}r(a)},xO=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(st(n,"date")&&!t.required)return r();if(ge.required(t,n,o,a,i),!st(n,"date")){var l;n instanceof Date?l=n:l=new Date(n),ge.type(t,l,o,a,i),l&&ge.range(t,l.getTime(),o,a,i)}}r(a)},wO=function(t,n,r,o,i){var a=[],s=Array.isArray(n)?"array":typeof n;ge.required(t,n,o,a,i,s),r(a)},Pf=function(t,n,r,o,i){var a=t.type,s=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(st(n,a)&&!t.required)return r();ge.required(t,n,o,s,i,a),st(n,a)||ge.type(t,n,o,s,i)}r(s)},bO=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(st(n)&&!t.required)return r();ge.required(t,n,o,a,i)}r(a)},La={string:uO,method:cO,number:fO,boolean:dO,regexp:hO,integer:pO,float:mO,array:gO,object:vO,enum:CO,pattern:SO,date:xO,url:Pf,hex:Pf,email:Pf,required:wO,any:bO};function hh(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var ph=hh(),ks=function(){function e(n){this.rules=null,this._messages=ph,this.define(n)}var t=e.prototype;return t.define=function(r){var o=this;if(!r)throw new Error("Cannot configure a schema with no rules");if(typeof r!="object"||Array.isArray(r))throw new Error("Rules must be an object");this.rules={},Object.keys(r).forEach(function(i){var a=r[i];o.rules[i]=Array.isArray(a)?a:[a]})},t.messages=function(r){return r&&(this._messages=xv(hh(),r)),this._messages},t.validate=function(r,o,i){var a=this;o===void 0&&(o={}),i===void 0&&(i=function(){});var s=r,l=o,u=i;if(typeof l=="function"&&(u=l,l={}),!this.rules||Object.keys(this.rules).length===0)return u&&u(null,s),Promise.resolve(s);function c(v){var S=[],g={};function p(w){if(Array.isArray(w)){var E;S=(E=S).concat.apply(E,w)}else S.push(w)}for(var m=0;m2&&arguments[2]!==void 0?arguments[2]:!1;return e&&e.some(function(r){return T5(t,r,n)})}function T5(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return!e||!t||!n&&e.length!==t.length?!1:t.every(function(r,o){return e[o]===r})}function MO(e,t){if(e===t)return!0;if(!e&&t||e&&!t||!e||!t||Ee(e)!=="object"||Ee(t)!=="object")return!1;var n=Object.keys(e),r=Object.keys(t),o=new Set([].concat(n,r));return ee(o).every(function(i){var a=e[i],s=t[i];return typeof a=="function"&&typeof s=="function"?!0:a===s})}function RO(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&Ee(t.target)==="object"&&e in t.target?t.target[e]:t}function Tv(e,t,n){var r=e.length;if(t<0||t>=r||n<0||n>=r)return e;var o=e[t],i=t-n;return i>0?[].concat(ee(e.slice(0,n)),[o],ee(e.slice(n,t)),ee(e.slice(t+1,r))):i<0?[].concat(ee(e.slice(0,t)),ee(e.slice(t+1,n+1)),[o],ee(e.slice(n+1,r))):e}var kO=["name"],an=[];function Ov(e,t,n,r,o,i){return typeof e=="function"?e(t,n,"source"in i?{source:i.source}:{}):r!==o}var fm=function(e){Es(n,e);var t=Ps(n);function n(r){var o;if(yn(this,n),o=t.call(this,r),V(Ce(o),"state",{resetCount:0}),V(Ce(o),"cancelRegisterFunc",null),V(Ce(o),"mounted",!1),V(Ce(o),"touched",!1),V(Ce(o),"dirty",!1),V(Ce(o),"validatePromise",void 0),V(Ce(o),"prevValidating",void 0),V(Ce(o),"errors",an),V(Ce(o),"warnings",an),V(Ce(o),"cancelRegister",function(){var l=o.props,u=l.preserve,c=l.isListField,f=l.name;o.cancelRegisterFunc&&o.cancelRegisterFunc(c,u,Xe(f)),o.cancelRegisterFunc=null}),V(Ce(o),"getNamePath",function(){var l=o.props,u=l.name,c=l.fieldContext,f=c.prefixName,d=f===void 0?[]:f;return u!==void 0?[].concat(ee(d),ee(u)):[]}),V(Ce(o),"getRules",function(){var l=o.props,u=l.rules,c=u===void 0?[]:u,f=l.fieldContext;return c.map(function(d){return typeof d=="function"?d(f):d})}),V(Ce(o),"refresh",function(){o.mounted&&o.setState(function(l){var u=l.resetCount;return{resetCount:u+1}})}),V(Ce(o),"metaCache",null),V(Ce(o),"triggerMetaEvent",function(l){var u=o.props.onMetaChange;if(u){var c=U(U({},o.getMeta()),{},{destroy:l});gu(o.metaCache,c)||u(c),o.metaCache=c}else o.metaCache=null}),V(Ce(o),"onStoreChange",function(l,u,c){var f=o.props,d=f.shouldUpdate,y=f.dependencies,C=y===void 0?[]:y,v=f.onReset,S=c.store,g=o.getNamePath(),p=o.getValue(l),m=o.getValue(S),w=u&&Ei(u,g);switch(c.type==="valueUpdate"&&c.source==="external"&&p!==m&&(o.touched=!0,o.dirty=!0,o.validatePromise=null,o.errors=an,o.warnings=an,o.triggerMetaEvent()),c.type){case"reset":if(!u||w){o.touched=!1,o.dirty=!1,o.validatePromise=void 0,o.errors=an,o.warnings=an,o.triggerMetaEvent(),v==null||v(),o.refresh();return}break;case"remove":{if(d){o.reRender();return}break}case"setField":{var E=c.data;if(w){"touched"in E&&(o.touched=E.touched),"validating"in E&&!("originRCField"in E)&&(o.validatePromise=E.validating?Promise.resolve([]):null),"errors"in E&&(o.errors=E.errors||an),"warnings"in E&&(o.warnings=E.warnings||an),o.dirty=!0,o.triggerMetaEvent(),o.reRender();return}else if("value"in E&&Ei(u,g,!0)){o.reRender();return}if(d&&!g.length&&Ov(d,l,S,p,m,c)){o.reRender();return}break}case"dependenciesUpdate":{var x=C.map(Xe);if(x.some(function(b){return Ei(c.relatedFields,b)})){o.reRender();return}break}default:if(w||(!C.length||g.length||d)&&Ov(d,l,S,p,m,c)){o.reRender();return}break}d===!0&&o.reRender()}),V(Ce(o),"validateRules",function(l){var u=o.getNamePath(),c=o.getValue(),f=l||{},d=f.triggerName,y=f.validateOnly,C=y===void 0?!1:y,v=Promise.resolve().then(Do(Lt().mark(function S(){var g,p,m,w,E,x,b;return Lt().wrap(function(P){for(;;)switch(P.prev=P.next){case 0:if(o.mounted){P.next=2;break}return P.abrupt("return",[]);case 2:if(g=o.props,p=g.validateFirst,m=p===void 0?!1:p,w=g.messageVariables,E=g.validateDebounce,x=o.getRules(),d&&(x=x.filter(function(O){return O}).filter(function(O){var $=O.validateTrigger;if(!$)return!0;var D=uh($);return D.includes(d)})),!(E&&d)){P.next=10;break}return P.next=8,new Promise(function(O){setTimeout(O,E)});case 8:if(o.validatePromise===v){P.next=10;break}return P.abrupt("return",[]);case 10:return b=PO(u,c,x,l,m,w),b.catch(function(O){return O}).then(function(){var O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:an;if(o.validatePromise===v){var $;o.validatePromise=null;var D=[],F=[];($=O.forEach)===null||$===void 0||$.call(O,function(z){var H=z.rule.warningOnly,j=z.errors,R=j===void 0?an:j;H?F.push.apply(F,ee(R)):D.push.apply(D,ee(R))}),o.errors=D,o.warnings=F,o.triggerMetaEvent(),o.reRender()}}),P.abrupt("return",b);case 13:case"end":return P.stop()}},S)})));return C||(o.validatePromise=v,o.dirty=!0,o.errors=an,o.warnings=an,o.triggerMetaEvent(),o.reRender()),v}),V(Ce(o),"isFieldValidating",function(){return!!o.validatePromise}),V(Ce(o),"isFieldTouched",function(){return o.touched}),V(Ce(o),"isFieldDirty",function(){if(o.dirty||o.props.initialValue!==void 0)return!0;var l=o.props.fieldContext,u=l.getInternalHooks(yo),c=u.getInitialValue;return c(o.getNamePath())!==void 0}),V(Ce(o),"getErrors",function(){return o.errors}),V(Ce(o),"getWarnings",function(){return o.warnings}),V(Ce(o),"isListField",function(){return o.props.isListField}),V(Ce(o),"isList",function(){return o.props.isList}),V(Ce(o),"isPreserve",function(){return o.props.preserve}),V(Ce(o),"getMeta",function(){o.prevValidating=o.isFieldValidating();var l={touched:o.isFieldTouched(),validating:o.prevValidating,errors:o.errors,warnings:o.warnings,name:o.getNamePath(),validated:o.validatePromise===null};return l}),V(Ce(o),"getOnlyChild",function(l){if(typeof l=="function"){var u=o.getMeta();return U(U({},o.getOnlyChild(l(o.getControlled(),u,o.props.fieldContext))),{},{isFunction:!0})}var c=ns(l);return c.length!==1||!h.isValidElement(c[0])?{child:c,isFunction:!1}:{child:c[0],isFunction:!1}}),V(Ce(o),"getValue",function(l){var u=o.props.fieldContext.getFieldsValue,c=o.getNamePath();return Hn(l||u(!0),c)}),V(Ce(o),"getControlled",function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},u=o.props,c=u.trigger,f=u.validateTrigger,d=u.getValueFromEvent,y=u.normalize,C=u.valuePropName,v=u.getValueProps,S=u.fieldContext,g=f!==void 0?f:S.validateTrigger,p=o.getNamePath(),m=S.getInternalHooks,w=S.getFieldsValue,E=m(yo),x=E.dispatch,b=o.getValue(),T=v||function(D){return V({},C,D)},P=l[c],O=U(U({},l),T(b));O[c]=function(){o.touched=!0,o.dirty=!0,o.triggerMetaEvent();for(var D,F=arguments.length,z=new Array(F),H=0;H=0&&O<=$.length?(c.keys=[].concat(ee(c.keys.slice(0,O)),[c.id],ee(c.keys.slice(O))),m([].concat(ee($.slice(0,O)),[P],ee($.slice(O))))):(c.keys=[].concat(ee(c.keys),[c.id]),m([].concat(ee($),[P]))),c.id+=1},remove:function(P){var O=E(),$=new Set(Array.isArray(P)?P:[P]);$.size<=0||(c.keys=c.keys.filter(function(D,F){return!$.has(F)}),m(O.filter(function(D,F){return!$.has(F)})))},move:function(P,O){if(P!==O){var $=E();P<0||P>=$.length||O<0||O>=$.length||(c.keys=Tv(c.keys,P,O),m(Tv($,P,O)))}}},b=p||[];return Array.isArray(b)||(b=[]),r(b.map(function(T,P){var O=c.keys[P];return O===void 0&&(c.keys[P]=c.id,O=c.keys[P],c.id+=1),{name:P,key:O,isListField:!0}}),x,S)})))}function LO(e){var t=!1,n=e.length,r=[];return e.length?new Promise(function(o,i){e.forEach(function(a,s){a.catch(function(l){return t=!0,l}).then(function(l){n-=1,r[s]=l,!(n>0)&&(t&&i(r),o(r))})})}):Promise.resolve([])}var M5="__@field_split__";function Tf(e){return e.map(function(t){return"".concat(Ee(t),":").concat(t)}).join(M5)}var qo=function(){function e(){yn(this,e),V(this,"kvs",new Map)}return Cn(e,[{key:"set",value:function(n,r){this.kvs.set(Tf(n),r)}},{key:"get",value:function(n){return this.kvs.get(Tf(n))}},{key:"update",value:function(n,r){var o=this.get(n),i=r(o);i?this.set(n,i):this.delete(n)}},{key:"delete",value:function(n){this.kvs.delete(Tf(n))}},{key:"map",value:function(n){return ee(this.kvs.entries()).map(function(r){var o=Y(r,2),i=o[0],a=o[1],s=i.split(M5);return n({key:s.map(function(l){var u=l.match(/^([^:]*):(.*)$/),c=Y(u,3),f=c[1],d=c[2];return f==="number"?Number(d):d}),value:a})})}},{key:"toJSON",value:function(){var n={};return this.map(function(r){var o=r.key,i=r.value;return n[o.join(".")]=i,null}),n}}]),e}(),$O=["name"],FO=Cn(function e(t){var n=this;yn(this,e),V(this,"formHooked",!1),V(this,"forceRootUpdate",void 0),V(this,"subscribable",!0),V(this,"store",{}),V(this,"fieldEntities",[]),V(this,"initialValues",{}),V(this,"callbacks",{}),V(this,"validateMessages",null),V(this,"preserve",null),V(this,"lastValidatePromise",null),V(this,"getForm",function(){return{getFieldValue:n.getFieldValue,getFieldsValue:n.getFieldsValue,getFieldError:n.getFieldError,getFieldWarning:n.getFieldWarning,getFieldsError:n.getFieldsError,isFieldsTouched:n.isFieldsTouched,isFieldTouched:n.isFieldTouched,isFieldValidating:n.isFieldValidating,isFieldsValidating:n.isFieldsValidating,resetFields:n.resetFields,setFields:n.setFields,setFieldValue:n.setFieldValue,setFieldsValue:n.setFieldsValue,validateFields:n.validateFields,submit:n.submit,_init:!0,getInternalHooks:n.getInternalHooks}}),V(this,"getInternalHooks",function(r){return r===yo?(n.formHooked=!0,{dispatch:n.dispatch,initEntityValue:n.initEntityValue,registerField:n.registerField,useSubscribe:n.useSubscribe,setInitialValues:n.setInitialValues,destroyForm:n.destroyForm,setCallbacks:n.setCallbacks,setValidateMessages:n.setValidateMessages,getFields:n.getFields,setPreserve:n.setPreserve,getInitialValue:n.getInitialValue,registerWatch:n.registerWatch}):(Qt(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),V(this,"useSubscribe",function(r){n.subscribable=r}),V(this,"prevWithoutPreserves",null),V(this,"setInitialValues",function(r,o){if(n.initialValues=r||{},o){var i,a=fi(r,n.store);(i=n.prevWithoutPreserves)===null||i===void 0||i.map(function(s){var l=s.key;a=Pn(a,l,Hn(r,l))}),n.prevWithoutPreserves=null,n.updateStore(a)}}),V(this,"destroyForm",function(){var r=new qo;n.getFieldEntities(!0).forEach(function(o){n.isMergedPreserve(o.isPreserve())||r.set(o.getNamePath(),!0)}),n.prevWithoutPreserves=r}),V(this,"getInitialValue",function(r){var o=Hn(n.initialValues,r);return r.length?fi(o):o}),V(this,"setCallbacks",function(r){n.callbacks=r}),V(this,"setValidateMessages",function(r){n.validateMessages=r}),V(this,"setPreserve",function(r){n.preserve=r}),V(this,"watchList",[]),V(this,"registerWatch",function(r){return n.watchList.push(r),function(){n.watchList=n.watchList.filter(function(o){return o!==r})}}),V(this,"notifyWatch",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(n.watchList.length){var o=n.getFieldsValue(),i=n.getFieldsValue(!0);n.watchList.forEach(function(a){a(o,i,r)})}}),V(this,"timeoutId",null),V(this,"warningUnhooked",function(){}),V(this,"updateStore",function(r){n.store=r}),V(this,"getFieldEntities",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return r?n.fieldEntities.filter(function(o){return o.getNamePath().length}):n.fieldEntities}),V(this,"getFieldsMap",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,o=new qo;return n.getFieldEntities(r).forEach(function(i){var a=i.getNamePath();o.set(a,i)}),o}),V(this,"getFieldEntitiesForNamePathList",function(r){if(!r)return n.getFieldEntities(!0);var o=n.getFieldsMap(!0);return r.map(function(i){var a=Xe(i);return o.get(a)||{INVALIDATE_NAME_PATH:Xe(i)}})}),V(this,"getFieldsValue",function(r,o){n.warningUnhooked();var i,a,s;if(r===!0||Array.isArray(r)?(i=r,a=o):r&&Ee(r)==="object"&&(s=r.strict,a=r.filter),i===!0&&!a)return n.store;var l=n.getFieldEntitiesForNamePathList(Array.isArray(i)?i:null),u=[];return l.forEach(function(c){var f,d,y="INVALIDATE_NAME_PATH"in c?c.INVALIDATE_NAME_PATH:c.getNamePath();if(s){var C,v;if((C=(v=c).isList)!==null&&C!==void 0&&C.call(v))return}else if(!i&&(f=(d=c).isListField)!==null&&f!==void 0&&f.call(d))return;if(!a)u.push(y);else{var S="getMeta"in c?c.getMeta():null;a(S)&&u.push(y)}}),Pv(n.store,u.map(Xe))}),V(this,"getFieldValue",function(r){n.warningUnhooked();var o=Xe(r);return Hn(n.store,o)}),V(this,"getFieldsError",function(r){n.warningUnhooked();var o=n.getFieldEntitiesForNamePathList(r);return o.map(function(i,a){return i&&!("INVALIDATE_NAME_PATH"in i)?{name:i.getNamePath(),errors:i.getErrors(),warnings:i.getWarnings()}:{name:Xe(r[a]),errors:[],warnings:[]}})}),V(this,"getFieldError",function(r){n.warningUnhooked();var o=Xe(r),i=n.getFieldsError([o])[0];return i.errors}),V(this,"getFieldWarning",function(r){n.warningUnhooked();var o=Xe(r),i=n.getFieldsError([o])[0];return i.warnings}),V(this,"isFieldsTouched",function(){n.warningUnhooked();for(var r=arguments.length,o=new Array(r),i=0;i0&&arguments[0]!==void 0?arguments[0]:{},o=new qo,i=n.getFieldEntities(!0);i.forEach(function(l){var u=l.props.initialValue,c=l.getNamePath();if(u!==void 0){var f=o.get(c)||new Set;f.add({entity:l,value:u}),o.set(c,f)}});var a=function(u){u.forEach(function(c){var f=c.props.initialValue;if(f!==void 0){var d=c.getNamePath(),y=n.getInitialValue(d);if(y!==void 0)Qt(!1,"Form already set 'initialValues' with path '".concat(d.join("."),"'. Field can not overwrite it."));else{var C=o.get(d);if(C&&C.size>1)Qt(!1,"Multiple Field with path '".concat(d.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(C){var v=n.getFieldValue(d),S=c.isListField();!S&&(!r.skipExist||v===void 0)&&n.updateStore(Pn(n.store,d,ee(C)[0].value))}}}})},s;r.entities?s=r.entities:r.namePathList?(s=[],r.namePathList.forEach(function(l){var u=o.get(l);if(u){var c;(c=s).push.apply(c,ee(ee(u).map(function(f){return f.entity})))}})):s=i,a(s)}),V(this,"resetFields",function(r){n.warningUnhooked();var o=n.store;if(!r){n.updateStore(fi(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(o,null,{type:"reset"}),n.notifyWatch();return}var i=r.map(Xe);i.forEach(function(a){var s=n.getInitialValue(a);n.updateStore(Pn(n.store,a,s))}),n.resetWithFieldInitialValue({namePathList:i}),n.notifyObservers(o,i,{type:"reset"}),n.notifyWatch(i)}),V(this,"setFields",function(r){n.warningUnhooked();var o=n.store,i=[];r.forEach(function(a){var s=a.name,l=jn(a,$O),u=Xe(s);i.push(u),"value"in l&&n.updateStore(Pn(n.store,u,l.value)),n.notifyObservers(o,[u],{type:"setField",data:a})}),n.notifyWatch(i)}),V(this,"getFields",function(){var r=n.getFieldEntities(!0),o=r.map(function(i){var a=i.getNamePath(),s=i.getMeta(),l=U(U({},s),{},{name:a,value:n.getFieldValue(a)});return Object.defineProperty(l,"originRCField",{value:!0}),l});return o}),V(this,"initEntityValue",function(r){var o=r.props.initialValue;if(o!==void 0){var i=r.getNamePath(),a=Hn(n.store,i);a===void 0&&n.updateStore(Pn(n.store,i,o))}}),V(this,"isMergedPreserve",function(r){var o=r!==void 0?r:n.preserve;return o??!0}),V(this,"registerField",function(r){n.fieldEntities.push(r);var o=r.getNamePath();if(n.notifyWatch([o]),r.props.initialValue!==void 0){var i=n.store;n.resetWithFieldInitialValue({entities:[r],skipExist:!0}),n.notifyObservers(i,[r.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(a,s){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(n.fieldEntities=n.fieldEntities.filter(function(f){return f!==r}),!n.isMergedPreserve(s)&&(!a||l.length>1)){var u=a?void 0:n.getInitialValue(o);if(o.length&&n.getFieldValue(o)!==u&&n.fieldEntities.every(function(f){return!T5(f.getNamePath(),o)})){var c=n.store;n.updateStore(Pn(c,o,u,!0)),n.notifyObservers(c,[o],{type:"remove"}),n.triggerDependenciesUpdate(c,o)}}n.notifyWatch([o])}}),V(this,"dispatch",function(r){switch(r.type){case"updateValue":{var o=r.namePath,i=r.value;n.updateValue(o,i);break}case"validateField":{var a=r.namePath,s=r.triggerName;n.validateFields([a],{triggerName:s});break}}}),V(this,"notifyObservers",function(r,o,i){if(n.subscribable){var a=U(U({},i),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach(function(s){var l=s.onStoreChange;l(r,o,a)})}else n.forceRootUpdate()}),V(this,"triggerDependenciesUpdate",function(r,o){var i=n.getDependencyChildrenFields(o);return i.length&&n.validateFields(i),n.notifyObservers(r,i,{type:"dependenciesUpdate",relatedFields:[o].concat(ee(i))}),i}),V(this,"updateValue",function(r,o){var i=Xe(r),a=n.store;n.updateStore(Pn(n.store,i,o)),n.notifyObservers(a,[i],{type:"valueUpdate",source:"internal"}),n.notifyWatch([i]);var s=n.triggerDependenciesUpdate(a,i),l=n.callbacks.onValuesChange;if(l){var u=Pv(n.store,[i]);l(u,n.getFieldsValue())}n.triggerOnFieldsChange([i].concat(ee(s)))}),V(this,"setFieldsValue",function(r){n.warningUnhooked();var o=n.store;if(r){var i=fi(n.store,r);n.updateStore(i)}n.notifyObservers(o,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()}),V(this,"setFieldValue",function(r,o){n.setFields([{name:r,value:o}])}),V(this,"getDependencyChildrenFields",function(r){var o=new Set,i=[],a=new qo;n.getFieldEntities().forEach(function(l){var u=l.props.dependencies;(u||[]).forEach(function(c){var f=Xe(c);a.update(f,function(){var d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return d.add(l),d})})});var s=function l(u){var c=a.get(u)||new Set;c.forEach(function(f){if(!o.has(f)){o.add(f);var d=f.getNamePath();f.isFieldDirty()&&d.length&&(i.push(d),l(d))}})};return s(r),i}),V(this,"triggerOnFieldsChange",function(r,o){var i=n.callbacks.onFieldsChange;if(i){var a=n.getFields();if(o){var s=new qo;o.forEach(function(u){var c=u.name,f=u.errors;s.set(c,f)}),a.forEach(function(u){u.errors=s.get(u.name)||u.errors})}var l=a.filter(function(u){var c=u.name;return Ei(r,c)});l.length&&i(l,a)}}),V(this,"validateFields",function(r,o){n.warningUnhooked();var i,a;Array.isArray(r)||typeof r=="string"||typeof o=="string"?(i=r,a=o):a=r;var s=!!i,l=s?i.map(Xe):[],u=[],c=String(Date.now()),f=new Set,d=a||{},y=d.recursive,C=d.dirty;n.getFieldEntities(!0).forEach(function(p){if(s||l.push(p.getNamePath()),!(!p.props.rules||!p.props.rules.length)&&!(C&&!p.isFieldDirty())){var m=p.getNamePath();if(f.add(m.join(c)),!s||Ei(l,m,y)){var w=p.validateRules(U({validateMessages:U(U({},P5),n.validateMessages)},a));u.push(w.then(function(){return{name:m,errors:[],warnings:[]}}).catch(function(E){var x,b=[],T=[];return(x=E.forEach)===null||x===void 0||x.call(E,function(P){var O=P.rule.warningOnly,$=P.errors;O?T.push.apply(T,ee($)):b.push.apply(b,ee($))}),b.length?Promise.reject({name:m,errors:b,warnings:T}):{name:m,errors:b,warnings:T}}))}}});var v=LO(u);n.lastValidatePromise=v,v.catch(function(p){return p}).then(function(p){var m=p.map(function(w){var E=w.name;return E});n.notifyObservers(n.store,m,{type:"validateFinish"}),n.triggerOnFieldsChange(m,p)});var S=v.then(function(){return n.lastValidatePromise===v?Promise.resolve(n.getFieldsValue(l)):Promise.reject([])}).catch(function(p){var m=p.filter(function(w){return w&&w.errors.length});return Promise.reject({values:n.getFieldsValue(l),errorFields:m,outOfDate:n.lastValidatePromise!==v})});S.catch(function(p){return p});var g=l.filter(function(p){return f.has(p.join(c))});return n.triggerOnFieldsChange(g),S}),V(this,"submit",function(){n.warningUnhooked(),n.validateFields().then(function(r){var o=n.callbacks.onFinish;if(o)try{o(r)}catch(i){console.error(i)}}).catch(function(r){var o=n.callbacks.onFinishFailed;o&&o(r)})}),this.forceRootUpdate=t});function hm(e){var t=h.useRef(),n=h.useState({}),r=Y(n,2),o=r[1];if(!t.current)if(e)t.current=e;else{var i=function(){o({})},a=new FO(i);t.current=a.getForm()}return[t.current]}var Ch=h.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),R5=function(t){var n=t.validateMessages,r=t.onFormChange,o=t.onFormFinish,i=t.children,a=h.useContext(Ch),s=h.useRef({});return h.createElement(Ch.Provider,{value:U(U({},a),{},{validateMessages:U(U({},a.validateMessages),n),triggerFormChange:function(u,c){r&&r(u,{changedFields:c,forms:s.current}),a.triggerFormChange(u,c)},triggerFormFinish:function(u,c){o&&o(u,{values:c,forms:s.current}),a.triggerFormFinish(u,c)},registerForm:function(u,c){u&&(s.current=U(U({},s.current),{},V({},u,c))),a.registerForm(u,c)},unregisterForm:function(u){var c=U({},s.current);delete c[u],s.current=c,a.unregisterForm(u)}})},i)},jO=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed"],AO=function(t,n){var r=t.name,o=t.initialValues,i=t.fields,a=t.form,s=t.preserve,l=t.children,u=t.component,c=u===void 0?"form":u,f=t.validateMessages,d=t.validateTrigger,y=d===void 0?"onChange":d,C=t.onValuesChange,v=t.onFieldsChange,S=t.onFinish,g=t.onFinishFailed,p=jn(t,jO),m=h.useContext(Ch),w=hm(a),E=Y(w,1),x=E[0],b=x.getInternalHooks(yo),T=b.useSubscribe,P=b.setInitialValues,O=b.setCallbacks,$=b.setValidateMessages,D=b.setPreserve,F=b.destroyForm;h.useImperativeHandle(n,function(){return x}),h.useEffect(function(){return m.registerForm(r,x),function(){m.unregisterForm(r)}},[m,x,r]),$(U(U({},m.validateMessages),f)),O({onValuesChange:C,onFieldsChange:function(K){if(m.triggerFormChange(r,K),v){for(var X=arguments.length,te=new Array(X>1?X-1:0),de=1;de{let{children:t,status:n,override:r}=e;const o=h.useContext(Rv),i=h.useMemo(()=>{const a=Object.assign({},o);return r&&delete a.isFormItemInput,n&&(delete a.status,delete a.hasFeedback,delete a.feedbackIcon),a},[n,r,o]);return h.createElement(Rv.Provider,{value:i},t)};function kv(){}const _O=h.createContext({add:kv,remove:kv});function DO(e){const t=h.useContext(_O),n=h.useRef();return TC(o=>{if(o){const i=e?o.querySelector(e):o;t.add(i),n.current=i}else t.remove(n.current)})}const VO=()=>{const{cancelButtonProps:e,cancelTextLocale:t,onCancel:n}=h.useContext(Rs);return Z.createElement(cm,Object.assign({onClick:n},e),t)},Lv=VO,BO=()=>{const{confirmLoading:e,okButtonProps:t,okType:n,okTextLocale:r,onOk:o}=h.useContext(Rs);return Z.createElement(cm,Object.assign({},d5(n),{loading:e,onClick:o},t),r)},$v=BO;function zO(e,t){return Z.createElement("span",{className:`${e}-close-x`},t||Z.createElement(Os,{className:`${e}-close-icon`}))}const HO=e=>{const{okText:t,okType:n="primary",cancelText:r,confirmLoading:o,onOk:i,onCancel:a,okButtonProps:s,cancelButtonProps:l,footer:u}=e,[c]=Xp("Modal",cC()),f=t||(c==null?void 0:c.okText),d=r||(c==null?void 0:c.cancelText),y={confirmLoading:o,okButtonProps:s,cancelButtonProps:l,okTextLocale:f,cancelTextLocale:d,okType:n,onOk:i,onCancel:a},C=Z.useMemo(()=>y,ee(Object.values(y)));let v;return typeof u=="function"||typeof u>"u"?(v=Z.createElement(Z.Fragment,null,Z.createElement(Lv,null),Z.createElement($v,null)),typeof u=="function"&&(v=u(v,{OkBtn:$v,CancelBtn:Lv})),v=Z.createElement(C5,{value:C},v)):v=u,Z.createElement(SC,{disabled:!1},v)},UO=e=>({animationDuration:e,animationFillMode:"both"}),WO=e=>({animationDuration:e,animationFillMode:"both"}),L5=function(e,t,n,r){const i=(arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1)?"&":"";return{[` ${i}${e}-enter, ${i}${e}-appear `]:Object.assign(Object.assign({},UO(r)),{animationPlayState:"paused"}),[`${i}${e}-leave`]:Object.assign(Object.assign({},WO(r)),{animationPlayState:"paused"}),[` ${i}${e}-enter${e}-enter-active, ${i}${e}-appear${e}-appear-active `]:{animationName:t,animationPlayState:"running"},[`${i}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},GO=new Je("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),KO=new Je("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),ZO=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const{antCls:n}=e,r=`${n}-fade`,o=t?"&":"";return[L5(r,GO,KO,e.motionDurationMid,t),{[` ${o}${r}-enter, ${o}${r}-appear `]:{opacity:0,animationTimingFunction:"linear"},[`${o}${r}-leave`]:{animationTimingFunction:"linear"}}]},qO=new Je("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),XO=new Je("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),Fv=new Je("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),jv=new Je("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),QO=new Je("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),YO=new Je("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),JO=new Je("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),eM=new Je("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),tM=new Je("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),nM=new Je("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),rM=new Je("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),oM=new Je("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),iM={zoom:{inKeyframes:qO,outKeyframes:XO},"zoom-big":{inKeyframes:Fv,outKeyframes:jv},"zoom-big-fast":{inKeyframes:Fv,outKeyframes:jv},"zoom-left":{inKeyframes:JO,outKeyframes:eM},"zoom-right":{inKeyframes:tM,outKeyframes:nM},"zoom-up":{inKeyframes:QO,outKeyframes:YO},"zoom-down":{inKeyframes:rM,outKeyframes:oM}},aM=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=iM[t];return[L5(r,o,i,t==="zoom-big-fast"?e.motionDurationFast:e.motionDurationMid),{[` ${r}-enter, ${r}-appear `]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]};function Av(e){return{position:e,inset:0}}const sM=e=>{const{componentCls:t,antCls:n}=e;return[{[`${t}-root`]:{[`${t}${n}-zoom-enter, ${t}${n}-zoom-appear`]:{transform:"none",opacity:0,animationDuration:e.motionDurationSlow,userSelect:"none"},[`${t}${n}-zoom-leave ${t}-content`]:{pointerEvents:"none"},[`${t}-mask`]:Object.assign(Object.assign({},Av("fixed")),{zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,pointerEvents:"none",[`${t}-hidden`]:{display:"none"}}),[`${t}-wrap`]:Object.assign(Object.assign({},Av("fixed")),{zIndex:e.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch",[`&:has(${t}${n}-zoom-enter), &:has(${t}${n}-zoom-appear)`]:{pointerEvents:"none"}})}},{[`${t}-root`]:ZO(e)}]},lM=e=>{const{componentCls:t}=e;return[{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl"},[`${t}-centered`]:{textAlign:"center","&::before":{display:"inline-block",width:0,height:"100%",verticalAlign:"middle",content:'""'},[t]:{top:0,display:"inline-block",paddingBottom:0,textAlign:"start",verticalAlign:"middle"}},[`@media (max-width: ${e.screenSMMax}px)`]:{[t]:{maxWidth:"calc(100vw - 16px)",margin:`${xe(e.marginXS)} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:Object.assign(Object.assign({},Yp(e)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${xe(e.calc(e.margin).mul(2).equal())})`,margin:"0 auto",paddingBottom:e.paddingLG,[`${t}-title`]:{margin:0,color:e.titleColor,fontWeight:e.fontWeightStrong,fontSize:e.titleFontSize,lineHeight:e.titleLineHeight,wordWrap:"break-word"},[`${t}-content`]:{position:"relative",backgroundColor:e.contentBg,backgroundClip:"padding-box",border:0,borderRadius:e.borderRadiusLG,boxShadow:e.boxShadow,pointerEvents:"auto",padding:e.contentPadding},[`${t}-close`]:Object.assign({position:"absolute",top:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),insetInlineEnd:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),zIndex:e.calc(e.zIndexPopupBase).add(10).equal(),padding:0,color:e.modalCloseIconColor,fontWeight:e.fontWeightStrong,lineHeight:1,textDecoration:"none",background:"transparent",borderRadius:e.borderRadiusSM,width:e.modalCloseBtnSize,height:e.modalCloseBtnSize,border:0,outline:0,cursor:"pointer",transition:`color ${e.motionDurationMid}, background-color ${e.motionDurationMid}`,"&-x":{display:"flex",fontSize:e.fontSizeLG,fontStyle:"normal",lineHeight:`${xe(e.modalCloseBtnSize)}`,justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:hover":{color:e.modalIconHoverColor,backgroundColor:e.closeBtnHoverBg,textDecoration:"none"},"&:active":{backgroundColor:e.closeBtnActiveBg}},OC(e)),[`${t}-header`]:{color:e.colorText,background:e.headerBg,borderRadius:`${xe(e.borderRadiusLG)} ${xe(e.borderRadiusLG)} 0 0`,marginBottom:e.headerMarginBottom,padding:e.headerPadding,borderBottom:e.headerBorderBottom},[`${t}-body`]:{fontSize:e.fontSize,lineHeight:e.lineHeight,wordWrap:"break-word",padding:e.bodyPadding},[`${t}-footer`]:{textAlign:"end",background:e.footerBg,marginTop:e.footerMarginTop,padding:e.footerPadding,borderTop:e.footerBorderTop,borderRadius:e.footerBorderRadius,[`> ${e.antCls}-btn + ${e.antCls}-btn`]:{marginInlineStart:e.marginXS}},[`${t}-open`]:{overflow:"hidden"}})},{[`${t}-pure-panel`]:{top:"auto",padding:0,display:"flex",flexDirection:"column",[`${t}-content, ${t}-body, ${t}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${t}-confirm-body`]:{marginBottom:"auto"}}}]},uM=e=>{const{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},$5=e=>{const t=e.padding,n=e.fontSizeHeading5,r=e.lineHeightHeading5;return Kn(e,{modalHeaderHeight:e.calc(e.calc(r).mul(n).equal()).add(e.calc(t).mul(2).equal()).equal(),modalFooterBorderColorSplit:e.colorSplit,modalFooterBorderStyle:e.lineType,modalFooterBorderWidth:e.lineWidth,modalIconHoverColor:e.colorIconHover,modalCloseIconColor:e.colorIcon,modalCloseBtnSize:e.fontHeight,modalConfirmIconSize:e.fontHeight,modalTitleHeight:e.calc(e.titleFontSize).mul(e.titleLineHeight).equal()})},F5=e=>({footerBg:"transparent",headerBg:e.colorBgElevated,titleLineHeight:e.lineHeightHeading5,titleFontSize:e.fontSizeHeading5,contentBg:e.colorBgElevated,titleColor:e.colorTextHeading,closeBtnHoverBg:e.wireframe?"transparent":e.colorFillContent,closeBtnActiveBg:e.wireframe?"transparent":e.colorFillContentHover,contentPadding:e.wireframe?0:`${xe(e.paddingMD)} ${xe(e.paddingContentHorizontalLG)}`,headerPadding:e.wireframe?`${xe(e.padding)} ${xe(e.paddingLG)}`:0,headerBorderBottom:e.wireframe?`${xe(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",headerMarginBottom:e.wireframe?0:e.marginXS,bodyPadding:e.wireframe?e.paddingLG:0,footerPadding:e.wireframe?`${xe(e.paddingXS)} ${xe(e.padding)}`:0,footerBorderTop:e.wireframe?`${xe(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",footerBorderRadius:e.wireframe?`0 0 ${xe(e.borderRadiusLG)} ${xe(e.borderRadiusLG)}`:0,footerMarginTop:e.wireframe?0:e.marginSM,confirmBodyPadding:e.wireframe?`${xe(e.padding*2)} ${xe(e.padding*2)} ${xe(e.paddingLG)}`:0,confirmIconMarginInlineEnd:e.wireframe?e.margin:e.marginSM,confirmBtnsMarginTop:e.wireframe?e.marginLG:e.marginSM}),cM=_o("Modal",e=>{const t=$5(e);return[lM(t),uM(t),sM(t),aM(t,"zoom")]},F5,{unitless:{titleLineHeight:!0}});var fM=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{Sh={x:e.pageX,y:e.pageY},setTimeout(()=>{Sh=null},100)};UT()&&document.documentElement.addEventListener("click",dM,!0);const hM=e=>{var t;const{getPopupContainer:n,getPrefixCls:r,direction:o,modal:i}=h.useContext(dt),a=K=>{const{onCancel:X}=e;X==null||X(K)},s=K=>{const{onOk:X}=e;X==null||X(K)},{prefixCls:l,className:u,rootClassName:c,open:f,wrapClassName:d,centered:y,getContainer:C,closeIcon:v,closable:S,focusTriggerAfterClose:g=!0,style:p,visible:m,width:w=520,footer:E,classNames:x,styles:b}=e,T=fM(e,["prefixCls","className","rootClassName","open","wrapClassName","centered","getContainer","closeIcon","closable","focusTriggerAfterClose","style","visible","width","footer","classNames","styles"]),P=r("modal",l),O=r(),$=am(P),[D,F,z]=cM(P,$),H=le(d,{[`${P}-centered`]:!!y,[`${P}-wrap-rtl`]:o==="rtl"}),j=E!==null&&h.createElement(HO,Object.assign({},e,{onOk:s,onCancel:a})),[R,M]=HT(S,v,K=>zO(P,K),h.createElement(Os,{className:`${P}-close-icon`}),!0),N=DO(`.${P}-content`),[B,I]=XE("Modal",T.zIndex);return D(h.createElement(BP,null,h.createElement(IO,{status:!0,override:!0},h.createElement(o5.Provider,{value:I},h.createElement(b5,Object.assign({width:w},T,{zIndex:B,getContainer:C===void 0?n:C,prefixCls:P,rootClassName:le(F,c,z,$),footer:j,visible:f??m,mousePosition:(t=T.mousePosition)!==null&&t!==void 0?t:Sh,onClose:a,closable:R,closeIcon:M,focusTriggerAfterClose:g,transitionName:Cu(O,"zoom",e.transitionName),maskTransitionName:Cu(O,"fade",e.maskTransitionName),className:le(F,u,i==null?void 0:i.className),style:Object.assign(Object.assign({},i==null?void 0:i.style),p),classNames:Object.assign(Object.assign({wrapper:H},i==null?void 0:i.classNames),x),styles:Object.assign(Object.assign({},i==null?void 0:i.styles),b),panelRef:N}))))))},pM=hM,mM=e=>{const{componentCls:t,titleFontSize:n,titleLineHeight:r,modalConfirmIconSize:o,fontSize:i,lineHeight:a,modalTitleHeight:s,fontHeight:l,confirmBodyPadding:u}=e,c=`${t}-confirm`;return{[c]:{"&-rtl":{direction:"rtl"},[`${e.antCls}-modal-header`]:{display:"none"},[`${c}-body-wrapper`]:Object.assign({},r7()),[`&${t} ${t}-body`]:{padding:u},[`${c}-body`]:{display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${e.iconCls}`]:{flex:"none",fontSize:o,marginInlineEnd:e.confirmIconMarginInlineEnd,marginTop:e.calc(e.calc(l).sub(o).equal()).div(2).equal()},[`&-has-title > ${e.iconCls}`]:{marginTop:e.calc(e.calc(s).sub(o).equal()).div(2).equal()}},[`${c}-paragraph`]:{display:"flex",flexDirection:"column",flex:"auto",rowGap:e.marginXS,maxWidth:`calc(100% - ${xe(e.calc(e.modalConfirmIconSize).add(e.marginSM).equal())})`},[`${c}-title`]:{color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:n,lineHeight:r},[`${c}-content`]:{color:e.colorText,fontSize:i,lineHeight:a},[`${c}-btns`]:{textAlign:"end",marginTop:e.confirmBtnsMarginTop,[`${e.antCls}-btn + ${e.antCls}-btn`]:{marginBottom:0,marginInlineStart:e.marginXS}}},[`${c}-error ${c}-body > ${e.iconCls}`]:{color:e.colorError},[`${c}-warning ${c}-body > ${e.iconCls}, ${c}-confirm ${c}-body > ${e.iconCls}`]:{color:e.colorWarning},[`${c}-info ${c}-body > ${e.iconCls}`]:{color:e.colorInfo},[`${c}-success ${c}-body > ${e.iconCls}`]:{color:e.colorSuccess}}},gM=jC(["Modal","confirm"],e=>{const t=$5(e);return[mM(t)]},F5,{order:-1e3});var vM=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);op,ee(Object.values(p))),w=h.createElement(h.Fragment,null,h.createElement(av,null),h.createElement(sv,null)),E=e.title!==void 0&&e.title!==null,x=`${i}-body`;return h.createElement("div",{className:`${i}-body-wrapper`},h.createElement("div",{className:le(x,{[`${x}-has-title`]:E})},f,h.createElement("div",{className:`${i}-paragraph`},E&&h.createElement("span",{className:`${i}-title`},e.title),h.createElement("div",{className:`${i}-content`},e.content))),l===void 0||typeof l=="function"?h.createElement(C5,{value:m},h.createElement("div",{className:`${i}-btns`},typeof l=="function"?l(w,{OkBtn:sv,CancelBtn:av}):w)):l,h.createElement(gM,{prefixCls:t}))}const CM=e=>{const{close:t,zIndex:n,afterClose:r,open:o,keyboard:i,centered:a,getContainer:s,maskStyle:l,direction:u,prefixCls:c,wrapClassName:f,rootPrefixCls:d,bodyStyle:y,closable:C=!1,closeIcon:v,modalRender:S,focusTriggerAfterClose:g,onConfirm:p,styles:m}=e,w=`${c}-confirm`,E=e.width||416,x=e.style||{},b=e.mask===void 0?!0:e.mask,T=e.maskClosable===void 0?!1:e.maskClosable,P=le(w,`${w}-${e.type}`,{[`${w}-rtl`]:u==="rtl"},e.className),[,O]=An(),$=h.useMemo(()=>n!==void 0?n:O.zIndexPopupBase+fc,[n,O]);return h.createElement(pM,{prefixCls:c,className:P,wrapClassName:le({[`${w}-centered`]:!!e.centered},f),onCancel:()=>{t==null||t({triggerCancel:!0}),p==null||p(!1)},open:o,title:"",footer:null,transitionName:Cu(d||"","zoom",e.transitionName),maskTransitionName:Cu(d||"","fade",e.maskTransitionName),mask:b,maskClosable:T,style:x,styles:Object.assign({body:y,mask:l},m),width:E,zIndex:$,afterClose:r,keyboard:i,centered:a,getContainer:s,closable:C,closeIcon:v,modalRender:S,focusTriggerAfterClose:g},h.createElement(yM,Object.assign({},e,{confirmPrefixCls:w})))},SM=e=>{const{rootPrefixCls:t,iconPrefixCls:n,direction:r,theme:o}=e;return h.createElement(KC,{prefixCls:t,iconPrefixCls:n,direction:r,theme:o},h.createElement(CM,Object.assign({},e)))},j5=SM,xM=[],ma=xM;var wM=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);od&&d.triggerCancel);e.onCancel&&f&&e.onCancel.apply(e,[()=>{}].concat(ee(u.slice(1))));for(let d=0;d{const C=cC(),{getPrefixCls:v,getIconPrefixCls:S,getTheme:g}=Y7(),p=v(void 0,bM()),m=f||`${p}-modal`,w=S(),E=g();let x=d;x===!1&&(x=void 0),a5(h.createElement(j5,Object.assign({},y,{getContainer:x,prefixCls:m,rootPrefixCls:p,iconPrefixCls:w,okText:u,locale:C,theme:E,cancelText:c||C.cancelText})),t)})}function a(){for(var l=arguments.length,u=new Array(l),c=0;c{typeof e.afterClose=="function"&&e.afterClose(),o.apply(this,u)}}),n.visible&&delete n.visible,i(n)}function s(l){typeof l=="function"?n=l(n):n=Object.assign(Object.assign({},n),l),i(n)}return i(n),ma.push(a),{destroy:a,update:s}}function EM(e){return Object.assign(Object.assign({},e),{type:"warning"})}function PM(e){return Object.assign(Object.assign({},e),{type:"info"})}function TM(e){return Object.assign(Object.assign({},e),{type:"success"})}function OM(e){return Object.assign(Object.assign({},e),{type:"error"})}function MM(e){return Object.assign(Object.assign({},e),{type:"confirm"})}function Vj(e){let{rootPrefixCls:t}=e;A5=t}var RM=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{var n,{afterClose:r,config:o}=e,i=RM(e,["afterClose","config"]);const[a,s]=h.useState(!0),[l,u]=h.useState(o),{direction:c,getPrefixCls:f}=h.useContext(dt),d=f("modal"),y=f(),C=()=>{var p;r(),(p=l.afterClose)===null||p===void 0||p.call(l)},v=function(){s(!1);for(var p=arguments.length,m=new Array(p),w=0;wx&&x.triggerCancel);l.onCancel&&E&&l.onCancel.apply(l,[()=>{}].concat(ee(m.slice(1))))};h.useImperativeHandle(t,()=>({destroy:v,update:p=>{u(m=>Object.assign(Object.assign({},m),p))}}));const S=(n=l.okCancel)!==null&&n!==void 0?n:l.type==="confirm",[g]=Xp("Modal",Fo.Modal);return h.createElement(j5,Object.assign({prefixCls:d,rootPrefixCls:y},l,{close:v,open:a,afterClose:C,okText:l.okText||(S?g==null?void 0:g.okText:g==null?void 0:g.justOkText),direction:l.direction||c,cancelText:l.cancelText||(g==null?void 0:g.cancelText)},i))},LM=h.forwardRef(kM);let Nv=0;const $M=h.memo(h.forwardRef((e,t)=>{const[n,r]=dP();return h.useImperativeHandle(t,()=>({patchElement:r}),[]),h.createElement(h.Fragment,null,n)}));function FM(){const e=h.useRef(null),[t,n]=h.useState([]);h.useEffect(()=>{t.length&&(ee(t).forEach(a=>{a()}),n([]))},[t]);const r=h.useCallback(i=>function(s){var l;Nv+=1;const u=h.createRef();let c;const f=new Promise(S=>{c=S});let d=!1,y;const C=h.createElement(LM,{key:`modal-${Nv}`,config:i(s),ref:u,afterClose:()=>{y==null||y()},isSilent:()=>d,onConfirm:S=>{c(S)}});return y=(l=e.current)===null||l===void 0?void 0:l.patchElement(C),y&&ma.push(y),{destroy:()=>{function S(){var g;(g=u.current)===null||g===void 0||g.destroy()}u.current?S():n(g=>[].concat(ee(g),[S]))},update:S=>{function g(){var p;(p=u.current)===null||p===void 0||p.update(S)}u.current?g():n(p=>[].concat(ee(p),[g]))},then:S=>(d=!0,f.then(S))}},[]);return[h.useMemo(()=>({info:r(PM),success:r(TM),error:r(OM),warning:r(EM),confirm:r(MM)}),[]),h.createElement($M,{key:"modal-holder",ref:e})]}const jM=e=>{const{componentCls:t,notificationMarginEdge:n,animationMaxHeight:r}=e,o=`${t}-notice`,i=new Je("antNotificationFadeIn",{"0%":{transform:"translate3d(100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}}),a=new Je("antNotificationTopFadeIn",{"0%":{top:-r,opacity:0},"100%":{top:0,opacity:1}}),s=new Je("antNotificationBottomFadeIn",{"0%":{bottom:e.calc(r).mul(-1).equal(),opacity:0},"100%":{bottom:0,opacity:1}}),l=new Je("antNotificationLeftFadeIn",{"0%":{transform:"translate3d(-100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}});return{[t]:{[`&${t}-top, &${t}-bottom`]:{marginInline:0,[o]:{marginInline:"auto auto"}},[`&${t}-top`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:a}},[`&${t}-bottom`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:s}},[`&${t}-topRight, &${t}-bottomRight`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:i}},[`&${t}-topLeft, &${t}-bottomLeft`]:{marginRight:{value:0,_skip_check_:!0},marginLeft:{value:n,_skip_check_:!0},[o]:{marginInlineEnd:"auto",marginInlineStart:0},[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:l}}}}},AM=jM,NM=["top","topLeft","topRight","bottom","bottomLeft","bottomRight"],IM={topLeft:"left",topRight:"right",bottomLeft:"left",bottomRight:"right",top:"left",bottom:"left"},_M=(e,t)=>{const{componentCls:n}=e;return{[`${n}-${t}`]:{[`&${n}-stack > ${n}-notice-wrapper`]:{[t.startsWith("top")?"top":"bottom"]:0,[IM[t]]:{value:0,_skip_check_:!0}}}}},DM=e=>{const t={};for(let n=1;n ${e.componentCls}-notice`]:{opacity:0,transition:`opacity ${e.motionDurationMid}`}};return Object.assign({[`&:not(:nth-last-child(-n+${e.notificationStackLayer}))`]:{opacity:0,overflow:"hidden",color:"transparent",pointerEvents:"none"}},t)},VM=e=>{const t={};for(let n=1;n{const{componentCls:t}=e;return Object.assign({[`${t}-stack`]:{[`& > ${t}-notice-wrapper`]:Object.assign({transition:`all ${e.motionDurationSlow}, backdrop-filter 0s`,position:"absolute"},DM(e))},[`${t}-stack:not(${t}-stack-expanded)`]:{[`& > ${t}-notice-wrapper`]:Object.assign({},VM(e))},[`${t}-stack${t}-stack-expanded`]:{[`& > ${t}-notice-wrapper`]:{"&:not(:nth-last-child(-n + 1))":{opacity:1,overflow:"unset",color:"inherit",pointerEvents:"auto",[`& > ${e.componentCls}-notice`]:{opacity:1}},"&:after":{content:'""',position:"absolute",height:e.margin,width:"100%",insetInline:0,bottom:e.calc(e.margin).mul(-1).equal(),background:"transparent",pointerEvents:"auto"}}}},NM.map(n=>_M(e,n)).reduce((n,r)=>Object.assign(Object.assign({},n),r),{}))},zM=BM,HM=e=>{const{iconCls:t,componentCls:n,boxShadow:r,fontSizeLG:o,notificationMarginBottom:i,borderRadiusLG:a,colorSuccess:s,colorInfo:l,colorWarning:u,colorError:c,colorTextHeading:f,notificationBg:d,notificationPadding:y,notificationMarginEdge:C,fontSize:v,lineHeight:S,width:g,notificationIconSize:p,colorText:m}=e,w=`${n}-notice`;return{position:"relative",marginBottom:i,marginInlineStart:"auto",background:d,borderRadius:a,boxShadow:r,[w]:{padding:y,width:g,maxWidth:`calc(100vw - ${xe(e.calc(C).mul(2).equal())})`,overflow:"hidden",lineHeight:S,wordWrap:"break-word"},[`${n}-close-icon`]:{fontSize:v,cursor:"pointer"},[`${w}-message`]:{marginBottom:e.marginXS,color:f,fontSize:o,lineHeight:e.lineHeightLG},[`${w}-description`]:{fontSize:v,color:m},[`${w}-closable ${w}-message`]:{paddingInlineEnd:e.paddingLG},[`${w}-with-icon ${w}-message`]:{marginBottom:e.marginXS,marginInlineStart:e.calc(e.marginSM).add(p).equal(),fontSize:o},[`${w}-with-icon ${w}-description`]:{marginInlineStart:e.calc(e.marginSM).add(p).equal(),fontSize:v},[`${w}-icon`]:{position:"absolute",fontSize:p,lineHeight:1,[`&-success${t}`]:{color:s},[`&-info${t}`]:{color:l},[`&-warning${t}`]:{color:u},[`&-error${t}`]:{color:c}},[`${w}-close`]:{position:"absolute",top:e.notificationPaddingVertical,insetInlineEnd:e.notificationPaddingHorizontal,color:e.colorIcon,outline:"none",width:e.notificationCloseButtonSize,height:e.notificationCloseButtonSize,borderRadius:e.borderRadiusSM,transition:`background-color ${e.motionDurationMid}, color ${e.motionDurationMid}`,display:"flex",alignItems:"center",justifyContent:"center","&:hover":{color:e.colorIconHover,backgroundColor:e.closeBtnHoverBg}},[`${w}-btn`]:{float:"right",marginTop:e.marginSM}}},UM=e=>{const{componentCls:t,notificationMarginBottom:n,notificationMarginEdge:r,motionDurationMid:o,motionEaseInOut:i}=e,a=`${t}-notice`,s=new Je("antNotificationFadeOut",{"0%":{maxHeight:e.animationMaxHeight,marginBottom:n},"100%":{maxHeight:0,marginBottom:0,paddingTop:0,paddingBottom:0,opacity:0}});return[{[t]:Object.assign(Object.assign({},Yp(e)),{position:"fixed",zIndex:e.zIndexPopup,marginRight:{value:r,_skip_check_:!0},[`${t}-hook-holder`]:{position:"relative"},[`${t}-fade-appear-prepare`]:{opacity:"0 !important"},[`${t}-fade-enter, ${t}-fade-appear`]:{animationDuration:e.motionDurationMid,animationTimingFunction:i,animationFillMode:"both",opacity:0,animationPlayState:"paused"},[`${t}-fade-leave`]:{animationTimingFunction:i,animationFillMode:"both",animationDuration:o,animationPlayState:"paused"},[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationPlayState:"running"},[`${t}-fade-leave${t}-fade-leave-active`]:{animationName:s,animationPlayState:"running"},"&-rtl":{direction:"rtl",[`${a}-btn`]:{float:"left"}}})},{[t]:{[`${a}-wrapper`]:Object.assign({},HM(e))}}]},WM=e=>({zIndexPopup:e.zIndexPopupBase+fc+50,width:384,closeBtnHoverBg:e.wireframe?"transparent":e.colorFillContent}),GM=e=>{const t=e.paddingMD,n=e.paddingLG;return Kn(e,{notificationBg:e.colorBgElevated,notificationPaddingVertical:t,notificationPaddingHorizontal:n,notificationIconSize:e.calc(e.fontSizeLG).mul(e.lineHeightLG).equal(),notificationCloseButtonSize:e.calc(e.controlHeightLG).mul(.55).equal(),notificationMarginBottom:e.margin,notificationPadding:`${xe(e.paddingMD)} ${xe(e.paddingContentHorizontalLG)}`,notificationMarginEdge:e.marginLG,animationMaxHeight:150,notificationStackLayer:3})},KM=_o("Notification",e=>{const t=GM(e);return[UM(t),AM(t),zM(t)]},WM);globalThis&&globalThis.__rest;function N5(e,t){return t===null||t===!1?null:t||h.createElement("span",{className:`${e}-close-x`},h.createElement(Os,{className:`${e}-close-icon`}))}const ZM={success:nm,info:im,error:rm,warning:om},qM=e=>{const{prefixCls:t,icon:n,type:r,message:o,description:i,btn:a,role:s="alert"}=e;let l=null;return n?l=h.createElement("span",{className:`${t}-icon`},n):r&&(l=h.createElement(ZM[r]||null,{className:le(`${t}-icon`,`${t}-icon-${r}`)})),h.createElement("div",{className:le({[`${t}-with-icon`]:l}),role:s},l,h.createElement("div",{className:`${t}-message`},o),h.createElement("div",{className:`${t}-description`},i),a&&h.createElement("div",{className:`${t}-btn`},a))};function XM(e,t,n){let r;switch(e){case"top":r={left:"50%",transform:"translateX(-50%)",right:"auto",top:t,bottom:"auto"};break;case"topLeft":r={left:0,top:t,bottom:"auto"};break;case"topRight":r={right:0,top:t,bottom:"auto"};break;case"bottom":r={left:"50%",transform:"translateX(-50%)",right:"auto",top:"auto",bottom:n};break;case"bottomLeft":r={left:0,top:"auto",bottom:n};break;default:r={right:0,top:"auto",bottom:n};break}return r}function QM(e){return{motionName:`${e}-fade`}}var YM=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{let{children:t,prefixCls:n}=e;const r=am(n),[o,i,a]=KM(n,r);return o(h.createElement(t5,{classNames:{list:le(i,a,r)}},t))},nR=(e,t)=>{let{prefixCls:n,key:r}=t;return h.createElement(tR,{prefixCls:n,key:r},e)},rR=h.forwardRef((e,t)=>{const{top:n,bottom:r,prefixCls:o,getContainer:i,maxCount:a,rtl:s,onAllRemoved:l,stack:u}=e,{getPrefixCls:c,getPopupContainer:f,notification:d}=h.useContext(dt),[,y]=An(),C=o||c("notification"),v=w=>XM(w,n??Iv,r??Iv),S=()=>le({[`${C}-rtl`]:s}),g=()=>QM(C),[p,m]=n5({prefixCls:C,style:v,className:S,motion:g,closable:!0,closeIcon:N5(C),duration:JM,getContainer:()=>(i==null?void 0:i())||(f==null?void 0:f())||document.body,maxCount:a,onAllRemoved:l,renderNotifications:nR,stack:u===!1?!1:{threshold:typeof u=="object"?u==null?void 0:u.threshold:void 0,offset:8,gap:y.margin}});return h.useImperativeHandle(t,()=>Object.assign(Object.assign({},p),{prefixCls:C,notification:d})),m});function oR(e){const t=h.useRef(null);return Zp(),[h.useMemo(()=>{const r=s=>{var l;if(!t.current)return;const{open:u,prefixCls:c,notification:f}=t.current,d=`${c}-notice`,{message:y,description:C,icon:v,type:S,btn:g,className:p,style:m,role:w="alert",closeIcon:E}=s,x=YM(s,["message","description","icon","type","btn","className","style","role","closeIcon"]),b=N5(d,E);return u(Object.assign(Object.assign({placement:(l=e==null?void 0:e.placement)!==null&&l!==void 0?l:eR},x),{content:h.createElement(qM,{prefixCls:d,icon:v,type:S,message:y,description:C,btn:g,role:w}),className:le(S&&`${d}-${S}`,p,f==null?void 0:f.className),style:Object.assign(Object.assign({},f==null?void 0:f.style),m),closeIcon:b,closable:!!b}))},i={open:r,destroy:s=>{var l,u;s!==void 0?(l=t.current)===null||l===void 0||l.close(s):(u=t.current)===null||u===void 0||u.destroy()}};return["success","info","warning","error"].forEach(s=>{i[s]=l=>r(Object.assign(Object.assign({},l),{type:s}))}),i},[]),h.createElement(rR,Object.assign({key:"notification-holder"},e,{ref:t}))]}function iR(e){return oR(e)}const _v=Z.createContext({}),aR=Z.createContext({message:{},notification:{},modal:{}}),I5=aR,sR=e=>{const{componentCls:t,colorText:n,fontSize:r,lineHeight:o,fontFamily:i}=e;return{[t]:{color:n,fontSize:r,lineHeight:o,fontFamily:i}}},lR=()=>({}),uR=_o("App",sR,lR),cR=()=>Z.useContext(I5),_5=e=>{const{prefixCls:t,children:n,className:r,rootClassName:o,message:i,notification:a,style:s,component:l="div"}=e,{getPrefixCls:u}=h.useContext(dt),c=u("app",t),[f,d,y]=uR(c),C=le(d,c,r,o,y),v=h.useContext(_v),S=Z.useMemo(()=>({message:Object.assign(Object.assign({},v.message),i),notification:Object.assign(Object.assign({},v.notification),a)}),[i,a,v.message,v.notification]),[g,p]=fP(S.message),[m,w]=iR(S.notification),[E,x]=FM(),b=Z.useMemo(()=>({message:g,notification:m,modal:E}),[g,m,E]),T=l===!1?Z.Fragment:l,P={className:C,style:s};return f(Z.createElement(I5.Provider,{value:b},Z.createElement(_v.Provider,{value:S},Z.createElement(T,Object.assign({},l===!1?void 0:P),x,p,w,n))))};_5.useApp=cR;const fR=_5;var dR={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"};const hR=dR;var pR=function(t,n){return h.createElement(vr,Fe({},t,{ref:n,icon:hR}))};const Dv=h.forwardRef(pR);var mR={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"};const gR=mR;var vR=function(t,n){return h.createElement(vr,Fe({},t,{ref:n,icon:gR}))};const yR=h.forwardRef(vR);var CR={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"};const SR=CR;var xR=function(t,n){return h.createElement(vr,Fe({},t,{ref:n,icon:SR}))};const Vv=h.forwardRef(xR),wR=e=>!isNaN(parseFloat(e))&&isFinite(e),bR=wR,D5=h.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});var ER=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{let e=0;return function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return e+=1,`${t}${e}`}})(),TR=h.forwardRef((e,t)=>{const{prefixCls:n,className:r,trigger:o,children:i,defaultCollapsed:a=!1,theme:s="dark",style:l={},collapsible:u=!1,reverseArrow:c=!1,width:f=200,collapsedWidth:d=80,zeroWidthTriggerStyle:y,breakpoint:C,onCollapse:v,onBreakpoint:S}=e,g=ER(e,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:p}=h.useContext(D5),[m,w]=h.useState("collapsed"in e?e.collapsed:a),[E,x]=h.useState(!1);h.useEffect(()=>{"collapsed"in e&&w(e.collapsed)},[e.collapsed]);const b=(F,z)=>{"collapsed"in e||w(F),v==null||v(F,z)},T=h.useRef();T.current=F=>{x(F.matches),S==null||S(F.matches),m!==F.matches&&b(F.matches,"responsive")},h.useEffect(()=>{function F(H){return T.current(H)}let z;if(typeof window<"u"){const{matchMedia:H}=window;if(H&&C&&C in Bv){z=H(`screen and (max-width: ${Bv[C]})`);try{z.addEventListener("change",F)}catch{z.addListener(F)}F(z)}}return()=>{try{z==null||z.removeEventListener("change",F)}catch{z==null||z.removeListener(F)}}},[C]),h.useEffect(()=>{const F=PR("ant-sider-");return p.addSider(F),()=>p.removeSider(F)},[]);const P=()=>{b(!m,"clickTrigger")},{getPrefixCls:O}=h.useContext(dt),$=()=>{const F=O("layout-sider",n),z=_p(g,["collapsed"]),H=m?d:f,j=bR(H)?`${H}px`:String(H),R=parseFloat(String(d||0))===0?h.createElement("span",{onClick:P,className:le(`${F}-zero-width-trigger`,`${F}-zero-width-trigger-${c?"right":"left"}`),style:y},o||h.createElement(yR,null)):null,B={expanded:c?h.createElement(Dv,null):h.createElement(Vv,null),collapsed:c?h.createElement(Vv,null):h.createElement(Dv,null)}[m?"collapsed":"expanded"],I=o!==null?R||h.createElement("div",{className:`${F}-trigger`,onClick:P,style:{width:j}},o||B):null,K=Object.assign(Object.assign({},l),{flex:`0 0 ${j}`,maxWidth:j,minWidth:j,width:j}),X=le(F,`${F}-${s}`,{[`${F}-collapsed`]:!!m,[`${F}-has-trigger`]:u&&o!==null&&!R,[`${F}-below`]:!!E,[`${F}-zero-width`]:parseFloat(j)===0},r);return h.createElement("aside",Object.assign({className:X},z,{style:K,ref:t}),h.createElement("div",{className:`${F}-children`},i),u||E&&R?I:null)},D=h.useMemo(()=>({siderCollapsed:m}),[m]);return h.createElement(V5.Provider,{value:D},$())}),B5=TR;function OR(e,t,n){return typeof n=="boolean"?n:e.length?!0:ns(t).some(o=>o.type===B5)}const MR=e=>{const{componentCls:t,bodyBg:n,lightSiderBg:r,lightTriggerBg:o,lightTriggerColor:i}=e;return{[`${t}-sider-light`]:{background:r,[`${t}-sider-trigger`]:{color:i,background:o},[`${t}-sider-zero-width-trigger`]:{color:i,background:o,border:`1px solid ${n}`,borderInlineStart:0}}}},RR=MR,kR=e=>{const{antCls:t,componentCls:n,colorText:r,triggerColor:o,footerBg:i,triggerBg:a,headerHeight:s,headerPadding:l,headerColor:u,footerPadding:c,triggerHeight:f,zeroTriggerHeight:d,zeroTriggerWidth:y,motionDurationMid:C,motionDurationSlow:v,fontSize:S,borderRadius:g,bodyBg:p,headerBg:m,siderBg:w}=e;return{[n]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:p,"&, *":{boxSizing:"border-box"},[`&${n}-has-sider`]:{flexDirection:"row",[`> ${n}, > ${n}-content`]:{width:0}},[`${n}-header, &${n}-footer`]:{flex:"0 0 auto"},[`${n}-sider`]:{position:"relative",minWidth:0,background:w,transition:`all ${C}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${t}-menu${t}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:f},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:f,color:o,lineHeight:xe(f),textAlign:"center",background:a,cursor:"pointer",transition:`all ${C}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:s,insetInlineEnd:e.calc(y).mul(-1).equal(),zIndex:1,width:y,height:d,color:o,fontSize:e.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:w,borderStartStartRadius:0,borderStartEndRadius:g,borderEndEndRadius:g,borderEndStartRadius:0,cursor:"pointer",transition:`background ${v} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${v}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:e.calc(y).mul(-1).equal(),borderStartStartRadius:g,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:g}}}}},RR(e)),{"&-rtl":{direction:"rtl"}}),[`${n}-header`]:{height:s,padding:l,color:u,lineHeight:xe(s),background:m,[`${t}-menu`]:{lineHeight:"inherit"}},[`${n}-footer`]:{padding:c,color:r,fontSize:S,background:i},[`${n}-content`]:{flex:"auto",minHeight:0}}},LR=e=>{const{colorBgLayout:t,controlHeight:n,controlHeightLG:r,colorText:o,controlHeightSM:i,marginXXS:a,colorTextLightSolid:s,colorBgContainer:l}=e,u=r*1.25;return{colorBgHeader:"#001529",colorBgBody:t,colorBgTrigger:"#002140",bodyBg:t,headerBg:"#001529",headerHeight:n*2,headerPadding:`0 ${u}px`,headerColor:o,footerPadding:`${i}px ${u}px`,footerBg:t,siderBg:"#001529",triggerHeight:r+a*2,triggerBg:"#002140",triggerColor:s,zeroTriggerWidth:r,zeroTriggerHeight:r,lightSiderBg:l,lightTriggerBg:l,lightTriggerColor:o}},z5=_o("Layout",e=>[kR(e)],LR,{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]});var H5=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);oh.forwardRef((a,s)=>h.createElement(o,Object.assign({ref:s,suffixCls:t,tagName:n},a)))}const pm=h.forwardRef((e,t)=>{const{prefixCls:n,suffixCls:r,className:o,tagName:i}=e,a=H5(e,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:s}=h.useContext(dt),l=s("layout",n),[u,c,f]=z5(l),d=r?`${l}-${r}`:l;return u(h.createElement(i,Object.assign({className:le(n||d,o,c,f),ref:t},a)))}),$R=h.forwardRef((e,t)=>{const{direction:n}=h.useContext(dt),[r,o]=h.useState([]),{prefixCls:i,className:a,rootClassName:s,children:l,hasSider:u,tagName:c,style:f}=e,d=H5(e,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),y=_p(d,["suffixCls"]),{getPrefixCls:C,layout:v}=h.useContext(dt),S=C("layout",i),g=OR(r,l,u),[p,m,w]=z5(S),E=le(S,{[`${S}-has-sider`]:g,[`${S}-rtl`]:n==="rtl"},v==null?void 0:v.className,a,s,m,w),x=h.useMemo(()=>({siderHook:{addSider:b=>{o(T=>[].concat(ee(T),[b]))},removeSider:b=>{o(T=>T.filter(P=>P!==b))}}}),[]);return p(h.createElement(D5.Provider,{value:x},h.createElement(c,Object.assign({ref:t,className:E,style:Object.assign(Object.assign({},v==null?void 0:v.style),f)},y),l)))}),FR=pc({tagName:"div",displayName:"Layout"})($R),jR=pc({suffixCls:"header",tagName:"header",displayName:"Header"})(pm),AR=pc({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(pm),NR=pc({suffixCls:"content",tagName:"main",displayName:"Content"})(pm),IR=FR,Wi=IR;Wi.Header=jR;Wi.Footer=AR;Wi.Content=NR;Wi.Sider=B5;Wi._InternalSiderContext=V5;const zv=Wi;const Kt={lightGreen:"#ceffdc",green:"#26d958",darkGreen:"#178235",lightBlue:"#bceefd",blue:"#7ce0ff",darkTeal:"#11B9E6",lightPurple:"#e2ccff",purple:"#C292FF",darkPurple:"#430099",lightOrange:"#ffe1cc",orange:"#FFBC6C",darkOrange:"#994000",lightYellow:"#fffdcc",yellow:"#fff966",lightRed:"#ffccd5",red:"#ff6682",darkRed:"#99001c",white:"#ffffff",grey50:"#fbfcfc",grey100:"#F2F2F2",grey200:"#E1E1E1",grey300:"#B6BBC5",grey400:"#94a3b8",grey500:"#64748b",grey600:"#475569",black:"#000000",gridBg:"#f9fafd",darkBlue:"#3347ff",violet:"#6675ff"},Bj={model:"#E653D8",data:"#9560E6",code:"#4441D7",tokens:"#E64C7C",certificate:"#4C8AE6",computation:Kt.orange,benchmark:"#60C6E6"},_R={token:{}},DR=Object.assign({},_R,{components:{Menu:{itemSelectedColor:"rgb(0, 0, 0)",itemSelectedBg:"rgba(226, 204, 255,0)",itemHoverBg:"rgba(114, 46, 209, 0.0)",controlItemBgActive:"rgba(249, 240, 255, 0)"},Card:{borderRadiusLG:20,colorBorderSecondary:"transparent"},Select:{optionSelectedColor:"rgba(255, 255, 255, 0.88)",borderRadius:4,padding:10,controlHeight:35,colorBorder:"rgba(0,0,0,1)"},Input:{colorBorder:"rgba(0,0,0,1)",borderRadius:4},Button:{colorPrimary:"rgb(0, 0, 0)",colorBgContainer:Kt.grey600,colorText:Kt.white,defaultBorderColor:"rgb(0, 0, 0)",colorPrimaryHover:Kt.grey600},Collapse:{contentBg:"rgb(255, 255, 255)",colorBgContainer:"rgb(255, 255, 255)",headerBg:"rgba(255, 255, 255, 1)",margin:0,padding:0,borderRadiusLG:0,lineType:"none"},Form:{fontFamily:"TWKLausanne"},Layout:{siderBg:Kt.grey50,headerBg:"#ffffff",colorBgLayout:Kt.white},Divider:{margin:20},Table:{colorFill:"transparent",colorFillAlter:"transparent",colorFillSecondary:"transparent",colorBgContainer:Kt.grey50,colorTextHeading:Kt.grey600,fontWeightStrong:400,cellPaddingBlockSM:10,cellPaddingBlock:10,cellPaddingBlockMD:10}},token:{colorPrimary:Kt.black,colorBorderSecondary:"#E2E8F0",fontSize:14,lineHeight:1.2,fontFamily:"TWKLausanne"}});function VR(e){const{children:t,defaultSelectedKeys:n,defaultOpenKeys:r=[]}=e,i=n.filter(a=>typeof a=="string").some(a=>a==="gov-studio"||a==="inbox");return L.jsx(KC,{theme:DR,children:L.jsx(zv,{hasSider:!0,style:{minHeight:"100vh","--themeBg":i?Kt.blue:Kt.purple,"--themeBgLight":i?Kt.blue:Kt.lightPurple},children:L.jsx(zv,{children:t})})})}const BR=h.forwardRef(({progress:e,height:t=2,className:n="",color:r="red",background:o="transparent",onLoaderFinished:i,transitionTime:a=300,loaderSpeed:s=500,waitingTime:l=1e3,shadow:u=!0,containerStyle:c={},style:f={},shadowStyle:d={},containerClassName:y=""},C)=>{const v=h.useRef(!1),[S,g]=h.useState(0),p=h.useRef({active:!1,refreshRate:1e3}),[m,w]=h.useState(!1),[E,x]=h.useState({active:!1,value:20}),b={height:"100%",background:r,transition:`all ${s}ms ease`,width:"0%"},T={position:"fixed",top:0,left:0,height:t,background:o,zIndex:99999999999,width:"100%"},P={boxShadow:`0 0 10px ${r}, 0 0 10px ${r}`,width:"5%",opacity:1,position:"absolute",height:"100%",transition:`all ${s}ms ease`,transform:"rotate(3deg) translate(0px, -4px)",left:"-10rem"},[O,$]=h.useState(b),[D,F]=h.useState(P);h.useEffect(()=>(v.current=!0,()=>{v.current=!1}),[]),h.useImperativeHandle(C,()=>({continuousStart(H,j=1e3){if(E.active)return;if(m){console.warn("react-top-loading-bar: You can't use both controlling by props and ref methods to control the bar!");return}const R=H||Hv(10,20);p.current={active:!0,refreshRate:j},g(R),z(R)},staticStart(H){if(p.current.active)return;if(m){console.warn("react-top-loading-bar: You can't use both controlling by props and ref methods to control the bar!");return}const j=H||Hv(30,50);x({active:!0,value:j}),g(j),z(j)},complete(){if(m){console.warn("react-top-loading-bar: You can't use both controlling by props and ref methods to control the bar!");return}g(100),z(100)}})),h.useEffect(()=>{$({...O,background:r}),F({...D,boxShadow:`0 0 10px ${r}, 0 0 5px ${r}`})},[r]),h.useEffect(()=>{if(C){if(C&&e!==void 0){console.warn(`react-top-loading-bar: You can't use both controlling by props and ref methods to control the bar! Please use only props or only ref methods! Ref methods will override props if "ref" property is available.`);return}z(S),w(!1)}else e&&z(e),w(!0)},[e]);const z=H=>{H>=100?($({...O,width:"100%"}),u&&F({...D,left:H-10+"%"}),setTimeout(()=>{v.current&&($({...O,opacity:0,width:"100%",transition:`all ${a}ms ease-out`,color:r}),setTimeout(()=>{v.current&&(p.current.active&&(p.current={...p.current,active:!1},g(0),z(0)),E.active&&(x({...E,active:!1}),g(0),z(0)),i&&i(),g(0),z(0))},a))},l)):($(j=>({...j,width:H+"%",opacity:1,transition:H>0?`all ${s}ms ease`:""})),u&&F({...D,left:H-5.5+"%",transition:H>0?`all ${s}ms ease`:""}))};return HR(()=>{const H=Math.min(10,(100-S)/5),j=Math.min(20,(100-S)/3),R=U5(H,j);S+R<95&&(g(S+R),z(S+R))},p.current.active?p.current.refreshRate:null),L.jsx("div",{className:y,style:{...T,...c},children:L.jsx("div",{className:n,style:{...O,...f},children:u?L.jsx("div",{style:{...D,...d}}):null})})}),zR=()=>{};function HR(e,t,n){const r=h.useRef(zR);h.useEffect(()=>{r.current=e}),h.useEffect(()=>{n&&(t===null||t===!1||r.current())},[n]),h.useEffect(()=>{if(t===null||t===!1)return;const i=setInterval(()=>r.current(),t);return()=>clearInterval(i)},[t])}function U5(e,t){return Math.random()*(t-e+1)+e}function Hv(e,t){return Math.floor(U5(e,t))}function UR(){const e=W9(),t=G9(),r=t[t.length-1].pathname.substring(1).split("/"),o=h.useRef(null);return h.useEffect(()=>{e.state==="loading"?o.current.continuousStart():e.state==="idle"&&o.current.complete()},[e.state]),L.jsxs(VR,{defaultSelectedKeys:r,defaultOpenKeys:r,children:[L.jsx(BR,{ref:o,color:"#A966FF",height:5}),L.jsx(X9,{})]})}function WR(e){return L.jsxs("svg",{width:"400",height:"409",viewBox:"0 0 400 409",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[L.jsxs("g",{opacity:"0.2",children:[L.jsx("path",{d:"M47.6797 13.9355C47.6797 12.3164 46.3672 11.0039 44.7481 11.0039C43.129 11.0039 41.8164 12.3164 41.8164 13.9355C41.8164 15.5546 43.129 16.8672 44.7481 16.8672C46.3672 16.8672 47.6797 15.5546 47.6797 13.9355Z",fill:"white"}),L.jsx("path",{d:"M47.6797 13.9355C47.6797 12.3164 46.3672 11.0039 44.7481 11.0039C43.129 11.0039 41.8164 12.3164 41.8164 13.9355C41.8164 15.5546 43.129 16.8672 44.7481 16.8672C46.3672 16.8672 47.6797 15.5546 47.6797 13.9355Z",fill:"white"}),L.jsx("path",{d:"M86.8086 13.9355C86.8086 12.3164 85.4961 11.0039 83.877 11.0039C82.2579 11.0039 80.9453 12.3164 80.9453 13.9355C80.9453 15.5546 82.2579 16.8672 83.877 16.8672C85.4961 16.8672 86.8086 15.5546 86.8086 13.9355Z",fill:"white"}),L.jsx("path",{d:"M125.938 13.9355C125.938 12.3164 124.625 11.0039 123.006 11.0039C121.387 11.0039 120.074 12.3164 120.074 13.9355C120.074 15.5546 121.387 16.8672 123.006 16.8672C124.625 16.8672 125.938 15.5546 125.938 13.9355Z",fill:"white"}),L.jsx("path",{d:"M165.066 13.9355C165.066 12.3164 163.754 11.0039 162.135 11.0039C160.516 11.0039 159.203 12.3164 159.203 13.9355C159.203 15.5546 160.516 16.8672 162.135 16.8672C163.754 16.8672 165.066 15.5546 165.066 13.9355Z",fill:"white"}),L.jsx("path",{d:"M204.195 13.9355C204.195 12.3164 202.883 11.0039 201.264 11.0039C199.645 11.0039 198.332 12.3164 198.332 13.9355C198.332 15.5546 199.645 16.8672 201.264 16.8672C202.883 16.8672 204.195 15.5546 204.195 13.9355Z",fill:"white"}),L.jsx("path",{d:"M243.324 13.9355C243.324 12.3164 242.012 11.0039 240.393 11.0039C238.773 11.0039 237.461 12.3164 237.461 13.9355C237.461 15.5546 238.773 16.8672 240.393 16.8672C242.012 16.8672 243.324 15.5546 243.324 13.9355Z",fill:"white"}),L.jsx("path",{d:"M282.453 13.9355C282.453 12.3164 281.141 11.0039 279.522 11.0039C277.902 11.0039 276.59 12.3164 276.59 13.9355C276.59 15.5546 277.902 16.8672 279.522 16.8672C281.141 16.8672 282.453 15.5546 282.453 13.9355Z",fill:"white"}),L.jsx("path",{d:"M321.582 13.9355C321.582 12.3164 320.27 11.0039 318.65 11.0039C317.031 11.0039 315.719 12.3164 315.719 13.9355C315.719 15.5546 317.031 16.8672 318.65 16.8672C320.27 16.8672 321.582 15.5546 321.582 13.9355Z",fill:"white"}),L.jsx("path",{d:"M360.711 13.9355C360.711 12.3164 359.398 11.0039 357.779 11.0039C356.16 11.0039 354.848 12.3164 354.848 13.9355C354.848 15.5546 356.16 16.8672 357.779 16.8672C359.398 16.8672 360.711 15.5546 360.711 13.9355Z",fill:"white"}),L.jsx("path",{d:"M399.84 13.9355C399.84 12.3164 398.527 11.0039 396.908 11.0039C395.289 11.0039 393.977 12.3164 393.977 13.9355C393.977 15.5546 395.289 16.8672 396.908 16.8672C398.527 16.8672 399.84 15.5546 399.84 13.9355Z",fill:"white"}),L.jsx("path",{d:"M47.6797 53.0605C47.6797 51.4414 46.3672 50.1289 44.7481 50.1289C43.129 50.1289 41.8164 51.4414 41.8164 53.0605C41.8164 54.6796 43.129 55.9922 44.7481 55.9922C46.3672 55.9922 47.6797 54.6796 47.6797 53.0605Z",fill:"white"}),L.jsx("path",{d:"M86.8086 53.0605C86.8086 51.4414 85.4961 50.1289 83.877 50.1289C82.2579 50.1289 80.9453 51.4414 80.9453 53.0605C80.9453 54.6796 82.2579 55.9922 83.877 55.9922C85.4961 55.9922 86.8086 54.6796 86.8086 53.0605Z",fill:"white"}),L.jsx("path",{d:"M125.938 53.0605C125.938 51.4414 124.625 50.1289 123.006 50.1289C121.387 50.1289 120.074 51.4414 120.074 53.0605C120.074 54.6796 121.387 55.9922 123.006 55.9922C124.625 55.9922 125.938 54.6796 125.938 53.0605Z",fill:"white"}),L.jsx("path",{d:"M165.066 53.0605C165.066 51.4414 163.754 50.1289 162.135 50.1289C160.516 50.1289 159.203 51.4414 159.203 53.0605C159.203 54.6796 160.516 55.9922 162.135 55.9922C163.754 55.9922 165.066 54.6796 165.066 53.0605Z",fill:"white"}),L.jsx("path",{d:"M204.195 53.0605C204.195 51.4414 202.883 50.1289 201.264 50.1289C199.645 50.1289 198.332 51.4414 198.332 53.0605C198.332 54.6796 199.645 55.9922 201.264 55.9922C202.883 55.9922 204.195 54.6796 204.195 53.0605Z",fill:"white"}),L.jsx("path",{d:"M243.324 53.0605C243.324 51.4414 242.012 50.1289 240.393 50.1289C238.773 50.1289 237.461 51.4414 237.461 53.0605C237.461 54.6796 238.773 55.9922 240.393 55.9922C242.012 55.9922 243.324 54.6796 243.324 53.0605Z",fill:"white"}),L.jsx("path",{d:"M282.453 53.0605C282.453 51.4414 281.141 50.1289 279.522 50.1289C277.902 50.1289 276.59 51.4414 276.59 53.0605C276.59 54.6796 277.902 55.9922 279.522 55.9922C281.141 55.9922 282.453 54.6796 282.453 53.0605Z",fill:"white"}),L.jsx("path",{d:"M321.582 53.0605C321.582 51.4414 320.27 50.1289 318.65 50.1289C317.031 50.1289 315.719 51.4414 315.719 53.0605C315.719 54.6796 317.031 55.9922 318.65 55.9922C320.27 55.9922 321.582 54.6796 321.582 53.0605Z",fill:"white"}),L.jsx("path",{d:"M360.711 53.0605C360.711 51.4414 359.398 50.1289 357.779 50.1289C356.16 50.1289 354.848 51.4414 354.848 53.0605C354.848 54.6796 356.16 55.9922 357.779 55.9922C359.398 55.9922 360.711 54.6796 360.711 53.0605Z",fill:"white"}),L.jsx("path",{d:"M399.84 53.0605C399.84 51.4414 398.527 50.1289 396.908 50.1289C395.289 50.1289 393.977 51.4414 393.977 53.0605C393.977 54.6796 395.289 55.9922 396.908 55.9922C398.527 55.9922 399.84 54.6796 399.84 53.0605Z",fill:"white"}),L.jsx("path",{d:"M47.6797 92.1855C47.6797 90.5664 46.3672 89.2539 44.7481 89.2539C43.129 89.2539 41.8164 90.5664 41.8164 92.1855C41.8164 93.8046 43.129 95.1172 44.7481 95.1172C46.3672 95.1172 47.6797 93.8046 47.6797 92.1855Z",fill:"white"}),L.jsx("path",{d:"M86.8086 92.1855C86.8086 90.5664 85.4961 89.2539 83.877 89.2539C82.2579 89.2539 80.9453 90.5664 80.9453 92.1855C80.9453 93.8046 82.2579 95.1172 83.877 95.1172C85.4961 95.1172 86.8086 93.8046 86.8086 92.1855Z",fill:"white"}),L.jsx("path",{d:"M125.938 92.1855C125.938 90.5664 124.625 89.2539 123.006 89.2539C121.387 89.2539 120.074 90.5664 120.074 92.1855C120.074 93.8046 121.387 95.1172 123.006 95.1172C124.625 95.1172 125.938 93.8046 125.938 92.1855Z",fill:"white"}),L.jsx("path",{d:"M165.066 92.1855C165.066 90.5664 163.754 89.2539 162.135 89.2539C160.516 89.2539 159.203 90.5664 159.203 92.1855C159.203 93.8046 160.516 95.1172 162.135 95.1172C163.754 95.1172 165.066 93.8046 165.066 92.1855Z",fill:"white"}),L.jsx("path",{d:"M204.195 92.1855C204.195 90.5664 202.883 89.2539 201.264 89.2539C199.645 89.2539 198.332 90.5664 198.332 92.1855C198.332 93.8046 199.645 95.1172 201.264 95.1172C202.883 95.1172 204.195 93.8046 204.195 92.1855Z",fill:"white"}),L.jsx("path",{d:"M243.324 92.1855C243.324 90.5664 242.012 89.2539 240.393 89.2539C238.773 89.2539 237.461 90.5664 237.461 92.1855C237.461 93.8046 238.773 95.1172 240.393 95.1172C242.012 95.1172 243.324 93.8046 243.324 92.1855Z",fill:"white"}),L.jsx("path",{d:"M282.453 92.1855C282.453 90.5664 281.141 89.2539 279.522 89.2539C277.902 89.2539 276.59 90.5664 276.59 92.1855C276.59 93.8046 277.902 95.1172 279.522 95.1172C281.141 95.1172 282.453 93.8046 282.453 92.1855Z",fill:"white"}),L.jsx("path",{d:"M321.582 92.1855C321.582 90.5664 320.27 89.2539 318.65 89.2539C317.031 89.2539 315.719 90.5664 315.719 92.1855C315.719 93.8046 317.031 95.1172 318.65 95.1172C320.27 95.1172 321.582 93.8046 321.582 92.1855Z",fill:"white"}),L.jsx("path",{d:"M360.711 92.1855C360.711 90.5664 359.398 89.2539 357.779 89.2539C356.16 89.2539 354.848 90.5664 354.848 92.1855C354.848 93.8046 356.16 95.1172 357.779 95.1172C359.398 95.1172 360.711 93.8046 360.711 92.1855Z",fill:"white"}),L.jsx("path",{d:"M399.84 92.1855C399.84 90.5664 398.527 89.2539 396.908 89.2539C395.289 89.2539 393.977 90.5664 393.977 92.1855C393.977 93.8046 395.289 95.1172 396.908 95.1172C398.527 95.1172 399.84 93.8046 399.84 92.1855Z",fill:"white"}),L.jsx("path",{d:"M47.6797 131.318C47.6797 129.699 46.3672 128.387 44.7481 128.387C43.129 128.387 41.8164 129.699 41.8164 131.318C41.8164 132.937 43.129 134.25 44.7481 134.25C46.3672 134.25 47.6797 132.937 47.6797 131.318Z",fill:"white"}),L.jsx("path",{d:"M86.8086 131.318C86.8086 129.699 85.4961 128.387 83.877 128.387C82.2579 128.387 80.9453 129.699 80.9453 131.318C80.9453 132.937 82.2579 134.25 83.877 134.25C85.4961 134.25 86.8086 132.937 86.8086 131.318Z",fill:"white"}),L.jsx("path",{d:"M86.8086 171.857C86.8086 170.238 85.4961 168.926 83.877 168.926C82.2579 168.926 80.9453 170.238 80.9453 171.857C80.9453 173.477 82.2579 174.789 83.877 174.789C85.4961 174.789 86.8086 173.477 86.8086 171.857Z",fill:"white"}),L.jsx("path",{d:"M125.938 131.318C125.938 129.699 124.625 128.387 123.006 128.387C121.387 128.387 120.074 129.699 120.074 131.318C120.074 132.937 121.387 134.25 123.006 134.25C124.625 134.25 125.938 132.937 125.938 131.318Z",fill:"white"}),L.jsx("path",{d:"M165.066 131.318C165.066 129.699 163.754 128.387 162.135 128.387C160.516 128.387 159.203 129.699 159.203 131.318C159.203 132.937 160.516 134.25 162.135 134.25C163.754 134.25 165.066 132.937 165.066 131.318Z",fill:"white"}),L.jsx("path",{d:"M204.195 131.318C204.195 129.699 202.883 128.387 201.264 128.387C199.645 128.387 198.332 129.699 198.332 131.318C198.332 132.937 199.645 134.25 201.264 134.25C202.883 134.25 204.195 132.937 204.195 131.318Z",fill:"white"}),L.jsx("path",{d:"M243.324 131.318C243.324 129.699 242.012 128.387 240.393 128.387C238.773 128.387 237.461 129.699 237.461 131.318C237.461 132.937 238.773 134.25 240.393 134.25C242.012 134.25 243.324 132.937 243.324 131.318Z",fill:"white"}),L.jsx("path",{d:"M282.453 131.318C282.453 129.699 281.141 128.387 279.522 128.387C277.902 128.387 276.59 129.699 276.59 131.318C276.59 132.937 277.902 134.25 279.522 134.25C281.141 134.25 282.453 132.937 282.453 131.318Z",fill:"white"}),L.jsx("path",{d:"M321.582 131.318C321.582 129.699 320.27 128.387 318.65 128.387C317.031 128.387 315.719 129.699 315.719 131.318C315.719 132.937 317.031 134.25 318.65 134.25C320.27 134.25 321.582 132.937 321.582 131.318Z",fill:"white"}),L.jsx("path",{d:"M360.711 131.318C360.711 129.699 359.398 128.387 357.779 128.387C356.16 128.387 354.848 129.699 354.848 131.318C354.848 132.937 356.16 134.25 357.779 134.25C359.398 134.25 360.711 132.937 360.711 131.318Z",fill:"white"}),L.jsx("path",{d:"M399.84 131.318C399.84 129.699 398.527 128.387 396.908 128.387C395.289 128.387 393.977 129.699 393.977 131.318C393.977 132.937 395.289 134.25 396.908 134.25C398.527 134.25 399.84 132.937 399.84 131.318Z",fill:"white"}),L.jsx("path",{d:"M47.6797 170.443C47.6797 168.824 46.3672 167.512 44.7481 167.512C43.129 167.512 41.8164 168.824 41.8164 170.443C41.8164 172.062 43.129 173.375 44.7481 173.375C46.3672 173.375 47.6797 172.062 47.6797 170.443Z",fill:"white"}),L.jsx("path",{d:"M125.938 170.443C125.938 168.824 124.625 167.512 123.006 167.512C121.387 167.512 120.074 168.824 120.074 170.443C120.074 172.062 121.387 173.375 123.006 173.375C124.625 173.375 125.938 172.062 125.938 170.443Z",fill:"white"}),L.jsx("path",{d:"M165.066 170.443C165.066 168.824 163.754 167.512 162.135 167.512C160.516 167.512 159.203 168.824 159.203 170.443C159.203 172.062 160.516 173.375 162.135 173.375C163.754 173.375 165.066 172.062 165.066 170.443Z",fill:"white"}),L.jsx("path",{d:"M204.195 170.443C204.195 168.824 202.883 167.512 201.264 167.512C199.645 167.512 198.332 168.824 198.332 170.443C198.332 172.062 199.645 173.375 201.264 173.375C202.883 173.375 204.195 172.062 204.195 170.443Z",fill:"white"}),L.jsx("path",{d:"M243.324 170.443C243.324 168.824 242.012 167.512 240.393 167.512C238.773 167.512 237.461 168.824 237.461 170.443C237.461 172.062 238.773 173.375 240.393 173.375C242.012 173.375 243.324 172.062 243.324 170.443Z",fill:"white"}),L.jsx("path",{d:"M282.453 170.443C282.453 168.824 281.141 167.512 279.522 167.512C277.902 167.512 276.59 168.824 276.59 170.443C276.59 172.062 277.902 173.375 279.522 173.375C281.141 173.375 282.453 172.062 282.453 170.443Z",fill:"white"}),L.jsx("path",{d:"M321.582 170.443C321.582 168.824 320.27 167.512 318.65 167.512C317.031 167.512 315.719 168.824 315.719 170.443C315.719 172.062 317.031 173.375 318.65 173.375C320.27 173.375 321.582 172.062 321.582 170.443Z",fill:"white"}),L.jsx("path",{d:"M360.711 170.443C360.711 168.824 359.398 167.512 357.779 167.512C356.16 167.512 354.848 168.824 354.848 170.443C354.848 172.062 356.16 173.375 357.779 173.375C359.398 173.375 360.711 172.062 360.711 170.443Z",fill:"white"}),L.jsx("path",{d:"M399.84 170.443C399.84 168.824 398.527 167.512 396.908 167.512C395.289 167.512 393.977 168.824 393.977 170.443C393.977 172.062 395.289 173.375 396.908 173.375C398.527 173.375 399.84 172.062 399.84 170.443Z",fill:"white"}),L.jsx("path",{d:"M47.6797 209.576C47.6797 207.957 46.3672 206.644 44.7481 206.644C43.129 206.644 41.8164 207.957 41.8164 209.576C41.8164 211.195 43.129 212.508 44.7481 212.508C46.3672 212.508 47.6797 211.195 47.6797 209.576Z",fill:"white"}),L.jsx("path",{d:"M86.8086 209.576C86.8086 207.957 85.4961 206.644 83.877 206.644C82.2579 206.644 80.9453 207.957 80.9453 209.576C80.9453 211.195 82.2579 212.508 83.877 212.508C85.4961 212.508 86.8086 211.195 86.8086 209.576Z",fill:"white"}),L.jsx("path",{d:"M125.938 209.576C125.938 207.957 124.625 206.644 123.006 206.644C121.387 206.644 120.074 207.957 120.074 209.576C120.074 211.195 121.387 212.508 123.006 212.508C124.625 212.508 125.938 211.195 125.938 209.576Z",fill:"white"}),L.jsx("path",{d:"M165.066 209.576C165.066 207.957 163.754 206.644 162.135 206.644C160.516 206.644 159.203 207.957 159.203 209.576C159.203 211.195 160.516 212.508 162.135 212.508C163.754 212.508 165.066 211.195 165.066 209.576Z",fill:"white"}),L.jsx("path",{d:"M204.195 209.576C204.195 207.957 202.883 206.644 201.264 206.644C199.645 206.644 198.332 207.957 198.332 209.576C198.332 211.195 199.645 212.508 201.264 212.508C202.883 212.508 204.195 211.195 204.195 209.576Z",fill:"white"}),L.jsx("path",{d:"M243.324 209.576C243.324 207.957 242.012 206.644 240.393 206.644C238.773 206.644 237.461 207.957 237.461 209.576C237.461 211.195 238.773 212.508 240.393 212.508C242.012 212.508 243.324 211.195 243.324 209.576Z",fill:"white"}),L.jsx("path",{d:"M282.453 209.576C282.453 207.957 281.141 206.644 279.522 206.644C277.902 206.644 276.59 207.957 276.59 209.576C276.59 211.195 277.902 212.508 279.522 212.508C281.141 212.508 282.453 211.195 282.453 209.576Z",fill:"white"}),L.jsx("path",{d:"M321.582 209.576C321.582 207.957 320.27 206.644 318.65 206.644C317.031 206.644 315.719 207.957 315.719 209.576C315.719 211.195 317.031 212.508 318.65 212.508C320.27 212.508 321.582 211.195 321.582 209.576Z",fill:"white"}),L.jsx("path",{d:"M360.711 209.576C360.711 207.957 359.398 206.644 357.779 206.644C356.16 206.644 354.848 207.957 354.848 209.576C354.848 211.195 356.16 212.508 357.779 212.508C359.398 212.508 360.711 211.195 360.711 209.576Z",fill:"white"}),L.jsx("path",{d:"M399.84 209.576C399.84 207.957 398.527 206.644 396.908 206.644C395.289 206.644 393.977 207.957 393.977 209.576C393.977 211.195 395.289 212.508 396.908 212.508C398.527 212.508 399.84 211.195 399.84 209.576Z",fill:"white"}),L.jsx("path",{d:"M47.6797 248.701C47.6797 247.082 46.3672 245.769 44.7481 245.769C43.129 245.769 41.8164 247.082 41.8164 248.701C41.8164 250.32 43.129 251.633 44.7481 251.633C46.3672 251.633 47.6797 250.32 47.6797 248.701Z",fill:"white"}),L.jsx("path",{d:"M86.8086 248.701C86.8086 247.082 85.4961 245.769 83.877 245.769C82.2579 245.769 80.9453 247.082 80.9453 248.701C80.9453 250.32 82.2579 251.633 83.877 251.633C85.4961 251.633 86.8086 250.32 86.8086 248.701Z",fill:"white"}),L.jsx("path",{d:"M125.938 248.701C125.938 247.082 124.625 245.769 123.006 245.769C121.387 245.769 120.074 247.082 120.074 248.701C120.074 250.32 121.387 251.633 123.006 251.633C124.625 251.633 125.938 250.32 125.938 248.701Z",fill:"white"}),L.jsx("path",{d:"M165.066 248.701C165.066 247.082 163.754 245.769 162.135 245.769C160.516 245.769 159.203 247.082 159.203 248.701C159.203 250.32 160.516 251.633 162.135 251.633C163.754 251.633 165.066 250.32 165.066 248.701Z",fill:"white"}),L.jsx("path",{d:"M204.195 248.701C204.195 247.082 202.883 245.769 201.264 245.769C199.645 245.769 198.332 247.082 198.332 248.701C198.332 250.32 199.645 251.633 201.264 251.633C202.883 251.633 204.195 250.32 204.195 248.701Z",fill:"white"}),L.jsx("path",{d:"M243.324 248.701C243.324 247.082 242.012 245.769 240.393 245.769C238.773 245.769 237.461 247.082 237.461 248.701C237.461 250.32 238.773 251.633 240.393 251.633C242.012 251.633 243.324 250.32 243.324 248.701Z",fill:"white"}),L.jsx("path",{d:"M282.453 248.701C282.453 247.082 281.141 245.769 279.522 245.769C277.902 245.769 276.59 247.082 276.59 248.701C276.59 250.32 277.902 251.633 279.522 251.633C281.141 251.633 282.453 250.32 282.453 248.701Z",fill:"white"}),L.jsx("path",{d:"M321.582 248.701C321.582 247.082 320.27 245.769 318.65 245.769C317.031 245.769 315.719 247.082 315.719 248.701C315.719 250.32 317.031 251.633 318.65 251.633C320.27 251.633 321.582 250.32 321.582 248.701Z",fill:"white"}),L.jsx("path",{d:"M399.84 248.701C399.84 247.082 398.527 245.769 396.908 245.769C395.289 245.769 393.977 247.082 393.977 248.701C393.977 250.32 395.289 251.633 396.908 251.633C398.527 251.633 399.84 250.32 399.84 248.701Z",fill:"white"}),L.jsx("path",{d:"M47.6797 287.834C47.6797 286.215 46.3672 284.902 44.7481 284.902C43.129 284.902 41.8164 286.215 41.8164 287.834C41.8164 289.453 43.129 290.766 44.7481 290.766C46.3672 290.766 47.6797 289.453 47.6797 287.834Z",fill:"white"}),L.jsx("path",{d:"M86.8086 287.834C86.8086 286.215 85.4961 284.902 83.877 284.902C82.2579 284.902 80.9453 286.215 80.9453 287.834C80.9453 289.453 82.2579 290.766 83.877 290.766C85.4961 290.766 86.8086 289.453 86.8086 287.834Z",fill:"white"}),L.jsx("path",{d:"M125.938 287.834C125.938 286.215 124.625 284.902 123.006 284.902C121.387 284.902 120.074 286.215 120.074 287.834C120.074 289.453 121.387 290.766 123.006 290.766C124.625 290.766 125.938 289.453 125.938 287.834Z",fill:"white"}),L.jsx("path",{d:"M165.066 287.834C165.066 286.215 163.754 284.902 162.135 284.902C160.516 284.902 159.203 286.215 159.203 287.834C159.203 289.453 160.516 290.766 162.135 290.766C163.754 290.766 165.066 289.453 165.066 287.834Z",fill:"white"}),L.jsx("path",{d:"M204.195 287.834C204.195 286.215 202.883 284.902 201.264 284.902C199.645 284.902 198.332 286.215 198.332 287.834C198.332 289.453 199.645 290.766 201.264 290.766C202.883 290.766 204.195 289.453 204.195 287.834Z",fill:"white"}),L.jsx("path",{d:"M243.324 287.834C243.324 286.215 242.012 284.902 240.393 284.902C238.773 284.902 237.461 286.215 237.461 287.834C237.461 289.453 238.773 290.766 240.393 290.766C242.012 290.766 243.324 289.453 243.324 287.834Z",fill:"white"}),L.jsx("path",{d:"M282.453 287.834C282.453 286.215 281.141 284.902 279.522 284.902C277.902 284.902 276.59 286.215 276.59 287.834C276.59 289.453 277.902 290.766 279.522 290.766C281.141 290.766 282.453 289.453 282.453 287.834Z",fill:"white"}),L.jsx("path",{d:"M321.582 287.834C321.582 286.215 320.27 284.902 318.65 284.902C317.031 284.902 315.719 286.215 315.719 287.834C315.719 289.453 317.031 290.766 318.65 290.766C320.27 290.766 321.582 289.453 321.582 287.834Z",fill:"white"}),L.jsx("path",{d:"M360.711 287.834C360.711 286.215 359.398 284.902 357.779 284.902C356.16 284.902 354.848 286.215 354.848 287.834C354.848 289.453 356.16 290.766 357.779 290.766C359.398 290.766 360.711 289.453 360.711 287.834Z",fill:"white"}),L.jsx("path",{d:"M399.84 287.834C399.84 286.215 398.527 284.902 396.908 284.902C395.289 284.902 393.977 286.215 393.977 287.834C393.977 289.453 395.289 290.766 396.908 290.766C398.527 290.766 399.84 289.453 399.84 287.834Z",fill:"white"}),L.jsx("path",{d:"M47.6797 326.959C47.6797 325.34 46.3672 324.027 44.7481 324.027C43.129 324.027 41.8164 325.34 41.8164 326.959C41.8164 328.578 43.129 329.891 44.7481 329.891C46.3672 329.891 47.6797 328.578 47.6797 326.959Z",fill:"white"}),L.jsx("path",{d:"M86.8086 326.959C86.8086 325.34 85.4961 324.027 83.877 324.027C82.2579 324.027 80.9453 325.34 80.9453 326.959C80.9453 328.578 82.2579 329.891 83.877 329.891C85.4961 329.891 86.8086 328.578 86.8086 326.959Z",fill:"white"}),L.jsx("path",{d:"M125.938 326.959C125.938 325.34 124.625 324.027 123.006 324.027C121.387 324.027 120.074 325.34 120.074 326.959C120.074 328.578 121.387 329.891 123.006 329.891C124.625 329.891 125.938 328.578 125.938 326.959Z",fill:"white"}),L.jsx("path",{d:"M165.066 326.959C165.066 325.34 163.754 324.027 162.135 324.027C160.516 324.027 159.203 325.34 159.203 326.959C159.203 328.578 160.516 329.891 162.135 329.891C163.754 329.891 165.066 328.578 165.066 326.959Z",fill:"white"}),L.jsx("path",{d:"M243.324 326.959C243.324 325.34 242.012 324.027 240.393 324.027C238.773 324.027 237.461 325.34 237.461 326.959C237.461 328.578 238.773 329.891 240.393 329.891C242.012 329.891 243.324 328.578 243.324 326.959Z",fill:"white"}),L.jsx("path",{d:"M282.453 326.959C282.453 325.34 281.141 324.027 279.522 324.027C277.902 324.027 276.59 325.34 276.59 326.959C276.59 328.578 277.902 329.891 279.522 329.891C281.141 329.891 282.453 328.578 282.453 326.959Z",fill:"white"}),L.jsx("path",{d:"M321.582 326.959C321.582 325.34 320.27 324.027 318.65 324.027C317.031 324.027 315.719 325.34 315.719 326.959C315.719 328.578 317.031 329.891 318.65 329.891C320.27 329.891 321.582 328.578 321.582 326.959Z",fill:"white"}),L.jsx("path",{d:"M360.711 326.959C360.711 325.34 359.398 324.027 357.779 324.027C356.16 324.027 354.848 325.34 354.848 326.959C354.848 328.578 356.16 329.891 357.779 329.891C359.398 329.891 360.711 328.578 360.711 326.959Z",fill:"white"}),L.jsx("path",{d:"M399.84 326.959C399.84 325.34 398.527 324.027 396.908 324.027C395.289 324.027 393.977 325.34 393.977 326.959C393.977 328.578 395.289 329.891 396.908 329.891C398.527 329.891 399.84 328.578 399.84 326.959Z",fill:"white"}),L.jsx("path",{d:"M47.6797 366.092C47.6797 364.473 46.3672 363.16 44.7481 363.16C43.129 363.16 41.8164 364.473 41.8164 366.092C41.8164 367.711 43.129 369.023 44.7481 369.023C46.3672 369.023 47.6797 367.711 47.6797 366.092Z",fill:"white"}),L.jsx("path",{d:"M47.6797 405.092C47.6797 403.473 46.3672 402.16 44.7481 402.16C43.129 402.16 41.8164 403.473 41.8164 405.092C41.8164 406.711 43.129 408.023 44.7481 408.023C46.3672 408.023 47.6797 406.711 47.6797 405.092Z",fill:"white"}),L.jsx("path",{d:"M5.86333 13.9355C5.86333 12.3164 4.55078 11.0039 2.93167 11.0039C1.31255 11.0039 0 12.3164 0 13.9355C0 15.5546 1.31255 16.8672 2.93167 16.8672C4.55078 16.8672 5.86333 15.5546 5.86333 13.9355Z",fill:"white"}),L.jsx("path",{d:"M5.86333 13.9355C5.86333 12.3164 4.55078 11.0039 2.93167 11.0039C1.31255 11.0039 0 12.3164 0 13.9355C0 15.5546 1.31255 16.8672 2.93167 16.8672C4.55078 16.8672 5.86333 15.5546 5.86333 13.9355Z",fill:"white"}),L.jsx("path",{d:"M5.86333 53.0605C5.86333 51.4414 4.55078 50.1289 2.93167 50.1289C1.31255 50.1289 0 51.4414 0 53.0605C0 54.6796 1.31255 55.9922 2.93167 55.9922C4.55078 55.9922 5.86333 54.6796 5.86333 53.0605Z",fill:"white"}),L.jsx("path",{d:"M5.86333 92.1855C5.86333 90.5664 4.55078 89.2539 2.93167 89.2539C1.31255 89.2539 0 90.5664 0 92.1855C0 93.8046 1.31255 95.1172 2.93167 95.1172C4.55078 95.1172 5.86333 93.8046 5.86333 92.1855Z",fill:"white"}),L.jsx("path",{d:"M5.86333 131.318C5.86333 129.699 4.55078 128.387 2.93167 128.387C1.31255 128.387 0 129.699 0 131.318C0 132.937 1.31255 134.25 2.93167 134.25C4.55078 134.25 5.86333 132.937 5.86333 131.318Z",fill:"white"}),L.jsx("path",{d:"M5.86333 170.443C5.86333 168.824 4.55078 167.512 2.93167 167.512C1.31255 167.512 0 168.824 0 170.443C0 172.062 1.31255 173.375 2.93167 173.375C4.55078 173.375 5.86333 172.062 5.86333 170.443Z",fill:"white"}),L.jsx("path",{d:"M5.86333 209.576C5.86333 207.957 4.55078 206.644 2.93167 206.644C1.31255 206.644 0 207.957 0 209.576C0 211.195 1.31255 212.508 2.93167 212.508C4.55078 212.508 5.86333 211.195 5.86333 209.576Z",fill:"white"}),L.jsx("path",{d:"M5.86333 248.701C5.86333 247.082 4.55078 245.769 2.93167 245.769C1.31255 245.769 0 247.082 0 248.701C0 250.32 1.31255 251.633 2.93167 251.633C4.55078 251.633 5.86333 250.32 5.86333 248.701Z",fill:"white"}),L.jsx("path",{d:"M5.86333 287.834C5.86333 286.215 4.55078 284.902 2.93167 284.902C1.31255 284.902 0 286.215 0 287.834C0 289.453 1.31255 290.766 2.93167 290.766C4.55078 290.766 5.86333 289.453 5.86333 287.834Z",fill:"white"}),L.jsx("path",{d:"M5.86333 326.959C5.86333 325.34 4.55078 324.027 2.93167 324.027C1.31255 324.027 0 325.34 0 326.959C0 328.578 1.31255 329.891 2.93167 329.891C4.55078 329.891 5.86333 328.578 5.86333 326.959Z",fill:"white"}),L.jsx("path",{d:"M5.86333 366.092C5.86333 364.473 4.55078 363.16 2.93167 363.16C1.31255 363.16 0 364.473 0 366.092C0 367.711 1.31255 369.023 2.93167 369.023C4.55078 369.023 5.86333 367.711 5.86333 366.092Z",fill:"white"}),L.jsx("path",{d:"M5.86333 405.092C5.86333 403.473 4.55078 402.16 2.93167 402.16C1.31255 402.16 0 403.473 0 405.092C0 406.711 1.31255 408.023 2.93167 408.023C4.55078 408.023 5.86333 406.711 5.86333 405.092Z",fill:"white"}),L.jsx("path",{d:"M86.8086 366.092C86.8086 364.473 85.4961 363.16 83.877 363.16C82.2579 363.16 80.9453 364.473 80.9453 366.092C80.9453 367.711 82.2579 369.023 83.877 369.023C85.4961 369.023 86.8086 367.711 86.8086 366.092Z",fill:"white"}),L.jsx("path",{d:"M86.8086 405.092C86.8086 403.473 85.4961 402.16 83.877 402.16C82.2579 402.16 80.9453 403.473 80.9453 405.092C80.9453 406.711 82.2579 408.023 83.877 408.023C85.4961 408.023 86.8086 406.711 86.8086 405.092Z",fill:"white"}),L.jsx("path",{d:"M125.938 366.092C125.938 364.473 124.625 363.16 123.006 363.16C121.387 363.16 120.074 364.473 120.074 366.092C120.074 367.711 121.387 369.023 123.006 369.023C124.625 369.023 125.938 367.711 125.938 366.092Z",fill:"white"}),L.jsx("path",{d:"M125.938 405.092C125.938 403.473 124.625 402.16 123.006 402.16C121.387 402.16 120.074 403.473 120.074 405.092C120.074 406.711 121.387 408.023 123.006 408.023C124.625 408.023 125.938 406.711 125.938 405.092Z",fill:"white"}),L.jsx("path",{d:"M165.066 366.092C165.066 364.473 163.754 363.16 162.135 363.16C160.516 363.16 159.203 364.473 159.203 366.092C159.203 367.711 160.516 369.023 162.135 369.023C163.754 369.023 165.066 367.711 165.066 366.092Z",fill:"white"}),L.jsx("path",{d:"M165.066 405.092C165.066 403.473 163.754 402.16 162.135 402.16C160.516 402.16 159.203 403.473 159.203 405.092C159.203 406.711 160.516 408.023 162.135 408.023C163.754 408.023 165.066 406.711 165.066 405.092Z",fill:"white"}),L.jsx("path",{d:"M204.195 366.092C204.195 364.473 202.883 363.16 201.264 363.16C199.645 363.16 198.332 364.473 198.332 366.092C198.332 367.711 199.645 369.023 201.264 369.023C202.883 369.023 204.195 367.711 204.195 366.092Z",fill:"white"}),L.jsx("path",{d:"M204.195 405.092C204.195 403.473 202.883 402.16 201.264 402.16C199.645 402.16 198.332 403.473 198.332 405.092C198.332 406.711 199.645 408.023 201.264 408.023C202.883 408.023 204.195 406.711 204.195 405.092Z",fill:"white"}),L.jsx("path",{d:"M243.324 366.092C243.324 364.473 242.012 363.16 240.393 363.16C238.773 363.16 237.461 364.473 237.461 366.092C237.461 367.711 238.773 369.023 240.393 369.023C242.012 369.023 243.324 367.711 243.324 366.092Z",fill:"white"}),L.jsx("path",{d:"M243.324 405.092C243.324 403.473 242.012 402.16 240.393 402.16C238.773 402.16 237.461 403.473 237.461 405.092C237.461 406.711 238.773 408.023 240.393 408.023C242.012 408.023 243.324 406.711 243.324 405.092Z",fill:"white"}),L.jsx("path",{d:"M282.453 366.092C282.453 364.473 281.141 363.16 279.522 363.16C277.902 363.16 276.59 364.473 276.59 366.092C276.59 367.711 277.902 369.023 279.522 369.023C281.141 369.023 282.453 367.711 282.453 366.092Z",fill:"white"}),L.jsx("path",{d:"M282.453 405.092C282.453 403.473 281.141 402.16 279.522 402.16C277.902 402.16 276.59 403.473 276.59 405.092C276.59 406.711 277.902 408.023 279.522 408.023C281.141 408.023 282.453 406.711 282.453 405.092Z",fill:"white"}),L.jsx("path",{d:"M321.582 366.092C321.582 364.473 320.27 363.16 318.65 363.16C317.031 363.16 315.719 364.473 315.719 366.092C315.719 367.711 317.031 369.023 318.65 369.023C320.27 369.023 321.582 367.711 321.582 366.092Z",fill:"white"}),L.jsx("path",{d:"M321.582 405.092C321.582 403.473 320.27 402.16 318.65 402.16C317.031 402.16 315.719 403.473 315.719 405.092C315.719 406.711 317.031 408.023 318.65 408.023C320.27 408.023 321.582 406.711 321.582 405.092Z",fill:"white"}),L.jsx("path",{d:"M360.711 366.092C360.711 364.473 359.398 363.16 357.779 363.16C356.16 363.16 354.848 364.473 354.848 366.092C354.848 367.711 356.16 369.023 357.779 369.023C359.398 369.023 360.711 367.711 360.711 366.092Z",fill:"white"}),L.jsx("path",{d:"M360.711 405.092C360.711 403.473 359.398 402.16 357.779 402.16C356.16 402.16 354.848 403.473 354.848 405.092C354.848 406.711 356.16 408.023 357.779 408.023C359.398 408.023 360.711 406.711 360.711 405.092Z",fill:"white"}),L.jsx("path",{d:"M399.84 366.092C399.84 364.473 398.527 363.16 396.908 363.16C395.289 363.16 393.977 364.473 393.977 366.092C393.977 367.711 395.289 369.023 396.908 369.023C398.527 369.023 399.84 367.711 399.84 366.092Z",fill:"white"}),L.jsx("path",{d:"M399.84 405.092C399.84 403.473 398.527 402.16 396.908 402.16C395.289 402.16 393.977 403.473 393.977 405.092C393.977 406.711 395.289 408.023 396.908 408.023C398.527 408.023 399.84 406.711 399.84 405.092Z",fill:"white"})]}),L.jsx("path",{d:"M201 173V327",stroke:"url(#paint0_linear_526_3391)",strokeWidth:"27.7364",strokeLinecap:"round",strokeLinejoin:"round"}),L.jsx("path",{d:"M201.295 170.805L44.6914 248.68",stroke:"url(#paint1_linear_526_3391)",strokeWidth:"27.7364",strokeLinecap:"round",strokeLinejoin:"round"}),L.jsx("path",{d:"M201.293 170.805L358.537 249.747",stroke:"url(#paint2_linear_526_3391)",strokeWidth:"27.7364",strokeLinecap:"round",strokeLinejoin:"round"}),L.jsx("path",{d:"M215.161 13.9844L215.161 0.116187L187.425 0.116189L187.425 13.9844L215.161 13.9844ZM187.425 171.442C187.425 179.101 193.634 185.31 201.293 185.31C208.952 185.31 215.161 179.101 215.161 171.442L187.425 171.442ZM187.425 13.9844L187.425 171.442L215.161 171.442L215.161 13.9844L187.425 13.9844Z",fill:"url(#paint3_linear_526_3391)"}),L.jsx("path",{d:"M360.863 248.936C360.863 247.316 359.551 246.004 357.932 246.004C356.313 246.004 355 247.316 355 248.936C355 250.555 356.313 251.867 357.932 251.867C359.551 251.867 360.863 250.555 360.863 248.936Z",fill:"#00FFB2"}),L.jsx("path",{d:"M203.863 326.936C203.863 325.316 202.551 324.004 200.932 324.004C199.313 324.004 198 325.316 198 326.936C198 328.555 199.313 329.867 200.932 329.867C202.551 329.867 203.863 328.555 203.863 326.936Z",fill:"#E64AFF"}),L.jsx("path",{d:"M47.8633 248.936C47.8633 247.316 46.5508 246.004 44.9317 246.004C43.3126 246.004 42 247.316 42 248.936C42 250.555 43.3126 251.867 44.9317 251.867C46.5508 251.867 47.8633 250.555 47.8633 248.936Z",fill:"#168FFF"}),L.jsx("path",{d:"M203.863 169.936C203.863 168.316 202.551 167.004 200.932 167.004C199.313 167.004 198 168.316 198 169.936C198 171.555 199.313 172.867 200.932 172.867C202.551 172.867 203.863 171.555 203.863 169.936Z",fill:"white"}),L.jsx("g",{transform:"translate(200 328)",children:L.jsx("g",{className:"spinner-container",children:L.jsx("circle",{r:25,stroke:"white",strokeWidth:"2",strokeDasharray:"32.56 32.56",className:"spinner"})})}),L.jsx("g",{transform:"translate(45 248)",children:L.jsx("g",{className:"spinner-container",children:L.jsx("circle",{r:25,stroke:"white",strokeWidth:"2",strokeDasharray:"32.56 32.56",className:"spinner"})})}),L.jsx("g",{transform:"translate(358 248)",children:L.jsx("g",{className:"spinner-container",children:L.jsx("circle",{r:25,stroke:"white",strokeWidth:"2",strokeDasharray:"32.56 32.56",className:"spinner"})})}),L.jsx("g",{transform:"translate(200 169)",children:L.jsx("g",{className:"spinner-container",children:L.jsx("circle",{r:25,stroke:"white",strokeWidth:"2",strokeDasharray:"32.56 32.56",className:"spinner"})})}),L.jsxs("defs",{children:[L.jsxs("linearGradient",{id:"paint0_linear_526_3391",x1:"202.002",y1:"226.112",x2:"202.002",y2:"327",gradientUnits:"userSpaceOnUse",children:[L.jsx("stop",{stopColor:"#C100FF",stopOpacity:"0.25"}),L.jsx("stop",{offset:"1",stopColor:"#9000C2"})]}),L.jsxs("linearGradient",{id:"paint1_linear_526_3391",x1:"197.298",y1:"198.681",x2:"50.7804",y2:"263.188",gradientUnits:"userSpaceOnUse",children:[L.jsx("stop",{stopColor:"#0344A5",stopOpacity:"0"}),L.jsx("stop",{offset:"1",stopColor:"#0050C8"})]}),L.jsxs("linearGradient",{id:"paint2_linear_526_3391",x1:"201.293",y1:"170.805",x2:"201.293",y2:"249.747",gradientUnits:"userSpaceOnUse",children:[L.jsx("stop",{stopColor:"#07523B",stopOpacity:"0.27"}),L.jsx("stop",{offset:"1",stopColor:"#00FFB3",stopOpacity:"0.63"})]}),L.jsxs("linearGradient",{id:"paint3_linear_526_3391",x1:"201.293",y1:"13.9844",x2:"201.232",y2:"171.442",gradientUnits:"userSpaceOnUse",children:[L.jsx("stop",{stopColor:"#0F0F0F"}),L.jsx("stop",{offset:"1",stopColor:"#ABABAB"})]})]})]})}const GR="_loaderContainer_pepat_1",KR="_loading_pepat_1",ZR="_rotate_pepat_1",qR="_ringSvg_pepat_22",XR={loaderContainer:GR,loading:KR,rotate:ZR,ringSvg:qR},W5=h.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),mc=h.createContext({}),gc=h.createContext(null),vc=typeof document<"u",mm=vc?h.useLayoutEffect:h.useEffect,G5=h.createContext({strict:!1}),gm=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),QR="framerAppearId",K5="data-"+gm(QR);function YR(e,t,n,r){const{visualElement:o}=h.useContext(mc),i=h.useContext(G5),a=h.useContext(gc),s=h.useContext(W5).reducedMotion,l=h.useRef();r=r||i.renderer,!l.current&&r&&(l.current=r(e,{visualState:t,parent:o,props:n,presenceContext:a,blockInitialAnimation:a?a.initial===!1:!1,reducedMotionConfig:s}));const u=l.current;h.useInsertionEffect(()=>{u&&u.update(n,a)});const c=h.useRef(!!(n[K5]&&!window.HandoffComplete));return mm(()=>{u&&(u.render(),c.current&&u.animationState&&u.animationState.animateChanges())}),h.useEffect(()=>{u&&(u.updateFeatures(),!c.current&&u.animationState&&u.animationState.animateChanges(),c.current&&(c.current=!1,window.HandoffComplete=!0))}),u}function pi(e){return typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function JR(e,t,n){return h.useCallback(r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):pi(n)&&(n.current=r))},[t])}function ds(e){return typeof e=="string"||Array.isArray(e)}function yc(e){return typeof e=="object"&&typeof e.start=="function"}const vm=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],ym=["initial",...vm];function Cc(e){return yc(e.animate)||ym.some(t=>ds(e[t]))}function Z5(e){return!!(Cc(e)||e.variants)}function ek(e,t){if(Cc(e)){const{initial:n,animate:r}=e;return{initial:n===!1||ds(n)?n:void 0,animate:ds(r)?r:void 0}}return e.inherit!==!1?t:{}}function tk(e){const{initial:t,animate:n}=ek(e,h.useContext(mc));return h.useMemo(()=>({initial:t,animate:n}),[Uv(t),Uv(n)])}function Uv(e){return Array.isArray(e)?e.join(" "):e}const Wv={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"]},hs={};for(const e in Wv)hs[e]={isEnabled:t=>Wv[e].some(n=>!!t[n])};function nk(e){for(const t in e)hs[t]={...hs[t],...e[t]}}const Cm=h.createContext({}),q5=h.createContext({}),rk=Symbol.for("motionComponentSymbol");function ok({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:o}){e&&nk(e);function i(s,l){let u;const c={...h.useContext(W5),...s,layoutId:ik(s)},{isStatic:f}=c,d=tk(s),y=r(s,f);if(!f&&vc){d.visualElement=YR(o,y,c,t);const C=h.useContext(q5),v=h.useContext(G5).strict;d.visualElement&&(u=d.visualElement.loadFeatures(c,v,e,C))}return h.createElement(mc.Provider,{value:d},u&&d.visualElement?h.createElement(u,{visualElement:d.visualElement,...c}):null,n(o,s,JR(y,d.visualElement,l),y,f,d.visualElement))}const a=h.forwardRef(i);return a[rk]=o,a}function ik({layoutId:e}){const t=h.useContext(Cm).id;return t&&e!==void 0?t+"-"+e:e}function ak(e){function t(r,o={}){return ok(e(r,o))}if(typeof Proxy>"u")return t;const n=new Map;return new Proxy(t,{get:(r,o)=>(n.has(o)||n.set(o,t(o)),n.get(o))})}const sk=["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 Sm(e){return typeof e!="string"||e.includes("-")?!1:!!(sk.indexOf(e)>-1||/[A-Z]/.test(e))}const xu={};function lk(e){Object.assign(xu,e)}const Ls=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Vo=new Set(Ls);function X5(e,{layout:t,layoutId:n}){return Vo.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!xu[e]||e==="opacity")}const Bt=e=>!!(e&&e.getVelocity),uk={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},ck=Ls.length;function fk(e,{enableHardwareAcceleration:t=!0,allowTransformNone:n=!0},r,o){let i="";for(let a=0;at=>typeof t=="string"&&t.startsWith(e),Y5=Q5("--"),xh=Q5("var(--"),dk=/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,hk=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Zr=(e,t,n)=>Math.min(Math.max(n,e),t),Bo={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},$a={...Bo,transform:e=>Zr(0,1,e)},vl={...Bo,default:1},Fa=e=>Math.round(e*1e5)/1e5,Sc=/(-)?([\d]*\.?[\d])+/g,J5=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,pk=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function $s(e){return typeof e=="string"}const Fs=e=>({test:t=>$s(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Er=Fs("deg"),Gn=Fs("%"),se=Fs("px"),mk=Fs("vh"),gk=Fs("vw"),Gv={...Gn,parse:e=>Gn.parse(e)/100,transform:e=>Gn.transform(e*100)},Kv={...Bo,transform:Math.round},e4={borderWidth:se,borderTopWidth:se,borderRightWidth:se,borderBottomWidth:se,borderLeftWidth:se,borderRadius:se,radius:se,borderTopLeftRadius:se,borderTopRightRadius:se,borderBottomRightRadius:se,borderBottomLeftRadius:se,width:se,maxWidth:se,height:se,maxHeight:se,size:se,top:se,right:se,bottom:se,left:se,padding:se,paddingTop:se,paddingRight:se,paddingBottom:se,paddingLeft:se,margin:se,marginTop:se,marginRight:se,marginBottom:se,marginLeft:se,rotate:Er,rotateX:Er,rotateY:Er,rotateZ:Er,scale:vl,scaleX:vl,scaleY:vl,scaleZ:vl,skew:Er,skewX:Er,skewY:Er,distance:se,translateX:se,translateY:se,translateZ:se,x:se,y:se,z:se,perspective:se,transformPerspective:se,opacity:$a,originX:Gv,originY:Gv,originZ:se,zIndex:Kv,fillOpacity:$a,strokeOpacity:$a,numOctaves:Kv};function xm(e,t,n,r){const{style:o,vars:i,transform:a,transformOrigin:s}=e;let l=!1,u=!1,c=!0;for(const f in t){const d=t[f];if(Y5(f)){i[f]=d;continue}const y=e4[f],C=hk(d,y);if(Vo.has(f)){if(l=!0,a[f]=C,!c)continue;d!==(y.default||0)&&(c=!1)}else f.startsWith("origin")?(u=!0,s[f]=C):o[f]=C}if(t.transform||(l||r?o.transform=fk(e.transform,n,c,r):o.transform&&(o.transform="none")),u){const{originX:f="50%",originY:d="50%",originZ:y=0}=s;o.transformOrigin=`${f} ${d} ${y}`}}const wm=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function t4(e,t,n){for(const r in t)!Bt(t[r])&&!X5(r,n)&&(e[r]=t[r])}function vk({transformTemplate:e},t,n){return h.useMemo(()=>{const r=wm();return xm(r,t,{enableHardwareAcceleration:!n},e),Object.assign({},r.vars,r.style)},[t])}function yk(e,t,n){const r=e.style||{},o={};return t4(o,r,e),Object.assign(o,vk(e,t,n)),e.transformValues?e.transformValues(o):o}function Ck(e,t,n){const r={},o=yk(e,t,n);return e.drag&&e.dragListener!==!1&&(r.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=o,r}const Sk=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","ignoreStrict","viewport"]);function wu(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||Sk.has(e)}let n4=e=>!wu(e);function xk(e){e&&(n4=t=>t.startsWith("on")?!wu(t):e(t))}try{xk(require("@emotion/is-prop-valid").default)}catch{}function wk(e,t,n){const r={};for(const o in e)o==="values"&&typeof e.values=="object"||(n4(o)||n===!0&&wu(o)||!t&&!wu(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}function Zv(e,t,n){return typeof e=="string"?e:se.transform(t+n*e)}function bk(e,t,n){const r=Zv(t,e.x,e.width),o=Zv(n,e.y,e.height);return`${r} ${o}`}const Ek={offset:"stroke-dashoffset",array:"stroke-dasharray"},Pk={offset:"strokeDashoffset",array:"strokeDasharray"};function Tk(e,t,n=1,r=0,o=!0){e.pathLength=1;const i=o?Ek:Pk;e[i.offset]=se.transform(-r);const a=se.transform(t),s=se.transform(n);e[i.array]=`${a} ${s}`}function bm(e,{attrX:t,attrY:n,attrScale:r,originX:o,originY:i,pathLength:a,pathSpacing:s=1,pathOffset:l=0,...u},c,f,d){if(xm(e,u,c,d),f){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:y,style:C,dimensions:v}=e;y.transform&&(v&&(C.transform=y.transform),delete y.transform),v&&(o!==void 0||i!==void 0||C.transform)&&(C.transformOrigin=bk(v,o!==void 0?o:.5,i!==void 0?i:.5)),t!==void 0&&(y.x=t),n!==void 0&&(y.y=n),r!==void 0&&(y.scale=r),a!==void 0&&Tk(y,a,s,l,!1)}const r4=()=>({...wm(),attrs:{}}),Em=e=>typeof e=="string"&&e.toLowerCase()==="svg";function Ok(e,t,n,r){const o=h.useMemo(()=>{const i=r4();return bm(i,t,{enableHardwareAcceleration:!1},Em(r),e.transformTemplate),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};t4(i,e.style,e),o.style={...i,...o.style}}return o}function Mk(e=!1){return(n,r,o,{latestValues:i},a)=>{const l=(Sm(n)?Ok:Ck)(r,i,a,n),c={...wk(r,typeof n=="string",e),...l,ref:o},{children:f}=r,d=h.useMemo(()=>Bt(f)?f.get():f,[f]);return h.createElement(n,{...c,children:d})}}function o4(e,{style:t,vars:n},r,o){Object.assign(e.style,t,o&&o.getProjectionStyles(r));for(const i in n)e.style.setProperty(i,n[i])}const i4=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 a4(e,t,n,r){o4(e,t,void 0,r);for(const o in t.attrs)e.setAttribute(i4.has(o)?o:gm(o),t.attrs[o])}function Pm(e,t){const{style:n}=e,r={};for(const o in n)(Bt(n[o])||t.style&&Bt(t.style[o])||X5(o,e))&&(r[o]=n[o]);return r}function s4(e,t){const n=Pm(e,t);for(const r in e)if(Bt(e[r])||Bt(t[r])){const o=Ls.indexOf(r)!==-1?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;n[o]=e[r]}return n}function Tm(e,t,n,r={},o={}){return typeof t=="function"&&(t=t(n!==void 0?n:e.custom,r,o)),typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"&&(t=t(n!==void 0?n:e.custom,r,o)),t}function l4(e){const t=h.useRef(null);return t.current===null&&(t.current=e()),t.current}const bu=e=>Array.isArray(e),Rk=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),kk=e=>bu(e)?e[e.length-1]||0:e;function zl(e){const t=Bt(e)?e.get():e;return Rk(t)?t.toValue():t}function Lk({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,o,i){const a={latestValues:$k(r,o,i,e),renderState:t()};return n&&(a.mount=s=>n(r,s,a)),a}const u4=e=>(t,n)=>{const r=h.useContext(mc),o=h.useContext(gc),i=()=>Lk(e,t,r,o);return n?i():l4(i)};function $k(e,t,n,r){const o={},i=r(e,{});for(const d in i)o[d]=zl(i[d]);let{initial:a,animate:s}=e;const l=Cc(e),u=Z5(e);t&&u&&!l&&e.inherit!==!1&&(a===void 0&&(a=t.initial),s===void 0&&(s=t.animate));let c=n?n.initial===!1:!1;c=c||a===!1;const f=c?s:a;return f&&typeof f!="boolean"&&!yc(f)&&(Array.isArray(f)?f:[f]).forEach(y=>{const C=Tm(e,y);if(!C)return;const{transitionEnd:v,transition:S,...g}=C;for(const p in g){let m=g[p];if(Array.isArray(m)){const w=c?m.length-1:0;m=m[w]}m!==null&&(o[p]=m)}for(const p in v)o[p]=v[p]}),o}const Ke=e=>e;class qv{constructor(){this.order=[],this.scheduled=new Set}add(t){if(!this.scheduled.has(t))return this.scheduled.add(t),this.order.push(t),!0}remove(t){const n=this.order.indexOf(t);n!==-1&&(this.order.splice(n,1),this.scheduled.delete(t))}clear(){this.order.length=0,this.scheduled.clear()}}function Fk(e){let t=new qv,n=new qv,r=0,o=!1,i=!1;const a=new WeakSet,s={schedule:(l,u=!1,c=!1)=>{const f=c&&o,d=f?t:n;return u&&a.add(l),d.add(l)&&f&&o&&(r=t.order.length),l},cancel:l=>{n.remove(l),a.delete(l)},process:l=>{if(o){i=!0;return}if(o=!0,[t,n]=[n,t],n.clear(),r=t.order.length,r)for(let u=0;u(f[d]=Fk(()=>n=!0),f),{}),a=f=>i[f].process(o),s=()=>{const f=performance.now();n=!1,o.delta=r?1e3/60:Math.max(Math.min(f-o.timestamp,jk),1),o.timestamp=f,o.isProcessing=!0,yl.forEach(a),o.isProcessing=!1,n&&t&&(r=!1,e(s))},l=()=>{n=!0,r=!0,o.isProcessing||e(s)};return{schedule:yl.reduce((f,d)=>{const y=i[d];return f[d]=(C,v=!1,S=!1)=>(n||l(),y.schedule(C,v,S)),f},{}),cancel:f=>yl.forEach(d=>i[d].cancel(f)),state:o,steps:i}}const{schedule:$e,cancel:hr,state:bt,steps:Of}=Ak(typeof requestAnimationFrame<"u"?requestAnimationFrame:Ke,!0),Nk={useVisualState:u4({scrapeMotionValuesFromProps:s4,createRenderState:r4,onMount:(e,t,{renderState:n,latestValues:r})=>{$e.read(()=>{try{n.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),$e.render(()=>{bm(n,r,{enableHardwareAcceleration:!1},Em(t.tagName),e.transformTemplate),a4(t,n)})}})},Ik={useVisualState:u4({scrapeMotionValuesFromProps:Pm,createRenderState:wm})};function _k(e,{forwardMotionProps:t=!1},n,r){return{...Sm(e)?Nk:Ik,preloadedFeatures:n,useRender:Mk(t),createVisualElement:r,Component:e}}function tr(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const c4=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function xc(e,t="page"){return{point:{x:e[t+"X"],y:e[t+"Y"]}}}const Dk=e=>t=>c4(t)&&e(t,xc(t));function ir(e,t,n,r){return tr(e,t,Dk(n),r)}const Vk=(e,t)=>n=>t(e(n)),zr=(...e)=>e.reduce(Vk);function f4(e){let t=null;return()=>{const n=()=>{t=null};return t===null?(t=e,n):!1}}const Xv=f4("dragHorizontal"),Qv=f4("dragVertical");function d4(e){let t=!1;if(e==="y")t=Qv();else if(e==="x")t=Xv();else{const n=Xv(),r=Qv();n&&r?t=()=>{n(),r()}:(n&&n(),r&&r())}return t}function h4(){const e=d4(!0);return e?(e(),!1):!0}class Jr{constructor(t){this.isMounted=!1,this.node=t}update(){}}function Yv(e,t){const n="pointer"+(t?"enter":"leave"),r="onHover"+(t?"Start":"End"),o=(i,a)=>{if(i.type==="touch"||h4())return;const s=e.getProps();e.animationState&&s.whileHover&&e.animationState.setActive("whileHover",t),s[r]&&$e.update(()=>s[r](i,a))};return ir(e.current,n,o,{passive:!e.getProps()[r]})}class Bk extends Jr{mount(){this.unmount=zr(Yv(this.node,!0),Yv(this.node,!1))}unmount(){}}class zk extends Jr{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=zr(tr(this.node.current,"focus",()=>this.onFocus()),tr(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const p4=(e,t)=>t?e===t?!0:p4(e,t.parentElement):!1;function Mf(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,xc(n))}class Hk extends Jr{constructor(){super(...arguments),this.removeStartListeners=Ke,this.removeEndListeners=Ke,this.removeAccessibleListeners=Ke,this.startPointerPress=(t,n)=>{if(this.removeEndListeners(),this.isPressing)return;const r=this.node.getProps(),i=ir(window,"pointerup",(s,l)=>{if(!this.checkPressEnd())return;const{onTap:u,onTapCancel:c}=this.node.getProps();$e.update(()=>{p4(this.node.current,s.target)?u&&u(s,l):c&&c(s,l)})},{passive:!(r.onTap||r.onPointerUp)}),a=ir(window,"pointercancel",(s,l)=>this.cancelPress(s,l),{passive:!(r.onTapCancel||r.onPointerCancel)});this.removeEndListeners=zr(i,a),this.startPress(t,n)},this.startAccessiblePress=()=>{const t=i=>{if(i.key!=="Enter"||this.isPressing)return;const a=s=>{s.key!=="Enter"||!this.checkPressEnd()||Mf("up",(l,u)=>{const{onTap:c}=this.node.getProps();c&&$e.update(()=>c(l,u))})};this.removeEndListeners(),this.removeEndListeners=tr(this.node.current,"keyup",a),Mf("down",(s,l)=>{this.startPress(s,l)})},n=tr(this.node.current,"keydown",t),r=()=>{this.isPressing&&Mf("cancel",(i,a)=>this.cancelPress(i,a))},o=tr(this.node.current,"blur",r);this.removeAccessibleListeners=zr(n,o)}}startPress(t,n){this.isPressing=!0;const{onTapStart:r,whileTap:o}=this.node.getProps();o&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),r&&$e.update(()=>r(t,n))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!h4()}cancelPress(t,n){if(!this.checkPressEnd())return;const{onTapCancel:r}=this.node.getProps();r&&$e.update(()=>r(t,n))}mount(){const t=this.node.getProps(),n=ir(this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),r=tr(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=zr(n,r)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const wh=new WeakMap,Rf=new WeakMap,Uk=e=>{const t=wh.get(e.target);t&&t(e)},Wk=e=>{e.forEach(Uk)};function Gk({root:e,...t}){const n=e||document;Rf.has(n)||Rf.set(n,{});const r=Rf.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(Wk,{root:e,...t})),r[o]}function Kk(e,t,n){const r=Gk(t);return wh.set(e,n),r.observe(e),()=>{wh.delete(e),r.unobserve(e)}}const Zk={some:0,all:1};class qk extends Jr{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:o="some",once:i}=t,a={root:n?n.current:void 0,rootMargin:r,threshold:typeof o=="number"?o:Zk[o]},s=l=>{const{isIntersecting:u}=l;if(this.isInView===u||(this.isInView=u,i&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:c,onViewportLeave:f}=this.node.getProps(),d=u?c:f;d&&d(l)};return Kk(this.node.current,a,s)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(Xk(t,n))&&this.startObserver()}unmount(){}}function Xk({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const Qk={inView:{Feature:qk},tap:{Feature:Hk},focus:{Feature:zk},hover:{Feature:Bk}};function m4(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;rt[r]=n.get()),t}function Jk(e){const t={};return e.values.forEach((n,r)=>t[r]=n.getVelocity()),t}function wc(e,t,n){const r=e.getProps();return Tm(r,t,n!==void 0?n:r.custom,Yk(e),Jk(e))}let eL=Ke,Om=Ke;const Hr=e=>e*1e3,ar=e=>e/1e3,tL={current:!1},g4=e=>Array.isArray(e)&&typeof e[0]=="number";function v4(e){return!!(!e||typeof e=="string"&&y4[e]||g4(e)||Array.isArray(e)&&e.every(v4))}const ga=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,y4={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:ga([0,.65,.55,1]),circOut:ga([.55,0,1,.45]),backIn:ga([.31,.01,.66,-.59]),backOut:ga([.33,1.53,.69,.99])};function C4(e){if(e)return g4(e)?ga(e):Array.isArray(e)?e.map(C4):y4[e]}function nL(e,t,n,{delay:r=0,duration:o,repeat:i=0,repeatType:a="loop",ease:s,times:l}={}){const u={[t]:n};l&&(u.offset=l);const c=C4(s);return Array.isArray(c)&&(u.easing=c),e.animate(u,{delay:r,duration:o,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:i+1,direction:a==="reverse"?"alternate":"normal"})}function rL(e,{repeat:t,repeatType:n="loop"}){const r=t&&n!=="loop"&&t%2===1?0:e.length-1;return e[r]}const S4=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,oL=1e-7,iL=12;function aL(e,t,n,r,o){let i,a,s=0;do a=t+(n-t)/2,i=S4(a,r,o)-e,i>0?n=a:t=a;while(Math.abs(i)>oL&&++saL(i,0,1,e,n);return i=>i===0||i===1?i:S4(o(i),t,r)}const sL=js(.42,0,1,1),lL=js(0,0,.58,1),x4=js(.42,0,.58,1),uL=e=>Array.isArray(e)&&typeof e[0]!="number",w4=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,b4=e=>t=>1-e(1-t),Mm=e=>1-Math.sin(Math.acos(e)),E4=b4(Mm),cL=w4(Mm),P4=js(.33,1.53,.69,.99),Rm=b4(P4),fL=w4(Rm),dL=e=>(e*=2)<1?.5*Rm(e):.5*(2-Math.pow(2,-10*(e-1))),hL={linear:Ke,easeIn:sL,easeInOut:x4,easeOut:lL,circIn:Mm,circInOut:cL,circOut:E4,backIn:Rm,backInOut:fL,backOut:P4,anticipate:dL},Jv=e=>{if(Array.isArray(e)){Om(e.length===4);const[t,n,r,o]=e;return js(t,n,r,o)}else if(typeof e=="string")return hL[e];return e},km=(e,t)=>n=>!!($s(n)&&pk.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),T4=(e,t,n)=>r=>{if(!$s(r))return r;const[o,i,a,s]=r.match(Sc);return{[e]:parseFloat(o),[t]:parseFloat(i),[n]:parseFloat(a),alpha:s!==void 0?parseFloat(s):1}},pL=e=>Zr(0,255,e),kf={...Bo,transform:e=>Math.round(pL(e))},So={test:km("rgb","red"),parse:T4("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+kf.transform(e)+", "+kf.transform(t)+", "+kf.transform(n)+", "+Fa($a.transform(r))+")"};function mL(e){let t="",n="",r="",o="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),o=e.substring(4,5),t+=t,n+=n,r+=r,o+=o),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}}const bh={test:km("#"),parse:mL,transform:So.transform},mi={test:km("hsl","hue"),parse:T4("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Gn.transform(Fa(t))+", "+Gn.transform(Fa(n))+", "+Fa($a.transform(r))+")"},Ot={test:e=>So.test(e)||bh.test(e)||mi.test(e),parse:e=>So.test(e)?So.parse(e):mi.test(e)?mi.parse(e):bh.parse(e),transform:e=>$s(e)?e:e.hasOwnProperty("red")?So.transform(e):mi.transform(e)},Ve=(e,t,n)=>-n*e+n*t+e;function Lf(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 gL({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let o=0,i=0,a=0;if(!t)o=i=a=n;else{const s=n<.5?n*(1+t):n+t-n*t,l=2*n-s;o=Lf(l,s,e+1/3),i=Lf(l,s,e),a=Lf(l,s,e-1/3)}return{red:Math.round(o*255),green:Math.round(i*255),blue:Math.round(a*255),alpha:r}}const $f=(e,t,n)=>{const r=e*e;return Math.sqrt(Math.max(0,n*(t*t-r)+r))},vL=[bh,So,mi],yL=e=>vL.find(t=>t.test(e));function e1(e){const t=yL(e);let n=t.parse(e);return t===mi&&(n=gL(n)),n}const O4=(e,t)=>{const n=e1(e),r=e1(t),o={...n};return i=>(o.red=$f(n.red,r.red,i),o.green=$f(n.green,r.green,i),o.blue=$f(n.blue,r.blue,i),o.alpha=Ve(n.alpha,r.alpha,i),So.transform(o))};function CL(e){var t,n;return isNaN(e)&&$s(e)&&(((t=e.match(Sc))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(J5))===null||n===void 0?void 0:n.length)||0)>0}const M4={regex:dk,countKey:"Vars",token:"${v}",parse:Ke},R4={regex:J5,countKey:"Colors",token:"${c}",parse:Ot.parse},k4={regex:Sc,countKey:"Numbers",token:"${n}",parse:Bo.parse};function Ff(e,{regex:t,countKey:n,token:r,parse:o}){const i=e.tokenised.match(t);i&&(e["num"+n]=i.length,e.tokenised=e.tokenised.replace(t,r),e.values.push(...i.map(o)))}function Eu(e){const t=e.toString(),n={value:t,tokenised:t,values:[],numVars:0,numColors:0,numNumbers:0};return n.value.includes("var(--")&&Ff(n,M4),Ff(n,R4),Ff(n,k4),n}function L4(e){return Eu(e).values}function $4(e){const{values:t,numColors:n,numVars:r,tokenised:o}=Eu(e),i=t.length;return a=>{let s=o;for(let l=0;ltypeof e=="number"?0:e;function xL(e){const t=L4(e);return $4(e)(t.map(SL))}const qr={test:CL,parse:L4,createTransformer:$4,getAnimatableNone:xL},F4=(e,t)=>n=>`${n>0?t:e}`;function j4(e,t){return typeof e=="number"?n=>Ve(e,t,n):Ot.test(e)?O4(e,t):e.startsWith("var(")?F4(e,t):N4(e,t)}const A4=(e,t)=>{const n=[...e],r=n.length,o=e.map((i,a)=>j4(i,t[a]));return i=>{for(let a=0;a{const n={...e,...t},r={};for(const o in n)e[o]!==void 0&&t[o]!==void 0&&(r[o]=j4(e[o],t[o]));return o=>{for(const i in r)n[i]=r[i](o);return n}},N4=(e,t)=>{const n=qr.createTransformer(t),r=Eu(e),o=Eu(t);return r.numVars===o.numVars&&r.numColors===o.numColors&&r.numNumbers>=o.numNumbers?zr(A4(r.values,o.values),n):F4(e,t)},ps=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},t1=(e,t)=>n=>Ve(e,t,n);function bL(e){return typeof e=="number"?t1:typeof e=="string"?Ot.test(e)?O4:N4:Array.isArray(e)?A4:typeof e=="object"?wL:t1}function EL(e,t,n){const r=[],o=n||bL(e[0]),i=e.length-1;for(let a=0;at[0];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=EL(t,r,o),s=a.length,l=u=>{let c=0;if(s>1)for(;cl(Zr(e[0],e[i-1],u)):l}function PL(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const o=ps(0,t,r);e.push(Ve(n,1,o))}}function TL(e){const t=[0];return PL(t,e.length-1),t}function OL(e,t){return e.map(n=>n*t)}function ML(e,t){return e.map(()=>t||x4).splice(0,e.length-1)}function Pu({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const o=uL(r)?r.map(Jv):Jv(r),i={done:!1,value:t[0]},a=OL(n&&n.length===t.length?n:TL(t),e),s=I4(a,t,{ease:Array.isArray(o)?o:ML(t,o)});return{calculatedDuration:e,next:l=>(i.value=s(l),i.done=l>=e,i)}}function _4(e,t){return t?e*(1e3/t):0}const RL=5;function D4(e,t,n){const r=Math.max(t-RL,0);return _4(n-e(r),t-r)}const jf=.001,kL=.01,n1=10,LL=.05,$L=1;function FL({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let o,i;eL(e<=Hr(n1));let a=1-t;a=Zr(LL,$L,a),e=Zr(kL,n1,ar(e)),a<1?(o=u=>{const c=u*a,f=c*e,d=c-n,y=Eh(u,a),C=Math.exp(-f);return jf-d/y*C},i=u=>{const f=u*a*e,d=f*n+n,y=Math.pow(a,2)*Math.pow(u,2)*e,C=Math.exp(-f),v=Eh(Math.pow(u,2),a);return(-o(u)+jf>0?-1:1)*((d-y)*C)/v}):(o=u=>{const c=Math.exp(-u*e),f=(u-n)*e+1;return-jf+c*f},i=u=>{const c=Math.exp(-u*e),f=(n-u)*(e*e);return c*f});const s=5/e,l=AL(o,i,s);if(e=Hr(e),isNaN(l))return{stiffness:100,damping:10,duration:e};{const u=Math.pow(l,2)*r;return{stiffness:u,damping:a*2*Math.sqrt(r*u),duration:e}}}const jL=12;function AL(e,t,n){let r=n;for(let o=1;oe[n]!==void 0)}function _L(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!r1(e,IL)&&r1(e,NL)){const n=FL(e);t={...t,...n,mass:1},t.isResolvedFromDuration=!0}return t}function V4({keyframes:e,restDelta:t,restSpeed:n,...r}){const o=e[0],i=e[e.length-1],a={done:!1,value:o},{stiffness:s,damping:l,mass:u,duration:c,velocity:f,isResolvedFromDuration:d}=_L({...r,velocity:-ar(r.velocity||0)}),y=f||0,C=l/(2*Math.sqrt(s*u)),v=i-o,S=ar(Math.sqrt(s/u)),g=Math.abs(v)<5;n||(n=g?.01:2),t||(t=g?.005:.5);let p;if(C<1){const m=Eh(S,C);p=w=>{const E=Math.exp(-C*S*w);return i-E*((y+C*S*v)/m*Math.sin(m*w)+v*Math.cos(m*w))}}else if(C===1)p=m=>i-Math.exp(-S*m)*(v+(y+S*v)*m);else{const m=S*Math.sqrt(C*C-1);p=w=>{const E=Math.exp(-C*S*w),x=Math.min(m*w,300);return i-E*((y+C*S*v)*Math.sinh(x)+m*v*Math.cosh(x))/m}}return{calculatedDuration:d&&c||null,next:m=>{const w=p(m);if(d)a.done=m>=c;else{let E=y;m!==0&&(C<1?E=D4(p,m,w):E=0);const x=Math.abs(E)<=n,b=Math.abs(i-w)<=t;a.done=x&&b}return a.value=a.done?i:w,a}}}function o1({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:o=10,bounceStiffness:i=500,modifyTarget:a,min:s,max:l,restDelta:u=.5,restSpeed:c}){const f=e[0],d={done:!1,value:f},y=T=>s!==void 0&&Tl,C=T=>s===void 0?l:l===void 0||Math.abs(s-T)-v*Math.exp(-T/r),m=T=>g+p(T),w=T=>{const P=p(T),O=m(T);d.done=Math.abs(P)<=u,d.value=d.done?g:O};let E,x;const b=T=>{y(d.value)&&(E=T,x=V4({keyframes:[d.value,C(d.value)],velocity:D4(m,T,d.value),damping:o,stiffness:i,restDelta:u,restSpeed:c}))};return b(0),{calculatedDuration:null,next:T=>{let P=!1;return!x&&E===void 0&&(P=!0,w(T),b(T)),E!==void 0&&T>E?x.next(T-E):(!P&&w(T),d)}}}const DL=e=>{const t=({timestamp:n})=>e(n);return{start:()=>$e.update(t,!0),stop:()=>hr(t),now:()=>bt.isProcessing?bt.timestamp:performance.now()}},i1=2e4;function a1(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t=i1?1/0:t}const VL={decay:o1,inertia:o1,tween:Pu,keyframes:Pu,spring:V4};function Tu({autoplay:e=!0,delay:t=0,driver:n=DL,keyframes:r,type:o="keyframes",repeat:i=0,repeatDelay:a=0,repeatType:s="loop",onPlay:l,onStop:u,onComplete:c,onUpdate:f,...d}){let y=1,C=!1,v,S;const g=()=>{S=new Promise(I=>{v=I})};g();let p;const m=VL[o]||Pu;let w;m!==Pu&&typeof r[0]!="number"&&(w=I4([0,100],r,{clamp:!1}),r=[0,100]);const E=m({...d,keyframes:r});let x;s==="mirror"&&(x=m({...d,keyframes:[...r].reverse(),velocity:-(d.velocity||0)}));let b="idle",T=null,P=null,O=null;E.calculatedDuration===null&&i&&(E.calculatedDuration=a1(E));const{calculatedDuration:$}=E;let D=1/0,F=1/0;$!==null&&(D=$+a,F=D*(i+1)-a);let z=0;const H=I=>{if(P===null)return;y>0&&(P=Math.min(P,I)),y<0&&(P=Math.min(I-F/y,P)),T!==null?z=T:z=Math.round(I-P)*y;const K=z-t*(y>=0?1:-1),X=y>=0?K<0:K>F;z=Math.max(K,0),b==="finished"&&T===null&&(z=F);let te=z,de=E;if(i){const Tt=Math.min(z,F)/D;let Ze=Math.floor(Tt),fe=Tt%1;!fe&&Tt>=1&&(fe=1),fe===1&&Ze--,Ze=Math.min(Ze,i+1),!!(Ze%2)&&(s==="reverse"?(fe=1-fe,a&&(fe-=a/D)):s==="mirror"&&(de=x)),te=Zr(0,1,fe)*D}const ne=X?{done:!1,value:r[0]}:de.next(te);w&&(ne.value=w(ne.value));let{done:me}=ne;!X&&$!==null&&(me=y>=0?z>=F:z<=0);const Ct=T===null&&(b==="finished"||b==="running"&&me);return f&&f(ne.value),Ct&&M(),ne},j=()=>{p&&p.stop(),p=void 0},R=()=>{b="idle",j(),v(),g(),P=O=null},M=()=>{b="finished",c&&c(),j(),v()},N=()=>{if(C)return;p||(p=n(H));const I=p.now();l&&l(),T!==null?P=I-T:(!P||b==="finished")&&(P=I),b==="finished"&&g(),O=P,T=null,b="running",p.start()};e&&N();const B={then(I,K){return S.then(I,K)},get time(){return ar(z)},set time(I){I=Hr(I),z=I,T!==null||!p||y===0?T=I:P=p.now()-I/y},get duration(){const I=E.calculatedDuration===null?a1(E):E.calculatedDuration;return ar(I)},get speed(){return y},set speed(I){I===y||!p||(y=I,B.time=ar(z))},get state(){return b},play:N,pause:()=>{b="paused",T=z},stop:()=>{C=!0,b!=="idle"&&(b="idle",u&&u(),R())},cancel:()=>{O!==null&&H(O),R()},complete:()=>{b="finished"},sample:I=>(P=0,H(I))};return B}function BL(e){let t;return()=>(t===void 0&&(t=e()),t)}const zL=BL(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),HL=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),Cl=10,UL=2e4,WL=(e,t)=>t.type==="spring"||e==="backgroundColor"||!v4(t.ease);function GL(e,t,{onUpdate:n,onComplete:r,...o}){if(!(zL()&&HL.has(t)&&!o.repeatDelay&&o.repeatType!=="mirror"&&o.damping!==0&&o.type!=="inertia"))return!1;let a=!1,s,l,u=!1;const c=()=>{l=new Promise(m=>{s=m})};c();let{keyframes:f,duration:d=300,ease:y,times:C}=o;if(WL(t,o)){const m=Tu({...o,repeat:0,delay:0});let w={done:!1,value:f[0]};const E=[];let x=0;for(;!w.done&&x{u=!1,v.cancel()},g=()=>{u=!0,$e.update(S),s(),c()};return v.onfinish=()=>{u||(e.set(rL(f,o)),r&&r(),g())},{then(m,w){return l.then(m,w)},attachTimeline(m){return v.timeline=m,v.onfinish=null,Ke},get time(){return ar(v.currentTime||0)},set time(m){v.currentTime=Hr(m)},get speed(){return v.playbackRate},set speed(m){v.playbackRate=m},get duration(){return ar(d)},play:()=>{a||(v.play(),hr(S))},pause:()=>v.pause(),stop:()=>{if(a=!0,v.playState==="idle")return;const{currentTime:m}=v;if(m){const w=Tu({...o,autoplay:!1});e.setWithVelocity(w.sample(m-Cl).value,w.sample(m).value,Cl)}g()},complete:()=>{u||v.finish()},cancel:g}}function KL({keyframes:e,delay:t,onUpdate:n,onComplete:r}){const o=()=>(n&&n(e[e.length-1]),r&&r(),{time:0,speed:1,duration:0,play:Ke,pause:Ke,stop:Ke,then:i=>(i(),Promise.resolve()),cancel:Ke,complete:Ke});return t?Tu({keyframes:[0,1],duration:0,delay:t,onComplete:o}):o()}const ZL={type:"spring",stiffness:500,damping:25,restSpeed:10},qL=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),XL={type:"keyframes",duration:.8},QL={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},YL=(e,{keyframes:t})=>t.length>2?XL:Vo.has(e)?e.startsWith("scale")?qL(t[1]):ZL:QL,Ph=(e,t)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(qr.test(t)||t==="0")&&!t.startsWith("url(")),JL=new Set(["brightness","contrast","saturate","opacity"]);function e$(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Sc)||[];if(!r)return e;const o=n.replace(r,"");let i=JL.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+o+")"}const t$=/([a-z-]*)\(.*?\)/g,Th={...qr,getAnimatableNone:e=>{const t=e.match(t$);return t?t.map(e$).join(" "):e}},n$={...e4,color:Ot,backgroundColor:Ot,outlineColor:Ot,fill:Ot,stroke:Ot,borderColor:Ot,borderTopColor:Ot,borderRightColor:Ot,borderBottomColor:Ot,borderLeftColor:Ot,filter:Th,WebkitFilter:Th},Lm=e=>n$[e];function B4(e,t){let n=Lm(e);return n!==Th&&(n=qr),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const z4=e=>/^0[^.\s]+$/.test(e);function r$(e){if(typeof e=="number")return e===0;if(e!==null)return e==="none"||e==="0"||z4(e)}function o$(e,t,n,r){const o=Ph(t,n);let i;Array.isArray(n)?i=[...n]:i=[null,n];const a=r.from!==void 0?r.from:e.get();let s;const l=[];for(let u=0;uo=>{const i=$m(r,e)||{},a=i.delay||r.delay||0;let{elapsed:s=0}=r;s=s-Hr(a);const l=o$(t,e,n,i),u=l[0],c=l[l.length-1],f=Ph(e,u),d=Ph(e,c);let y={keyframes:l,velocity:t.getVelocity(),ease:"easeOut",...i,delay:-s,onUpdate:C=>{t.set(C),i.onUpdate&&i.onUpdate(C)},onComplete:()=>{o(),i.onComplete&&i.onComplete()}};if(i$(i)||(y={...y,...YL(e,y)}),y.duration&&(y.duration=Hr(y.duration)),y.repeatDelay&&(y.repeatDelay=Hr(y.repeatDelay)),!f||!d||tL.current||i.type===!1||a$.skipAnimations)return KL(y);if(!r.isHandoff&&t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate){const C=GL(t,e,y);if(C)return C}return Tu(y)};function Ou(e){return!!(Bt(e)&&e.add)}const H4=e=>/^\-?\d*\.?\d+$/.test(e);function jm(e,t){e.indexOf(t)===-1&&e.push(t)}function Am(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Nm{constructor(){this.subscriptions=[]}add(t){return jm(this.subscriptions,t),()=>Am(this.subscriptions,t)}notify(t,n,r){const o=this.subscriptions.length;if(o)if(o===1)this.subscriptions[0](t,n,r);else for(let i=0;i!isNaN(parseFloat(e));class l${constructor(t,n={}){this.version="10.17.6",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(r,o=!0)=>{this.prev=this.current,this.current=r;const{delta:i,timestamp:a}=bt;this.lastUpdated!==a&&(this.timeDelta=i,this.lastUpdated=a,$e.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),o&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>$e.postRender(this.velocityCheck),this.velocityCheck=({timestamp:r})=>{r!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=t,this.canTrackVelocity=s$(this.current),this.owner=n.owner}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new Nm);const r=this.events[t].add(n);return t==="change"?()=>{r(),$e.read(()=>{this.events.change.getSize()||this.stop()})}:r}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,r){this.set(n),this.prev=t,this.timeDelta=r}jump(t){this.updateAndNotify(t),this.prev=t,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?_4(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}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 Ai(e,t){return new l$(e,t)}const U4=e=>t=>t.test(e),u$={test:e=>e==="auto",parse:e=>e},W4=[Bo,se,Gn,Er,gk,mk,u$],la=e=>W4.find(U4(e)),c$=[...W4,Ot,qr],f$=e=>c$.find(U4(e));function d$(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Ai(n))}function h$(e,t){const n=wc(e,t);let{transitionEnd:r={},transition:o={},...i}=n?e.makeTargetAnimatable(n,!1):{};i={...i,...r};for(const a in i){const s=kk(i[a]);d$(e,a,s)}}function p$(e,t,n){var r,o;const i=Object.keys(t).filter(s=>!e.hasValue(s)),a=i.length;if(a)for(let s=0;sl.remove(f))),u.push(S)}return a&&Promise.all(u).then(()=>{a&&h$(e,a)}),u}function Oh(e,t,n={}){const r=wc(e,t,n.custom);let{transition:o=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(o=n.transitionOverride);const i=r?()=>Promise.all(G4(e,r,n)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(l=0)=>{const{delayChildren:u=0,staggerChildren:c,staggerDirection:f}=o;return C$(e,t,u+l,c,f,n)}:()=>Promise.resolve(),{when:s}=o;if(s){const[l,u]=s==="beforeChildren"?[i,a]:[a,i];return l().then(()=>u())}else return Promise.all([i(),a(n.delay)])}function C$(e,t,n=0,r=0,o=1,i){const a=[],s=(e.variantChildren.size-1)*r,l=o===1?(u=0)=>u*r:(u=0)=>s-u*r;return Array.from(e.variantChildren).sort(S$).forEach((u,c)=>{u.notify("AnimationStart",t),a.push(Oh(u,t,{...i,delay:n+l(c)}).then(()=>u.notify("AnimationComplete",t)))}),Promise.all(a)}function S$(e,t){return e.sortNodePosition(t)}function x$(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const o=t.map(i=>Oh(e,i,n));r=Promise.all(o)}else if(typeof t=="string")r=Oh(e,t,n);else{const o=typeof t=="function"?wc(e,t,n.custom):t;r=Promise.all(G4(e,o,n))}return r.then(()=>e.notify("AnimationComplete",t))}const w$=[...vm].reverse(),b$=vm.length;function E$(e){return t=>Promise.all(t.map(({animation:n,options:r})=>x$(e,n,r)))}function P$(e){let t=E$(e);const n=O$();let r=!0;const o=(l,u)=>{const c=wc(e,u);if(c){const{transition:f,transitionEnd:d,...y}=c;l={...l,...y,...d}}return l};function i(l){t=l(e)}function a(l,u){const c=e.getProps(),f=e.getVariantContext(!0)||{},d=[],y=new Set;let C={},v=1/0;for(let g=0;gv&&E,O=!1;const $=Array.isArray(w)?w:[w];let D=$.reduce(o,{});x===!1&&(D={});const{prevResolvedValues:F={}}=m,z={...F,...D},H=j=>{P=!0,y.has(j)&&(O=!0,y.delete(j)),m.needsAnimating[j]=!0};for(const j in z){const R=D[j],M=F[j];if(C.hasOwnProperty(j))continue;let N=!1;bu(R)&&bu(M)?N=!m4(R,M):N=R!==M,N?R!==void 0?H(j):y.add(j):R!==void 0&&y.has(j)?H(j):m.protectedKeys[j]=!0}m.prevProp=w,m.prevResolvedValues=D,m.isActive&&(C={...C,...D}),r&&e.blockInitialAnimation&&(P=!1),P&&(!b||O)&&d.push(...$.map(j=>({animation:j,options:{type:p,...l}})))}if(y.size){const g={};y.forEach(p=>{const m=e.getBaseTarget(p);m!==void 0&&(g[p]=m)}),d.push({animation:g})}let S=!!d.length;return r&&(c.initial===!1||c.initial===c.animate)&&!e.manuallyAnimateOnMount&&(S=!1),r=!1,S?t(d):Promise.resolve()}function s(l,u,c){var f;if(n[l].isActive===u)return Promise.resolve();(f=e.variantChildren)===null||f===void 0||f.forEach(y=>{var C;return(C=y.animationState)===null||C===void 0?void 0:C.setActive(l,u)}),n[l].isActive=u;const d=a(c,l);for(const y in n)n[y].protectedKeys={};return d}return{animateChanges:a,setActive:s,setAnimateFunction:i,getState:()=>n}}function T$(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!m4(t,e):!1}function ro(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function O$(){return{animate:ro(!0),whileInView:ro(),whileHover:ro(),whileTap:ro(),whileDrag:ro(),whileFocus:ro(),exit:ro()}}class M$ extends Jr{constructor(t){super(t),t.animationState||(t.animationState=P$(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();this.unmount(),yc(t)&&(this.unmount=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){}}let R$=0;class k$ extends Jr{constructor(){super(...arguments),this.id=R$++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n,custom:r}=this.node.presenceContext,{isPresent:o}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===o)return;const i=this.node.animationState.setActive("exit",!t,{custom:r??this.node.getProps().custom});n&&!t&&i.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const L$={animation:{Feature:M$},exit:{Feature:k$}},s1=(e,t)=>Math.abs(e-t);function $$(e,t){const n=s1(e.x,t.x),r=s1(e.y,t.y);return Math.sqrt(n**2+r**2)}class K4{constructor(t,n,{transformPagePoint:r,contextWindow:o,dragSnapToOrigin:i=!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 f=Nf(this.lastMoveEventInfo,this.history),d=this.startEvent!==null,y=$$(f.offset,{x:0,y:0})>=3;if(!d&&!y)return;const{point:C}=f,{timestamp:v}=bt;this.history.push({...C,timestamp:v});const{onStart:S,onMove:g}=this.handlers;d||(S&&S(this.lastMoveEvent,f),this.startEvent=this.lastMoveEvent),g&&g(this.lastMoveEvent,f)},this.handlePointerMove=(f,d)=>{this.lastMoveEvent=f,this.lastMoveEventInfo=Af(d,this.transformPagePoint),$e.update(this.updatePoint,!0)},this.handlePointerUp=(f,d)=>{this.end();const{onEnd:y,onSessionEnd:C,resumeAnimation:v}=this.handlers;if(this.dragSnapToOrigin&&v&&v(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const S=Nf(f.type==="pointercancel"?this.lastMoveEventInfo:Af(d,this.transformPagePoint),this.history);this.startEvent&&y&&y(f,S),C&&C(f,S)},!c4(t))return;this.dragSnapToOrigin=i,this.handlers=n,this.transformPagePoint=r,this.contextWindow=o||window;const a=xc(t),s=Af(a,this.transformPagePoint),{point:l}=s,{timestamp:u}=bt;this.history=[{...l,timestamp:u}];const{onSessionStart:c}=n;c&&c(t,Nf(s,this.history)),this.removeListeners=zr(ir(this.contextWindow,"pointermove",this.handlePointerMove),ir(this.contextWindow,"pointerup",this.handlePointerUp),ir(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),hr(this.updatePoint)}}function Af(e,t){return t?{point:t(e.point)}:e}function l1(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Nf({point:e},t){return{point:e,delta:l1(e,Z4(t)),offset:l1(e,F$(t)),velocity:j$(t,.1)}}function F$(e){return e[0]}function Z4(e){return e[e.length-1]}function j$(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const o=Z4(e);for(;n>=0&&(r=e[n],!(o.timestamp-r.timestamp>Hr(t)));)n--;if(!r)return{x:0,y:0};const i=ar(o.timestamp-r.timestamp);if(i===0)return{x:0,y:0};const a={x:(o.x-r.x)/i,y:(o.y-r.y)/i};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function Jt(e){return e.max-e.min}function Mh(e,t=0,n=.01){return Math.abs(e-t)<=n}function u1(e,t,n,r=.5){e.origin=r,e.originPoint=Ve(t.min,t.max,e.origin),e.scale=Jt(n)/Jt(t),(Mh(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=Ve(n.min,n.max,e.origin)-e.originPoint,(Mh(e.translate)||isNaN(e.translate))&&(e.translate=0)}function ja(e,t,n,r){u1(e.x,t.x,n.x,r?r.originX:void 0),u1(e.y,t.y,n.y,r?r.originY:void 0)}function c1(e,t,n){e.min=n.min+t.min,e.max=e.min+Jt(t)}function A$(e,t,n){c1(e.x,t.x,n.x),c1(e.y,t.y,n.y)}function f1(e,t,n){e.min=t.min-n.min,e.max=e.min+Jt(t)}function Aa(e,t,n){f1(e.x,t.x,n.x),f1(e.y,t.y,n.y)}function N$(e,{min:t,max:n},r){return t!==void 0&&en&&(e=r?Ve(n,e,r.max):Math.min(e,n)),e}function d1(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 I$(e,{top:t,left:n,bottom:r,right:o}){return{x:d1(e.x,n,o),y:d1(e.y,t,r)}}function h1(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.minr?n=ps(t.min,t.max-r,e.min):r>o&&(n=ps(e.min,e.max-o,t.min)),Zr(0,1,n)}function V$(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 Rh=.35;function B$(e=Rh){return e===!1?e=0:e===!0&&(e=Rh),{x:p1(e,"left","right"),y:p1(e,"top","bottom")}}function p1(e,t,n){return{min:m1(e,t),max:m1(e,n)}}function m1(e,t){return typeof e=="number"?e:e[t]||0}const g1=()=>({translate:0,scale:1,origin:0,originPoint:0}),gi=()=>({x:g1(),y:g1()}),v1=()=>({min:0,max:0}),et=()=>({x:v1(),y:v1()});function ln(e){return[e("x"),e("y")]}function q4({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function z$({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function H$(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function If(e){return e===void 0||e===1}function kh({scale:e,scaleX:t,scaleY:n}){return!If(e)||!If(t)||!If(n)}function lo(e){return kh(e)||X4(e)||e.z||e.rotate||e.rotateX||e.rotateY}function X4(e){return y1(e.x)||y1(e.y)}function y1(e){return e&&e!=="0%"}function Mu(e,t,n){const r=e-n,o=t*r;return n+o}function C1(e,t,n,r,o){return o!==void 0&&(e=Mu(e,o,r)),Mu(e,n,r)+t}function Lh(e,t=0,n=1,r,o){e.min=C1(e.min,t,n,r,o),e.max=C1(e.max,t,n,r,o)}function Q4(e,{x:t,y:n}){Lh(e.x,t.translate,t.scale,t.originPoint),Lh(e.y,n.translate,n.scale,n.originPoint)}function U$(e,t,n,r=!1){const o=n.length;if(!o)return;t.x=t.y=1;let i,a;for(let s=0;s1.0000000000001||e<.999999999999?e:1}function Or(e,t){e.min=e.min+t,e.max=e.max+t}function x1(e,t,[n,r,o]){const i=t[o]!==void 0?t[o]:.5,a=Ve(e.min,e.max,i);Lh(e,t[n],t[r],a,t.scale)}const W$=["x","scaleX","originX"],G$=["y","scaleY","originY"];function vi(e,t){x1(e.x,t,W$),x1(e.y,t,G$)}function Y4(e,t){return q4(H$(e.getBoundingClientRect(),t))}function K$(e,t,n){const r=Y4(e,n),{scroll:o}=t;return o&&(Or(r.x,o.offset.x),Or(r.y,o.offset.y)),r}const J4=({current:e})=>e?e.ownerDocument.defaultView:null,Z$=new WeakMap;class q${constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=et(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const o=c=>{const{dragSnapToOrigin:f}=this.getProps();f?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(xc(c,"page").point)},i=(c,f)=>{const{drag:d,dragPropagation:y,onDragStart:C}=this.getProps();if(d&&!y&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=d4(d),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),ln(S=>{let g=this.getAxisMotionValue(S).get()||0;if(Gn.test(g)){const{projection:p}=this.visualElement;if(p&&p.layout){const m=p.layout.layoutBox[S];m&&(g=Jt(m)*(parseFloat(g)/100))}}this.originPoint[S]=g}),C&&$e.update(()=>C(c,f),!1,!0);const{animationState:v}=this.visualElement;v&&v.setActive("whileDrag",!0)},a=(c,f)=>{const{dragPropagation:d,dragDirectionLock:y,onDirectionLock:C,onDrag:v}=this.getProps();if(!d&&!this.openGlobalLock)return;const{offset:S}=f;if(y&&this.currentDirection===null){this.currentDirection=X$(S),this.currentDirection!==null&&C&&C(this.currentDirection);return}this.updateAxis("x",f.point,S),this.updateAxis("y",f.point,S),this.visualElement.render(),v&&v(c,f)},s=(c,f)=>this.stop(c,f),l=()=>ln(c=>{var f;return this.getAnimationState(c)==="paused"&&((f=this.getAxisMotionValue(c).animation)===null||f===void 0?void 0:f.play())}),{dragSnapToOrigin:u}=this.getProps();this.panSession=new K4(t,{onSessionStart:o,onStart:i,onMove:a,onSessionEnd:s,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,contextWindow:J4(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:o}=n;this.startAnimation(o);const{onDragEnd:i}=this.getProps();i&&$e.update(()=>i(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:r}=this.getProps();!r&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:o}=this.getProps();if(!r||!Sl(t,o,this.currentDirection))return;const i=this.getAxisMotionValue(t);let a=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(a=N$(a,this.constraints[t],this.elastic[t])),i.set(a)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=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,i=this.constraints;n&&pi(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&o?this.constraints=I$(o.layoutBox,n):this.constraints=!1,this.elastic=B$(r),i!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&ln(a=>{this.getAxisMotionValue(a)&&(this.constraints[a]=V$(o.layoutBox[a],this.constraints[a]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!pi(t))return!1;const r=t.current,{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const i=K$(r,o.root,this.visualElement.getTransformPagePoint());let a=_$(o.layout.layoutBox,i);if(n){const s=n(z$(a));this.hasMutatedConstraints=!!s,s&&(a=q4(s))}return a}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:o,dragTransition:i,dragSnapToOrigin:a,onDragTransitionEnd:s}=this.getProps(),l=this.constraints||{},u=ln(c=>{if(!Sl(c,n,this.currentDirection))return;let f=l&&l[c]||{};a&&(f={min:0,max:0});const d=o?200:1e6,y=o?40:1e7,C={type:"inertia",velocity:r?t[c]:0,bounceStiffness:d,bounceDamping:y,timeConstant:750,restDelta:1,restSpeed:10,...i,...f};return this.startAxisValueAnimation(c,C)});return Promise.all(u).then(s)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return r.start(Fm(t,r,0,n))}stopAnimation(){ln(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){ln(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(),r=this.visualElement.getProps(),o=r[n];return o||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){ln(n=>{const{drag:r}=this.getProps();if(!Sl(n,r,this.currentDirection))return;const{projection:o}=this.visualElement,i=this.getAxisMotionValue(n);if(o&&o.layout){const{min:a,max:s}=o.layout.layoutBox[n];i.set(t[n]-Ve(a,s,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!pi(n)||!r||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};ln(a=>{const s=this.getAxisMotionValue(a);if(s){const l=s.get();o[a]=D$({min:l,max:l},this.constraints[a])}});const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),ln(a=>{if(!Sl(a,t,null))return;const s=this.getAxisMotionValue(a),{min:l,max:u}=this.constraints[a];s.set(Ve(l,u,o[a]))})}addListeners(){if(!this.visualElement.current)return;Z$.set(this.visualElement,this);const t=this.visualElement.current,n=ir(t,"pointerdown",l=>{const{drag:u,dragListener:c=!0}=this.getProps();u&&c&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();pi(l)&&(this.constraints=this.resolveRefConstraints())},{projection:o}=this.visualElement,i=o.addEventListener("measure",r);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),r();const a=tr(window,"resize",()=>this.scalePositionWithinConstraints()),s=o.addEventListener("didUpdate",({delta:l,hasLayoutChanged:u})=>{this.isDragging&&u&&(ln(c=>{const f=this.getAxisMotionValue(c);f&&(this.originPoint[c]+=l[c].translate,f.set(f.get()+l[c].translate))}),this.visualElement.render())});return()=>{a(),n(),i(),s&&s()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:o=!1,dragConstraints:i=!1,dragElastic:a=Rh,dragMomentum:s=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:o,dragConstraints:i,dragElastic:a,dragMomentum:s}}}function Sl(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function X$(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class Q$ extends Jr{constructor(t){super(t),this.removeGroupControls=Ke,this.removeListeners=Ke,this.controls=new q$(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Ke}unmount(){this.removeGroupControls(),this.removeListeners()}}const w1=e=>(t,n)=>{e&&$e.update(()=>e(t,n))};class Y$ extends Jr{constructor(){super(...arguments),this.removePointerDownListener=Ke}onPointerDown(t){this.session=new K4(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:J4(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:o}=this.node.getProps();return{onSessionStart:w1(t),onStart:w1(n),onMove:r,onEnd:(i,a)=>{delete this.session,o&&$e.update(()=>o(i,a))}}}mount(){this.removePointerDownListener=ir(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}function J$(){const e=h.useContext(gc);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:n,register:r}=e,o=h.useId();return h.useEffect(()=>r(o),[]),!t&&n?[!1,()=>n&&n(o)]:[!0]}const Hl={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function b1(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const ua={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(se.test(e))e=parseFloat(e);else return e;const n=b1(e,t.target.x),r=b1(e,t.target.y);return`${n}% ${r}%`}},eF={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,o=qr.parse(e);if(o.length>5)return r;const i=qr.createTransformer(e),a=typeof o[0]!="number"?1:0,s=n.x.scale*t.x,l=n.y.scale*t.y;o[0+a]/=s,o[1+a]/=l;const u=Ve(s,l,.5);return typeof o[2+a]=="number"&&(o[2+a]/=u),typeof o[3+a]=="number"&&(o[3+a]/=u),i(o)}};class tF extends Z.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:o}=this.props,{projection:i}=t;lk(nF),i&&(n.group&&n.group.add(i),r&&r.register&&o&&r.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),Hl.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:o,isPresent:i}=this.props,a=r.projection;return a&&(a.isPresent=i,o||t.layoutDependency!==n||n===void 0?a.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?a.promote():a.relegate()||$e.postRender(()=>{const s=a.getStack();(!s||!s.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),queueMicrotask(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:o}=t;o&&(o.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(o),r&&r.deregister&&r.deregister(o))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function e6(e){const[t,n]=J$(),r=h.useContext(Cm);return Z.createElement(tF,{...e,layoutGroup:r,switchLayoutGroup:h.useContext(q5),isPresent:t,safeToRemove:n})}const nF={borderRadius:{...ua,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:ua,borderTopRightRadius:ua,borderBottomLeftRadius:ua,borderBottomRightRadius:ua,boxShadow:eF},t6=["TopLeft","TopRight","BottomLeft","BottomRight"],rF=t6.length,E1=e=>typeof e=="string"?parseFloat(e):e,P1=e=>typeof e=="number"||se.test(e);function oF(e,t,n,r,o,i){o?(e.opacity=Ve(0,n.opacity!==void 0?n.opacity:1,iF(r)),e.opacityExit=Ve(t.opacity!==void 0?t.opacity:1,0,aF(r))):i&&(e.opacity=Ve(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let a=0;art?1:n(ps(e,t,r))}function O1(e,t){e.min=t.min,e.max=t.max}function sn(e,t){O1(e.x,t.x),O1(e.y,t.y)}function M1(e,t,n,r,o){return e-=t,e=Mu(e,1/n,r),o!==void 0&&(e=Mu(e,1/o,r)),e}function sF(e,t=0,n=1,r=.5,o,i=e,a=e){if(Gn.test(t)&&(t=parseFloat(t),t=Ve(a.min,a.max,t/100)-a.min),typeof t!="number")return;let s=Ve(i.min,i.max,r);e===i&&(s-=t),e.min=M1(e.min,t,n,s,o),e.max=M1(e.max,t,n,s,o)}function R1(e,t,[n,r,o],i,a){sF(e,t[n],t[r],t[o],t.scale,i,a)}const lF=["x","scaleX","originX"],uF=["y","scaleY","originY"];function k1(e,t,n,r){R1(e.x,t,lF,n?n.x:void 0,r?r.x:void 0),R1(e.y,t,uF,n?n.y:void 0,r?r.y:void 0)}function L1(e){return e.translate===0&&e.scale===1}function r6(e){return L1(e.x)&&L1(e.y)}function cF(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}function o6(e,t){return Math.round(e.x.min)===Math.round(t.x.min)&&Math.round(e.x.max)===Math.round(t.x.max)&&Math.round(e.y.min)===Math.round(t.y.min)&&Math.round(e.y.max)===Math.round(t.y.max)}function $1(e){return Jt(e.x)/Jt(e.y)}class fF{constructor(){this.members=[]}add(t){jm(this.members,t),t.scheduleRender()}remove(t){if(Am(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 r;for(let o=n;o>=0;o--){const i=this.members[o];if(i.isPresent!==!1){r=i;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:o}=t.options;o===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function F1(e,t,n){let r="";const o=e.x.translate/t.x,i=e.y.translate/t.y;if((o||i)&&(r=`translate3d(${o}px, ${i}px, 0) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{rotate:l,rotateX:u,rotateY:c}=n;l&&(r+=`rotate(${l}deg) `),u&&(r+=`rotateX(${u}deg) `),c&&(r+=`rotateY(${c}deg) `)}const a=e.x.scale*t.x,s=e.y.scale*t.y;return(a!==1||s!==1)&&(r+=`scale(${a}, ${s})`),r||"none"}const dF=(e,t)=>e.depth-t.depth;class hF{constructor(){this.children=[],this.isDirty=!1}add(t){jm(this.children,t),this.isDirty=!0}remove(t){Am(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(dF),this.isDirty=!1,this.children.forEach(t)}}function pF(e,t){const n=performance.now(),r=({timestamp:o})=>{const i=o-n;i>=t&&(hr(r),e(i-t))};return $e.read(r,!0),()=>hr(r)}function mF(e){window.MotionDebug&&window.MotionDebug.record(e)}function gF(e){return e instanceof SVGElement&&e.tagName!=="svg"}function vF(e,t,n){const r=Bt(e)?e:Ai(e);return r.start(Fm("",r,t,n)),r.animation}const j1=["","X","Y","Z"],yF={visibility:"hidden"},A1=1e3;let CF=0;const uo={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function i6({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(a={},s=t==null?void 0:t()){this.id=CF++,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.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,uo.totalNodes=uo.resolvedTargetDeltas=uo.recalculatedProjection=0,this.nodes.forEach(wF),this.nodes.forEach(OF),this.nodes.forEach(MF),this.nodes.forEach(bF),mF(uo)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=a,this.root=s?s.root||s:this,this.path=s?[...s.path,s]:[],this.parent=s,this.depth=s?s.depth+1:0;for(let l=0;lthis.root.updateBlockedByResize=!1;e(a,()=>{this.root.updateBlockedByResize=!0,f&&f(),f=pF(d,250),Hl.hasAnimatedSinceResize&&(Hl.hasAnimatedSinceResize=!1,this.nodes.forEach(I1))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&c&&(l||u)&&this.addEventListener("didUpdate",({delta:f,hasLayoutChanged:d,hasRelativeTargetChanged:y,layout:C})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const v=this.options.transition||c.getDefaultTransition()||FF,{onLayoutAnimationStart:S,onLayoutAnimationComplete:g}=c.getProps(),p=!this.targetLayout||!o6(this.targetLayout,C)||y,m=!d&&y;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||m||d&&(p||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(f,m);const w={...$m(v,"layout"),onPlay:S,onComplete:g};(c.shouldReduceMotion||this.options.layoutRoot)&&(w.delay=0,w.type=!1),this.startAnimation(w)}else d||I1(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=C})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const a=this.getStack();a&&a.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,hr(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(RF),this.animationId++)}getTransformTemplate(){const{visualElement:a}=this.options;return a&&a.getProps().transformTemplate}willUpdate(a=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;cthis.update()))}clearAllSnapshots(){this.nodes.forEach(EF),this.sharedNodes.forEach(kF)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,$e.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){$e.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l{const E=w/1e3;_1(f.x,a.x,E),_1(f.y,a.y,E),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Aa(d,this.layout.layoutBox,this.relativeParent.layout.layoutBox),LF(this.relativeTarget,this.relativeTargetOrigin,d,E),m&&cF(this.relativeTarget,m)&&(this.isProjectionDirty=!1),m||(m=et()),sn(m,this.relativeTarget)),v&&(this.animationValues=c,oF(c,u,this.latestValues,E,p,g)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=E},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(a){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(hr(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=$e.update(()=>{Hl.hasAnimatedSinceResize=!0,this.currentAnimation=vF(0,A1,{...a,onUpdate:s=>{this.mixTargetDelta(s),a.onUpdate&&a.onUpdate(s)},onComplete:()=>{a.onComplete&&a.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 a=this.getStack();a&&a.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(A1),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const a=this.getLead();let{targetWithTransforms:s,target:l,layout:u,latestValues:c}=a;if(!(!s||!l||!u)){if(this!==a&&this.layout&&u&&a6(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||et();const f=Jt(this.layout.layoutBox.x);l.x.min=a.target.x.min,l.x.max=l.x.min+f;const d=Jt(this.layout.layoutBox.y);l.y.min=a.target.y.min,l.y.max=l.y.min+d}sn(s,l),vi(s,c),ja(this.projectionDeltaWithTransform,this.layoutCorrected,s,c)}}registerSharedNode(a,s){this.sharedNodes.has(a)||this.sharedNodes.set(a,new fF),this.sharedNodes.get(a).add(s);const u=s.options.initialPromotionConfig;s.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(s):void 0})}isLead(){const a=this.getStack();return a?a.lead===this:!0}getLead(){var a;const{layoutId:s}=this.options;return s?((a=this.getStack())===null||a===void 0?void 0:a.lead)||this:this}getPrevLead(){var a;const{layoutId:s}=this.options;return s?(a=this.getStack())===null||a===void 0?void 0:a.prevLead:void 0}getStack(){const{layoutId:a}=this.options;if(a)return this.root.sharedNodes.get(a)}promote({needsReset:a,transition:s,preserveFollowOpacity:l}={}){const u=this.getStack();u&&u.promote(this,l),a&&(this.projectionDelta=void 0,this.needsReset=!0),s&&this.setOptions({transition:s})}relegate(){const a=this.getStack();return a?a.relegate(this):!1}resetRotation(){const{visualElement:a}=this.options;if(!a)return;let s=!1;const{latestValues:l}=a;if((l.rotate||l.rotateX||l.rotateY||l.rotateZ)&&(s=!0),!s)return;const u={};for(let c=0;c{var s;return(s=a.currentAnimation)===null||s===void 0?void 0:s.stop()}),this.root.nodes.forEach(N1),this.root.sharedNodes.clear()}}}function SF(e){e.updateLayout()}function xF(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:r,measuredBox:o}=e.layout,{animationType:i}=e.options,a=n.source!==e.layout.source;i==="size"?ln(f=>{const d=a?n.measuredBox[f]:n.layoutBox[f],y=Jt(d);d.min=r[f].min,d.max=d.min+y}):a6(i,n.layoutBox,r)&&ln(f=>{const d=a?n.measuredBox[f]:n.layoutBox[f],y=Jt(r[f]);d.max=d.min+y,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[f].max=e.relativeTarget[f].min+y)});const s=gi();ja(s,r,n.layoutBox);const l=gi();a?ja(l,e.applyTransform(o,!0),n.measuredBox):ja(l,r,n.layoutBox);const u=!r6(s);let c=!1;if(!e.resumeFrom){const f=e.getClosestProjectingParent();if(f&&!f.resumeFrom){const{snapshot:d,layout:y}=f;if(d&&y){const C=et();Aa(C,n.layoutBox,d.layoutBox);const v=et();Aa(v,r,y.layoutBox),o6(C,v)||(c=!0),f.options.layoutRoot&&(e.relativeTarget=v,e.relativeTargetOrigin=C,e.relativeParent=f)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:l,layoutDelta:s,hasLayoutChanged:u,hasRelativeTargetChanged:c})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function wF(e){uo.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 bF(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function EF(e){e.clearSnapshot()}function N1(e){e.clearMeasurements()}function PF(e){e.isLayoutDirty=!1}function TF(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function I1(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function OF(e){e.resolveTargetDelta()}function MF(e){e.calcProjection()}function RF(e){e.resetRotation()}function kF(e){e.removeLeadSnapshot()}function _1(e,t,n){e.translate=Ve(t.translate,0,n),e.scale=Ve(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function D1(e,t,n,r){e.min=Ve(t.min,n.min,r),e.max=Ve(t.max,n.max,r)}function LF(e,t,n,r){D1(e.x,t.x,n.x,r),D1(e.y,t.y,n.y,r)}function $F(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const FF={duration:.45,ease:[.4,0,.1,1]},V1=e=>typeof navigator<"u"&&navigator.userAgent.toLowerCase().includes(e),B1=V1("applewebkit/")&&!V1("chrome/")?Math.round:Ke;function z1(e){e.min=B1(e.min),e.max=B1(e.max)}function jF(e){z1(e.x),z1(e.y)}function a6(e,t,n){return e==="position"||e==="preserve-aspect"&&!Mh($1(t),$1(n),.2)}const AF=i6({attachResizeListener:(e,t)=>tr(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),_f={current:void 0},s6=i6({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!_f.current){const e=new AF({});e.mount(window),e.setOptions({layoutScroll:!0}),_f.current=e}return _f.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),NF={pan:{Feature:Y$},drag:{Feature:Q$,ProjectionNode:s6,MeasureLayout:e6}},IF=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function _F(e){const t=IF.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]}function $h(e,t,n=1){const[r,o]=_F(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);if(i){const a=i.trim();return H4(a)?parseFloat(a):a}else return xh(o)?$h(o,t,n+1):o}function DF(e,{...t},n){const r=e.current;if(!(r instanceof Element))return{target:t,transitionEnd:n};n&&(n={...n}),e.values.forEach(o=>{const i=o.get();if(!xh(i))return;const a=$h(i,r);a&&o.set(a)});for(const o in t){const i=t[o];if(!xh(i))continue;const a=$h(i,r);a&&(t[o]=a,n||(n={}),n[o]===void 0&&(n[o]=i))}return{target:t,transitionEnd:n}}const VF=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),l6=e=>VF.has(e),BF=e=>Object.keys(e).some(l6),H1=e=>e===Bo||e===se,U1=(e,t)=>parseFloat(e.split(", ")[t]),W1=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const o=r.match(/^matrix3d\((.+)\)$/);if(o)return U1(o[1],t);{const i=r.match(/^matrix\((.+)\)$/);return i?U1(i[1],e):0}},zF=new Set(["x","y","z"]),HF=Ls.filter(e=>!zF.has(e));function UF(e){const t=[];return HF.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t.length&&e.render(),t}const Ni={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:W1(4,13),y:W1(5,14)};Ni.translateX=Ni.x;Ni.translateY=Ni.y;const WF=(e,t,n)=>{const r=t.measureViewportBox(),o=t.current,i=getComputedStyle(o),{display:a}=i,s={};a==="none"&&t.setStaticValue("display",e.display||"block"),n.forEach(u=>{s[u]=Ni[u](r,i)}),t.render();const l=t.measureViewportBox();return n.forEach(u=>{const c=t.getValue(u);c&&c.jump(s[u]),e[u]=Ni[u](l,i)}),e},GF=(e,t,n={},r={})=>{t={...t},r={...r};const o=Object.keys(t).filter(l6);let i=[],a=!1;const s=[];if(o.forEach(l=>{const u=e.getValue(l);if(!e.hasValue(l))return;let c=n[l],f=la(c);const d=t[l];let y;if(bu(d)){const C=d.length,v=d[0]===null?1:0;c=d[v],f=la(c);for(let S=v;S=0?window.pageYOffset:null,u=WF(t,e,s);return i.length&&i.forEach(([c,f])=>{e.getValue(c).set(f)}),e.render(),vc&&l!==null&&window.scrollTo({top:l}),{target:u,transitionEnd:r}}else return{target:t,transitionEnd:r}};function KF(e,t,n,r){return BF(t)?GF(e,t,n,r):{target:t,transitionEnd:r}}const ZF=(e,t,n,r)=>{const o=DF(e,t,r);return t=o.target,r=o.transitionEnd,KF(e,t,n,r)},Fh={current:null},u6={current:!1};function qF(){if(u6.current=!0,!!vc)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Fh.current=e.matches;e.addListener(t),t()}else Fh.current=!1}function XF(e,t,n){const{willChange:r}=t;for(const o in t){const i=t[o],a=n[o];if(Bt(i))e.addValue(o,i),Ou(r)&&r.add(o);else if(Bt(a))e.addValue(o,Ai(i,{owner:e})),Ou(r)&&r.remove(o);else if(a!==i)if(e.hasValue(o)){const s=e.getValue(o);!s.hasAnimated&&s.set(i)}else{const s=e.getStaticValue(o);e.addValue(o,Ai(s!==void 0?s:i,{owner:e}))}}for(const o in n)t[o]===void 0&&e.removeValue(o);return t}const G1=new WeakMap,c6=Object.keys(hs),QF=c6.length,K1=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],YF=ym.length;class JF{constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:o,visualState:i},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,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.scheduleRender=()=>$e.render(this.render,!1,!0);const{latestValues:s,renderState:l}=i;this.latestValues=s,this.baseTarget={...s},this.initialValues=n.initial?{...s}:{},this.renderState=l,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=o,this.options=a,this.isControllingVariants=Cc(n),this.isVariantNode=Z5(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:u,...c}=this.scrapeMotionValuesFromProps(n,{});for(const f in c){const d=c[f];s[f]!==void 0&&Bt(d)&&(d.set(s[f],!1),Ou(u)&&u.add(f))}}scrapeMotionValuesFromProps(t,n){return{}}mount(t){this.current=t,G1.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,r)=>this.bindToMotionValue(r,n)),u6.current||qF(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Fh.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){G1.delete(this.current),this.projection&&this.projection.unmount(),hr(this.notifyUpdate),hr(this.render),this.valueSubscriptions.forEach(t=>t()),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)this.features[t].unmount();this.current=null}bindToMotionValue(t,n){const r=Vo.has(t),o=n.on("change",a=>{this.latestValues[t]=a,this.props.onUpdate&&$e.update(this.notifyUpdate,!1,!0),r&&this.projection&&(this.projection.isTransformDirty=!0)}),i=n.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,()=>{o(),i()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}loadFeatures({children:t,...n},r,o,i){let a,s;for(let l=0;lthis.scheduleRender(),animationType:typeof u=="string"?u:"both",initialPromotionConfig:i,layoutScroll:d,layoutRoot:y})}return s}updateFeatures(){for(const t in this.features){const n=this.features[t];n.isMounted?n.update():(n.mount(),n.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):et()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}makeTargetAnimatable(t,n=!0){return this.makeTargetAnimatableFromInstance(t,this.props,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 r=0;rn.variantChildren.delete(t)}addValue(t,n){n!==this.values.get(t)&&(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 r=this.values.get(t);return r===void 0&&n!==void 0&&(r=Ai(n,{owner:this}),this.addValue(t,r)),r}readValue(t){var n;return this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(n=this.getBaseTargetFromProps(this.props,t))!==null&&n!==void 0?n:this.readValueFromInstance(this.current,t,this.options)}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props,o=typeof r=="string"||typeof r=="object"?(n=Tm(this.props,r))===null||n===void 0?void 0:n[t]:void 0;if(r&&o!==void 0)return o;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!Bt(i)?i:this.initialValues[t]!==void 0&&o===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Nm),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class f6 extends JF{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:r}){delete n[t],delete r[t]}makeTargetAnimatableFromInstance({transition:t,transitionEnd:n,...r},{transformValues:o},i){let a=g$(r,t||{},this);if(o&&(n&&(n=o(n)),r&&(r=o(r)),a&&(a=o(a))),i){p$(this,r,a);const s=ZF(this,r,a,n);n=s.transitionEnd,r=s.target}return{transition:t,transitionEnd:n,...r}}}function ej(e){return window.getComputedStyle(e)}class tj extends f6{readValueFromInstance(t,n){if(Vo.has(n)){const r=Lm(n);return r&&r.default||0}else{const r=ej(t),o=(Y5(n)?r.getPropertyValue(n):r[n])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:n}){return Y4(t,n)}build(t,n,r,o){xm(t,n,r,o.transformTemplate)}scrapeMotionValuesFromProps(t,n){return Pm(t,n)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Bt(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}renderInstance(t,n,r,o){o4(t,n,r,o)}}class nj extends f6{constructor(){super(...arguments),this.isSVGTag=!1}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Vo.has(n)){const r=Lm(n);return r&&r.default||0}return n=i4.has(n)?n:gm(n),t.getAttribute(n)}measureInstanceViewportBox(){return et()}scrapeMotionValuesFromProps(t,n){return s4(t,n)}build(t,n,r,o){bm(t,n,r,this.isSVGTag,o.transformTemplate)}renderInstance(t,n,r,o){a4(t,n,r,o)}mount(t){this.isSVGTag=Em(t.tagName),super.mount(t)}}const rj=(e,t)=>Sm(e)?new nj(t,{enableHardwareAcceleration:!1}):new tj(t,{enableHardwareAcceleration:!0}),oj={layout:{ProjectionNode:s6,MeasureLayout:e6}},ij={...L$,...Qk,...NF,...oj},aj=ak((e,t)=>_k(e,t,ij,rj));function d6(){const e=h.useRef(!1);return mm(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function sj(){const e=d6(),[t,n]=h.useState(0),r=h.useCallback(()=>{e.current&&n(t+1)},[t]);return[h.useCallback(()=>$e.postRender(r),[r]),t]}class lj extends h.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=this.props.sizeRef.current;r.height=n.offsetHeight||0,r.width=n.offsetWidth||0,r.top=n.offsetTop,r.left=n.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function uj({children:e,isPresent:t}){const n=h.useId(),r=h.useRef(null),o=h.useRef({width:0,height:0,top:0,left:0});return h.useInsertionEffect(()=>{const{width:i,height:a,top:s,left:l}=o.current;if(t||!r.current||!i||!a)return;r.current.dataset.motionPopId=n;const u=document.createElement("style");return document.head.appendChild(u),u.sheet&&u.sheet.insertRule(` [data-motion-pop-id="${n}"] { position: absolute !important; width: ${i}px !important; height: ${a}px !important; top: ${s}px !important; left: ${l}px !important; } `),()=>{document.head.removeChild(u)}},[t]),h.createElement(lj,{isPresent:t,childRef:r,sizeRef:o},h.cloneElement(e,{ref:r}))}const Df=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:o,presenceAffectsLayout:i,mode:a})=>{const s=l4(cj),l=h.useId(),u=h.useMemo(()=>({id:l,initial:t,isPresent:n,custom:o,onExitComplete:c=>{s.set(c,!0);for(const f of s.values())if(!f)return;r&&r()},register:c=>(s.set(c,!1),()=>s.delete(c))}),i?void 0:[n]);return h.useMemo(()=>{s.forEach((c,f)=>s.set(f,!1))},[n]),h.useEffect(()=>{!n&&!s.size&&r&&r()},[n]),a==="popLayout"&&(e=h.createElement(uj,{isPresent:n},e)),h.createElement(gc.Provider,{value:u},e)};function cj(){return new Map}function fj(e){return h.useEffect(()=>()=>e(),[])}const co=e=>e.key||"";function dj(e,t){e.forEach(n=>{const r=co(n);t.set(r,n)})}function hj(e){const t=[];return h.Children.forEach(e,n=>{h.isValidElement(n)&&t.push(n)}),t}const pj=({children:e,custom:t,initial:n=!0,onExitComplete:r,exitBeforeEnter:o,presenceAffectsLayout:i=!0,mode:a="sync"})=>{const s=h.useContext(Cm).forceRender||sj()[0],l=d6(),u=hj(e);let c=u;const f=h.useRef(new Map).current,d=h.useRef(c),y=h.useRef(new Map).current,C=h.useRef(!0);if(mm(()=>{C.current=!1,dj(u,y),d.current=c}),fj(()=>{C.current=!0,y.clear(),f.clear()}),C.current)return h.createElement(h.Fragment,null,c.map(p=>h.createElement(Df,{key:co(p),isPresent:!0,initial:n?void 0:!1,presenceAffectsLayout:i,mode:a},p)));c=[...c];const v=d.current.map(co),S=u.map(co),g=v.length;for(let p=0;p{if(S.indexOf(m)!==-1)return;const w=y.get(m);if(!w)return;const E=v.indexOf(m);let x=p;if(!x){const b=()=>{f.delete(m);const T=Array.from(y.keys()).filter(P=>!S.includes(P));if(T.forEach(P=>y.delete(P)),d.current=u.filter(P=>{const O=co(P);return O===m||T.includes(O)}),!f.size){if(l.current===!1)return;s(),r&&r()}};x=h.createElement(Df,{key:co(w),isPresent:!1,onExitComplete:b,custom:t,presenceAffectsLayout:i,mode:a},w),f.set(m,x)}c.splice(E,0,x)}),c=c.map(p=>{const m=p.key;return f.has(m)?p:h.createElement(Df,{key:co(p),isPresent:!0,presenceAffectsLayout:i,mode:a},p)}),h.createElement(h.Fragment,null,f.size?c:c.map(p=>h.cloneElement(p)))};function mj(){return L.jsx(pj,{mode:"sync",children:L.jsx(aj.div,{exit:{opacity:0},animate:{opacity:1},transition:{duration:3},className:XR.loaderContainer,children:L.jsx(WR,{})})})}const gj=o8([{element:L.jsx(UR,{}),children:[{path:"/",lazy:()=>Wo(()=>import("./index-7678783d.js"),["assets/index-7678783d.js","assets/Header-032400ec.js","assets/TextArea-8951d75f.js","assets/Header-0ca6d921.css","assets/AILineageExplorerLogo-fb8c1748.js","assets/routes-17d4ed4d.js","assets/AILineageExplorerLogo-d7a79808.css","assets/index-97984b1a.js","assets/gapSize-a2278ff3.js","assets/index-7328dcd5.js","assets/index-e53189d4.css"])},{path:"/not-found",lazy:()=>Wo(()=>import("./notFound-982beec1.js"),["assets/notFound-982beec1.js","assets/AILineageExplorerLogo-fb8c1748.js","assets/routes-17d4ed4d.js","assets/AILineageExplorerLogo-d7a79808.css","assets/index-97984b1a.js","assets/gapSize-a2278ff3.js","assets/notFound-e97b3f4d.css","assets/style-fb1f0fdc.css"])},{path:"/explorer/lineage/:owner/:repo",lazy:()=>Wo(()=>import("./index-c05f1d18.js"),["assets/index-c05f1d18.js","assets/stripPrefix-300c9267.js","assets/TextArea-8951d75f.js","assets/routes-17d4ed4d.js","assets/stripPrefix-caaf2285.css","assets/index-7328dcd5.js","assets/AILineageExplorerLogo-fb8c1748.js","assets/AILineageExplorerLogo-d7a79808.css","assets/index-8f60c92b.css","assets/style-fb1f0fdc.css"]),id:"graph",children:[{path:":nodeCid/expanded?",lazy:()=>Wo(()=>import("./drawer-28ac8438.js"),["assets/drawer-28ac8438.js","assets/stripPrefix-300c9267.js","assets/TextArea-8951d75f.js","assets/routes-17d4ed4d.js","assets/stripPrefix-caaf2285.css","assets/Header-032400ec.js","assets/Header-0ca6d921.css","assets/gapSize-a2278ff3.js","assets/drawer-47a83320.css"])}]},{path:"/explorer/lineage",lazy:()=>Wo(()=>import("./index-c05f1d18.js"),["assets/index-c05f1d18.js","assets/stripPrefix-300c9267.js","assets/TextArea-8951d75f.js","assets/routes-17d4ed4d.js","assets/stripPrefix-caaf2285.css","assets/index-7328dcd5.js","assets/AILineageExplorerLogo-fb8c1748.js","assets/AILineageExplorerLogo-d7a79808.css","assets/index-8f60c92b.css","assets/style-fb1f0fdc.css"]),id:"view",children:[{path:":nodeCid/expanded?",lazy:()=>Wo(()=>import("./drawer-28ac8438.js"),["assets/drawer-28ac8438.js","assets/stripPrefix-300c9267.js","assets/TextArea-8951d75f.js","assets/routes-17d4ed4d.js","assets/stripPrefix-caaf2285.css","assets/Header-032400ec.js","assets/Header-0ca6d921.css","assets/gapSize-a2278ff3.js","assets/drawer-47a83320.css"])}]}]}]);c3(document.getElementById("root")).render(L.jsx(Z.StrictMode,{children:L.jsx(fR,{children:L.jsx(h8,{router:gj,fallbackElement:L.jsx(mj,{})})})}));export{Wt as $,vr as A,kj as B,dt as C,iw as D,Lj as E,K3 as F,Aw as G,aw as H,Zd as I,It as J,oe as K,bj as L,$j as M,ll as N,Fj as O,dC as P,kg as Q,Z as R,Tj as S,G3 as T,lb as U,ub as V,Xo as W,Zn as X,Qd as Y,fb as Z,Fe as _,_o as a,M8 as a$,Xd as a0,Rg as a1,qd as a2,sb as a3,cb as a4,pb as a5,Hn as a6,Pn as a7,Pj as a8,oc as a9,jh as aA,jT as aB,am as aC,cM as aD,yM as aE,HO as aF,zO as aG,pM as aH,FM as aI,Dj as aJ,PM as aK,TM as aL,OM as aM,MM as aN,ma as aO,Vj as aP,EM as aQ,kt as aR,Yp as aS,OC as aT,xC as aU,u5 as aV,FP as aW,r5 as aX,NT as aY,Do as aZ,Lt as a_,j3 as aa,TC as ab,Ts as ac,H7 as ad,E7 as ae,AE as af,t5 as ag,n5 as ah,b5 as ai,DT as aj,vj as ak,rc as al,gu as am,ee as an,$o as ao,bP as ap,V as aq,Ee as ar,Es as as,Ps as at,yn as au,Ce as av,Cn as aw,LE as ax,Rj as ay,jn as az,JC as b,Sj as b0,Ej as b1,aj as b2,yj as b3,jj as b4,y8 as b5,Ss as b6,Np as b7,_j as b8,cm as b9,Dv as bA,l5 as bB,Ij as bC,DP as bD,jC as bE,Zw as bF,Vv as bG,Fo as bH,wj as bI,IO as bJ,w8 as bK,zw as bL,l3 as bM,F3 as bN,MT as bO,RT as bP,Ra as bQ,O8 as bR,rE as bS,$E as bT,Bj as ba,ws as bb,pj as bc,N9 as bd,xj as be,Cj as bf,L5 as bg,An as bh,Aj as bi,n7 as bj,mT as bk,rm as bl,Os as bm,VP as bn,Rv as bo,XE as bp,Cu as bq,V5 as br,YC as bs,BP as bt,a7 as bu,aM as bv,r7 as bw,Nj as bx,Zp as by,o5 as bz,le as c,Ip as d,is as e,Xp as f,wb as g,P3 as h,zv as i,L as j,KC as k,Kt as l,Kn as m,U as n,_p as o,Y as p,lw as q,h as r,Oj as s,ns as t,xe as u,Mj as v,Qt as w,Je as x,W3 as y,zd as z};