function N1(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 q4="modulepreload",X4=function(e){return"/"+e},Em={},zo=function(t,n,r){if(!n||n.length===0)return t();const o=document.getElementsByTagName("link");return Promise.all(n.map(i=>{if(i=X4(i),i in Em)return;Em[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":q4,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 z$=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ph(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var I1={exports:{}},Su={},_1={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 us=Symbol.for("react.element"),Q4=Symbol.for("react.portal"),Y4=Symbol.for("react.fragment"),J4=Symbol.for("react.strict_mode"),e6=Symbol.for("react.profiler"),t6=Symbol.for("react.provider"),n6=Symbol.for("react.context"),r6=Symbol.for("react.forward_ref"),o6=Symbol.for("react.suspense"),i6=Symbol.for("react.memo"),a6=Symbol.for("react.lazy"),Pm=Symbol.iterator;function s6(e){return e===null||typeof e!="object"?null:(e=Pm&&e[Pm]||e["@@iterator"],typeof e=="function"?e:null)}var D1={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},V1=Object.assign,B1={};function Ai(e,t,n){this.props=e,this.context=t,this.refs=B1,this.updater=n||D1}Ai.prototype.isReactComponent={};Ai.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")};Ai.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function z1(){}z1.prototype=Ai.prototype;function Th(e,t,n){this.props=e,this.context=t,this.refs=B1,this.updater=n||D1}var Oh=Th.prototype=new z1;Oh.constructor=Th;V1(Oh,Ai.prototype);Oh.isPureReactComponent=!0;var Tm=Array.isArray,H1=Object.prototype.hasOwnProperty,Mh={current:null},U1={key:!0,ref:!0,__self:!0,__source:!0};function W1(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)H1.call(t,r)&&!U1.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,A(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&&!F());){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 F(){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,A(E))),M},e.unstable_shouldYield=F,e.unstable_wrapCallback=function(M){var N=d;return function(){var B=d;d=N;try{return M.apply(this,arguments)}finally{d=B}}}})(q1);Z1.exports=q1;var y6=Z1.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 X1=h,Qt=y6;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"),Lf=Object.prototype.hasOwnProperty,C6=/^[: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]*$/,Mm={},Rm={};function S6(e){return Lf.call(Rm,e)?!0:Lf.call(Mm,e)?!1:C6.test(e)?Rm[e]=!0:(Mm[e]=!0,!1)}function x6(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 w6(e,t,n,r){if(t===null||typeof t>"u"||x6(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 vt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){vt[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];vt[t]=new Ft(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){vt[e]=new Ft(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){vt[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){vt[e]=new Ft(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){vt[e]=new Ft(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){vt[e]=new Ft(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){vt[e]=new Ft(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){vt[e]=new Ft(e,5,!1,e.toLowerCase(),null,!1,!1)});var kh=/[\-:]([a-z])/g;function Lh(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(kh,Lh);vt[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(kh,Lh);vt[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(kh,Lh);vt[t]=new Ft(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){vt[e]=new Ft(e,1,!1,e.toLowerCase(),null,!1,!1)});vt.xlinkHref=new Ft("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){vt[e]=new Ft(e,1,!1,e.toLowerCase(),null,!0,!0)});function Fh(e,t,n,r){var o=vt.hasOwnProperty(t)?vt[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{wc=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?aa(e):""}function b6(e){switch(e.tag){case 5:return aa(e.type);case 16:return aa("Lazy");case 13:return aa("Suspense");case 19:return aa("SuspenseList");case 0:case 2:case 15:return e=bc(e.type,!1),e;case 11:return e=bc(e.type.render,!1),e;case 1:return e=bc(e.type,!0),e;default:return""}}function jf(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 qo:return"Fragment";case Zo:return"Portal";case Ff:return"Profiler";case $h:return"StrictMode";case $f:return"Suspense";case Af:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case J1:return(e.displayName||"Context")+".Consumer";case Y1:return(e._context.displayName||"Context")+".Provider";case Ah:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case jh:return t=e.displayName||null,t!==null?t:jf(e.type)||"Memo";case wr:t=e._payload,e=e._init;try{return jf(e(t))}catch{}}return null}function E6(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 jf(t);case 8:return t===$h?"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 Br(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function ty(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function P6(e){var t=ty(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 Ds(e){e._valueTracker||(e._valueTracker=P6(e))}function ny(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=ty(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function jl(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 Nf(e,t){var n=t.checked;return ze({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Lm(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Br(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 ry(e,t){t=t.checked,t!=null&&Fh(e,"checked",t,!1)}function If(e,t){ry(e,t);var n=Br(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")?_f(e,t.type,n):t.hasOwnProperty("defaultValue")&&_f(e,t.type,Br(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Fm(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 _f(e,t,n){(t!=="number"||jl(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var sa=Array.isArray;function mi(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=Vs.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function $a(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var da={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},T6=["Webkit","ms","Moz","O"];Object.keys(da).forEach(function(e){T6.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),da[t]=da[e]})});function sy(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||da.hasOwnProperty(e)&&da[e]?(""+t).trim():t+"px"}function ly(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=sy(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var O6=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 Bf(e,t){if(t){if(O6[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 zf(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 Hf=null;function Nh(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Uf=null,gi=null,vi=null;function jm(e){if(e=ds(e)){if(typeof Uf!="function")throw Error(G(280));var t=e.stateNode;t&&(t=Pu(t),Uf(e.stateNode,e.type,t))}}function uy(e){gi?vi?vi.push(e):vi=[e]:gi=e}function cy(){if(gi){var e=gi,t=vi;if(vi=gi=null,jm(e),t)for(e=0;e>>=0,e===0?32:31-(_6(e)/D6|0)|0}var Bs=64,zs=4194304;function la(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 Dl(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=la(s):(i&=a,i!==0&&(r=la(i)))}else a=n&~o,a!==0?r=la(a):i!==0&&(r=la(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 cs(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-On(t),e[t]=n}function H6(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=pa),Um=String.fromCharCode(32),Wm=!1;function ky(e,t){switch(e){case"keyup":return vS.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ly(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Xo=!1;function CS(e,t){switch(e){case"compositionend":return Ly(t);case"keypress":return t.which!==32?null:(Wm=!0,Um);case"textInput":return e=t.data,e===Um&&Wm?null:e;default:return null}}function SS(e,t){if(Xo)return e==="compositionend"||!Uh&&ky(e,t)?(e=My(),yl=Bh=Or=null,Xo=!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=qm(n)}}function jy(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?jy(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Ny(){for(var e=window,t=jl();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=jl(e.document)}return t}function Wh(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 RS(e){var t=Ny(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&jy(n.ownerDocument.documentElement,n)){if(r!==null&&Wh(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=Xm(n,i);var a=Xm(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,Qo=null,Xf=null,ga=null,Qf=!1;function Qm(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Qf||Qo==null||Qo!==jl(r)||(r=Qo,"selectionStart"in r&&Wh(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}),ga&&Da(ga,r)||(ga=r,r=zl(Xf,"onSelect"),0ei||(e.current=rd[ei],rd[ei]=null,ei--)}function Le(e,t){ei++,rd[ei]=e.current,e.current=t}var zr={},Et=Kr(zr),Nt=Kr(!1),wo=zr;function bi(e,t){var n=e.type.contextTypes;if(!n)return zr;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 It(e){return e=e.childContextTypes,e!=null}function Ul(){Ne(Nt),Ne(Et)}function o0(e,t,n){if(Et.current!==zr)throw Error(G(168));Le(Et,t),Le(Nt,n)}function Wy(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,E6(e)||"Unknown",o));return ze({},n,r)}function Wl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||zr,wo=Et.current,Le(Et,e),Le(Nt,Nt.current),!0}function i0(e,t,n){var r=e.stateNode;if(!r)throw Error(G(169));n?(e=Wy(e,t,wo),r.__reactInternalMemoizedMergedChildContext=e,Ne(Nt),Ne(Et),Le(Et,e)):Ne(Nt),Le(Nt,n)}var qn=null,Tu=!1,Ic=!1;function Gy(e){qn===null?qn=[e]:qn.push(e)}function BS(e){Tu=!0,Gy(e)}function Zr(){if(!Ic&&qn!==null){Ic=!0;var e=0,t=be;try{var n=qn;for(be=1;e>=a,o-=a,Qn=1<<32-On(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&&eo(g,T),E;if(b===null){for(;TT?(P=b,b=null):P=b.sibling;var F=d(g,b,O.value,w);if(F===null){b===null&&(b=P);break}e&&b&&F.alternate===null&&t(g,b),p=i(F,p,T),x===null?E=F:x.sibling=F,x=F,b=P}if(O.done)return n(g,b),_e&&eo(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&&eo(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&&eo(g,T),E}function S(g,p,m,w){if(typeof m=="object"&&m!==null&&m.type===qo&&m.key===null&&(m=m.props.children),typeof m=="object"&&m!==null){switch(m.$$typeof){case _s:e:{for(var E=m.key,x=p;x!==null;){if(x.key===E){if(E=m.type,E===qo){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===wr&&d0(E)===x.type){n(g,x.sibling),p=o(x,m.props),p.ref=Zi(g,x,m),p.return=g,g=p;break e}n(g,x);break}else t(g,x);x=x.sibling}m.type===qo?(p=Co(m.props.children,g.mode,w,m.key),p.return=g,g=p):(w=Tl(m.type,m.key,m.props,null,g.mode,w),w.ref=Zi(g,p,m),w.return=g,g=w)}return a(g);case Zo: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=Wc(m,g.mode,w),p.return=g,g=p}return a(g);case wr:return x=m._init,S(g,p,x(m._payload),w)}if(sa(m))return C(g,p,m,w);if(Hi(m))return v(g,p,m,w);qs(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=Uc(m,g.mode,w),p.return=g,g=p),a(g)):n(g,p)}return S}var Pi=e2(!0),t2=e2(!1),hs={},zn=Kr(hs),Ha=Kr(hs),Ua=Kr(hs);function co(e){if(e===hs)throw Error(G(174));return e}function ep(e,t){switch(Le(Ua,t),Le(Ha,e),Le(zn,hs),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Vf(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Vf(t,e)}Ne(zn),Le(zn,t)}function Ti(){Ne(zn),Ne(Ha),Ne(Ua)}function n2(e){co(Ua.current);var t=co(zn.current),n=Vf(t,e.type);t!==n&&(Le(Ha,e),Le(zn,n))}function tp(e){Ha.current===e&&(Ne(zn),Ne(Ha))}var De=Kr(0);function Ql(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 _c=[];function np(){for(var e=0;e<_c.length;e++)_c[e]._workInProgressVersionPrimary=null;_c.length=0}var xl=fr.ReactCurrentDispatcher,Dc=fr.ReactCurrentBatchConfig,Eo=0,Be=null,it=null,ut=null,Yl=!1,va=!1,Wa=0,HS=0;function St(){throw Error(G(321))}function rp(e,t){if(t===null)return!1;for(var n=0;nn?n:4,e(!0);var r=Dc.transition;Dc.transition={};try{e(!1),t()}finally{be=n,Dc.transition=r}}function y2(){return pn().memoizedState}function WS(e,t,n){var r=Ir(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},C2(e))S2(t,n);else if(n=Xy(e,t,n,r),n!==null){var o=Mt();Mn(n,e,r,o),x2(n,t,r)}}function GS(e,t,n){var r=Ir(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(C2(e))S2(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,Ln(s,a)){var l=t.interleaved;l===null?(o.next=o,Yh(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}finally{}n=Xy(e,t,o,r),n!==null&&(o=Mt(),Mn(n,e,r,o),x2(n,t,r))}}function C2(e){var t=e.alternate;return e===Be||t!==null&&t===Be}function S2(e,t){va=Yl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function x2(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,_h(e,n)}}var Jl={readContext:hn,useCallback:St,useContext:St,useEffect:St,useImperativeHandle:St,useInsertionEffect:St,useLayoutEffect:St,useMemo:St,useReducer:St,useRef:St,useState:St,useDebugValue:St,useDeferredValue:St,useTransition:St,useMutableSource:St,useSyncExternalStore:St,useId:St,unstable_isNewReconciler:!1},KS={readContext:hn,useCallback:function(e,t){return _n().memoizedState=[e,t===void 0?null:t],e},useContext:hn,useEffect:p0,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,wl(4194308,4,h2.bind(null,t,e),n)},useLayoutEffect:function(e,t){return wl(4194308,4,e,t)},useInsertionEffect:function(e,t){return wl(4,2,e,t)},useMemo:function(e,t){var n=_n();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=_n();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=WS.bind(null,Be,e),[r.memoizedState,e]},useRef:function(e){var t=_n();return e={current:e},t.memoizedState=e},useState:h0,useDebugValue:sp,useDeferredValue:function(e){return _n().memoizedState=e},useTransition:function(){var e=h0(!1),t=e[0];return e=US.bind(null,e[1]),_n().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Be,o=_n();if(_e){if(n===void 0)throw Error(G(407));n=n()}else{if(n=t(),ct===null)throw Error(G(349));Eo&30||i2(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,p0(s2.bind(null,r,i,e),[e]),r.flags|=2048,Ka(9,a2.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=_n(),t=ct.identifierPrefix;if(_e){var n=Yn,r=Qn;n=(r&~(1<<32-On(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Wa++,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[Dn]=t,e[za]=r,k2(e,t,!1,!1),t.stateNode=e;e:{switch(a=zf(n,r),n){case"dialog":je("cancel",e),je("close",e),o=r;break;case"iframe":case"object":case"embed":je("load",e),o=r;break;case"video":case"audio":for(o=0;oMi&&(t.flags|=128,r=!0,qi(i,!1),t.lanes=4194304)}else{if(!r)if(e=Ql(a),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),qi(i,!0),i.tail===null&&i.tailMode==="hidden"&&!a.alternate&&!_e)return xt(t),null}else 2*Ye()-i.renderingStartTime>Mi&&n!==1073741824&&(t.flags|=128,r=!0,qi(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):(xt(t),null);case 22:case 23:return hp(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Ut&1073741824&&(xt(t),t.subtreeFlags&6&&(t.flags|=8192)):xt(t),null;case 24:return null;case 25:return null}throw Error(G(156,t.tag))}function tx(e,t){switch(Kh(t),t.tag){case 1:return It(t.type)&&Ul(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ti(),Ne(Nt),Ne(Et),np(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return tp(t),null;case 13:if(Ne(De),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(G(340));Ei()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Ne(De),null;case 4:return Ti(),null;case 10:return Qh(t.type._context),null;case 22:case 23:return hp(),null;case 24:return null;default:return null}}var Qs=!1,bt=!1,nx=typeof WeakSet=="function"?WeakSet:Set,Q=null;function oi(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 md(e,t,n){try{n()}catch(r){We(e,t,r)}}var b0=!1;function rx(e,t){if(Yf=Vl,e=Ny(),Wh(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(Jf={focusedElem:e,selectionRange:n},Vl=!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:xn(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=b0,b0=!1,C}function ya(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&&md(t,n,i)}o=o.next}while(o!==r)}}function Ru(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 gd(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 $2(e){var t=e.alternate;t!==null&&(e.alternate=null,$2(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Dn],delete t[za],delete t[nd],delete t[DS],delete t[VS])),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 A2(e){return e.tag===5||e.tag===3||e.tag===4}function E0(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||A2(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 vd(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=Hl));else if(r!==4&&(e=e.child,e!==null))for(vd(e,t,n),e=e.sibling;e!==null;)vd(e,t,n),e=e.sibling}function yd(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(yd(e,t,n),e=e.sibling;e!==null;)yd(e,t,n),e=e.sibling}var pt=null,wn=!1;function Cr(e,t,n){for(n=n.child;n!==null;)j2(e,t,n),n=n.sibling}function j2(e,t,n){if(Bn&&typeof Bn.onCommitFiberUnmount=="function")try{Bn.onCommitFiberUnmount(xu,n)}catch{}switch(n.tag){case 5:bt||oi(n,t);case 6:var r=pt,o=wn;pt=null,Cr(e,t,n),pt=r,wn=o,pt!==null&&(wn?(e=pt,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):pt.removeChild(n.stateNode));break;case 18:pt!==null&&(wn?(e=pt,n=n.stateNode,e.nodeType===8?Nc(e.parentNode,n):e.nodeType===1&&Nc(e,n),Ia(e)):Nc(pt,n.stateNode));break;case 4:r=pt,o=wn,pt=n.stateNode.containerInfo,wn=!0,Cr(e,t,n),pt=r,wn=o;break;case 0:case 11:case 14:case 15:if(!bt&&(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)&&md(n,t,a),o=o.next}while(o!==r)}Cr(e,t,n);break;case 1:if(!bt&&(oi(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)}Cr(e,t,n);break;case 21:Cr(e,t,n);break;case 22:n.mode&1?(bt=(r=bt)||n.memoizedState!==null,Cr(e,t,n),bt=r):Cr(e,t,n);break;default:Cr(e,t,n)}}function P0(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new nx),t.forEach(function(r){var o=dx.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function Cn(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*ix(r/1960))-r,10e?16:e,Mr===null)var r=!1;else{if(e=Mr,Mr=null,nu=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()-fp?yo(e,0):cp|=n),_t(e,t)}function H2(e,t){t===0&&(e.mode&1?(t=zs,zs<<=1,!(zs&130023424)&&(zs=4194304)):t=1);var n=Mt();e=ar(e,t),e!==null&&(cs(e,t,n),_t(e,n))}function fx(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),H2(e,n)}function dx(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),H2(e,n)}var U2;U2=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Nt.current)jt=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return jt=!1,JS(e,t,n);jt=!!(e.flags&131072)}else jt=!1,_e&&t.flags&1048576&&Ky(t,Kl,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;bl(e,t),e=t.pendingProps;var o=bi(t,Et.current);Ci(t,n),o=op(null,t,r,e,o,n);var i=ip();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,It(r)?(i=!0,Wl(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Jh(t),o.updater=Ou,t.stateNode=o,o._reactInternals=t,ld(t,r,e,n),t=fd(null,t,r,!0,i,n)):(t.tag=0,_e&&i&&Gh(t),Ot(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(bl(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=px(r),e=xn(r,e),o){case 0:t=cd(null,t,r,e,n);break e;case 1:t=S0(null,t,r,e,n);break e;case 11:t=y0(null,t,r,e,n);break e;case 14:t=C0(null,t,r,xn(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:xn(r,o),cd(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:xn(r,o),S0(e,t,r,o,n);case 3:e:{if(O2(t),e===null)throw Error(G(387));r=t.pendingProps,i=t.memoizedState,o=i.element,Qy(e,t),Xl(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=Oi(Error(G(423)),t),t=x0(e,t,r,n,o);break e}else if(r!==o){o=Oi(Error(G(424)),t),t=x0(e,t,r,n,o);break e}else for(Gt=Ar(t.stateNode.containerInfo.firstChild),qt=t,_e=!0,Tn=null,n=t2(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Ei(),r===o){t=sr(e,t,n);break e}Ot(e,t,r,n)}t=t.child}return t;case 5:return n2(t),e===null&&id(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,a=o.children,ed(r,o)?a=null:i!==null&&ed(r,i)&&(t.flags|=32),T2(e,t),Ot(e,t,a,n),t.child;case 6:return e===null&&id(t),null;case 13:return M2(e,t,n);case 4:return ep(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Pi(t,null,r,n):Ot(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:xn(r,o),y0(e,t,r,o,n);case 7:return Ot(e,t,t.pendingProps,n),t.child;case 8:return Ot(e,t,t.pendingProps.children,n),t.child;case 12:return Ot(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(Zl,r._currentValue),r._currentValue=a,i!==null)if(Ln(i.value,a)){if(i.children===o.children&&!Nt.current){t=sr(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=er(-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),ad(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),ad(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}Ot(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Ci(t,n),o=hn(o),r=r(o),t.flags|=1,Ot(e,t,r,n),t.child;case 14:return r=t.type,o=xn(r,t.pendingProps),o=xn(r.type,o),C0(e,t,r,o,n);case 15:return E2(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:xn(r,o),bl(e,t),t.tag=1,It(r)?(e=!0,Wl(t)):e=!1,Ci(t,n),Jy(t,r,o),ld(t,r,o,n),fd(null,t,r,!0,e,n);case 19:return R2(e,t,n);case 22:return P2(e,t,n)}throw Error(G(156,t.tag))};function W2(e,t){return vy(e,t)}function hx(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 fn(e,t,n,r){return new hx(e,t,n,r)}function mp(e){return e=e.prototype,!(!e||!e.isReactComponent)}function px(e){if(typeof e=="function")return mp(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Ah)return 11;if(e===jh)return 14}return 2}function _r(e,t){var n=e.alternate;return n===null?(n=fn(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 Tl(e,t,n,r,o,i){var a=2;if(r=e,typeof e=="function")mp(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case qo:return Co(n.children,o,i,t);case $h:a=8,o|=8;break;case Ff:return e=fn(12,n,t,o|2),e.elementType=Ff,e.lanes=i,e;case $f:return e=fn(13,n,t,o),e.elementType=$f,e.lanes=i,e;case Af:return e=fn(19,n,t,o),e.elementType=Af,e.lanes=i,e;case ey:return Lu(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Y1:a=10;break e;case J1:a=9;break e;case Ah:a=11;break e;case jh:a=14;break e;case wr:a=16,r=null;break e}throw Error(G(130,e==null?e:typeof e,""))}return t=fn(a,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function Co(e,t,n,r){return e=fn(7,e,r,t),e.lanes=n,e}function Lu(e,t,n,r){return e=fn(22,e,r,t),e.elementType=ey,e.lanes=n,e.stateNode={isHidden:!1},e}function Uc(e,t,n){return e=fn(6,e,null,t),e.lanes=n,e}function Wc(e,t,n){return t=fn(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function mx(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=Pc(0),this.expirationTimes=Pc(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Pc(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function gp(e,t,n,r,o,i,a,s,l){return e=new mx(e,t,n,s,l),t===1?(t=1,i===!0&&(t|=8)):t=0,i=fn(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Jh(i),e}function gx(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(q2)}catch(e){console.error(e)}}q2(),K1.exports=Jt;var ps=K1.exports;const X2=Ph(ps),Q2=N1({__proto__:null,default:X2},[ps]);var Y2,$0=ps;Y2=$0.createRoot,$0.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 Oo(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function wx(){return Math.random().toString(36).substr(2,8)}function j0(e,t){return{usr:e.state,key:e.key,idx:t}}function qa(e,t,n,r){return n===void 0&&(n=null),Ge({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?dr(t):t,{state:n,key:t&&t.key||r||wx()})}function Mo(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 dr(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 bx(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=qa(v.location,S,g);n&&n(p,S),u=c()+1;let m=j0(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=qa(v.location,S,g);n&&n(p,S),u=c();let m=j0(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:Mo(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(A0,f),l=S,()=>{o.removeEventListener(A0,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 Ex=new Set(["lazy","caseSensitive","path","id","index","children"]);function Px(e){return e.index===!0}function bd(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`),Px(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=bd(o.children,t,a,r)),l}})}function ai(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?dr(t):t,o=_i(r.pathname||"/",n);if(o==null)return null;let i=e3(e);Tx(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=tr([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+'".')),e3(i.children,t,c,u)),!(i.path==null&&!i.index)&&t.push({path:u,score:$x(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 t3(i.path))o(i,a,l)}),t}function t3(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=t3(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 Tx(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:Ax(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const Ox=/^:\w+$/,Mx=3,Rx=2,kx=1,Lx=10,Fx=-2,N0=e=>e==="*";function $x(e,t){let n=e.split("/"),r=n.length;return n.some(N0)&&(r+=Fx),t&&(r+=Rx),n.filter(o=>!N0(o)).reduce((o,i)=>o+(Ox.test(i)?Mx:i===""?kx:Lx),r)}function Ax(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 jx(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]=Dx(C||"",d),u},{}),pathname:i,pathnameBase:a,pattern:e}}function Ix(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Oo(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 _x(e){try{return decodeURI(e)}catch(t){return Oo(!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 Dx(e,t){try{return decodeURIComponent(e)}catch(n){return Oo(!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 _i(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 Vx(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?dr(e):e;return{pathname:n?n.startsWith("/")?n:Bx(n,t):t,search:Hx(r),hash:Ux(o)}}function Bx(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 Gc(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 n3(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Sp(e,t){let n=n3(e);return t?n.map((r,o)=>o===e.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function xp(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=dr(e):(o=Ge({},e),pe(!o.pathname||!o.pathname.includes("?"),Gc("?","pathname","search",o)),pe(!o.pathname||!o.pathname.includes("#"),Gc("#","pathname","hash",o)),pe(!o.search||!o.search.includes("#"),Gc("#","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=Vx(o,s),u=a&&a!=="/"&&a.endsWith("/"),c=(i||a===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(u||c)&&(l.pathname+="/"),l}const tr=e=>e.join("/").replace(/\/\/+/g,"/"),zx=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Hx=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Ux=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class I0 extends Error{}class Wx{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 I0("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 I0)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]:Kx(o)})},{})}get pendingKeys(){return Array.from(this.pendingKeysSet)}}function Gx(e){return e instanceof Promise&&e._tracked===!0}function Kx(e){if(!Gx(e))return e;if(e._error)throw e._error;return e._data}const H$=function(t,n){n===void 0&&(n={});let r=typeof n=="number"?{status:n}:n;return new Wx(t,r)};class wp{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 r3(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const o3=["post","put","patch","delete"],Zx=new Set(o3),qx=["get",...o3],Xx=new Set(qx),Qx=new Set([301,302,303,307,308]),Yx=new Set([307,308]),Kc={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Jx={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Qi={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},i3=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,e9=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),a3="remix-router-transitions";function t9(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=j=>({hasErrorBoundary:k(j)})}else o=e9;let i={},a=bd(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=ai(a,e.history.location,l),g=null;if(S==null){let k=ln(404,{pathname:e.history.location.pathname}),{matches:j,route:_}=W0(a);S=j,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,j=e.hydrationData?e.hydrationData.errors:null;p=S.every(_=>_.route.loader&&_.route.loader.hydrate!==!0&&(k&&k[_.route.id]!==void 0||j&&j[_.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:Kc,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,F=new Map,D=null,$=!1,z=!1,H=[],A=[],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 yt(){if(c=e.history.listen(k=>{let{action:j,location:_,delta:W}=k;if(me){me=!1;return}Oo(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=gr({currentLocation:x.location,nextLocation:_,historyAction:j});if(q&&W!=null){me=!0,e.history.go(W*-1),jn(q,{state:"blocked",location:_,proceed(){jn(q,{state:"proceeding",proceed:void 0,reset:void 0,location:_}),e.history.go(W)},reset(){let ae=new Map(x.blockers);ae.set(q,Qi),fe({blockers:ae})}});return}return ke(j,_)}),n){d9(t,F);let k=()=>h9(t,F);t.addEventListener("pagehide",k),D=()=>t.removeEventListener("pagehide",k)}return x.initialized||ke(Qe.Pop,x.location,{initialHydration:!0}),E}function Pt(){c&&c(),D&&D(),f.clear(),P&&P.abort(),x.fetchers.forEach((k,j)=>mr(j)),x.blockers.forEach((k,j)=>$s(j))}function Ze(k){return f.add(k),()=>f.delete(k)}function fe(k,j){j===void 0&&(j={}),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:j.viewTransitionOpts,unstable_flushSync:j.flushSync===!0})),u.v7_fetcherPersist&&(_.forEach(q=>x.fetchers.delete(q)),W.forEach(q=>mr(q)))}function Ct(k,j,_){var W,q;let{flushSync:ae}=_===void 0?{}:_,re=x.actionData!=null&&x.navigation.formMethod!=null&&bn(x.navigation.formMethod)&&x.navigation.state==="loading"&&((W=k.state)==null?void 0:W._isRedirect)!==!0,ie;j.actionData?Object.keys(j.actionData).length>0?ie=j.actionData:ie=null:re?ie=x.actionData:ie=null;let J=j.loaderData?U0(x.loaderData,j.loaderData,j.matches||[],j.errors):x.loaderData,he=x.blockers;he.size>0&&(he=new Map(he),he.forEach((Te,ot)=>he.set(ot,Qi)));let qe=T===!0||x.navigation.formMethod!=null&&bn(x.navigation.formMethod)&&((q=k.state)==null?void 0:q._isRedirect)!==!0;s&&(a=s,s=void 0),$||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=F.get(x.location.pathname);Te&&Te.has(k.pathname)?ue={currentLocation:x.location,nextLocation:k}:F.has(k.pathname)&&(ue={currentLocation:k,nextLocation:x.location})}else if(O){let Te=F.get(x.location.pathname);Te?Te.add(k.pathname):(Te=new Set([k.pathname]),F.set(x.location.pathname,Te)),ue={currentLocation:x.location,nextLocation:k}}fe(Ge({},j,{actionData:ie,loaderData:J,historyAction:b,location:k,initialized:!0,navigation:Kc,revalidation:"idle",restoreScrollPosition:As(k,j.matches||x.matches),preventScrollReset:qe,blockers:he}),{viewTransitionOpts:ue,flushSync:ae===!0}),b=Qe.Pop,T=!1,O=!1,$=!1,z=!1,H=[],A=[]}async function ye(k,j){if(typeof k=="number"){e.history.go(k);return}let _=Ed(x.location,x.matches,l,u.v7_prependBasename,k,u.v7_relativeSplatPath,j==null?void 0:j.fromRouteId,j==null?void 0:j.relative),{path:W,submission:q,error:ae}=_0(u.v7_normalizeFormMethod,!1,_,j),re=x.location,ie=qa(x.location,W,j&&j.state);ie=Ge({},ie,e.history.encodeLocation(ie));let J=j&&j.replace!=null?j.replace:void 0,he=Qe.Push;J===!0?he=Qe.Replace:J===!1||q!=null&&bn(q.formMethod)&&q.formAction===x.location.pathname+x.location.search&&(he=Qe.Replace);let qe=j&&"preventScrollReset"in j?j.preventScrollReset===!0:void 0,ue=(j&&j.unstable_flushSync)===!0,Te=gr({currentLocation:re,nextLocation:ie,historyAction:he});if(Te){jn(Te,{state:"blocked",location:ie,proceed(){jn(Te,{state:"proceeding",proceed:void 0,reset:void 0,location:ie}),ye(k,j)},reset(){let ot=new Map(x.blockers);ot.set(Te,Qi),fe({blockers:ot})}});return}return await ke(he,ie,{submission:q,pendingError:ae,preventScrollReset:qe,replace:j&&j.replace,enableViewTransition:j&&j.unstable_viewTransition,flushSync:ue})}function dt(){if(ht(),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,j,_){P&&P.abort(),P=null,b=k,$=(_&&_.startUninterruptedRevalidation)===!0,vr(x.location,x.matches),T=(_&&_.preventScrollReset)===!0,O=(_&&_.enableViewTransition)===!0;let W=s||a,q=_&&_.overrideNavigation,ae=ai(W,j,l),re=(_&&_.flushSync)===!0;if(!ae){let ot=ln(404,{pathname:j.pathname}),{matches:He,route:lt}=W0(W);Xr(),Ct(j,{matches:He,loaderData:{},errors:{[lt.id]:ot}},{flushSync:re});return}if(x.initialized&&!z&&a9(x.location,j)&&!(_&&_.submission&&bn(_.submission.formMethod))){Ct(j,{matches:ae},{flushSync:re});return}P=new AbortController;let ie=Ji(e.history,j,P.signal,_&&_.submission),J,he;if(_&&_.pendingError)he={[xa(ae).route.id]:_.pendingError};else if(_&&_.submission&&bn(_.submission.formMethod)){let ot=await $n(ie,j,_.submission,ae,{replace:_.replace,flushSync:re});if(ot.shortCircuited)return;J=ot.pendingActionData,he=ot.pendingActionError,q=Zc(j,_.submission),re=!1,ie=new Request(ie.url,{signal:ie.signal})}let{shortCircuited:qe,loaderData:ue,errors:Te}=await Vt(ie,j,ae,q,_&&_.submission,_&&_.fetcherSubmission,_&&_.replace,_&&_.initialHydration===!0,re,J,he);qe||(P=null,Ct(j,Ge({matches:ae},J?{actionData:J}:{},{loaderData:ue,errors:Te})))}async function $n(k,j,_,W,q){q===void 0&&(q={}),ht();let ae=c9(j,_);fe({navigation:ae},{flushSync:q.flushSync===!0});let re,ie=Td(W,j);if(!ie.route.action&&!ie.route.lazy)re={type:Ue.error,error:ln(405,{method:k.method,pathname:j.pathname,routeId:ie.route.id})};else if(re=await Yi("action",k,ie,W,i,o,l,u.v7_relativeSplatPath),k.signal.aborted)return{shortCircuited:!0};if(ho(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(si(re)){let J=xa(W,ie.route.id);return(q&&q.replace)!==!0&&(b=Qe.Push),{pendingActionData:{},pendingActionError:{[J.route.id]:re.error}}}if(fo(re))throw ln(400,{type:"defer-action"});return{pendingActionData:{[ie.route.id]:re.data}}}async function Vt(k,j,_,W,q,ae,re,ie,J,he,qe){let ue=W||Zc(j,q),Te=q||ae||Z0(ue),ot=s||a,[He,lt]=D0(e.history,x,_,Te,j,u.v7_partialHydration&&ie===!0,z,H,A,te,K,I,ot,l,he,qe);if(Xr(Re=>!(_&&_.some(Ie=>Ie.route.id===Re))||He&&He.some(Ie=>Ie.route.id===Re)),N=++M,He.length===0&<.length===0){let Re=Ls();return Ct(j,Ge({matches:_,loaderData:{},errors:qe||null},he?{actionData:he}:{},Re?{fetchers:new Map(x.fetchers)}:{}),{flushSync:J}),{shortCircuited:!0}}if(!$&&(!u.v7_partialHydration||!ie)){lt.forEach(Ie=>{let Nn=x.fetchers.get(Ie.key),Ns=ea(void 0,Nn?Nn.data:void 0);x.fetchers.set(Ie.key,Ns)});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)&&An(Re.key),Re.controller&&R.set(Re.key,Re.controller)});let Do=()=>lt.forEach(Re=>An(Re.key));P&&P.signal.addEventListener("abort",Do);let{results:gc,loaderResults:Vo,fetcherResults:yr}=await we(x.matches,_,He,lt,k);if(k.signal.aborted)return{shortCircuited:!0};P&&P.signal.removeEventListener("abort",Do),lt.forEach(Re=>R.delete(Re.key));let Yr=G0(gc);if(Yr){if(Yr.idx>=He.length){let Re=lt[Yr.idx-He.length].key;I.add(Re)}return await ce(x,Yr.result,{replace:re}),{shortCircuited:!0}}let{loaderData:vc,errors:yc}=H0(x,_,He,Vo,qe,lt,yr,de);de.forEach((Re,Ie)=>{Re.subscribe(Nn=>{(Nn||Re.done)&&de.delete(Ie)})});let Cc=Ls(),Bo=Fs(N),js=Cc||Bo||lt.length>0;return Ge({loaderData:vc,errors:yc},js?{fetchers:new Map(x.fetchers)}:{})}function $t(k,j,_,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)&&An(k);let q=(W&&W.unstable_flushSync)===!0,ae=s||a,re=Ed(x.location,x.matches,l,u.v7_prependBasename,_,u.v7_relativeSplatPath,j,W==null?void 0:W.relative),ie=ai(ae,re,l);if(!ie){nn(k,j,ln(404,{pathname:re}),{flushSync:q});return}let{path:J,submission:he,error:qe}=_0(u.v7_normalizeFormMethod,!0,re,W);if(qe){nn(k,j,qe,{flushSync:q});return}let ue=Td(ie,J);if(T=(W&&W.preventScrollReset)===!0,he&&bn(he.formMethod)){Ae(k,j,J,ue,ie,q,he);return}K.set(k,{routeId:j,path:J}),Me(k,j,J,ue,ie,q,he)}async function Ae(k,j,_,W,q,ae,re){if(ht(),K.delete(k),!W.route.action&&!W.route.lazy){let Ie=ln(405,{method:re.formMethod,pathname:_,routeId:j});nn(k,j,Ie,{flushSync:ae});return}let ie=x.fetchers.get(k);tn(k,f9(re,ie),{flushSync:ae});let J=new AbortController,he=Ji(e.history,_,J.signal,re);R.set(k,J);let qe=M,ue=await Yi("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(ho(ue)||si(ue)){tn(k,Sr(void 0));return}}else{if(ho(ue))if(R.delete(k),N>qe){tn(k,Sr(void 0));return}else return I.add(k),tn(k,ea(re)),ce(x,ue,{fetcherSubmission:re});if(si(ue)){nn(k,j,ue.error);return}}if(fo(ue))throw ln(400,{type:"defer-action"});let Te=x.navigation.location||x.location,ot=Ji(e.history,Te,J.signal),He=s||a,lt=x.navigation.state!=="idle"?ai(He,x.navigation.location,l):x.matches;pe(lt,"Didn't find any matches after fetcher action");let Do=++M;B.set(k,Do);let gc=ea(re,ue.data);x.fetchers.set(k,gc);let[Vo,yr]=D0(e.history,x,lt,re,Te,!1,z,H,A,te,K,I,He,l,{[W.route.id]:ue.data},void 0);yr.filter(Ie=>Ie.key!==k).forEach(Ie=>{let Nn=Ie.key,Ns=x.fetchers.get(Nn),Z4=ea(void 0,Ns?Ns.data:void 0);x.fetchers.set(Nn,Z4),R.has(Nn)&&An(Nn),Ie.controller&&R.set(Nn,Ie.controller)}),fe({fetchers:new Map(x.fetchers)});let Yr=()=>yr.forEach(Ie=>An(Ie.key));J.signal.addEventListener("abort",Yr);let{results:vc,loaderResults:yc,fetcherResults:Cc}=await we(x.matches,lt,Vo,yr,ot);if(J.signal.aborted)return;J.signal.removeEventListener("abort",Yr),B.delete(k),R.delete(k),yr.forEach(Ie=>R.delete(Ie.key));let Bo=G0(vc);if(Bo){if(Bo.idx>=Vo.length){let Ie=yr[Bo.idx-Vo.length].key;I.add(Ie)}return ce(x,Bo.result)}let{loaderData:js,errors:Re}=H0(x,x.matches,Vo,yc,void 0,yr,Cc,de);if(x.fetchers.has(k)){let Ie=Sr(ue.data);x.fetchers.set(k,Ie)}Fs(Do),x.navigation.state==="loading"&&Do>N?(pe(b,"Expected pending action"),P&&P.abort(),Ct(x.navigation.location,{matches:lt,loaderData:js,errors:Re,fetchers:new Map(x.fetchers)})):(fe({errors:Re,loaderData:U0(x.loaderData,js,lt,Re),fetchers:new Map(x.fetchers)}),z=!1)}async function Me(k,j,_,W,q,ae,re){let ie=x.fetchers.get(k);tn(k,ea(re,ie?ie.data:void 0),{flushSync:ae});let J=new AbortController,he=Ji(e.history,_,J.signal);R.set(k,J);let qe=M,ue=await Yi("loader",he,W,q,i,o,l,u.v7_relativeSplatPath);if(fo(ue)&&(ue=await u3(ue,he.signal,!0)||ue),R.get(k)===J&&R.delete(k),!he.signal.aborted){if(te.has(k)){tn(k,Sr(void 0));return}if(ho(ue))if(N>qe){tn(k,Sr(void 0));return}else{I.add(k),await ce(x,ue);return}if(si(ue)){nn(k,j,ue.error);return}pe(!fo(ue),"Unhandled fetcher deferred data"),tn(k,Sr(ue.data))}}async function ce(k,j,_){let{submission:W,fetcherSubmission:q,replace:ae}=_===void 0?{}:_;j.revalidate&&(z=!0);let re=qa(k.location,j.location,{_isRedirect:!0});if(pe(re,"Expected a location on the redirect navigation"),n){let Te=!1;if(j.reloadDocument)Te=!0;else if(i3.test(j.location)){const ot=e.history.createURL(j.location);Te=ot.origin!==t.location.origin||_i(ot.pathname,l)==null}if(Te){ae?t.location.replace(j.location):t.location.assign(j.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=Z0(k.navigation));let ue=W||q;if(Yx.has(j.status)&&ue&&bn(ue.formMethod))await ke(ie,re,{submission:Ge({},ue,{formAction:j.location}),preventScrollReset:T});else{let Te=Zc(re,W);await ke(ie,re,{overrideNavigation:Te,fetcherSubmission:q,preventScrollReset:T})}}async function we(k,j,_,W,q){let ae=await Promise.all([..._.map(J=>Yi("loader",q,J,j,i,o,l,u.v7_relativeSplatPath)),...W.map(J=>J.matches&&J.match&&J.controller?Yi("loader",Ji(e.history,J.path,J.controller.signal),J.match,J.matches,i,o,l,u.v7_relativeSplatPath):{type:Ue.error,error:ln(404,{pathname:J.path})})]),re=ae.slice(0,_.length),ie=ae.slice(_.length);return await Promise.all([K0(k,_,re,re.map(()=>q.signal),!1,x.loaderData),K0(k,W.map(J=>J.match),ie,W.map(J=>J.controller?J.controller.signal:null),!0)]),{results:ae,loaderResults:re,fetcherResults:ie}}function ht(){z=!0,H.push(...Xr()),K.forEach((k,j)=>{R.has(j)&&(A.push(j),An(j))})}function tn(k,j,_){_===void 0&&(_={}),x.fetchers.set(k,j),fe({fetchers:new Map(x.fetchers)},{flushSync:(_&&_.flushSync)===!0})}function nn(k,j,_,W){W===void 0&&(W={});let q=xa(x.matches,j);mr(k),fe({errors:{[q.route.id]:_},fetchers:new Map(x.fetchers)},{flushSync:(W&&W.flushSync)===!0})}function rn(k){return u.v7_fetcherPersist&&(X.set(k,(X.get(k)||0)+1),te.has(k)&&te.delete(k)),x.fetchers.get(k)||Jx}function mr(k){let j=x.fetchers.get(k);R.has(k)&&!(j&&j.state==="loading"&&B.has(k))&&An(k),K.delete(k),B.delete(k),I.delete(k),te.delete(k),x.fetchers.delete(k)}function pc(k){if(u.v7_fetcherPersist){let j=(X.get(k)||0)-1;j<=0?(X.delete(k),te.add(k)):X.set(k,j)}else mr(k);fe({fetchers:new Map(x.fetchers)})}function An(k){let j=R.get(k);pe(j,"Expected fetch controller: "+k),j.abort(),R.delete(k)}function ks(k){for(let j of k){let _=rn(j),W=Sr(_.data);x.fetchers.set(j,W)}}function Ls(){let k=[],j=!1;for(let _ of I){let W=x.fetchers.get(_);pe(W,"Expected fetcher: "+_),W.state==="loading"&&(I.delete(_),k.push(_),j=!0)}return ks(k),j}function Fs(k){let j=[];for(let[_,W]of B)if(W0}function mc(k,j){let _=x.blockers.get(k)||Qi;return ne.get(k)!==j&&ne.set(k,j),_}function $s(k){x.blockers.delete(k),ne.delete(k)}function jn(k,j){let _=x.blockers.get(k)||Qi;pe(_.state==="unblocked"&&j.state==="blocked"||_.state==="blocked"&&j.state==="blocked"||_.state==="blocked"&&j.state==="proceeding"||_.state==="blocked"&&j.state==="unblocked"||_.state==="proceeding"&&j.state==="unblocked","Invalid blocker state transition: "+_.state+" -> "+j.state);let W=new Map(x.blockers);W.set(k,j),fe({blockers:W})}function gr(k){let{currentLocation:j,nextLocation:_,historyAction:W}=k;if(ne.size===0)return;ne.size>1&&Oo(!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:j,nextLocation:_,historyAction:W}))return ae}function Xr(k){let j=[];return de.forEach((_,W)=>{(!k||k(W))&&(_.cancel(),j.push(W),de.delete(W))}),j}function zi(k,j,_){if(d=k,C=j,y=_||null,!v&&x.navigation===Kc){v=!0;let W=As(x.location,x.matches);W!=null&&fe({restoreScrollPosition:W})}return()=>{d=null,C=null,y=null}}function Qr(k,j){return y&&y(k,j.map(W=>J2(W,x.loaderData)))||k.key}function vr(k,j){if(d&&C){let _=Qr(k,j);d[_]=C()}}function As(k,j){if(d){let _=Qr(k,j),W=d[_];if(typeof W=="number")return W}return null}function rt(k){i={},s=bd(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:yt,subscribe:Ze,enableScrollRestoration:zi,navigate:ye,fetch:$t,revalidate:dt,createHref:k=>e.history.createHref(k),encodeLocation:k=>e.history.encodeLocation(k),getFetcher:rn,deleteFetcher:pc,dispose:Pt,getBlocker:mc,deleteBlocker:$s,_internalFetchControllers:R,_internalActiveDeferreds:de,_internalSetRoutes:rt},E}function n9(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function Ed(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=xp(o||".",Sp(l,i),_i(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&&!bp(c.search)&&(c.search=c.search?c.search.replace(/^\?/,"?index&"):"?index"),r&&n!=="/"&&(c.pathname=c.pathname==="/"?n:tr([n,c.pathname])),Mo(c)}function _0(e,t,n,r){if(!r||!n9(r))return{path:n};if(r.formMethod&&!u9(r.formMethod))return{path:n,error:ln(405,{method:r.formMethod})};let o=()=>({path:n,error:ln(400,{type:"invalid-body"})}),i=r.formMethod||"get",a=e?i.toUpperCase():i.toLowerCase(),s=l3(n);if(r.body!==void 0){if(r.formEncType==="text/plain"){if(!bn(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(!bn(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=Pd(r.formData),u=r.formData;else if(r.body instanceof FormData)l=Pd(r.body),u=r.body;else if(r.body instanceof URLSearchParams)l=r.body,u=z0(l);else if(r.body==null)l=new URLSearchParams,u=new FormData;else try{l=new URLSearchParams(r.body),u=z0(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(bn(c.formMethod))return{path:n,submission:c};let f=dr(n);return t&&f.search&&bp(f.search)&&l.append("index",""),f.search="?"+l,{path:Mo(f),submission:c}}function r9(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 D0(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=r9(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(o9(t.loaderData,t.matches[T],b)||s.some(D=>D===b.route.id))return!0;let O=t.matches[T],F=b;return V0(b,Ge({currentUrl:g,currentParams:O.params,nextUrl:p,nextParams:F.params},r,{actionResult:S,defaultShouldRevalidate:a||g.pathname+g.search===p.pathname+p.search||g.search!==p.search||s3(O,F)}))}),x=[];return c.forEach((b,T)=>{if(i||!n.some($=>$.route.id===b.routeId)||u.has(T))return;let P=ai(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),F=Td(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=V0(F,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:F,controller:new AbortController})}),[E,x]}function o9(e,t,n){let r=!t||n.route.id!==t.route.id,o=e[n.route.id]===void 0;return r||o}function s3(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function V0(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}async function B0(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";Oo(!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&&!Ex.has(a)&&(i[a]=r[a])}Object.assign(o,i),Object.assign(o,Ge({},t(o),{lazy:void 0}))}async function Yi(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}),B0(n.route,i,o)]);if(S)throw S;c=g[0]}else if(await B0(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 ln(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 ln(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(l9(c)){let v=c.status;if(Qx.has(v)){let g=c.headers.get("Location");if(pe(g,"Redirects returned/thrown from loaders/actions must have a Location header"),!i3.test(g))g=Ed(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=_i(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 wp(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(s9(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 Ji(e,t,n,r){let o=e.createURL(l3(t)).toString(),i={signal:n};if(r&&bn(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=Pd(r.formData):i.body=r.formData}return new Request(o,i)}function Pd(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r=="string"?r:r.name);return t}function z0(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function i9(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(!ho(c),"Cannot handle redirect results in processLoaderData"),si(c)){let y=xa(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=r3(c.error)?c.error.status:500),c.headers&&(u[d]=c.headers)}else fo(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 H0(e,t,n,r,o,i,a,s){let{loaderData:l,errors:u}=i9(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 W0(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 ln(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 wp(e||500,a,new Error(s),!0)}function G0(e){for(let t=e.length-1;t>=0;t--){let n=e[t];if(ho(n))return{result:n,idx:t}}}function l3(e){let t=typeof e=="string"?dr(e):e;return Mo(Ge({},t,{hash:""}))}function a9(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function fo(e){return e.type===Ue.deferred}function si(e){return e.type===Ue.error}function ho(e){return(e&&e.type)===Ue.redirect}function s9(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 l9(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function u9(e){return Xx.has(e.toLowerCase())}function bn(e){return Zx.has(e.toLowerCase())}async function K0(e,t,n,r,o,i){for(let a=0;af.route.id===l.route.id),c=u!=null&&!s3(u,l)&&(i&&i[l.route.id])!==void 0;if(fo(s)&&(o||c)){let f=r[a];pe(f,"Expected an AbortSignal for revalidating fetcher deferred result"),await u3(s,f,o).then(d=>{d&&(n[a]=d||n[a])})}}}async function u3(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 bp(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function Td(e,t){let n=typeof t=="string"?dr(t).search:t.search;if(e[e.length-1].route.index&&bp(n||""))return e[e.length-1];let r=n3(e);return r[r.length-1]}function Z0(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 Zc(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 c9(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 ea(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 f9(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 Sr(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 d9(e,t){try{let n=e.sessionStorage.getItem(a3);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 h9(e,t){if(t.size>0){let n={};for(let[r,o]of t)n[r]=[...o];try{e.sessionStorage.setItem(a3,JSON.stringify(n))}catch(r){Oo(!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 Xa(){return Xa=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=xp(u,JSON.parse(a),i,c.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:tr([t,f.pathname])),(c.replace?r.replace:r.push)(f,c.state,c)},[t,r,a,i,e])}const g9=h.createContext(null);function v9(e){let t=h.useContext(hr).outlet;return t&&h.createElement(g9.Provider,{value:e},t)}function U$(){let{matches:e}=h.useContext(hr),t=e[e.length-1];return t?t.params:{}}function p3(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=h.useContext(Ao),{matches:o}=h.useContext(hr),{pathname:i}=gs(),a=JSON.stringify(Sp(o,r.v7_relativeSplatPath));return h.useMemo(()=>xp(e,JSON.parse(a),i,n==="path"),[e,a,i,n])}function y9(e,t,n,r){ms()||pe(!1);let{navigator:o}=h.useContext(Ao),{matches:i}=h.useContext(hr),a=i[i.length-1],s=a?a.params:{};a&&a.pathname;let l=a?a.pathnameBase:"/";a&&a.route;let u=gs(),c;if(t){var f;let S=typeof t=="string"?dr(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=ai(e,{pathname:y}),v=b9(C&&C.map(S=>Object.assign({},S,{params:Object.assign({},s,S.params),pathname:tr([l,o.encodeLocation?o.encodeLocation(S.pathname).pathname:S.pathname]),pathnameBase:S.pathnameBase==="/"?l:tr([l,o.encodeLocation?o.encodeLocation(S.pathnameBase).pathname:S.pathnameBase])})),i,n,r);return t&&v?h.createElement(Iu.Provider,{value:{location:Xa({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:Qe.Pop}},v):v}function C9(){let e=M9(),t=r3(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 S9=h.createElement(C9,null);class x9 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(hr.Provider,{value:this.props.routeContext},h.createElement(f3.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function w9(e){let{routeContext:t,match:n,children:r}=e,o=h.useContext(Nu);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),h.createElement(hr.Provider,{value:t},r)}function b9(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||S9,l&&(u<0&&d===0?(k9("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(w9,{match:f,routeContext:{outlet:c,matches:g,isDataRoute:n!=null},children:m})};return n&&(f.route.ErrorBoundary||f.route.errorElement||d===0)?h.createElement(x9,{location:n.location,revalidation:n.revalidation,component:v,error:y,children:p(),routeContext:{outlet:null,matches:g,isDataRoute:!0}}):p()},null)}var m3=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(m3||{}),lr=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}(lr||{});function E9(e){let t=h.useContext(Nu);return t||pe(!1),t}function vs(e){let t=h.useContext(c3);return t||pe(!1),t}function P9(e){let t=h.useContext(hr);return t||pe(!1),t}function Ep(e){let t=P9(),n=t.matches[t.matches.length-1];return n.route.id||pe(!1),n.route.id}function T9(){return vs(lr.UseNavigation).navigation}function O9(){let{matches:e,loaderData:t}=vs(lr.UseMatches);return h.useMemo(()=>e.map(n=>J2(n,t)),[e,t])}function W$(){let e=vs(lr.UseLoaderData),t=Ep(lr.UseLoaderData);if(e.errors&&e.errors[t]!=null){console.error("You cannot `useLoaderData` in an errorElement (routeId: "+t+")");return}return e.loaderData[t]}function G$(e){return vs(lr.UseRouteLoaderData).loaderData[e]}function M9(){var e;let t=h.useContext(f3),n=vs(lr.UseRouteError),r=Ep(lr.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function R9(){let{router:e}=E9(m3.UseNavigateStable),t=Ep(lr.UseNavigateStable),n=h.useRef(!1);return d3(()=>{n.current=!0}),h.useCallback(function(o,i){i===void 0&&(i={}),n.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,Xa({fromRouteId:t},i)))},[e,t])}const q0={};function k9(e,t,n){!t&&!q0[e]&&(q0[e]=!0)}function L9(e){return v9(e.context)}function F9(e){let{basename:t="/",children:n=null,location:r,navigationType:o=Qe.Pop,navigator:i,static:a=!1,future:s}=e;ms()&&pe(!1);let l=t.replace(/^\/*/,"/"),u=h.useMemo(()=>({basename:l,navigator:i,static:a,future:Xa({v7_relativeSplatPath:!1},s)}),[l,s,i,a]);typeof r=="string"&&(r=dr(r));let{pathname:c="/",search:f="",hash:d="",state:y=null,key:C="default"}=r,v=h.useMemo(()=>{let S=_i(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(Ao.Provider,{value:u},h.createElement(Iu.Provider,{children:n,value:v}))}new Promise(()=>{});function $9(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 Qa(){return Qa=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[o]=e[o]);return n}function j9(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function N9(e,t){return e.button===0&&(!t||t==="_self")&&!j9(e)}function Od(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 I9(e,t){let n=Od(e);return t&&t.forEach((r,o)=>{n.has(o)||t.getAll(o).forEach(i=>{n.append(o,i)})}),n}const _9=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"];function D9(e,t){return t9({basename:t==null?void 0:t.basename,future:Qa({},t==null?void 0:t.future,{v7_prependBasename:!0}),history:xx({window:t==null?void 0:t.window}),hydrationData:(t==null?void 0:t.hydrationData)||V9(),routes:e,mapRouteProperties:$9,window:t==null?void 0:t.window}).initialize()}function V9(){var e;let t=(e=window)==null?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=Qa({},t,{errors:B9(t.errors)})),t}function B9(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 wp(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 z9=h.createContext({isTransitioning:!1}),H9=h.createContext(new Map),U9="startTransition",X0=ji[U9],W9="flushSync",Q0=Q2[W9];function G9(e){X0?X0(e):e()}function ta(e){Q0?Q0(e):e()}class K9{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 Z9(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?G9(b):b()},[g]),m=h.useCallback((b,T)=>{let{deletedFetchers:P,unstable_flushSync:O,unstable_viewTransitionOpts:F}=T;P.forEach($=>S.current.delete($)),b.fetchers.forEach(($,z)=>{$.data!==void 0&&S.current.set(z,$.data)});let D=n.window==null||typeof n.window.document.startViewTransition!="function";if(!F||D){O?ta(()=>i(b)):p(()=>i(b));return}if(O){ta(()=>{d&&(c&&c.resolve(),d.skipTransition()),u({isTransitioning:!0,flushSync:!0,currentLocation:F.currentLocation,nextLocation:F.nextLocation})});let $=n.window.document.startViewTransition(()=>{ta(()=>i(b))});$.finished.finally(()=>{ta(()=>{f(void 0),y(void 0),s(void 0),u({isTransitioning:!1})})}),ta(()=>y($));return}d?(c&&c.resolve(),d.skipTransition(),v({state:b,currentLocation:F.currentLocation,nextLocation:F.nextLocation})):(s(b),u({isTransitioning:!0,flushSync:!1,currentLocation:F.currentLocation,nextLocation:F.nextLocation}))},[n.window,d,c,S,p]);h.useLayoutEffect(()=>n.subscribe(m),[n,m]),h.useEffect(()=>{l.isTransitioning&&!l.flushSync&&f(new K9)},[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(Nu.Provider,{value:x},h.createElement(c3.Provider,{value:o},h.createElement(H9.Provider,{value:S.current},h.createElement(z9.Provider,{value:l},h.createElement(F9,{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(q9,{routes:n.routes,future:n.future,state:o}):t))))),null)}function q9(e){let{routes:t,future:n,state:r}=e;return y9(t,void 0,r,n)}const X9=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Q9=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,K$=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=A9(t,_9),{basename:y}=h.useContext(Ao),C,v=!1;if(typeof u=="string"&&Q9.test(u)&&(C=u,X9))try{let m=new URL(window.location.href),w=u.startsWith("//")?new URL(m.protocol+u):new URL(u),E=_i(w.pathname,y);w.origin===m.origin&&E!=null?u=E+w.search+w.hash:v=!0}catch{}let S=p9(u,{relative:o}),g=Y9(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",Qa({},d,{href:C||S,onClick:v||i?r:p,ref:n,target:l}))});var Y0;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Y0||(Y0={}));var J0;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(J0||(J0={}));function Y9(e,t){let{target:n,replace:r,state:o,preventScrollReset:i,relative:a,unstable_viewTransition:s}=t===void 0?{}:t,l=h3(),u=gs(),c=p3(e,{relative:a});return h.useCallback(f=>{if(N9(f,n)){f.preventDefault();let d=r!==void 0?r:Mo(u)===Mo(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 Z$(e){let t=h.useRef(Od(e)),n=h.useRef(!1),r=gs(),o=h.useMemo(()=>I9(r.search,n.current?null:t.current),[r.search]),i=h3(),a=h.useCallback((s,l)=>{const u=Od(typeof s=="function"?s(o):s);n.current=!0,i("?"+u,l)},[i,o]);return[o,a]}var g3={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(Ya(r)):Op.isFragment(r)&&r.props?n=n.concat(Ya(r.props.children,t)):n.push(r))}),n}var Md={},n8=function(t){};function r8(e,t){}function o8(e,t){}function i8(){Md={}}function C3(e,t,n){!t&&!Md[n]&&(e(!1,n),Md[n]=!0)}function Xt(e,t){C3(r8,e,t)}function a8(e,t){C3(o8,e,t)}Xt.preMessage=n8;Xt.resetWarned=i8;Xt.noteOnce=a8;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 s8(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 S3(e){var t=s8(e,"string");return Ee(t)=="symbol"?t:String(t)}function V(e,t,n){return t=S3(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function eg(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 f8(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 Cs(e){var t=c8();return function(){var r=iu(e),o;if(t){var i=iu(this).constructor;o=Reflect.construct(r,arguments,i)}else o=r.apply(this,arguments);return f8(this,o)}}function kp(e,t){var n=U({},e);return Array.isArray(t)&&t.forEach(function(r){delete n[r]}),n}function kd(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;ng+=1;var r=ng;function o(i){if(i===0)T3(r),t();else{var a=E3(function(){o(i-1)});Fp.set(r,a)}}return o(n),r};Ro.cancel=function(e){var t=Fp.get(e);return T3(e),P3(t)};function O3(e){if(Array.isArray(e))return e}function p8(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 M3(){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 O3(e)||p8(e,t)||Lp(e,t)||M3()}function au(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 Rt(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Ld(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 rg="data-rc-order",og="data-rc-priority",m8="rc-util-key",Fd=new Map;function R3(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):m8}function qu(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function g8(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function k3(e){return Array.from((Fd.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function L3(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Rt())return null;var n=t.csp,r=t.prepend,o=t.priority,i=o===void 0?0:o,a=g8(r),s=a==="prependQueue",l=document.createElement("style");l.setAttribute(rg,a),s&&i&&l.setAttribute(og,"".concat(i)),n!=null&&n.nonce&&(l.nonce=n==null?void 0:n.nonce),l.innerHTML=e;var u=qu(t),c=u.firstChild;if(r){if(s){var f=k3(u).filter(function(d){if(!["prepend","prependQueue"].includes(d.getAttribute(rg)))return!1;var y=Number(d.getAttribute(og)||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 F3(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=qu(t);return k3(n).find(function(r){return r.getAttribute(R3(t))===e})}function Ja(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=F3(e,t);if(n){var r=qu(t);r.removeChild(n)}}function v8(e,t){var n=Fd.get(e);if(!n||!Ld(document,n)){var r=L3("",t),o=r.parentNode;Fd.set(e,o),e.removeChild(r)}}function Hr(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=qu(n);v8(r,n);var o=F3(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=L3(e,n);return l.setAttribute(R3(n),t),l}function y8(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 Un(e,t){if(e==null)return{};var n=y8(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 $3(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(Xt(!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),ag+=1}return yn(e,[{key:"getDerivativeToken",value:function(n){return this.derivatives.reduce(function(r,o){return o(n,r)},void 0)}}]),e}(),qc=new $p;function $d(e){var t=Array.isArray(e)?e:[e];return qc.has(t)||qc.set(t,new A3(t)),qc.get(t)}var w8=new WeakMap,Xc={};function b8(e,t){for(var n=w8,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,Ri,t),V(r,Rn,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 N3=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()},T8=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(""),"}"):""},I3=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=N3(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,T8(o,n,{scope:r==null?void 0:r.scope})]},ug=Rt()?h.useLayoutEffect:h.useEffect,es=function(t,n){var r=h.useRef(!0);ug(function(){return t(r.current)},n),ug(function(){return r.current=!1,function(){r.current=!0}},[])},X$=function(t,n){es(function(r){if(!r)return t()},n)},O8=U({},ji),cg=O8.useInsertionEffect,M8=function(t,n,r){h.useMemo(t,r),es(function(){return n(!0)},r)},R8=cg?function(e,t,n){return cg(function(){return e(),t()},n)}:M8,k8=U({},ji),L8=k8.useInsertionEffect,F8=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},$8=function(){return function(t){t()}},A8=typeof L8<"u"?F8:$8;function Ap(e,t,n,r,o){var i=h.useContext(Xu),a=i.cache,s=[e].concat(ee(t)),l=s.join("_"),u=A8([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 R8(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={},N8="css",so=new Map;function I8(e){so.set(e,(so.get(e)||0)+1)}function _8(e,t){if(typeof document<"u"){var n=document.querySelectorAll("style[".concat(Ri,'="').concat(e,'"]'));n.forEach(function(r){if(r[Rr]===t){var o;(o=r.parentNode)===null||o===void 0||o.removeChild(r)}})}}var D8=0;function V8(e,t){so.set(e,(so.get(e)||0)-1);var n=Array.from(so.keys()),r=n.filter(function(o){var i=so.get(o)||0;return i<=0});n.length-r.length>D8&&r.forEach(function(o){_8(o,t),so.delete(o)})}var B8=function(t,n,r,o){var i=r.getDerivativeToken(t),a=U(U({},i),n);return o&&(a=o(a)),a},_3="token";function z8(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=h.useContext(Xu),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=b8(function(){return Object.assign.apply(Object,[{}].concat(ee(t)))},t),C=wa(y),v=wa(u),S=d?wa(d):"",g=Ap(_3,[s,e.id,C,v,S],function(){var p,m=f?f(y,u,e):B8(y,u,e,c),w=U({},m),E="";if(d){var x=I3(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=lg(m,s);m._tokenKey=T,w._tokenKey=lg(w,s);var P=(p=d==null?void 0:d.key)!==null&&p!==void 0?p:T;m._themeKey=P,I8(P);var O="".concat(N8,"-").concat(au(T));return m._hashId=O,[m,O,w,E,(d==null?void 0:d.key)||""]},function(p){V8(p[0]._themeKey,o)},function(p){var m=Y(p,4),w=m[0],E=m[3];if(d&&E){var x=Hr(E,au("css-variables-".concat(w._themeKey)),{mark:Rn,prepend:"queue",attachTo:i,priority:-999});x[Rr]=o,x.setAttribute(Ri,w._themeKey)}});return g}var H8=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=su(a,s,c,d,u);return[f,c,y]},U8={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},D3="comm",V3="rule",B3="decl",W8="@import",G8="@keyframes",K8="@layer",z3=Math.abs,jp=String.fromCharCode;function H3(e){return e.trim()}function Ol(e,t,n){return e.replace(t,n)}function Z8(e,t,n){return e.indexOf(t,n)}function ts(e,t){return e.charCodeAt(t)|0}function ns(e,t,n){return e.slice(t,n)}function Xn(e){return e.length}function q8(e){return e.length}function el(e,t){return t.push(e),e}var Qu=1,ki=1,U3=0,mn=0,tt=0,Di="";function Np(e,t,n,r,o,i,a,s){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:Qu,column:ki,length:a,return:"",siblings:s}}function X8(){return tt}function Q8(){return tt=mn>0?ts(Di,--mn):0,ki--,tt===10&&(ki=1,Qu--),tt}function kn(){return tt=mn2||jd(tt)>3?"":" "}function tw(e,t){for(;--t&&kn()&&!(tt<48||tt>102||tt>57&&tt<65||tt>70&&tt<97););return Yu(e,Ml()+(t<6&&So()==32&&kn()==32))}function Nd(e){for(;kn();)switch(tt){case e:return mn;case 34:case 39:e!==34&&e!==39&&Nd(tt);break;case 40:e===41&&Nd(e);break;case 92:kn();break}return mn}function nw(e,t){for(;kn()&&e+tt!==47+10;)if(e+tt===42+42&&So()===47)break;return"/*"+Yu(t,mn-1)+"*"+jp(e===47?e:kn())}function rw(e){for(;!jd(So());)kn();return Yu(e,mn)}function ow(e){return J8(Rl("",null,null,null,[""],e=Y8(e),0,[0],e))}function Rl(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=kn()){case 40:if(C!=108&&ts(b,f-1)==58){Z8(b+=Ol(Yc(p),"&","&\f"),"&\f",z3(u?s[u-1]:0))!=-1&&(g=-1);break}case 34:case 39:case 91:b+=Yc(p);break;case 9:case 10:case 13:case 32:b+=ew(C);break;case 92:b+=tw(Ml()-1,7);continue;case 47:switch(So()){case 42:case 47:el(iw(nw(kn(),Ml()),t,n,l),l);break;default:b+="/"}break;case 123*v:s[u++]=Xn(b)*g;case 125*v:case 59:case 0:switch(p){case 0:case 125:S=0;case 59+c:g==-1&&(b=Ol(b,/\f/g,"")),y>0&&Xn(b)-f&&el(y>32?dg(b+";",r,n,f-1,l):dg(Ol(b," ","")+";",r,n,f-2,l),l);break;case 59:b+=";";default:if(el(x=fg(b,t,n,u,c,o,s,m,w=[],E=[],f,i),i),p===123)if(c===0)Rl(b,t,x,x,w,i,f,s,E);else switch(d===99&&ts(b,3)===110?100:d){case 100:case 108:case 109:case 115:Rl(e,x,x,r&&el(fg(e,x,x,0,0,o,s,m,o,w=[],f,E),E),o,E,f,s,r?w:E);break;default:Rl(b,x,x,x,[""],E,0,s,E)}}u=c=y=0,v=g=1,m=b="",f=a;break;case 58:f=1+Xn(b),y=C;default:if(v<1){if(p==123)--v;else if(p==125&&v++==0&&Q8()==125)continue}switch(b+=jp(p),p*v){case 38:g=c>0?1:(b+="\f",-1);break;case 44:s[u++]=(Xn(b)-1)*g,g=1;break;case 64:So()===45&&(b+=Yc(kn())),d=So(),c=f=Xn(m=b+=rw(Ml())),p++;break;case 45:C===45&&Xn(b)==2&&(v=0)}}return i}function fg(e,t,n,r,o,i,a,s,l,u,c,f){for(var d=o-1,y=o===0?i:[""],C=q8(y),v=0,S=0,g=0;v0?y[p]+" "+m:Ol(m,/&\f/g,y[p])))&&(l[g++]=w);return Np(e,t,n,o===0?V3:s,l,u,c,f)}function iw(e,t,n,r){return Np(e,t,n,D3,jp(X8()),ns(e,2,-2),0,r)}function dg(e,t,n,r,o){return Np(e,t,n,B3,ns(e,0,r),ns(e,r+1,-1),r,o)}function Id(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)&&!fw(b)){var T=!1,P=x.trim(),O=!1;(o||i)&&s?P.startsWith("@")?T=!0:P=dw(x,s,u):o&&!s&&(P==="&"||P==="")&&(P="",O=!0);var F=e(b,n,{root:O,injectHash:T,parentSelectors:[].concat(ee(a),[P])}),D=Y(F,2),$=D[0],z=D[1];y=U(U({},y),z),d+="".concat(P).concat($)}else{let R=function(M,N){var B=M.replace(/[A-Z]/g,function(K){return"-".concat(K.toLowerCase())}),I=N;!U8[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,A=(H=b==null?void 0:b.value)!==null&&H!==void 0?H:b;Ee(b)==="object"&&b!==null&&b!==void 0&&b[K3]&&Array.isArray(A)?A.forEach(function(M){R(x,M)}):R(x,A)}})}}),!o)d="{".concat(d,"}");else if(l&&P8()){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 Z3(e,t){return au("".concat(e.join("%")).concat(t))}function pw(){return null}var q3="style";function Dd(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(Xu),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=Ad,x=Ap(q3,w,function(){var F=w.join("|");if(lw(F)){var D=uw(F),$=Y(D,2),z=$[0],H=$[1];if(z)return[z,m,H,{},s,u]}var A=t(),R=hw(A,{hashId:o,hashPriority:y,layer:i,path:r.join("-"),transformers:S,linters:g}),M=Y(R,2),N=M[0],B=M[1],I=_d(N),K=Z3(w,I);return[I,m,K,B,s,u]},function(F,D){var $=Y(F,3),z=$[2];(D||f)&&Ad&&Ja(z,{mark:Rn})},function(F){var D=Y(F,4),$=D[0];D[1];var z=D[2],H=D[3];if(E&&$!==W3){var A={mark:Rn,prepend:"queue",attachTo:C,priority:u},R=typeof a=="function"?a():a;R&&(A.csp={nonce:R});var M=Hr($,z,A);M[Rr]=p.instanceId,M.setAttribute(Ri,m),Object.keys(H).forEach(function(N){Hr(_d(H[N]),"_effect-".concat(N),A)})}}),b=Y(x,3),T=b[0],P=b[1],O=b[2];return function(F){var D;if(!v||E||!d)D=h.createElement(pw,null);else{var $;D=h.createElement("style",$e({},($={},V($,Ri,P),V($,Rn,O),$),{dangerouslySetInnerHTML:{__html:T}}))}return h.createElement(h.Fragment,null,D,F)}}var mw=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=su(i,a,s,C,d),l&&Object.keys(l).forEach(function(v){if(!n[v]){n[v]=!0;var S=_d(l[v]);y+=su(S,a,"_effect-".concat(v),C,d)}}),[c,s,y]},X3="cssVar",gw=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(Xu),f=c.cache.instanceId,d=c.container,y=s._tokenKey,C=[].concat(ee(t.path),[r,u,y]),v=Ap(X3,C,function(){var S=n(),g=I3(S,r,{prefix:o,unitless:i,ignore:a,scope:u}),p=Y(g,2),m=p[0],w=p[1],E=Z3(C,w);return[m,w,E,r]},function(S){var g=Y(S,3),p=g[2];Ad&&Ja(p,{mark:Rn})},function(S){var g=Y(S,3),p=g[1],m=g[2];if(p){var w=Hr(p,m,{mark:Rn,prepend:"queue",attachTo:d,priority:-999});w[Rr]=f,w.setAttribute(Ri,r)}});return v},vw=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=su(i,s,a,f,u);return[c,a,d]},na;na={},V(na,q3,mw),V(na,_3,H8),V(na,X3,vw);var Je=function(){function e(t,n){vn(this,e),V(this,"name",void 0),V(this,"style",void 0),V(this,"_keyframe",!0),this.name=t,this.style=n}return yn(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 Uo(e){return e.notSplit=!0,e}Uo(["borderTop","borderBottom"]),Uo(["borderTop"]),Uo(["borderBottom"]),Uo(["borderLeft","borderRight"]),Uo(["borderLeft"]),Uo(["borderRight"]);var yw=h.createContext({});const Ip=yw;function Cw(e){return O3(e)||b3(e)||Lp(e)||M3()}function Vn(e,t){for(var n=e,r=0;r3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&r&&n===void 0&&!Vn(e,t.slice(0,-1))?e:Q3(e,t,n,r)}function Sw(e){return Ee(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function pg(e){return Array.isArray(e)?[]:{}}var xw=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function li(){for(var e=arguments.length,t=new Array(e),n=0;n{const e=()=>{};return e.deprecated=ww,e},Ew=h.createContext(void 0);var Pw={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"},Tw={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 Ow={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},Y3=Ow,Mw={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"]},Tw),timePickerLocale:Object.assign({},Y3)},mg=Mw,Bt="${label} is not a valid ${type}",Rw={locale:"en",Pagination:Pw,DatePicker:mg,TimePicker:Y3,Calendar:mg,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:Bt,method:Bt,array:Bt,object:Bt,number:Bt,date:Bt,boolean:Bt,integer:Bt,float:Bt,regexp:Bt,email:Bt,url:Bt,hex:Bt},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"}},ko=Rw;let kl=Object.assign({},ko.Modal),Ll=[];const gg=()=>Ll.reduce((e,t)=>Object.assign(Object.assign({},e),t),ko.Modal);function kw(e){if(e){const t=Object.assign({},e);return Ll.push(t),kl=gg(),()=>{Ll=Ll.filter(n=>n!==t),kl=gg()}}kl=Object.assign({},ko.Modal)}function Lw(){return kl}const Fw=h.createContext(void 0),Dp=Fw,$w=(e,t)=>{const n=h.useContext(Dp),r=h.useMemo(()=>{var i;const a=t||ko[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?ko.locale:i},[n]);return[r,o]},Vp=$w,Aw="internalMark",jw=e=>{const{locale:t={},children:n,_ANT_MARK__:r}=e;h.useEffect(()=>kw(t&&t.Modal),[t]);const o=h.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return h.createElement(Dp.Provider,{value:o},n)},Nw=jw;function gt(e,t){Iw(e)&&(e="100%");var n=_w(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 tl(e){return Math.min(1,Math.max(0,e))}function Iw(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function _w(e){return typeof e=="string"&&e.indexOf("%")!==-1}function J3(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function nl(e){return e<=1?"".concat(Number(e)*100,"%"):e}function po(e){return e.length===1?"0"+e:String(e)}function Dw(e,t,n){return{r:gt(e,255)*255,g:gt(t,255)*255,b:gt(n,255)*255}}function vg(e,t,n){e=gt(e,255),t=gt(t,255),n=gt(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 Vw(e,t,n){var r,o,i;if(e=gt(e,360),t=gt(t,100),n=gt(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=Jc(s,a,e+1/3),o=Jc(s,a,e),i=Jc(s,a,e-1/3)}return{r:r*255,g:o*255,b:i*255}}function Vd(e,t,n){e=gt(e,255),t=gt(t,255),n=gt(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 zd={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 Ko(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=Kw(e)),typeof e=="object"&&(Gn(e.r)&&Gn(e.g)&&Gn(e.b)?(t=Dw(e.r,e.g,e.b),a=!0,s=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Gn(e.h)&&Gn(e.s)&&Gn(e.v)?(r=nl(e.s),o=nl(e.v),t=Bw(e.h,r,o),a=!0,s="hsv"):Gn(e.h)&&Gn(e.s)&&Gn(e.l)&&(r=nl(e.s),i=nl(e.l),t=Vw(e.h,r,i),a=!0,s="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=J3(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 Ww="[-\\+]?\\d+%?",Gw="[-\\+]?\\d*\\.\\d+%?",kr="(?:".concat(Gw,")|(?:").concat(Ww,")"),ef="[\\s|\\(]+(".concat(kr,")[,|\\s]+(").concat(kr,")[,|\\s]+(").concat(kr,")\\s*\\)?"),tf="[\\s|\\(]+(".concat(kr,")[,|\\s]+(").concat(kr,")[,|\\s]+(").concat(kr,")[,|\\s]+(").concat(kr,")\\s*\\)?"),Sn={CSS_UNIT:new RegExp(kr),rgb:new RegExp("rgb"+ef),rgba:new RegExp("rgba"+tf),hsl:new RegExp("hsl"+ef),hsla:new RegExp("hsla"+tf),hsv:new RegExp("hsv"+ef),hsva:new RegExp("hsva"+tf),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 Kw(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(zd[e])e=zd[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=Sn.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=Sn.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=Sn.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=Sn.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=Sn.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=Sn.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=Sn.hex8.exec(e),n?{r:Ht(n[1]),g:Ht(n[2]),b:Ht(n[3]),a:yg(n[4]),format:t?"name":"hex8"}:(n=Sn.hex6.exec(e),n?{r:Ht(n[1]),g:Ht(n[2]),b:Ht(n[3]),format:t?"name":"hex"}:(n=Sn.hex4.exec(e),n?{r:Ht(n[1]+n[1]),g:Ht(n[2]+n[2]),b:Ht(n[3]+n[3]),a:yg(n[4]+n[4]),format:t?"name":"hex8"}:(n=Sn.hex3.exec(e),n?{r:Ht(n[1]+n[1]),g:Ht(n[2]+n[2]),b:Ht(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function Gn(e){return!!Sn.CSS_UNIT.exec(String(e))}var Kt=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=Uw(t)),this.originalInput=t;var o=Ko(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=J3(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=Vd(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=Vd(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=vg(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=vg(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),Bd(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),zw(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(gt(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(gt(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="#"+Bd(this.r,this.g,this.b,!1),n=0,r=Object.entries(zd);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=tl(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=tl(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=tl(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=tl(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)-rl*t:Math.round(e.h)+rl*t:r=n?Math.round(e.h)+rl*t:Math.round(e.h)-rl*t,r<0?r+=360:r>=360&&(r-=360),r}function wg(e,t,n){if(e.h===0&&e.s===0)return e.s;var r;return n?r=e.s-Cg*t:t===t5?r=e.s+Cg:r=e.s+Zw*t,r>1&&(r=1),n&&t===e5&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2))}function bg(e,t,n){var r;return n?r=e.v+qw*t:r=e.v-Xw*t,r>1&&(r=1),Number(r.toFixed(2))}function Lo(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=Ko(e),o=e5;o>0;o-=1){var i=Sg(r),a=ol(Ko({h:xg(i,o,!0),s:wg(i,o,!0),v:bg(i,o,!0)}));n.push(a)}n.push(ol(r));for(var s=1;s<=t5;s+=1){var l=Sg(r),u=ol(Ko({h:xg(l,s),s:wg(l,s),v:bg(l,s)}));n.push(u)}return t.theme==="dark"?Qw.map(function(c){var f=c.index,d=c.opacity,y=ol(Yw(Ko(t.backgroundColor||"#141414"),Ko(n[f]),d*100));return y}):n}var nf={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"},Ea={},rf={};Object.keys(nf).forEach(function(e){Ea[e]=Lo(nf[e]),Ea[e].primary=Ea[e][5],rf[e]=Lo(nf[e],{theme:"dark",backgroundColor:"#141414"}),rf[e].primary=rf[e][5]});var Q$=Ea.gold,Jw=Ea.blue;const e7=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}},t7=e7;function n7(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 n5={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"},r7=Object.assign(Object.assign({},n5),{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}),rs=r7;function o7(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 Kt("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}const i7=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}},a7=i7;function s7(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},a7(r))}const Kn=(e,t)=>new Kt(e).setAlpha(t).toRgbString(),ra=(e,t)=>new Kt(e).darken(t).toHexString(),l7=e=>{const t=Lo(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]}},u7=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:Kn(r,.88),colorTextSecondary:Kn(r,.65),colorTextTertiary:Kn(r,.45),colorTextQuaternary:Kn(r,.25),colorFill:Kn(r,.15),colorFillSecondary:Kn(r,.06),colorFillTertiary:Kn(r,.04),colorFillQuaternary:Kn(r,.02),colorBgLayout:ra(n,4),colorBgContainer:ra(n,0),colorBgElevated:ra(n,0),colorBgSpotlight:Kn(r,.85),colorBgBlur:"transparent",colorBorder:ra(n,15),colorBorderSecondary:ra(n,6)}};function c7(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 f7=e=>{const t=c7(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]}},d7=f7;function h7(e){const t=Object.keys(n5).map(n=>{const r=Lo(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),o7(e,{generateColorPalettes:l7,generateNeutralColorPalettes:u7})),d7(e.fontSize)),n7(e)),t7(e)),s7(e))}const r5=$d(h7),o5={token:rs,override:{override:rs},hashed:!0},i5=Z.createContext(o5),a5="anticon",p7=(e,t)=>t||(e?`ant-${e}`:"ant"),ft=h.createContext({getPrefixCls:p7,iconPrefixCls:a5}),m7=`-ant-${Date.now()}-${Math.random()}`;function g7(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 Kt(a),u=Lo(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 Kt(t.primaryColor),s=Lo(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 Kt(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 v7(e,t){const n=g7(e,t);Rt()&&Hr(n,`${m7}-dynamic-theme`)}const Hd=h.createContext(!1),s5=e=>{let{children:t,disabled:n}=e;const r=h.useContext(Hd);return h.createElement(Hd.Provider,{value:n??r},t)},l5=Hd,Ud=h.createContext(void 0),y7=e=>{let{children:t,size:n}=e;const r=h.useContext(Ud);return h.createElement(Ud.Provider,{value:n||r},t)},Ju=Ud;function C7(){const e=h.useContext(l5),t=h.useContext(Ju);return{componentDisabled:e,componentSize:t}}const S7="5.12.7";function of(e){return e>=0&&e<=255}function il(e,t){const{r:n,g:r,b:o,a:i}=new Kt(e).toRgb();if(i<1)return e;const{r:a,g:s,b:l}=new Kt(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(of(c)&&of(f)&&of(d))return new Kt({r:c,g:f,b:d,a:Math.round(u*100)/100}).toRgbString()}return new Kt({r:n,g:r,b:o,a:1}).toRgbString()}var x7=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:il(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:il(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:il(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:il(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 Kt("rgba(0, 0, 0, 0.16)").toRgbString()}, 0 3px 6px 0 ${new Kt("rgba(0, 0, 0, 0.12)").toRgbString()}, 0 5px 12px 4px ${new Kt("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 Eg=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=Eg(t,["override"]);let a=Object.assign(Object.assign({},r),{override:o});return a=u5(a),i&&Object.entries(i).forEach(s=>{let[l,u]=s;const{theme:c}=u,f=Eg(u,["theme"]);let d=f;c&&(d=d5(Object.assign(Object.assign({},a),f),{override:f},c)),a[l]=d}),a};function Fn(){const{token:e,hashed:t,theme:n,override:r,cssVar:o}=Z.useContext(i5),i=`${S7}-${t||""}`,a=n||r5,[s,l,u]=z8(a,[rs,e],{salt:i,override:r,getComputedToken:d5,formatToken:u5,cssVar:o&&{prefix:o.prefix,key:o.key,unitless:c5,ignore:f5,preserve:w7}});return[a,u,t?l:"",s,o]}function h5(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}},b7=()=>({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"}}),E7=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),P7=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"}}}),T7=(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"}}}}},O7=e=>({outline:`${xe(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),p5=e=>({"&:focus-visible":Object.assign({},O7(e))});let M7=yn(function e(){vn(this,e)});const m5=M7;let R7=function(e){ys(n,e);var t=Cs(n);function n(r){var o;return vn(this,n),o=t.call(this),o.result=0,r instanceof n?o.result=r.result:typeof r=="number"&&(o.result=r),o}return yn(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}(m5);const g5="CALC_UNIT";function af(e){return typeof e=="number"?`${e}${g5}`:e}let k7=function(e){ys(n,e);var t=Cs(n);function n(r){var o;return vn(this,n),o=t.call(this),o.result="",r instanceof n?o.result=`(${r.result})`:typeof r=="number"?o.result=af(r):typeof r=="string"&&(o.result=r),o}return yn(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} + ${af(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} - ${af(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(`${g5}`,"g");return this.result=this.result.replace(a,i?"px":""),typeof this.lowPriority<"u"?`calc(${this.result})`:this.result}}]),n}(m5);const L7=e=>{const t=e==="css"?k7:R7;return n=>new t(n)},F7=L7;function $7(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 v5=typeof CSSINJS_STATISTIC<"u";let Wd=!0;function Wn(){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]})})}),Wd=!0,r}const Pg={};function A7(){}const j7=e=>{let t,n=e,r=A7;return v5&&typeof Proxy<"u"&&(t=new Set,n=new Proxy(e,{get(o,i){return Wd&&t.add(i),o[i]}}),r=(o,i)=>{var a;Pg[o]={global:Array.from(t),component:Object.assign(Object.assign({},(a=Pg[o])===null||a===void 0?void 0:a.component),i)}}),{token:n,keys:t,flush:r}},N7=(e,t)=>{const[n,r]=Fn();return Dd({theme:n,token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>t==null?void 0:t.nonce},()=>[{[`.${e}`]:Object.assign(Object.assign({},b7()),{[`.${e} .${e}-icon`]:{display:"block"}})}])},y5=N7,C5=(e,t,n)=>{var r;return typeof n=="function"?n(Wn(t,(r=t[e])!==null&&r!==void 0?r:{})):n??{}},S5=(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},I7=(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 zp(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]=Fn(),{getPrefixCls:y,iconPrefixCls:C,csp:v}=h.useContext(ft),S=y(),g=d?"css":"js",p=F7(g),{max:m,min:w}=$7(g),E={theme:l,token:f,hashId:c,nonce:()=>v==null?void 0:v.nonce,clientOnly:r.clientOnly,order:r.order||-999};return Dd(Object.assign(Object.assign({},E),{clientOnly:!1,path:["Shared",S]}),()=>[{"&":P7(f)}]),y5(C,v),[Dd(Object.assign(Object.assign({},E),{path:[a,s,C]}),()=>{if(r.injectStyle===!1)return[];const{token:b,flush:T}=j7(f),P=C5(i,u,n),O=`.${s}`,F=S5(i,u,P,{deprecatedTokens:r.deprecatedTokens,format:r.format});d&&Object.keys(P).forEach(z=>{P[z]=`var(${N3(z,I7(i,d.prefix))})`});const D=Wn(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,F),[r.resetStyle===!1?null:T7(D,s),$]}),c]}}const x5=(e,t,n,r)=>{const o=zp(e,t,n,Object.assign({resetStyle:!1,order:-998},r));return a=>{let{prefixCls:s}=a;return o(s),null}},_7=(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]=Fn();return gw({path:[e],prefix:f.prefix,key:f==null?void 0:f.key,unitless:Object.assign(Object.assign({},c5),a),ignore:f5,token:d,scope:c},()=>{const y=C5(e,d,t),C=S5(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]=Fn();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]}},jo=(e,t,n,r)=>{const o=zp(e,t,n,r),i=_7(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]}},D7=Object.assign({},ji),{useId:Tg}=D7,V7=()=>"",B7=typeof Tg>"u"?V7:Tg,z7=B7;function H7(e,t){_p();const n=e||{},r=n.inherit===!1||!t?o5:t,o=z7();return Mp(()=>{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!$3(s,u,!0)}))}var U7=["children"],w5=h.createContext({});function W7(e){var t=e.children,n=Un(e,U7);return h.createElement(w5.Provider,{value:n},t)}var G7=function(e){ys(n,e);var t=Cs(n);function n(){return vn(this,n),t.apply(this,arguments)}return yn(n,[{key:"render",value:function(){return this.props.children}}]),n}(h.Component),no="none",al="appear",sl="enter",ll="leave",Og="none",Pn="prepare",ui="start",ci="active",Hp="end",b5="prepared";function Mg(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 K7(e,t){var n={animationend:Mg("Animation","AnimationEnd"),transitionend:Mg("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}var Z7=K7(Rt(),typeof window<"u"?window:{}),E5={};if(Rt()){var q7=document.createElement("div");E5=q7.style}var ul={};function P5(e){if(ul[e])return ul[e];var t=Z7[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=Ro(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 Y7=[Pn,ui,ci,Hp],J7=[Pn,b5],k5=!1,eb=!0;function L5(e){return e===ci||e===Hp}const tb=function(e,t,n){var r=Pa(Og),o=Y(r,2),i=o[0],a=o[1],s=Q7(),l=Y(s,2),u=l[0],c=l[1];function f(){a(Pn,!0)}var d=t?J7:Y7;return R5(function(){if(i!==Og&&i!==Hp){var y=d.indexOf(i),C=d[y+1],v=n(i);v===k5?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 nb(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=Pa(),O=Y(P,2),F=O[0],D=O[1],$=Pa(no),z=Y($,2),H=z[0],A=z[1],R=Pa(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(){A(no,!0),B(null,!0)}function ne(Ae){var Me=X();if(!(Ae&&!Ae.deadline&&Ae.target!==Me)){var ce=te.current,we;H===al&&ce?we=E==null?void 0:E(Me,Ae):H===sl&&ce?we=x==null?void 0:x(Me,Ae):H===ll&&ce&&(we=b==null?void 0:b(Me,Ae)),H!==no&&ce&&we!==!1&&de()}}var me=X7(ne),yt=Y(me,1),Pt=yt[0],Ze=function(Me){var ce,we,ht;switch(Me){case al:return ce={},V(ce,Pn,d),V(ce,ui,v),V(ce,ci,p),ce;case sl:return we={},V(we,Pn,y),V(we,ui,S),V(we,ci,m),we;case ll:return ht={},V(ht,Pn,C),V(ht,ui,g),V(ht,ci,w),ht;default:return{}}},fe=h.useMemo(function(){return Ze(H)},[H]),Ct=tb(H,!e,function(Ae){if(Ae===Pn){var Me=fe[Pn];return Me?Me(X()):k5}if(ke in fe){var ce;B(((ce=fe[ke])===null||ce===void 0?void 0:ce.call(fe,X(),null))||null)}return ke===ci&&(Pt(X()),c>0&&(clearTimeout(K.current),K.current=setTimeout(function(){ne({deadline:!0})},c))),ke===b5&&de(),eb}),ye=Y(Ct,2),dt=ye[0],ke=ye[1],$n=L5(ke);te.current=$n,R5(function(){D(t);var Ae=I.current;I.current=!0;var Me;!Ae&&t&&s&&(Me=al),Ae&&t&&i&&(Me=sl),(Ae&&!t&&u||!Ae&&f&&!t&&u)&&(Me=ll);var ce=Ze(Me);Me&&(e||ce[Pn])?(A(Me),dt()):A(no)},[t]),h.useEffect(function(){(H===al&&!s||H===sl&&!i||H===ll&&!u)&&A(no)},[s,i,u]),h.useEffect(function(){return function(){I.current=!1,clearTimeout(K.current)}},[]);var Vt=h.useRef(!1);h.useEffect(function(){F&&(Vt.current=!0),F!==void 0&&H===no&&((Vt.current||F)&&(T==null||T(F)),Vt.current=!0)},[F,H]);var $t=N;return fe[Pn]&&ke===ui&&($t=U({transition:"none"},$t)),[H,ke,$t,F??t]}function rb(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(w5),S=v.motion,g=n(o,S),p=h.useRef(),m=h.useRef();function w(){try{return p.current instanceof HTMLElement?p.current:u8(m.current)}catch{return null}}var E=nb(g,s,w,o),x=Y(E,4),b=x[0],T=x[1],P=x[2],O=x[3],F=h.useRef(O);O&&(F.current=!0);var D=h.useCallback(function(B){p.current=B,x3(i,B)},[i]),$,z=U(U({},C),{},{visible:s});if(!f)$=null;else if(b===no)O?$=f(U({},z),D):!u&&F.current&&y?$=f(U(U({},z),{},{className:y}),D):c||!u&&!y?$=f(U(U({},z),{},{style:{display:"none"}}),D):$=null;else{var H,A;T===Pn?A="prepare":L5(T)?A="active":T===ui&&(A="start");var R=Lg(d,"".concat(b,"-").concat(A));$=f(U(U({},z),{},{className:le(Lg(d,b),(H={},V(H,R,R&&A),V(H,d,typeof d=="string"),H)),style:P}),D)}if(h.isValidElement($)&&Zu($)){var M=$,N=M.ref;N||($=h.cloneElement($,{ref:D}))}return h.createElement(G7,{ref:m},$)});return r.displayName="CSSMotion",r}const Ss=rb(M5);var Gd="add",Kd="keep",Zd="remove",sf="removed";function ob(e){var t;return e&&Ee(e)==="object"&&"key"in e?t=e:t={key:e},U(U({},t),{},{key:String(t.key)})}function qd(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(ob)}function ib(){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=qd(e),a=qd(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!==Zd}),n.forEach(function(c){c.key===u&&(c.status=Kd)})}),n}var ab=["component","children","onVisibleChanged","onAllRemoved"],sb=["status"],lb=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function ub(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ss,n=function(r){ys(i,r);var o=Cs(i);function i(){var a;vn(this,i);for(var s=arguments.length,l=new Array(s),u=0;unull;var hb=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 yb=e=>{let{prefixCls:t,iconPrefixCls:n,theme:r}=e;t!==void 0&&(F5=t),r&&vb(r)&&v7(gb(),r)},Cb=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:F,checkbox:D,descriptions:$,divider:z,drawer:H,skeleton:A,steps:R,image:M,layout:N,list:B,mentions:I,modal:K,progress:X,result:te,slider:de,breadcrumb:ne,menu:me,pagination:yt,input:Pt,empty:Ze,badge:fe,radio:Ct,rate:ye,switch:dt,transfer:ke,avatar:$n,message:Vt,tag:$t,table:Ae,card:Me,tabs:ce,timeline:we,timePicker:ht,upload:tn,notification:nn,tree:rn,colorPicker:mr,datePicker:pc,rangePicker:An,flex:ks,wave:Ls,dropdown:Fs,warning:mc}=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]),jn=g||S.iconPrefixCls||a5,gr=n||S.csp;y5(jn,gr);const Xr=H7(p,S.theme),zi={csp:gr,autoInsertSpaceInButton:r,alert:o,anchor:i,locale:s||v,direction:u,space:c,virtual:f,popupMatchSelectWidth:y??d,popupOverflow:C,getPrefixCls:$s,iconPrefixCls:jn,theme:Xr,segmented:w,statistic:E,spin:x,calendar:b,carousel:T,cascader:P,collapse:O,typography:F,checkbox:D,descriptions:$,divider:z,drawer:H,skeleton:A,steps:R,image:M,input:Pt,layout:N,list:B,mentions:I,modal:K,progress:X,result:te,slider:de,breadcrumb:ne,menu:me,pagination:yt,empty:Ze,badge:fe,radio:Ct,rate:ye,switch:dt,transfer:ke,avatar:$n,message:Vt,tag:$t,table:Ae,card:Me,tabs:ce,timeline:we,timePicker:ht,upload:tn,notification:nn,tree:rn,colorPicker:mr,datePicker:pc,rangePicker:An,flex:ks,wave:Ls,dropdown:Fs,warning:mc},Qr=Object.assign({},S);Object.keys(zi).forEach(_=>{zi[_]!==void 0&&(Qr[_]=zi[_])}),pb.forEach(_=>{const W=e[_];W&&(Qr[_]=W)});const vr=Mp(()=>Qr,Qr,(_,W)=>{const q=Object.keys(_),ae=Object.keys(W);return q.length!==ae.length||q.some(re=>_[re]!==W[re])}),As=h.useMemo(()=>({prefixCls:jn,csp:gr}),[jn,gr]);let rt=h.createElement(h.Fragment,null,h.createElement(db,{dropdownMatchSelectWidth:d}),t);const k=h.useMemo(()=>{var _,W,q,ae;return li(((_=ko.Form)===null||_===void 0?void 0:_.defaultValidateMessages)||{},((q=(W=vr.locale)===null||W===void 0?void 0:W.Form)===null||q===void 0?void 0:q.defaultValidateMessages)||{},((ae=vr.form)===null||ae===void 0?void 0:ae.validateMessages)||{},(a==null?void 0:a.validateMessages)||{})},[vr,a==null?void 0:a.validateMessages]);Object.keys(k).length>0&&(rt=h.createElement(Ew.Provider,{value:k},rt)),s&&(rt=h.createElement(Nw,{locale:s,_ANT_MARK__:Aw},rt)),(jn||gr)&&(rt=h.createElement(Ip.Provider,{value:As},rt)),l&&(rt=h.createElement(y7,{size:l},rt)),rt=h.createElement(fb,null,rt);const j=h.useMemo(()=>{const _=Xr||{},{algorithm:W,token:q,components:ae,cssVar:re}=_,ie=hb(_,["algorithm","token","components","cssVar"]),J=W&&(!Array.isArray(W)||W.length>0)?$d(W):r5,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=$d(He.algorithm)),delete He.algorithm),he[Te]=He});const qe=Object.assign(Object.assign({},rs),q);return Object.assign(Object.assign({},ie),{theme:J,token:qe,components:he,override:Object.assign({override:qe},he),cssVar:re})},[Xr]);return p&&(rt=h.createElement(i5.Provider,{value:j},rt)),vr.warning&&(rt=h.createElement(bw.Provider,{value:vr.warning},rt)),m!==void 0&&(rt=h.createElement(s5,{disabled:m},rt)),h.createElement(ft.Provider,{value:vr},rt)},Vi=e=>{const t=h.useContext(ft),n=h.useContext(Dp);return h.createElement(Cb,Object.assign({parentContext:t,legacyLocale:n},e))};Vi.ConfigContext=ft;Vi.SizeContext=Ju;Vi.config=yb;Vi.useConfig=C7;Object.defineProperty(Vi,"SizeContext",{get:()=>Ju});const $5=Vi;var Sb={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 xb=Sb;function A5(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function wb(e){return A5(e)instanceof ShadowRoot}function bb(e){return wb(e)?A5(e):null}function Eb(e){return e.replace(/-(.)/g,function(t,n){return n.toUpperCase()})}function Pb(e,t){Xt(e,"[@ant-design/icons] ".concat(t))}function Fg(e){return Ee(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(Ee(e.icon)==="object"||typeof e.icon=="function")}function $g(){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[Eb(n)]=r}return t},{})}function Xd(e,t,n){return n?Z.createElement(e.tag,U(U({key:t},$g(e.attrs)),n),(e.children||[]).map(function(r,o){return Xd(r,"".concat(t,"-").concat(e.tag,"-").concat(o))})):Z.createElement(e.tag,U({key:t},$g(e.attrs)),(e.children||[]).map(function(r,o){return Xd(r,"".concat(t,"-").concat(e.tag,"-").concat(o))}))}function j5(e){return Lo(e)[0]}function N5(e){return e?Array.isArray(e)?e:[e]:[]}var Tb=` .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); } } `,Ob=function(t){var n=h.useContext(Ip),r=n.csp,o=n.prefixCls,i=Tb;o&&(i=i.replace(/anticon/g,o)),h.useEffect(function(){var a=t.current,s=bb(a);Hr(i,"@ant-design-icons",{prepend:!0,csp:r,attachTo:s})},[])},Mb=["icon","className","onClick","style","primaryColor","secondaryColor"],Ta={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function Rb(e){var t=e.primaryColor,n=e.secondaryColor;Ta.primaryColor=t,Ta.secondaryColor=n||j5(t),Ta.calculated=!!n}function kb(){return U({},Ta)}var ec=function(t){var n=t.icon,r=t.className,o=t.onClick,i=t.style,a=t.primaryColor,s=t.secondaryColor,l=Un(t,Mb),u=h.useRef(),c=Ta;if(a&&(c={primaryColor:a,secondaryColor:s||j5(a)}),Ob(u),Pb(Fg(n),"icon should be icon definiton, but got ".concat(n)),!Fg(n))return null;var f=n;return f&&typeof f.icon=="function"&&(f=U(U({},f),{},{icon:f.icon(c.primaryColor,c.secondaryColor)})),Xd(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}))};ec.displayName="IconReact";ec.getTwoToneColors=kb;ec.setTwoToneColors=Rb;const Up=ec;function I5(e){var t=N5(e),n=Y(t,2),r=n[0],o=n[1];return Up.setTwoToneColors({primaryColor:r,secondaryColor:o})}function Lb(){var e=Up.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var Fb=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];I5(Jw.primary);var tc=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=Un(e,Fb),f=h.useContext(Ip),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=N5(u),m=Y(p,2),w=m[0],E=m[1];return h.createElement("span",$e({role:"img","aria-label":o.name},c,{ref:t,tabIndex:S,onClick:l,className:v}),h.createElement(Up,{icon:o,primaryColor:w,secondaryColor:E,style:g}))});tc.displayName="AntdIcon";tc.getTwoToneColor=Lb;tc.setTwoToneColor=I5;const pr=tc;var $b=function(t,n){return h.createElement(pr,$e({},t,{ref:n,icon:xb}))};const Wp=h.forwardRef($b);var Ab={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 jb=Ab;var Nb=function(t,n){return h.createElement(pr,$e({},t,{ref:n,icon:jb}))};const Gp=h.forwardRef(Nb);var Ib={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 _b=Ib;var Db=function(t,n){return h.createElement(pr,$e({},t,{ref:n,icon:_b}))};const xs=h.forwardRef(Db);var Vb={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 Bb=Vb;var zb=function(t,n){return h.createElement(pr,$e({},t,{ref:n,icon:Bb}))};const Kp=h.forwardRef(zb);var Hb={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 Ub=Hb;var Wb=function(t,n){return h.createElement(pr,$e({},t,{ref:n,icon:Ub}))};const Zp=h.forwardRef(Wb);var Gb=`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`,Kb=`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`,Zb="".concat(Gb," ").concat(Kb).split(/[\s\n]+/),qb="aria-",Xb="data-";function Ag(e,t){return e.indexOf(t)===0}function Qb(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"||Ag(o,qb))||n.data&&Ag(o,Xb)||n.attr&&Zb.includes(o))&&(r[o]=e[o])}),r}const{isValidElement:_5}=ji;function Yb(e){return e&&_5(e)&&e.type===h.Fragment}function Jb(e,t,n){return _5(e)?h.cloneElement(e,typeof n=="function"?n(e.props||{}):n):t}function D5(e,t){return Jb(e,e,t)}const eE=e=>{const[,,,,t]=Fn();return t?`${e}-css-var`:""},qp=eE;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}}},tE=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",$e({},d,{ref:t,className:le(T,o,V({},"".concat(T,"-closable"),u)),style:r,onMouseEnter:function(O){var F;w(!0),d==null||(F=d.onMouseEnter)===null||F===void 0||F.call(d,O)},onMouseLeave:function(O){var F;w(!1),d==null||(F=d.onMouseLeave)===null||F===void 0||F.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))}),V5=Z.createContext({}),B5=function(t){var n=t.children,r=t.classNames;return Z.createElement(V5.Provider,{value:{classNames:r}},n)},jg=8,Ng=3,Ig=16,nE=function(t){var n={offset:jg,threshold:Ng,gap:Ig};if(t&&Ee(t)==="object"){var r,o,i;n.offset=(r=t.offset)!==null&&r!==void 0?r:jg,n.threshold=(o=t.threshold)!==null&&o!==void 0?o:Ng,n.gap=(i=t.gap)!==null&&i!==void 0?i:Ig}return[!!t,n]},rE=["className","style","classNames","styles"],oE=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(V5),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],F=P[1],D=F.offset,$=F.threshold,z=F.gap,H=O&&(E.length>0||b.length<=$),A=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(cb,$e({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},A,{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,yt=me.className,Pt=me.style,Ze=me.classNames,fe=me.styles,Ct=Un(me,rE),ye=b.findIndex(function(nn){return nn.key===ne}),dt={};if(O){var ke=b.length-1-(ye>-1?ye:K-1),$n=o==="top"||o==="bottom"?"-50%":"0";if(ke>0){var Vt,$t,Ae;dt.height=H?(Vt=C.current[ne])===null||Vt===void 0?void 0:Vt.offsetHeight:g==null?void 0:g.offsetHeight;for(var Me=0,ce=0;ce-1?C.current[ne]=rn:delete C.current[ne]},prefixCls:i,classNames:Ze,styles:fe,className:le(yt,y==null?void 0:y.notice),style:Pt,times:de,key:te,eventKey:te,onNoticeClose:c,hovering:O&&E.length>0})))})},iE=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,F=C.find(function(D){return D.key===P});F==null||(O=F.onClose)===null||O===void 0||O.call(F),v(function(D){return D.filter(function($){return $.key!==P})})};h.useImperativeHandle(t,function(){return{open:function(P){v(function(O){var F=ee(O),D=F.findIndex(function(H){return H.key===P.key}),$=U({},P);if(D>=0){var z;$.times=(((z=O[D])===null||z===void 0?void 0:z.times)||0)+1,F[D]=$}else $.times=0,F.push($);return a>0&&F.length>a&&(F=F.slice(-a)),F})},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,F=O===void 0?"topRight":O;F&&(T[F]=T[F]||[],T[F].push(P))}),Object.keys(m).forEach(function(P){T[P]=T[P]||[]}),w(T)},[C]);var E=function(P){w(function(O){var F=U({},O),D=F[P]||[];return D.length||delete F[P],F})},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 ps.createPortal(h.createElement(h.Fragment,null,b.map(function(T){var P=m[T],O=h.createElement(oE,{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)}),aE=["getContainer","motion","prefixCls","maxCount","className","style","onAllRemoved","stack","renderNotifications"],sE=function(){return document.body},_g=0;function lE(){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?sE: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=Un(e,aE),d=h.useState(),y=Y(d,2),C=y[0],v=y[1],S=h.useRef(),g=h.createElement(iE,{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=lE(f,T);(P.key===null||P.key===void 0)&&(P.key="rc-notification-".concat(_g),_g+=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 uE={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 cE=uE;var fE=function(t,n){return h.createElement(pr,$e({},t,{ref:n,icon:cE}))};const H5=h.forwardRef(fE),dE=Z.createContext(void 0),U5=dE,ro=100,hE=10,nc=ro*hE,W5={Modal:ro,Drawer:ro,Popover:ro,Popconfirm:ro,Tooltip:ro,Tour:ro},pE={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function mE(e){return e in W5}function gE(e,t){const[,n]=Fn(),r=Z.useContext(U5),o=mE(e);if(t!==void 0)return[t,t];let i=r??0;return o?(i+=(r?0:n.zIndexPopupBase)+W5[e],i=Math.min(i,n.zIndexPopupBase+nc)):i+=pE[e],[r===void 0?t:i,i]}const vE=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({},Bp(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+nc+10,contentBg:e.colorBgElevated,contentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`}),CE=jo("Message",e=>{const t=Wn(e,{height:150});return[vE(t)]},yE);globalThis&&globalThis.__rest;const SE={info:h.createElement(Zp,null),success:h.createElement(Wp,null),error:h.createElement(Gp,null),warning:h.createElement(Kp,null),loading:h.createElement(H5,null)},xE=e=>{let{prefixCls:t,type:n,icon:r,children:o}=e;return h.createElement("div",{className:le(`${t}-custom-content`,`${t}-${n}`)},r||SE[n],h.createElement("span",null,o))};function wE(e,t){return{motionName:t??`${e}-move-up`}}function bE(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 EE=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=qp(n),[o,i,a]=CE(n,r);return o(h.createElement(B5,{classNames:{list:le(i,a,r)}},t))},ME=(e,t)=>{let{prefixCls:n,key:r}=t;return h.createElement(OE,{prefixCls:n,key:r},e)},RE=h.forwardRef((e,t)=>{const{top:n,prefixCls:r,getContainer:o,maxCount:i,duration:a=TE,rtl:s,transitionName:l,onAllRemoved:u}=e,{getPrefixCls:c,getPopupContainer:f,message:d}=h.useContext(ft),y=r||c("message"),C=()=>({left:"50%",transform:"translateX(-50%)",top:n??PE}),v=()=>le({[`${y}-rtl`]:s}),S=()=>wE(y,l),g=h.createElement("span",{className:`${y}-close-x`},h.createElement(xs,{className:`${y}-close-icon`})),[p,m]=z5({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:ME});return h.useImperativeHandle(t,()=>Object.assign(Object.assign({},p),{prefixCls:y,message:d})),m});let Dg=0;function kE(e){const t=h.useRef(null);return _p(),[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=EE(l,["content","icon","type","key","className","style","onClose"]);let E=S;return E==null&&(Dg+=1,E=`antd-message-${Dg}`),bE(x=>(u(Object.assign(Object.assign({},w),{key:E,content:h.createElement(xE,{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(RE,Object.assign({key:"message-holder"},e,{ref:t}))]}function LE(e){return kE(e)}function FE(){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 kt(){kt=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(A,R,M){A[R]=M.value},i=typeof Symbol=="function"?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function u(A,R,M){return Object.defineProperty(A,R,{value:M,enumerable:!0,configurable:!0,writable:!0}),A[R]}try{u({},"")}catch{u=function(M,N,B){return M[N]=B}}function c(A,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(A,M,K)}),I}function f(A,R,M){try{return{type:"normal",arg:A.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(A){["next","throw","return"].forEach(function(R){u(A,R,function(M){return this._invoke(R,M)})})}function P(A,R){function M(B,I,K,X){var te=f(A[B],A,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(A,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=F(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(A,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 F(A,R){var M=R.method,N=A.iterator[M];if(N===e)return R.delegate=null,M==="throw"&&A.iterator.return&&(R.method="return",R.arg=e,F(A,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,A.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[A.resultName]=I.value,R.next=A.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(A){var R={tryLoc:A[0]};1 in A&&(R.catchLoc=A[1]),2 in A&&(R.finallyLoc=A[2],R.afterLoc=A[3]),this.tryEntries.push(R)}function $(A){var R=A.completion||{};R.type="normal",delete R.arg,A.completion=R}function z(A){this.tryEntries=[{tryLoc:"root"}],A.forEach(D,this),this.reset(!0)}function H(A){if(A||A===""){var R=A[a];if(R)return R.call(A);if(typeof A.next=="function")return A;if(!isNaN(A.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),$(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;$(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 Vg(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 No(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(l){Vg(i,r,o,a,s,"next",l)}function s(l){Vg(i,r,o,a,s,"throw",l)}a(void 0)})}}var ws=U({},Q2),$E=ws.version,AE=ws.render,jE=ws.unmountComponentAtNode,rc;try{var NE=Number(($E||"").split(".")[0]);NE>=18&&(rc=ws.createRoot)}catch{}function Bg(e){var t=ws.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&Ee(t)==="object"&&(t.usingClientEntryPoint=e)}var lu="__rc_react_root__";function IE(e,t){Bg(!0);var n=t[lu]||rc(t);Bg(!1),n.render(e),t[lu]=n}function _E(e,t){AE(e,t)}function DE(e,t){if(rc){IE(e,t);return}_E(e,t)}function VE(e){return Qd.apply(this,arguments)}function Qd(){return Qd=No(kt().mark(function e(t){return kt().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.resolve().then(function(){var o;(o=t[lu])===null||o===void 0||o.unmount(),delete t[lu]}));case 1:case"end":return r.stop()}},e)})),Qd.apply(this,arguments)}function BE(e){jE(e)}function zE(e){return Yd.apply(this,arguments)}function Yd(){return Yd=No(kt().mark(function e(t){return kt().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(rc===void 0){r.next=2;break}return r.abrupt("return",VE(t));case 2:BE(t);case 3:case"end":return r.stop()}},e)})),Yd.apply(this,arguments)}const lf=()=>({height:0,opacity:0}),zg=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},HE=e=>({height:e?e.offsetHeight:0}),uf=(e,t)=>(t==null?void 0:t.deadline)===!0||t.propertyName==="height",UE=function(){return{motionName:`${arguments.length>0&&arguments[0]!==void 0?arguments[0]:"ant"}-motion-collapse`,onAppearStart:lf,onEnterStart:lf,onAppearActive:zg,onEnterActive:zg,onLeaveStart:HE,onLeaveActive:lf,onAppearEnd:uf,onEnterEnd:uf,onLeaveEnd:uf,motionDeadline:500}},uu=(e,t,n)=>n!==void 0?n:`${e}-${t}`,J$=UE,WE=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},GE=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(",")}}}}},KE=zp("Wave",e=>[GE(e)]);function ZE(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)"&&ZE(e)&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&e!=="transparent"}function qE(e){const{borderTopColor:t,borderColor:n,backgroundColor:r}=getComputedStyle(e);return cf(t)?t:cf(n)?n:cf(r)?r:null}const G5="ant-wave-target";function ff(e){return Number.isNaN(e)?0:e}const XE=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(qE(n));const b=x.position==="static",{borderLeftWidth:T,borderTopWidth:P}=x;c(b?n.offsetLeft:ff(-parseFloat(T))),d(b?n.offsetTop:ff(-parseFloat(P))),C(n.offsetWidth),S(n.offsetHeight);const{borderTopLeftRadius:O,borderTopRightRadius:F,borderBottomLeftRadius:D,borderBottomRightRadius:$}=x;l([O,F,$,D].map(z=>ff(parseFloat(z))))}if(h.useEffect(()=>{if(n){const x=Ro(()=>{w(),p(!0)});let b;return typeof ResizeObserver<"u"&&(b=new ResizeObserver(w),b.observe(n)),()=>{Ro.cancel(x),b==null||b.disconnect()}}},[]),!g)return null;const E=(r==="Checkbox"||r==="Radio")&&(n==null?void 0:n.classList.contains(G5));return h.createElement(Ss,{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;zE(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})})},QE=(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),DE(h.createElement(XE,Object.assign({},t,{target:e})),o)},YE=QE;function JE(e,t,n){const{wave:r}=h.useContext(ft),[,o,i]=Fn(),a=h5(u=>{const c=e.current;if(r!=null&&r.disabled||!c)return;const f=c.querySelector(`.${G5}`)||c,{showEffect:d}=r||{};(d||YE)(f,{className:t,token:o,component:n,event:u,hashId:i})}),s=h.useRef();return u=>{Ro.cancel(s.current),s.current=Ro(()=>{a(u)})}}const eP=e=>{const{children:t,disabled:n,component:r}=e,{getPrefixCls:o}=h.useContext(ft),i=h.useRef(null),a=o("wave"),[,s]=KE(a),l=JE(i,le(a,s),r);if(Z.useEffect(()=>{const c=i.current;if(!c||c.nodeType!==1||n)return;const f=d=>{!WE(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=Zu(t)?Rp(t.ref,i):i;return D5(t,{ref:u})},tP=eP,nP=e=>{const t=Z.useContext(Ju);return Z.useMemo(()=>e?typeof e=="string"?e??t:e instanceof Function?e(t):t:t,[e,t])},K5=nP,rP=e=>{const{componentCls:t}=e;return{[t]:{"&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}},oP=rP,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"}}}},aP=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}}}},sP=jo("Space",e=>{const t=Wn(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[iP(t),aP(t),oP(t)]},()=>({}),{resetStyle:!1});var Z5=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(oc),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}},uP=e=>{let{children:t}=e;return h.createElement(oc.Provider,{value:null},t)},cP=e=>{var{children:t}=e,n=Z5(e,["children"]);return h.createElement(oc.Provider,{value:n},t)},eA=e=>{const{getPrefixCls:t,direction:n}=h.useContext(ft),{size:r,direction:o,block:i,prefixCls:a,className:s,rootClassName:l,children:u}=e,c=Z5(e,["size","direction","block","prefixCls","className","rootClassName","children"]),f=K5(m=>r??m),d=t("space-compact",a),[y,C]=sP(d),v=le(d,C,{[`${d}-rtl`]:n==="rtl",[`${d}-block`]:i,[`${d}-vertical`]:o==="vertical"},s,l),S=h.useContext(oc),g=Ya(u),p=h.useMemo(()=>g.map((m,w)=>{const E=m&&m.key||`${d}-item-${w}`;return h.createElement(cP,{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 fP=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(ft),{prefixCls:r,size:o,className:i}=e,a=fP(e,["prefixCls","size","className"]),s=t("btn-group",r),[,,l]=Fn();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(q5.Provider,{value:o},h.createElement("div",Object.assign({},a,{className:c})))},hP=dP,Hg=/^[\u4e00-\u9fa5]{2}$/,Jd=Hg.test.bind(Hg);function X5(e){return e==="danger"?{danger:!0}:{type:e}}function Ug(e){return typeof e=="string"}function df(e){return e==="text"||e==="link"}function pP(e,t){if(e==null)return;const n=t?" ":"";return typeof e!="string"&&typeof e!="number"&&Ug(e.type)&&Jd(e.props.children)?D5(e,{children:e.props.children.split("").join(n)}):Ug(e)?Jd(e)?Z.createElement("span",null,e.split("").join(n)):Z.createElement("span",null,e):Yb(e)?Z.createElement("span",null,e):e}function mP(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=>pP(o,t))}const gP=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)}),Q5=gP,Wg=h.forwardRef((e,t)=>{let{prefixCls:n,className:r,style:o,iconClassName:i}=e;const a=le(`${n}-loading-icon`,r);return Z.createElement(Q5,{prefixCls:n,className:a,style:o,ref:t},Z.createElement(H5,{className:i}))}),hf=()=>({width:0,opacity:0,transform:"scale(0)"}),pf=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),vP=e=>{const{prefixCls:t,loading:n,existIcon:r,className:o,style:i}=e,a=!!n;return r?Z.createElement(Wg,{prefixCls:t,className:o,style:i}):Z.createElement(Ss,{visible:a,motionName:`${t}-loading-icon-motion`,motionLeave:a,removeOnLeave:!0,onAppearStart:hf,onAppearActive:pf,onEnterStart:hf,onEnterActive:pf,onLeaveStart:pf,onLeaveActive:hf},(s,l)=>{let{className:u,style:c}=s;return Z.createElement(Wg,{prefixCls:t,className:o,style:Object.assign(Object.assign({},i),c),ref:l,iconClassName:u})})},yP=vP,Gg=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),CP=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}},Gg(`${t}-primary`,o),Gg(`${t}-danger`,i)]}},SP=CP,xP=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({},p5(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"}}}},ur=(e,t,n)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":n}}),wP=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),bP=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.calc(e.controlHeight).div(2).equal(),paddingInlineEnd:e.calc(e.controlHeight).div(2).equal()}),EP=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),os=(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"},ur(e,Object.assign({background:t},a),Object.assign({background:t},s))),{"&:disabled":{cursor:"not-allowed",color:o||void 0,borderColor:i||void 0}})}),Xp=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},EP(e))}),Y5=e=>Object.assign({},Xp(e)),cu=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),J5=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Y5(e)),{background:e.defaultBg,borderColor:e.defaultBorderColor,color:e.defaultColor,boxShadow:e.defaultShadow}),ur(e.componentCls,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),os(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},ur(e.componentCls,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),os(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder)),Xp(e))}),PP=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Y5(e)),{color:e.primaryColor,background:e.colorPrimary,boxShadow:e.primaryShadow}),ur(e.componentCls,{color:e.colorTextLightSolid,background:e.colorPrimaryHover},{color:e.colorTextLightSolid,background:e.colorPrimaryActive})),os(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},ur(e.componentCls,{background:e.colorErrorHover},{background:e.colorErrorActive})),os(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),Xp(e))}),TP=e=>Object.assign(Object.assign({},J5(e)),{borderStyle:"dashed"}),OP=e=>Object.assign(Object.assign(Object.assign({color:e.colorLink},ur(e.componentCls,{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),cu(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},ur(e.componentCls,{color:e.colorErrorHover},{color:e.colorErrorActive})),cu(e))}),MP=e=>Object.assign(Object.assign(Object.assign({},ur(e.componentCls,{color:e.colorText,background:e.textHoverBg},{color:e.colorText,background:e.colorBgTextActive})),cu(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},cu(e)),ur(e.componentCls,{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBg}))}),RP=e=>{const{componentCls:t}=e;return{[`${t}-default`]:J5(e),[`${t}-primary`]:PP(e),[`${t}-dashed`]:TP(e),[`${t}-link`]:OP(e),[`${t}-text`]:MP(e),[`${t}-ghost`]:os(e.componentCls,e.ghostBg,e.colorBgContainer,e.colorBgContainer,e.colorTextDisabled,e.colorBorder)}},Qp=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}`]:wP(e)},{[`${n}${n}-round${t}`]:bP(e)}]},kP=e=>Qp(Wn(e,{fontSize:e.contentFontSize})),LP=e=>{const t=Wn(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:e.paddingBlockSM,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return Qp(t,`${e.componentCls}-sm`)},FP=e=>{const t=Wn(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:e.paddingBlockLG,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return Qp(t,`${e.componentCls}-lg`)},$P=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},eC=e=>{const{paddingInline:t,onlyIconSize:n,paddingBlock:r}=e;return Wn(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:r,buttonIconOnlyFontSize:n})},tC=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}},AP=jo("Button",e=>{const t=eC(e);return[xP(t),LP(t),kP(t),FP(t),$P(t),RP(t),SP(t)]},tC,{unitless:{fontWeight:!0}});function jP(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 NP(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 IP(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({},jP(e,r,t)),NP(n,r,t))}}function _P(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 DP(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 VP(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},_P(e,t)),DP(e.componentCls,t))}}const BP=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:'""'}}}}}}},zP=x5(["Button","compact"],e=>{const t=eC(e);return[IP(t),VP(t),BP(t)]},tC);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{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=HP(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(ft),O=x("btn",i),[F,D,$]=AP(O),z=h.useContext(l5),H=f??z,A=h.useContext(q5),R=h.useMemo(()=>UP(o),[o]),[M,N]=h.useState(R.loading),[B,I]=h.useState(!1),X=Rp(t,h.createRef()),te=h.Children.count(C)===1&&!v&&!df(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&&Jd(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:yt}=lP(O,T),Pt={large:"lg",small:"sm",middle:void 0},Ze=K5(ce=>{var we,ht;return(ht=(we=u??me)!==null&&we!==void 0?we:A)!==null&&ht!==void 0?ht:ce}),fe=Ze&&Pt[Ze]||"",Ct=M?"loading":v,ye=kp(E,["navigate"]),dt=le(O,D,$,{[`${O}-${l}`]:l!=="default"&&l,[`${O}-${a}`]:a,[`${O}-${fe}`]:fe,[`${O}-icon-only`]:!C&&C!==0&&!!Ct,[`${O}-background-ghost`]:S&&!df(a),[`${O}-loading`]:M,[`${O}-two-chinese-chars`]:B&&ne&&!M,[`${O}-block`]:g,[`${O}-dangerous`]:!!s,[`${O}-rtl`]:T==="rtl"},yt,d,y,P==null?void 0:P.className),ke=Object.assign(Object.assign({},P==null?void 0:P.style),w),$n=le(m==null?void 0:m.icon,(n=P==null?void 0:P.classNames)===null||n===void 0?void 0:n.icon),Vt=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)||{}),$t=v&&!M?Z.createElement(Q5,{prefixCls:O,className:$n,style:Vt},v):Z.createElement(yP,{existIcon:!!v,prefixCls:O,loading:!!M}),Ae=C||C===0?mP(C,te&&ne):null;if(ye.href!==void 0)return F(Z.createElement("a",Object.assign({},ye,{className:le(dt,{[`${O}-disabled`]:H}),href:H?void 0:ye.href,style:ke,onClick:de,ref:X,tabIndex:H?-1:0}),$t,Ae));let Me=Z.createElement("button",Object.assign({},E,{type:p,className:dt,style:ke,onClick:de,disabled:H,ref:X}),$t,Ae,yt&&Z.createElement(zP,{key:"compact",prefixCls:O}));return df(a)||(Me=Z.createElement(tP,{component:"Button",disabled:!!M},Me)),F(Me)},Yp=h.forwardRef(WP);Yp.Group=hP;Yp.__ANT_BUTTON=!0;const Jp=Yp;function Kg(e){return!!(e&&e.then)}const GP=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]=Pa(!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=>{Kg(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&&!Kg(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(Jp,Object.assign({},X5(t),{onClick:g,loading:y,prefixCls:r},o,{ref:d}),n)},nC=GP,bs=Z.createContext({}),{Provider:rC}=bs,KP=()=>{const{autoFocusButton:e,cancelButtonProps:t,cancelTextLocale:n,isSilent:r,mergedOkCancel:o,rootPrefixCls:i,close:a,onCancel:s,onConfirm:l}=h.useContext(bs);return o?Z.createElement(nC,{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},Zg=KP,ZP=()=>{const{autoFocusButton:e,close:t,isSilent:n,okButtonProps:r,rootPrefixCls:o,okTextLocale:i,okType:a,onConfirm:s,onOk:l}=h.useContext(bs);return Z.createElement(nC,{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)},qg=ZP;var oC=h.createContext(null),Xg=[];function qP(e,t){var n=h.useState(function(){if(!Rt())return null;var C=document.createElement("div");return C}),r=Y(n,1),o=r[0],i=h.useRef(!1),a=h.useContext(oC),s=h.useState(Xg),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 es(function(){return e?a?a(d):d():y(),y},[e]),es(function(){u.length&&(u.forEach(function(C){return C()}),c(Xg))},[u]),[o,f]}var mf;function XP(e){if(typeof document>"u")return 0;if(e||mf===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),mf=o-i}return mf}function Qg(e){var t=e.match(/^(.*)px$/),n=Number(t==null?void 0:t[1]);return Number.isNaN(n)?XP():n}function QP(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:Qg(n),height:Qg(r)}}function YP(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var JP="rc-util-locker-".concat(Date.now()),Yg=0;function eT(e){var t=!!e,n=h.useState(function(){return Yg+=1,"".concat(JP,"_").concat(Yg)}),r=Y(n,1),o=r[0];es(function(){if(t){var i=QP(document.body).width,a=YP();Hr(` html body { overflow-y: hidden; `.concat(a?"width: calc(100% - ".concat(i,"px);"):"",` }`),o)}else Ja(o);return function(){Ja(o)}},[t,o])}var Jg=!1;function tT(e){return typeof e=="boolean"&&(Jg=e),Jg}var ev=function(t){return t===!1?!1:!Rt()||!t?null:typeof t=="string"?document.querySelector(t):typeof t=="function"?t():t},nT=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 ev(o)}),C=Y(y,2),v=C[0],S=C[1];h.useEffect(function(){var F=ev(o);S(F??null)});var g=qP(d&&!v),p=Y(g,2),m=p[0],w=p[1],E=v??m;eT(r&&n&&Rt()&&(E===m||E===document.body));var x=null;if(s&&Zu(s)&&t){var b=s;x=b.ref}var T=w3(x,t);if(!d||!Rt()||v===void 0)return null;var P=E===!1||tT(),O=s;return t&&(O=h.cloneElement(s,{ref:T})),h.createElement(oC.Provider,{value:w},P?O:ps.createPortal(O,E))}),iC=h.createContext({});function rT(){var e=U({},ji);return e.useId}var tv=0,nv=rT();const oT=nv?function(t){var n=nv();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=tv;tv+=1,i("rc_unique_".concat(a))},[]),t||o};function rv(e,t,n){var r=t;return!r&&n&&(r="".concat(e,"-").concat(n)),r}function ov(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+=ov(o),n.top+=ov(o,!0),n}const aT=h.memo(function(e){var t=e.children;return t},function(e,t){var n=t.shouldUpdate;return!n});var iv={width:0,height:0,overflow:"hidden",outline:"none"},sT=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(iC),P=T.panel,O=w3(g,P),F=h.useRef(),D=h.useRef();Z.useImperativeHandle(t,function(){return{focus:function(){var N;(N=F.current)===null||N===void 0||N.focus()},changeActive:function(N){var B=document,I=B.activeElement;N&&I===D.current?F.current.focus():!N&&I===F.current&&D.current.focus()}}});var $={};w!==void 0&&($.width=w),E!==void 0&&($.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 A;l&&(A=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},A,H,Z.createElement("div",$e({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),$),className:le(n,r),onMouseDown:v,onMouseUp:S},Z.createElement("div",{tabIndex:0,ref:F,style:iv,"aria-hidden":"true"}),Z.createElement(aT,{shouldUpdate:p||m},C?C(R):R),Z.createElement("div",{tabIndex:0,ref:D,style:iv,"aria-hidden":"true"}))}),aC=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(Ss,{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(sT,$e({},e,{ref:t,title:r,ariaId:c,prefixCls:n,holderRef:E,style:U(U(U({},b),o),p),className:le(i,x)}))})});aC.displayName="Content";function lT(e){var t=e.prefixCls,n=e.style,r=e.visible,o=e.maskProps,i=e.motionName,a=e.className;return h.createElement(Ss,{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",$e({ref:l,style:U(U({},c),n),className:le("".concat(t,"-mask"),u,a)},o))})}function uT(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,F=e.maskProps,D=e.rootClassName,$=e.classNames,z=e.styles,H=h.useRef(),A=h.useRef(),R=h.useRef(),M=h.useState(i),N=Y(M,2),B=N[0],I=N[1],K=oT();function X(){Ld(A.current,document.activeElement)||(H.current=document.activeElement)}function te(){if(!Ld(A.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),yt=h.useRef(),Pt=function(){clearTimeout(yt.current),me.current=!0},Ze=function(){yt.current=setTimeout(function(){me.current=!1})},fe=null;P&&(fe=function(dt){me.current?me.current=!1:A.current===dt.target&&ne(dt)});function Ct(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(yt.current)}},[]),h.createElement("div",$e({className:le("".concat(n,"-root"),D)},Qb(e,{data:!0})),h.createElement(lT,{prefixCls:n,visible:E&&i,motionName:rv(n,x,b),style:U(U({zIndex:r},O),z==null?void 0:z.mask),maskProps:F,className:$==null?void 0:$.mask}),h.createElement("div",$e({tabIndex:-1,onKeyDown:Ct,className:le("".concat(n,"-wrap"),f,$==null?void 0:$.wrapper),ref:A,onClick:fe,style:U(U(U({zIndex:r},c),z==null?void 0:z.wrapper),{},{display:B?null:"none"})},d),h.createElement(aC,$e({},e,{onMouseDown:Pt,onMouseUp:Ze,ref:R,closable:m,ariaId:K,prefixCls:n,visible:i&&B,onClose:ne,onVisibleChanged:de,motionName:rv(n,S,g)}))))}var sC=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(iC.Provider,{value:y},h.createElement(nT,{open:n||o||f,autoDestroy:!1,getContainer:r,autoLock:n||f},h.createElement(uT,$e({},t,{destroyOnClose:a,afterClose:function(){s==null||s(),d(!1)}}))))};sC.displayName="Dialog";function cT(e,t,n){return typeof e=="boolean"?e:t===void 0?!!n:t!==!1&&t!==null}function fT(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:Z.createElement(xs,null),o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(!cT(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 dT=()=>Rt()&&window.document.documentElement;var mo="RC_FORM_INTERNAL_HOOKS",Oe=function(){Xt(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},Li=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}}}),fu=h.createContext(null);function eh(e){return e==null?[]:Array.isArray(e)?e:[e]}function hT(e){return e&&!!e._init}function go(){return go=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 Fl(e,t,n){return mT()?Fl=Reflect.construct.bind():Fl=function(o,i,a){var s=[null];s.push.apply(s,i);var l=Function.bind.apply(o,s),u=new l;return a&&is(u,a.prototype),u},Fl.apply(null,arguments)}function gT(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function nh(e){var t=typeof Map=="function"?new Map:void 0;return nh=function(r){if(r===null||!gT(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 Fl(r,arguments,th(this).constructor)}return o.prototype=Object.create(r.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),is(o,r)},nh(e)}var vT=/%[sdj%]/g,yT=function(){};typeof process<"u"&&process.env;function rh(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 Zt(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 CT(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||CT(t)&&typeof e=="string"&&!e)}function ST(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 av(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},ca={integer:function(t){return ca.number(t)&&parseInt(t,10)===t},float:function(t){return ca.number(t)&&!ca.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"&&!ca.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(cv.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(TT())},hex:function(t){return typeof t=="string"&&!!t.match(cv.hex)}},OT=function(t,n,r,o,i){if(t.required&&n===void 0){lC(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?ca[s](n)||o.push(Zt(i.messages.types[s],t.fullField,t.type)):s&&typeof n!==t.type&&o.push(Zt(i.messages.types[s],t.fullField,t.type))},MT=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(Zt(i.messages[f].len,t.fullField,t.len)):s&&!l&&ct.max?o.push(Zt(i.messages[f].max,t.fullField,t.max)):s&&l&&(ct.max)&&o.push(Zt(i.messages[f].range,t.fullField,t.min,t.max))},Wo="enum",RT=function(t,n,r,o,i){t[Wo]=Array.isArray(t[Wo])?t[Wo]:[],t[Wo].indexOf(n)===-1&&o.push(Zt(i.messages[Wo],t.fullField,t[Wo].join(", ")))},kT=function(t,n,r,o,i){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||o.push(Zt(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(Zt(i.messages.pattern.mismatch,t.fullField,n,t.pattern))}}},ge={required:lC,whitespace:PT,type:OT,range:MT,enum:RT,pattern:kT},LT=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)},FT=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)},$T=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)},AT=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)},jT=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)},NT=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)},IT=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)},_T=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)},DT=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)},VT="enum",BT=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[VT](t,n,o,a,i)}r(a)},zT=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)},HT=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)},UT=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)},gf=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)},WT=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)},Oa={string:LT,method:FT,number:$T,boolean:AT,regexp:jT,integer:NT,float:IT,array:_T,object:DT,enum:BT,pattern:zT,date:HT,url:gf,hex:gf,email:gf,required:UT,any:WT};function oh(){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 ih=oh(),Es=function(){function e(n){this.rules=null,this._messages=ih,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=uv(oh(),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 cC(t,r,n)})}function cC(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 XT(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 QT(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 pv(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 YT=["name"],on=[];function mv(e,t,n,r,o,i){return typeof e=="function"?e(t,n,"source"in i?{source:i.source}:{}):r!==o}var em=function(e){ys(n,e);var t=Cs(n);function n(r){var o;if(vn(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",on),V(Ce(o),"warnings",on),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});$3(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&&xi(u,g);switch(c.type==="valueUpdate"&&c.source==="external"&&p!==m&&(o.touched=!0,o.dirty=!0,o.validatePromise=null,o.errors=on,o.warnings=on,o.triggerMetaEvent()),c.type){case"reset":if(!u||w){o.touched=!1,o.dirty=!1,o.validatePromise=void 0,o.errors=on,o.warnings=on,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||on),"warnings"in E&&(o.warnings=E.warnings||on),o.dirty=!0,o.triggerMetaEvent(),o.reRender();return}else if("value"in E&&xi(u,g,!0)){o.reRender();return}if(d&&!g.length&&mv(d,l,S,p,m,c)){o.reRender();return}break}case"dependenciesUpdate":{var x=C.map(Xe);if(x.some(function(b){return xi(c.relatedFields,b)})){o.reRender();return}break}default:if(w||(!C.length||g.length||d)&&mv(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(No(kt().mark(function S(){var g,p,m,w,E,x,b;return kt().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 F=O.validateTrigger;if(!F)return!0;var D=eh(F);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=KT(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]:on;if(o.validatePromise===v){var F;o.validatePromise=null;var D=[],$=[];(F=O.forEach)===null||F===void 0||F.call(O,function(z){var H=z.rule.warningOnly,A=z.errors,R=A===void 0?on:A;H?$.push.apply($,ee(R)):D.push.apply(D,ee(R))}),o.errors=D,o.warnings=$,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=on,o.warnings=on,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(mo),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=Ya(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 Vn(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(mo),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,$=arguments.length,z=new Array($),H=0;H<$;H++)z[H]=arguments[H];d?D=d.apply(void 0,z):D=QT.apply(void 0,[C].concat(z)),y&&(D=y(D,b,w(!0))),x({type:"updateValue",namePath:p,value:D}),P&&P.apply(void 0,z)};var F=eh(g||[]);return F.forEach(function(D){var $=O[D];O[D]=function(){$&&$.apply(void 0,arguments);var z=o.props.rules;z&&z.length&&x({type:"validateField",namePath:p,triggerName:D})}}),O}),r.fieldContext){var i=r.fieldContext.getInternalHooks,a=i(mo),s=a.initEntityValue;s(Ce(o))}return o}return yn(n,[{key:"componentDidMount",value:function(){var o=this.props,i=o.shouldUpdate,a=o.fieldContext;if(this.mounted=!0,a){var s=a.getInternalHooks,l=s(mo),u=l.registerField;this.cancelRegisterFunc=u(this)}i===!0&&this.reRender()}},{key:"componentWillUnmount",value:function(){this.cancelRegister(),this.triggerMetaEvent(!0),this.mounted=!1}},{key:"reRender",value:function(){this.mounted&&this.forceUpdate()}},{key:"render",value:function(){var o=this.state.resetCount,i=this.props.children,a=this.getOnlyChild(i),s=a.child,l=a.isFunction,u;return l?u=s:h.isValidElement(s)?u=h.cloneElement(s,this.getControlled(s.props)):(Xt(!s,"`children` of Field is not validate ReactElement."),u=s),h.createElement(h.Fragment,{key:o},u)}}]),n}(h.Component);V(em,"contextType",Li);V(em,"defaultProps",{trigger:"onChange",valuePropName:"value"});function fC(e){var t=e.name,n=Un(e,YT),r=h.useContext(Li),o=h.useContext(fu),i=t!==void 0?Xe(t):void 0,a="keep";return n.isListField||(a="_".concat((i||[]).join("_"))),h.createElement(em,$e({key:a,name:i,isListField:!!o},n,{fieldContext:r}))}function JT(e){var t=e.name,n=e.initialValue,r=e.children,o=e.rules,i=e.validateTrigger,a=e.isListField,s=h.useContext(Li),l=h.useContext(fu),u=h.useRef({keys:[],id:0}),c=u.current,f=h.useMemo(function(){var v=Xe(s.prefixName)||[];return[].concat(ee(v),ee(Xe(t)))},[s.prefixName,t]),d=h.useMemo(function(){return U(U({},s),{},{prefixName:f})},[s,f]),y=h.useMemo(function(){return{getKey:function(S){var g=f.length,p=S[g];return[c.keys[p],S.slice(g+1)]}}},[f]);if(typeof r!="function")return Xt(!1,"Form.List only accepts function as children."),null;var C=function(S,g,p){var m=p.source;return m==="internal"?!1:S!==g};return h.createElement(fu.Provider,{value:y},h.createElement(Li.Provider,{value:d},h.createElement(fC,{name:[],shouldUpdate:C,rules:o,validateTrigger:i,initialValue:n,isList:!0,isListField:a??!!l},function(v,S){var g=v.value,p=g===void 0?[]:g,m=v.onChange,w=s.getFieldValue,E=function(){var P=w(f||[]);return P||[]},x={add:function(P,O){var F=E();O>=0&&O<=F.length?(c.keys=[].concat(ee(c.keys.slice(0,O)),[c.id],ee(c.keys.slice(O))),m([].concat(ee(F.slice(0,O)),[P],ee(F.slice(O))))):(c.keys=[].concat(ee(c.keys),[c.id]),m([].concat(ee(F),[P]))),c.id+=1},remove:function(P){var O=E(),F=new Set(Array.isArray(P)?P:[P]);F.size<=0||(c.keys=c.keys.filter(function(D,$){return!F.has($)}),m(O.filter(function(D,$){return!F.has($)})))},move:function(P,O){if(P!==O){var F=E();P<0||P>=F.length||O<0||O>=F.length||(c.keys=pv(c.keys,P,O),m(pv(F,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 eO(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 dC="__@field_split__";function vf(e){return e.map(function(t){return"".concat(Ee(t),":").concat(t)}).join(dC)}var Go=function(){function e(){vn(this,e),V(this,"kvs",new Map)}return yn(e,[{key:"set",value:function(n,r){this.kvs.set(vf(n),r)}},{key:"get",value:function(n){return this.kvs.get(vf(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(vf(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(dC);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}(),tO=["name"],nO=yn(function e(t){var n=this;vn(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===mo?(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}):(Xt(!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=li(r,n.store);(i=n.prevWithoutPreserves)===null||i===void 0||i.map(function(s){var l=s.key;a=En(a,l,Vn(r,l))}),n.prevWithoutPreserves=null,n.updateStore(a)}}),V(this,"destroyForm",function(){var r=new Go;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=Vn(n.initialValues,r);return r.length?li(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 Go;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)}}),hv(n.store,u.map(Xe))}),V(this,"getFieldValue",function(r){n.warningUnhooked();var o=Xe(r);return Vn(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 Go,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)Xt(!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)Xt(!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(En(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(li(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(En(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=Un(a,tO),u=Xe(s);i.push(u),"value"in l&&n.updateStore(En(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=Vn(n.store,i);a===void 0&&n.updateStore(En(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!cC(f.getNamePath(),o)})){var c=n.store;n.updateStore(En(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(En(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=hv(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=li(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 Go;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 Go;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 xi(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||xi(l,m,y)){var w=p.validateRules(U({validateMessages:U(U({},uC),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,F=P.errors;O?T.push.apply(T,ee(F)):b.push.apply(b,ee(F))}),b.length?Promise.reject({name:m,errors:b,warnings:T}):{name:m,errors:b,warnings:T}}))}}});var v=eO(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 hC(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 nO(i);t.current=a.getForm()}return[t.current]}var ch=h.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),rO=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)},oO=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed"],iO=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=Un(t,oO),m=h.useContext(ch),w=hC(a),E=Y(w,1),x=E[0],b=x.getInternalHooks(mo),T=b.useSubscribe,P=b.setInitialValues,O=b.setCallbacks,F=b.setValidateMessages,D=b.setPreserve,$=b.destroyForm;h.useImperativeHandle(n,function(){return x}),h.useEffect(function(){return m.registerForm(r,x),function(){m.unregisterForm(r)}},[m,x,r]),F(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(vv),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(vv.Provider,{value:i},t)};function yv(){}const uO=h.createContext({add:yv,remove:yv});function cO(e){const t=h.useContext(uO),n=h.useRef();return h5(o=>{if(o){const i=e?o.querySelector(e):o;t.add(i),n.current=i}else t.remove(n.current)})}const fO=()=>{const{cancelButtonProps:e,cancelTextLocale:t,onCancel:n}=h.useContext(bs);return Z.createElement(Jp,Object.assign({onClick:n},e),t)},Cv=fO,dO=()=>{const{confirmLoading:e,okButtonProps:t,okType:n,okTextLocale:r,onOk:o}=h.useContext(bs);return Z.createElement(Jp,Object.assign({},X5(n),{loading:e,onClick:o},t),r)},Sv=dO;function hO(e,t){return Z.createElement("span",{className:`${e}-close-x`},t||Z.createElement(xs,{className:`${e}-close-icon`}))}const pO=e=>{const{okText:t,okType:n="primary",cancelText:r,confirmLoading:o,onOk:i,onCancel:a,okButtonProps:s,cancelButtonProps:l,footer:u}=e,[c]=Vp("Modal",Lw()),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(Cv,null),Z.createElement(Sv,null)),typeof u=="function"&&(v=u(v,{OkBtn:Sv,CancelBtn:Cv})),v=Z.createElement(rC,{value:C},v)):v=u,Z.createElement(s5,{disabled:!1},v)},mO=e=>({animationDuration:e,animationFillMode:"both"}),gO=e=>({animationDuration:e,animationFillMode:"both"}),pC=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({},mO(r)),{animationPlayState:"paused"}),[`${i}${e}-leave`]:Object.assign(Object.assign({},gO(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"}}},vO=new Je("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),yO=new Je("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),CO=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const{antCls:n}=e,r=`${n}-fade`,o=t?"&":"";return[pC(r,vO,yO,e.motionDurationMid,t),{[` ${o}${r}-enter, ${o}${r}-appear `]:{opacity:0,animationTimingFunction:"linear"},[`${o}${r}-leave`]:{animationTimingFunction:"linear"}}]},SO=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}}),xv=new Je("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),wv=new Je("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),wO=new Je("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),bO=new Je("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),EO=new Je("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),PO=new Je("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),TO=new Je("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),OO=new Je("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),MO=new Je("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),RO=new Je("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),kO={zoom:{inKeyframes:SO,outKeyframes:xO},"zoom-big":{inKeyframes:xv,outKeyframes:wv},"zoom-big-fast":{inKeyframes:xv,outKeyframes:wv},"zoom-left":{inKeyframes:EO,outKeyframes:PO},"zoom-right":{inKeyframes:TO,outKeyframes:OO},"zoom-up":{inKeyframes:wO,outKeyframes:bO},"zoom-down":{inKeyframes:MO,outKeyframes:RO}},LO=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=kO[t];return[pC(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 bv(e){return{position:e,inset:0}}const FO=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({},bv("fixed")),{zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,pointerEvents:"none",[`${t}-hidden`]:{display:"none"}}),[`${t}-wrap`]:Object.assign(Object.assign({},bv("fixed")),{zIndex:e.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch",[`&:has(${t}${n}-zoom-enter), &:has(${t}${n}-zoom-appear)`]:{pointerEvents:"none"}})}},{[`${t}-root`]:CO(e)}]},$O=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({},Bp(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}},p5(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"}}}]},AO=e=>{const{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},mC=e=>{const t=e.padding,n=e.fontSizeHeading5,r=e.lineHeightHeading5;return Wn(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()})},gC=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}),jO=jo("Modal",e=>{const t=mC(e);return[$O(t),AO(t),FO(t),LO(t,"zoom")]},gC,{unitless:{titleLineHeight:!0}});var NO=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{fh={x:e.pageX,y:e.pageY},setTimeout(()=>{fh=null},100)};dT()&&document.documentElement.addEventListener("click",IO,!0);const _O=e=>{var t;const{getPopupContainer:n,getPrefixCls:r,direction:o,modal:i}=h.useContext(ft),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=NO(e,["prefixCls","className","rootClassName","open","wrapClassName","centered","getContainer","closeIcon","closable","focusTriggerAfterClose","style","visible","width","footer","classNames","styles"]),P=r("modal",l),O=r(),F=qp(P),[D,$,z]=jO(P,F),H=le(d,{[`${P}-centered`]:!!y,[`${P}-wrap-rtl`]:o==="rtl"}),A=E!==null&&h.createElement(pO,Object.assign({},e,{onOk:s,onCancel:a})),[R,M]=fT(S,v,K=>hO(P,K),h.createElement(xs,{className:`${P}-close-icon`}),!0),N=cO(`.${P}-content`),[B,I]=gE("Modal",T.zIndex);return D(h.createElement(uP,null,h.createElement(lO,{status:!0,override:!0},h.createElement(U5.Provider,{value:I},h.createElement(sC,Object.assign({width:w},T,{zIndex:B,getContainer:C===void 0?n:C,prefixCls:P,rootClassName:le($,c,z,F),footer:A,visible:f??m,mousePosition:(t=T.mousePosition)!==null&&t!==void 0?t:fh,onClose:a,closable:R,closeIcon:M,focusTriggerAfterClose:g,transitionName:uu(O,"zoom",e.transitionName),maskTransitionName:uu(O,"fade",e.maskTransitionName),className:le($,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}))))))},DO=_O,VO=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({},E7()),[`&${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}}},BO=x5(["Modal","confirm"],e=>{const t=mC(e);return[VO(t)]},gC,{order:-1e3});var zO=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(Zg,null),h.createElement(qg,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(rC,{value:m},h.createElement("div",{className:`${i}-btns`},typeof l=="function"?l(w,{OkBtn:qg,CancelBtn:Zg}):w)):l,h.createElement(BO,{prefixCls:t}))}const UO=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]=Fn(),F=h.useMemo(()=>n!==void 0?n:O.zIndexPopupBase+nc,[n,O]);return h.createElement(DO,{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:uu(d||"","zoom",e.transitionName),maskTransitionName:uu(d||"","fade",e.maskTransitionName),mask:b,maskClosable:T,style:x,styles:Object.assign({body:y,mask:l},m),width:E,zIndex:F,afterClose:r,keyboard:i,centered:a,getContainer:s,closable:C,closeIcon:v,modalRender:S,focusTriggerAfterClose:g},h.createElement(HO,Object.assign({},e,{confirmPrefixCls:w})))},WO=e=>{const{rootPrefixCls:t,iconPrefixCls:n,direction:r,theme:o}=e;return h.createElement($5,{prefixCls:t,iconPrefixCls:n,direction:r,theme:o},h.createElement(UO,Object.assign({},e)))},GO=WO,KO=[],ZO=KO;globalThis&&globalThis.__rest;function qO(e){return Object.assign(Object.assign({},e),{type:"warning"})}function XO(e){return Object.assign(Object.assign({},e),{type:"info"})}function QO(e){return Object.assign(Object.assign({},e),{type:"success"})}function YO(e){return Object.assign(Object.assign({},e),{type:"error"})}function JO(e){return Object.assign(Object.assign({},e),{type:"confirm"})}var eM=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=eM(e,["afterClose","config"]);const[a,s]=h.useState(!0),[l,u]=h.useState(o),{direction:c,getPrefixCls:f}=h.useContext(ft),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]=Vp("Modal",ko.Modal);return h.createElement(GO,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))},nM=h.forwardRef(tM);let Ev=0;const rM=h.memo(h.forwardRef((e,t)=>{const[n,r]=FE();return h.useImperativeHandle(t,()=>({patchElement:r}),[]),h.createElement(h.Fragment,null,n)}));function oM(){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;Ev+=1;const u=h.createRef();let c;const f=new Promise(S=>{c=S});let d=!1,y;const C=h.createElement(nM,{key:`modal-${Ev}`,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&&ZO.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(XO),success:r(QO),error:r(YO),warning:r(qO),confirm:r(JO)}),[]),h.createElement(rM,{key:"modal-holder",ref:e})]}const iM=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=iM,sM=["top","topLeft","topRight","bottom","bottomLeft","bottomRight"],lM={topLeft:"left",topRight:"right",bottomLeft:"left",bottomRight:"right",top:"left",bottom:"left"},uM=(e,t)=>{const{componentCls:n}=e;return{[`${n}-${t}`]:{[`&${n}-stack > ${n}-notice-wrapper`]:{[t.startsWith("top")?"top":"bottom"]:0,[lM[t]]:{value:0,_skip_check_:!0}}}}},cM=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)},fM=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"},cM(e))},[`${t}-stack:not(${t}-stack-expanded)`]:{[`& > ${t}-notice-wrapper`]:Object.assign({},fM(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"}}}},sM.map(n=>uM(e,n)).reduce((n,r)=>Object.assign(Object.assign({},n),r),{}))},hM=dM,pM=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}}},mM=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({},Bp(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({},pM(e))}}]},gM=e=>({zIndexPopup:e.zIndexPopupBase+nc+50,width:384,closeBtnHoverBg:e.wireframe?"transparent":e.colorFillContent}),vM=e=>{const t=e.paddingMD,n=e.paddingLG;return Wn(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})},yM=jo("Notification",e=>{const t=vM(e);return[mM(t),aM(t),hM(t)]},gM);globalThis&&globalThis.__rest;function vC(e,t){return t===null||t===!1?null:t||h.createElement("span",{className:`${e}-close-x`},h.createElement(xs,{className:`${e}-close-icon`}))}const CM={success:Wp,info:Zp,error:Gp,warning:Kp},SM=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(CM[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 wM(e){return{motionName:`${e}-fade`}}var bM=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=qp(n),[o,i,a]=yM(n,r);return o(h.createElement(B5,{classNames:{list:le(i,a,r)}},t))},OM=(e,t)=>{let{prefixCls:n,key:r}=t;return h.createElement(TM,{prefixCls:n,key:r},e)},MM=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(ft),[,y]=Fn(),C=o||c("notification"),v=w=>xM(w,n??Pv,r??Pv),S=()=>le({[`${C}-rtl`]:s}),g=()=>wM(C),[p,m]=z5({prefixCls:C,style:v,className:S,motion:g,closable:!0,closeIcon:vC(C),duration:EM,getContainer:()=>(i==null?void 0:i())||(f==null?void 0:f())||document.body,maxCount:a,onAllRemoved:l,renderNotifications:OM,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 RM(e){const t=h.useRef(null);return _p(),[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=bM(s,["message","description","icon","type","btn","className","style","role","closeIcon"]),b=vC(d,E);return u(Object.assign(Object.assign({placement:(l=e==null?void 0:e.placement)!==null&&l!==void 0?l:PM},x),{content:h.createElement(SM,{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(MM,Object.assign({key:"notification-holder"},e,{ref:t}))]}function kM(e){return RM(e)}const Tv=Z.createContext({}),LM=Z.createContext({message:{},notification:{},modal:{}}),yC=LM,FM=e=>{const{componentCls:t,colorText:n,fontSize:r,lineHeight:o,fontFamily:i}=e;return{[t]:{color:n,fontSize:r,lineHeight:o,fontFamily:i}}},$M=()=>({}),AM=jo("App",FM,$M),jM=()=>Z.useContext(yC),CC=e=>{const{prefixCls:t,children:n,className:r,rootClassName:o,message:i,notification:a,style:s,component:l="div"}=e,{getPrefixCls:u}=h.useContext(ft),c=u("app",t),[f,d,y]=AM(c),C=le(d,c,r,o,y),v=h.useContext(Tv),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]=LE(S.message),[m,w]=kM(S.notification),[E,x]=oM(),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(yC.Provider,{value:b},Z.createElement(Tv.Provider,{value:S},Z.createElement(T,Object.assign({},l===!1?void 0:P),x,p,w,n))))};CC.useApp=jM;const NM=CC;var IM={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 _M=IM;var DM=function(t,n){return h.createElement(pr,$e({},t,{ref:n,icon:_M}))};const Ov=h.forwardRef(DM);var VM={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 BM=VM;var zM=function(t,n){return h.createElement(pr,$e({},t,{ref:n,icon:BM}))};const HM=h.forwardRef(zM);var UM={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 WM=UM;var GM=function(t,n){return h.createElement(pr,$e({},t,{ref:n,icon:WM}))};const Mv=h.forwardRef(GM),KM=e=>!isNaN(parseFloat(e))&&isFinite(e),ZM=KM,SC=h.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});var qM=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}`}})(),QM=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=qM(e,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:p}=h.useContext(SC),[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=($,z)=>{"collapsed"in e||w($),v==null||v($,z)},T=h.useRef();T.current=$=>{x($.matches),S==null||S($.matches),m!==$.matches&&b($.matches,"responsive")},h.useEffect(()=>{function $(H){return T.current(H)}let z;if(typeof window<"u"){const{matchMedia:H}=window;if(H&&C&&C in Rv){z=H(`screen and (max-width: ${Rv[C]})`);try{z.addEventListener("change",$)}catch{z.addListener($)}$(z)}}return()=>{try{z==null||z.removeEventListener("change",$)}catch{z==null||z.removeListener($)}}},[C]),h.useEffect(()=>{const $=XM("ant-sider-");return p.addSider($),()=>p.removeSider($)},[]);const P=()=>{b(!m,"clickTrigger")},{getPrefixCls:O}=h.useContext(ft),F=()=>{const $=O("layout-sider",n),z=kp(g,["collapsed"]),H=m?d:f,A=ZM(H)?`${H}px`:String(H),R=parseFloat(String(d||0))===0?h.createElement("span",{onClick:P,className:le(`${$}-zero-width-trigger`,`${$}-zero-width-trigger-${c?"right":"left"}`),style:y},o||h.createElement(HM,null)):null,B={expanded:c?h.createElement(Ov,null):h.createElement(Mv,null),collapsed:c?h.createElement(Mv,null):h.createElement(Ov,null)}[m?"collapsed":"expanded"],I=o!==null?R||h.createElement("div",{className:`${$}-trigger`,onClick:P,style:{width:A}},o||B):null,K=Object.assign(Object.assign({},l),{flex:`0 0 ${A}`,maxWidth:A,minWidth:A,width:A}),X=le($,`${$}-${s}`,{[`${$}-collapsed`]:!!m,[`${$}-has-trigger`]:u&&o!==null&&!R,[`${$}-below`]:!!E,[`${$}-zero-width`]:parseFloat(A)===0},r);return h.createElement("aside",Object.assign({className:X},z,{style:K,ref:t}),h.createElement("div",{className:`${$}-children`},i),u||E&&R?I:null)},D=h.useMemo(()=>({siderCollapsed:m}),[m]);return h.createElement(xC.Provider,{value:D},F())}),wC=QM;function YM(e,t,n){return typeof n=="boolean"?n:e.length?!0:Ya(t).some(o=>o.type===wC)}const JM=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}}}},eR=JM,tR=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}}}}},eR(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}}},nR=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}},bC=jo("Layout",e=>[tR(e)],nR,{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]});var EC=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 tm=h.forwardRef((e,t)=>{const{prefixCls:n,suffixCls:r,className:o,tagName:i}=e,a=EC(e,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:s}=h.useContext(ft),l=s("layout",n),[u,c,f]=bC(l),d=r?`${l}-${r}`:l;return u(h.createElement(i,Object.assign({className:le(n||d,o,c,f),ref:t},a)))}),rR=h.forwardRef((e,t)=>{const{direction:n}=h.useContext(ft),[r,o]=h.useState([]),{prefixCls:i,className:a,rootClassName:s,children:l,hasSider:u,tagName:c,style:f}=e,d=EC(e,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),y=kp(d,["suffixCls"]),{getPrefixCls:C,layout:v}=h.useContext(ft),S=C("layout",i),g=YM(r,l,u),[p,m,w]=bC(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(SC.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)))}),oR=ic({tagName:"div",displayName:"Layout"})(rR),iR=ic({suffixCls:"header",tagName:"header",displayName:"Header"})(tm),aR=ic({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(tm),sR=ic({suffixCls:"content",tagName:"main",displayName:"Content"})(tm),lR=oR,Bi=lR;Bi.Header=iR;Bi.Footer=aR;Bi.Content=sR;Bi.Sider=wC;Bi._InternalSiderContext=xC;const kv=Bi;const Wt={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"},tA={model:"#E653D8",data:"#9560E6",code:"#4441D7",tokens:"#E64C7C",certificate:"#4C8AE6",computation:Wt.orange,benchmark:"#60C6E6"},uR={token:{}},cR=Object.assign({},uR,{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:Wt.grey600,colorText:Wt.white,defaultBorderColor:"rgb(0, 0, 0)",colorPrimaryHover:Wt.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:Wt.grey50,headerBg:"#ffffff",colorBgLayout:Wt.white},Divider:{margin:20},Table:{colorFill:"transparent",colorFillAlter:"transparent",colorFillSecondary:"transparent",colorBgContainer:Wt.grey50,colorTextHeading:Wt.grey600,fontWeightStrong:400,cellPaddingBlockSM:10,cellPaddingBlock:10,cellPaddingBlockMD:10}},token:{colorPrimary:Wt.black,colorBorderSecondary:"#E2E8F0",fontSize:14,lineHeight:1.2,fontFamily:"TWKLausanne"}});function fR(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($5,{theme:cR,children:L.jsx(kv,{hasSider:!0,style:{minHeight:"100vh","--themeBg":i?Wt.blue:Wt.purple,"--themeBgLight":i?Wt.blue:Wt.lightPurple},children:L.jsx(kv,{children:t})})})}const dR=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,F]=h.useState(b),[D,$]=h.useState(P);h.useEffect(()=>(v.current=!0,()=>{v.current=!1}),[]),h.useImperativeHandle(C,()=>({continuousStart(H,A=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||Lv(10,20);p.current={active:!0,refreshRate:A},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 A=H||Lv(30,50);x({active:!0,value:A}),g(A),z(A)},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(()=>{F({...O,background:r}),$({...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?(F({...O,width:"100%"}),u&&$({...D,left:H-10+"%"}),setTimeout(()=>{v.current&&(F({...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)):(F(A=>({...A,width:H+"%",opacity:1,transition:H>0?`all ${s}ms ease`:""})),u&&$({...D,left:H-5.5+"%",transition:H>0?`all ${s}ms ease`:""}))};return pR(()=>{const H=Math.min(10,(100-S)/5),A=Math.min(20,(100-S)/3),R=PC(H,A);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})})}),hR=()=>{};function pR(e,t,n){const r=h.useRef(hR);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 PC(e,t){return Math.random()*(t-e+1)+e}function Lv(e,t){return Math.floor(PC(e,t))}function mR(){const e=T9(),t=O9(),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(fR,{defaultSelectedKeys:r,defaultOpenKeys:r,children:[L.jsx(dR,{ref:o,color:"#A966FF",height:5}),L.jsx(L9,{})]})}function gR(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 vR="_loaderContainer_pepat_1",yR="_loading_pepat_1",CR="_rotate_pepat_1",SR="_ringSvg_pepat_22",xR={loaderContainer:vR,loading:yR,rotate:CR,ringSvg:SR},TC=h.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),ac=h.createContext({}),sc=h.createContext(null),lc=typeof document<"u",nm=lc?h.useLayoutEffect:h.useEffect,OC=h.createContext({strict:!1}),rm=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),wR="framerAppearId",MC="data-"+rm(wR);function bR(e,t,n,r){const{visualElement:o}=h.useContext(ac),i=h.useContext(OC),a=h.useContext(sc),s=h.useContext(TC).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[MC]&&!window.HandoffComplete));return nm(()=>{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 fi(e){return typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function ER(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):fi(n)&&(n.current=r))},[t])}function as(e){return typeof e=="string"||Array.isArray(e)}function uc(e){return typeof e=="object"&&typeof e.start=="function"}const om=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],im=["initial",...om];function cc(e){return uc(e.animate)||im.some(t=>as(e[t]))}function RC(e){return!!(cc(e)||e.variants)}function PR(e,t){if(cc(e)){const{initial:n,animate:r}=e;return{initial:n===!1||as(n)?n:void 0,animate:as(r)?r:void 0}}return e.inherit!==!1?t:{}}function TR(e){const{initial:t,animate:n}=PR(e,h.useContext(ac));return h.useMemo(()=>({initial:t,animate:n}),[Fv(t),Fv(n)])}function Fv(e){return Array.isArray(e)?e.join(" "):e}const $v={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"]},ss={};for(const e in $v)ss[e]={isEnabled:t=>$v[e].some(n=>!!t[n])};function OR(e){for(const t in e)ss[t]={...ss[t],...e[t]}}const am=h.createContext({}),kC=h.createContext({}),MR=Symbol.for("motionComponentSymbol");function RR({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:o}){e&&OR(e);function i(s,l){let u;const c={...h.useContext(TC),...s,layoutId:kR(s)},{isStatic:f}=c,d=TR(s),y=r(s,f);if(!f&&lc){d.visualElement=bR(o,y,c,t);const C=h.useContext(kC),v=h.useContext(OC).strict;d.visualElement&&(u=d.visualElement.loadFeatures(c,v,e,C))}return h.createElement(ac.Provider,{value:d},u&&d.visualElement?h.createElement(u,{visualElement:d.visualElement,...c}):null,n(o,s,ER(y,d.visualElement,l),y,f,d.visualElement))}const a=h.forwardRef(i);return a[MR]=o,a}function kR({layoutId:e}){const t=h.useContext(am).id;return t&&e!==void 0?t+"-"+e:e}function LR(e){function t(r,o={}){return RR(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 FR=["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:!!(FR.indexOf(e)>-1||/[A-Z]/.test(e))}const du={};function $R(e){Object.assign(du,e)}const Ts=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Io=new Set(Ts);function LC(e,{layout:t,layoutId:n}){return Io.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!du[e]||e==="opacity")}const Dt=e=>!!(e&&e.getVelocity),AR={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},jR=Ts.length;function NR(e,{enableHardwareAcceleration:t=!0,allowTransformNone:n=!0},r,o){let i="";for(let a=0;at=>typeof t=="string"&&t.startsWith(e),$C=FC("--"),dh=FC("var(--"),IR=/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,_R=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Ur=(e,t,n)=>Math.min(Math.max(n,e),t),_o={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Ma={..._o,transform:e=>Ur(0,1,e)},fl={..._o,default:1},Ra=e=>Math.round(e*1e5)/1e5,fc=/(-)?([\d]*\.?[\d])+/g,AC=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,DR=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function Os(e){return typeof e=="string"}const Ms=e=>({test:t=>Os(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),xr=Ms("deg"),Hn=Ms("%"),se=Ms("px"),VR=Ms("vh"),BR=Ms("vw"),Av={...Hn,parse:e=>Hn.parse(e)/100,transform:e=>Hn.transform(e*100)},jv={..._o,transform:Math.round},jC={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:xr,rotateX:xr,rotateY:xr,rotateZ:xr,scale:fl,scaleX:fl,scaleY:fl,scaleZ:fl,skew:xr,skewX:xr,skewY:xr,distance:se,translateX:se,translateY:se,translateZ:se,x:se,y:se,z:se,perspective:se,transformPerspective:se,opacity:Ma,originX:Av,originY:Av,originZ:se,zIndex:jv,fillOpacity:Ma,strokeOpacity:Ma,numOctaves:jv};function lm(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($C(f)){i[f]=d;continue}const y=jC[f],C=_R(d,y);if(Io.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=NR(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 um=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function NC(e,t,n){for(const r in t)!Dt(t[r])&&!LC(r,n)&&(e[r]=t[r])}function zR({transformTemplate:e},t,n){return h.useMemo(()=>{const r=um();return lm(r,t,{enableHardwareAcceleration:!n},e),Object.assign({},r.vars,r.style)},[t])}function HR(e,t,n){const r=e.style||{},o={};return NC(o,r,e),Object.assign(o,zR(e,t,n)),e.transformValues?e.transformValues(o):o}function UR(e,t,n){const r={},o=HR(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 WR=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 hu(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||WR.has(e)}let IC=e=>!hu(e);function GR(e){e&&(IC=t=>t.startsWith("on")?!hu(t):e(t))}try{GR(require("@emotion/is-prop-valid").default)}catch{}function KR(e,t,n){const r={};for(const o in e)o==="values"&&typeof e.values=="object"||(IC(o)||n===!0&&hu(o)||!t&&!hu(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}function Nv(e,t,n){return typeof e=="string"?e:se.transform(t+n*e)}function ZR(e,t,n){const r=Nv(t,e.x,e.width),o=Nv(n,e.y,e.height);return`${r} ${o}`}const qR={offset:"stroke-dashoffset",array:"stroke-dasharray"},XR={offset:"strokeDashoffset",array:"strokeDasharray"};function QR(e,t,n=1,r=0,o=!0){e.pathLength=1;const i=o?qR:XR;e[i.offset]=se.transform(-r);const a=se.transform(t),s=se.transform(n);e[i.array]=`${a} ${s}`}function cm(e,{attrX:t,attrY:n,attrScale:r,originX:o,originY:i,pathLength:a,pathSpacing:s=1,pathOffset:l=0,...u},c,f,d){if(lm(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=ZR(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&&QR(y,a,s,l,!1)}const _C=()=>({...um(),attrs:{}}),fm=e=>typeof e=="string"&&e.toLowerCase()==="svg";function YR(e,t,n,r){const o=h.useMemo(()=>{const i=_C();return cm(i,t,{enableHardwareAcceleration:!1},fm(r),e.transformTemplate),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};NC(i,e.style,e),o.style={...i,...o.style}}return o}function JR(e=!1){return(n,r,o,{latestValues:i},a)=>{const l=(sm(n)?YR:UR)(r,i,a,n),c={...KR(r,typeof n=="string",e),...l,ref:o},{children:f}=r,d=h.useMemo(()=>Dt(f)?f.get():f,[f]);return h.createElement(n,{...c,children:d})}}function DC(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 VC=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 BC(e,t,n,r){DC(e,t,void 0,r);for(const o in t.attrs)e.setAttribute(VC.has(o)?o:rm(o),t.attrs[o])}function dm(e,t){const{style:n}=e,r={};for(const o in n)(Dt(n[o])||t.style&&Dt(t.style[o])||LC(o,e))&&(r[o]=n[o]);return r}function zC(e,t){const n=dm(e,t);for(const r in e)if(Dt(e[r])||Dt(t[r])){const o=Ts.indexOf(r)!==-1?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;n[o]=e[r]}return n}function hm(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 HC(e){const t=h.useRef(null);return t.current===null&&(t.current=e()),t.current}const pu=e=>Array.isArray(e),ek=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),tk=e=>pu(e)?e[e.length-1]||0:e;function $l(e){const t=Dt(e)?e.get():e;return ek(t)?t.toValue():t}function nk({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,o,i){const a={latestValues:rk(r,o,i,e),renderState:t()};return n&&(a.mount=s=>n(r,s,a)),a}const UC=e=>(t,n)=>{const r=h.useContext(ac),o=h.useContext(sc),i=()=>nk(e,t,r,o);return n?i():HC(i)};function rk(e,t,n,r){const o={},i=r(e,{});for(const d in i)o[d]=$l(i[d]);let{initial:a,animate:s}=e;const l=cc(e),u=RC(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"&&!uc(f)&&(Array.isArray(f)?f:[f]).forEach(y=>{const C=hm(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 Iv{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 ok(e){let t=new Iv,n=new Iv,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]=ok(()=>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,ik),1),o.timestamp=f,o.isProcessing=!0,dl.forEach(a),o.isProcessing=!1,n&&t&&(r=!1,e(s))},l=()=>{n=!0,r=!0,o.isProcessing||e(s)};return{schedule:dl.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=>dl.forEach(d=>i[d].cancel(f)),state:o,steps:i}}const{schedule:Fe,cancel:cr,state:wt,steps:yf}=ak(typeof requestAnimationFrame<"u"?requestAnimationFrame:Ke,!0),sk={useVisualState:UC({scrapeMotionValuesFromProps:zC,createRenderState:_C,onMount:(e,t,{renderState:n,latestValues:r})=>{Fe.read(()=>{try{n.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),Fe.render(()=>{cm(n,r,{enableHardwareAcceleration:!1},fm(t.tagName),e.transformTemplate),BC(t,n)})}})},lk={useVisualState:UC({scrapeMotionValuesFromProps:dm,createRenderState:um})};function uk(e,{forwardMotionProps:t=!1},n,r){return{...sm(e)?sk:lk,preloadedFeatures:n,useRender:JR(t),createVisualElement:r,Component:e}}function Jn(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const WC=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function dc(e,t="page"){return{point:{x:e[t+"X"],y:e[t+"Y"]}}}const ck=e=>t=>WC(t)&&e(t,dc(t));function nr(e,t,n,r){return Jn(e,t,ck(n),r)}const fk=(e,t)=>n=>t(e(n)),Dr=(...e)=>e.reduce(fk);function GC(e){let t=null;return()=>{const n=()=>{t=null};return t===null?(t=e,n):!1}}const _v=GC("dragHorizontal"),Dv=GC("dragVertical");function KC(e){let t=!1;if(e==="y")t=Dv();else if(e==="x")t=_v();else{const n=_v(),r=Dv();n&&r?t=()=>{n(),r()}:(n&&n(),r&&r())}return t}function ZC(){const e=KC(!0);return e?(e(),!1):!0}class qr{constructor(t){this.isMounted=!1,this.node=t}update(){}}function Vv(e,t){const n="pointer"+(t?"enter":"leave"),r="onHover"+(t?"Start":"End"),o=(i,a)=>{if(i.type==="touch"||ZC())return;const s=e.getProps();e.animationState&&s.whileHover&&e.animationState.setActive("whileHover",t),s[r]&&Fe.update(()=>s[r](i,a))};return nr(e.current,n,o,{passive:!e.getProps()[r]})}class dk extends qr{mount(){this.unmount=Dr(Vv(this.node,!0),Vv(this.node,!1))}unmount(){}}class hk extends qr{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=Dr(Jn(this.node.current,"focus",()=>this.onFocus()),Jn(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const qC=(e,t)=>t?e===t?!0:qC(e,t.parentElement):!1;function Cf(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,dc(n))}class pk extends qr{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=nr(window,"pointerup",(s,l)=>{if(!this.checkPressEnd())return;const{onTap:u,onTapCancel:c}=this.node.getProps();Fe.update(()=>{qC(this.node.current,s.target)?u&&u(s,l):c&&c(s,l)})},{passive:!(r.onTap||r.onPointerUp)}),a=nr(window,"pointercancel",(s,l)=>this.cancelPress(s,l),{passive:!(r.onTapCancel||r.onPointerCancel)});this.removeEndListeners=Dr(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()||Cf("up",(l,u)=>{const{onTap:c}=this.node.getProps();c&&Fe.update(()=>c(l,u))})};this.removeEndListeners(),this.removeEndListeners=Jn(this.node.current,"keyup",a),Cf("down",(s,l)=>{this.startPress(s,l)})},n=Jn(this.node.current,"keydown",t),r=()=>{this.isPressing&&Cf("cancel",(i,a)=>this.cancelPress(i,a))},o=Jn(this.node.current,"blur",r);this.removeAccessibleListeners=Dr(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&&Fe.update(()=>r(t,n))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!ZC()}cancelPress(t,n){if(!this.checkPressEnd())return;const{onTapCancel:r}=this.node.getProps();r&&Fe.update(()=>r(t,n))}mount(){const t=this.node.getProps(),n=nr(this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),r=Jn(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=Dr(n,r)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const hh=new WeakMap,Sf=new WeakMap,mk=e=>{const t=hh.get(e.target);t&&t(e)},gk=e=>{e.forEach(mk)};function vk({root:e,...t}){const n=e||document;Sf.has(n)||Sf.set(n,{});const r=Sf.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(gk,{root:e,...t})),r[o]}function yk(e,t,n){const r=vk(t);return hh.set(e,n),r.observe(e),()=>{hh.delete(e),r.unobserve(e)}}const Ck={some:0,all:1};class Sk extends qr{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:Ck[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 yk(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 wk={inView:{Feature:Sk},tap:{Feature:pk},focus:{Feature:hk},hover:{Feature:dk}};function XC(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 Ek(e){const t={};return e.values.forEach((n,r)=>t[r]=n.getVelocity()),t}function hc(e,t,n){const r=e.getProps();return hm(r,t,n!==void 0?n:r.custom,bk(e),Ek(e))}let Pk=Ke,pm=Ke;const Vr=e=>e*1e3,rr=e=>e/1e3,Tk={current:!1},QC=e=>Array.isArray(e)&&typeof e[0]=="number";function YC(e){return!!(!e||typeof e=="string"&&JC[e]||QC(e)||Array.isArray(e)&&e.every(YC))}const fa=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,JC={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:fa([0,.65,.55,1]),circOut:fa([.55,0,1,.45]),backIn:fa([.31,.01,.66,-.59]),backOut:fa([.33,1.53,.69,.99])};function e4(e){if(e)return QC(e)?fa(e):Array.isArray(e)?e.map(e4):JC[e]}function Ok(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=e4(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 Mk(e,{repeat:t,repeatType:n="loop"}){const r=t&&n!=="loop"&&t%2===1?0:e.length-1;return e[r]}const t4=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,Rk=1e-7,kk=12;function Lk(e,t,n,r,o){let i,a,s=0;do a=t+(n-t)/2,i=t4(a,r,o)-e,i>0?n=a:t=a;while(Math.abs(i)>Rk&&++sLk(i,0,1,e,n);return i=>i===0||i===1?i:t4(o(i),t,r)}const Fk=Rs(.42,0,1,1),$k=Rs(0,0,.58,1),n4=Rs(.42,0,.58,1),Ak=e=>Array.isArray(e)&&typeof e[0]!="number",r4=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,o4=e=>t=>1-e(1-t),mm=e=>1-Math.sin(Math.acos(e)),i4=o4(mm),jk=r4(mm),a4=Rs(.33,1.53,.69,.99),gm=o4(a4),Nk=r4(gm),Ik=e=>(e*=2)<1?.5*gm(e):.5*(2-Math.pow(2,-10*(e-1))),_k={linear:Ke,easeIn:Fk,easeInOut:n4,easeOut:$k,circIn:mm,circInOut:jk,circOut:i4,backIn:gm,backInOut:Nk,backOut:a4,anticipate:Ik},Bv=e=>{if(Array.isArray(e)){pm(e.length===4);const[t,n,r,o]=e;return Rs(t,n,r,o)}else if(typeof e=="string")return _k[e];return e},vm=(e,t)=>n=>!!(Os(n)&&DR.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),s4=(e,t,n)=>r=>{if(!Os(r))return r;const[o,i,a,s]=r.match(fc);return{[e]:parseFloat(o),[t]:parseFloat(i),[n]:parseFloat(a),alpha:s!==void 0?parseFloat(s):1}},Dk=e=>Ur(0,255,e),xf={..._o,transform:e=>Math.round(Dk(e))},vo={test:vm("rgb","red"),parse:s4("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+xf.transform(e)+", "+xf.transform(t)+", "+xf.transform(n)+", "+Ra(Ma.transform(r))+")"};function Vk(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 ph={test:vm("#"),parse:Vk,transform:vo.transform},di={test:vm("hsl","hue"),parse:s4("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Hn.transform(Ra(t))+", "+Hn.transform(Ra(n))+", "+Ra(Ma.transform(r))+")"},Tt={test:e=>vo.test(e)||ph.test(e)||di.test(e),parse:e=>vo.test(e)?vo.parse(e):di.test(e)?di.parse(e):ph.parse(e),transform:e=>Os(e)?e:e.hasOwnProperty("red")?vo.transform(e):di.transform(e)},Ve=(e,t,n)=>-n*e+n*t+e;function wf(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 Bk({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=wf(l,s,e+1/3),i=wf(l,s,e),a=wf(l,s,e-1/3)}return{red:Math.round(o*255),green:Math.round(i*255),blue:Math.round(a*255),alpha:r}}const bf=(e,t,n)=>{const r=e*e;return Math.sqrt(Math.max(0,n*(t*t-r)+r))},zk=[ph,vo,di],Hk=e=>zk.find(t=>t.test(e));function zv(e){const t=Hk(e);let n=t.parse(e);return t===di&&(n=Bk(n)),n}const l4=(e,t)=>{const n=zv(e),r=zv(t),o={...n};return i=>(o.red=bf(n.red,r.red,i),o.green=bf(n.green,r.green,i),o.blue=bf(n.blue,r.blue,i),o.alpha=Ve(n.alpha,r.alpha,i),vo.transform(o))};function Uk(e){var t,n;return isNaN(e)&&Os(e)&&(((t=e.match(fc))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(AC))===null||n===void 0?void 0:n.length)||0)>0}const u4={regex:IR,countKey:"Vars",token:"${v}",parse:Ke},c4={regex:AC,countKey:"Colors",token:"${c}",parse:Tt.parse},f4={regex:fc,countKey:"Numbers",token:"${n}",parse:_o.parse};function Ef(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 mu(e){const t=e.toString(),n={value:t,tokenised:t,values:[],numVars:0,numColors:0,numNumbers:0};return n.value.includes("var(--")&&Ef(n,u4),Ef(n,c4),Ef(n,f4),n}function d4(e){return mu(e).values}function h4(e){const{values:t,numColors:n,numVars:r,tokenised:o}=mu(e),i=t.length;return a=>{let s=o;for(let l=0;ltypeof e=="number"?0:e;function Gk(e){const t=d4(e);return h4(e)(t.map(Wk))}const Wr={test:Uk,parse:d4,createTransformer:h4,getAnimatableNone:Gk},p4=(e,t)=>n=>`${n>0?t:e}`;function m4(e,t){return typeof e=="number"?n=>Ve(e,t,n):Tt.test(e)?l4(e,t):e.startsWith("var(")?p4(e,t):v4(e,t)}const g4=(e,t)=>{const n=[...e],r=n.length,o=e.map((i,a)=>m4(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]=m4(e[o],t[o]));return o=>{for(const i in r)n[i]=r[i](o);return n}},v4=(e,t)=>{const n=Wr.createTransformer(t),r=mu(e),o=mu(t);return r.numVars===o.numVars&&r.numColors===o.numColors&&r.numNumbers>=o.numNumbers?Dr(g4(r.values,o.values),n):p4(e,t)},ls=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},Hv=(e,t)=>n=>Ve(e,t,n);function Zk(e){return typeof e=="number"?Hv:typeof e=="string"?Tt.test(e)?l4:v4:Array.isArray(e)?g4:typeof e=="object"?Kk:Hv}function qk(e,t,n){const r=[],o=n||Zk(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=qk(t,r,o),s=a.length,l=u=>{let c=0;if(s>1)for(;cl(Ur(e[0],e[i-1],u)):l}function Xk(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const o=ls(0,t,r);e.push(Ve(n,1,o))}}function Qk(e){const t=[0];return Xk(t,e.length-1),t}function Yk(e,t){return e.map(n=>n*t)}function Jk(e,t){return e.map(()=>t||n4).splice(0,e.length-1)}function gu({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const o=Ak(r)?r.map(Bv):Bv(r),i={done:!1,value:t[0]},a=Yk(n&&n.length===t.length?n:Qk(t),e),s=y4(a,t,{ease:Array.isArray(o)?o:Jk(t,o)});return{calculatedDuration:e,next:l=>(i.value=s(l),i.done=l>=e,i)}}function C4(e,t){return t?e*(1e3/t):0}const eL=5;function S4(e,t,n){const r=Math.max(t-eL,0);return C4(n-e(r),t-r)}const Pf=.001,tL=.01,Uv=10,nL=.05,rL=1;function oL({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let o,i;Pk(e<=Vr(Uv));let a=1-t;a=Ur(nL,rL,a),e=Ur(tL,Uv,rr(e)),a<1?(o=u=>{const c=u*a,f=c*e,d=c-n,y=mh(u,a),C=Math.exp(-f);return Pf-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=mh(Math.pow(u,2),a);return(-o(u)+Pf>0?-1:1)*((d-y)*C)/v}):(o=u=>{const c=Math.exp(-u*e),f=(u-n)*e+1;return-Pf+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=Vr(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 iL=12;function aL(e,t,n){let r=n;for(let o=1;oe[n]!==void 0)}function uL(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!Wv(e,lL)&&Wv(e,sL)){const n=oL(e);t={...t,...n,mass:1},t.isResolvedFromDuration=!0}return t}function x4({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}=uL({...r,velocity:-rr(r.velocity||0)}),y=f||0,C=l/(2*Math.sqrt(s*u)),v=i-o,S=rr(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=mh(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=S4(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 Gv({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=x4({keyframes:[d.value,C(d.value)],velocity:S4(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 cL=e=>{const t=({timestamp:n})=>e(n);return{start:()=>Fe.update(t,!0),stop:()=>cr(t),now:()=>wt.isProcessing?wt.timestamp:performance.now()}},Kv=2e4;function Zv(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t=Kv?1/0:t}const fL={decay:Gv,inertia:Gv,tween:gu,keyframes:gu,spring:x4};function vu({autoplay:e=!0,delay:t=0,driver:n=cL,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=fL[o]||gu;let w;m!==gu&&typeof r[0]!="number"&&(w=y4([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=Zv(E));const{calculatedDuration:F}=E;let D=1/0,$=1/0;F!==null&&(D=F+a,$=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-$/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>$;z=Math.max(K,0),b==="finished"&&T===null&&(z=$);let te=z,de=E;if(i){const Pt=Math.min(z,$)/D;let Ze=Math.floor(Pt),fe=Pt%1;!fe&&Pt>=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=Ur(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&&F!==null&&(me=y>=0?z>=$:z<=0);const yt=T===null&&(b==="finished"||b==="running"&&me);return f&&f(ne.value),yt&&M(),ne},A=()=>{p&&p.stop(),p=void 0},R=()=>{b="idle",A(),v(),g(),P=O=null},M=()=>{b="finished",c&&c(),A(),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 rr(z)},set time(I){I=Vr(I),z=I,T!==null||!p||y===0?T=I:P=p.now()-I/y},get duration(){const I=E.calculatedDuration===null?Zv(E):E.calculatedDuration;return rr(I)},get speed(){return y},set speed(I){I===y||!p||(y=I,B.time=rr(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 dL(e){let t;return()=>(t===void 0&&(t=e()),t)}const hL=dL(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),pL=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),hl=10,mL=2e4,gL=(e,t)=>t.type==="spring"||e==="backgroundColor"||!YC(t.ease);function vL(e,t,{onUpdate:n,onComplete:r,...o}){if(!(hL()&&pL.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(gL(t,o)){const m=vu({...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,Fe.update(S),s(),c()};return v.onfinish=()=>{u||(e.set(Mk(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 rr(v.currentTime||0)},set time(m){v.currentTime=Vr(m)},get speed(){return v.playbackRate},set speed(m){v.playbackRate=m},get duration(){return rr(d)},play:()=>{a||(v.play(),cr(S))},pause:()=>v.pause(),stop:()=>{if(a=!0,v.playState==="idle")return;const{currentTime:m}=v;if(m){const w=vu({...o,autoplay:!1});e.setWithVelocity(w.sample(m-hl).value,w.sample(m).value,hl)}g()},complete:()=>{u||v.finish()},cancel:g}}function yL({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?vu({keyframes:[0,1],duration:0,delay:t,onComplete:o}):o()}const CL={type:"spring",stiffness:500,damping:25,restSpeed:10},SL=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),xL={type:"keyframes",duration:.8},wL={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},bL=(e,{keyframes:t})=>t.length>2?xL:Io.has(e)?e.startsWith("scale")?SL(t[1]):CL:wL,gh=(e,t)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(Wr.test(t)||t==="0")&&!t.startsWith("url(")),EL=new Set(["brightness","contrast","saturate","opacity"]);function PL(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(fc)||[];if(!r)return e;const o=n.replace(r,"");let i=EL.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+o+")"}const TL=/([a-z-]*)\(.*?\)/g,vh={...Wr,getAnimatableNone:e=>{const t=e.match(TL);return t?t.map(PL).join(" "):e}},OL={...jC,color:Tt,backgroundColor:Tt,outlineColor:Tt,fill:Tt,stroke:Tt,borderColor:Tt,borderTopColor:Tt,borderRightColor:Tt,borderBottomColor:Tt,borderLeftColor:Tt,filter:vh,WebkitFilter:vh},ym=e=>OL[e];function w4(e,t){let n=ym(e);return n!==vh&&(n=Wr),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const b4=e=>/^0[^.\s]+$/.test(e);function ML(e){if(typeof e=="number")return e===0;if(e!==null)return e==="none"||e==="0"||b4(e)}function RL(e,t,n,r){const o=gh(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=Cm(r,e)||{},a=i.delay||r.delay||0;let{elapsed:s=0}=r;s=s-Vr(a);const l=RL(t,e,n,i),u=l[0],c=l[l.length-1],f=gh(e,u),d=gh(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(kL(i)||(y={...y,...bL(e,y)}),y.duration&&(y.duration=Vr(y.duration)),y.repeatDelay&&(y.repeatDelay=Vr(y.repeatDelay)),!f||!d||Tk.current||i.type===!1||LL.skipAnimations)return yL(y);if(!r.isHandoff&&t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate){const C=vL(t,e,y);if(C)return C}return vu(y)};function yu(e){return!!(Dt(e)&&e.add)}const E4=e=>/^\-?\d*\.?\d+$/.test(e);function xm(e,t){e.indexOf(t)===-1&&e.push(t)}function wm(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class bm{constructor(){this.subscriptions=[]}add(t){return xm(this.subscriptions,t),()=>wm(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}=wt;this.lastUpdated!==a&&(this.timeDelta=i,this.lastUpdated=a,Fe.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=()=>Fe.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=FL(this.current),this.owner=n.owner}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new bm);const r=this.events[t].add(n);return t==="change"?()=>{r(),Fe.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?C4(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 Fi(e,t){return new $L(e,t)}const P4=e=>t=>t.test(e),AL={test:e=>e==="auto",parse:e=>e},T4=[_o,se,Hn,xr,BR,VR,AL],oa=e=>T4.find(P4(e)),jL=[...T4,Tt,Wr],NL=e=>jL.find(P4(e));function IL(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Fi(n))}function _L(e,t){const n=hc(e,t);let{transitionEnd:r={},transition:o={},...i}=n?e.makeTargetAnimatable(n,!1):{};i={...i,...r};for(const a in i){const s=tk(i[a]);IL(e,a,s)}}function DL(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&&_L(e,a)}),u}function yh(e,t,n={}){const r=hc(e,t,n.custom);let{transition:o=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(o=n.transitionOverride);const i=r?()=>Promise.all(O4(e,r,n)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(l=0)=>{const{delayChildren:u=0,staggerChildren:c,staggerDirection:f}=o;return UL(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 UL(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(WL).forEach((u,c)=>{u.notify("AnimationStart",t),a.push(yh(u,t,{...i,delay:n+l(c)}).then(()=>u.notify("AnimationComplete",t)))}),Promise.all(a)}function WL(e,t){return e.sortNodePosition(t)}function GL(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const o=t.map(i=>yh(e,i,n));r=Promise.all(o)}else if(typeof t=="string")r=yh(e,t,n);else{const o=typeof t=="function"?hc(e,t,n.custom):t;r=Promise.all(O4(e,o,n))}return r.then(()=>e.notify("AnimationComplete",t))}const KL=[...om].reverse(),ZL=om.length;function qL(e){return t=>Promise.all(t.map(({animation:n,options:r})=>GL(e,n,r)))}function XL(e){let t=qL(e);const n=YL();let r=!0;const o=(l,u)=>{const c=hc(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 F=Array.isArray(w)?w:[w];let D=F.reduce(o,{});x===!1&&(D={});const{prevResolvedValues:$={}}=m,z={...$,...D},H=A=>{P=!0,y.has(A)&&(O=!0,y.delete(A)),m.needsAnimating[A]=!0};for(const A in z){const R=D[A],M=$[A];if(C.hasOwnProperty(A))continue;let N=!1;pu(R)&&pu(M)?N=!XC(R,M):N=R!==M,N?R!==void 0?H(A):y.add(A):R!==void 0&&y.has(A)?H(A):m.protectedKeys[A]=!0}m.prevProp=w,m.prevResolvedValues=D,m.isActive&&(C={...C,...D}),r&&e.blockInitialAnimation&&(P=!1),P&&(!b||O)&&d.push(...F.map(A=>({animation:A,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 QL(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!XC(t,e):!1}function Jr(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function YL(){return{animate:Jr(!0),whileInView:Jr(),whileHover:Jr(),whileTap:Jr(),whileDrag:Jr(),whileFocus:Jr(),exit:Jr()}}class JL extends qr{constructor(t){super(t),t.animationState||(t.animationState=XL(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();this.unmount(),uc(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 eF=0;class tF extends qr{constructor(){super(...arguments),this.id=eF++}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 nF={animation:{Feature:JL},exit:{Feature:tF}},qv=(e,t)=>Math.abs(e-t);function rF(e,t){const n=qv(e.x,t.x),r=qv(e.y,t.y);return Math.sqrt(n**2+r**2)}class M4{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=Of(this.lastMoveEventInfo,this.history),d=this.startEvent!==null,y=rF(f.offset,{x:0,y:0})>=3;if(!d&&!y)return;const{point:C}=f,{timestamp:v}=wt;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=Tf(d,this.transformPagePoint),Fe.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=Of(f.type==="pointercancel"?this.lastMoveEventInfo:Tf(d,this.transformPagePoint),this.history);this.startEvent&&y&&y(f,S),C&&C(f,S)},!WC(t))return;this.dragSnapToOrigin=i,this.handlers=n,this.transformPagePoint=r,this.contextWindow=o||window;const a=dc(t),s=Tf(a,this.transformPagePoint),{point:l}=s,{timestamp:u}=wt;this.history=[{...l,timestamp:u}];const{onSessionStart:c}=n;c&&c(t,Of(s,this.history)),this.removeListeners=Dr(nr(this.contextWindow,"pointermove",this.handlePointerMove),nr(this.contextWindow,"pointerup",this.handlePointerUp),nr(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),cr(this.updatePoint)}}function Tf(e,t){return t?{point:t(e.point)}:e}function Xv(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Of({point:e},t){return{point:e,delta:Xv(e,R4(t)),offset:Xv(e,oF(t)),velocity:iF(t,.1)}}function oF(e){return e[0]}function R4(e){return e[e.length-1]}function iF(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const o=R4(e);for(;n>=0&&(r=e[n],!(o.timestamp-r.timestamp>Vr(t)));)n--;if(!r)return{x:0,y:0};const i=rr(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 Yt(e){return e.max-e.min}function Ch(e,t=0,n=.01){return Math.abs(e-t)<=n}function Qv(e,t,n,r=.5){e.origin=r,e.originPoint=Ve(t.min,t.max,e.origin),e.scale=Yt(n)/Yt(t),(Ch(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=Ve(n.min,n.max,e.origin)-e.originPoint,(Ch(e.translate)||isNaN(e.translate))&&(e.translate=0)}function ka(e,t,n,r){Qv(e.x,t.x,n.x,r?r.originX:void 0),Qv(e.y,t.y,n.y,r?r.originY:void 0)}function Yv(e,t,n){e.min=n.min+t.min,e.max=e.min+Yt(t)}function aF(e,t,n){Yv(e.x,t.x,n.x),Yv(e.y,t.y,n.y)}function Jv(e,t,n){e.min=t.min-n.min,e.max=e.min+Yt(t)}function La(e,t,n){Jv(e.x,t.x,n.x),Jv(e.y,t.y,n.y)}function sF(e,{min:t,max:n},r){return t!==void 0&&en&&(e=r?Ve(n,e,r.max):Math.min(e,n)),e}function e1(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 lF(e,{top:t,left:n,bottom:r,right:o}){return{x:e1(e.x,n,o),y:e1(e.y,t,r)}}function t1(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.minr?n=ls(t.min,t.max-r,e.min):r>o&&(n=ls(e.min,e.max-o,t.min)),Ur(0,1,n)}function fF(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 Sh=.35;function dF(e=Sh){return e===!1?e=0:e===!0&&(e=Sh),{x:n1(e,"left","right"),y:n1(e,"top","bottom")}}function n1(e,t,n){return{min:r1(e,t),max:r1(e,n)}}function r1(e,t){return typeof e=="number"?e:e[t]||0}const o1=()=>({translate:0,scale:1,origin:0,originPoint:0}),hi=()=>({x:o1(),y:o1()}),i1=()=>({min:0,max:0}),et=()=>({x:i1(),y:i1()});function sn(e){return[e("x"),e("y")]}function k4({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function hF({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function pF(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 Mf(e){return e===void 0||e===1}function xh({scale:e,scaleX:t,scaleY:n}){return!Mf(e)||!Mf(t)||!Mf(n)}function oo(e){return xh(e)||L4(e)||e.z||e.rotate||e.rotateX||e.rotateY}function L4(e){return a1(e.x)||a1(e.y)}function a1(e){return e&&e!=="0%"}function Cu(e,t,n){const r=e-n,o=t*r;return n+o}function s1(e,t,n,r,o){return o!==void 0&&(e=Cu(e,o,r)),Cu(e,n,r)+t}function wh(e,t=0,n=1,r,o){e.min=s1(e.min,t,n,r,o),e.max=s1(e.max,t,n,r,o)}function F4(e,{x:t,y:n}){wh(e.x,t.translate,t.scale,t.originPoint),wh(e.y,n.translate,n.scale,n.originPoint)}function mF(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 Er(e,t){e.min=e.min+t,e.max=e.max+t}function u1(e,t,[n,r,o]){const i=t[o]!==void 0?t[o]:.5,a=Ve(e.min,e.max,i);wh(e,t[n],t[r],a,t.scale)}const gF=["x","scaleX","originX"],vF=["y","scaleY","originY"];function pi(e,t){u1(e.x,t,gF),u1(e.y,t,vF)}function $4(e,t){return k4(pF(e.getBoundingClientRect(),t))}function yF(e,t,n){const r=$4(e,n),{scroll:o}=t;return o&&(Er(r.x,o.offset.x),Er(r.y,o.offset.y)),r}const A4=({current:e})=>e?e.ownerDocument.defaultView:null,CF=new WeakMap;class SF{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(dc(c,"page").point)},i=(c,f)=>{const{drag:d,dragPropagation:y,onDragStart:C}=this.getProps();if(d&&!y&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=KC(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),sn(S=>{let g=this.getAxisMotionValue(S).get()||0;if(Hn.test(g)){const{projection:p}=this.visualElement;if(p&&p.layout){const m=p.layout.layoutBox[S];m&&(g=Yt(m)*(parseFloat(g)/100))}}this.originPoint[S]=g}),C&&Fe.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=xF(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=()=>sn(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 M4(t,{onSessionStart:o,onStart:i,onMove:a,onSessionEnd:s,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,contextWindow:A4(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&&Fe.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||!pl(t,o,this.currentDirection))return;const i=this.getAxisMotionValue(t);let a=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(a=sF(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&&fi(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&o?this.constraints=lF(o.layoutBox,n):this.constraints=!1,this.elastic=dF(r),i!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&sn(a=>{this.getAxisMotionValue(a)&&(this.constraints[a]=fF(o.layoutBox[a],this.constraints[a]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!fi(t))return!1;const r=t.current,{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const i=yF(r,o.root,this.visualElement.getTransformPagePoint());let a=uF(o.layout.layoutBox,i);if(n){const s=n(hF(a));this.hasMutatedConstraints=!!s,s&&(a=k4(s))}return a}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:o,dragTransition:i,dragSnapToOrigin:a,onDragTransitionEnd:s}=this.getProps(),l=this.constraints||{},u=sn(c=>{if(!pl(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(Sm(t,r,0,n))}stopAnimation(){sn(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){sn(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){sn(n=>{const{drag:r}=this.getProps();if(!pl(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(!fi(n)||!r||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};sn(a=>{const s=this.getAxisMotionValue(a);if(s){const l=s.get();o[a]=cF({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(),sn(a=>{if(!pl(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;CF.set(this.visualElement,this);const t=this.visualElement.current,n=nr(t,"pointerdown",l=>{const{drag:u,dragListener:c=!0}=this.getProps();u&&c&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();fi(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=Jn(window,"resize",()=>this.scalePositionWithinConstraints()),s=o.addEventListener("didUpdate",({delta:l,hasLayoutChanged:u})=>{this.isDragging&&u&&(sn(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=Sh,dragMomentum:s=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:o,dragConstraints:i,dragElastic:a,dragMomentum:s}}}function pl(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function xF(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class wF extends qr{constructor(t){super(t),this.removeGroupControls=Ke,this.removeListeners=Ke,this.controls=new SF(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 c1=e=>(t,n)=>{e&&Fe.update(()=>e(t,n))};class bF extends qr{constructor(){super(...arguments),this.removePointerDownListener=Ke}onPointerDown(t){this.session=new M4(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:A4(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:o}=this.node.getProps();return{onSessionStart:c1(t),onStart:c1(n),onMove:r,onEnd:(i,a)=>{delete this.session,o&&Fe.update(()=>o(i,a))}}}mount(){this.removePointerDownListener=nr(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 EF(){const e=h.useContext(sc);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 Al={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function f1(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const ia={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(se.test(e))e=parseFloat(e);else return e;const n=f1(e,t.target.x),r=f1(e,t.target.y);return`${n}% ${r}%`}},PF={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,o=Wr.parse(e);if(o.length>5)return r;const i=Wr.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;$R(OF),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()})),Al.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()||Fe.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 j4(e){const[t,n]=EF(),r=h.useContext(am);return Z.createElement(TF,{...e,layoutGroup:r,switchLayoutGroup:h.useContext(kC),isPresent:t,safeToRemove:n})}const OF={borderRadius:{...ia,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:ia,borderTopRightRadius:ia,borderBottomLeftRadius:ia,borderBottomRightRadius:ia,boxShadow:PF},N4=["TopLeft","TopRight","BottomLeft","BottomRight"],MF=N4.length,d1=e=>typeof e=="string"?parseFloat(e):e,h1=e=>typeof e=="number"||se.test(e);function RF(e,t,n,r,o,i){o?(e.opacity=Ve(0,n.opacity!==void 0?n.opacity:1,kF(r)),e.opacityExit=Ve(t.opacity!==void 0?t.opacity:1,0,LF(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(ls(e,t,r))}function m1(e,t){e.min=t.min,e.max=t.max}function an(e,t){m1(e.x,t.x),m1(e.y,t.y)}function g1(e,t,n,r,o){return e-=t,e=Cu(e,1/n,r),o!==void 0&&(e=Cu(e,1/o,r)),e}function FF(e,t=0,n=1,r=.5,o,i=e,a=e){if(Hn.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=g1(e.min,t,n,s,o),e.max=g1(e.max,t,n,s,o)}function v1(e,t,[n,r,o],i,a){FF(e,t[n],t[r],t[o],t.scale,i,a)}const $F=["x","scaleX","originX"],AF=["y","scaleY","originY"];function y1(e,t,n,r){v1(e.x,t,$F,n?n.x:void 0,r?r.x:void 0),v1(e.y,t,AF,n?n.y:void 0,r?r.y:void 0)}function C1(e){return e.translate===0&&e.scale===1}function _4(e){return C1(e.x)&&C1(e.y)}function jF(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 D4(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 S1(e){return Yt(e.x)/Yt(e.y)}class NF{constructor(){this.members=[]}add(t){xm(this.members,t),t.scheduleRender()}remove(t){if(wm(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 x1(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 IF=(e,t)=>e.depth-t.depth;class _F{constructor(){this.children=[],this.isDirty=!1}add(t){xm(this.children,t),this.isDirty=!0}remove(t){wm(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(IF),this.isDirty=!1,this.children.forEach(t)}}function DF(e,t){const n=performance.now(),r=({timestamp:o})=>{const i=o-n;i>=t&&(cr(r),e(i-t))};return Fe.read(r,!0),()=>cr(r)}function VF(e){window.MotionDebug&&window.MotionDebug.record(e)}function BF(e){return e instanceof SVGElement&&e.tagName!=="svg"}function zF(e,t,n){const r=Dt(e)?e:Fi(e);return r.start(Sm("",r,t,n)),r.animation}const w1=["","X","Y","Z"],HF={visibility:"hidden"},b1=1e3;let UF=0;const io={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function V4({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(a={},s=t==null?void 0:t()){this.id=UF++,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,io.totalNodes=io.resolvedTargetDeltas=io.recalculatedProjection=0,this.nodes.forEach(KF),this.nodes.forEach(YF),this.nodes.forEach(JF),this.nodes.forEach(ZF),VF(io)},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=DF(d,250),Al.hasAnimatedSinceResize&&(Al.hasAnimatedSinceResize=!1,this.nodes.forEach(P1))})}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()||o$,{onLayoutAnimationStart:S,onLayoutAnimationComplete:g}=c.getProps(),p=!this.targetLayout||!D4(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={...Cm(v,"layout"),onPlay:S,onComplete:g};(c.shouldReduceMotion||this.options.layoutRoot)&&(w.delay=0,w.type=!1),this.startAnimation(w)}else d||P1(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,cr(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(e$),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(qF),this.sharedNodes.forEach(t$)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Fe.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Fe.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;T1(f.x,a.x,E),T1(f.y,a.y,E),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(La(d,this.layout.layoutBox,this.relativeParent.layout.layoutBox),n$(this.relativeTarget,this.relativeTargetOrigin,d,E),m&&jF(this.relativeTarget,m)&&(this.isProjectionDirty=!1),m||(m=et()),an(m,this.relativeTarget)),v&&(this.animationValues=c,RF(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&&(cr(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Fe.update(()=>{Al.hasAnimatedSinceResize=!0,this.currentAnimation=zF(0,b1,{...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(b1),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&&B4(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||et();const f=Yt(this.layout.layoutBox.x);l.x.min=a.target.x.min,l.x.max=l.x.min+f;const d=Yt(this.layout.layoutBox.y);l.y.min=a.target.y.min,l.y.max=l.y.min+d}an(s,l),pi(s,c),ka(this.projectionDeltaWithTransform,this.layoutCorrected,s,c)}}registerSharedNode(a,s){this.sharedNodes.has(a)||this.sharedNodes.set(a,new NF),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(E1),this.root.sharedNodes.clear()}}}function WF(e){e.updateLayout()}function GF(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"?sn(f=>{const d=a?n.measuredBox[f]:n.layoutBox[f],y=Yt(d);d.min=r[f].min,d.max=d.min+y}):B4(i,n.layoutBox,r)&&sn(f=>{const d=a?n.measuredBox[f]:n.layoutBox[f],y=Yt(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=hi();ka(s,r,n.layoutBox);const l=hi();a?ka(l,e.applyTransform(o,!0),n.measuredBox):ka(l,r,n.layoutBox);const u=!_4(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();La(C,n.layoutBox,d.layoutBox);const v=et();La(v,r,y.layoutBox),D4(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 KF(e){io.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 ZF(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function qF(e){e.clearSnapshot()}function E1(e){e.clearMeasurements()}function XF(e){e.isLayoutDirty=!1}function QF(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function P1(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function YF(e){e.resolveTargetDelta()}function JF(e){e.calcProjection()}function e$(e){e.resetRotation()}function t$(e){e.removeLeadSnapshot()}function T1(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 O1(e,t,n,r){e.min=Ve(t.min,n.min,r),e.max=Ve(t.max,n.max,r)}function n$(e,t,n,r){O1(e.x,t.x,n.x,r),O1(e.y,t.y,n.y,r)}function r$(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const o$={duration:.45,ease:[.4,0,.1,1]},M1=e=>typeof navigator<"u"&&navigator.userAgent.toLowerCase().includes(e),R1=M1("applewebkit/")&&!M1("chrome/")?Math.round:Ke;function k1(e){e.min=R1(e.min),e.max=R1(e.max)}function i$(e){k1(e.x),k1(e.y)}function B4(e,t,n){return e==="position"||e==="preserve-aspect"&&!Ch(S1(t),S1(n),.2)}const a$=V4({attachResizeListener:(e,t)=>Jn(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Rf={current:void 0},z4=V4({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Rf.current){const e=new a$({});e.mount(window),e.setOptions({layoutScroll:!0}),Rf.current=e}return Rf.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),s$={pan:{Feature:bF},drag:{Feature:wF,ProjectionNode:z4,MeasureLayout:j4}},l$=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function u$(e){const t=l$.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]}function bh(e,t,n=1){const[r,o]=u$(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);if(i){const a=i.trim();return E4(a)?parseFloat(a):a}else return dh(o)?bh(o,t,n+1):o}function c$(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(!dh(i))return;const a=bh(i,r);a&&o.set(a)});for(const o in t){const i=t[o];if(!dh(i))continue;const a=bh(i,r);a&&(t[o]=a,n||(n={}),n[o]===void 0&&(n[o]=i))}return{target:t,transitionEnd:n}}const f$=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),H4=e=>f$.has(e),d$=e=>Object.keys(e).some(H4),L1=e=>e===_o||e===se,F1=(e,t)=>parseFloat(e.split(", ")[t]),$1=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const o=r.match(/^matrix3d\((.+)\)$/);if(o)return F1(o[1],t);{const i=r.match(/^matrix\((.+)\)$/);return i?F1(i[1],e):0}},h$=new Set(["x","y","z"]),p$=Ts.filter(e=>!h$.has(e));function m$(e){const t=[];return p$.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 $i={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:$1(4,13),y:$1(5,14)};$i.translateX=$i.x;$i.translateY=$i.y;const g$=(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]=$i[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]=$i[u](l,i)}),e},v$=(e,t,n={},r={})=>{t={...t},r={...r};const o=Object.keys(t).filter(H4);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=oa(c);const d=t[l];let y;if(pu(d)){const C=d.length,v=d[0]===null?1:0;c=d[v],f=oa(c);for(let S=v;S=0?window.pageYOffset:null,u=g$(t,e,s);return i.length&&i.forEach(([c,f])=>{e.getValue(c).set(f)}),e.render(),lc&&l!==null&&window.scrollTo({top:l}),{target:u,transitionEnd:r}}else return{target:t,transitionEnd:r}};function y$(e,t,n,r){return d$(t)?v$(e,t,n,r):{target:t,transitionEnd:r}}const C$=(e,t,n,r)=>{const o=c$(e,t,r);return t=o.target,r=o.transitionEnd,y$(e,t,n,r)},Eh={current:null},U4={current:!1};function S$(){if(U4.current=!0,!!lc)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Eh.current=e.matches;e.addListener(t),t()}else Eh.current=!1}function x$(e,t,n){const{willChange:r}=t;for(const o in t){const i=t[o],a=n[o];if(Dt(i))e.addValue(o,i),yu(r)&&r.add(o);else if(Dt(a))e.addValue(o,Fi(i,{owner:e})),yu(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,Fi(s!==void 0?s:i,{owner:e}))}}for(const o in n)t[o]===void 0&&e.removeValue(o);return t}const A1=new WeakMap,W4=Object.keys(ss),w$=W4.length,j1=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],b$=im.length;class E${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=()=>Fe.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=RC(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&&Dt(d)&&(d.set(s[f],!1),yu(u)&&u.add(f))}}scrapeMotionValuesFromProps(t,n){return{}}mount(t){this.current=t,A1.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)),U4.current||S$(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Eh.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){A1.delete(this.current),this.projection&&this.projection.unmount(),cr(this.notifyUpdate),cr(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=Io.has(t),o=n.on("change",a=>{this.latestValues[t]=a,this.props.onUpdate&&Fe.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=Fi(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=hm(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&&!Dt(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 bm),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class G4 extends E${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=BL(r,t||{},this);if(o&&(n&&(n=o(n)),r&&(r=o(r)),a&&(a=o(a))),i){DL(this,r,a);const s=C$(this,r,a,n);n=s.transitionEnd,r=s.target}return{transition:t,transitionEnd:n,...r}}}function P$(e){return window.getComputedStyle(e)}class T$ extends G4{readValueFromInstance(t,n){if(Io.has(n)){const r=ym(n);return r&&r.default||0}else{const r=P$(t),o=($C(n)?r.getPropertyValue(n):r[n])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:n}){return $4(t,n)}build(t,n,r,o){lm(t,n,r,o.transformTemplate)}scrapeMotionValuesFromProps(t,n){return dm(t,n)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Dt(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}renderInstance(t,n,r,o){DC(t,n,r,o)}}class O$ extends G4{constructor(){super(...arguments),this.isSVGTag=!1}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Io.has(n)){const r=ym(n);return r&&r.default||0}return n=VC.has(n)?n:rm(n),t.getAttribute(n)}measureInstanceViewportBox(){return et()}scrapeMotionValuesFromProps(t,n){return zC(t,n)}build(t,n,r,o){cm(t,n,r,this.isSVGTag,o.transformTemplate)}renderInstance(t,n,r,o){BC(t,n,r,o)}mount(t){this.isSVGTag=fm(t.tagName),super.mount(t)}}const M$=(e,t)=>sm(e)?new O$(t,{enableHardwareAcceleration:!1}):new T$(t,{enableHardwareAcceleration:!0}),R$={layout:{ProjectionNode:z4,MeasureLayout:j4}},k$={...nF,...wk,...s$,...R$},L$=LR((e,t)=>uk(e,t,k$,M$));function K4(){const e=h.useRef(!1);return nm(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function F$(){const e=K4(),[t,n]=h.useState(0),r=h.useCallback(()=>{e.current&&n(t+1)},[t]);return[h.useCallback(()=>Fe.postRender(r),[r]),t]}class $$ 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 A$({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($$,{isPresent:t,childRef:r,sizeRef:o},h.cloneElement(e,{ref:r}))}const kf=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:o,presenceAffectsLayout:i,mode:a})=>{const s=HC(j$),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(A$,{isPresent:n},e)),h.createElement(sc.Provider,{value:u},e)};function j$(){return new Map}function N$(e){return h.useEffect(()=>()=>e(),[])}const ao=e=>e.key||"";function I$(e,t){e.forEach(n=>{const r=ao(n);t.set(r,n)})}function _$(e){const t=[];return h.Children.forEach(e,n=>{h.isValidElement(n)&&t.push(n)}),t}const D$=({children:e,custom:t,initial:n=!0,onExitComplete:r,exitBeforeEnter:o,presenceAffectsLayout:i=!0,mode:a="sync"})=>{const s=h.useContext(am).forceRender||F$()[0],l=K4(),u=_$(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(nm(()=>{C.current=!1,I$(u,y),d.current=c}),N$(()=>{C.current=!0,y.clear(),f.clear()}),C.current)return h.createElement(h.Fragment,null,c.map(p=>h.createElement(kf,{key:ao(p),isPresent:!0,initial:n?void 0:!1,presenceAffectsLayout:i,mode:a},p)));c=[...c];const v=d.current.map(ao),S=u.map(ao),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=ao(P);return O===m||T.includes(O)}),!f.size){if(l.current===!1)return;s(),r&&r()}};x=h.createElement(kf,{key:ao(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(kf,{key:ao(p),isPresent:!0,presenceAffectsLayout:i,mode:a},p)}),h.createElement(h.Fragment,null,f.size?c:c.map(p=>h.cloneElement(p)))};function V$(){return L.jsx(D$,{mode:"sync",children:L.jsx(L$.div,{exit:{opacity:0},animate:{opacity:1},transition:{duration:3},className:xR.loaderContainer,children:L.jsx(gR,{})})})}const B$=D9([{element:L.jsx(mR,{}),children:[{path:"/",lazy:()=>zo(()=>import("./index-52366215.js"),["assets/index-52366215.js","assets/Header-a7669120.js","assets/index-d2bc33df.js","assets/Header-0ca6d921.css","assets/AILineageExplorerLogo-6cd8b55b.js","assets/routes-17d4ed4d.js","assets/AILineageExplorerLogo-d7a79808.css","assets/index-b1104da7.js","assets/gapSize-a2278ff3.js","assets/index-e53189d4.css"])},{path:"/not-found",lazy:()=>zo(()=>import("./notFound-5b19cd85.js"),["assets/notFound-5b19cd85.js","assets/AILineageExplorerLogo-6cd8b55b.js","assets/routes-17d4ed4d.js","assets/AILineageExplorerLogo-d7a79808.css","assets/index-b1104da7.js","assets/gapSize-a2278ff3.js","assets/notFound-e97b3f4d.css","assets/style-fb1f0fdc.css"])},{path:"/explorer/lineage/:owner/:repo",lazy:()=>zo(()=>import("./index-c14840b0.js"),["assets/index-c14840b0.js","assets/stripPrefix-86b24c72.js","assets/index-d2bc33df.js","assets/routes-17d4ed4d.js","assets/stripPrefix-caaf2285.css","assets/AILineageExplorerLogo-6cd8b55b.js","assets/AILineageExplorerLogo-d7a79808.css","assets/index-fe1978ec.css","assets/style-fb1f0fdc.css"]),id:"graph",children:[{path:":nodeCid/expanded?",lazy:()=>zo(()=>import("./drawer-a5bf2b77.js"),["assets/drawer-a5bf2b77.js","assets/stripPrefix-86b24c72.js","assets/index-d2bc33df.js","assets/routes-17d4ed4d.js","assets/stripPrefix-caaf2285.css","assets/Header-a7669120.js","assets/Header-0ca6d921.css","assets/gapSize-a2278ff3.js","assets/drawer-47a83320.css"])}]},{path:"/explorer/lineage",lazy:()=>zo(()=>import("./index-c14840b0.js"),["assets/index-c14840b0.js","assets/stripPrefix-86b24c72.js","assets/index-d2bc33df.js","assets/routes-17d4ed4d.js","assets/stripPrefix-caaf2285.css","assets/AILineageExplorerLogo-6cd8b55b.js","assets/AILineageExplorerLogo-d7a79808.css","assets/index-fe1978ec.css","assets/style-fb1f0fdc.css"]),id:"view",children:[{path:":nodeCid/expanded?",lazy:()=>zo(()=>import("./drawer-a5bf2b77.js"),["assets/drawer-a5bf2b77.js","assets/stripPrefix-86b24c72.js","assets/index-d2bc33df.js","assets/routes-17d4ed4d.js","assets/stripPrefix-caaf2285.css","assets/Header-a7669120.js","assets/Header-0ca6d921.css","assets/gapSize-a2278ff3.js","assets/drawer-47a83320.css"])}]}]}]);Y2(document.getElementById("root")).render(L.jsx(Z.StrictMode,{children:L.jsx(NM,{children:L.jsx(Z9,{router:B$,fallbackElement:L.jsx(V$,{})})})}));export{Cw as $,pr as A,Z$ as B,ft as C,l5 as D,L$ as E,tA as F,gs as G,D$ as H,v9 as I,W$ as J,oe as K,K$ as L,H$ as M,Ro as N,Je as O,pC as P,Ee as Q,Z as R,U as S,Kt as T,h5 as U,ps as V,tP as W,r8 as X,Qb as Y,Xt as Z,$e as _,Q$ as a,ee as a0,w3 as a1,yn as a2,vn as a3,u8 as a4,Mp as a5,Rt as a6,Fn as a7,Y$ as a8,b7 as a9,Jp as aA,eA as aB,sP as aC,X2 as aD,x5 as aE,Pw as aF,Mv as aG,Vn as aH,x3 as aI,XP as aJ,QP as aK,Ce as aL,ko as aM,G$ as aN,lO as aO,z$ as aP,Pa as aQ,X$ as aR,l8 as aS,bb as aT,oT as aU,nT as aV,Yb as aW,IP as aa,Gp as ab,xs as ac,lP as ad,qp as ae,vv as af,gE as ag,uu as ah,Zu as ai,$3 as aj,WE as ak,ys as al,Cs as am,Ss as an,xC as ao,_5 as ap,q$ as aq,uP as ar,O7 as as,LO as at,E7 as au,J$ as av,_p as aw,U5 as ax,Ov as ay,G5 as az,jo as b,le as c,D5 as d,Rp as e,es as f,Ph as g,Vp as h,kv as i,L as j,h3 as k,$5 as l,Wt as m,Wn as n,kp as o,Un as p,Y as q,h as r,V as s,Ya as t,xe as u,Bp as v,p5 as w,K5 as x,H5 as y,U$ as z};