Files
weiyu/deploy/server/notebase/assets/index-JdFVv4bu.js
jack ning d3d523dc34 update
2025-01-24 20:45:41 +08:00

794 lines
1.9 MiB
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
function zk(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in e)){const o=Object.getOwnPropertyDescriptor(r,i);o&&Object.defineProperty(e,i,o.get?o:{enumerable:!0,get:()=>r[i]})}}}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 i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const a of o.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();var d$e=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ul(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Wk={exports:{}},Uy={},Uk={exports:{}},Tn={};/**
* @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 pm=Symbol.for("react.element"),kK=Symbol.for("react.portal"),RK=Symbol.for("react.fragment"),MK=Symbol.for("react.strict_mode"),PK=Symbol.for("react.profiler"),LK=Symbol.for("react.provider"),DK=Symbol.for("react.context"),FK=Symbol.for("react.forward_ref"),BK=Symbol.for("react.suspense"),jK=Symbol.for("react.memo"),HK=Symbol.for("react.lazy"),nT=Symbol.iterator;function zK(e){return e===null||typeof e!="object"?null:(e=nT&&e[nT]||e["@@iterator"],typeof e=="function"?e:null)}var Kk={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Vk=Object.assign,Gk={};function i1(e,t,n){this.props=e,this.context=t,this.refs=Gk,this.updater=n||Kk}i1.prototype.isReactComponent={};i1.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")};i1.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function qk(){}qk.prototype=i1.prototype;function XE(e,t,n){this.props=e,this.context=t,this.refs=Gk,this.updater=n||Kk}var YE=XE.prototype=new qk;YE.constructor=XE;Vk(YE,i1.prototype);YE.isPureReactComponent=!0;var rT=Array.isArray,Xk=Object.prototype.hasOwnProperty,QE={current:null},Yk={key:!0,ref:!0,__self:!0,__source:!0};function Qk(e,t,n){var r,i={},o=null,a=null;if(t!=null)for(r in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(o=""+t.key),t)Xk.call(t,r)&&!Yk.hasOwnProperty(r)&&(i[r]=t[r]);var l=arguments.length-2;if(l===1)i.children=n;else if(1<l){for(var c=Array(l),u=0;u<l;u++)c[u]=arguments[u+2];i.children=c}if(e&&e.defaultProps)for(r in l=e.defaultProps,l)i[r]===void 0&&(i[r]=l[r]);return{$$typeof:pm,type:e,key:o,ref:a,props:i,_owner:QE.current}}function WK(e,t){return{$$typeof:pm,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function ZE(e){return typeof e=="object"&&e!==null&&e.$$typeof===pm}function UK(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var iT=/\/+/g;function O5(e,t){return typeof e=="object"&&e!==null&&e.key!=null?UK(""+e.key):t.toString(36)}function Fg(e,t,n,r,i){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var a=!1;if(e===null)a=!0;else switch(o){case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case pm:case kK:a=!0}}if(a)return a=e,i=i(a),e=r===""?"."+O5(a,0):r,rT(i)?(n="",e!=null&&(n=e.replace(iT,"$&/")+"/"),Fg(i,t,n,"",function(u){return u})):i!=null&&(ZE(i)&&(i=WK(i,n+(!i.key||a&&a.key===i.key?"":(""+i.key).replace(iT,"$&/")+"/")+e)),t.push(i)),1;if(a=0,r=r===""?".":r+":",rT(e))for(var l=0;l<e.length;l++){o=e[l];var c=r+O5(o,l);a+=Fg(o,t,n,c,i)}else if(c=zK(e),typeof c=="function")for(e=c.call(e),l=0;!(o=e.next()).done;)o=o.value,c=r+O5(o,l++),a+=Fg(o,t,n,c,i);else if(o==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return a}function _0(e,t,n){if(e==null)return e;var r=[],i=0;return Fg(e,r,"","",function(o){return t.call(n,o,i++)}),r}function KK(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var mo={current:null},Bg={transition:null},VK={ReactCurrentDispatcher:mo,ReactCurrentBatchConfig:Bg,ReactCurrentOwner:QE};function Zk(){throw Error("act(...) is not supported in production builds of React.")}Tn.Children={map:_0,forEach:function(e,t,n){_0(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return _0(e,function(){t++}),t},toArray:function(e){return _0(e,function(t){return t})||[]},only:function(e){if(!ZE(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};Tn.Component=i1;Tn.Fragment=RK;Tn.Profiler=PK;Tn.PureComponent=XE;Tn.StrictMode=MK;Tn.Suspense=BK;Tn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=VK;Tn.act=Zk;Tn.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=Vk({},e.props),i=e.key,o=e.ref,a=e._owner;if(t!=null){if(t.ref!==void 0&&(o=t.ref,a=QE.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(c in t)Xk.call(t,c)&&!Yk.hasOwnProperty(c)&&(r[c]=t[c]===void 0&&l!==void 0?l[c]:t[c])}var c=arguments.length-2;if(c===1)r.children=n;else if(1<c){l=Array(c);for(var u=0;u<c;u++)l[u]=arguments[u+2];r.children=l}return{$$typeof:pm,type:e.type,key:i,ref:o,props:r,_owner:a}};Tn.createContext=function(e){return e={$$typeof:DK,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:LK,_context:e},e.Consumer=e};Tn.createElement=Qk;Tn.createFactory=function(e){var t=Qk.bind(null,e);return t.type=e,t};Tn.createRef=function(){return{current:null}};Tn.forwardRef=function(e){return{$$typeof:FK,render:e}};Tn.isValidElement=ZE;Tn.lazy=function(e){return{$$typeof:HK,_payload:{_status:-1,_result:e},_init:KK}};Tn.memo=function(e,t){return{$$typeof:jK,type:e,compare:t===void 0?null:t}};Tn.startTransition=function(e){var t=Bg.transition;Bg.transition={};try{e()}finally{Bg.transition=t}};Tn.unstable_act=Zk;Tn.useCallback=function(e,t){return mo.current.useCallback(e,t)};Tn.useContext=function(e){return mo.current.useContext(e)};Tn.useDebugValue=function(){};Tn.useDeferredValue=function(e){return mo.current.useDeferredValue(e)};Tn.useEffect=function(e,t){return mo.current.useEffect(e,t)};Tn.useId=function(){return mo.current.useId()};Tn.useImperativeHandle=function(e,t,n){return mo.current.useImperativeHandle(e,t,n)};Tn.useInsertionEffect=function(e,t){return mo.current.useInsertionEffect(e,t)};Tn.useLayoutEffect=function(e,t){return mo.current.useLayoutEffect(e,t)};Tn.useMemo=function(e,t){return mo.current.useMemo(e,t)};Tn.useReducer=function(e,t,n){return mo.current.useReducer(e,t,n)};Tn.useRef=function(e){return mo.current.useRef(e)};Tn.useState=function(e){return mo.current.useState(e)};Tn.useSyncExternalStore=function(e,t,n){return mo.current.useSyncExternalStore(e,t,n)};Tn.useTransition=function(){return mo.current.useTransition()};Tn.version="18.3.1";Uk.exports=Tn;var d=Uk.exports;const be=ul(d),mm=zk({__proto__:null,default:be},[d]);/**
* @license React
* react-jsx-runtime.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var GK=d,qK=Symbol.for("react.element"),XK=Symbol.for("react.fragment"),YK=Object.prototype.hasOwnProperty,QK=GK.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,ZK={key:!0,ref:!0,__self:!0,__source:!0};function Jk(e,t,n){var r,i={},o=null,a=null;n!==void 0&&(o=""+n),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(a=t.ref);for(r in t)YK.call(t,r)&&!ZK.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:qK,type:e,key:o,ref:a,props:i,_owner:QK.current}}Uy.Fragment=XK;Uy.jsx=Jk;Uy.jsxs=Jk;Wk.exports=Uy;var we=Wk.exports,iC={},eR={exports:{}},oa={},tR={exports:{}},nR={};/**
* @license React
* scheduler.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/(function(e){function t(U,q){var A=U.length;U.push(q);e:for(;0<A;){var P=A-1>>>1,Z=U[P];if(0<i(Z,q))U[P]=q,U[A]=Z,A=P;else break e}}function n(U){return U.length===0?null:U[0]}function r(U){if(U.length===0)return null;var q=U[0],A=U.pop();if(A!==q){U[0]=A;e:for(var P=0,Z=U.length,V=Z>>>1;P<V;){var Y=2*(P+1)-1,ee=U[Y],ue=Y+1,ne=U[ue];if(0>i(ee,A))ue<Z&&0>i(ne,ee)?(U[P]=ne,U[ue]=A,P=ue):(U[P]=ee,U[Y]=A,P=Y);else if(ue<Z&&0>i(ne,A))U[P]=ne,U[ue]=A,P=ue;else break e}}return q}function i(U,q){var A=U.sortIndex-q.sortIndex;return A!==0?A:U.id-q.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var a=Date,l=a.now();e.unstable_now=function(){return a.now()-l}}var c=[],u=[],f=1,p=null,m=3,g=!1,b=!1,E=!1,x=typeof setTimeout=="function"?setTimeout:null,C=typeof clearTimeout=="function"?clearTimeout:null,S=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function T(U){for(var q=n(u);q!==null;){if(q.callback===null)r(u);else if(q.startTime<=U)r(u),q.sortIndex=q.expirationTime,t(c,q);else break;q=n(u)}}function O(U){if(E=!1,T(U),!b)if(n(c)!==null)b=!0,W(I);else{var q=n(u);q!==null&&j(O,q.startTime-U)}}function I(U,q){b=!1,E&&(E=!1,C(k),k=-1),g=!0;var A=m;try{for(T(q),p=n(c);p!==null&&(!(p.expirationTime>q)||U&&!H());){var P=p.callback;if(typeof P=="function"){p.callback=null,m=p.priorityLevel;var Z=P(p.expirationTime<=q);q=e.unstable_now(),typeof Z=="function"?p.callback=Z:p===n(c)&&r(c),T(q)}else r(c);p=n(c)}if(p!==null)var V=!0;else{var Y=n(u);Y!==null&&j(O,Y.startTime-q),V=!1}return V}finally{p=null,m=A,g=!1}}var _=!1,$=null,k=-1,R=5,M=-1;function H(){return!(e.unstable_now()-M<R)}function B(){if($!==null){var U=e.unstable_now();M=U;var q=!0;try{q=$(!0,U)}finally{q?L():(_=!1,$=null)}}else _=!1}var L;if(typeof S=="function")L=function(){S(B)};else if(typeof MessageChannel<"u"){var D=new MessageChannel,z=D.port2;D.port1.onmessage=B,L=function(){z.postMessage(null)}}else L=function(){x(B,0)};function W(U){$=U,_||(_=!0,L())}function j(U,q){k=x(function(){U(e.unstable_now())},q)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(U){U.callback=null},e.unstable_continueExecution=function(){b||g||(b=!0,W(I))},e.unstable_forceFrameRate=function(U){0>U||125<U?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):R=0<U?Math.floor(1e3/U):5},e.unstable_getCurrentPriorityLevel=function(){return m},e.unstable_getFirstCallbackNode=function(){return n(c)},e.unstable_next=function(U){switch(m){case 1:case 2:case 3:var q=3;break;default:q=m}var A=m;m=q;try{return U()}finally{m=A}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(U,q){switch(U){case 1:case 2:case 3:case 4:case 5:break;default:U=3}var A=m;m=U;try{return q()}finally{m=A}},e.unstable_scheduleCallback=function(U,q,A){var P=e.unstable_now();switch(typeof A=="object"&&A!==null?(A=A.delay,A=typeof A=="number"&&0<A?P+A:P):A=P,U){case 1:var Z=-1;break;case 2:Z=250;break;case 5:Z=1073741823;break;case 4:Z=1e4;break;default:Z=5e3}return Z=A+Z,U={id:f++,callback:q,priorityLevel:U,startTime:A,expirationTime:Z,sortIndex:-1},A>P?(U.sortIndex=A,t(u,U),n(c)===null&&U===n(u)&&(E?(C(k),k=-1):E=!0,j(O,A-P))):(U.sortIndex=Z,t(c,U),b||g||(b=!0,W(I))),U},e.unstable_shouldYield=H,e.unstable_wrapCallback=function(U){var q=m;return function(){var A=m;m=q;try{return U.apply(this,arguments)}finally{m=A}}}})(nR);tR.exports=nR;var JK=tR.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 eV=d,na=JK;function Et(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var rR=new Set,yp={};function zu(e,t){If(e,t),If(e+"Capture",t)}function If(e,t){for(yp[e]=t,e=0;e<t.length;e++)rR.add(t[e])}var ds=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),oC=Object.prototype.hasOwnProperty,tV=/^[: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]*$/,oT={},aT={};function nV(e){return oC.call(aT,e)?!0:oC.call(oT,e)?!1:tV.test(e)?aT[e]=!0:(oT[e]=!0,!1)}function rV(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 iV(e,t,n,r){if(t===null||typeof t>"u"||rV(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 go(e,t,n,r,i,o,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}var Di={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Di[e]=new go(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Di[t]=new go(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Di[e]=new go(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Di[e]=new go(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){Di[e]=new go(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Di[e]=new go(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Di[e]=new go(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Di[e]=new go(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Di[e]=new go(e,5,!1,e.toLowerCase(),null,!1,!1)});var JE=/[\-:]([a-z])/g;function ex(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(JE,ex);Di[t]=new go(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(JE,ex);Di[t]=new go(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(JE,ex);Di[t]=new go(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Di[e]=new go(e,1,!1,e.toLowerCase(),null,!1,!1)});Di.xlinkHref=new go("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Di[e]=new go(e,1,!1,e.toLowerCase(),null,!0,!0)});function tx(e,t,n,r){var i=Di.hasOwnProperty(t)?Di[t]:null;(i!==null?i.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(iV(t,n,i,r)&&(n=null),r||i===null?nV(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=n===null?i.type===3?!1:"":n:(t=i.attributeName,r=i.attributeNamespace,n===null?e.removeAttribute(t):(i=i.type,n=i===3||i===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var bs=eV.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,O0=Symbol.for("react.element"),Kd=Symbol.for("react.portal"),Vd=Symbol.for("react.fragment"),nx=Symbol.for("react.strict_mode"),aC=Symbol.for("react.profiler"),iR=Symbol.for("react.provider"),oR=Symbol.for("react.context"),rx=Symbol.for("react.forward_ref"),lC=Symbol.for("react.suspense"),sC=Symbol.for("react.suspense_list"),ix=Symbol.for("react.memo"),qs=Symbol.for("react.lazy"),aR=Symbol.for("react.offscreen"),lT=Symbol.iterator;function J1(e){return e===null||typeof e!="object"?null:(e=lT&&e[lT]||e["@@iterator"],typeof e=="function"?e:null)}var Mr=Object.assign,I5;function $h(e){if(I5===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);I5=t&&t[1]||""}return`
`+I5+e}var $5=!1;function N5(e,t){if(!e||$5)return"";$5=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}catch(u){if(u&&r&&typeof u.stack=="string"){for(var i=u.stack.split(`
`),o=r.stack.split(`
`),a=i.length-1,l=o.length-1;1<=a&&0<=l&&i[a]!==o[l];)l--;for(;1<=a&&0<=l;a--,l--)if(i[a]!==o[l]){if(a!==1||l!==1)do if(a--,l--,0>l||i[a]!==o[l]){var c=`
`+i[a].replace(" at new "," at ");return e.displayName&&c.includes("<anonymous>")&&(c=c.replace("<anonymous>",e.displayName)),c}while(1<=a&&0<=l);break}}}finally{$5=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?$h(e):""}function oV(e){switch(e.tag){case 5:return $h(e.type);case 16:return $h("Lazy");case 13:return $h("Suspense");case 19:return $h("SuspenseList");case 0:case 2:case 15:return e=N5(e.type,!1),e;case 11:return e=N5(e.type.render,!1),e;case 1:return e=N5(e.type,!0),e;default:return""}}function cC(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 Vd:return"Fragment";case Kd:return"Portal";case aC:return"Profiler";case nx:return"StrictMode";case lC:return"Suspense";case sC:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case oR:return(e.displayName||"Context")+".Consumer";case iR:return(e._context.displayName||"Context")+".Provider";case rx:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ix:return t=e.displayName||null,t!==null?t:cC(e.type)||"Memo";case qs:t=e._payload,e=e._init;try{return cC(e(t))}catch{}}return null}function aV(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 cC(t);case 8:return t===nx?"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 bc(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function lR(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function lV(e){var t=lR(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 i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(a){r=""+a,o.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 I0(e){e._valueTracker||(e._valueTracker=lV(e))}function sR(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=lR(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function _v(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 uC(e,t){var n=t.checked;return Mr({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function sT(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=bc(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 cR(e,t){t=t.checked,t!=null&&tx(e,"checked",t,!1)}function dC(e,t){cR(e,t);var n=bc(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")?fC(e,t.type,n):t.hasOwnProperty("defaultValue")&&fC(e,t.type,bc(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function cT(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 fC(e,t,n){(t!=="number"||_v(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Nh=Array.isArray;function pf(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+bc(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function hC(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(Et(91));return Mr({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function uT(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(Et(92));if(Nh(n)){if(1<n.length)throw Error(Et(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:bc(n)}}function uR(e,t){var n=bc(t.value),r=bc(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function dT(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function dR(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function pC(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?dR(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var $0,fR=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,i)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for($0=$0||document.createElement("div"),$0.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=$0.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function bp(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Hh={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},sV=["Webkit","ms","Moz","O"];Object.keys(Hh).forEach(function(e){sV.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Hh[t]=Hh[e]})});function hR(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Hh.hasOwnProperty(e)&&Hh[e]?(""+t).trim():t+"px"}function pR(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=hR(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var cV=Mr({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 mC(e,t){if(t){if(cV[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(Et(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(Et(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(Et(61))}if(t.style!=null&&typeof t.style!="object")throw Error(Et(62))}}function gC(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 vC=null;function ox(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var yC=null,mf=null,gf=null;function fT(e){if(e=ym(e)){if(typeof yC!="function")throw Error(Et(280));var t=e.stateNode;t&&(t=Xy(t),yC(e.stateNode,e.type,t))}}function mR(e){mf?gf?gf.push(e):gf=[e]:mf=e}function gR(){if(mf){var e=mf,t=gf;if(gf=mf=null,fT(e),t)for(e=0;e<t.length;e++)fT(t[e])}}function vR(e,t){return e(t)}function yR(){}var A5=!1;function bR(e,t,n){if(A5)return e(t,n);A5=!0;try{return vR(e,t,n)}finally{A5=!1,(mf!==null||gf!==null)&&(yR(),gR())}}function Cp(e,t){var n=e.stateNode;if(n===null)return null;var r=Xy(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(Et(231,t,typeof n));return n}var bC=!1;if(ds)try{var eh={};Object.defineProperty(eh,"passive",{get:function(){bC=!0}}),window.addEventListener("test",eh,eh),window.removeEventListener("test",eh,eh)}catch{bC=!1}function uV(e,t,n,r,i,o,a,l,c){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(f){this.onError(f)}}var zh=!1,Ov=null,Iv=!1,CC=null,dV={onError:function(e){zh=!0,Ov=e}};function fV(e,t,n,r,i,o,a,l,c){zh=!1,Ov=null,uV.apply(dV,arguments)}function hV(e,t,n,r,i,o,a,l,c){if(fV.apply(this,arguments),zh){if(zh){var u=Ov;zh=!1,Ov=null}else throw Error(Et(198));Iv||(Iv=!0,CC=u)}}function Wu(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function CR(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function hT(e){if(Wu(e)!==e)throw Error(Et(188))}function pV(e){var t=e.alternate;if(!t){if(t=Wu(e),t===null)throw Error(Et(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var o=i.alternate;if(o===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return hT(i),e;if(o===r)return hT(i),t;o=o.sibling}throw Error(Et(188))}if(n.return!==r.return)n=i,r=o;else{for(var a=!1,l=i.child;l;){if(l===n){a=!0,n=i,r=o;break}if(l===r){a=!0,r=i,n=o;break}l=l.sibling}if(!a){for(l=o.child;l;){if(l===n){a=!0,n=o,r=i;break}if(l===r){a=!0,r=o,n=i;break}l=l.sibling}if(!a)throw Error(Et(189))}}if(n.alternate!==r)throw Error(Et(190))}if(n.tag!==3)throw Error(Et(188));return n.stateNode.current===n?e:t}function SR(e){return e=pV(e),e!==null?ER(e):null}function ER(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=ER(e);if(t!==null)return t;e=e.sibling}return null}var xR=na.unstable_scheduleCallback,pT=na.unstable_cancelCallback,mV=na.unstable_shouldYield,gV=na.unstable_requestPaint,Wr=na.unstable_now,vV=na.unstable_getCurrentPriorityLevel,ax=na.unstable_ImmediatePriority,wR=na.unstable_UserBlockingPriority,$v=na.unstable_NormalPriority,yV=na.unstable_LowPriority,TR=na.unstable_IdlePriority,Ky=null,Il=null;function bV(e){if(Il&&typeof Il.onCommitFiberRoot=="function")try{Il.onCommitFiberRoot(Ky,e,void 0,(e.current.flags&128)===128)}catch{}}var Za=Math.clz32?Math.clz32:EV,CV=Math.log,SV=Math.LN2;function EV(e){return e>>>=0,e===0?32:31-(CV(e)/SV|0)|0}var N0=64,A0=4194304;function Ah(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 Nv(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,a=n&268435455;if(a!==0){var l=a&~i;l!==0?r=Ah(l):(o&=a,o!==0&&(r=Ah(o)))}else a=n&~i,a!==0?r=Ah(a):o!==0&&(r=Ah(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,o=t&-t,i>=o||i===16&&(o&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-Za(t),i=1<<n,r|=e[n],t&=~i;return r}function xV(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function wV(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,o=e.pendingLanes;0<o;){var a=31-Za(o),l=1<<a,c=i[a];c===-1?(!(l&n)||l&r)&&(i[a]=xV(l,t)):c<=t&&(e.expiredLanes|=l),o&=~l}}function SC(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function _R(){var e=N0;return N0<<=1,!(N0&4194240)&&(N0=64),e}function k5(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function gm(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Za(t),e[t]=n}function TV(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<n;){var i=31-Za(n),o=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~o}}function lx(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Za(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var Vn=0;function OR(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var IR,sx,$R,NR,AR,EC=!1,k0=[],sc=null,cc=null,uc=null,Sp=new Map,Ep=new Map,Js=[],_V="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function mT(e,t){switch(e){case"focusin":case"focusout":sc=null;break;case"dragenter":case"dragleave":cc=null;break;case"mouseover":case"mouseout":uc=null;break;case"pointerover":case"pointerout":Sp.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ep.delete(t.pointerId)}}function th(e,t,n,r,i,o){return e===null||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[i]},t!==null&&(t=ym(t),t!==null&&sx(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function OV(e,t,n,r,i){switch(t){case"focusin":return sc=th(sc,e,t,n,r,i),!0;case"dragenter":return cc=th(cc,e,t,n,r,i),!0;case"mouseover":return uc=th(uc,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return Sp.set(o,th(Sp.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,Ep.set(o,th(Ep.get(o)||null,e,t,n,r,i)),!0}return!1}function kR(e){var t=fu(e.target);if(t!==null){var n=Wu(t);if(n!==null){if(t=n.tag,t===13){if(t=CR(n),t!==null){e.blockedOn=t,AR(e.priority,function(){$R(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function jg(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=xC(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);vC=r,n.target.dispatchEvent(r),vC=null}else return t=ym(n),t!==null&&sx(t),e.blockedOn=n,!1;t.shift()}return!0}function gT(e,t,n){jg(e)&&n.delete(t)}function IV(){EC=!1,sc!==null&&jg(sc)&&(sc=null),cc!==null&&jg(cc)&&(cc=null),uc!==null&&jg(uc)&&(uc=null),Sp.forEach(gT),Ep.forEach(gT)}function nh(e,t){e.blockedOn===t&&(e.blockedOn=null,EC||(EC=!0,na.unstable_scheduleCallback(na.unstable_NormalPriority,IV)))}function xp(e){function t(i){return nh(i,e)}if(0<k0.length){nh(k0[0],e);for(var n=1;n<k0.length;n++){var r=k0[n];r.blockedOn===e&&(r.blockedOn=null)}}for(sc!==null&&nh(sc,e),cc!==null&&nh(cc,e),uc!==null&&nh(uc,e),Sp.forEach(t),Ep.forEach(t),n=0;n<Js.length;n++)r=Js[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Js.length&&(n=Js[0],n.blockedOn===null);)kR(n),n.blockedOn===null&&Js.shift()}var vf=bs.ReactCurrentBatchConfig,Av=!0;function $V(e,t,n,r){var i=Vn,o=vf.transition;vf.transition=null;try{Vn=1,cx(e,t,n,r)}finally{Vn=i,vf.transition=o}}function NV(e,t,n,r){var i=Vn,o=vf.transition;vf.transition=null;try{Vn=4,cx(e,t,n,r)}finally{Vn=i,vf.transition=o}}function cx(e,t,n,r){if(Av){var i=xC(e,t,n,r);if(i===null)z5(e,t,r,kv,n),mT(e,r);else if(OV(i,e,t,n,r))r.stopPropagation();else if(mT(e,r),t&4&&-1<_V.indexOf(e)){for(;i!==null;){var o=ym(i);if(o!==null&&IR(o),o=xC(e,t,n,r),o===null&&z5(e,t,r,kv,n),o===i)break;i=o}i!==null&&r.stopPropagation()}else z5(e,t,r,null,n)}}var kv=null;function xC(e,t,n,r){if(kv=null,e=ox(r),e=fu(e),e!==null)if(t=Wu(e),t===null)e=null;else if(n=t.tag,n===13){if(e=CR(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return kv=e,null}function RR(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(vV()){case ax:return 1;case wR:return 4;case $v:case yV:return 16;case TR:return 536870912;default:return 16}default:return 16}}var tc=null,ux=null,Hg=null;function MR(){if(Hg)return Hg;var e,t=ux,n=t.length,r,i="value"in tc?tc.value:tc.textContent,o=i.length;for(e=0;e<n&&t[e]===i[e];e++);var a=n-e;for(r=1;r<=a&&t[n-r]===i[o-r];r++);return Hg=i.slice(e,1<r?1-r:void 0)}function zg(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function R0(){return!0}function vT(){return!1}function aa(e){function t(n,r,i,o,a){this._reactName=n,this._targetInst=i,this.type=r,this.nativeEvent=o,this.target=a,this.currentTarget=null;for(var l in e)e.hasOwnProperty(l)&&(n=e[l],this[l]=n?n(o):o[l]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?R0:vT,this.isPropagationStopped=vT,this}return Mr(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=R0)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=R0)},persist:function(){},isPersistent:R0}),t}var o1={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},dx=aa(o1),vm=Mr({},o1,{view:0,detail:0}),AV=aa(vm),R5,M5,rh,Vy=Mr({},vm,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:fx,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==rh&&(rh&&e.type==="mousemove"?(R5=e.screenX-rh.screenX,M5=e.screenY-rh.screenY):M5=R5=0,rh=e),R5)},movementY:function(e){return"movementY"in e?e.movementY:M5}}),yT=aa(Vy),kV=Mr({},Vy,{dataTransfer:0}),RV=aa(kV),MV=Mr({},vm,{relatedTarget:0}),P5=aa(MV),PV=Mr({},o1,{animationName:0,elapsedTime:0,pseudoElement:0}),LV=aa(PV),DV=Mr({},o1,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),FV=aa(DV),BV=Mr({},o1,{data:0}),bT=aa(BV),jV={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},HV={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},zV={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function WV(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=zV[e])?!!t[e]:!1}function fx(){return WV}var UV=Mr({},vm,{key:function(e){if(e.key){var t=jV[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=zg(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?HV[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:fx,charCode:function(e){return e.type==="keypress"?zg(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?zg(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),KV=aa(UV),VV=Mr({},Vy,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),CT=aa(VV),GV=Mr({},vm,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:fx}),qV=aa(GV),XV=Mr({},o1,{propertyName:0,elapsedTime:0,pseudoElement:0}),YV=aa(XV),QV=Mr({},Vy,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),ZV=aa(QV),JV=[9,13,27,32],hx=ds&&"CompositionEvent"in window,Wh=null;ds&&"documentMode"in document&&(Wh=document.documentMode);var eG=ds&&"TextEvent"in window&&!Wh,PR=ds&&(!hx||Wh&&8<Wh&&11>=Wh),ST=" ",ET=!1;function LR(e,t){switch(e){case"keyup":return JV.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function DR(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Gd=!1;function tG(e,t){switch(e){case"compositionend":return DR(t);case"keypress":return t.which!==32?null:(ET=!0,ST);case"textInput":return e=t.data,e===ST&&ET?null:e;default:return null}}function nG(e,t){if(Gd)return e==="compositionend"||!hx&&LR(e,t)?(e=MR(),Hg=ux=tc=null,Gd=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return PR&&t.locale!=="ko"?null:t.data;default:return null}}var rG={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function xT(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!rG[e.type]:t==="textarea"}function FR(e,t,n,r){mR(r),t=Rv(t,"onChange"),0<t.length&&(n=new dx("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Uh=null,wp=null;function iG(e){XR(e,0)}function Gy(e){var t=Yd(e);if(sR(t))return e}function oG(e,t){if(e==="change")return t}var BR=!1;if(ds){var L5;if(ds){var D5="oninput"in document;if(!D5){var wT=document.createElement("div");wT.setAttribute("oninput","return;"),D5=typeof wT.oninput=="function"}L5=D5}else L5=!1;BR=L5&&(!document.documentMode||9<document.documentMode)}function TT(){Uh&&(Uh.detachEvent("onpropertychange",jR),wp=Uh=null)}function jR(e){if(e.propertyName==="value"&&Gy(wp)){var t=[];FR(t,wp,e,ox(e)),bR(iG,t)}}function aG(e,t,n){e==="focusin"?(TT(),Uh=t,wp=n,Uh.attachEvent("onpropertychange",jR)):e==="focusout"&&TT()}function lG(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Gy(wp)}function sG(e,t){if(e==="click")return Gy(t)}function cG(e,t){if(e==="input"||e==="change")return Gy(t)}function uG(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var il=typeof Object.is=="function"?Object.is:uG;function Tp(e,t){if(il(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!oC.call(t,i)||!il(e[i],t[i]))return!1}return!0}function _T(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function OT(e,t){var n=_T(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=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=_T(n)}}function HR(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?HR(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function zR(){for(var e=window,t=_v();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=_v(e.document)}return t}function px(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 dG(e){var t=zR(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&HR(n.ownerDocument.documentElement,n)){if(r!==null&&px(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 i=n.textContent.length,o=Math.min(r.start,i);r=r.end===void 0?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=OT(n,o);var a=OT(n,r);i&&a&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),o>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<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var fG=ds&&"documentMode"in document&&11>=document.documentMode,qd=null,wC=null,Kh=null,TC=!1;function IT(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;TC||qd==null||qd!==_v(r)||(r=qd,"selectionStart"in r&&px(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}),Kh&&Tp(Kh,r)||(Kh=r,r=Rv(wC,"onSelect"),0<r.length&&(t=new dx("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=qd)))}function M0(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Xd={animationend:M0("Animation","AnimationEnd"),animationiteration:M0("Animation","AnimationIteration"),animationstart:M0("Animation","AnimationStart"),transitionend:M0("Transition","TransitionEnd")},F5={},WR={};ds&&(WR=document.createElement("div").style,"AnimationEvent"in window||(delete Xd.animationend.animation,delete Xd.animationiteration.animation,delete Xd.animationstart.animation),"TransitionEvent"in window||delete Xd.transitionend.transition);function qy(e){if(F5[e])return F5[e];if(!Xd[e])return e;var t=Xd[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in WR)return F5[e]=t[n];return e}var UR=qy("animationend"),KR=qy("animationiteration"),VR=qy("animationstart"),GR=qy("transitionend"),qR=new Map,$T="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Ic(e,t){qR.set(e,t),zu(t,[e])}for(var B5=0;B5<$T.length;B5++){var j5=$T[B5],hG=j5.toLowerCase(),pG=j5[0].toUpperCase()+j5.slice(1);Ic(hG,"on"+pG)}Ic(UR,"onAnimationEnd");Ic(KR,"onAnimationIteration");Ic(VR,"onAnimationStart");Ic("dblclick","onDoubleClick");Ic("focusin","onFocus");Ic("focusout","onBlur");Ic(GR,"onTransitionEnd");If("onMouseEnter",["mouseout","mouseover"]);If("onMouseLeave",["mouseout","mouseover"]);If("onPointerEnter",["pointerout","pointerover"]);If("onPointerLeave",["pointerout","pointerover"]);zu("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));zu("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));zu("onBeforeInput",["compositionend","keypress","textInput","paste"]);zu("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));zu("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));zu("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var kh="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),mG=new Set("cancel close invalid load scroll toggle".split(" ").concat(kh));function NT(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,hV(r,t,void 0,e),e.currentTarget=null}function XR(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var a=r.length-1;0<=a;a--){var l=r[a],c=l.instance,u=l.currentTarget;if(l=l.listener,c!==o&&i.isPropagationStopped())break e;NT(i,l,u),o=c}else for(a=0;a<r.length;a++){if(l=r[a],c=l.instance,u=l.currentTarget,l=l.listener,c!==o&&i.isPropagationStopped())break e;NT(i,l,u),o=c}}}if(Iv)throw e=CC,Iv=!1,CC=null,e}function fr(e,t){var n=t[NC];n===void 0&&(n=t[NC]=new Set);var r=e+"__bubble";n.has(r)||(YR(t,e,2,!1),n.add(r))}function H5(e,t,n){var r=0;t&&(r|=4),YR(n,e,r,t)}var P0="_reactListening"+Math.random().toString(36).slice(2);function _p(e){if(!e[P0]){e[P0]=!0,rR.forEach(function(n){n!=="selectionchange"&&(mG.has(n)||H5(n,!1,e),H5(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[P0]||(t[P0]=!0,H5("selectionchange",!1,t))}}function YR(e,t,n,r){switch(RR(t)){case 1:var i=$V;break;case 4:i=NV;break;default:i=cx}n=i.bind(null,t,n,e),i=void 0,!bC||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),r?i!==void 0?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):i!==void 0?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function z5(e,t,n,r,i){var o=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var a=r.tag;if(a===3||a===4){var l=r.stateNode.containerInfo;if(l===i||l.nodeType===8&&l.parentNode===i)break;if(a===4)for(a=r.return;a!==null;){var c=a.tag;if((c===3||c===4)&&(c=a.stateNode.containerInfo,c===i||c.nodeType===8&&c.parentNode===i))return;a=a.return}for(;l!==null;){if(a=fu(l),a===null)return;if(c=a.tag,c===5||c===6){r=o=a;continue e}l=l.parentNode}}r=r.return}bR(function(){var u=o,f=ox(n),p=[];e:{var m=qR.get(e);if(m!==void 0){var g=dx,b=e;switch(e){case"keypress":if(zg(n)===0)break e;case"keydown":case"keyup":g=KV;break;case"focusin":b="focus",g=P5;break;case"focusout":b="blur",g=P5;break;case"beforeblur":case"afterblur":g=P5;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":g=yT;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":g=RV;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":g=qV;break;case UR:case KR:case VR:g=LV;break;case GR:g=YV;break;case"scroll":g=AV;break;case"wheel":g=ZV;break;case"copy":case"cut":case"paste":g=FV;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":g=CT}var E=(t&4)!==0,x=!E&&e==="scroll",C=E?m!==null?m+"Capture":null:m;E=[];for(var S=u,T;S!==null;){T=S;var O=T.stateNode;if(T.tag===5&&O!==null&&(T=O,C!==null&&(O=Cp(S,C),O!=null&&E.push(Op(S,O,T)))),x)break;S=S.return}0<E.length&&(m=new g(m,b,null,n,f),p.push({event:m,listeners:E}))}}if(!(t&7)){e:{if(m=e==="mouseover"||e==="pointerover",g=e==="mouseout"||e==="pointerout",m&&n!==vC&&(b=n.relatedTarget||n.fromElement)&&(fu(b)||b[fs]))break e;if((g||m)&&(m=f.window===f?f:(m=f.ownerDocument)?m.defaultView||m.parentWindow:window,g?(b=n.relatedTarget||n.toElement,g=u,b=b?fu(b):null,b!==null&&(x=Wu(b),b!==x||b.tag!==5&&b.tag!==6)&&(b=null)):(g=null,b=u),g!==b)){if(E=yT,O="onMouseLeave",C="onMouseEnter",S="mouse",(e==="pointerout"||e==="pointerover")&&(E=CT,O="onPointerLeave",C="onPointerEnter",S="pointer"),x=g==null?m:Yd(g),T=b==null?m:Yd(b),m=new E(O,S+"leave",g,n,f),m.target=x,m.relatedTarget=T,O=null,fu(f)===u&&(E=new E(C,S+"enter",b,n,f),E.target=T,E.relatedTarget=x,O=E),x=O,g&&b)t:{for(E=g,C=b,S=0,T=E;T;T=Cd(T))S++;for(T=0,O=C;O;O=Cd(O))T++;for(;0<S-T;)E=Cd(E),S--;for(;0<T-S;)C=Cd(C),T--;for(;S--;){if(E===C||C!==null&&E===C.alternate)break t;E=Cd(E),C=Cd(C)}E=null}else E=null;g!==null&&AT(p,m,g,E,!1),b!==null&&x!==null&&AT(p,x,b,E,!0)}}e:{if(m=u?Yd(u):window,g=m.nodeName&&m.nodeName.toLowerCase(),g==="select"||g==="input"&&m.type==="file")var I=oG;else if(xT(m))if(BR)I=cG;else{I=lG;var _=aG}else(g=m.nodeName)&&g.toLowerCase()==="input"&&(m.type==="checkbox"||m.type==="radio")&&(I=sG);if(I&&(I=I(e,u))){FR(p,I,n,f);break e}_&&_(e,m,u),e==="focusout"&&(_=m._wrapperState)&&_.controlled&&m.type==="number"&&fC(m,"number",m.value)}switch(_=u?Yd(u):window,e){case"focusin":(xT(_)||_.contentEditable==="true")&&(qd=_,wC=u,Kh=null);break;case"focusout":Kh=wC=qd=null;break;case"mousedown":TC=!0;break;case"contextmenu":case"mouseup":case"dragend":TC=!1,IT(p,n,f);break;case"selectionchange":if(fG)break;case"keydown":case"keyup":IT(p,n,f)}var $;if(hx)e:{switch(e){case"compositionstart":var k="onCompositionStart";break e;case"compositionend":k="onCompositionEnd";break e;case"compositionupdate":k="onCompositionUpdate";break e}k=void 0}else Gd?LR(e,n)&&(k="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(k="onCompositionStart");k&&(PR&&n.locale!=="ko"&&(Gd||k!=="onCompositionStart"?k==="onCompositionEnd"&&Gd&&($=MR()):(tc=f,ux="value"in tc?tc.value:tc.textContent,Gd=!0)),_=Rv(u,k),0<_.length&&(k=new bT(k,e,null,n,f),p.push({event:k,listeners:_}),$?k.data=$:($=DR(n),$!==null&&(k.data=$)))),($=eG?tG(e,n):nG(e,n))&&(u=Rv(u,"onBeforeInput"),0<u.length&&(f=new bT("onBeforeInput","beforeinput",null,n,f),p.push({event:f,listeners:u}),f.data=$))}XR(p,t)})}function Op(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Rv(e,t){for(var n=t+"Capture",r=[];e!==null;){var i=e,o=i.stateNode;i.tag===5&&o!==null&&(i=o,o=Cp(e,n),o!=null&&r.unshift(Op(e,o,i)),o=Cp(e,t),o!=null&&r.push(Op(e,o,i))),e=e.return}return r}function Cd(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function AT(e,t,n,r,i){for(var o=t._reactName,a=[];n!==null&&n!==r;){var l=n,c=l.alternate,u=l.stateNode;if(c!==null&&c===r)break;l.tag===5&&u!==null&&(l=u,i?(c=Cp(n,o),c!=null&&a.unshift(Op(n,c,l))):i||(c=Cp(n,o),c!=null&&a.push(Op(n,c,l)))),n=n.return}a.length!==0&&e.push({event:t,listeners:a})}var gG=/\r\n?/g,vG=/\u0000|\uFFFD/g;function kT(e){return(typeof e=="string"?e:""+e).replace(gG,`
`).replace(vG,"")}function L0(e,t,n){if(t=kT(t),kT(e)!==t&&n)throw Error(Et(425))}function Mv(){}var _C=null,OC=null;function IC(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var $C=typeof setTimeout=="function"?setTimeout:void 0,yG=typeof clearTimeout=="function"?clearTimeout:void 0,RT=typeof Promise=="function"?Promise:void 0,bG=typeof queueMicrotask=="function"?queueMicrotask:typeof RT<"u"?function(e){return RT.resolve(null).then(e).catch(CG)}:$C;function CG(e){setTimeout(function(){throw e})}function W5(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(r===0){e.removeChild(i),xp(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);xp(t)}function dc(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function MT(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var a1=Math.random().toString(36).slice(2),_l="__reactFiber$"+a1,Ip="__reactProps$"+a1,fs="__reactContainer$"+a1,NC="__reactEvents$"+a1,SG="__reactListeners$"+a1,EG="__reactHandles$"+a1;function fu(e){var t=e[_l];if(t)return t;for(var n=e.parentNode;n;){if(t=n[fs]||n[_l]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=MT(e);e!==null;){if(n=e[_l])return n;e=MT(e)}return t}e=n,n=e.parentNode}return null}function ym(e){return e=e[_l]||e[fs],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Yd(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(Et(33))}function Xy(e){return e[Ip]||null}var AC=[],Qd=-1;function $c(e){return{current:e}}function mr(e){0>Qd||(e.current=AC[Qd],AC[Qd]=null,Qd--)}function sr(e,t){Qd++,AC[Qd]=e.current,e.current=t}var Cc={},Zi=$c(Cc),Ao=$c(!1),Au=Cc;function $f(e,t){var n=e.type.contextTypes;if(!n)return Cc;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in n)i[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function ko(e){return e=e.childContextTypes,e!=null}function Pv(){mr(Ao),mr(Zi)}function PT(e,t,n){if(Zi.current!==Cc)throw Error(Et(168));sr(Zi,t),sr(Ao,n)}function QR(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(Et(108,aV(e)||"Unknown",i));return Mr({},n,r)}function Lv(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Cc,Au=Zi.current,sr(Zi,e),sr(Ao,Ao.current),!0}function LT(e,t,n){var r=e.stateNode;if(!r)throw Error(Et(169));n?(e=QR(e,t,Au),r.__reactInternalMemoizedMergedChildContext=e,mr(Ao),mr(Zi),sr(Zi,e)):mr(Ao),sr(Ao,n)}var is=null,Yy=!1,U5=!1;function ZR(e){is===null?is=[e]:is.push(e)}function xG(e){Yy=!0,ZR(e)}function Nc(){if(!U5&&is!==null){U5=!0;var e=0,t=Vn;try{var n=is;for(Vn=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}is=null,Yy=!1}catch(i){throw is!==null&&(is=is.slice(e+1)),xR(ax,Nc),i}finally{Vn=t,U5=!1}}return null}var Zd=[],Jd=0,Dv=null,Fv=0,ya=[],ba=0,ku=null,ls=1,ss="";function iu(e,t){Zd[Jd++]=Fv,Zd[Jd++]=Dv,Dv=e,Fv=t}function JR(e,t,n){ya[ba++]=ls,ya[ba++]=ss,ya[ba++]=ku,ku=e;var r=ls;e=ss;var i=32-Za(r)-1;r&=~(1<<i),n+=1;var o=32-Za(t)+i;if(30<o){var a=i-i%5;o=(r&(1<<a)-1).toString(32),r>>=a,i-=a,ls=1<<32-Za(t)+i|n<<i|r,ss=o+e}else ls=1<<o|n<<i|r,ss=e}function mx(e){e.return!==null&&(iu(e,1),JR(e,1,0))}function gx(e){for(;e===Dv;)Dv=Zd[--Jd],Zd[Jd]=null,Fv=Zd[--Jd],Zd[Jd]=null;for(;e===ku;)ku=ya[--ba],ya[ba]=null,ss=ya[--ba],ya[ba]=null,ls=ya[--ba],ya[ba]=null}var ea=null,Xo=null,wr=!1,Ya=null;function eM(e,t){var n=Sa(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function DT(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,ea=e,Xo=dc(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,ea=e,Xo=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=ku!==null?{id:ls,overflow:ss}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Sa(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,ea=e,Xo=null,!0):!1;default:return!1}}function kC(e){return(e.mode&1)!==0&&(e.flags&128)===0}function RC(e){if(wr){var t=Xo;if(t){var n=t;if(!DT(e,t)){if(kC(e))throw Error(Et(418));t=dc(n.nextSibling);var r=ea;t&&DT(e,t)?eM(r,n):(e.flags=e.flags&-4097|2,wr=!1,ea=e)}}else{if(kC(e))throw Error(Et(418));e.flags=e.flags&-4097|2,wr=!1,ea=e}}}function FT(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;ea=e}function D0(e){if(e!==ea)return!1;if(!wr)return FT(e),wr=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!IC(e.type,e.memoizedProps)),t&&(t=Xo)){if(kC(e))throw tM(),Error(Et(418));for(;t;)eM(e,t),t=dc(t.nextSibling)}if(FT(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(Et(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){Xo=dc(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Xo=null}}else Xo=ea?dc(e.stateNode.nextSibling):null;return!0}function tM(){for(var e=Xo;e;)e=dc(e.nextSibling)}function Nf(){Xo=ea=null,wr=!1}function vx(e){Ya===null?Ya=[e]:Ya.push(e)}var wG=bs.ReactCurrentBatchConfig;function ih(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(Et(309));var r=n.stateNode}if(!r)throw Error(Et(147,e));var i=r,o=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===o?t.ref:(t=function(a){var l=i.refs;a===null?delete l[o]:l[o]=a},t._stringRef=o,t)}if(typeof e!="string")throw Error(Et(284));if(!n._owner)throw Error(Et(290,e))}return e}function F0(e,t){throw e=Object.prototype.toString.call(t),Error(Et(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function BT(e){var t=e._init;return t(e._payload)}function nM(e){function t(C,S){if(e){var T=C.deletions;T===null?(C.deletions=[S],C.flags|=16):T.push(S)}}function n(C,S){if(!e)return null;for(;S!==null;)t(C,S),S=S.sibling;return null}function r(C,S){for(C=new Map;S!==null;)S.key!==null?C.set(S.key,S):C.set(S.index,S),S=S.sibling;return C}function i(C,S){return C=mc(C,S),C.index=0,C.sibling=null,C}function o(C,S,T){return C.index=T,e?(T=C.alternate,T!==null?(T=T.index,T<S?(C.flags|=2,S):T):(C.flags|=2,S)):(C.flags|=1048576,S)}function a(C){return e&&C.alternate===null&&(C.flags|=2),C}function l(C,S,T,O){return S===null||S.tag!==6?(S=Q5(T,C.mode,O),S.return=C,S):(S=i(S,T),S.return=C,S)}function c(C,S,T,O){var I=T.type;return I===Vd?f(C,S,T.props.children,O,T.key):S!==null&&(S.elementType===I||typeof I=="object"&&I!==null&&I.$$typeof===qs&&BT(I)===S.type)?(O=i(S,T.props),O.ref=ih(C,S,T),O.return=C,O):(O=Xg(T.type,T.key,T.props,null,C.mode,O),O.ref=ih(C,S,T),O.return=C,O)}function u(C,S,T,O){return S===null||S.tag!==4||S.stateNode.containerInfo!==T.containerInfo||S.stateNode.implementation!==T.implementation?(S=Z5(T,C.mode,O),S.return=C,S):(S=i(S,T.children||[]),S.return=C,S)}function f(C,S,T,O,I){return S===null||S.tag!==7?(S=wu(T,C.mode,O,I),S.return=C,S):(S=i(S,T),S.return=C,S)}function p(C,S,T){if(typeof S=="string"&&S!==""||typeof S=="number")return S=Q5(""+S,C.mode,T),S.return=C,S;if(typeof S=="object"&&S!==null){switch(S.$$typeof){case O0:return T=Xg(S.type,S.key,S.props,null,C.mode,T),T.ref=ih(C,null,S),T.return=C,T;case Kd:return S=Z5(S,C.mode,T),S.return=C,S;case qs:var O=S._init;return p(C,O(S._payload),T)}if(Nh(S)||J1(S))return S=wu(S,C.mode,T,null),S.return=C,S;F0(C,S)}return null}function m(C,S,T,O){var I=S!==null?S.key:null;if(typeof T=="string"&&T!==""||typeof T=="number")return I!==null?null:l(C,S,""+T,O);if(typeof T=="object"&&T!==null){switch(T.$$typeof){case O0:return T.key===I?c(C,S,T,O):null;case Kd:return T.key===I?u(C,S,T,O):null;case qs:return I=T._init,m(C,S,I(T._payload),O)}if(Nh(T)||J1(T))return I!==null?null:f(C,S,T,O,null);F0(C,T)}return null}function g(C,S,T,O,I){if(typeof O=="string"&&O!==""||typeof O=="number")return C=C.get(T)||null,l(S,C,""+O,I);if(typeof O=="object"&&O!==null){switch(O.$$typeof){case O0:return C=C.get(O.key===null?T:O.key)||null,c(S,C,O,I);case Kd:return C=C.get(O.key===null?T:O.key)||null,u(S,C,O,I);case qs:var _=O._init;return g(C,S,T,_(O._payload),I)}if(Nh(O)||J1(O))return C=C.get(T)||null,f(S,C,O,I,null);F0(S,O)}return null}function b(C,S,T,O){for(var I=null,_=null,$=S,k=S=0,R=null;$!==null&&k<T.length;k++){$.index>k?(R=$,$=null):R=$.sibling;var M=m(C,$,T[k],O);if(M===null){$===null&&($=R);break}e&&$&&M.alternate===null&&t(C,$),S=o(M,S,k),_===null?I=M:_.sibling=M,_=M,$=R}if(k===T.length)return n(C,$),wr&&iu(C,k),I;if($===null){for(;k<T.length;k++)$=p(C,T[k],O),$!==null&&(S=o($,S,k),_===null?I=$:_.sibling=$,_=$);return wr&&iu(C,k),I}for($=r(C,$);k<T.length;k++)R=g($,C,k,T[k],O),R!==null&&(e&&R.alternate!==null&&$.delete(R.key===null?k:R.key),S=o(R,S,k),_===null?I=R:_.sibling=R,_=R);return e&&$.forEach(function(H){return t(C,H)}),wr&&iu(C,k),I}function E(C,S,T,O){var I=J1(T);if(typeof I!="function")throw Error(Et(150));if(T=I.call(T),T==null)throw Error(Et(151));for(var _=I=null,$=S,k=S=0,R=null,M=T.next();$!==null&&!M.done;k++,M=T.next()){$.index>k?(R=$,$=null):R=$.sibling;var H=m(C,$,M.value,O);if(H===null){$===null&&($=R);break}e&&$&&H.alternate===null&&t(C,$),S=o(H,S,k),_===null?I=H:_.sibling=H,_=H,$=R}if(M.done)return n(C,$),wr&&iu(C,k),I;if($===null){for(;!M.done;k++,M=T.next())M=p(C,M.value,O),M!==null&&(S=o(M,S,k),_===null?I=M:_.sibling=M,_=M);return wr&&iu(C,k),I}for($=r(C,$);!M.done;k++,M=T.next())M=g($,C,k,M.value,O),M!==null&&(e&&M.alternate!==null&&$.delete(M.key===null?k:M.key),S=o(M,S,k),_===null?I=M:_.sibling=M,_=M);return e&&$.forEach(function(B){return t(C,B)}),wr&&iu(C,k),I}function x(C,S,T,O){if(typeof T=="object"&&T!==null&&T.type===Vd&&T.key===null&&(T=T.props.children),typeof T=="object"&&T!==null){switch(T.$$typeof){case O0:e:{for(var I=T.key,_=S;_!==null;){if(_.key===I){if(I=T.type,I===Vd){if(_.tag===7){n(C,_.sibling),S=i(_,T.props.children),S.return=C,C=S;break e}}else if(_.elementType===I||typeof I=="object"&&I!==null&&I.$$typeof===qs&&BT(I)===_.type){n(C,_.sibling),S=i(_,T.props),S.ref=ih(C,_,T),S.return=C,C=S;break e}n(C,_);break}else t(C,_);_=_.sibling}T.type===Vd?(S=wu(T.props.children,C.mode,O,T.key),S.return=C,C=S):(O=Xg(T.type,T.key,T.props,null,C.mode,O),O.ref=ih(C,S,T),O.return=C,C=O)}return a(C);case Kd:e:{for(_=T.key;S!==null;){if(S.key===_)if(S.tag===4&&S.stateNode.containerInfo===T.containerInfo&&S.stateNode.implementation===T.implementation){n(C,S.sibling),S=i(S,T.children||[]),S.return=C,C=S;break e}else{n(C,S);break}else t(C,S);S=S.sibling}S=Z5(T,C.mode,O),S.return=C,C=S}return a(C);case qs:return _=T._init,x(C,S,_(T._payload),O)}if(Nh(T))return b(C,S,T,O);if(J1(T))return E(C,S,T,O);F0(C,T)}return typeof T=="string"&&T!==""||typeof T=="number"?(T=""+T,S!==null&&S.tag===6?(n(C,S.sibling),S=i(S,T),S.return=C,C=S):(n(C,S),S=Q5(T,C.mode,O),S.return=C,C=S),a(C)):n(C,S)}return x}var Af=nM(!0),rM=nM(!1),Bv=$c(null),jv=null,ef=null,yx=null;function bx(){yx=ef=jv=null}function Cx(e){var t=Bv.current;mr(Bv),e._currentValue=t}function MC(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function yf(e,t){jv=e,yx=ef=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Io=!0),e.firstContext=null)}function Ta(e){var t=e._currentValue;if(yx!==e)if(e={context:e,memoizedValue:t,next:null},ef===null){if(jv===null)throw Error(Et(308));ef=e,jv.dependencies={lanes:0,firstContext:e}}else ef=ef.next=e;return t}var hu=null;function Sx(e){hu===null?hu=[e]:hu.push(e)}function iM(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,Sx(t)):(n.next=i.next,i.next=n),t.interleaved=n,hs(e,r)}function hs(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Xs=!1;function Ex(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function oM(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function cs(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function fc(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Ln&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,hs(e,n)}return i=r.interleaved,i===null?(t.next=t,Sx(r)):(t.next=i.next,i.next=t),r.interleaved=t,hs(e,n)}function Wg(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,lx(e,n)}}function jT(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?i=o=a:o=o.next=a,n=n.next}while(n!==null);o===null?i=o=t:o=o.next=t}else i=o=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Hv(e,t,n,r){var i=e.updateQueue;Xs=!1;var o=i.firstBaseUpdate,a=i.lastBaseUpdate,l=i.shared.pending;if(l!==null){i.shared.pending=null;var c=l,u=c.next;c.next=null,a===null?o=u:a.next=u,a=c;var f=e.alternate;f!==null&&(f=f.updateQueue,l=f.lastBaseUpdate,l!==a&&(l===null?f.firstBaseUpdate=u:l.next=u,f.lastBaseUpdate=c))}if(o!==null){var p=i.baseState;a=0,f=u=c=null,l=o;do{var m=l.lane,g=l.eventTime;if((r&m)===m){f!==null&&(f=f.next={eventTime:g,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var b=e,E=l;switch(m=t,g=n,E.tag){case 1:if(b=E.payload,typeof b=="function"){p=b.call(g,p,m);break e}p=b;break e;case 3:b.flags=b.flags&-65537|128;case 0:if(b=E.payload,m=typeof b=="function"?b.call(g,p,m):b,m==null)break e;p=Mr({},p,m);break e;case 2:Xs=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,m=i.effects,m===null?i.effects=[l]:m.push(l))}else g={eventTime:g,lane:m,tag:l.tag,payload:l.payload,callback:l.callback,next:null},f===null?(u=f=g,c=p):f=f.next=g,a|=m;if(l=l.next,l===null){if(l=i.shared.pending,l===null)break;m=l,l=m.next,m.next=null,i.lastBaseUpdate=m,i.shared.pending=null}}while(!0);if(f===null&&(c=p),i.baseState=c,i.firstBaseUpdate=u,i.lastBaseUpdate=f,t=i.shared.interleaved,t!==null){i=t;do a|=i.lane,i=i.next;while(i!==t)}else o===null&&(i.shared.lanes=0);Mu|=a,e.lanes=a,e.memoizedState=p}}function HT(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(i!==null){if(r.callback=null,r=n,typeof i!="function")throw Error(Et(191,i));i.call(r)}}}var bm={},$l=$c(bm),$p=$c(bm),Np=$c(bm);function pu(e){if(e===bm)throw Error(Et(174));return e}function xx(e,t){switch(sr(Np,t),sr($p,e),sr($l,bm),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:pC(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=pC(t,e)}mr($l),sr($l,t)}function kf(){mr($l),mr($p),mr(Np)}function aM(e){pu(Np.current);var t=pu($l.current),n=pC(t,e.type);t!==n&&(sr($p,e),sr($l,n))}function wx(e){$p.current===e&&(mr($l),mr($p))}var kr=$c(0);function zv(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 K5=[];function Tx(){for(var e=0;e<K5.length;e++)K5[e]._workInProgressVersionPrimary=null;K5.length=0}var Ug=bs.ReactCurrentDispatcher,V5=bs.ReactCurrentBatchConfig,Ru=0,Rr=null,hi=null,Si=null,Wv=!1,Vh=!1,Ap=0,TG=0;function Ui(){throw Error(Et(321))}function _x(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!il(e[n],t[n]))return!1;return!0}function Ox(e,t,n,r,i,o){if(Ru=o,Rr=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Ug.current=e===null||e.memoizedState===null?$G:NG,e=n(r,i),Vh){o=0;do{if(Vh=!1,Ap=0,25<=o)throw Error(Et(301));o+=1,Si=hi=null,t.updateQueue=null,Ug.current=AG,e=n(r,i)}while(Vh)}if(Ug.current=Uv,t=hi!==null&&hi.next!==null,Ru=0,Si=hi=Rr=null,Wv=!1,t)throw Error(Et(300));return e}function Ix(){var e=Ap!==0;return Ap=0,e}function Cl(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Si===null?Rr.memoizedState=Si=e:Si=Si.next=e,Si}function _a(){if(hi===null){var e=Rr.alternate;e=e!==null?e.memoizedState:null}else e=hi.next;var t=Si===null?Rr.memoizedState:Si.next;if(t!==null)Si=t,hi=e;else{if(e===null)throw Error(Et(310));hi=e,e={memoizedState:hi.memoizedState,baseState:hi.baseState,baseQueue:hi.baseQueue,queue:hi.queue,next:null},Si===null?Rr.memoizedState=Si=e:Si=Si.next=e}return Si}function kp(e,t){return typeof t=="function"?t(e):t}function G5(e){var t=_a(),n=t.queue;if(n===null)throw Error(Et(311));n.lastRenderedReducer=e;var r=hi,i=r.baseQueue,o=n.pending;if(o!==null){if(i!==null){var a=i.next;i.next=o.next,o.next=a}r.baseQueue=i=o,n.pending=null}if(i!==null){o=i.next,r=r.baseState;var l=a=null,c=null,u=o;do{var f=u.lane;if((Ru&f)===f)c!==null&&(c=c.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var p={lane:f,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};c===null?(l=c=p,a=r):c=c.next=p,Rr.lanes|=f,Mu|=f}u=u.next}while(u!==null&&u!==o);c===null?a=r:c.next=l,il(r,t.memoizedState)||(Io=!0),t.memoizedState=r,t.baseState=a,t.baseQueue=c,n.lastRenderedState=r}if(e=n.interleaved,e!==null){i=e;do o=i.lane,Rr.lanes|=o,Mu|=o,i=i.next;while(i!==e)}else i===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function q5(e){var t=_a(),n=t.queue;if(n===null)throw Error(Et(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,o=t.memoizedState;if(i!==null){n.pending=null;var a=i=i.next;do o=e(o,a.action),a=a.next;while(a!==i);il(o,t.memoizedState)||(Io=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function lM(){}function sM(e,t){var n=Rr,r=_a(),i=t(),o=!il(r.memoizedState,i);if(o&&(r.memoizedState=i,Io=!0),r=r.queue,$x(dM.bind(null,n,r,e),[e]),r.getSnapshot!==t||o||Si!==null&&Si.memoizedState.tag&1){if(n.flags|=2048,Rp(9,uM.bind(null,n,r,i,t),void 0,null),wi===null)throw Error(Et(349));Ru&30||cM(n,t,i)}return i}function cM(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Rr.updateQueue,t===null?(t={lastEffect:null,stores:null},Rr.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function uM(e,t,n,r){t.value=n,t.getSnapshot=r,fM(t)&&hM(e)}function dM(e,t,n){return n(function(){fM(t)&&hM(e)})}function fM(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!il(e,n)}catch{return!0}}function hM(e){var t=hs(e,1);t!==null&&Ja(t,e,1,-1)}function zT(e){var t=Cl();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:kp,lastRenderedState:e},t.queue=e,e=e.dispatch=IG.bind(null,Rr,e),[t.memoizedState,e]}function Rp(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=Rr.updateQueue,t===null?(t={lastEffect:null,stores:null},Rr.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function pM(){return _a().memoizedState}function Kg(e,t,n,r){var i=Cl();Rr.flags|=e,i.memoizedState=Rp(1|t,n,void 0,r===void 0?null:r)}function Qy(e,t,n,r){var i=_a();r=r===void 0?null:r;var o=void 0;if(hi!==null){var a=hi.memoizedState;if(o=a.destroy,r!==null&&_x(r,a.deps)){i.memoizedState=Rp(t,n,o,r);return}}Rr.flags|=e,i.memoizedState=Rp(1|t,n,o,r)}function WT(e,t){return Kg(8390656,8,e,t)}function $x(e,t){return Qy(2048,8,e,t)}function mM(e,t){return Qy(4,2,e,t)}function gM(e,t){return Qy(4,4,e,t)}function vM(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function yM(e,t,n){return n=n!=null?n.concat([e]):null,Qy(4,4,vM.bind(null,t,e),n)}function Nx(){}function bM(e,t){var n=_a();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&_x(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function CM(e,t){var n=_a();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&_x(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function SM(e,t,n){return Ru&21?(il(n,t)||(n=_R(),Rr.lanes|=n,Mu|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Io=!0),e.memoizedState=n)}function _G(e,t){var n=Vn;Vn=n!==0&&4>n?n:4,e(!0);var r=V5.transition;V5.transition={};try{e(!1),t()}finally{Vn=n,V5.transition=r}}function EM(){return _a().memoizedState}function OG(e,t,n){var r=pc(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},xM(e))wM(t,n);else if(n=iM(e,t,n,r),n!==null){var i=uo();Ja(n,e,r,i),TM(n,t,r)}}function IG(e,t,n){var r=pc(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(xM(e))wM(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var a=t.lastRenderedState,l=o(a,n);if(i.hasEagerState=!0,i.eagerState=l,il(l,a)){var c=t.interleaved;c===null?(i.next=i,Sx(t)):(i.next=c.next,c.next=i),t.interleaved=i;return}}catch{}finally{}n=iM(e,t,i,r),n!==null&&(i=uo(),Ja(n,e,r,i),TM(n,t,r))}}function xM(e){var t=e.alternate;return e===Rr||t!==null&&t===Rr}function wM(e,t){Vh=Wv=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function TM(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,lx(e,n)}}var Uv={readContext:Ta,useCallback:Ui,useContext:Ui,useEffect:Ui,useImperativeHandle:Ui,useInsertionEffect:Ui,useLayoutEffect:Ui,useMemo:Ui,useReducer:Ui,useRef:Ui,useState:Ui,useDebugValue:Ui,useDeferredValue:Ui,useTransition:Ui,useMutableSource:Ui,useSyncExternalStore:Ui,useId:Ui,unstable_isNewReconciler:!1},$G={readContext:Ta,useCallback:function(e,t){return Cl().memoizedState=[e,t===void 0?null:t],e},useContext:Ta,useEffect:WT,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Kg(4194308,4,vM.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Kg(4194308,4,e,t)},useInsertionEffect:function(e,t){return Kg(4,2,e,t)},useMemo:function(e,t){var n=Cl();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Cl();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=OG.bind(null,Rr,e),[r.memoizedState,e]},useRef:function(e){var t=Cl();return e={current:e},t.memoizedState=e},useState:zT,useDebugValue:Nx,useDeferredValue:function(e){return Cl().memoizedState=e},useTransition:function(){var e=zT(!1),t=e[0];return e=_G.bind(null,e[1]),Cl().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Rr,i=Cl();if(wr){if(n===void 0)throw Error(Et(407));n=n()}else{if(n=t(),wi===null)throw Error(Et(349));Ru&30||cM(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,WT(dM.bind(null,r,o,e),[e]),r.flags|=2048,Rp(9,uM.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=Cl(),t=wi.identifierPrefix;if(wr){var n=ss,r=ls;n=(r&~(1<<32-Za(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Ap++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=TG++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},NG={readContext:Ta,useCallback:bM,useContext:Ta,useEffect:$x,useImperativeHandle:yM,useInsertionEffect:mM,useLayoutEffect:gM,useMemo:CM,useReducer:G5,useRef:pM,useState:function(){return G5(kp)},useDebugValue:Nx,useDeferredValue:function(e){var t=_a();return SM(t,hi.memoizedState,e)},useTransition:function(){var e=G5(kp)[0],t=_a().memoizedState;return[e,t]},useMutableSource:lM,useSyncExternalStore:sM,useId:EM,unstable_isNewReconciler:!1},AG={readContext:Ta,useCallback:bM,useContext:Ta,useEffect:$x,useImperativeHandle:yM,useInsertionEffect:mM,useLayoutEffect:gM,useMemo:CM,useReducer:q5,useRef:pM,useState:function(){return q5(kp)},useDebugValue:Nx,useDeferredValue:function(e){var t=_a();return hi===null?t.memoizedState=e:SM(t,hi.memoizedState,e)},useTransition:function(){var e=q5(kp)[0],t=_a().memoizedState;return[e,t]},useMutableSource:lM,useSyncExternalStore:sM,useId:EM,unstable_isNewReconciler:!1};function Va(e,t){if(e&&e.defaultProps){t=Mr({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function PC(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:Mr({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Zy={isMounted:function(e){return(e=e._reactInternals)?Wu(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=uo(),i=pc(e),o=cs(r,i);o.payload=t,n!=null&&(o.callback=n),t=fc(e,o,i),t!==null&&(Ja(t,e,i,r),Wg(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=uo(),i=pc(e),o=cs(r,i);o.tag=1,o.payload=t,n!=null&&(o.callback=n),t=fc(e,o,i),t!==null&&(Ja(t,e,i,r),Wg(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=uo(),r=pc(e),i=cs(n,r);i.tag=2,t!=null&&(i.callback=t),t=fc(e,i,r),t!==null&&(Ja(t,e,r,n),Wg(t,e,r))}};function UT(e,t,n,r,i,o,a){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,o,a):t.prototype&&t.prototype.isPureReactComponent?!Tp(n,r)||!Tp(i,o):!0}function _M(e,t,n){var r=!1,i=Cc,o=t.contextType;return typeof o=="object"&&o!==null?o=Ta(o):(i=ko(t)?Au:Zi.current,r=t.contextTypes,o=(r=r!=null)?$f(e,i):Cc),t=new t(n,o),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Zy,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function KT(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Zy.enqueueReplaceState(t,t.state,null)}function LC(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},Ex(e);var o=t.contextType;typeof o=="object"&&o!==null?i.context=Ta(o):(o=ko(t)?Au:Zi.current,i.context=$f(e,o)),i.state=e.memoizedState,o=t.getDerivedStateFromProps,typeof o=="function"&&(PC(e,t,o,n),i.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(t=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),t!==i.state&&Zy.enqueueReplaceState(i,i.state,null),Hv(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function Rf(e,t){try{var n="",r=t;do n+=oV(r),r=r.return;while(r);var i=n}catch(o){i=`
Error generating stack: `+o.message+`
`+o.stack}return{value:e,source:t,stack:i,digest:null}}function X5(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function DC(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var kG=typeof WeakMap=="function"?WeakMap:Map;function OM(e,t,n){n=cs(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Vv||(Vv=!0,GC=r),DC(e,t)},n}function IM(e,t,n){n=cs(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){DC(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){DC(e,t),typeof r!="function"&&(hc===null?hc=new Set([this]):hc.add(this));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:""})}),n}function VT(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new kG;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=VG.bind(null,e,t,n),t.then(e,e))}function GT(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function qT(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=cs(-1,1),t.tag=2,fc(n,t,1))),n.lanes|=1),e)}var RG=bs.ReactCurrentOwner,Io=!1;function ao(e,t,n,r){t.child=e===null?rM(t,null,n,r):Af(t,e.child,n,r)}function XT(e,t,n,r,i){n=n.render;var o=t.ref;return yf(t,i),r=Ox(e,t,n,r,o,i),n=Ix(),e!==null&&!Io?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,ps(e,t,i)):(wr&&n&&mx(t),t.flags|=1,ao(e,t,r,i),t.child)}function YT(e,t,n,r,i){if(e===null){var o=n.type;return typeof o=="function"&&!Fx(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,$M(e,t,o,r,i)):(e=Xg(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!(e.lanes&i)){var a=o.memoizedProps;if(n=n.compare,n=n!==null?n:Tp,n(a,r)&&e.ref===t.ref)return ps(e,t,i)}return t.flags|=1,e=mc(o,r),e.ref=t.ref,e.return=t,t.child=e}function $M(e,t,n,r,i){if(e!==null){var o=e.memoizedProps;if(Tp(o,r)&&e.ref===t.ref)if(Io=!1,t.pendingProps=r=o,(e.lanes&i)!==0)e.flags&131072&&(Io=!0);else return t.lanes=e.lanes,ps(e,t,i)}return FC(e,t,n,r,i)}function NM(e,t,n){var r=t.pendingProps,i=r.children,o=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},sr(nf,Go),Go|=n;else{if(!(n&1073741824))return e=o!==null?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,sr(nf,Go),Go|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,sr(nf,Go),Go|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,sr(nf,Go),Go|=r;return ao(e,t,i,n),t.child}function AM(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function FC(e,t,n,r,i){var o=ko(n)?Au:Zi.current;return o=$f(t,o),yf(t,i),n=Ox(e,t,n,r,o,i),r=Ix(),e!==null&&!Io?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,ps(e,t,i)):(wr&&r&&mx(t),t.flags|=1,ao(e,t,n,i),t.child)}function QT(e,t,n,r,i){if(ko(n)){var o=!0;Lv(t)}else o=!1;if(yf(t,i),t.stateNode===null)Vg(e,t),_M(t,n,r),LC(t,n,r,i),r=!0;else if(e===null){var a=t.stateNode,l=t.memoizedProps;a.props=l;var c=a.context,u=n.contextType;typeof u=="object"&&u!==null?u=Ta(u):(u=ko(n)?Au:Zi.current,u=$f(t,u));var f=n.getDerivedStateFromProps,p=typeof f=="function"||typeof a.getSnapshotBeforeUpdate=="function";p||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(l!==r||c!==u)&&KT(t,a,r,u),Xs=!1;var m=t.memoizedState;a.state=m,Hv(t,r,a,i),c=t.memoizedState,l!==r||m!==c||Ao.current||Xs?(typeof f=="function"&&(PC(t,n,f,r),c=t.memoizedState),(l=Xs||UT(t,n,l,r,m,c,u))?(p||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount=="function"&&(t.flags|=4194308)):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=c),a.props=r,a.state=c,a.context=u,r=l):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,oM(e,t),l=t.memoizedProps,u=t.type===t.elementType?l:Va(t.type,l),a.props=u,p=t.pendingProps,m=a.context,c=n.contextType,typeof c=="object"&&c!==null?c=Ta(c):(c=ko(n)?Au:Zi.current,c=$f(t,c));var g=n.getDerivedStateFromProps;(f=typeof g=="function"||typeof a.getSnapshotBeforeUpdate=="function")||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(l!==p||m!==c)&&KT(t,a,r,c),Xs=!1,m=t.memoizedState,a.state=m,Hv(t,r,a,i);var b=t.memoizedState;l!==p||m!==b||Ao.current||Xs?(typeof g=="function"&&(PC(t,n,g,r),b=t.memoizedState),(u=Xs||UT(t,n,u,r,m,b,c)||!1)?(f||typeof a.UNSAFE_componentWillUpdate!="function"&&typeof a.componentWillUpdate!="function"||(typeof a.componentWillUpdate=="function"&&a.componentWillUpdate(r,b,c),typeof a.UNSAFE_componentWillUpdate=="function"&&a.UNSAFE_componentWillUpdate(r,b,c)),typeof a.componentDidUpdate=="function"&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof a.componentDidUpdate!="function"||l===e.memoizedProps&&m===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&m===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=b),a.props=r,a.state=b,a.context=c,r=u):(typeof a.componentDidUpdate!="function"||l===e.memoizedProps&&m===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&m===e.memoizedState||(t.flags|=1024),r=!1)}return BC(e,t,n,r,o,i)}function BC(e,t,n,r,i,o){AM(e,t);var a=(t.flags&128)!==0;if(!r&&!a)return i&&LT(t,n,!1),ps(e,t,o);r=t.stateNode,RG.current=t;var l=a&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&a?(t.child=Af(t,e.child,null,o),t.child=Af(t,null,l,o)):ao(e,t,l,o),t.memoizedState=r.state,i&&LT(t,n,!0),t.child}function kM(e){var t=e.stateNode;t.pendingContext?PT(e,t.pendingContext,t.pendingContext!==t.context):t.context&&PT(e,t.context,!1),xx(e,t.containerInfo)}function ZT(e,t,n,r,i){return Nf(),vx(i),t.flags|=256,ao(e,t,n,r),t.child}var jC={dehydrated:null,treeContext:null,retryLane:0};function HC(e){return{baseLanes:e,cachePool:null,transitions:null}}function RM(e,t,n){var r=t.pendingProps,i=kr.current,o=!1,a=(t.flags&128)!==0,l;if((l=a)||(l=e!==null&&e.memoizedState===null?!1:(i&2)!==0),l?(o=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),sr(kr,i&1),e===null)return RC(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(a=r.children,e=r.fallback,o?(r=t.mode,o=t.child,a={mode:"hidden",children:a},!(r&1)&&o!==null?(o.childLanes=0,o.pendingProps=a):o=tb(a,r,0,null),e=wu(e,r,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=HC(n),t.memoizedState=jC,e):Ax(t,a));if(i=e.memoizedState,i!==null&&(l=i.dehydrated,l!==null))return MG(e,t,a,r,l,i,n);if(o){o=r.fallback,a=t.mode,i=e.child,l=i.sibling;var c={mode:"hidden",children:r.children};return!(a&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=c,t.deletions=null):(r=mc(i,c),r.subtreeFlags=i.subtreeFlags&14680064),l!==null?o=mc(l,o):(o=wu(o,a,n,null),o.flags|=2),o.return=t,r.return=t,r.sibling=o,t.child=r,r=o,o=t.child,a=e.child.memoizedState,a=a===null?HC(n):{baseLanes:a.baseLanes|n,cachePool:null,transitions:a.transitions},o.memoizedState=a,o.childLanes=e.childLanes&~n,t.memoizedState=jC,r}return o=e.child,e=o.sibling,r=mc(o,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function Ax(e,t){return t=tb({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function B0(e,t,n,r){return r!==null&&vx(r),Af(t,e.child,null,n),e=Ax(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function MG(e,t,n,r,i,o,a){if(n)return t.flags&256?(t.flags&=-257,r=X5(Error(Et(422))),B0(e,t,a,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=r.fallback,i=t.mode,r=tb({mode:"visible",children:r.children},i,0,null),o=wu(o,i,a,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,t.mode&1&&Af(t,e.child,null,a),t.child.memoizedState=HC(a),t.memoizedState=jC,o);if(!(t.mode&1))return B0(e,t,a,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var l=r.dgst;return r=l,o=Error(Et(419)),r=X5(o,r,void 0),B0(e,t,a,r)}if(l=(a&e.childLanes)!==0,Io||l){if(r=wi,r!==null){switch(a&-a){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(r.suspendedLanes|a)?0:i,i!==0&&i!==o.retryLane&&(o.retryLane=i,hs(e,i),Ja(r,e,i,-1))}return Dx(),r=X5(Error(Et(421))),B0(e,t,a,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=GG.bind(null,e),i._reactRetry=t,null):(e=o.treeContext,Xo=dc(i.nextSibling),ea=t,wr=!0,Ya=null,e!==null&&(ya[ba++]=ls,ya[ba++]=ss,ya[ba++]=ku,ls=e.id,ss=e.overflow,ku=t),t=Ax(t,r.children),t.flags|=4096,t)}function JT(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),MC(e.return,t,n)}function Y5(e,t,n,r,i){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i)}function MM(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(ao(e,t,r.children,n),r=kr.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&JT(e,n,t);else if(e.tag===19)JT(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(sr(kr,r),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&zv(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Y5(t,!1,i,n,o);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&zv(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Y5(t,!0,n,null,o);break;case"together":Y5(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Vg(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function ps(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Mu|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(Et(153));if(t.child!==null){for(e=t.child,n=mc(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=mc(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function PG(e,t,n){switch(t.tag){case 3:kM(t),Nf();break;case 5:aM(t);break;case 1:ko(t.type)&&Lv(t);break;case 4:xx(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;sr(Bv,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(sr(kr,kr.current&1),t.flags|=128,null):n&t.child.childLanes?RM(e,t,n):(sr(kr,kr.current&1),e=ps(e,t,n),e!==null?e.sibling:null);sr(kr,kr.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return MM(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),sr(kr,kr.current),r)break;return null;case 22:case 23:return t.lanes=0,NM(e,t,n)}return ps(e,t,n)}var PM,zC,LM,DM;PM=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};zC=function(){};LM=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,pu($l.current);var o=null;switch(n){case"input":i=uC(e,i),r=uC(e,r),o=[];break;case"select":i=Mr({},i,{value:void 0}),r=Mr({},r,{value:void 0}),o=[];break;case"textarea":i=hC(e,i),r=hC(e,r),o=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Mv)}mC(n,r);var a;n=null;for(u in i)if(!r.hasOwnProperty(u)&&i.hasOwnProperty(u)&&i[u]!=null)if(u==="style"){var l=i[u];for(a in l)l.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(yp.hasOwnProperty(u)?o||(o=[]):(o=o||[]).push(u,null));for(u in r){var c=r[u];if(l=i!=null?i[u]:void 0,r.hasOwnProperty(u)&&c!==l&&(c!=null||l!=null))if(u==="style")if(l){for(a in l)!l.hasOwnProperty(a)||c&&c.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in c)c.hasOwnProperty(a)&&l[a]!==c[a]&&(n||(n={}),n[a]=c[a])}else n||(o||(o=[]),o.push(u,n)),n=c;else u==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,l=l?l.__html:void 0,c!=null&&l!==c&&(o=o||[]).push(u,c)):u==="children"?typeof c!="string"&&typeof c!="number"||(o=o||[]).push(u,""+c):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(yp.hasOwnProperty(u)?(c!=null&&u==="onScroll"&&fr("scroll",e),o||l===c||(o=[])):(o=o||[]).push(u,c))}n&&(o=o||[]).push("style",n);var u=o;(t.updateQueue=u)&&(t.flags|=4)}};DM=function(e,t,n,r){n!==r&&(t.flags|=4)};function oh(e,t){if(!wr)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Ki(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function LG(e,t,n){var r=t.pendingProps;switch(gx(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ki(t),null;case 1:return ko(t.type)&&Pv(),Ki(t),null;case 3:return r=t.stateNode,kf(),mr(Ao),mr(Zi),Tx(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(D0(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Ya!==null&&(YC(Ya),Ya=null))),zC(e,t),Ki(t),null;case 5:wx(t);var i=pu(Np.current);if(n=t.type,e!==null&&t.stateNode!=null)LM(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(Et(166));return Ki(t),null}if(e=pu($l.current),D0(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[_l]=t,r[Ip]=o,e=(t.mode&1)!==0,n){case"dialog":fr("cancel",r),fr("close",r);break;case"iframe":case"object":case"embed":fr("load",r);break;case"video":case"audio":for(i=0;i<kh.length;i++)fr(kh[i],r);break;case"source":fr("error",r);break;case"img":case"image":case"link":fr("error",r),fr("load",r);break;case"details":fr("toggle",r);break;case"input":sT(r,o),fr("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},fr("invalid",r);break;case"textarea":uT(r,o),fr("invalid",r)}mC(n,o),i=null;for(var a in o)if(o.hasOwnProperty(a)){var l=o[a];a==="children"?typeof l=="string"?r.textContent!==l&&(o.suppressHydrationWarning!==!0&&L0(r.textContent,l,e),i=["children",l]):typeof l=="number"&&r.textContent!==""+l&&(o.suppressHydrationWarning!==!0&&L0(r.textContent,l,e),i=["children",""+l]):yp.hasOwnProperty(a)&&l!=null&&a==="onScroll"&&fr("scroll",r)}switch(n){case"input":I0(r),cT(r,o,!0);break;case"textarea":I0(r),dT(r);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(r.onclick=Mv)}r=i,t.updateQueue=r,r!==null&&(t.flags|=4)}else{a=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=dR(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=a.createElement("div"),e.innerHTML="<script><\/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[_l]=t,e[Ip]=r,PM(e,t,!1,!1),t.stateNode=e;e:{switch(a=gC(n,r),n){case"dialog":fr("cancel",e),fr("close",e),i=r;break;case"iframe":case"object":case"embed":fr("load",e),i=r;break;case"video":case"audio":for(i=0;i<kh.length;i++)fr(kh[i],e);i=r;break;case"source":fr("error",e),i=r;break;case"img":case"image":case"link":fr("error",e),fr("load",e),i=r;break;case"details":fr("toggle",e),i=r;break;case"input":sT(e,r),i=uC(e,r),fr("invalid",e);break;case"option":i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=Mr({},r,{value:void 0}),fr("invalid",e);break;case"textarea":uT(e,r),i=hC(e,r),fr("invalid",e);break;default:i=r}mC(n,i),l=i;for(o in l)if(l.hasOwnProperty(o)){var c=l[o];o==="style"?pR(e,c):o==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,c!=null&&fR(e,c)):o==="children"?typeof c=="string"?(n!=="textarea"||c!=="")&&bp(e,c):typeof c=="number"&&bp(e,""+c):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(yp.hasOwnProperty(o)?c!=null&&o==="onScroll"&&fr("scroll",e):c!=null&&tx(e,o,c,a))}switch(n){case"input":I0(e),cT(e,r,!1);break;case"textarea":I0(e),dT(e);break;case"option":r.value!=null&&e.setAttribute("value",""+bc(r.value));break;case"select":e.multiple=!!r.multiple,o=r.value,o!=null?pf(e,!!r.multiple,o,!1):r.defaultValue!=null&&pf(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=Mv)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return Ki(t),null;case 6:if(e&&t.stateNode!=null)DM(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(Et(166));if(n=pu(Np.current),pu($l.current),D0(t)){if(r=t.stateNode,n=t.memoizedProps,r[_l]=t,(o=r.nodeValue!==n)&&(e=ea,e!==null))switch(e.tag){case 3:L0(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&L0(r.nodeValue,n,(e.mode&1)!==0)}o&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[_l]=t,t.stateNode=r}return Ki(t),null;case 13:if(mr(kr),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(wr&&Xo!==null&&t.mode&1&&!(t.flags&128))tM(),Nf(),t.flags|=98560,o=!1;else if(o=D0(t),r!==null&&r.dehydrated!==null){if(e===null){if(!o)throw Error(Et(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(Et(317));o[_l]=t}else Nf(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Ki(t),o=!1}else Ya!==null&&(YC(Ya),Ya=null),o=!0;if(!o)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||kr.current&1?pi===0&&(pi=3):Dx())),t.updateQueue!==null&&(t.flags|=4),Ki(t),null);case 4:return kf(),zC(e,t),e===null&&_p(t.stateNode.containerInfo),Ki(t),null;case 10:return Cx(t.type._context),Ki(t),null;case 17:return ko(t.type)&&Pv(),Ki(t),null;case 19:if(mr(kr),o=t.memoizedState,o===null)return Ki(t),null;if(r=(t.flags&128)!==0,a=o.rendering,a===null)if(r)oh(o,!1);else{if(pi!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(a=zv(e),a!==null){for(t.flags|=128,oh(o,!1),r=a.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)o=n,e=r,o.flags&=14680066,a=o.alternate,a===null?(o.childLanes=0,o.lanes=e,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=a.childLanes,o.lanes=a.lanes,o.child=a.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=a.memoizedProps,o.memoizedState=a.memoizedState,o.updateQueue=a.updateQueue,o.type=a.type,e=a.dependencies,o.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return sr(kr,kr.current&1|2),t.child}e=e.sibling}o.tail!==null&&Wr()>Mf&&(t.flags|=128,r=!0,oh(o,!1),t.lanes=4194304)}else{if(!r)if(e=zv(a),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),oh(o,!0),o.tail===null&&o.tailMode==="hidden"&&!a.alternate&&!wr)return Ki(t),null}else 2*Wr()-o.renderingStartTime>Mf&&n!==1073741824&&(t.flags|=128,r=!0,oh(o,!1),t.lanes=4194304);o.isBackwards?(a.sibling=t.child,t.child=a):(n=o.last,n!==null?n.sibling=a:t.child=a,o.last=a)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=Wr(),t.sibling=null,n=kr.current,sr(kr,r?n&1|2:n&1),t):(Ki(t),null);case 22:case 23:return Lx(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Go&1073741824&&(Ki(t),t.subtreeFlags&6&&(t.flags|=8192)):Ki(t),null;case 24:return null;case 25:return null}throw Error(Et(156,t.tag))}function DG(e,t){switch(gx(t),t.tag){case 1:return ko(t.type)&&Pv(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return kf(),mr(Ao),mr(Zi),Tx(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return wx(t),null;case 13:if(mr(kr),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(Et(340));Nf()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return mr(kr),null;case 4:return kf(),null;case 10:return Cx(t.type._context),null;case 22:case 23:return Lx(),null;case 24:return null;default:return null}}var j0=!1,Gi=!1,FG=typeof WeakSet=="function"?WeakSet:Set,Ht=null;function tf(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Fr(e,t,r)}else n.current=null}function WC(e,t,n){try{n()}catch(r){Fr(e,t,r)}}var e7=!1;function BG(e,t){if(_C=Av,e=zR(),px(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 i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var a=0,l=-1,c=-1,u=0,f=0,p=e,m=null;t:for(;;){for(var g;p!==n||i!==0&&p.nodeType!==3||(l=a+i),p!==o||r!==0&&p.nodeType!==3||(c=a+r),p.nodeType===3&&(a+=p.nodeValue.length),(g=p.firstChild)!==null;)m=p,p=g;for(;;){if(p===e)break t;if(m===n&&++u===i&&(l=a),m===o&&++f===r&&(c=a),(g=p.nextSibling)!==null)break;p=m,m=p.parentNode}p=g}n=l===-1||c===-1?null:{start:l,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(OC={focusedElem:e,selectionRange:n},Av=!1,Ht=t;Ht!==null;)if(t=Ht,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Ht=e;else for(;Ht!==null;){t=Ht;try{var b=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(b!==null){var E=b.memoizedProps,x=b.memoizedState,C=t.stateNode,S=C.getSnapshotBeforeUpdate(t.elementType===t.type?E:Va(t.type,E),x);C.__reactInternalSnapshotBeforeUpdate=S}break;case 3:var T=t.stateNode.containerInfo;T.nodeType===1?T.textContent="":T.nodeType===9&&T.documentElement&&T.removeChild(T.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(Et(163))}}catch(O){Fr(t,t.return,O)}if(e=t.sibling,e!==null){e.return=t.return,Ht=e;break}Ht=t.return}return b=e7,e7=!1,b}function Gh(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,o!==void 0&&WC(t,n,o)}i=i.next}while(i!==r)}}function Jy(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 UC(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 FM(e){var t=e.alternate;t!==null&&(e.alternate=null,FM(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[_l],delete t[Ip],delete t[NC],delete t[SG],delete t[EG])),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 BM(e){return e.tag===5||e.tag===3||e.tag===4}function t7(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||BM(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 KC(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=Mv));else if(r!==4&&(e=e.child,e!==null))for(KC(e,t,n),e=e.sibling;e!==null;)KC(e,t,n),e=e.sibling}function VC(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(VC(e,t,n),e=e.sibling;e!==null;)VC(e,t,n),e=e.sibling}var $i=null,Ga=!1;function ks(e,t,n){for(n=n.child;n!==null;)jM(e,t,n),n=n.sibling}function jM(e,t,n){if(Il&&typeof Il.onCommitFiberUnmount=="function")try{Il.onCommitFiberUnmount(Ky,n)}catch{}switch(n.tag){case 5:Gi||tf(n,t);case 6:var r=$i,i=Ga;$i=null,ks(e,t,n),$i=r,Ga=i,$i!==null&&(Ga?(e=$i,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):$i.removeChild(n.stateNode));break;case 18:$i!==null&&(Ga?(e=$i,n=n.stateNode,e.nodeType===8?W5(e.parentNode,n):e.nodeType===1&&W5(e,n),xp(e)):W5($i,n.stateNode));break;case 4:r=$i,i=Ga,$i=n.stateNode.containerInfo,Ga=!0,ks(e,t,n),$i=r,Ga=i;break;case 0:case 11:case 14:case 15:if(!Gi&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var o=i,a=o.destroy;o=o.tag,a!==void 0&&(o&2||o&4)&&WC(n,t,a),i=i.next}while(i!==r)}ks(e,t,n);break;case 1:if(!Gi&&(tf(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){Fr(n,t,l)}ks(e,t,n);break;case 21:ks(e,t,n);break;case 22:n.mode&1?(Gi=(r=Gi)||n.memoizedState!==null,ks(e,t,n),Gi=r):ks(e,t,n);break;default:ks(e,t,n)}}function n7(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new FG),t.forEach(function(r){var i=qG.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function Ha(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];try{var o=e,a=t,l=a;e:for(;l!==null;){switch(l.tag){case 5:$i=l.stateNode,Ga=!1;break e;case 3:$i=l.stateNode.containerInfo,Ga=!0;break e;case 4:$i=l.stateNode.containerInfo,Ga=!0;break e}l=l.return}if($i===null)throw Error(Et(160));jM(o,a,i),$i=null,Ga=!1;var c=i.alternate;c!==null&&(c.return=null),i.return=null}catch(u){Fr(i,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)HM(t,e),t=t.sibling}function HM(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Ha(t,e),vl(e),r&4){try{Gh(3,e,e.return),Jy(3,e)}catch(E){Fr(e,e.return,E)}try{Gh(5,e,e.return)}catch(E){Fr(e,e.return,E)}}break;case 1:Ha(t,e),vl(e),r&512&&n!==null&&tf(n,n.return);break;case 5:if(Ha(t,e),vl(e),r&512&&n!==null&&tf(n,n.return),e.flags&32){var i=e.stateNode;try{bp(i,"")}catch(E){Fr(e,e.return,E)}}if(r&4&&(i=e.stateNode,i!=null)){var o=e.memoizedProps,a=n!==null?n.memoizedProps:o,l=e.type,c=e.updateQueue;if(e.updateQueue=null,c!==null)try{l==="input"&&o.type==="radio"&&o.name!=null&&cR(i,o),gC(l,a);var u=gC(l,o);for(a=0;a<c.length;a+=2){var f=c[a],p=c[a+1];f==="style"?pR(i,p):f==="dangerouslySetInnerHTML"?fR(i,p):f==="children"?bp(i,p):tx(i,f,p,u)}switch(l){case"input":dC(i,o);break;case"textarea":uR(i,o);break;case"select":var m=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!o.multiple;var g=o.value;g!=null?pf(i,!!o.multiple,g,!1):m!==!!o.multiple&&(o.defaultValue!=null?pf(i,!!o.multiple,o.defaultValue,!0):pf(i,!!o.multiple,o.multiple?[]:"",!1))}i[Ip]=o}catch(E){Fr(e,e.return,E)}}break;case 6:if(Ha(t,e),vl(e),r&4){if(e.stateNode===null)throw Error(Et(162));i=e.stateNode,o=e.memoizedProps;try{i.nodeValue=o}catch(E){Fr(e,e.return,E)}}break;case 3:if(Ha(t,e),vl(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{xp(t.containerInfo)}catch(E){Fr(e,e.return,E)}break;case 4:Ha(t,e),vl(e);break;case 13:Ha(t,e),vl(e),i=e.child,i.flags&8192&&(o=i.memoizedState!==null,i.stateNode.isHidden=o,!o||i.alternate!==null&&i.alternate.memoizedState!==null||(Mx=Wr())),r&4&&n7(e);break;case 22:if(f=n!==null&&n.memoizedState!==null,e.mode&1?(Gi=(u=Gi)||f,Ha(t,e),Gi=u):Ha(t,e),vl(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!f&&e.mode&1)for(Ht=e,f=e.child;f!==null;){for(p=Ht=f;Ht!==null;){switch(m=Ht,g=m.child,m.tag){case 0:case 11:case 14:case 15:Gh(4,m,m.return);break;case 1:tf(m,m.return);var b=m.stateNode;if(typeof b.componentWillUnmount=="function"){r=m,n=m.return;try{t=r,b.props=t.memoizedProps,b.state=t.memoizedState,b.componentWillUnmount()}catch(E){Fr(r,n,E)}}break;case 5:tf(m,m.return);break;case 22:if(m.memoizedState!==null){i7(p);continue}}g!==null?(g.return=m,Ht=g):i7(p)}f=f.sibling}e:for(f=null,p=e;;){if(p.tag===5){if(f===null){f=p;try{i=p.stateNode,u?(o=i.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none"):(l=p.stateNode,c=p.memoizedProps.style,a=c!=null&&c.hasOwnProperty("display")?c.display:null,l.style.display=hR("display",a))}catch(E){Fr(e,e.return,E)}}}else if(p.tag===6){if(f===null)try{p.stateNode.nodeValue=u?"":p.memoizedProps}catch(E){Fr(e,e.return,E)}}else if((p.tag!==22&&p.tag!==23||p.memoizedState===null||p===e)&&p.child!==null){p.child.return=p,p=p.child;continue}if(p===e)break e;for(;p.sibling===null;){if(p.return===null||p.return===e)break e;f===p&&(f=null),p=p.return}f===p&&(f=null),p.sibling.return=p.return,p=p.sibling}}break;case 19:Ha(t,e),vl(e),r&4&&n7(e);break;case 21:break;default:Ha(t,e),vl(e)}}function vl(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(BM(n)){var r=n;break e}n=n.return}throw Error(Et(160))}switch(r.tag){case 5:var i=r.stateNode;r.flags&32&&(bp(i,""),r.flags&=-33);var o=t7(e);VC(e,o,i);break;case 3:case 4:var a=r.stateNode.containerInfo,l=t7(e);KC(e,l,a);break;default:throw Error(Et(161))}}catch(c){Fr(e,e.return,c)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function jG(e,t,n){Ht=e,zM(e)}function zM(e,t,n){for(var r=(e.mode&1)!==0;Ht!==null;){var i=Ht,o=i.child;if(i.tag===22&&r){var a=i.memoizedState!==null||j0;if(!a){var l=i.alternate,c=l!==null&&l.memoizedState!==null||Gi;l=j0;var u=Gi;if(j0=a,(Gi=c)&&!u)for(Ht=i;Ht!==null;)a=Ht,c=a.child,a.tag===22&&a.memoizedState!==null?o7(i):c!==null?(c.return=a,Ht=c):o7(i);for(;o!==null;)Ht=o,zM(o),o=o.sibling;Ht=i,j0=l,Gi=u}r7(e)}else i.subtreeFlags&8772&&o!==null?(o.return=i,Ht=o):r7(e)}}function r7(e){for(;Ht!==null;){var t=Ht;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Gi||Jy(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Gi)if(n===null)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:Va(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;o!==null&&HT(t,o,r);break;case 3:var a=t.updateQueue;if(a!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}HT(t,a,n)}break;case 5:var l=t.stateNode;if(n===null&&t.flags&4){n=l;var c=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":c.autoFocus&&n.focus();break;case"img":c.src&&(n.src=c.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var f=u.memoizedState;if(f!==null){var p=f.dehydrated;p!==null&&xp(p)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(Et(163))}Gi||t.flags&512&&UC(t)}catch(m){Fr(t,t.return,m)}}if(t===e){Ht=null;break}if(n=t.sibling,n!==null){n.return=t.return,Ht=n;break}Ht=t.return}}function i7(e){for(;Ht!==null;){var t=Ht;if(t===e){Ht=null;break}var n=t.sibling;if(n!==null){n.return=t.return,Ht=n;break}Ht=t.return}}function o7(e){for(;Ht!==null;){var t=Ht;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Jy(4,t)}catch(c){Fr(t,n,c)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var i=t.return;try{r.componentDidMount()}catch(c){Fr(t,i,c)}}var o=t.return;try{UC(t)}catch(c){Fr(t,o,c)}break;case 5:var a=t.return;try{UC(t)}catch(c){Fr(t,a,c)}}}catch(c){Fr(t,t.return,c)}if(t===e){Ht=null;break}var l=t.sibling;if(l!==null){l.return=t.return,Ht=l;break}Ht=t.return}}var HG=Math.ceil,Kv=bs.ReactCurrentDispatcher,kx=bs.ReactCurrentOwner,Ea=bs.ReactCurrentBatchConfig,Ln=0,wi=null,ti=null,Ri=0,Go=0,nf=$c(0),pi=0,Mp=null,Mu=0,eb=0,Rx=0,qh=null,_o=null,Mx=0,Mf=1/0,ts=null,Vv=!1,GC=null,hc=null,H0=!1,nc=null,Gv=0,Xh=0,qC=null,Gg=-1,qg=0;function uo(){return Ln&6?Wr():Gg!==-1?Gg:Gg=Wr()}function pc(e){return e.mode&1?Ln&2&&Ri!==0?Ri&-Ri:wG.transition!==null?(qg===0&&(qg=_R()),qg):(e=Vn,e!==0||(e=window.event,e=e===void 0?16:RR(e.type)),e):1}function Ja(e,t,n,r){if(50<Xh)throw Xh=0,qC=null,Error(Et(185));gm(e,n,r),(!(Ln&2)||e!==wi)&&(e===wi&&(!(Ln&2)&&(eb|=n),pi===4&&ec(e,Ri)),Ro(e,r),n===1&&Ln===0&&!(t.mode&1)&&(Mf=Wr()+500,Yy&&Nc()))}function Ro(e,t){var n=e.callbackNode;wV(e,t);var r=Nv(e,e===wi?Ri:0);if(r===0)n!==null&&pT(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&pT(n),t===1)e.tag===0?xG(a7.bind(null,e)):ZR(a7.bind(null,e)),bG(function(){!(Ln&6)&&Nc()}),n=null;else{switch(OR(r)){case 1:n=ax;break;case 4:n=wR;break;case 16:n=$v;break;case 536870912:n=TR;break;default:n=$v}n=YM(n,WM.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function WM(e,t){if(Gg=-1,qg=0,Ln&6)throw Error(Et(327));var n=e.callbackNode;if(bf()&&e.callbackNode!==n)return null;var r=Nv(e,e===wi?Ri:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=qv(e,r);else{t=r;var i=Ln;Ln|=2;var o=KM();(wi!==e||Ri!==t)&&(ts=null,Mf=Wr()+500,xu(e,t));do try{UG();break}catch(l){UM(e,l)}while(!0);bx(),Kv.current=o,Ln=i,ti!==null?t=0:(wi=null,Ri=0,t=pi)}if(t!==0){if(t===2&&(i=SC(e),i!==0&&(r=i,t=XC(e,i))),t===1)throw n=Mp,xu(e,0),ec(e,r),Ro(e,Wr()),n;if(t===6)ec(e,r);else{if(i=e.current.alternate,!(r&30)&&!zG(i)&&(t=qv(e,r),t===2&&(o=SC(e),o!==0&&(r=o,t=XC(e,o))),t===1))throw n=Mp,xu(e,0),ec(e,r),Ro(e,Wr()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(Et(345));case 2:ou(e,_o,ts);break;case 3:if(ec(e,r),(r&130023424)===r&&(t=Mx+500-Wr(),10<t)){if(Nv(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){uo(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=$C(ou.bind(null,e,_o,ts),t);break}ou(e,_o,ts);break;case 4:if(ec(e,r),(r&4194240)===r)break;for(t=e.eventTimes,i=-1;0<r;){var a=31-Za(r);o=1<<a,a=t[a],a>i&&(i=a),r&=~o}if(r=i,r=Wr()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*HG(r/1960))-r,10<r){e.timeoutHandle=$C(ou.bind(null,e,_o,ts),r);break}ou(e,_o,ts);break;case 5:ou(e,_o,ts);break;default:throw Error(Et(329))}}}return Ro(e,Wr()),e.callbackNode===n?WM.bind(null,e):null}function XC(e,t){var n=qh;return e.current.memoizedState.isDehydrated&&(xu(e,t).flags|=256),e=qv(e,t),e!==2&&(t=_o,_o=n,t!==null&&YC(t)),e}function YC(e){_o===null?_o=e:_o.push.apply(_o,e)}function zG(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var i=n[r],o=i.getSnapshot;i=i.value;try{if(!il(o(),i))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function ec(e,t){for(t&=~Rx,t&=~eb,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Za(t),r=1<<n;e[n]=-1,t&=~r}}function a7(e){if(Ln&6)throw Error(Et(327));bf();var t=Nv(e,0);if(!(t&1))return Ro(e,Wr()),null;var n=qv(e,t);if(e.tag!==0&&n===2){var r=SC(e);r!==0&&(t=r,n=XC(e,r))}if(n===1)throw n=Mp,xu(e,0),ec(e,t),Ro(e,Wr()),n;if(n===6)throw Error(Et(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,ou(e,_o,ts),Ro(e,Wr()),null}function Px(e,t){var n=Ln;Ln|=1;try{return e(t)}finally{Ln=n,Ln===0&&(Mf=Wr()+500,Yy&&Nc())}}function Pu(e){nc!==null&&nc.tag===0&&!(Ln&6)&&bf();var t=Ln;Ln|=1;var n=Ea.transition,r=Vn;try{if(Ea.transition=null,Vn=1,e)return e()}finally{Vn=r,Ea.transition=n,Ln=t,!(Ln&6)&&Nc()}}function Lx(){Go=nf.current,mr(nf)}function xu(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,yG(n)),ti!==null)for(n=ti.return;n!==null;){var r=n;switch(gx(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Pv();break;case 3:kf(),mr(Ao),mr(Zi),Tx();break;case 5:wx(r);break;case 4:kf();break;case 13:mr(kr);break;case 19:mr(kr);break;case 10:Cx(r.type._context);break;case 22:case 23:Lx()}n=n.return}if(wi=e,ti=e=mc(e.current,null),Ri=Go=t,pi=0,Mp=null,Rx=eb=Mu=0,_o=qh=null,hu!==null){for(t=0;t<hu.length;t++)if(n=hu[t],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,o=n.pending;if(o!==null){var a=o.next;o.next=i,r.next=a}n.pending=r}hu=null}return e}function UM(e,t){do{var n=ti;try{if(bx(),Ug.current=Uv,Wv){for(var r=Rr.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}Wv=!1}if(Ru=0,Si=hi=Rr=null,Vh=!1,Ap=0,kx.current=null,n===null||n.return===null){pi=1,Mp=t,ti=null;break}e:{var o=e,a=n.return,l=n,c=t;if(t=Ri,l.flags|=32768,c!==null&&typeof c=="object"&&typeof c.then=="function"){var u=c,f=l,p=f.tag;if(!(f.mode&1)&&(p===0||p===11||p===15)){var m=f.alternate;m?(f.updateQueue=m.updateQueue,f.memoizedState=m.memoizedState,f.lanes=m.lanes):(f.updateQueue=null,f.memoizedState=null)}var g=GT(a);if(g!==null){g.flags&=-257,qT(g,a,l,o,t),g.mode&1&&VT(o,u,t),t=g,c=u;var b=t.updateQueue;if(b===null){var E=new Set;E.add(c),t.updateQueue=E}else b.add(c);break e}else{if(!(t&1)){VT(o,u,t),Dx();break e}c=Error(Et(426))}}else if(wr&&l.mode&1){var x=GT(a);if(x!==null){!(x.flags&65536)&&(x.flags|=256),qT(x,a,l,o,t),vx(Rf(c,l));break e}}o=c=Rf(c,l),pi!==4&&(pi=2),qh===null?qh=[o]:qh.push(o),o=a;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t;var C=OM(o,c,t);jT(o,C);break e;case 1:l=c;var S=o.type,T=o.stateNode;if(!(o.flags&128)&&(typeof S.getDerivedStateFromError=="function"||T!==null&&typeof T.componentDidCatch=="function"&&(hc===null||!hc.has(T)))){o.flags|=65536,t&=-t,o.lanes|=t;var O=IM(o,l,t);jT(o,O);break e}}o=o.return}while(o!==null)}GM(n)}catch(I){t=I,ti===n&&n!==null&&(ti=n=n.return);continue}break}while(!0)}function KM(){var e=Kv.current;return Kv.current=Uv,e===null?Uv:e}function Dx(){(pi===0||pi===3||pi===2)&&(pi=4),wi===null||!(Mu&268435455)&&!(eb&268435455)||ec(wi,Ri)}function qv(e,t){var n=Ln;Ln|=2;var r=KM();(wi!==e||Ri!==t)&&(ts=null,xu(e,t));do try{WG();break}catch(i){UM(e,i)}while(!0);if(bx(),Ln=n,Kv.current=r,ti!==null)throw Error(Et(261));return wi=null,Ri=0,pi}function WG(){for(;ti!==null;)VM(ti)}function UG(){for(;ti!==null&&!mV();)VM(ti)}function VM(e){var t=XM(e.alternate,e,Go);e.memoizedProps=e.pendingProps,t===null?GM(e):ti=t,kx.current=null}function GM(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=DG(n,t),n!==null){n.flags&=32767,ti=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{pi=6,ti=null;return}}else if(n=LG(n,t,Go),n!==null){ti=n;return}if(t=t.sibling,t!==null){ti=t;return}ti=t=e}while(t!==null);pi===0&&(pi=5)}function ou(e,t,n){var r=Vn,i=Ea.transition;try{Ea.transition=null,Vn=1,KG(e,t,n,r)}finally{Ea.transition=i,Vn=r}return null}function KG(e,t,n,r){do bf();while(nc!==null);if(Ln&6)throw Error(Et(327));n=e.finishedWork;var i=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(Et(177));e.callbackNode=null,e.callbackPriority=0;var o=n.lanes|n.childLanes;if(TV(e,o),e===wi&&(ti=wi=null,Ri=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||H0||(H0=!0,YM($v,function(){return bf(),null})),o=(n.flags&15990)!==0,n.subtreeFlags&15990||o){o=Ea.transition,Ea.transition=null;var a=Vn;Vn=1;var l=Ln;Ln|=4,kx.current=null,BG(e,n),HM(n,e),dG(OC),Av=!!_C,OC=_C=null,e.current=n,jG(n),gV(),Ln=l,Vn=a,Ea.transition=o}else e.current=n;if(H0&&(H0=!1,nc=e,Gv=i),o=e.pendingLanes,o===0&&(hc=null),bV(n.stateNode),Ro(e,Wr()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)i=t[n],r(i.value,{componentStack:i.stack,digest:i.digest});if(Vv)throw Vv=!1,e=GC,GC=null,e;return Gv&1&&e.tag!==0&&bf(),o=e.pendingLanes,o&1?e===qC?Xh++:(Xh=0,qC=e):Xh=0,Nc(),null}function bf(){if(nc!==null){var e=OR(Gv),t=Ea.transition,n=Vn;try{if(Ea.transition=null,Vn=16>e?16:e,nc===null)var r=!1;else{if(e=nc,nc=null,Gv=0,Ln&6)throw Error(Et(331));var i=Ln;for(Ln|=4,Ht=e.current;Ht!==null;){var o=Ht,a=o.child;if(Ht.flags&16){var l=o.deletions;if(l!==null){for(var c=0;c<l.length;c++){var u=l[c];for(Ht=u;Ht!==null;){var f=Ht;switch(f.tag){case 0:case 11:case 15:Gh(8,f,o)}var p=f.child;if(p!==null)p.return=f,Ht=p;else for(;Ht!==null;){f=Ht;var m=f.sibling,g=f.return;if(FM(f),f===u){Ht=null;break}if(m!==null){m.return=g,Ht=m;break}Ht=g}}}var b=o.alternate;if(b!==null){var E=b.child;if(E!==null){b.child=null;do{var x=E.sibling;E.sibling=null,E=x}while(E!==null)}}Ht=o}}if(o.subtreeFlags&2064&&a!==null)a.return=o,Ht=a;else e:for(;Ht!==null;){if(o=Ht,o.flags&2048)switch(o.tag){case 0:case 11:case 15:Gh(9,o,o.return)}var C=o.sibling;if(C!==null){C.return=o.return,Ht=C;break e}Ht=o.return}}var S=e.current;for(Ht=S;Ht!==null;){a=Ht;var T=a.child;if(a.subtreeFlags&2064&&T!==null)T.return=a,Ht=T;else e:for(a=S;Ht!==null;){if(l=Ht,l.flags&2048)try{switch(l.tag){case 0:case 11:case 15:Jy(9,l)}}catch(I){Fr(l,l.return,I)}if(l===a){Ht=null;break e}var O=l.sibling;if(O!==null){O.return=l.return,Ht=O;break e}Ht=l.return}}if(Ln=i,Nc(),Il&&typeof Il.onPostCommitFiberRoot=="function")try{Il.onPostCommitFiberRoot(Ky,e)}catch{}r=!0}return r}finally{Vn=n,Ea.transition=t}}return!1}function l7(e,t,n){t=Rf(n,t),t=OM(e,t,1),e=fc(e,t,1),t=uo(),e!==null&&(gm(e,1,t),Ro(e,t))}function Fr(e,t,n){if(e.tag===3)l7(e,e,n);else for(;t!==null;){if(t.tag===3){l7(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(hc===null||!hc.has(r))){e=Rf(n,e),e=IM(t,e,1),t=fc(t,e,1),e=uo(),t!==null&&(gm(t,1,e),Ro(t,e));break}}t=t.return}}function VG(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=uo(),e.pingedLanes|=e.suspendedLanes&n,wi===e&&(Ri&n)===n&&(pi===4||pi===3&&(Ri&130023424)===Ri&&500>Wr()-Mx?xu(e,0):Rx|=n),Ro(e,t)}function qM(e,t){t===0&&(e.mode&1?(t=A0,A0<<=1,!(A0&130023424)&&(A0=4194304)):t=1);var n=uo();e=hs(e,t),e!==null&&(gm(e,t,n),Ro(e,n))}function GG(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),qM(e,n)}function qG(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(Et(314))}r!==null&&r.delete(t),qM(e,n)}var XM;XM=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Ao.current)Io=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Io=!1,PG(e,t,n);Io=!!(e.flags&131072)}else Io=!1,wr&&t.flags&1048576&&JR(t,Fv,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Vg(e,t),e=t.pendingProps;var i=$f(t,Zi.current);yf(t,n),i=Ox(null,t,r,e,i,n);var o=Ix();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,ko(r)?(o=!0,Lv(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Ex(t),i.updater=Zy,t.stateNode=i,i._reactInternals=t,LC(t,r,e,n),t=BC(null,t,r,!0,o,n)):(t.tag=0,wr&&o&&mx(t),ao(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Vg(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=YG(r),e=Va(r,e),i){case 0:t=FC(null,t,r,e,n);break e;case 1:t=QT(null,t,r,e,n);break e;case 11:t=XT(null,t,r,e,n);break e;case 14:t=YT(null,t,r,Va(r.type,e),n);break e}throw Error(Et(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Va(r,i),FC(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Va(r,i),QT(e,t,r,i,n);case 3:e:{if(kM(t),e===null)throw Error(Et(387));r=t.pendingProps,o=t.memoizedState,i=o.element,oM(e,t),Hv(t,r,null,n);var a=t.memoizedState;if(r=a.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=Rf(Error(Et(423)),t),t=ZT(e,t,r,n,i);break e}else if(r!==i){i=Rf(Error(Et(424)),t),t=ZT(e,t,r,n,i);break e}else for(Xo=dc(t.stateNode.containerInfo.firstChild),ea=t,wr=!0,Ya=null,n=rM(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Nf(),r===i){t=ps(e,t,n);break e}ao(e,t,r,n)}t=t.child}return t;case 5:return aM(t),e===null&&RC(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,a=i.children,IC(r,i)?a=null:o!==null&&IC(r,o)&&(t.flags|=32),AM(e,t),ao(e,t,a,n),t.child;case 6:return e===null&&RC(t),null;case 13:return RM(e,t,n);case 4:return xx(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Af(t,null,r,n):ao(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Va(r,i),XT(e,t,r,i,n);case 7:return ao(e,t,t.pendingProps,n),t.child;case 8:return ao(e,t,t.pendingProps.children,n),t.child;case 12:return ao(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,a=i.value,sr(Bv,r._currentValue),r._currentValue=a,o!==null)if(il(o.value,a)){if(o.children===i.children&&!Ao.current){t=ps(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var l=o.dependencies;if(l!==null){a=o.child;for(var c=l.firstContext;c!==null;){if(c.context===r){if(o.tag===1){c=cs(-1,n&-n),c.tag=2;var u=o.updateQueue;if(u!==null){u=u.shared;var f=u.pending;f===null?c.next=c:(c.next=f.next,f.next=c),u.pending=c}}o.lanes|=n,c=o.alternate,c!==null&&(c.lanes|=n),MC(o.return,n,t),l.lanes|=n;break}c=c.next}}else if(o.tag===10)a=o.type===t.type?null:o.child;else if(o.tag===18){if(a=o.return,a===null)throw Error(Et(341));a.lanes|=n,l=a.alternate,l!==null&&(l.lanes|=n),MC(a,n,t),a=o.sibling}else a=o.child;if(a!==null)a.return=o;else for(a=o;a!==null;){if(a===t){a=null;break}if(o=a.sibling,o!==null){o.return=a.return,a=o;break}a=a.return}o=a}ao(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,yf(t,n),i=Ta(i),r=r(i),t.flags|=1,ao(e,t,r,n),t.child;case 14:return r=t.type,i=Va(r,t.pendingProps),i=Va(r.type,i),YT(e,t,r,i,n);case 15:return $M(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Va(r,i),Vg(e,t),t.tag=1,ko(r)?(e=!0,Lv(t)):e=!1,yf(t,n),_M(t,r,i),LC(t,r,i,n),BC(null,t,r,!0,e,n);case 19:return MM(e,t,n);case 22:return NM(e,t,n)}throw Error(Et(156,t.tag))};function YM(e,t){return xR(e,t)}function XG(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 Sa(e,t,n,r){return new XG(e,t,n,r)}function Fx(e){return e=e.prototype,!(!e||!e.isReactComponent)}function YG(e){if(typeof e=="function")return Fx(e)?1:0;if(e!=null){if(e=e.$$typeof,e===rx)return 11;if(e===ix)return 14}return 2}function mc(e,t){var n=e.alternate;return n===null?(n=Sa(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 Xg(e,t,n,r,i,o){var a=2;if(r=e,typeof e=="function")Fx(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case Vd:return wu(n.children,i,o,t);case nx:a=8,i|=8;break;case aC:return e=Sa(12,n,t,i|2),e.elementType=aC,e.lanes=o,e;case lC:return e=Sa(13,n,t,i),e.elementType=lC,e.lanes=o,e;case sC:return e=Sa(19,n,t,i),e.elementType=sC,e.lanes=o,e;case aR:return tb(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case iR:a=10;break e;case oR:a=9;break e;case rx:a=11;break e;case ix:a=14;break e;case qs:a=16,r=null;break e}throw Error(Et(130,e==null?e:typeof e,""))}return t=Sa(a,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function wu(e,t,n,r){return e=Sa(7,e,r,t),e.lanes=n,e}function tb(e,t,n,r){return e=Sa(22,e,r,t),e.elementType=aR,e.lanes=n,e.stateNode={isHidden:!1},e}function Q5(e,t,n){return e=Sa(6,e,null,t),e.lanes=n,e}function Z5(e,t,n){return t=Sa(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function QG(e,t,n,r,i){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=k5(0),this.expirationTimes=k5(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=k5(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Bx(e,t,n,r,i,o,a,l,c){return e=new QG(e,t,n,l,c),t===1?(t=1,o===!0&&(t|=8)):t=0,o=Sa(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ex(o),e}function ZG(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Kd,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function QM(e){if(!e)return Cc;e=e._reactInternals;e:{if(Wu(e)!==e||e.tag!==1)throw Error(Et(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(ko(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(Et(171))}if(e.tag===1){var n=e.type;if(ko(n))return QR(e,n,t)}return t}function ZM(e,t,n,r,i,o,a,l,c){return e=Bx(n,r,!0,e,i,o,a,l,c),e.context=QM(null),n=e.current,r=uo(),i=pc(n),o=cs(r,i),o.callback=t??null,fc(n,o,i),e.current.lanes=i,gm(e,i,r),Ro(e,r),e}function nb(e,t,n,r){var i=t.current,o=uo(),a=pc(i);return n=QM(n),t.context===null?t.context=n:t.pendingContext=n,t=cs(o,a),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=fc(i,t,a),e!==null&&(Ja(e,i,a,o),Wg(e,i,a)),a}function Xv(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function s7(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function jx(e,t){s7(e,t),(e=e.alternate)&&s7(e,t)}function JG(){return null}var JM=typeof reportError=="function"?reportError:function(e){console.error(e)};function Hx(e){this._internalRoot=e}rb.prototype.render=Hx.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(Et(409));nb(e,t,null,null)};rb.prototype.unmount=Hx.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Pu(function(){nb(null,e,null,null)}),t[fs]=null}};function rb(e){this._internalRoot=e}rb.prototype.unstable_scheduleHydration=function(e){if(e){var t=NR();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Js.length&&t!==0&&t<Js[n].priority;n++);Js.splice(n,0,e),n===0&&kR(e)}};function zx(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function ib(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function c7(){}function eq(e,t,n,r,i){if(i){if(typeof r=="function"){var o=r;r=function(){var u=Xv(a);o.call(u)}}var a=ZM(t,r,e,0,null,!1,!1,"",c7);return e._reactRootContainer=a,e[fs]=a.current,_p(e.nodeType===8?e.parentNode:e),Pu(),a}for(;i=e.lastChild;)e.removeChild(i);if(typeof r=="function"){var l=r;r=function(){var u=Xv(c);l.call(u)}}var c=Bx(e,0,!1,null,null,!1,!1,"",c7);return e._reactRootContainer=c,e[fs]=c.current,_p(e.nodeType===8?e.parentNode:e),Pu(function(){nb(t,c,n,r)}),c}function ob(e,t,n,r,i){var o=n._reactRootContainer;if(o){var a=o;if(typeof i=="function"){var l=i;i=function(){var c=Xv(a);l.call(c)}}nb(t,a,e,i)}else a=eq(n,t,e,i,r);return Xv(a)}IR=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Ah(t.pendingLanes);n!==0&&(lx(t,n|1),Ro(t,Wr()),!(Ln&6)&&(Mf=Wr()+500,Nc()))}break;case 13:Pu(function(){var r=hs(e,1);if(r!==null){var i=uo();Ja(r,e,1,i)}}),jx(e,1)}};sx=function(e){if(e.tag===13){var t=hs(e,134217728);if(t!==null){var n=uo();Ja(t,e,134217728,n)}jx(e,134217728)}};$R=function(e){if(e.tag===13){var t=pc(e),n=hs(e,t);if(n!==null){var r=uo();Ja(n,e,t,r)}jx(e,t)}};NR=function(){return Vn};AR=function(e,t){var n=Vn;try{return Vn=e,t()}finally{Vn=n}};yC=function(e,t,n){switch(t){case"input":if(dC(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=Xy(r);if(!i)throw Error(Et(90));sR(r),dC(r,i)}}}break;case"textarea":uR(e,n);break;case"select":t=n.value,t!=null&&pf(e,!!n.multiple,t,!1)}};vR=Px;yR=Pu;var tq={usingClientEntryPoint:!1,Events:[ym,Yd,Xy,mR,gR,Px]},ah={findFiberByHostInstance:fu,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},nq={bundleType:ah.bundleType,version:ah.version,rendererPackageName:ah.rendererPackageName,rendererConfig:ah.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:bs.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=SR(e),e===null?null:e.stateNode},findFiberByHostInstance:ah.findFiberByHostInstance||JG,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var z0=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!z0.isDisabled&&z0.supportsFiber)try{Ky=z0.inject(nq),Il=z0}catch{}}oa.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=tq;oa.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!zx(t))throw Error(Et(200));return ZG(e,t,null,n)};oa.createRoot=function(e,t){if(!zx(e))throw Error(Et(299));var n=!1,r="",i=JM;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=Bx(e,1,!1,null,null,n,!1,r,i),e[fs]=t.current,_p(e.nodeType===8?e.parentNode:e),new Hx(t)};oa.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(Et(188)):(e=Object.keys(e).join(","),Error(Et(268,e)));return e=SR(t),e=e===null?null:e.stateNode,e};oa.flushSync=function(e){return Pu(e)};oa.hydrate=function(e,t,n){if(!ib(t))throw Error(Et(200));return ob(null,e,t,!0,n)};oa.hydrateRoot=function(e,t,n){if(!zx(e))throw Error(Et(405));var r=n!=null&&n.hydratedSources||null,i=!1,o="",a=JM;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onRecoverableError!==void 0&&(a=n.onRecoverableError)),t=ZM(t,null,e,1,n??null,i,!1,o,a),e[fs]=t.current,_p(e),r)for(e=0;e<r.length;e++)n=r[e],i=n._getVersion,i=i(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new rb(t)};oa.render=function(e,t,n){if(!ib(t))throw Error(Et(200));return ob(null,e,t,!1,n)};oa.unmountComponentAtNode=function(e){if(!ib(e))throw Error(Et(40));return e._reactRootContainer?(Pu(function(){ob(null,null,e,!1,function(){e._reactRootContainer=null,e[fs]=null})}),!0):!1};oa.unstable_batchedUpdates=Px;oa.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!ib(n))throw Error(Et(200));if(e==null||e._reactInternals===void 0)throw Error(Et(38));return ob(e,t,n,!1,r)};oa.version="18.3.1-next-f1338f8080-20240426";function eP(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(eP)}catch(e){console.error(e)}}eP(),eR.exports=oa;var Oa=eR.exports;const Pp=ul(Oa),tP=zk({__proto__:null,default:Pp},[Oa]);var u7=Oa;iC.createRoot=u7.createRoot,iC.hydrateRoot=u7.hydrateRoot;/**
* @remix-run/router v1.21.0
*
* 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 xr(){return xr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},xr.apply(this,arguments)}var Xr;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(Xr||(Xr={}));const d7="popstate";function rq(e){e===void 0&&(e={});function t(r,i){let{pathname:o,search:a,hash:l}=r.location;return Lp("",{pathname:o,search:a,hash:l},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function n(r,i){return typeof i=="string"?i:Cm(i)}return oq(t,n,null,e)}function An(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Pf(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function iq(){return Math.random().toString(36).substr(2,8)}function f7(e,t){return{usr:e.state,key:e.key,idx:t}}function Lp(e,t,n,r){return n===void 0&&(n=null),xr({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Ac(t):t,{state:n,key:t&&t.key||r||iq()})}function Cm(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 Ac(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 oq(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:o=!1}=r,a=i.history,l=Xr.Pop,c=null,u=f();u==null&&(u=0,a.replaceState(xr({},a.state,{idx:u}),""));function f(){return(a.state||{idx:null}).idx}function p(){l=Xr.Pop;let x=f(),C=x==null?null:x-u;u=x,c&&c({action:l,location:E.location,delta:C})}function m(x,C){l=Xr.Push;let S=Lp(E.location,x,C);u=f()+1;let T=f7(S,u),O=E.createHref(S);try{a.pushState(T,"",O)}catch(I){if(I instanceof DOMException&&I.name==="DataCloneError")throw I;i.location.assign(O)}o&&c&&c({action:l,location:E.location,delta:1})}function g(x,C){l=Xr.Replace;let S=Lp(E.location,x,C);u=f();let T=f7(S,u),O=E.createHref(S);a.replaceState(T,"",O),o&&c&&c({action:l,location:E.location,delta:0})}function b(x){let C=i.location.origin!=="null"?i.location.origin:i.location.href,S=typeof x=="string"?x:Cm(x);return S=S.replace(/ $/,"%20"),An(C,"No window.location.(origin|href) available to create URL for href: "+S),new URL(S,C)}let E={get action(){return l},get location(){return e(i,a)},listen(x){if(c)throw new Error("A history only accepts one active listener");return i.addEventListener(d7,p),c=x,()=>{i.removeEventListener(d7,p),c=null}},createHref(x){return t(i,x)},createURL:b,encodeLocation(x){let C=b(x);return{pathname:C.pathname,search:C.search,hash:C.hash}},push:m,replace:g,go(x){return a.go(x)}};return E}var Jn;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Jn||(Jn={}));const aq=new Set(["lazy","caseSensitive","path","id","index","children"]);function lq(e){return e.index===!0}function Yv(e,t,n,r){return n===void 0&&(n=[]),r===void 0&&(r={}),e.map((i,o)=>{let a=[...n,String(o)],l=typeof i.id=="string"?i.id:a.join("-");if(An(i.index!==!0||!i.children,"Cannot specify children on an index route"),An(!r[l],'Found a route id collision on id "'+l+`". Route id's must be globally unique within Data Router usages`),lq(i)){let c=xr({},i,t(i),{id:l});return r[l]=c,c}else{let c=xr({},i,t(i),{id:l,children:void 0});return r[l]=c,i.children&&(c.children=Yv(i.children,t,a,r)),c}})}function su(e,t,n){return n===void 0&&(n="/"),Yg(e,t,n,!1)}function Yg(e,t,n,r){let i=typeof t=="string"?Ac(t):t,o=Sm(i.pathname||"/",n);if(o==null)return null;let a=nP(e);cq(a);let l=null;for(let c=0;l==null&&c<a.length;++c){let u=Cq(o);l=yq(a[c],u,r)}return l}function sq(e,t){let{route:n,pathname:r,params:i}=e;return{id:n.id,pathname:r,params:i,data:t[n.id],handle:n.handle}}function nP(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let i=(o,a,l)=>{let c={relativePath:l===void 0?o.path||"":l,caseSensitive:o.caseSensitive===!0,childrenIndex:a,route:o};c.relativePath.startsWith("/")&&(An(c.relativePath.startsWith(r),'Absolute route path "'+c.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),c.relativePath=c.relativePath.slice(r.length));let u=gc([r,c.relativePath]),f=n.concat(c);o.children&&o.children.length>0&&(An(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),nP(o.children,t,f,u)),!(o.path==null&&!o.index)&&t.push({path:u,score:gq(u,o.index),routesMeta:f})};return e.forEach((o,a)=>{var l;if(o.path===""||!((l=o.path)!=null&&l.includes("?")))i(o,a);else for(let c of rP(o.path))i(o,a,c)}),t}function rP(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),o=n.replace(/\?$/,"");if(r.length===0)return i?[o,""]:[o];let a=rP(r.join("/")),l=[];return l.push(...a.map(c=>c===""?o:[o,c].join("/"))),i&&l.push(...a),l.map(c=>e.startsWith("/")&&c===""?"/":c)}function cq(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:vq(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const uq=/^:[\w-]+$/,dq=3,fq=2,hq=1,pq=10,mq=-2,h7=e=>e==="*";function gq(e,t){let n=e.split("/"),r=n.length;return n.some(h7)&&(r+=mq),t&&(r+=fq),n.filter(i=>!h7(i)).reduce((i,o)=>i+(uq.test(o)?dq:o===""?hq:pq),r)}function vq(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function yq(e,t,n){n===void 0&&(n=!1);let{routesMeta:r}=e,i={},o="/",a=[];for(let l=0;l<r.length;++l){let c=r[l],u=l===r.length-1,f=o==="/"?t:t.slice(o.length)||"/",p=p7({path:c.relativePath,caseSensitive:c.caseSensitive,end:u},f),m=c.route;if(!p&&u&&n&&!r[r.length-1].route.index&&(p=p7({path:c.relativePath,caseSensitive:c.caseSensitive,end:!1},f)),!p)return null;Object.assign(i,p.params),a.push({params:i,pathname:gc([o,p.pathname]),pathnameBase:xq(gc([o,p.pathnameBase])),route:m}),p.pathnameBase!=="/"&&(o=gc([o,p.pathnameBase]))}return a}function p7(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=bq(e.path,e.caseSensitive,e.end),i=t.match(n);if(!i)return null;let o=i[0],a=o.replace(/(.)\/+$/,"$1"),l=i.slice(1);return{params:r.reduce((u,f,p)=>{let{paramName:m,isOptional:g}=f;if(m==="*"){let E=l[p]||"";a=o.slice(0,o.length-E.length).replace(/(.)\/+$/,"$1")}const b=l[p];return g&&!b?u[m]=void 0:u[m]=(b||"").replace(/%2F/g,"/"),u},{}),pathname:o,pathnameBase:a,pattern:e}}function bq(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Pf(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=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(a,l,c)=>(r.push({paramName:l,isOptional:c!=null}),c?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function Cq(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Pf(!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 Sm(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 Sq(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?Ac(e):e;return{pathname:n?n.startsWith("/")?n:Eq(n,t):t,search:wq(r),hash:Tq(i)}}function Eq(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function J5(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 <Link to="..."> and the router will parse it for you.'}function iP(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function oP(e,t){let n=iP(e);return t?n.map((r,i)=>i===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function aP(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=Ac(e):(i=xr({},e),An(!i.pathname||!i.pathname.includes("?"),J5("?","pathname","search",i)),An(!i.pathname||!i.pathname.includes("#"),J5("#","pathname","hash",i)),An(!i.search||!i.search.includes("#"),J5("#","search","hash",i)));let o=e===""||i.pathname==="",a=o?"/":i.pathname,l;if(a==null)l=n;else{let p=t.length-1;if(!r&&a.startsWith("..")){let m=a.split("/");for(;m[0]==="..";)m.shift(),p-=1;i.pathname=m.join("/")}l=p>=0?t[p]:"/"}let c=Sq(i,l),u=a&&a!=="/"&&a.endsWith("/"),f=(o||a===".")&&n.endsWith("/");return!c.pathname.endsWith("/")&&(u||f)&&(c.pathname+="/"),c}const gc=e=>e.join("/").replace(/\/\/+/g,"/"),xq=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),wq=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Tq=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class Qv{constructor(t,n,r,i){i===void 0&&(i=!1),this.status=t,this.statusText=n||"",this.internal=i,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function ab(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const lP=["post","put","patch","delete"],_q=new Set(lP),Oq=["get",...lP],Iq=new Set(Oq),$q=new Set([301,302,303,307,308]),Nq=new Set([307,308]),e4={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Aq={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},lh={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},Wx=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,kq=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),sP="remix-router-transitions";function Rq(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;An(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let i;if(e.mapRouteProperties)i=e.mapRouteProperties;else if(e.detectErrorBoundary){let fe=e.detectErrorBoundary;i=xe=>({hasErrorBoundary:fe(xe)})}else i=kq;let o={},a=Yv(e.routes,i,void 0,o),l,c=e.basename||"/",u=e.dataStrategy||Dq,f=e.patchRoutesOnNavigation,p=xr({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,v7_skipActionErrorRevalidation:!1},e.future),m=null,g=new Set,b=null,E=null,x=null,C=e.hydrationData!=null,S=su(a,e.history.location,c),T=null;if(S==null&&!f){let fe=To(404,{pathname:e.history.location.pathname}),{matches:xe,route:ge}=T7(a);S=xe,T={[ge.id]:fe}}S&&!e.hydrationData&&Mt(S,a,e.history.location.pathname).active&&(S=null);let O;if(S)if(S.some(fe=>fe.route.lazy))O=!1;else if(!S.some(fe=>fe.route.loader))O=!0;else if(p.v7_partialHydration){let fe=e.hydrationData?e.hydrationData.loaderData:null,xe=e.hydrationData?e.hydrationData.errors:null;if(xe){let ge=S.findIndex(Ne=>xe[Ne.route.id]!==void 0);O=S.slice(0,ge+1).every(Ne=>!ZC(Ne.route,fe,xe))}else O=S.every(ge=>!ZC(ge.route,fe,xe))}else O=e.hydrationData!=null;else if(O=!1,S=[],p.v7_partialHydration){let fe=Mt(null,a,e.history.location.pathname);fe.active&&fe.matches&&(S=fe.matches)}let I,_={historyAction:e.history.action,location:e.history.location,matches:S,initialized:O,navigation:e4,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||T,fetchers:new Map,blockers:new Map},$=Xr.Pop,k=!1,R,M=!1,H=new Map,B=null,L=!1,D=!1,z=[],W=new Set,j=new Map,U=0,q=-1,A=new Map,P=new Set,Z=new Map,V=new Map,Y=new Set,ee=new Map,ue=new Map,ne;function se(){if(m=e.history.listen(fe=>{let{action:xe,location:ge,delta:Ne}=fe;if(ne){ne(),ne=void 0;return}Pf(ue.size===0||Ne!=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 Xe=mt({currentLocation:_.location,nextLocation:ge,historyAction:xe});if(Xe&&Ne!=null){let nt=new Promise(pt=>{ne=pt});e.history.go(Ne*-1),Ye(Xe,{state:"blocked",location:ge,proceed(){Ye(Xe,{state:"proceeding",proceed:void 0,reset:void 0,location:ge}),nt.then(()=>e.history.go(Ne))},reset(){let pt=new Map(_.blockers);pt.set(Xe,lh),de({blockers:pt})}});return}return ve(xe,ge)}),n){Qq(t,H);let fe=()=>Zq(t,H);t.addEventListener("pagehide",fe),B=()=>t.removeEventListener("pagehide",fe)}return _.initialized||ve(Xr.Pop,_.location,{initialHydration:!0}),I}function me(){m&&m(),B&&B(),g.clear(),R&&R.abort(),_.fetchers.forEach((fe,xe)=>Ze(xe)),_.blockers.forEach((fe,xe)=>Ae(xe))}function ye(fe){return g.add(fe),()=>g.delete(fe)}function de(fe,xe){xe===void 0&&(xe={}),_=xr({},_,fe);let ge=[],Ne=[];p.v7_fetcherPersist&&_.fetchers.forEach((Xe,nt)=>{Xe.state==="idle"&&(Y.has(nt)?Ne.push(nt):ge.push(nt))}),[...g].forEach(Xe=>Xe(_,{deletedFetchers:Ne,viewTransitionOpts:xe.viewTransitionOpts,flushSync:xe.flushSync===!0})),p.v7_fetcherPersist&&(ge.forEach(Xe=>_.fetchers.delete(Xe)),Ne.forEach(Xe=>Ze(Xe)))}function ce(fe,xe,ge){var Ne,Xe;let{flushSync:nt}=ge===void 0?{}:ge,pt=_.actionData!=null&&_.navigation.formMethod!=null&&qa(_.navigation.formMethod)&&_.navigation.state==="loading"&&((Ne=fe.state)==null?void 0:Ne._isRedirect)!==!0,st;xe.actionData?Object.keys(xe.actionData).length>0?st=xe.actionData:st=null:pt?st=_.actionData:st=null;let rt=xe.loaderData?x7(_.loaderData,xe.loaderData,xe.matches||[],xe.errors):_.loaderData,He=_.blockers;He.size>0&&(He=new Map(He),He.forEach((Ct,zt)=>He.set(zt,lh)));let Ue=k===!0||_.navigation.formMethod!=null&&qa(_.navigation.formMethod)&&((Xe=fe.state)==null?void 0:Xe._isRedirect)!==!0;l&&(a=l,l=void 0),L||$===Xr.Pop||($===Xr.Push?e.history.push(fe,fe.state):$===Xr.Replace&&e.history.replace(fe,fe.state));let ft;if($===Xr.Pop){let Ct=H.get(_.location.pathname);Ct&&Ct.has(fe.pathname)?ft={currentLocation:_.location,nextLocation:fe}:H.has(fe.pathname)&&(ft={currentLocation:fe,nextLocation:_.location})}else if(M){let Ct=H.get(_.location.pathname);Ct?Ct.add(fe.pathname):(Ct=new Set([fe.pathname]),H.set(_.location.pathname,Ct)),ft={currentLocation:_.location,nextLocation:fe}}de(xr({},xe,{actionData:st,loaderData:rt,historyAction:$,location:fe,initialized:!0,navigation:e4,revalidation:"idle",restoreScrollPosition:Zt(fe,xe.matches||_.matches),preventScrollReset:Ue,blockers:He}),{viewTransitionOpts:ft,flushSync:nt===!0}),$=Xr.Pop,k=!1,M=!1,L=!1,D=!1,z=[]}async function oe(fe,xe){if(typeof fe=="number"){e.history.go(fe);return}let ge=QC(_.location,_.matches,c,p.v7_prependBasename,fe,p.v7_relativeSplatPath,xe==null?void 0:xe.fromRouteId,xe==null?void 0:xe.relative),{path:Ne,submission:Xe,error:nt}=m7(p.v7_normalizeFormMethod,!1,ge,xe),pt=_.location,st=Lp(_.location,Ne,xe&&xe.state);st=xr({},st,e.history.encodeLocation(st));let rt=xe&&xe.replace!=null?xe.replace:void 0,He=Xr.Push;rt===!0?He=Xr.Replace:rt===!1||Xe!=null&&qa(Xe.formMethod)&&Xe.formAction===_.location.pathname+_.location.search&&(He=Xr.Replace);let Ue=xe&&"preventScrollReset"in xe?xe.preventScrollReset===!0:void 0,ft=(xe&&xe.flushSync)===!0,Ct=mt({currentLocation:pt,nextLocation:st,historyAction:He});if(Ct){Ye(Ct,{state:"blocked",location:st,proceed(){Ye(Ct,{state:"proceeding",proceed:void 0,reset:void 0,location:st}),oe(fe,xe)},reset(){let zt=new Map(_.blockers);zt.set(Ct,lh),de({blockers:zt})}});return}return await ve(He,st,{submission:Xe,pendingError:nt,preventScrollReset:Ue,replace:xe&&xe.replace,enableViewTransition:xe&&xe.viewTransition,flushSync:ft})}function pe(){if(Ve(),de({revalidation:"loading"}),_.navigation.state!=="submitting"){if(_.navigation.state==="idle"){ve(_.historyAction,_.location,{startUninterruptedRevalidation:!0});return}ve($||_.historyAction,_.navigation.location,{overrideNavigation:_.navigation,enableViewTransition:M===!0})}}async function ve(fe,xe,ge){R&&R.abort(),R=null,$=fe,L=(ge&&ge.startUninterruptedRevalidation)===!0,Qt(_.location,_.matches),k=(ge&&ge.preventScrollReset)===!0,M=(ge&&ge.enableViewTransition)===!0;let Ne=l||a,Xe=ge&&ge.overrideNavigation,nt=su(Ne,xe,c),pt=(ge&&ge.flushSync)===!0,st=Mt(nt,Ne,xe.pathname);if(st.active&&st.matches&&(nt=st.matches),!nt){let{error:Tt,notFoundMatches:Pt,route:vt}=Nt(xe.pathname);ce(xe,{matches:Pt,loaderData:{},errors:{[vt.id]:Tt}},{flushSync:pt});return}if(_.initialized&&!D&&Wq(_.location,xe)&&!(ge&&ge.submission&&qa(ge.submission.formMethod))){ce(xe,{matches:nt},{flushSync:pt});return}R=new AbortController;let rt=Sd(e.history,xe,R.signal,ge&&ge.submission),He;if(ge&&ge.pendingError)He=[cu(nt).route.id,{type:Jn.error,error:ge.pendingError}];else if(ge&&ge.submission&&qa(ge.submission.formMethod)){let Tt=await Te(rt,xe,ge.submission,nt,st.active,{replace:ge.replace,flushSync:pt});if(Tt.shortCircuited)return;if(Tt.pendingActionResult){let[Pt,vt]=Tt.pendingActionResult;if(qo(vt)&&ab(vt.error)&&vt.error.status===404){R=null,ce(xe,{matches:Tt.matches,loaderData:{},errors:{[Pt]:vt.error}});return}}nt=Tt.matches||nt,He=Tt.pendingActionResult,Xe=t4(xe,ge.submission),pt=!1,st.active=!1,rt=Sd(e.history,rt.url,rt.signal)}let{shortCircuited:Ue,matches:ft,loaderData:Ct,errors:zt}=await Ge(rt,xe,nt,st.active,Xe,ge&&ge.submission,ge&&ge.fetcherSubmission,ge&&ge.replace,ge&&ge.initialHydration===!0,pt,He);Ue||(R=null,ce(xe,xr({matches:ft||nt},w7(He),{loaderData:Ct,errors:zt})))}async function Te(fe,xe,ge,Ne,Xe,nt){nt===void 0&&(nt={}),Ve();let pt=Xq(xe,ge);if(de({navigation:pt},{flushSync:nt.flushSync===!0}),Xe){let He=await St(Ne,xe.pathname,fe.signal);if(He.type==="aborted")return{shortCircuited:!0};if(He.type==="error"){let Ue=cu(He.partialMatches).route.id;return{matches:He.partialMatches,pendingActionResult:[Ue,{type:Jn.error,error:He.error}]}}else if(He.matches)Ne=He.matches;else{let{notFoundMatches:Ue,error:ft,route:Ct}=Nt(xe.pathname);return{matches:Ue,pendingActionResult:[Ct.id,{type:Jn.error,error:ft}]}}}let st,rt=Rh(Ne,xe);if(!rt.route.action&&!rt.route.lazy)st={type:Jn.error,error:To(405,{method:fe.method,pathname:xe.pathname,routeId:rt.route.id})};else if(st=(await Fe("action",_,fe,[rt],Ne,null))[rt.route.id],fe.signal.aborted)return{shortCircuited:!0};if(mu(st)){let He;return nt&&nt.replace!=null?He=nt.replace:He=C7(st.response.headers.get("Location"),new URL(fe.url),c)===_.location.pathname+_.location.search,await Le(fe,st,!0,{submission:ge,replace:He}),{shortCircuited:!0}}if(rc(st))throw To(400,{type:"defer-action"});if(qo(st)){let He=cu(Ne,rt.route.id);return(nt&&nt.replace)!==!0&&($=Xr.Push),{matches:Ne,pendingActionResult:[He.route.id,st]}}return{matches:Ne,pendingActionResult:[rt.route.id,st]}}async function Ge(fe,xe,ge,Ne,Xe,nt,pt,st,rt,He,Ue){let ft=Xe||t4(xe,nt),Ct=nt||pt||O7(ft),zt=!L&&(!p.v7_partialHydration||!rt);if(Ne){if(zt){let dt=je(Ue);de(xr({navigation:ft},dt!==void 0?{actionData:dt}:{}),{flushSync:He})}let ke=await St(ge,xe.pathname,fe.signal);if(ke.type==="aborted")return{shortCircuited:!0};if(ke.type==="error"){let dt=cu(ke.partialMatches).route.id;return{matches:ke.partialMatches,loaderData:{},errors:{[dt]:ke.error}}}else if(ke.matches)ge=ke.matches;else{let{error:dt,notFoundMatches:cn,route:$n}=Nt(xe.pathname);return{matches:cn,loaderData:{},errors:{[$n.id]:dt}}}}let Tt=l||a,[Pt,vt]=v7(e.history,_,ge,Ct,xe,p.v7_partialHydration&&rt===!0,p.v7_skipActionErrorRevalidation,D,z,W,Y,Z,P,Tt,c,Ue);if(qt(ke=>!(ge&&ge.some(dt=>dt.route.id===ke))||Pt&&Pt.some(dt=>dt.route.id===ke)),q=++U,Pt.length===0&&vt.length===0){let ke=re();return ce(xe,xr({matches:ge,loaderData:{},errors:Ue&&qo(Ue[1])?{[Ue[0]]:Ue[1].error}:null},w7(Ue),ke?{fetchers:new Map(_.fetchers)}:{}),{flushSync:He}),{shortCircuited:!0}}if(zt){let ke={};if(!Ne){ke.navigation=ft;let dt=je(Ue);dt!==void 0&&(ke.actionData=dt)}vt.length>0&&(ke.fetchers=Je(vt)),de(ke,{flushSync:He})}vt.forEach(ke=>{Be(ke.key),ke.controller&&j.set(ke.key,ke.controller)});let gt=()=>vt.forEach(ke=>Be(ke.key));R&&R.signal.addEventListener("abort",gt);let{loaderResults:tt,fetcherResults:Xt}=await Ke(_,ge,Pt,vt,fe);if(fe.signal.aborted)return{shortCircuited:!0};R&&R.signal.removeEventListener("abort",gt),vt.forEach(ke=>j.delete(ke.key));let Jt=W0(tt);if(Jt)return await Le(fe,Jt.result,!0,{replace:st}),{shortCircuited:!0};if(Jt=W0(Xt),Jt)return P.add(Jt.key),await Le(fe,Jt.result,!0,{replace:st}),{shortCircuited:!0};let{loaderData:En,errors:Wt}=E7(_,ge,tt,Ue,vt,Xt,ee);ee.forEach((ke,dt)=>{ke.subscribe(cn=>{(cn||ke.done)&&ee.delete(dt)})}),p.v7_partialHydration&&rt&&_.errors&&(Wt=xr({},_.errors,Wt));let In=re(),qn=Ie(q),vr=In||qn||vt.length>0;return xr({matches:ge,loaderData:En,errors:Wt},vr?{fetchers:new Map(_.fetchers)}:{})}function je(fe){if(fe&&!qo(fe[1]))return{[fe[0]]:fe[1].data};if(_.actionData)return Object.keys(_.actionData).length===0?null:_.actionData}function Je(fe){return fe.forEach(xe=>{let ge=_.fetchers.get(xe.key),Ne=sh(void 0,ge?ge.data:void 0);_.fetchers.set(xe.key,Ne)}),new Map(_.fetchers)}function Se(fe,xe,ge,Ne){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.");Be(fe);let Xe=(Ne&&Ne.flushSync)===!0,nt=l||a,pt=QC(_.location,_.matches,c,p.v7_prependBasename,ge,p.v7_relativeSplatPath,xe,Ne==null?void 0:Ne.relative),st=su(nt,pt,c),rt=Mt(st,nt,pt);if(rt.active&&rt.matches&&(st=rt.matches),!st){Pe(fe,xe,To(404,{pathname:pt}),{flushSync:Xe});return}let{path:He,submission:Ue,error:ft}=m7(p.v7_normalizeFormMethod,!0,pt,Ne);if(ft){Pe(fe,xe,ft,{flushSync:Xe});return}let Ct=Rh(st,He),zt=(Ne&&Ne.preventScrollReset)===!0;if(Ue&&qa(Ue.formMethod)){$e(fe,xe,He,Ct,st,rt.active,Xe,zt,Ue);return}Z.set(fe,{routeId:xe,path:He}),qe(fe,xe,He,Ct,st,rt.active,Xe,zt,Ue)}async function $e(fe,xe,ge,Ne,Xe,nt,pt,st,rt){Ve(),Z.delete(fe);function He(pn){if(!pn.route.action&&!pn.route.lazy){let yr=To(405,{method:rt.formMethod,pathname:ge,routeId:xe});return Pe(fe,xe,yr,{flushSync:pt}),!0}return!1}if(!nt&&He(Ne))return;let Ue=_.fetchers.get(fe);Ce(fe,Yq(rt,Ue),{flushSync:pt});let ft=new AbortController,Ct=Sd(e.history,ge,ft.signal,rt);if(nt){let pn=await St(Xe,ge,Ct.signal);if(pn.type==="aborted")return;if(pn.type==="error"){Pe(fe,xe,pn.error,{flushSync:pt});return}else if(pn.matches){if(Xe=pn.matches,Ne=Rh(Xe,ge),He(Ne))return}else{Pe(fe,xe,To(404,{pathname:ge}),{flushSync:pt});return}}j.set(fe,ft);let zt=U,Pt=(await Fe("action",_,Ct,[Ne],Xe,fe))[Ne.route.id];if(Ct.signal.aborted){j.get(fe)===ft&&j.delete(fe);return}if(p.v7_fetcherPersist&&Y.has(fe)){if(mu(Pt)||qo(Pt)){Ce(fe,Hs(void 0));return}}else{if(mu(Pt))if(j.delete(fe),q>zt){Ce(fe,Hs(void 0));return}else return P.add(fe),Ce(fe,sh(rt)),Le(Ct,Pt,!1,{fetcherSubmission:rt,preventScrollReset:st});if(qo(Pt)){Pe(fe,xe,Pt.error);return}}if(rc(Pt))throw To(400,{type:"defer-action"});let vt=_.navigation.location||_.location,gt=Sd(e.history,vt,ft.signal),tt=l||a,Xt=_.navigation.state!=="idle"?su(tt,_.navigation.location,c):_.matches;An(Xt,"Didn't find any matches after fetcher action");let Jt=++U;A.set(fe,Jt);let En=sh(rt,Pt.data);_.fetchers.set(fe,En);let[Wt,In]=v7(e.history,_,Xt,rt,vt,!1,p.v7_skipActionErrorRevalidation,D,z,W,Y,Z,P,tt,c,[Ne.route.id,Pt]);In.filter(pn=>pn.key!==fe).forEach(pn=>{let yr=pn.key,Ir=_.fetchers.get(yr),Bt=sh(void 0,Ir?Ir.data:void 0);_.fetchers.set(yr,Bt),Be(yr),pn.controller&&j.set(yr,pn.controller)}),de({fetchers:new Map(_.fetchers)});let qn=()=>In.forEach(pn=>Be(pn.key));ft.signal.addEventListener("abort",qn);let{loaderResults:vr,fetcherResults:ke}=await Ke(_,Xt,Wt,In,gt);if(ft.signal.aborted)return;ft.signal.removeEventListener("abort",qn),A.delete(fe),j.delete(fe),In.forEach(pn=>j.delete(pn.key));let dt=W0(vr);if(dt)return Le(gt,dt.result,!1,{preventScrollReset:st});if(dt=W0(ke),dt)return P.add(dt.key),Le(gt,dt.result,!1,{preventScrollReset:st});let{loaderData:cn,errors:$n}=E7(_,Xt,vr,void 0,In,ke,ee);if(_.fetchers.has(fe)){let pn=Hs(Pt.data);_.fetchers.set(fe,pn)}Ie(Jt),_.navigation.state==="loading"&&Jt>q?(An($,"Expected pending action"),R&&R.abort(),ce(_.navigation.location,{matches:Xt,loaderData:cn,errors:$n,fetchers:new Map(_.fetchers)})):(de({errors:$n,loaderData:x7(_.loaderData,cn,Xt,$n),fetchers:new Map(_.fetchers)}),D=!1)}async function qe(fe,xe,ge,Ne,Xe,nt,pt,st,rt){let He=_.fetchers.get(fe);Ce(fe,sh(rt,He?He.data:void 0),{flushSync:pt});let Ue=new AbortController,ft=Sd(e.history,ge,Ue.signal);if(nt){let Pt=await St(Xe,ge,ft.signal);if(Pt.type==="aborted")return;if(Pt.type==="error"){Pe(fe,xe,Pt.error,{flushSync:pt});return}else if(Pt.matches)Xe=Pt.matches,Ne=Rh(Xe,ge);else{Pe(fe,xe,To(404,{pathname:ge}),{flushSync:pt});return}}j.set(fe,Ue);let Ct=U,Tt=(await Fe("loader",_,ft,[Ne],Xe,fe))[Ne.route.id];if(rc(Tt)&&(Tt=await Ux(Tt,ft.signal,!0)||Tt),j.get(fe)===Ue&&j.delete(fe),!ft.signal.aborted){if(Y.has(fe)){Ce(fe,Hs(void 0));return}if(mu(Tt))if(q>Ct){Ce(fe,Hs(void 0));return}else{P.add(fe),await Le(ft,Tt,!1,{preventScrollReset:st});return}if(qo(Tt)){Pe(fe,xe,Tt.error);return}An(!rc(Tt),"Unhandled fetcher deferred data"),Ce(fe,Hs(Tt.data))}}async function Le(fe,xe,ge,Ne){let{submission:Xe,fetcherSubmission:nt,preventScrollReset:pt,replace:st}=Ne===void 0?{}:Ne;xe.response.headers.has("X-Remix-Revalidate")&&(D=!0);let rt=xe.response.headers.get("Location");An(rt,"Expected a Location header on the redirect Response"),rt=C7(rt,new URL(fe.url),c);let He=Lp(_.location,rt,{_isRedirect:!0});if(n){let Pt=!1;if(xe.response.headers.has("X-Remix-Reload-Document"))Pt=!0;else if(Wx.test(rt)){const vt=e.history.createURL(rt);Pt=vt.origin!==t.location.origin||Sm(vt.pathname,c)==null}if(Pt){st?t.location.replace(rt):t.location.assign(rt);return}}R=null;let Ue=st===!0||xe.response.headers.has("X-Remix-Replace")?Xr.Replace:Xr.Push,{formMethod:ft,formAction:Ct,formEncType:zt}=_.navigation;!Xe&&!nt&&ft&&Ct&&zt&&(Xe=O7(_.navigation));let Tt=Xe||nt;if(Nq.has(xe.response.status)&&Tt&&qa(Tt.formMethod))await ve(Ue,He,{submission:xr({},Tt,{formAction:rt}),preventScrollReset:pt||k,enableViewTransition:ge?M:void 0});else{let Pt=t4(He,Xe);await ve(Ue,He,{overrideNavigation:Pt,fetcherSubmission:nt,preventScrollReset:pt||k,enableViewTransition:ge?M:void 0})}}async function Fe(fe,xe,ge,Ne,Xe,nt){let pt,st={};try{pt=await Fq(u,fe,xe,ge,Ne,Xe,nt,o,i)}catch(rt){return Ne.forEach(He=>{st[He.route.id]={type:Jn.error,error:rt}}),st}for(let[rt,He]of Object.entries(pt))if(Uq(He)){let Ue=He.result;st[rt]={type:Jn.redirect,response:Hq(Ue,ge,rt,Xe,c,p.v7_relativeSplatPath)}}else st[rt]=await jq(He);return st}async function Ke(fe,xe,ge,Ne,Xe){let nt=fe.matches,pt=Fe("loader",fe,Xe,ge,xe,null),st=Promise.all(Ne.map(async Ue=>{if(Ue.matches&&Ue.match&&Ue.controller){let Ct=(await Fe("loader",fe,Sd(e.history,Ue.path,Ue.controller.signal),[Ue.match],Ue.matches,Ue.key))[Ue.match.route.id];return{[Ue.key]:Ct}}else return Promise.resolve({[Ue.key]:{type:Jn.error,error:To(404,{pathname:Ue.path})}})})),rt=await pt,He=(await st).reduce((Ue,ft)=>Object.assign(Ue,ft),{});return await Promise.all([Gq(xe,rt,Xe.signal,nt,fe.loaderData),qq(xe,He,Ne)]),{loaderResults:rt,fetcherResults:He}}function Ve(){D=!0,z.push(...qt()),Z.forEach((fe,xe)=>{j.has(xe)&&W.add(xe),Be(xe)})}function Ce(fe,xe,ge){ge===void 0&&(ge={}),_.fetchers.set(fe,xe),de({fetchers:new Map(_.fetchers)},{flushSync:(ge&&ge.flushSync)===!0})}function Pe(fe,xe,ge,Ne){Ne===void 0&&(Ne={});let Xe=cu(_.matches,xe);Ze(fe),de({errors:{[Xe.route.id]:ge},fetchers:new Map(_.fetchers)},{flushSync:(Ne&&Ne.flushSync)===!0})}function We(fe){return p.v7_fetcherPersist&&(V.set(fe,(V.get(fe)||0)+1),Y.has(fe)&&Y.delete(fe)),_.fetchers.get(fe)||Aq}function Ze(fe){let xe=_.fetchers.get(fe);j.has(fe)&&!(xe&&xe.state==="loading"&&A.has(fe))&&Be(fe),Z.delete(fe),A.delete(fe),P.delete(fe),Y.delete(fe),W.delete(fe),_.fetchers.delete(fe)}function ut(fe){if(p.v7_fetcherPersist){let xe=(V.get(fe)||0)-1;xe<=0?(V.delete(fe),Y.add(fe)):V.set(fe,xe)}else Ze(fe);de({fetchers:new Map(_.fetchers)})}function Be(fe){let xe=j.get(fe);xe&&(xe.abort(),j.delete(fe))}function ot(fe){for(let xe of fe){let ge=We(xe),Ne=Hs(ge.data);_.fetchers.set(xe,Ne)}}function re(){let fe=[],xe=!1;for(let ge of P){let Ne=_.fetchers.get(ge);An(Ne,"Expected fetcher: "+ge),Ne.state==="loading"&&(P.delete(ge),fe.push(ge),xe=!0)}return ot(fe),xe}function Ie(fe){let xe=[];for(let[ge,Ne]of A)if(Ne<fe){let Xe=_.fetchers.get(ge);An(Xe,"Expected fetcher: "+ge),Xe.state==="loading"&&(Be(ge),A.delete(ge),xe.push(ge))}return ot(xe),xe.length>0}function Re(fe,xe){let ge=_.blockers.get(fe)||lh;return ue.get(fe)!==xe&&ue.set(fe,xe),ge}function Ae(fe){_.blockers.delete(fe),ue.delete(fe)}function Ye(fe,xe){let ge=_.blockers.get(fe)||lh;An(ge.state==="unblocked"&&xe.state==="blocked"||ge.state==="blocked"&&xe.state==="blocked"||ge.state==="blocked"&&xe.state==="proceeding"||ge.state==="blocked"&&xe.state==="unblocked"||ge.state==="proceeding"&&xe.state==="unblocked","Invalid blocker state transition: "+ge.state+" -> "+xe.state);let Ne=new Map(_.blockers);Ne.set(fe,xe),de({blockers:Ne})}function mt(fe){let{currentLocation:xe,nextLocation:ge,historyAction:Ne}=fe;if(ue.size===0)return;ue.size>1&&Pf(!1,"A router only supports one blocker at a time");let Xe=Array.from(ue.entries()),[nt,pt]=Xe[Xe.length-1],st=_.blockers.get(nt);if(!(st&&st.state==="proceeding")&&pt({currentLocation:xe,nextLocation:ge,historyAction:Ne}))return nt}function Nt(fe){let xe=To(404,{pathname:fe}),ge=l||a,{matches:Ne,route:Xe}=T7(ge);return qt(),{notFoundMatches:Ne,route:Xe,error:xe}}function qt(fe){let xe=[];return ee.forEach((ge,Ne)=>{(!fe||fe(Ne))&&(ge.cancel(),xe.push(Ne),ee.delete(Ne))}),xe}function Ft(fe,xe,ge){if(b=fe,x=xe,E=ge||null,!C&&_.navigation===e4){C=!0;let Ne=Zt(_.location,_.matches);Ne!=null&&de({restoreScrollPosition:Ne})}return()=>{b=null,x=null,E=null}}function Kt(fe,xe){return E&&E(fe,xe.map(Ne=>sq(Ne,_.loaderData)))||fe.key}function Qt(fe,xe){if(b&&x){let ge=Kt(fe,xe);b[ge]=x()}}function Zt(fe,xe){if(b){let ge=Kt(fe,xe),Ne=b[ge];if(typeof Ne=="number")return Ne}return null}function Mt(fe,xe,ge){if(f)if(fe){if(Object.keys(fe[0].params).length>0)return{active:!0,matches:Yg(xe,ge,c,!0)}}else return{active:!0,matches:Yg(xe,ge,c,!0)||[]};return{active:!1,matches:null}}async function St(fe,xe,ge){if(!f)return{type:"success",matches:fe};let Ne=fe;for(;;){let Xe=l==null,nt=l||a,pt=o;try{await f({path:xe,matches:Ne,patch:(He,Ue)=>{ge.aborted||b7(He,Ue,nt,pt,i)}})}catch(He){return{type:"error",error:He,partialMatches:Ne}}finally{Xe&&!ge.aborted&&(a=[...a])}if(ge.aborted)return{type:"aborted"};let st=su(nt,xe,c);if(st)return{type:"success",matches:st};let rt=Yg(nt,xe,c,!0);if(!rt||Ne.length===rt.length&&Ne.every((He,Ue)=>He.route.id===rt[Ue].route.id))return{type:"success",matches:null};Ne=rt}}function yt(fe){o={},l=Yv(fe,i,void 0,o)}function lt(fe,xe){let ge=l==null;b7(fe,xe,l||a,o,i),ge&&(a=[...a],de({}))}return I={get basename(){return c},get future(){return p},get state(){return _},get routes(){return a},get window(){return t},initialize:se,subscribe:ye,enableScrollRestoration:Ft,navigate:oe,fetch:Se,revalidate:pe,createHref:fe=>e.history.createHref(fe),encodeLocation:fe=>e.history.encodeLocation(fe),getFetcher:We,deleteFetcher:ut,dispose:me,getBlocker:Re,deleteBlocker:Ae,patchRoutes:lt,_internalFetchControllers:j,_internalActiveDeferreds:ee,_internalSetRoutes:yt},I}function Mq(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function QC(e,t,n,r,i,o,a,l){let c,u;if(a){c=[];for(let p of t)if(c.push(p),p.route.id===a){u=p;break}}else c=t,u=t[t.length-1];let f=aP(i||".",oP(c,o),Sm(e.pathname,n)||e.pathname,l==="path");if(i==null&&(f.search=e.search,f.hash=e.hash),(i==null||i===""||i===".")&&u){let p=Kx(f.search);if(u.route.index&&!p)f.search=f.search?f.search.replace(/^\?/,"?index&"):"?index";else if(!u.route.index&&p){let m=new URLSearchParams(f.search),g=m.getAll("index");m.delete("index"),g.filter(E=>E).forEach(E=>m.append("index",E));let b=m.toString();f.search=b?"?"+b:""}}return r&&n!=="/"&&(f.pathname=f.pathname==="/"?n:gc([n,f.pathname])),Cm(f)}function m7(e,t,n,r){if(!r||!Mq(r))return{path:n};if(r.formMethod&&!Vq(r.formMethod))return{path:n,error:To(405,{method:r.formMethod})};let i=()=>({path:n,error:To(400,{type:"invalid-body"})}),o=r.formMethod||"get",a=e?o.toUpperCase():o.toLowerCase(),l=dP(n);if(r.body!==void 0){if(r.formEncType==="text/plain"){if(!qa(a))return i();let m=typeof r.body=="string"?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((g,b)=>{let[E,x]=b;return""+g+E+"="+x+`
`},""):String(r.body);return{path:n,submission:{formMethod:a,formAction:l,formEncType:r.formEncType,formData:void 0,json:void 0,text:m}}}else if(r.formEncType==="application/json"){if(!qa(a))return i();try{let m=typeof r.body=="string"?JSON.parse(r.body):r.body;return{path:n,submission:{formMethod:a,formAction:l,formEncType:r.formEncType,formData:void 0,json:m,text:void 0}}}catch{return i()}}}An(typeof FormData=="function","FormData is not available in this environment");let c,u;if(r.formData)c=JC(r.formData),u=r.formData;else if(r.body instanceof FormData)c=JC(r.body),u=r.body;else if(r.body instanceof URLSearchParams)c=r.body,u=S7(c);else if(r.body==null)c=new URLSearchParams,u=new FormData;else try{c=new URLSearchParams(r.body),u=S7(c)}catch{return i()}let f={formMethod:a,formAction:l,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:u,json:void 0,text:void 0};if(qa(f.formMethod))return{path:n,submission:f};let p=Ac(n);return t&&p.search&&Kx(p.search)&&c.append("index",""),p.search="?"+c,{path:Cm(p),submission:f}}function g7(e,t,n){n===void 0&&(n=!1);let r=e.findIndex(i=>i.route.id===t);return r>=0?e.slice(0,n?r+1:r):e}function v7(e,t,n,r,i,o,a,l,c,u,f,p,m,g,b,E){let x=E?qo(E[1])?E[1].error:E[1].data:void 0,C=e.createURL(t.location),S=e.createURL(i),T=n;o&&t.errors?T=g7(n,Object.keys(t.errors)[0],!0):E&&qo(E[1])&&(T=g7(n,E[0]));let O=E?E[1].statusCode:void 0,I=a&&O&&O>=400,_=T.filter((k,R)=>{let{route:M}=k;if(M.lazy)return!0;if(M.loader==null)return!1;if(o)return ZC(M,t.loaderData,t.errors);if(Pq(t.loaderData,t.matches[R],k)||c.some(L=>L===k.route.id))return!0;let H=t.matches[R],B=k;return y7(k,xr({currentUrl:C,currentParams:H.params,nextUrl:S,nextParams:B.params},r,{actionResult:x,actionStatus:O,defaultShouldRevalidate:I?!1:l||C.pathname+C.search===S.pathname+S.search||C.search!==S.search||cP(H,B)}))}),$=[];return p.forEach((k,R)=>{if(o||!n.some(D=>D.route.id===k.routeId)||f.has(R))return;let M=su(g,k.path,b);if(!M){$.push({key:R,routeId:k.routeId,path:k.path,matches:null,match:null,controller:null});return}let H=t.fetchers.get(R),B=Rh(M,k.path),L=!1;m.has(R)?L=!1:u.has(R)?(u.delete(R),L=!0):H&&H.state!=="idle"&&H.data===void 0?L=l:L=y7(B,xr({currentUrl:C,currentParams:t.matches[t.matches.length-1].params,nextUrl:S,nextParams:n[n.length-1].params},r,{actionResult:x,actionStatus:O,defaultShouldRevalidate:I?!1:l})),L&&$.push({key:R,routeId:k.routeId,path:k.path,matches:M,match:B,controller:new AbortController})}),[_,$]}function ZC(e,t,n){if(e.lazy)return!0;if(!e.loader)return!1;let r=t!=null&&t[e.id]!==void 0,i=n!=null&&n[e.id]!==void 0;return!r&&i?!1:typeof e.loader=="function"&&e.loader.hydrate===!0?!0:!r&&!i}function Pq(e,t,n){let r=!t||n.route.id!==t.route.id,i=e[n.route.id]===void 0;return r||i}function cP(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function y7(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}function b7(e,t,n,r,i){var o;let a;if(e){let u=r[e];An(u,"No route found to patch children into: routeId = "+e),u.children||(u.children=[]),a=u.children}else a=n;let l=t.filter(u=>!a.some(f=>uP(u,f))),c=Yv(l,i,[e||"_","patch",String(((o=a)==null?void 0:o.length)||"0")],r);a.push(...c)}function uP(e,t){return"id"in e&&"id"in t&&e.id===t.id?!0:e.index===t.index&&e.path===t.path&&e.caseSensitive===t.caseSensitive?(!e.children||e.children.length===0)&&(!t.children||t.children.length===0)?!0:e.children.every((n,r)=>{var i;return(i=t.children)==null?void 0:i.some(o=>uP(n,o))}):!1}async function Lq(e,t,n){if(!e.lazy)return;let r=await e.lazy();if(!e.lazy)return;let i=n[e.id];An(i,"No route found in manifest");let o={};for(let a in r){let c=i[a]!==void 0&&a!=="hasErrorBoundary";Pf(!c,'Route "'+i.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.')),!c&&!aq.has(a)&&(o[a]=r[a])}Object.assign(i,o),Object.assign(i,xr({},t(i),{lazy:void 0}))}async function Dq(e){let{matches:t}=e,n=t.filter(i=>i.shouldLoad);return(await Promise.all(n.map(i=>i.resolve()))).reduce((i,o,a)=>Object.assign(i,{[n[a].route.id]:o}),{})}async function Fq(e,t,n,r,i,o,a,l,c,u){let f=o.map(g=>g.route.lazy?Lq(g.route,c,l):void 0),p=o.map((g,b)=>{let E=f[b],x=i.some(S=>S.route.id===g.route.id);return xr({},g,{shouldLoad:x,resolve:async S=>(S&&r.method==="GET"&&(g.route.lazy||g.route.loader)&&(x=!0),x?Bq(t,r,g,E,S,u):Promise.resolve({type:Jn.data,result:void 0}))})}),m=await e({matches:p,request:r,params:o[0].params,fetcherKey:a,context:u});try{await Promise.all(f)}catch{}return m}async function Bq(e,t,n,r,i,o){let a,l,c=u=>{let f,p=new Promise((b,E)=>f=E);l=()=>f(),t.signal.addEventListener("abort",l);let m=b=>typeof u!="function"?Promise.reject(new Error("You cannot call the handler for a route which defines a boolean "+('"'+e+'" [routeId: '+n.route.id+"]"))):u({request:t,params:n.params,context:o},...b!==void 0?[b]:[]),g=(async()=>{try{return{type:"data",result:await(i?i(E=>m(E)):m())}}catch(b){return{type:"error",result:b}}})();return Promise.race([g,p])};try{let u=n.route[e];if(r)if(u){let f,[p]=await Promise.all([c(u).catch(m=>{f=m}),r]);if(f!==void 0)throw f;a=p}else if(await r,u=n.route[e],u)a=await c(u);else if(e==="action"){let f=new URL(t.url),p=f.pathname+f.search;throw To(405,{method:t.method,pathname:p,routeId:n.route.id})}else return{type:Jn.data,result:void 0};else if(u)a=await c(u);else{let f=new URL(t.url),p=f.pathname+f.search;throw To(404,{pathname:p})}An(a.result!==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(u){return{type:Jn.error,result:u}}finally{l&&t.signal.removeEventListener("abort",l)}return a}async function jq(e){let{result:t,type:n}=e;if(fP(t)){let u;try{let f=t.headers.get("Content-Type");f&&/\bapplication\/json\b/.test(f)?t.body==null?u=null:u=await t.json():u=await t.text()}catch(f){return{type:Jn.error,error:f}}return n===Jn.error?{type:Jn.error,error:new Qv(t.status,t.statusText,u),statusCode:t.status,headers:t.headers}:{type:Jn.data,data:u,statusCode:t.status,headers:t.headers}}if(n===Jn.error){if(_7(t)){var r;if(t.data instanceof Error){var i;return{type:Jn.error,error:t.data,statusCode:(i=t.init)==null?void 0:i.status}}t=new Qv(((r=t.init)==null?void 0:r.status)||500,void 0,t.data)}return{type:Jn.error,error:t,statusCode:ab(t)?t.status:void 0}}if(Kq(t)){var o,a;return{type:Jn.deferred,deferredData:t,statusCode:(o=t.init)==null?void 0:o.status,headers:((a=t.init)==null?void 0:a.headers)&&new Headers(t.init.headers)}}if(_7(t)){var l,c;return{type:Jn.data,data:t.data,statusCode:(l=t.init)==null?void 0:l.status,headers:(c=t.init)!=null&&c.headers?new Headers(t.init.headers):void 0}}return{type:Jn.data,data:t}}function Hq(e,t,n,r,i,o){let a=e.headers.get("Location");if(An(a,"Redirects returned/thrown from loaders/actions must have a Location header"),!Wx.test(a)){let l=r.slice(0,r.findIndex(c=>c.route.id===n)+1);a=QC(new URL(t.url),l,i,!0,a,o),e.headers.set("Location",a)}return e}function C7(e,t,n){if(Wx.test(e)){let r=e,i=r.startsWith("//")?new URL(t.protocol+r):new URL(r),o=Sm(i.pathname,n)!=null;if(i.origin===t.origin&&o)return i.pathname+i.search+i.hash}return e}function Sd(e,t,n,r){let i=e.createURL(dP(t)).toString(),o={signal:n};if(r&&qa(r.formMethod)){let{formMethod:a,formEncType:l}=r;o.method=a.toUpperCase(),l==="application/json"?(o.headers=new Headers({"Content-Type":l}),o.body=JSON.stringify(r.json)):l==="text/plain"?o.body=r.text:l==="application/x-www-form-urlencoded"&&r.formData?o.body=JC(r.formData):o.body=r.formData}return new Request(i,o)}function JC(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r=="string"?r:r.name);return t}function S7(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function zq(e,t,n,r,i){let o={},a=null,l,c=!1,u={},f=n&&qo(n[1])?n[1].error:void 0;return e.forEach(p=>{if(!(p.route.id in t))return;let m=p.route.id,g=t[m];if(An(!mu(g),"Cannot handle redirect results in processLoaderData"),qo(g)){let b=g.error;f!==void 0&&(b=f,f=void 0),a=a||{};{let E=cu(e,m);a[E.route.id]==null&&(a[E.route.id]=b)}o[m]=void 0,c||(c=!0,l=ab(g.error)?g.error.status:500),g.headers&&(u[m]=g.headers)}else rc(g)?(r.set(m,g.deferredData),o[m]=g.deferredData.data,g.statusCode!=null&&g.statusCode!==200&&!c&&(l=g.statusCode),g.headers&&(u[m]=g.headers)):(o[m]=g.data,g.statusCode&&g.statusCode!==200&&!c&&(l=g.statusCode),g.headers&&(u[m]=g.headers))}),f!==void 0&&n&&(a={[n[0]]:f},o[n[0]]=void 0),{loaderData:o,errors:a,statusCode:l||200,loaderHeaders:u}}function E7(e,t,n,r,i,o,a){let{loaderData:l,errors:c}=zq(t,n,r,a);return i.forEach(u=>{let{key:f,match:p,controller:m}=u,g=o[f];if(An(g,"Did not find corresponding fetcher result"),!(m&&m.signal.aborted))if(qo(g)){let b=cu(e.matches,p==null?void 0:p.route.id);c&&c[b.route.id]||(c=xr({},c,{[b.route.id]:g.error})),e.fetchers.delete(f)}else if(mu(g))An(!1,"Unhandled fetcher revalidation redirect");else if(rc(g))An(!1,"Unhandled fetcher deferred data");else{let b=Hs(g.data);e.fetchers.set(f,b)}}),{loaderData:l,errors:c}}function x7(e,t,n,r){let i=xr({},t);for(let o of n){let a=o.route.id;if(t.hasOwnProperty(a)?t[a]!==void 0&&(i[a]=t[a]):e[a]!==void 0&&o.route.loader&&(i[a]=e[a]),r&&r.hasOwnProperty(a))break}return i}function w7(e){return e?qo(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function cu(e,t){return(t?e.slice(0,e.findIndex(r=>r.route.id===t)+1):[...e]).reverse().find(r=>r.route.hasErrorBoundary===!0)||e[0]}function T7(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 To(e,t){let{pathname:n,routeId:r,method:i,type:o,message:a}=t===void 0?{}:t,l="Unknown Server Error",c="Unknown @remix-run/router error";return e===400?(l="Bad Request",i&&n&&r?c="You made a "+i+' request to "'+n+'" but '+('did not provide a `loader` for route "'+r+'", ')+"so there is no way to handle the request.":o==="defer-action"?c="defer() is not supported in actions":o==="invalid-body"&&(c="Unable to encode submission body")):e===403?(l="Forbidden",c='Route "'+r+'" does not match URL "'+n+'"'):e===404?(l="Not Found",c='No route matches URL "'+n+'"'):e===405&&(l="Method Not Allowed",i&&n&&r?c="You made a "+i.toUpperCase()+' request to "'+n+'" but '+('did not provide an `action` for route "'+r+'", ')+"so there is no way to handle the request.":i&&(c='Invalid request method "'+i.toUpperCase()+'"')),new Qv(e||500,l,new Error(c),!0)}function W0(e){let t=Object.entries(e);for(let n=t.length-1;n>=0;n--){let[r,i]=t[n];if(mu(i))return{key:r,result:i}}}function dP(e){let t=typeof e=="string"?Ac(e):e;return Cm(xr({},t,{hash:""}))}function Wq(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function Uq(e){return fP(e.result)&&$q.has(e.result.status)}function rc(e){return e.type===Jn.deferred}function qo(e){return e.type===Jn.error}function mu(e){return(e&&e.type)===Jn.redirect}function _7(e){return typeof e=="object"&&e!=null&&"type"in e&&"data"in e&&"init"in e&&e.type==="DataWithResponseInit"}function Kq(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 fP(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function Vq(e){return Iq.has(e.toLowerCase())}function qa(e){return _q.has(e.toLowerCase())}async function Gq(e,t,n,r,i){let o=Object.entries(t);for(let a=0;a<o.length;a++){let[l,c]=o[a],u=e.find(m=>(m==null?void 0:m.route.id)===l);if(!u)continue;let f=r.find(m=>m.route.id===u.route.id),p=f!=null&&!cP(f,u)&&(i&&i[u.route.id])!==void 0;rc(c)&&p&&await Ux(c,n,!1).then(m=>{m&&(t[l]=m)})}}async function qq(e,t,n){for(let r=0;r<n.length;r++){let{key:i,routeId:o,controller:a}=n[r],l=t[i];e.find(u=>(u==null?void 0:u.route.id)===o)&&rc(l)&&(An(a,"Expected an AbortController for revalidating fetcher deferred result"),await Ux(l,a.signal,!0).then(u=>{u&&(t[i]=u)}))}}async function Ux(e,t,n){if(n===void 0&&(n=!1),!await e.deferredData.resolveData(t)){if(n)try{return{type:Jn.data,data:e.deferredData.unwrappedData}}catch(i){return{type:Jn.error,error:i}}return{type:Jn.data,data:e.deferredData.data}}}function Kx(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function Rh(e,t){let n=typeof t=="string"?Ac(t).search:t.search;if(e[e.length-1].route.index&&Kx(n||""))return e[e.length-1];let r=iP(e);return r[r.length-1]}function O7(e){let{formMethod:t,formAction:n,formEncType:r,text:i,formData:o,json:a}=e;if(!(!t||!n||!r)){if(i!=null)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:i};if(o!=null)return{formMethod:t,formAction:n,formEncType:r,formData:o,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 t4(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 Xq(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 sh(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 Yq(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 Hs(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 Qq(e,t){try{let n=e.sessionStorage.getItem(sP);if(n){let r=JSON.parse(n);for(let[i,o]of Object.entries(r||{}))o&&Array.isArray(o)&&t.set(i,new Set(o||[]))}}catch{}}function Zq(e,t){if(t.size>0){let n={};for(let[r,i]of t)n[r]=[...i];try{e.sessionStorage.setItem(sP,JSON.stringify(n))}catch(r){Pf(!1,"Failed to save applied view transitions in sessionStorage ("+r+").")}}}/**
* React Router v6.28.0
*
* 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 Zv(){return Zv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Zv.apply(this,arguments)}const lb=d.createContext(null),hP=d.createContext(null),sb=d.createContext(null),Vx=d.createContext(null),kc=d.createContext({outlet:null,matches:[],isDataRoute:!1}),pP=d.createContext(null);function cb(){return d.useContext(Vx)!=null}function Gx(){return cb()||An(!1),d.useContext(Vx).location}function mP(e){d.useContext(sb).static||d.useLayoutEffect(e)}function Rc(){let{isDataRoute:e}=d.useContext(kc);return e?fX():Jq()}function Jq(){cb()||An(!1);let e=d.useContext(lb),{basename:t,future:n,navigator:r}=d.useContext(sb),{matches:i}=d.useContext(kc),{pathname:o}=Gx(),a=JSON.stringify(oP(i,n.v7_relativeSplatPath)),l=d.useRef(!1);return mP(()=>{l.current=!0}),d.useCallback(function(u,f){if(f===void 0&&(f={}),!l.current)return;if(typeof u=="number"){r.go(u);return}let p=aP(u,JSON.parse(a),o,f.relative==="path");e==null&&t!=="/"&&(p.pathname=p.pathname==="/"?t:gc([t,p.pathname])),(f.replace?r.replace:r.push)(p,f.state,f)},[t,r,a,o,e])}const eX=d.createContext(null);function tX(e){let t=d.useContext(kc).outlet;return t&&d.createElement(eX.Provider,{value:e},t)}function qx(){let{matches:e}=d.useContext(kc),t=e[e.length-1];return t?t.params:{}}function nX(e,t,n,r){cb()||An(!1);let{navigator:i}=d.useContext(sb),{matches:o}=d.useContext(kc),a=o[o.length-1],l=a?a.params:{};a&&a.pathname;let c=a?a.pathnameBase:"/";a&&a.route;let u=Gx(),f;f=u;let p=f.pathname||"/",m=p;if(c!=="/"){let E=c.replace(/^\//,"").split("/");m="/"+p.replace(/^\//,"").split("/").slice(E.length).join("/")}let g=su(e,{pathname:m});return lX(g&&g.map(E=>Object.assign({},E,{params:Object.assign({},l,E.params),pathname:gc([c,i.encodeLocation?i.encodeLocation(E.pathname).pathname:E.pathname]),pathnameBase:E.pathnameBase==="/"?c:gc([c,i.encodeLocation?i.encodeLocation(E.pathnameBase).pathname:E.pathnameBase])})),o,n,r)}function rX(){let e=dX(),t=ab(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return d.createElement(d.Fragment,null,d.createElement("h2",null,"Unexpected Application Error!"),d.createElement("h3",{style:{fontStyle:"italic"}},t),n?d.createElement("pre",{style:i},n):null,null)}const iX=d.createElement(rX,null);class oX extends d.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?d.createElement(kc.Provider,{value:this.props.routeContext},d.createElement(pP.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function aX(e){let{routeContext:t,match:n,children:r}=e,i=d.useContext(lb);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),d.createElement(kc.Provider,{value:t},r)}function lX(e,t,n,r){var i;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var o;if(!n)return null;if(n.errors)e=n.matches;else if((o=r)!=null&&o.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let a=e,l=(i=n)==null?void 0:i.errors;if(l!=null){let f=a.findIndex(p=>p.route.id&&(l==null?void 0:l[p.route.id])!==void 0);f>=0||An(!1),a=a.slice(0,Math.min(a.length,f+1))}let c=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let f=0;f<a.length;f++){let p=a[f];if((p.route.HydrateFallback||p.route.hydrateFallbackElement)&&(u=f),p.route.id){let{loaderData:m,errors:g}=n,b=p.route.loader&&m[p.route.id]===void 0&&(!g||g[p.route.id]===void 0);if(p.route.lazy||b){c=!0,u>=0?a=a.slice(0,u+1):a=[a[0]];break}}}return a.reduceRight((f,p,m)=>{let g,b=!1,E=null,x=null;n&&(g=l&&p.route.id?l[p.route.id]:void 0,E=p.route.errorElement||iX,c&&(u<0&&m===0?(hX("route-fallback"),b=!0,x=null):u===m&&(b=!0,x=p.route.hydrateFallbackElement||null)));let C=t.concat(a.slice(0,m+1)),S=()=>{let T;return g?T=E:b?T=x:p.route.Component?T=d.createElement(p.route.Component,null):p.route.element?T=p.route.element:T=f,d.createElement(aX,{match:p,routeContext:{outlet:f,matches:C,isDataRoute:n!=null},children:T})};return n&&(p.route.ErrorBoundary||p.route.errorElement||m===0)?d.createElement(oX,{location:n.location,revalidation:n.revalidation,component:E,error:g,children:S(),routeContext:{outlet:null,matches:C,isDataRoute:!0}}):S()},null)}var gP=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(gP||{}),Jv=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}(Jv||{});function sX(e){let t=d.useContext(lb);return t||An(!1),t}function cX(e){let t=d.useContext(hP);return t||An(!1),t}function uX(e){let t=d.useContext(kc);return t||An(!1),t}function vP(e){let t=uX(),n=t.matches[t.matches.length-1];return n.route.id||An(!1),n.route.id}function dX(){var e;let t=d.useContext(pP),n=cX(Jv.UseRouteError),r=vP(Jv.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function fX(){let{router:e}=sX(gP.UseNavigateStable),t=vP(Jv.UseNavigateStable),n=d.useRef(!1);return mP(()=>{n.current=!0}),d.useCallback(function(i,o){o===void 0&&(o={}),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,Zv({fromRouteId:t},o)))},[e,t])}const I7={};function hX(e,t,n){I7[e]||(I7[e]=!0)}const $7={};function pX(e,t){$7[t]||($7[t]=!0,console.warn(t))}const Ed=(e,t,n)=>pX(e,"⚠️ React Router Future Flag Warning: "+t+". "+("You can use the `"+e+"` future flag to opt-in early. ")+("For more information, see "+n+"."));function mX(e,t){e!=null&&e.v7_startTransition||Ed("v7_startTransition","React Router will begin wrapping state updates in `React.startTransition` in v7","https://reactrouter.com/v6/upgrading/future#v7_starttransition"),!(e!=null&&e.v7_relativeSplatPath)&&(!t||!t.v7_relativeSplatPath)&&Ed("v7_relativeSplatPath","Relative route resolution within Splat routes is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_relativesplatpath"),t&&(t.v7_fetcherPersist||Ed("v7_fetcherPersist","The persistence behavior of fetchers is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_fetcherpersist"),t.v7_normalizeFormMethod||Ed("v7_normalizeFormMethod","Casing of `formMethod` fields is being normalized to uppercase in v7","https://reactrouter.com/v6/upgrading/future#v7_normalizeformmethod"),t.v7_partialHydration||Ed("v7_partialHydration","`RouterProvider` hydration behavior is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_partialhydration"),t.v7_skipActionErrorRevalidation||Ed("v7_skipActionErrorRevalidation","The revalidation behavior after 4xx/5xx `action` responses is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_skipactionerrorrevalidation"))}function gX(e){return tX(e.context)}function vX(e){let{basename:t="/",children:n=null,location:r,navigationType:i=Xr.Pop,navigator:o,static:a=!1,future:l}=e;cb()&&An(!1);let c=t.replace(/^\/*/,"/"),u=d.useMemo(()=>({basename:c,navigator:o,static:a,future:Zv({v7_relativeSplatPath:!1},l)}),[c,l,o,a]);typeof r=="string"&&(r=Ac(r));let{pathname:f="/",search:p="",hash:m="",state:g=null,key:b="default"}=r,E=d.useMemo(()=>{let x=Sm(f,c);return x==null?null:{location:{pathname:x,search:p,hash:m,state:g,key:b},navigationType:i}},[c,f,p,m,g,b,i]);return E==null?null:d.createElement(sb.Provider,{value:u},d.createElement(Vx.Provider,{children:n,value:E}))}new Promise(()=>{});function yX(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:d.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:d.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:d.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}/**
* React Router DOM v6.28.0
*
* 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 ey(){return ey=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ey.apply(this,arguments)}const bX="6";try{window.__reactRouterVersion=bX}catch{}function CX(e,t){return Rq({basename:t==null?void 0:t.basename,future:ey({},t==null?void 0:t.future,{v7_prependBasename:!0}),history:rq({window:t==null?void 0:t.window}),hydrationData:(t==null?void 0:t.hydrationData)||SX(),routes:e,mapRouteProperties:yX,dataStrategy:t==null?void 0:t.dataStrategy,patchRoutesOnNavigation:t==null?void 0:t.patchRoutesOnNavigation,window:t==null?void 0:t.window}).initialize()}function SX(){var e;let t=(e=window)==null?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=ey({},t,{errors:EX(t.errors)})),t}function EX(e){if(!e)return null;let t=Object.entries(e),n={};for(let[r,i]of t)if(i&&i.__type==="RouteErrorResponse")n[r]=new Qv(i.status,i.statusText,i.data,i.internal===!0);else if(i&&i.__type==="Error"){if(i.__subType){let o=window[i.__subType];if(typeof o=="function")try{let a=new o(i.message);a.stack="",n[r]=a}catch{}}if(n[r]==null){let o=new Error(i.message);o.stack="",n[r]=o}}else n[r]=i;return n}const xX=d.createContext({isTransitioning:!1}),wX=d.createContext(new Map),TX="startTransition",N7=mm[TX],_X="flushSync",A7=tP[_X];function OX(e){N7?N7(e):e()}function ch(e){A7?A7(e):e()}class IX{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 $X(e){let{fallbackElement:t,router:n,future:r}=e,[i,o]=d.useState(n.state),[a,l]=d.useState(),[c,u]=d.useState({isTransitioning:!1}),[f,p]=d.useState(),[m,g]=d.useState(),[b,E]=d.useState(),x=d.useRef(new Map),{v7_startTransition:C}=r||{},S=d.useCallback(k=>{C?OX(k):k()},[C]),T=d.useCallback((k,R)=>{let{deletedFetchers:M,flushSync:H,viewTransitionOpts:B}=R;M.forEach(D=>x.current.delete(D)),k.fetchers.forEach((D,z)=>{D.data!==void 0&&x.current.set(z,D.data)});let L=n.window==null||n.window.document==null||typeof n.window.document.startViewTransition!="function";if(!B||L){H?ch(()=>o(k)):S(()=>o(k));return}if(H){ch(()=>{m&&(f&&f.resolve(),m.skipTransition()),u({isTransitioning:!0,flushSync:!0,currentLocation:B.currentLocation,nextLocation:B.nextLocation})});let D=n.window.document.startViewTransition(()=>{ch(()=>o(k))});D.finished.finally(()=>{ch(()=>{p(void 0),g(void 0),l(void 0),u({isTransitioning:!1})})}),ch(()=>g(D));return}m?(f&&f.resolve(),m.skipTransition(),E({state:k,currentLocation:B.currentLocation,nextLocation:B.nextLocation})):(l(k),u({isTransitioning:!0,flushSync:!1,currentLocation:B.currentLocation,nextLocation:B.nextLocation}))},[n.window,m,f,x,S]);d.useLayoutEffect(()=>n.subscribe(T),[n,T]),d.useEffect(()=>{c.isTransitioning&&!c.flushSync&&p(new IX)},[c]),d.useEffect(()=>{if(f&&a&&n.window){let k=a,R=f.promise,M=n.window.document.startViewTransition(async()=>{S(()=>o(k)),await R});M.finished.finally(()=>{p(void 0),g(void 0),l(void 0),u({isTransitioning:!1})}),g(M)}},[S,a,f,n.window]),d.useEffect(()=>{f&&a&&i.location.key===a.location.key&&f.resolve()},[f,m,i.location,a]),d.useEffect(()=>{!c.isTransitioning&&b&&(l(b.state),u({isTransitioning:!0,flushSync:!1,currentLocation:b.currentLocation,nextLocation:b.nextLocation}),E(void 0))},[c.isTransitioning,b]),d.useEffect(()=>{},[]);let O=d.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:k=>n.navigate(k),push:(k,R,M)=>n.navigate(k,{state:R,preventScrollReset:M==null?void 0:M.preventScrollReset}),replace:(k,R,M)=>n.navigate(k,{replace:!0,state:R,preventScrollReset:M==null?void 0:M.preventScrollReset})}),[n]),I=n.basename||"/",_=d.useMemo(()=>({router:n,navigator:O,static:!1,basename:I}),[n,O,I]),$=d.useMemo(()=>({v7_relativeSplatPath:n.future.v7_relativeSplatPath}),[n.future.v7_relativeSplatPath]);return d.useEffect(()=>mX(r,n.future),[r,n.future]),d.createElement(d.Fragment,null,d.createElement(lb.Provider,{value:_},d.createElement(hP.Provider,{value:i},d.createElement(wX.Provider,{value:x.current},d.createElement(xX.Provider,{value:c},d.createElement(vX,{basename:I,location:i.location,navigationType:i.historyAction,navigator:O,future:$},i.initialized||n.future.v7_partialHydration?d.createElement(NX,{routes:n.routes,future:n.future,state:i}):t))))),null)}const NX=d.memo(AX);function AX(e){let{routes:t,future:n,state:r}=e;return nX(t,void 0,r,n)}var k7;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(k7||(k7={}));var R7;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(R7||(R7={}));var yP={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 o="",a=0;a<arguments.length;a++){var l=arguments[a];l&&(o=i(o,r(l)))}return o}function r(o){if(typeof o=="string"||typeof o=="number")return o;if(typeof o!="object")return"";if(Array.isArray(o))return n.apply(null,o);if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]"))return o.toString();var a="";for(var l in o)t.call(o,l)&&o[l]&&(a=i(a,l));return a}function i(o,a){return a?o?o+" "+a:o+a:o}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(yP);var kX=yP.exports;const le=ul(kX);function ze(){return ze=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ze.apply(null,arguments)}var bP={exports:{}},Gn={};/**
* @license React
* react-is.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 Xx=Symbol.for("react.element"),Yx=Symbol.for("react.portal"),ub=Symbol.for("react.fragment"),db=Symbol.for("react.strict_mode"),fb=Symbol.for("react.profiler"),hb=Symbol.for("react.provider"),pb=Symbol.for("react.context"),RX=Symbol.for("react.server_context"),mb=Symbol.for("react.forward_ref"),gb=Symbol.for("react.suspense"),vb=Symbol.for("react.suspense_list"),yb=Symbol.for("react.memo"),bb=Symbol.for("react.lazy"),MX=Symbol.for("react.offscreen"),CP;CP=Symbol.for("react.module.reference");function Ra(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Xx:switch(e=e.type,e){case ub:case fb:case db:case gb:case vb:return e;default:switch(e=e&&e.$$typeof,e){case RX:case pb:case mb:case bb:case yb:case hb:return e;default:return t}}case Yx:return t}}}Gn.ContextConsumer=pb;Gn.ContextProvider=hb;Gn.Element=Xx;Gn.ForwardRef=mb;Gn.Fragment=ub;Gn.Lazy=bb;Gn.Memo=yb;Gn.Portal=Yx;Gn.Profiler=fb;Gn.StrictMode=db;Gn.Suspense=gb;Gn.SuspenseList=vb;Gn.isAsyncMode=function(){return!1};Gn.isConcurrentMode=function(){return!1};Gn.isContextConsumer=function(e){return Ra(e)===pb};Gn.isContextProvider=function(e){return Ra(e)===hb};Gn.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Xx};Gn.isForwardRef=function(e){return Ra(e)===mb};Gn.isFragment=function(e){return Ra(e)===ub};Gn.isLazy=function(e){return Ra(e)===bb};Gn.isMemo=function(e){return Ra(e)===yb};Gn.isPortal=function(e){return Ra(e)===Yx};Gn.isProfiler=function(e){return Ra(e)===fb};Gn.isStrictMode=function(e){return Ra(e)===db};Gn.isSuspense=function(e){return Ra(e)===gb};Gn.isSuspenseList=function(e){return Ra(e)===vb};Gn.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===ub||e===fb||e===db||e===gb||e===vb||e===MX||typeof e=="object"&&e!==null&&(e.$$typeof===bb||e.$$typeof===yb||e.$$typeof===hb||e.$$typeof===pb||e.$$typeof===mb||e.$$typeof===CP||e.getModuleId!==void 0)};Gn.typeOf=Ra;bP.exports=Gn;var Yh=bP.exports;function ri(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[];return be.Children.forEach(e,function(r){r==null&&!t.keepEmpty||(Array.isArray(r)?n=n.concat(ri(r)):Yh.isFragment(r)&&r.props?n=n.concat(ri(r.props.children,t)):n.push(r))}),n}var eS={},PX=function(t){};function LX(e,t){}function DX(e,t){}function FX(){eS={}}function SP(e,t,n){!t&&!eS[n]&&(e(!1,n),eS[n]=!0)}function gr(e,t){SP(LX,e,t)}function BX(e,t){SP(DX,e,t)}gr.preMessage=PX;gr.resetWarned=FX;gr.noteOnce=BX;function $t(e){"@babel/helpers - typeof";return $t=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},$t(e)}function jX(e,t){if($t(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if($t(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function EP(e){var t=jX(e,"string");return $t(t)=="symbol"?t:t+""}function J(e,t,n){return(t=EP(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function M7(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function te(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?M7(Object(n),!0).forEach(function(r){J(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):M7(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Dp(e){return e instanceof HTMLElement||e instanceof SVGElement}function Qx(e){return e&&$t(e)==="object"&&Dp(e.nativeElement)?e.nativeElement:Dp(e)?e:null}function Qh(e){var t=Qx(e);if(t)return t;if(e instanceof be.Component){var n;return(n=Pp.findDOMNode)===null||n===void 0?void 0:n.call(Pp,e)}return null}function Uu(e,t,n){var r=d.useRef({});return(!("value"in r.current)||n(r.current.condition,t))&&(r.current.value=e(),r.current.condition=t),r.current.value}var Fp=function(t,n){typeof t=="function"?t(n):$t(t)==="object"&&t&&"current"in t&&(t.current=n)},eo=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=n.filter(Boolean);return i.length<=1?i[0]:function(o){n.forEach(function(a){Fp(a,o)})}},Cs=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Uu(function(){return eo.apply(void 0,n)},n,function(i,o){return i.length!==o.length||i.every(function(a,l){return a!==o[l]})})},ol=function(t){var n,r,i=Yh.isMemo(t)?t.type.type:t.type;return!(typeof i=="function"&&!((n=i.prototype)!==null&&n!==void 0&&n.render)&&i.$$typeof!==Yh.ForwardRef||typeof t=="function"&&!((r=t.prototype)!==null&&r!==void 0&&r.render)&&t.$$typeof!==Yh.ForwardRef)};function tS(e){return d.isValidElement(e)&&!Yh.isFragment(e)}var HX=function(t){return tS(t)&&ol(t)};Number(d.version.split(".")[0])>=19;var nS=d.createContext(null);function zX(e){var t=e.children,n=e.onBatchResize,r=d.useRef(0),i=d.useRef([]),o=d.useContext(nS),a=d.useCallback(function(l,c,u){r.current+=1;var f=r.current;i.current.push({size:l,element:c,data:u}),Promise.resolve().then(function(){f===r.current&&(n==null||n(i.current),i.current=[])}),o==null||o(l,c,u)},[n,o]);return d.createElement(nS.Provider,{value:a},t)}var xP=function(){if(typeof Map<"u")return Map;function e(t,n){var r=-1;return t.some(function(i,o){return i[0]===n?(r=o,!0):!1}),r}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(n){var r=e(this.__entries__,n),i=this.__entries__[r];return i&&i[1]},t.prototype.set=function(n,r){var i=e(this.__entries__,n);~i?this.__entries__[i][1]=r:this.__entries__.push([n,r])},t.prototype.delete=function(n){var r=this.__entries__,i=e(r,n);~i&&r.splice(i,1)},t.prototype.has=function(n){return!!~e(this.__entries__,n)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(n,r){r===void 0&&(r=null);for(var i=0,o=this.__entries__;i<o.length;i++){var a=o[i];n.call(r,a[1],a[0])}},t}()}(),rS=typeof window<"u"&&typeof document<"u"&&window.document===document,ty=function(){return typeof global<"u"&&global.Math===Math?global:typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")()}(),WX=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(ty):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}}(),UX=2;function KX(e,t){var n=!1,r=!1,i=0;function o(){n&&(n=!1,e()),r&&l()}function a(){WX(o)}function l(){var c=Date.now();if(n){if(c-i<UX)return;r=!0}else n=!0,r=!1,setTimeout(a,t);i=c}return l}var VX=20,GX=["top","right","bottom","left","width","height","size","weight"],qX=typeof MutationObserver<"u",XX=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=KX(this.refresh.bind(this),VX)}return e.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},e.prototype.removeObserver=function(t){var n=this.observers_,r=n.indexOf(t);~r&&n.splice(r,1),!n.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){var t=this.updateObservers_();t&&this.refresh()},e.prototype.updateObservers_=function(){var t=this.observers_.filter(function(n){return n.gatherActive(),n.hasActive()});return t.forEach(function(n){return n.broadcastActive()}),t.length>0},e.prototype.connect_=function(){!rS||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),qX?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){!rS||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(t){var n=t.propertyName,r=n===void 0?"":n,i=GX.some(function(o){return!!~r.indexOf(o)});i&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),wP=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var i=r[n];Object.defineProperty(e,i,{value:t[i],enumerable:!1,writable:!1,configurable:!0})}return e},Lf=function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||ty},TP=Cb(0,0,0,0);function ny(e){return parseFloat(e)||0}function P7(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce(function(r,i){var o=e["border-"+i+"-width"];return r+ny(o)},0)}function YX(e){for(var t=["top","right","bottom","left"],n={},r=0,i=t;r<i.length;r++){var o=i[r],a=e["padding-"+o];n[o]=ny(a)}return n}function QX(e){var t=e.getBBox();return Cb(0,0,t.width,t.height)}function ZX(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return TP;var r=Lf(e).getComputedStyle(e),i=YX(r),o=i.left+i.right,a=i.top+i.bottom,l=ny(r.width),c=ny(r.height);if(r.boxSizing==="border-box"&&(Math.round(l+o)!==t&&(l-=P7(r,"left","right")+o),Math.round(c+a)!==n&&(c-=P7(r,"top","bottom")+a)),!eY(e)){var u=Math.round(l+o)-t,f=Math.round(c+a)-n;Math.abs(u)!==1&&(l-=u),Math.abs(f)!==1&&(c-=f)}return Cb(i.left,i.top,l,c)}var JX=function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof Lf(e).SVGGraphicsElement}:function(e){return e instanceof Lf(e).SVGElement&&typeof e.getBBox=="function"}}();function eY(e){return e===Lf(e).document.documentElement}function tY(e){return rS?JX(e)?QX(e):ZX(e):TP}function nY(e){var t=e.x,n=e.y,r=e.width,i=e.height,o=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,a=Object.create(o.prototype);return wP(a,{x:t,y:n,width:r,height:i,top:n,right:t+r,bottom:i+n,left:t}),a}function Cb(e,t,n,r){return{x:e,y:t,width:n,height:r}}var rY=function(){function e(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=Cb(0,0,0,0),this.target=t}return e.prototype.isActive=function(){var t=tY(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},e}(),iY=function(){function e(t,n){var r=nY(n);wP(this,{target:t,contentRect:r})}return e}(),oY=function(){function e(t,n,r){if(this.activeObservations_=[],this.observations_=new xP,typeof t!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=n,this.callbackCtx_=r}return e.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof Lf(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new rY(t)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof Lf(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)&&(n.delete(t),n.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(n){n.isActive()&&t.activeObservations_.push(n)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,n=this.activeObservations_.map(function(r){return new iY(r.target,r.broadcastRect())});this.callback_.call(t,n,t),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),_P=typeof WeakMap<"u"?new WeakMap:new xP,OP=function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=XX.getInstance(),r=new oY(t,n,this);_P.set(this,r)}return e}();["observe","unobserve","disconnect"].forEach(function(e){OP.prototype[e]=function(){var t;return(t=_P.get(this))[e].apply(t,arguments)}});var aY=function(){return typeof ty.ResizeObserver<"u"?ty.ResizeObserver:OP}(),ic=new Map;function lY(e){e.forEach(function(t){var n,r=t.target;(n=ic.get(r))===null||n===void 0||n.forEach(function(i){return i(r)})})}var IP=new aY(lY);function sY(e,t){ic.has(e)||(ic.set(e,new Set),IP.observe(e)),ic.get(e).add(t)}function cY(e,t){ic.has(e)&&(ic.get(e).delete(t),ic.get(e).size||(IP.unobserve(e),ic.delete(e)))}function _r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function L7(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,EP(r.key),r)}}function Or(e,t,n){return t&&L7(e.prototype,t),n&&L7(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Bp(e,t){return Bp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Bp(e,t)}function la(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Bp(e,t)}function jp(e){return jp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},jp(e)}function Zx(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Zx=function(){return!!e})()}function at(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function uY(e,t){if(t&&($t(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return at(e)}function sa(e){var t=Zx();return function(){var n,r=jp(e);if(t){var i=jp(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return uY(this,n)}}var dY=function(e){la(n,e);var t=sa(n);function n(){return _r(this,n),t.apply(this,arguments)}return Or(n,[{key:"render",value:function(){return this.props.children}}]),n}(d.Component);function fY(e,t){var n=e.children,r=e.disabled,i=d.useRef(null),o=d.useRef(null),a=d.useContext(nS),l=typeof n=="function",c=l?n(i):n,u=d.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),f=!l&&d.isValidElement(c)&&ol(c),p=f?c.ref:null,m=Cs(p,i),g=function(){var C;return Qh(i.current)||(i.current&&$t(i.current)==="object"?Qh((C=i.current)===null||C===void 0?void 0:C.nativeElement):null)||Qh(o.current)};d.useImperativeHandle(t,function(){return g()});var b=d.useRef(e);b.current=e;var E=d.useCallback(function(x){var C=b.current,S=C.onResize,T=C.data,O=x.getBoundingClientRect(),I=O.width,_=O.height,$=x.offsetWidth,k=x.offsetHeight,R=Math.floor(I),M=Math.floor(_);if(u.current.width!==R||u.current.height!==M||u.current.offsetWidth!==$||u.current.offsetHeight!==k){var H={width:R,height:M,offsetWidth:$,offsetHeight:k};u.current=H;var B=$===Math.round(I)?I:$,L=k===Math.round(_)?_:k,D=te(te({},H),{},{offsetWidth:B,offsetHeight:L});a==null||a(D,x,T),S&&Promise.resolve().then(function(){S(D,x)})}},[]);return d.useEffect(function(){var x=g();return x&&!r&&sY(x,E),function(){return cY(x,E)}},[i.current,r]),d.createElement(dY,{ref:o},f?d.cloneElement(c,{ref:m}):c)}var hY=d.forwardRef(fY),pY="rc-observer-key";function mY(e,t){var n=e.children,r=typeof n=="function"?[n]:ri(n);return r.map(function(i,o){var a=(i==null?void 0:i.key)||"".concat(pY,"-").concat(o);return d.createElement(hY,ze({},e,{key:a,ref:o===0?t:void 0}),i)})}var Yi=d.forwardRef(mY);Yi.Collection=zX;function tr(e,t){var n=Object.assign({},e);return Array.isArray(t)&&t.forEach(function(r){delete n[r]}),n}function iS(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function gY(e){if(Array.isArray(e))return iS(e)}function $P(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Jx(e,t){if(e){if(typeof e=="string")return iS(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?iS(e,t):void 0}}function vY(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Qe(e){return gY(e)||$P(e)||Jx(e)||vY()}var NP=function(t){return+setTimeout(t,16)},AP=function(t){return clearTimeout(t)};typeof window<"u"&&"requestAnimationFrame"in window&&(NP=function(t){return window.requestAnimationFrame(t)},AP=function(t){return window.cancelAnimationFrame(t)});var D7=0,e8=new Map;function kP(e){e8.delete(e)}var kn=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;D7+=1;var r=D7;function i(o){if(o===0)kP(r),t();else{var a=NP(function(){i(o-1)});e8.set(r,a)}}return i(n),r};kn.cancel=function(e){var t=e8.get(e);return kP(e),AP(t)};function RP(e){if(Array.isArray(e))return e}function yY(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,a,l=[],c=!0,u=!1;try{if(o=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(f){u=!0,i=f}finally{try{if(!c&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return l}}function MP(){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 Oe(e,t){return RP(e)||yY(e,t)||Jx(e,t)||MP()}function Hp(e){for(var t=0,n,r=0,i=e.length;i>=4;++r,i-=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(i){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 Ti(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function oS(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 F7="data-rc-order",B7="data-rc-priority",bY="rc-util-key",aS=new Map;function PP(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):bY}function Sb(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function CY(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function t8(e){return Array.from((aS.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function LP(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Ti())return null;var n=t.csp,r=t.prepend,i=t.priority,o=i===void 0?0:i,a=CY(r),l=a==="prependQueue",c=document.createElement("style");c.setAttribute(F7,a),l&&o&&c.setAttribute(B7,"".concat(o)),n!=null&&n.nonce&&(c.nonce=n==null?void 0:n.nonce),c.innerHTML=e;var u=Sb(t),f=u.firstChild;if(r){if(l){var p=(t.styles||t8(u)).filter(function(m){if(!["prepend","prependQueue"].includes(m.getAttribute(F7)))return!1;var g=Number(m.getAttribute(B7)||0);return o>=g});if(p.length)return u.insertBefore(c,p[p.length-1].nextSibling),c}u.insertBefore(c,f)}else u.appendChild(c);return c}function DP(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=Sb(t);return(t.styles||t8(n)).find(function(r){return r.getAttribute(PP(t))===e})}function zp(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=DP(e,t);if(n){var r=Sb(t);r.removeChild(n)}}function SY(e,t){var n=aS.get(e);if(!n||!oS(document,n)){var r=LP("",t),i=r.parentNode;aS.set(e,i),e.removeChild(r)}}function us(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=Sb(n),i=t8(r),o=te(te({},n),{},{styles:i});SY(r,o);var a=DP(t,o);if(a){var l,c;if((l=o.csp)!==null&&l!==void 0&&l.nonce&&a.nonce!==((c=o.csp)===null||c===void 0?void 0:c.nonce)){var u;a.nonce=(u=o.csp)===null||u===void 0?void 0:u.nonce}return a.innerHTML!==e&&(a.innerHTML=e),a}var f=LP(e,o);return f.setAttribute(PP(o),t),f}function EY(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}function Gt(e,t){if(e==null)return{};var n,r,i=EY(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Ml(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=new Set;function i(o,a){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,c=r.has(o);if(gr(!c,"Warning: There may be circular references"),c)return!1;if(o===a)return!0;if(n&&l>1)return!1;r.add(o);var u=l+1;if(Array.isArray(o)){if(!Array.isArray(a)||o.length!==a.length)return!1;for(var f=0;f<o.length;f++)if(!i(o[f],a[f],u))return!1;return!0}if(o&&a&&$t(o)==="object"&&$t(a)==="object"){var p=Object.keys(o);return p.length!==Object.keys(a).length?!1:p.every(function(m){return i(o[m],a[m],u)})}return!1}return i(e,t)}var xY="%";function lS(e){return e.join(xY)}var wY=function(){function e(t){_r(this,e),J(this,"instanceId",void 0),J(this,"cache",new Map),this.instanceId=t}return Or(e,[{key:"get",value:function(n){return this.opGet(lS(n))}},{key:"opGet",value:function(n){return this.cache.get(n)||null}},{key:"update",value:function(n,r){return this.opUpdate(lS(n),r)}},{key:"opUpdate",value:function(n,r){var i=this.cache.get(n),o=r(i);o===null?this.cache.delete(n):this.cache.set(n,o)}}]),e}(),Df="data-token-hash",el="data-css-hash",oc="__cssinjs_instance__";function TY(){var e=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(el,"]"))||[],n=document.head.firstChild;Array.from(t).forEach(function(i){i[oc]=i[oc]||e,i[oc]===e&&document.head.insertBefore(i,n)});var r={};Array.from(document.querySelectorAll("style[".concat(el,"]"))).forEach(function(i){var o=i.getAttribute(el);if(r[o]){if(i[oc]===e){var a;(a=i.parentNode)===null||a===void 0||a.removeChild(i)}}else r[o]=!0})}return new wY(e)}var Eb=d.createContext({hashPriority:"low",cache:TY(),defaultCache:!0});function _Y(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}var n8=function(){function e(){_r(this,e),J(this,"cache",void 0),J(this,"keys",void 0),J(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return Or(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(n){var r,i,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,a={map:this.cache};return n.forEach(function(l){if(!a)a=void 0;else{var c;a=(c=a)===null||c===void 0||(c=c.map)===null||c===void 0?void 0:c.get(l)}}),(r=a)!==null&&r!==void 0&&r.value&&o&&(a.value[1]=this.cacheCallTimes++),(i=a)===null||i===void 0?void 0:i.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 i=this;if(!this.has(n)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var o=this.keys.reduce(function(u,f){var p=Oe(u,2),m=p[1];return i.internalGet(f)[1]<m?[f,i.internalGet(f)[1]]:u},[this.keys[0],this.cacheCallTimes]),a=Oe(o,1),l=a[0];this.delete(l)}this.keys.push(n)}var c=this.cache;n.forEach(function(u,f){if(f===n.length-1)c.set(u,{value:[r,i.cacheCallTimes++]});else{var p=c.get(u);p?p.map||(p.map=new Map):c.set(u,{map:new Map}),c=c.get(u).map}})}},{key:"deleteByPath",value:function(n,r){var i=n.get(r[0]);if(r.length===1){var o;return i.map?n.set(r[0],{map:i.map}):n.delete(r[0]),(o=i.value)===null||o===void 0?void 0:o[0]}var a=this.deleteByPath(i.map,r.slice(1));return(!i.map||i.map.size===0)&&!i.value&&n.delete(r[0]),a}},{key:"delete",value:function(n){if(this.has(n))return this.keys=this.keys.filter(function(r){return!_Y(r,n)}),this.deleteByPath(this.cache,n)}}]),e}();J(n8,"MAX_CACHE_SIZE",20);J(n8,"MAX_CACHE_OFFSET",5);var j7=0,FP=function(){function e(t){_r(this,e),J(this,"derivatives",void 0),J(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=j7,t.length===0&&(t.length>0,void 0),j7+=1}return Or(e,[{key:"getDerivativeToken",value:function(n){return this.derivatives.reduce(function(r,i){return i(n,r)},void 0)}}]),e}(),n4=new n8;function sS(e){var t=Array.isArray(e)?e:[e];return n4.has(t)||n4.set(t,new FP(t)),n4.get(t)}var OY=new WeakMap,r4={};function IY(e,t){for(var n=OY,r=0;r<t.length;r+=1){var i=t[r];n.has(i)||n.set(i,new WeakMap),n=n.get(i)}return n.has(r4)||n.set(r4,e()),n.get(r4)}var H7=new WeakMap;function Zh(e){var t=H7.get(e)||"";return t||(Object.keys(e).forEach(function(n){var r=e[n];t+=n,r instanceof FP?t+=r.id:r&&$t(r)==="object"?t+=Zh(r):t+=r}),t=Hp(t),H7.set(e,t)),t}function z7(e,t){return Hp("".concat(t,"_").concat(Zh(e)))}var cS=Ti();function ie(e){return typeof e=="number"?"".concat(e,"px"):e}function ry(e,t,n){var r,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(o)return e;var a=te(te({},i),{},(r={},J(r,Df,t),J(r,el,n),r)),l=Object.keys(a).map(function(c){var u=a[c];return u?"".concat(c,'="').concat(u,'"'):null}).filter(function(c){return c}).join(" ");return"<style ".concat(l,">").concat(e,"</style>")}var Qg=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()},$Y=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(i){var o=Oe(i,2),a=o[0],l=o[1];return"".concat(a,":").concat(l,";")}).join(""),"}"):""},BP=function(t,n,r){var i={},o={};return Object.entries(t).forEach(function(a){var l,c,u=Oe(a,2),f=u[0],p=u[1];if(r!=null&&(l=r.preserve)!==null&&l!==void 0&&l[f])o[f]=p;else if((typeof p=="string"||typeof p=="number")&&!(r!=null&&(c=r.ignore)!==null&&c!==void 0&&c[f])){var m,g=Qg(f,r==null?void 0:r.prefix);i[g]=typeof p=="number"&&!(r!=null&&(m=r.unitless)!==null&&m!==void 0&&m[f])?"".concat(p,"px"):String(p),o[f]="var(".concat(g,")")}}),[o,$Y(i,n,{scope:r==null?void 0:r.scope})]},W7=Ti()?d.useLayoutEffect:d.useEffect,bn=function(t,n){var r=d.useRef(!0);W7(function(){return t(r.current)},n),W7(function(){return r.current=!1,function(){r.current=!0}},[])},uS=function(t,n){bn(function(r){if(!r)return t()},n)},NY=te({},mm),U7=NY.useInsertionEffect,AY=function(t,n,r){d.useMemo(t,r),bn(function(){return n(!0)},r)},kY=U7?function(e,t,n){return U7(function(){return e(),t()},n)}:AY,RY=te({},mm),MY=RY.useInsertionEffect,PY=function(t){var n=[],r=!1;function i(o){r||n.push(o)}return d.useEffect(function(){return r=!1,function(){r=!0,n.length&&n.forEach(function(o){return o()})}},t),i},LY=function(){return function(t){t()}},DY=typeof MY<"u"?PY:LY;function r8(e,t,n,r,i){var o=d.useContext(Eb),a=o.cache,l=[e].concat(Qe(t)),c=lS(l),u=DY([c]),f=function(b){a.opUpdate(c,function(E){var x=E||[void 0,void 0],C=Oe(x,2),S=C[0],T=S===void 0?0:S,O=C[1],I=O,_=I||n(),$=[T,_];return b?b($):$})};d.useMemo(function(){f()},[c]);var p=a.opGet(c),m=p[1];return kY(function(){i==null||i(m)},function(g){return f(function(b){var E=Oe(b,2),x=E[0],C=E[1];return g&&x===0&&(i==null||i(m)),[x+1,C]}),function(){a.opUpdate(c,function(b){var E=b||[],x=Oe(E,2),C=x[0],S=C===void 0?0:C,T=x[1],O=S-1;return O===0?(u(function(){(g||!a.opGet(c))&&(r==null||r(T,!1))}),null):[S-1,T]})}},[c]),m}var FY={},BY="css",uu=new Map;function jY(e){uu.set(e,(uu.get(e)||0)+1)}function HY(e,t){if(typeof document<"u"){var n=document.querySelectorAll("style[".concat(Df,'="').concat(e,'"]'));n.forEach(function(r){if(r[oc]===t){var i;(i=r.parentNode)===null||i===void 0||i.removeChild(r)}})}}var zY=0;function WY(e,t){uu.set(e,(uu.get(e)||0)-1);var n=Array.from(uu.keys()),r=n.filter(function(i){var o=uu.get(i)||0;return o<=0});n.length-r.length>zY&&r.forEach(function(i){HY(i,t),uu.delete(i)})}var UY=function(t,n,r,i){var o=r.getDerivativeToken(t),a=te(te({},o),n);return i&&(a=i(a)),a},jP="token";function KY(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=d.useContext(Eb),i=r.cache.instanceId,o=r.container,a=n.salt,l=a===void 0?"":a,c=n.override,u=c===void 0?FY:c,f=n.formatToken,p=n.getComputedToken,m=n.cssVar,g=IY(function(){return Object.assign.apply(Object,[{}].concat(Qe(t)))},t),b=Zh(g),E=Zh(u),x=m?Zh(m):"",C=r8(jP,[l,e.id,b,E,x],function(){var S,T=p?p(g,u,e):UY(g,u,e,f),O=te({},T),I="";if(m){var _=BP(T,m.key,{prefix:m.prefix,ignore:m.ignore,unitless:m.unitless,preserve:m.preserve}),$=Oe(_,2);T=$[0],I=$[1]}var k=z7(T,l);T._tokenKey=k,O._tokenKey=z7(O,l);var R=(S=m==null?void 0:m.key)!==null&&S!==void 0?S:k;T._themeKey=R,jY(R);var M="".concat(BY,"-").concat(Hp(k));return T._hashId=M,[T,M,O,I,(m==null?void 0:m.key)||""]},function(S){WY(S[0]._themeKey,i)},function(S){var T=Oe(S,4),O=T[0],I=T[3];if(m&&I){var _=us(I,Hp("css-variables-".concat(O._themeKey)),{mark:el,prepend:"queue",attachTo:o,priority:-999});_[oc]=i,_.setAttribute(Df,O._themeKey)}});return C}var VY=function(t,n,r){var i=Oe(t,5),o=i[2],a=i[3],l=i[4],c=r||{},u=c.plain;if(!a)return null;var f=o._tokenKey,p=-999,m={"data-rc-order":"prependQueue","data-rc-priority":"".concat(p)},g=ry(a,l,f,m,u);return[p,f,g]},GY={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},HP="comm",zP="rule",WP="decl",qY="@import",XY="@keyframes",YY="@layer",UP=Math.abs,i8=String.fromCharCode;function KP(e){return e.trim()}function Zg(e,t,n){return e.replace(t,n)}function QY(e,t,n){return e.indexOf(t,n)}function Wp(e,t){return e.charCodeAt(t)|0}function Ff(e,t,n){return e.slice(t,n)}function El(e){return e.length}function ZY(e){return e.length}function U0(e,t){return t.push(e),e}var xb=1,Bf=1,VP=0,Ia=0,Zr=0,l1="";function o8(e,t,n,r,i,o,a,l){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:xb,column:Bf,length:a,return:"",siblings:l}}function JY(){return Zr}function eQ(){return Zr=Ia>0?Wp(l1,--Ia):0,Bf--,Zr===10&&(Bf=1,xb--),Zr}function tl(){return Zr=Ia<VP?Wp(l1,Ia++):0,Bf++,Zr===10&&(Bf=1,xb++),Zr}function ac(){return Wp(l1,Ia)}function Jg(){return Ia}function wb(e,t){return Ff(l1,e,t)}function Up(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function tQ(e){return xb=Bf=1,VP=El(l1=e),Ia=0,[]}function nQ(e){return l1="",e}function i4(e){return KP(wb(Ia-1,dS(e===91?e+2:e===40?e+1:e)))}function rQ(e){for(;(Zr=ac())&&Zr<33;)tl();return Up(e)>2||Up(Zr)>3?"":" "}function iQ(e,t){for(;--t&&tl()&&!(Zr<48||Zr>102||Zr>57&&Zr<65||Zr>70&&Zr<97););return wb(e,Jg()+(t<6&&ac()==32&&tl()==32))}function dS(e){for(;tl();)switch(Zr){case e:return Ia;case 34:case 39:e!==34&&e!==39&&dS(Zr);break;case 40:e===41&&dS(e);break;case 92:tl();break}return Ia}function oQ(e,t){for(;tl()&&e+Zr!==57;)if(e+Zr===84&&ac()===47)break;return"/*"+wb(t,Ia-1)+"*"+i8(e===47?e:tl())}function aQ(e){for(;!Up(ac());)tl();return wb(e,Ia)}function lQ(e){return nQ(ev("",null,null,null,[""],e=tQ(e),0,[0],e))}function ev(e,t,n,r,i,o,a,l,c){for(var u=0,f=0,p=a,m=0,g=0,b=0,E=1,x=1,C=1,S=0,T="",O=i,I=o,_=r,$=T;x;)switch(b=S,S=tl()){case 40:if(b!=108&&Wp($,p-1)==58){QY($+=Zg(i4(S),"&","&\f"),"&\f",UP(u?l[u-1]:0))!=-1&&(C=-1);break}case 34:case 39:case 91:$+=i4(S);break;case 9:case 10:case 13:case 32:$+=rQ(b);break;case 92:$+=iQ(Jg()-1,7);continue;case 47:switch(ac()){case 42:case 47:U0(sQ(oQ(tl(),Jg()),t,n,c),c),(Up(b||1)==5||Up(ac()||1)==5)&&El($)&&Ff($,-1,void 0)!==" "&&($+=" ");break;default:$+="/"}break;case 123*E:l[u++]=El($)*C;case 125*E:case 59:case 0:switch(S){case 0:case 125:x=0;case 59+f:C==-1&&($=Zg($,/\f/g,"")),g>0&&(El($)-p||E===0&&b===47)&&U0(g>32?V7($+";",r,n,p-1,c):V7(Zg($," ","")+";",r,n,p-2,c),c);break;case 59:$+=";";default:if(U0(_=K7($,t,n,u,f,i,l,T,O=[],I=[],p,o),o),S===123)if(f===0)ev($,t,_,_,O,o,p,l,I);else switch(m===99&&Wp($,3)===110?100:m){case 100:case 108:case 109:case 115:ev(e,_,_,r&&U0(K7(e,_,_,0,0,i,l,T,i,O=[],p,I),I),i,I,p,l,r?O:I);break;default:ev($,_,_,_,[""],I,0,l,I)}}u=f=g=0,E=C=1,T=$="",p=a;break;case 58:p=1+El($),g=b;default:if(E<1){if(S==123)--E;else if(S==125&&E++==0&&eQ()==125)continue}switch($+=i8(S),S*E){case 38:C=f>0?1:($+="\f",-1);break;case 44:l[u++]=(El($)-1)*C,C=1;break;case 64:ac()===45&&($+=i4(tl())),m=ac(),f=p=El(T=$+=aQ(Jg())),S++;break;case 45:b===45&&El($)==2&&(E=0)}}return o}function K7(e,t,n,r,i,o,a,l,c,u,f,p){for(var m=i-1,g=i===0?o:[""],b=ZY(g),E=0,x=0,C=0;E<r;++E)for(var S=0,T=Ff(e,m+1,m=UP(x=a[E])),O=e;S<b;++S)(O=KP(x>0?g[S]+" "+T:Zg(T,/&\f/g,g[S])))&&(c[C++]=O);return o8(e,t,n,i===0?zP:l,c,u,f,p)}function sQ(e,t,n,r){return o8(e,t,n,HP,i8(JY()),Ff(e,2,-2),0,r)}function V7(e,t,n,r,i){return o8(e,t,n,WP,Ff(e,0,r),Ff(e,r+1,-1),r,i)}function fS(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function cQ(e,t,n,r){switch(e.type){case YY:if(e.children.length)break;case qY:case WP:return e.return=e.return||e.value;case HP:return"";case XY:return e.return=e.value+"{"+fS(e.children,r)+"}";case zP:if(!El(e.value=e.props.join(",")))return""}return El(n=fS(e.children,r))?e.return=e.value+"{"+n+"}":""}var G7="data-ant-cssinjs-cache-path",GP="_FILE_STYLE__",Tu,qP=!0;function uQ(){if(!Tu&&(Tu={},Ti())){var e=document.createElement("div");e.className=G7,e.style.position="fixed",e.style.visibility="hidden",e.style.top="-9999px",document.body.appendChild(e);var t=getComputedStyle(e).content||"";t=t.replace(/^"/,"").replace(/"$/,""),t.split(";").forEach(function(i){var o=i.split(":"),a=Oe(o,2),l=a[0],c=a[1];Tu[l]=c});var n=document.querySelector("style[".concat(G7,"]"));if(n){var r;qP=!1,(r=n.parentNode)===null||r===void 0||r.removeChild(n)}document.body.removeChild(e)}}function dQ(e){return uQ(),!!Tu[e]}function fQ(e){var t=Tu[e],n=null;if(t&&Ti())if(qP)n=GP;else{var r=document.querySelector("style[".concat(el,'="').concat(Tu[e],'"]'));r?n=r.innerHTML:delete Tu[e]}return[n,t]}var hQ="_skip_check_",XP="_multi_value_";function tv(e){var t=fS(lQ(e),cQ);return t.replace(/\{%%%\:[^;];}/g,";")}function pQ(e){return $t(e)==="object"&&e&&(hQ in e||XP in e)}function q7(e,t,n){if(!t)return e;var r=".".concat(t),i=n==="low"?":where(".concat(r,")"):r,o=e.split(",").map(function(a){var l,c=a.trim().split(/\s+/),u=c[0]||"",f=((l=u.match(/^\w+/))===null||l===void 0?void 0:l[0])||"";return u="".concat(f).concat(i).concat(u.slice(f.length)),[u].concat(Qe(c.slice(1))).join(" ")});return o.join(",")}var mQ=function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]},i=r.root,o=r.injectHash,a=r.parentSelectors,l=n.hashId,c=n.layer;n.path;var u=n.hashPriority,f=n.transformers,p=f===void 0?[]:f;n.linters;var m="",g={};function b(C){var S=C.getName(l);if(!g[S]){var T=e(C.style,n,{root:!1,parentSelectors:a}),O=Oe(T,1),I=O[0];g[S]="@keyframes ".concat(C.getName(l)).concat(I)}}function E(C){var S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return C.forEach(function(T){Array.isArray(T)?E(T,S):T&&S.push(T)}),S}var x=E(Array.isArray(t)?t:[t]);return x.forEach(function(C){var S=typeof C=="string"&&!i?{}:C;if(typeof S=="string")m+="".concat(S,`
`);else if(S._keyframe)b(S);else{var T=p.reduce(function(O,I){var _;return(I==null||(_=I.visit)===null||_===void 0?void 0:_.call(I,O))||O},S);Object.keys(T).forEach(function(O){var I=T[O];if($t(I)==="object"&&I&&(O!=="animationName"||!I._keyframe)&&!pQ(I)){var _=!1,$=O.trim(),k=!1;(i||o)&&l?$.startsWith("@")?_=!0:$==="&"?$=q7("",l,u):$=q7(O,l,u):i&&!l&&($==="&"||$==="")&&($="",k=!0);var R=e(I,n,{root:k,injectHash:_,parentSelectors:[].concat(Qe(a),[$])}),M=Oe(R,2),H=M[0],B=M[1];g=te(te({},g),B),m+="".concat($).concat(H)}else{let z=function(W,j){var U=W.replace(/[A-Z]/g,function(A){return"-".concat(A.toLowerCase())}),q=j;!GY[W]&&typeof q=="number"&&q!==0&&(q="".concat(q,"px")),W==="animationName"&&j!==null&&j!==void 0&&j._keyframe&&(b(j),q=j.getName(l)),m+="".concat(U,":").concat(q,";")};var L,D=(L=I==null?void 0:I.value)!==null&&L!==void 0?L:I;$t(I)==="object"&&I!==null&&I!==void 0&&I[XP]&&Array.isArray(D)?D.forEach(function(W){z(O,W)}):z(O,D)}})}}),i?c&&(m="@layer ".concat(c.name," {").concat(m,"}"),c.dependencies&&(g["@layer ".concat(c.name)]=c.dependencies.map(function(C){return"@layer ".concat(C,", ").concat(c.name,";")}).join(`
`))):m="{".concat(m,"}"),[m,g]};function YP(e,t){return Hp("".concat(e.join("%")).concat(t))}function gQ(){return null}var QP="style";function hS(e,t){var n=e.token,r=e.path,i=e.hashId,o=e.layer,a=e.nonce,l=e.clientOnly,c=e.order,u=c===void 0?0:c,f=d.useContext(Eb),p=f.autoClear;f.mock;var m=f.defaultCache,g=f.hashPriority,b=f.container,E=f.ssrInline,x=f.transformers,C=f.linters,S=f.cache,T=f.layer,O=n._tokenKey,I=[O];T&&I.push("layer"),I.push.apply(I,Qe(r));var _=cS,$=r8(QP,I,function(){var B=I.join("|");if(dQ(B)){var L=fQ(B),D=Oe(L,2),z=D[0],W=D[1];if(z)return[z,O,W,{},l,u]}var j=t(),U=mQ(j,{hashId:i,hashPriority:g,layer:T?o:void 0,path:r.join("-"),transformers:x,linters:C}),q=Oe(U,2),A=q[0],P=q[1],Z=tv(A),V=YP(I,Z);return[Z,O,V,P,l,u]},function(B,L){var D=Oe(B,3),z=D[2];(L||p)&&cS&&zp(z,{mark:el})},function(B){var L=Oe(B,4),D=L[0];L[1];var z=L[2],W=L[3];if(_&&D!==GP){var j={mark:el,prepend:T?!1:"queue",attachTo:b,priority:u},U=typeof a=="function"?a():a;U&&(j.csp={nonce:U});var q=[],A=[];Object.keys(W).forEach(function(Z){Z.startsWith("@layer")?q.push(Z):A.push(Z)}),q.forEach(function(Z){us(tv(W[Z]),"_layer-".concat(Z),te(te({},j),{},{prepend:!0}))});var P=us(D,z,j);P[oc]=S.instanceId,P.setAttribute(Df,O),A.forEach(function(Z){us(tv(W[Z]),"_effect-".concat(Z),j)})}}),k=Oe($,3),R=k[0],M=k[1],H=k[2];return function(B){var L;if(!E||_||!m)L=d.createElement(gQ,null);else{var D;L=d.createElement("style",ze({},(D={},J(D,Df,M),J(D,el,H),D),{dangerouslySetInnerHTML:{__html:R}}))}return d.createElement(d.Fragment,null,L,B)}}var vQ=function(t,n,r){var i=Oe(t,6),o=i[0],a=i[1],l=i[2],c=i[3],u=i[4],f=i[5],p=r||{},m=p.plain;if(u)return null;var g=o,b={"data-rc-order":"prependQueue","data-rc-priority":"".concat(f)};return g=ry(o,a,l,b,m),c&&Object.keys(c).forEach(function(E){if(!n[E]){n[E]=!0;var x=tv(c[E]),C=ry(x,a,"_effect-".concat(E),b,m);E.startsWith("@layer")?g=C+g:g+=C}}),[f,l,g]},ZP="cssVar",yQ=function(t,n){var r=t.key,i=t.prefix,o=t.unitless,a=t.ignore,l=t.token,c=t.scope,u=c===void 0?"":c,f=d.useContext(Eb),p=f.cache.instanceId,m=f.container,g=l._tokenKey,b=[].concat(Qe(t.path),[r,u,g]),E=r8(ZP,b,function(){var x=n(),C=BP(x,r,{prefix:i,unitless:o,ignore:a,scope:u}),S=Oe(C,2),T=S[0],O=S[1],I=YP(b,O);return[T,O,I,r]},function(x){var C=Oe(x,3),S=C[2];cS&&zp(S,{mark:el})},function(x){var C=Oe(x,3),S=C[1],T=C[2];if(S){var O=us(S,T,{mark:el,prepend:"queue",attachTo:m,priority:-999});O[oc]=p,O.setAttribute(Df,r)}});return E},bQ=function(t,n,r){var i=Oe(t,4),o=i[1],a=i[2],l=i[3],c=r||{},u=c.plain;if(!o)return null;var f=-999,p={"data-rc-order":"prependQueue","data-rc-priority":"".concat(f)},m=ry(o,l,a,p,u);return[f,a,m]},uh;uh={},J(uh,QP,vQ),J(uh,jP,VY),J(uh,ZP,bQ);var Sn=function(){function e(t,n){_r(this,e),J(this,"name",void 0),J(this,"style",void 0),J(this,"_keyframe",!0),this.name=t,this.style=n}return Or(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 xd(e){return e.notSplit=!0,e}xd(["borderTop","borderBottom"]),xd(["borderTop"]),xd(["borderBottom"]),xd(["borderLeft","borderRight"]),xd(["borderLeft"]),xd(["borderRight"]);var a8=d.createContext({});function JP(e){return RP(e)||$P(e)||Jx(e)||MP()}function co(e,t){for(var n=e,r=0;r<t.length;r+=1){if(n==null)return;n=n[t[r]]}return n}function eL(e,t,n,r){if(!t.length)return n;var i=JP(t),o=i[0],a=i.slice(1),l;return!e&&typeof o=="number"?l=[]:Array.isArray(e)?l=Qe(e):l=te({},e),r&&n===void 0&&a.length===1?delete l[o][a[0]]:l[o]=eL(l[o],a,n,r),l}function va(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&r&&n===void 0&&!co(e,t.slice(0,-1))?e:eL(e,t,n,r)}function CQ(e){return $t(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function X7(e){return Array.isArray(e)?[]:{}}var SQ=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function rf(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=X7(t[0]);return t.forEach(function(i){function o(a,l){var c=new Set(l),u=co(i,a),f=Array.isArray(u);if(f||CQ(u)){if(!c.has(u)){c.add(u);var p=co(r,a);f?r=va(r,a,[]):(!p||$t(p)!=="object")&&(r=va(r,a,X7(u))),SQ(u).forEach(function(m){o([].concat(Qe(a),[m]),c)})}}else r=va(r,a,u)}o([])}),r}function EQ(){}const xQ=d.createContext({}),Mc=()=>{const e=()=>{};return e.deprecated=EQ,e},tL=d.createContext(void 0);var nL={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"},wQ={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0},TQ=te(te({},wQ),{},{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",dateFormat:"M/D/YYYY",dateTimeFormat:"M/D/YYYY HH:mm:ss",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 rL={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},Y7={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"]},TQ),timePickerLocale:Object.assign({},rL)},jo="${label} is not a valid ${type}",Pl={locale:"en",Pagination:nL,DatePicker:Y7,TimePicker:rL,Calendar:Y7,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",deselectAll:"Deselect 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",collapse:"Collapse"},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:jo,method:jo,array:jo,object:jo,number:jo,date:jo,boolean:jo,integer:jo,float:jo,regexp:jo,email:jo,url:jo,hex:jo},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",scanned:"Scanned"},ColorPicker:{presetEmpty:"Empty",transparent:"Transparent",singleColor:"Single",gradientColor:"Gradient"}};let nv=Object.assign({},Pl.Modal),rv=[];const Q7=()=>rv.reduce((e,t)=>Object.assign(Object.assign({},e),t),Pl.Modal);function _Q(e){if(e){const t=Object.assign({},e);return rv.push(t),nv=Q7(),()=>{rv=rv.filter(n=>n!==t),nv=Q7()}}nv=Object.assign({},Pl.Modal)}function iL(){return nv}const l8=d.createContext(void 0),Dl=(e,t)=>{const n=d.useContext(l8),r=d.useMemo(()=>{var o;const a=t||Pl[e],l=(o=n==null?void 0:n[e])!==null&&o!==void 0?o:{};return Object.assign(Object.assign({},typeof a=="function"?a():a),l||{})},[e,t,n]),i=d.useMemo(()=>{const o=n==null?void 0:n.locale;return n!=null&&n.exist&&!o?Pl.locale:o},[n]);return[r,i]},OQ="internalMark",IQ=e=>{const{locale:t={},children:n,_ANT_MARK__:r}=e;d.useEffect(()=>_Q(t==null?void 0:t.Modal),[t]);const i=d.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return d.createElement(l8.Provider,{value:i},n)};function Mi(e,t){$Q(e)&&(e="100%");var n=NQ(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 K0(e){return Math.min(1,Math.max(0,e))}function $Q(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function NQ(e){return typeof e=="string"&&e.indexOf("%")!==-1}function oL(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function V0(e){return e<=1?"".concat(Number(e)*100,"%"):e}function gu(e){return e.length===1?"0"+e:String(e)}function AQ(e,t,n){return{r:Mi(e,255)*255,g:Mi(t,255)*255,b:Mi(n,255)*255}}function Z7(e,t,n){e=Mi(e,255),t=Mi(t,255),n=Mi(n,255);var r=Math.max(e,t,n),i=Math.min(e,t,n),o=0,a=0,l=(r+i)/2;if(r===i)a=0,o=0;else{var c=r-i;switch(a=l>.5?c/(2-r-i):c/(r+i),r){case e:o=(t-n)/c+(t<n?6:0);break;case t:o=(n-e)/c+2;break;case n:o=(e-t)/c+4;break}o/=6}return{h:o,s:a,l}}function o4(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 kQ(e,t,n){var r,i,o;if(e=Mi(e,360),t=Mi(t,100),n=Mi(n,100),t===0)i=n,o=n,r=n;else{var a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;r=o4(l,a,e+1/3),i=o4(l,a,e),o=o4(l,a,e-1/3)}return{r:r*255,g:i*255,b:o*255}}function pS(e,t,n){e=Mi(e,255),t=Mi(t,255),n=Mi(n,255);var r=Math.max(e,t,n),i=Math.min(e,t,n),o=0,a=r,l=r-i,c=r===0?0:l/r;if(r===i)o=0;else{switch(r){case e:o=(t-n)/l+(t<n?6:0);break;case t:o=(n-e)/l+2;break;case n:o=(e-t)/l+4;break}o/=6}return{h:o,s:c,v:a}}function RQ(e,t,n){e=Mi(e,360)*6,t=Mi(t,100),n=Mi(n,100);var r=Math.floor(e),i=e-r,o=n*(1-t),a=n*(1-i*t),l=n*(1-(1-i)*t),c=r%6,u=[n,a,o,o,l,n][c],f=[l,n,n,a,o,o][c],p=[o,o,l,n,n,a][c];return{r:u*255,g:f*255,b:p*255}}function mS(e,t,n,r){var i=[gu(Math.round(e).toString(16)),gu(Math.round(t).toString(16)),gu(Math.round(n).toString(16))];return r&&i[0].startsWith(i[0].charAt(1))&&i[1].startsWith(i[1].charAt(1))&&i[2].startsWith(i[2].charAt(1))?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0):i.join("")}function MQ(e,t,n,r,i){var o=[gu(Math.round(e).toString(16)),gu(Math.round(t).toString(16)),gu(Math.round(n).toString(16)),gu(PQ(r))];return i&&o[0].startsWith(o[0].charAt(1))&&o[1].startsWith(o[1].charAt(1))&&o[2].startsWith(o[2].charAt(1))&&o[3].startsWith(o[3].charAt(1))?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0)+o[3].charAt(0):o.join("")}function PQ(e){return Math.round(parseFloat(e)*255).toString(16)}function J7(e){return Uo(e)/255}function Uo(e){return parseInt(e,16)}function LQ(e){return{r:e>>16,g:(e&65280)>>8,b:e&255}}var gS={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 Bd(e){var t={r:0,g:0,b:0},n=1,r=null,i=null,o=null,a=!1,l=!1;return typeof e=="string"&&(e=BQ(e)),typeof e=="object"&&(Gl(e.r)&&Gl(e.g)&&Gl(e.b)?(t=AQ(e.r,e.g,e.b),a=!0,l=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Gl(e.h)&&Gl(e.s)&&Gl(e.v)?(r=V0(e.s),i=V0(e.v),t=RQ(e.h,r,i),a=!0,l="hsv"):Gl(e.h)&&Gl(e.s)&&Gl(e.l)&&(r=V0(e.s),o=V0(e.l),t=kQ(e.h,r,o),a=!0,l="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=oL(n),{ok:a,format:e.format||l,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 DQ="[-\\+]?\\d+%?",FQ="[-\\+]?\\d*\\.\\d+%?",lc="(?:".concat(FQ,")|(?:").concat(DQ,")"),a4="[\\s|\\(]+(".concat(lc,")[,|\\s]+(").concat(lc,")[,|\\s]+(").concat(lc,")\\s*\\)?"),l4="[\\s|\\(]+(".concat(lc,")[,|\\s]+(").concat(lc,")[,|\\s]+(").concat(lc,")[,|\\s]+(").concat(lc,")\\s*\\)?"),Wa={CSS_UNIT:new RegExp(lc),rgb:new RegExp("rgb"+a4),rgba:new RegExp("rgba"+l4),hsl:new RegExp("hsl"+a4),hsla:new RegExp("hsla"+l4),hsv:new RegExp("hsv"+a4),hsva:new RegExp("hsva"+l4),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 BQ(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(gS[e])e=gS[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=Wa.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=Wa.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=Wa.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=Wa.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=Wa.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=Wa.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=Wa.hex8.exec(e),n?{r:Uo(n[1]),g:Uo(n[2]),b:Uo(n[3]),a:J7(n[4]),format:t?"name":"hex8"}:(n=Wa.hex6.exec(e),n?{r:Uo(n[1]),g:Uo(n[2]),b:Uo(n[3]),format:t?"name":"hex"}:(n=Wa.hex4.exec(e),n?{r:Uo(n[1]+n[1]),g:Uo(n[2]+n[2]),b:Uo(n[3]+n[3]),a:J7(n[4]+n[4]),format:t?"name":"hex8"}:(n=Wa.hex3.exec(e),n?{r:Uo(n[1]+n[1]),g:Uo(n[2]+n[2]),b:Uo(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function Gl(e){return!!Wa.CSS_UNIT.exec(String(e))}var er=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=LQ(t)),this.originalInput=t;var i=Bd(t);this.originalInput=t,this.r=i.r,this.g=i.g,this.b=i.b,this.a=i.a,this.roundA=Math.round(100*this.a)/100,this.format=(r=n.format)!==null&&r!==void 0?r:i.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=i.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,i,o=t.r/255,a=t.g/255,l=t.b/255;return o<=.03928?n=o/12.92:n=Math.pow((o+.055)/1.055,2.4),a<=.03928?r=a/12.92:r=Math.pow((a+.055)/1.055,2.4),l<=.03928?i=l/12.92:i=Math.pow((l+.055)/1.055,2.4),.2126*n+.7152*r+.0722*i},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=oL(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=pS(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=pS(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),i=Math.round(t.v*100);return this.a===1?"hsv(".concat(n,", ").concat(r,"%, ").concat(i,"%)"):"hsva(".concat(n,", ").concat(r,"%, ").concat(i,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=Z7(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=Z7(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),i=Math.round(t.l*100);return this.a===1?"hsl(".concat(n,", ").concat(r,"%, ").concat(i,"%)"):"hsla(".concat(n,", ").concat(r,"%, ").concat(i,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),mS(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),MQ(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(Mi(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(Mi(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="#"+mS(this.r,this.g,this.b,!1),n=0,r=Object.entries(gS);n<r.length;n++){var i=r[n],o=i[0],a=i[1];if(t===a)return o}return!1},e.prototype.toString=function(t){var n=!!t;t=t??this.format;var r=!1,i=this.a<1&&this.a>=0,o=!n&&i&&(t.startsWith("hex")||t==="name");return o?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=K0(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=K0(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=K0(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=K0(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(),i=new e(t).toRgb(),o=n/100,a={r:(i.r-r.r)*o+r.r,g:(i.g-r.g)*o+r.g,b:(i.b-r.b)*o+r.b,a:(i.a-r.a)*o+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(),i=360/n,o=[this];for(r.h=(r.h-(i*t>>1)+720)%360;--t;)r.h=(r.h+i)%360,o.push(new e(r));return o},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,i=n.s,o=n.v,a=[],l=1/t;t--;)a.push(new e({h:r,s:i,v:o})),o=(o+l)%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(),i=n.a+r.a*(1-n.a);return new e({r:(n.r*n.a+r.r*r.a*(1-n.a))/i,g:(n.g*n.a+r.g*r.a*(1-n.a))/i,b:(n.b*n.a+r.b*r.a*(1-n.a))/i,a:i})},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,i=[this],o=360/t,a=1;a<t;a++)i.push(new e({h:(r+a*o)%360,s:n.s,l:n.l}));return i},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e}(),G0=2,e_=.16,jQ=.05,HQ=.05,zQ=.15,aL=5,lL=4,WQ=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function t_(e){var t=e.r,n=e.g,r=e.b,i=pS(t,n,r);return{h:i.h*360,s:i.s,v:i.v}}function q0(e){var t=e.r,n=e.g,r=e.b;return"#".concat(mS(t,n,r,!1))}function UQ(e,t,n){var r=n/100,i={r:(t.r-e.r)*r+e.r,g:(t.g-e.g)*r+e.g,b:(t.b-e.b)*r+e.b};return i}function n_(e,t,n){var r;return Math.round(e.h)>=60&&Math.round(e.h)<=240?r=n?Math.round(e.h)-G0*t:Math.round(e.h)+G0*t:r=n?Math.round(e.h)+G0*t:Math.round(e.h)-G0*t,r<0?r+=360:r>=360&&(r-=360),r}function r_(e,t,n){if(e.h===0&&e.s===0)return e.s;var r;return n?r=e.s-e_*t:t===lL?r=e.s+e_:r=e.s+jQ*t,r>1&&(r=1),n&&t===aL&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2))}function i_(e,t,n){var r;return n?r=e.v+HQ*t:r=e.v-zQ*t,r>1&&(r=1),Number(r.toFixed(2))}function Kp(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=Bd(e),i=aL;i>0;i-=1){var o=t_(r),a=q0(Bd({h:n_(o,i,!0),s:r_(o,i,!0),v:i_(o,i,!0)}));n.push(a)}n.push(q0(r));for(var l=1;l<=lL;l+=1){var c=t_(r),u=q0(Bd({h:n_(c,l),s:r_(c,l),v:i_(c,l)}));n.push(u)}return t.theme==="dark"?WQ.map(function(f){var p=f.index,m=f.opacity,g=q0(UQ(Bd(t.backgroundColor||"#141414"),Bd(n[p]),m*100));return g}):n}var Cf={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"},vS=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];vS.primary=vS[5];var yS=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];yS.primary=yS[5];var bS=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];bS.primary=bS[5];var iy=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];iy.primary=iy[5];var CS=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];CS.primary=CS[5];var SS=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];SS.primary=SS[5];var ES=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];ES.primary=ES[5];var xS=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];xS.primary=xS[5];var jf=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];jf.primary=jf[5];var wS=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];wS.primary=wS[5];var TS=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];TS.primary=TS[5];var _S=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];_S.primary=_S[5];var OS=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];OS.primary=OS[5];var s4={red:vS,volcano:yS,orange:bS,gold:iy,yellow:CS,lime:SS,green:ES,cyan:xS,blue:jf,geekblue:wS,purple:TS,magenta:_S,grey:OS};const sL={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"},Vp=Object.assign(Object.assign({},sL),{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});function KQ(e,t){let{generateColorPalettes:n,generateNeutralColorPalettes:r}=t;const{colorSuccess:i,colorWarning:o,colorError:a,colorInfo:l,colorPrimary:c,colorBgBase:u,colorTextBase:f}=e,p=n(c),m=n(i),g=n(o),b=n(a),E=n(l),x=r(u,f),C=e.colorLink||e.colorInfo,S=n(C),T=new er(b[1]).mix(new er(b[3]),50).toHexString();return Object.assign(Object.assign({},x),{colorPrimaryBg:p[1],colorPrimaryBgHover:p[2],colorPrimaryBorder:p[3],colorPrimaryBorderHover:p[4],colorPrimaryHover:p[5],colorPrimary:p[6],colorPrimaryActive:p[7],colorPrimaryTextHover:p[8],colorPrimaryText:p[9],colorPrimaryTextActive:p[10],colorSuccessBg:m[1],colorSuccessBgHover:m[2],colorSuccessBorder:m[3],colorSuccessBorderHover:m[4],colorSuccessHover:m[4],colorSuccess:m[6],colorSuccessActive:m[7],colorSuccessTextHover:m[8],colorSuccessText:m[9],colorSuccessTextActive:m[10],colorErrorBg:b[1],colorErrorBgHover:b[2],colorErrorBgFilledHover:T,colorErrorBgActive:b[3],colorErrorBorder:b[3],colorErrorBorderHover:b[4],colorErrorHover:b[5],colorError:b[6],colorErrorActive:b[7],colorErrorTextHover:b[8],colorErrorText:b[9],colorErrorTextActive:b[10],colorWarningBg:g[1],colorWarningBgHover:g[2],colorWarningBorder:g[3],colorWarningBorderHover:g[4],colorWarningHover:g[4],colorWarning:g[6],colorWarningActive:g[7],colorWarningTextHover:g[8],colorWarningText:g[9],colorWarningTextActive:g[10],colorInfoBg:E[1],colorInfoBgHover:E[2],colorInfoBorder:E[3],colorInfoBorderHover:E[4],colorInfoHover:E[4],colorInfo:E[6],colorInfoActive:E[7],colorInfoTextHover:E[8],colorInfoText:E[9],colorInfoTextActive:E[10],colorLinkHover:S[4],colorLink:S[6],colorLinkActive:S[7],colorBgMask:new er("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}const VQ=e=>{let t=e,n=e,r=e,i=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?i=4:e>=8&&(i=6),{borderRadius:e,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:i}};function GQ(e){const{motionUnit:t,motionBase:n,borderRadius:r,lineWidth:i}=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:i+1},VQ(r))}const qQ=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}};function iv(e){return(e+8)/e}function XQ(e){const t=new Array(10).fill(null).map((n,r)=>{const i=r-1,o=e*Math.pow(Math.E,i/5),a=r>1?Math.floor(o):Math.ceil(o);return Math.floor(a/2)*2});return t[1]=e,t.map(n=>({size:n,lineHeight:iv(n)}))}const YQ=e=>{const t=XQ(e),n=t.map(f=>f.size),r=t.map(f=>f.lineHeight),i=n[1],o=n[0],a=n[2],l=r[1],c=r[0],u=r[2];return{fontSizeSM:o,fontSize:i,fontSizeLG:a,fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:l,lineHeightLG:u,lineHeightSM:c,fontHeight:Math.round(l*i),fontHeightLG:Math.round(u*a),fontHeightSM:Math.round(c*o),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};function QQ(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 da=(e,t)=>new er(e).setAlpha(t).toRgbString(),dh=(e,t)=>new er(e).darken(t).toHexString(),ZQ=e=>{const t=Kp(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]}},JQ=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:da(r,.88),colorTextSecondary:da(r,.65),colorTextTertiary:da(r,.45),colorTextQuaternary:da(r,.25),colorFill:da(r,.15),colorFillSecondary:da(r,.06),colorFillTertiary:da(r,.04),colorFillQuaternary:da(r,.02),colorBgSolid:da(r,1),colorBgSolidHover:da(r,.75),colorBgSolidActive:da(r,.95),colorBgLayout:dh(n,4),colorBgContainer:dh(n,0),colorBgElevated:dh(n,0),colorBgSpotlight:da(r,.85),colorBgBlur:"transparent",colorBorder:dh(n,15),colorBorderSecondary:dh(n,6)}};function eZ(e){Cf.pink=Cf.magenta,s4.pink=s4.magenta;const t=Object.keys(sL).map(n=>{const r=e[n]===Cf[n]?s4[n]:Kp(e[n]);return new Array(10).fill(1).reduce((i,o,a)=>(i[`${n}-${a+1}`]=r[a],i[`${n}${a+1}`]=r[a],i),{})}).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),KQ(e,{generateColorPalettes:ZQ,generateNeutralColorPalettes:JQ})),YQ(e.fontSize)),QQ(e)),qQ(e)),GQ(e))}const cL=sS(eZ),IS={token:Vp,override:{override:Vp},hashed:!0},uL=be.createContext(IS),Gp="ant",s8="anticon",tZ=["outlined","borderless","filled"],nZ=(e,t)=>t||(e?`${Gp}-${e}`:Gp),At=d.createContext({getPrefixCls:nZ,iconPrefixCls:s8}),rZ=`-ant-${Date.now()}-${Math.random()}`;function iZ(e,t){const n={},r=(a,l)=>{let c=a.clone();return c=(l==null?void 0:l(c))||c,c.toRgbString()},i=(a,l)=>{const c=new er(a),u=Kp(c.toRgbString());n[`${l}-color`]=r(c),n[`${l}-color-disabled`]=u[1],n[`${l}-color-hover`]=u[4],n[`${l}-color-active`]=u[6],n[`${l}-color-outline`]=c.clone().setAlpha(.2).toRgbString(),n[`${l}-color-deprecated-bg`]=u[0],n[`${l}-color-deprecated-border`]=u[2]};if(t.primaryColor){i(t.primaryColor,"primary");const a=new er(t.primaryColor),l=Kp(a.toRgbString());l.forEach((u,f)=>{n[`primary-${f+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 c=new er(l[0]);n["primary-color-active-deprecated-f-30"]=r(c,u=>u.setAlpha(u.getAlpha()*.3)),n["primary-color-active-deprecated-d-02"]=r(c,u=>u.darken(2))}return t.successColor&&i(t.successColor,"success"),t.warningColor&&i(t.warningColor,"warning"),t.errorColor&&i(t.errorColor,"error"),t.infoColor&&i(t.infoColor,"info"),`
:root {
${Object.keys(n).map(a=>`--${e}-${a}: ${n[a]};`).join(`
`)}
}
`.trim()}function oZ(e,t){const n=iZ(e,t);Ti()&&us(n,`${rZ}-dynamic-theme`)}const $a=d.createContext(!1),c8=e=>{let{children:t,disabled:n}=e;const r=d.useContext($a);return d.createElement($a.Provider,{value:n??r},t)},Lu=d.createContext(void 0),aZ=e=>{let{children:t,size:n}=e;const r=d.useContext(Lu);return d.createElement(Lu.Provider,{value:n||r},t)};function lZ(){const e=d.useContext($a),t=d.useContext(Lu);return{componentDisabled:e,componentSize:t}}var dL=Or(function e(){_r(this,e)}),fL="CALC_UNIT",sZ=new RegExp(fL,"g");function c4(e){return typeof e=="number"?"".concat(e).concat(fL):e}var cZ=function(e){la(n,e);var t=sa(n);function n(r,i){var o;_r(this,n),o=t.call(this),J(at(o),"result",""),J(at(o),"unitlessCssVar",void 0),J(at(o),"lowPriority",void 0);var a=$t(r);return o.unitlessCssVar=i,r instanceof n?o.result="(".concat(r.result,")"):a==="number"?o.result=c4(r):a==="string"&&(o.result=r),o}return Or(n,[{key:"add",value:function(i){return i instanceof n?this.result="".concat(this.result," + ").concat(i.getResult()):(typeof i=="number"||typeof i=="string")&&(this.result="".concat(this.result," + ").concat(c4(i))),this.lowPriority=!0,this}},{key:"sub",value:function(i){return i instanceof n?this.result="".concat(this.result," - ").concat(i.getResult()):(typeof i=="number"||typeof i=="string")&&(this.result="".concat(this.result," - ").concat(c4(i))),this.lowPriority=!0,this}},{key:"mul",value:function(i){return this.lowPriority&&(this.result="(".concat(this.result,")")),i instanceof n?this.result="".concat(this.result," * ").concat(i.getResult(!0)):(typeof i=="number"||typeof i=="string")&&(this.result="".concat(this.result," * ").concat(i)),this.lowPriority=!1,this}},{key:"div",value:function(i){return this.lowPriority&&(this.result="(".concat(this.result,")")),i instanceof n?this.result="".concat(this.result," / ").concat(i.getResult(!0)):(typeof i=="number"||typeof i=="string")&&(this.result="".concat(this.result," / ").concat(i)),this.lowPriority=!1,this}},{key:"getResult",value:function(i){return this.lowPriority||i?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(i){var o=this,a=i||{},l=a.unit,c=!0;return typeof l=="boolean"?c=l:Array.from(this.unitlessCssVar).some(function(u){return o.result.includes(u)})&&(c=!1),this.result=this.result.replace(sZ,c?"px":""),typeof this.lowPriority<"u"?"calc(".concat(this.result,")"):this.result}}]),n}(dL),uZ=function(e){la(n,e);var t=sa(n);function n(r){var i;return _r(this,n),i=t.call(this),J(at(i),"result",0),r instanceof n?i.result=r.result:typeof r=="number"&&(i.result=r),i}return Or(n,[{key:"add",value:function(i){return i instanceof n?this.result+=i.result:typeof i=="number"&&(this.result+=i),this}},{key:"sub",value:function(i){return i instanceof n?this.result-=i.result:typeof i=="number"&&(this.result-=i),this}},{key:"mul",value:function(i){return i instanceof n?this.result*=i.result:typeof i=="number"&&(this.result*=i),this}},{key:"div",value:function(i){return i instanceof n?this.result/=i.result:typeof i=="number"&&(this.result/=i),this}},{key:"equal",value:function(){return this.result}}]),n}(dL),dZ=function(t,n){var r=t==="css"?cZ:uZ;return function(i){return new r(i,n)}},o_=function(t,n){return"".concat([n,t.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-"))};function Hn(e){var t=d.useRef();t.current=e;var n=d.useCallback(function(){for(var r,i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return(r=t.current)===null||r===void 0?void 0:r.call.apply(r,[t].concat(o))},[]);return n}function Du(e){var t=d.useRef(!1),n=d.useState(e),r=Oe(n,2),i=r[0],o=r[1];d.useEffect(function(){return t.current=!1,function(){t.current=!0}},[]);function a(l,c){c&&t.current||o(l)}return[i,a]}function u4(e){return e!==void 0}function Tr(e,t){var n=t||{},r=n.defaultValue,i=n.value,o=n.onChange,a=n.postState,l=Du(function(){return u4(i)?i:u4(r)?typeof r=="function"?r():r:typeof e=="function"?e():e}),c=Oe(l,2),u=c[0],f=c[1],p=i!==void 0?i:u,m=a?a(p):p,g=Hn(o),b=Du([p]),E=Oe(b,2),x=E[0],C=E[1];uS(function(){var T=x[0];u!==T&&g(u,T)},[x]),uS(function(){u4(i)||f(i)},[i]);var S=Hn(function(T,O){f(T,O),C([p],O)});return[m,S]}function a_(e,t,n,r){var i=te({},t[e]);if(r!=null&&r.deprecatedTokens){var o=r.deprecatedTokens;o.forEach(function(l){var c=Oe(l,2),u=c[0],f=c[1];if(i!=null&&i[u]||i!=null&&i[f]){var p;(p=i[f])!==null&&p!==void 0||(i[f]=i==null?void 0:i[u])}})}var a=te(te({},n),i);return Object.keys(a).forEach(function(l){a[l]===t[l]&&delete a[l]}),a}var hL=typeof CSSINJS_STATISTIC<"u",$S=!0;function hn(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!hL)return Object.assign.apply(Object,[{}].concat(t));$S=!1;var r={};return t.forEach(function(i){if($t(i)==="object"){var o=Object.keys(i);o.forEach(function(a){Object.defineProperty(r,a,{configurable:!0,enumerable:!0,get:function(){return i[a]}})})}}),$S=!0,r}var l_={};function fZ(){}var hZ=function(t){var n,r=t,i=fZ;return hL&&typeof Proxy<"u"&&(n=new Set,r=new Proxy(t,{get:function(a,l){if($S){var c;(c=n)===null||c===void 0||c.add(l)}return a[l]}}),i=function(a,l){var c;l_[a]={global:Array.from(n),component:te(te({},(c=l_[a])===null||c===void 0?void 0:c.component),l)}}),{token:r,keys:n,flush:i}};function s_(e,t,n){if(typeof n=="function"){var r;return n(hn(t,(r=t[e])!==null&&r!==void 0?r:{}))}return n??{}}function pZ(e){return e==="js"?{max:Math.max,min:Math.min}:{max:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return"max(".concat(r.map(function(o){return ie(o)}).join(","),")")},min:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return"min(".concat(r.map(function(o){return ie(o)}).join(","),")")}}}var mZ=1e3*60*10,gZ=function(){function e(){_r(this,e),J(this,"map",new Map),J(this,"objectIDMap",new WeakMap),J(this,"nextID",0),J(this,"lastAccessBeat",new Map),J(this,"accessBeat",0)}return Or(e,[{key:"set",value:function(n,r){this.clear();var i=this.getCompositeKey(n);this.map.set(i,r),this.lastAccessBeat.set(i,Date.now())}},{key:"get",value:function(n){var r=this.getCompositeKey(n),i=this.map.get(r);return this.lastAccessBeat.set(r,Date.now()),this.accessBeat+=1,i}},{key:"getCompositeKey",value:function(n){var r=this,i=n.map(function(o){return o&&$t(o)==="object"?"obj_".concat(r.getObjectID(o)):"".concat($t(o),"_").concat(o)});return i.join("|")}},{key:"getObjectID",value:function(n){if(this.objectIDMap.has(n))return this.objectIDMap.get(n);var r=this.nextID;return this.objectIDMap.set(n,r),this.nextID+=1,r}},{key:"clear",value:function(){var n=this;if(this.accessBeat>1e4){var r=Date.now();this.lastAccessBeat.forEach(function(i,o){r-i>mZ&&(n.map.delete(o),n.lastAccessBeat.delete(o))}),this.accessBeat=0}}}]),e}(),c_=new gZ;function vZ(e,t){return be.useMemo(function(){var n=c_.get(t);if(n)return n;var r=e();return c_.set(t,r),r},t)}var yZ=function(){return{}};function bZ(e){var t=e.useCSP,n=t===void 0?yZ:t,r=e.useToken,i=e.usePrefix,o=e.getResetStyles,a=e.getCommonStyle,l=e.getCompUnitless;function c(m,g,b,E){var x=Array.isArray(m)?m[0]:m;function C(k){return"".concat(String(x)).concat(k.slice(0,1).toUpperCase()).concat(k.slice(1))}var S=(E==null?void 0:E.unitless)||{},T=typeof l=="function"?l(m):{},O=te(te({},T),{},J({},C("zIndexPopup"),!0));Object.keys(S).forEach(function(k){O[C(k)]=S[k]});var I=te(te({},E),{},{unitless:O,prefixToken:C}),_=f(m,g,b,I),$=u(x,b,I);return function(k){var R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:k,M=_(k,R),H=Oe(M,2),B=H[1],L=$(R),D=Oe(L,2),z=D[0],W=D[1];return[z,B,W]}}function u(m,g,b){var E=b.unitless,x=b.injectStyle,C=x===void 0?!0:x,S=b.prefixToken,T=b.ignore,O=function($){var k=$.rootCls,R=$.cssVar,M=R===void 0?{}:R,H=r(),B=H.realToken;return yQ({path:[m],prefix:M.prefix,key:M.key,unitless:E,ignore:T,token:B,scope:k},function(){var L=s_(m,B,g),D=a_(m,B,L,{deprecatedTokens:b==null?void 0:b.deprecatedTokens});return Object.keys(L).forEach(function(z){D[S(z)]=D[z],delete D[z]}),D}),null},I=function($){var k=r(),R=k.cssVar;return[function(M){return C&&R?be.createElement(be.Fragment,null,be.createElement(O,{rootCls:$,cssVar:R,component:m}),M):M},R==null?void 0:R.key]};return I}function f(m,g,b){var E=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},x=Array.isArray(m)?m:[m,m],C=Oe(x,1),S=C[0],T=x.join("-"),O=e.layer||{name:"antd"};return function(I){var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:I,$=r(),k=$.theme,R=$.realToken,M=$.hashId,H=$.token,B=$.cssVar,L=i(),D=L.rootPrefixCls,z=L.iconPrefixCls,W=n(),j=B?"css":"js",U=vZ(function(){var Y=new Set;return B&&Object.keys(E.unitless||{}).forEach(function(ee){Y.add(Qg(ee,B.prefix)),Y.add(Qg(ee,o_(S,B.prefix)))}),dZ(j,Y)},[j,S,B==null?void 0:B.prefix]),q=pZ(j),A=q.max,P=q.min,Z={theme:k,token:H,hashId:M,nonce:function(){return W.nonce},clientOnly:E.clientOnly,layer:O,order:E.order||-999};hS(te(te({},Z),{},{clientOnly:!1,path:["Shared",D]}),function(){return typeof o=="function"?o(H):[]});var V=hS(te(te({},Z),{},{path:[T,I,z]}),function(){if(E.injectStyle===!1)return[];var Y=hZ(H),ee=Y.token,ue=Y.flush,ne=s_(S,R,b),se=".".concat(I),me=a_(S,R,ne,{deprecatedTokens:E.deprecatedTokens});B&&ne&&$t(ne)==="object"&&Object.keys(ne).forEach(function(oe){ne[oe]="var(".concat(Qg(oe,o_(S,B.prefix)),")")});var ye=hn(ee,{componentCls:se,prefixCls:I,iconCls:".".concat(z),antCls:".".concat(D),calc:U,max:A,min:P},B?ne:me),de=g(ye,{hashId:M,prefixCls:I,rootPrefixCls:D,iconPrefixCls:z});ue(S,me);var ce=typeof a=="function"?a(ye,I,_,E.resetFont):null;return[E.resetStyle===!1?null:ce,de]});return[V,M]}}function p(m,g,b){var E=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},x=f(m,g,b,te({resetStyle:!1,order:-998},E)),C=function(T){var O=T.prefixCls,I=T.rootCls,_=I===void 0?O:I;return x(O,_),null};return C}return{genStyleHooks:c,genSubStyleComponent:p,genComponentStyleHook:f}}const qp=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],CZ="5.22.2";function d4(e){return e>=0&&e<=255}function X0(e,t){const{r:n,g:r,b:i,a:o}=new er(e).toRgb();if(o<1)return e;const{r:a,g:l,b:c}=new er(t).toRgb();for(let u=.01;u<=1;u+=.01){const f=Math.round((n-a*(1-u))/u),p=Math.round((r-l*(1-u))/u),m=Math.round((i-c*(1-u))/u);if(d4(f)&&d4(p)&&d4(m))return new er({r:f,g:p,b:m,a:Math.round(u*100)/100}).toRgbString()}return new er({r:n,g:r,b:i,a:1}).toRgbString()}var SZ=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function pL(e){const{override:t}=e,n=SZ(e,["override"]),r=Object.assign({},t);Object.keys(Vp).forEach(m=>{delete r[m]});const i=Object.assign(Object.assign({},n),r),o=480,a=576,l=768,c=992,u=1200,f=1600;if(i.motion===!1){const m="0s";i.motionDurationFast=m,i.motionDurationMid=m,i.motionDurationSlow=m}return Object.assign(Object.assign(Object.assign({},i),{colorFillContent:i.colorFillSecondary,colorFillContentHover:i.colorFill,colorFillAlter:i.colorFillQuaternary,colorBgContainerDisabled:i.colorFillTertiary,colorBorderBg:i.colorBgContainer,colorSplit:X0(i.colorBorderSecondary,i.colorBgContainer),colorTextPlaceholder:i.colorTextQuaternary,colorTextDisabled:i.colorTextQuaternary,colorTextHeading:i.colorText,colorTextLabel:i.colorTextSecondary,colorTextDescription:i.colorTextTertiary,colorTextLightSolid:i.colorWhite,colorHighlight:i.colorError,colorBgTextHover:i.colorFillSecondary,colorBgTextActive:i.colorFill,colorIcon:i.colorTextTertiary,colorIconHover:i.colorText,colorErrorOutline:X0(i.colorErrorBg,i.colorBgContainer),colorWarningOutline:X0(i.colorWarningBg,i.colorBgContainer),fontSizeIcon:i.fontSizeSM,lineWidthFocus:i.lineWidth*3,lineWidth:i.lineWidth,controlOutlineWidth:i.lineWidth*2,controlInteractiveSize:i.controlHeight/2,controlItemBgHover:i.colorFillTertiary,controlItemBgActive:i.colorPrimaryBg,controlItemBgActiveHover:i.colorPrimaryBgHover,controlItemBgActiveDisabled:i.colorFill,controlTmpOutline:i.colorFillQuaternary,controlOutline:X0(i.colorPrimaryBg,i.colorBgContainer),lineType:i.lineType,borderRadius:i.borderRadius,borderRadiusXS:i.borderRadiusXS,borderRadiusSM:i.borderRadiusSM,borderRadiusLG:i.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:i.sizeXXS,paddingXS:i.sizeXS,paddingSM:i.sizeSM,padding:i.size,paddingMD:i.sizeMD,paddingLG:i.sizeLG,paddingXL:i.sizeXL,paddingContentHorizontalLG:i.sizeLG,paddingContentVerticalLG:i.sizeMS,paddingContentHorizontal:i.sizeMS,paddingContentVertical:i.sizeSM,paddingContentHorizontalSM:i.size,paddingContentVerticalSM:i.sizeXS,marginXXS:i.sizeXXS,marginXS:i.sizeXS,marginSM:i.sizeSM,margin:i.size,marginMD:i.sizeMD,marginLG:i.sizeLG,marginXL:i.sizeXL,marginXXL:i.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:o,screenXSMin:o,screenXSMax:a-1,screenSM:a,screenSMMin:a,screenSMMax:l-1,screenMD:l,screenMDMin:l,screenMDMax:c-1,screenLG:c,screenLGMin:c,screenLGMax:u-1,screenXL:u,screenXLMin:u,screenXLMax:f-1,screenXXL:f,screenXXLMin:f,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`
0 1px 2px -2px ${new er("rgba(0, 0, 0, 0.16)").toRgbString()},
0 3px 6px 0 ${new er("rgba(0, 0, 0, 0.12)").toRgbString()},
0 5px 12px 4px ${new er("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 u_=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const mL={lineHeight:!0,lineHeightSM:!0,lineHeightLG:!0,lineHeightHeading1:!0,lineHeightHeading2:!0,lineHeightHeading3:!0,lineHeightHeading4:!0,lineHeightHeading5:!0,opacityLoading:!0,fontWeightStrong:!0,zIndexPopupBase:!0,zIndexBase:!0,opacityImage:!0},EZ={size:!0,sizeSM:!0,sizeLG:!0,sizeMD:!0,sizeXS:!0,sizeXXS:!0,sizeMS:!0,sizeXL:!0,sizeXXL:!0,sizeUnit:!0,sizeStep:!0,motionBase:!0,motionUnit:!0},xZ={screenXS:!0,screenXSMin:!0,screenXSMax:!0,screenSM:!0,screenSMMin:!0,screenSMMax:!0,screenMD:!0,screenMDMin:!0,screenMDMax:!0,screenLG:!0,screenLGMin:!0,screenLGMax:!0,screenXL:!0,screenXLMin:!0,screenXLMax:!0,screenXXL:!0,screenXXLMin:!0},gL=(e,t,n)=>{const r=n.getDerivativeToken(e),{override:i}=t,o=u_(t,["override"]);let a=Object.assign(Object.assign({},r),{override:i});return a=pL(a),o&&Object.entries(o).forEach(l=>{let[c,u]=l;const{theme:f}=u,p=u_(u,["theme"]);let m=p;f&&(m=gL(Object.assign(Object.assign({},a),p),{override:p},f)),a[c]=m}),a};function Bi(){const{token:e,hashed:t,theme:n,override:r,cssVar:i}=be.useContext(uL),o=`${CZ}-${t||""}`,a=n||cL,[l,c,u]=KY(a,[Vp,e],{salt:o,override:r,getComputedToken:gL,formatToken:pL,cssVar:i&&{prefix:i.prefix,key:i.key,unitless:mL,ignore:EZ,preserve:xZ}});return[a,u,t?c:"",l,i]}const al={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},Fn=function(e){let t=arguments.length>1&&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}},Tb=()=>({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"}}),ll=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),wZ=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, &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),TZ=(e,t,n,r)=>{const i=`[class^="${t}"], [class*=" ${t}"]`,o=n?`.${n}`:i,a={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let l={};return r!==!1&&(l={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[o]:Object.assign(Object.assign(Object.assign({},l),a),{[i]:a})}},Sc=e=>({outline:`${ie(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),ms=e=>({"&:focus-visible":Object.assign({},Sc(e))}),u8=e=>Object.assign(Object.assign({color:e.colorLink,textDecoration:e.linkDecoration,outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,border:0,padding:0,background:"none",userSelect:"none"},ms(e)),{"&:focus, &:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive}}),vL=(e,t)=>{const[n,r]=Bi();return hS({theme:n,token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>t==null?void 0:t.nonce,layer:{name:"antd"}},()=>[{[`.${e}`]:Object.assign(Object.assign({},Tb()),{[`.${e} .${e}-icon`]:{display:"block"}})}])},{genStyleHooks:Mn,genComponentStyleHook:_Z,genSubStyleComponent:s1}=bZ({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=d.useContext(At);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,n,r,i]=Bi();return{theme:e,realToken:t,hashId:n,token:r,cssVar:i}},useCSP:()=>{const{csp:e,iconPrefixCls:t}=d.useContext(At);return vL(t,e),e??{}},getResetStyles:e=>[{"&":wZ(e)}],getCommonStyle:TZ,getCompUnitless:()=>mL});function yL(e,t){return qp.reduce((n,r)=>{const i=e[`${r}1`],o=e[`${r}3`],a=e[`${r}6`],l=e[`${r}7`];return Object.assign(Object.assign({},n),t(r,{lightColor:i,lightBorderColor:o,darkColor:a,textColor:l}))},{})}const OZ=Object.assign({},mm),{useId:d_}=OZ,IZ=()=>"",$Z=typeof d_>"u"?IZ:d_;function NZ(e,t,n){var r;Mc();const i=e||{},o=i.inherit===!1||!t?Object.assign(Object.assign({},IS),{hashed:(r=t==null?void 0:t.hashed)!==null&&r!==void 0?r:IS.hashed,cssVar:t==null?void 0:t.cssVar}):t,a=$Z();return Uu(()=>{var l,c;if(!e)return t;const u=Object.assign({},o.components);Object.keys(e.components||{}).forEach(m=>{u[m]=Object.assign(Object.assign({},u[m]),e.components[m])});const f=`css-var-${a.replace(/:/g,"")}`,p=((l=i.cssVar)!==null&&l!==void 0?l:o.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:n==null?void 0:n.prefixCls},typeof o.cssVar=="object"?o.cssVar:{}),typeof i.cssVar=="object"?i.cssVar:{}),{key:typeof i.cssVar=="object"&&((c=i.cssVar)===null||c===void 0?void 0:c.key)||f});return Object.assign(Object.assign(Object.assign({},o),i),{token:Object.assign(Object.assign({},o.token),i.token),components:u,cssVar:p})},[i,o],(l,c)=>l.some((u,f)=>{const p=c[f];return!Ml(u,p,!0)}))}var AZ=["children"],bL=d.createContext({});function kZ(e){var t=e.children,n=Gt(e,AZ);return d.createElement(bL.Provider,{value:n},t)}var RZ=function(e){la(n,e);var t=sa(n);function n(){return _r(this,n),t.apply(this,arguments)}return Or(n,[{key:"render",value:function(){return this.props.children}}]),n}(d.Component);function MZ(e){var t=d.useReducer(function(l){return l+1},0),n=Oe(t,2),r=n[1],i=d.useRef(e),o=Hn(function(){return i.current}),a=Hn(function(l){i.current=typeof l=="function"?l(i.current):l,r()});return[o,a]}var zs="none",Y0="appear",Q0="enter",Z0="leave",f_="none",Xa="prepare",of="start",af="active",d8="end",CL="prepared";function h_(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 PZ(e,t){var n={animationend:h_("Animation","AnimationEnd"),transitionend:h_("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}var LZ=PZ(Ti(),typeof window<"u"?window:{}),SL={};if(Ti()){var DZ=document.createElement("div");SL=DZ.style}var J0={};function EL(e){if(J0[e])return J0[e];var t=LZ[e];if(t)for(var n=Object.keys(t),r=n.length,i=0;i<r;i+=1){var o=n[i];if(Object.prototype.hasOwnProperty.call(t,o)&&o in SL)return J0[e]=t[o],J0[e]}return""}var xL=EL("animationend"),wL=EL("transitionend"),TL=!!(xL&&wL),p_=xL||"animationend",m_=wL||"transitionend";function g_(e,t){if(!e)return null;if($t(e)==="object"){var n=t.replace(/-\w/g,function(r){return r[1].toUpperCase()});return e[n]}return"".concat(e,"-").concat(t)}const FZ=function(e){var t=d.useRef();function n(i){i&&(i.removeEventListener(m_,e),i.removeEventListener(p_,e))}function r(i){t.current&&t.current!==i&&n(t.current),i&&i!==t.current&&(i.addEventListener(m_,e),i.addEventListener(p_,e),t.current=i)}return d.useEffect(function(){return function(){n(t.current)}},[]),[r,n]};var _L=Ti()?d.useLayoutEffect:d.useEffect;const BZ=function(){var e=d.useRef(null);function t(){kn.cancel(e.current)}function n(r){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;t();var o=kn(function(){i<=1?r({isCanceled:function(){return o!==e.current}}):n(r,i-1)});e.current=o}return d.useEffect(function(){return function(){t()}},[]),[n,t]};var jZ=[Xa,of,af,d8],HZ=[Xa,CL],OL=!1,zZ=!0;function IL(e){return e===af||e===d8}const WZ=function(e,t,n){var r=Du(f_),i=Oe(r,2),o=i[0],a=i[1],l=BZ(),c=Oe(l,2),u=c[0],f=c[1];function p(){a(Xa,!0)}var m=t?HZ:jZ;return _L(function(){if(o!==f_&&o!==d8){var g=m.indexOf(o),b=m[g+1],E=n(o);E===OL?a(b,!0):b&&u(function(x){function C(){x.isCanceled()||a(b,!0)}E===!0?C():Promise.resolve(E).then(C)})}},[e,o]),d.useEffect(function(){return function(){f()}},[]),[p,o]};function UZ(e,t,n,r){var i=r.motionEnter,o=i===void 0?!0:i,a=r.motionAppear,l=a===void 0?!0:a,c=r.motionLeave,u=c===void 0?!0:c,f=r.motionDeadline,p=r.motionLeaveImmediately,m=r.onAppearPrepare,g=r.onEnterPrepare,b=r.onLeavePrepare,E=r.onAppearStart,x=r.onEnterStart,C=r.onLeaveStart,S=r.onAppearActive,T=r.onEnterActive,O=r.onLeaveActive,I=r.onAppearEnd,_=r.onEnterEnd,$=r.onLeaveEnd,k=r.onVisibleChanged,R=Du(),M=Oe(R,2),H=M[0],B=M[1],L=MZ(zs),D=Oe(L,2),z=D[0],W=D[1],j=Du(null),U=Oe(j,2),q=U[0],A=U[1],P=z(),Z=d.useRef(!1),V=d.useRef(null);function Y(){return n()}var ee=d.useRef(!1);function ue(){W(zs),A(null,!0)}var ne=Hn(function(Se){var $e=z();if($e!==zs){var qe=Y();if(!(Se&&!Se.deadline&&Se.target!==qe)){var Le=ee.current,Fe;$e===Y0&&Le?Fe=I==null?void 0:I(qe,Se):$e===Q0&&Le?Fe=_==null?void 0:_(qe,Se):$e===Z0&&Le&&(Fe=$==null?void 0:$(qe,Se)),Le&&Fe!==!1&&ue()}}}),se=FZ(ne),me=Oe(se,1),ye=me[0],de=function($e){switch($e){case Y0:return J(J(J({},Xa,m),of,E),af,S);case Q0:return J(J(J({},Xa,g),of,x),af,T);case Z0:return J(J(J({},Xa,b),of,C),af,O);default:return{}}},ce=d.useMemo(function(){return de(P)},[P]),oe=WZ(P,!e,function(Se){if(Se===Xa){var $e=ce[Xa];return $e?$e(Y()):OL}if(Te in ce){var qe;A(((qe=ce[Te])===null||qe===void 0?void 0:qe.call(ce,Y(),null))||null)}return Te===af&&P!==zs&&(ye(Y()),f>0&&(clearTimeout(V.current),V.current=setTimeout(function(){ne({deadline:!0})},f))),Te===CL&&ue(),zZ}),pe=Oe(oe,2),ve=pe[0],Te=pe[1],Ge=IL(Te);ee.current=Ge,_L(function(){B(t);var Se=Z.current;Z.current=!0;var $e;!Se&&t&&l&&($e=Y0),Se&&t&&o&&($e=Q0),(Se&&!t&&u||!Se&&p&&!t&&u)&&($e=Z0);var qe=de($e);$e&&(e||qe[Xa])?(W($e),ve()):W(zs)},[t]),d.useEffect(function(){(P===Y0&&!l||P===Q0&&!o||P===Z0&&!u)&&W(zs)},[l,o,u]),d.useEffect(function(){return function(){Z.current=!1,clearTimeout(V.current)}},[]);var je=d.useRef(!1);d.useEffect(function(){H&&(je.current=!0),H!==void 0&&P===zs&&((je.current||H)&&(k==null||k(H)),je.current=!0)},[H,P]);var Je=q;return ce[Xa]&&Te===of&&(Je=te({transition:"none"},Je)),[P,Te,Je,H??t]}function KZ(e){var t=e;$t(e)==="object"&&(t=e.transitionSupport);function n(i,o){return!!(i.motionName&&t&&o!==!1)}var r=d.forwardRef(function(i,o){var a=i.visible,l=a===void 0?!0:a,c=i.removeOnLeave,u=c===void 0?!0:c,f=i.forceRender,p=i.children,m=i.motionName,g=i.leavedClassName,b=i.eventProps,E=d.useContext(bL),x=E.motion,C=n(i,x),S=d.useRef(),T=d.useRef();function O(){try{return S.current instanceof HTMLElement?S.current:Qh(T.current)}catch{return null}}var I=UZ(C,l,O,i),_=Oe(I,4),$=_[0],k=_[1],R=_[2],M=_[3],H=d.useRef(M);M&&(H.current=!0);var B=d.useCallback(function(q){S.current=q,Fp(o,q)},[o]),L,D=te(te({},b),{},{visible:l});if(!p)L=null;else if($===zs)M?L=p(te({},D),B):!u&&H.current&&g?L=p(te(te({},D),{},{className:g}),B):f||!u&&!g?L=p(te(te({},D),{},{style:{display:"none"}}),B):L=null;else{var z;k===Xa?z="prepare":IL(k)?z="active":k===of&&(z="start");var W=g_(m,"".concat($,"-").concat(z));L=p(te(te({},D),{},{className:le(g_(m,$),J(J({},W,W&&z),m,typeof m=="string")),style:R}),B)}if(d.isValidElement(L)&&ol(L)){var j=L,U=j.ref;U||(L=d.cloneElement(L,{ref:B}))}return d.createElement(RZ,{ref:T},L)});return r.displayName="CSSMotion",r}const ca=KZ(TL);var NS="add",AS="keep",kS="remove",f4="removed";function VZ(e){var t;return e&&$t(e)==="object"&&"key"in e?t=e:t={key:e},te(te({},t),{},{key:String(t.key)})}function RS(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(VZ)}function GZ(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=[],r=0,i=t.length,o=RS(e),a=RS(t);o.forEach(function(u){for(var f=!1,p=r;p<i;p+=1){var m=a[p];if(m.key===u.key){r<p&&(n=n.concat(a.slice(r,p).map(function(g){return te(te({},g),{},{status:NS})})),r=p),n.push(te(te({},m),{},{status:AS})),r+=1,f=!0;break}}f||n.push(te(te({},u),{},{status:kS}))}),r<i&&(n=n.concat(a.slice(r).map(function(u){return te(te({},u),{},{status:NS})})));var l={};n.forEach(function(u){var f=u.key;l[f]=(l[f]||0)+1});var c=Object.keys(l).filter(function(u){return l[u]>1});return c.forEach(function(u){n=n.filter(function(f){var p=f.key,m=f.status;return p!==u||m!==kS}),n.forEach(function(f){f.key===u&&(f.status=AS)})}),n}var qZ=["component","children","onVisibleChanged","onAllRemoved"],XZ=["status"],YZ=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function QZ(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ca,n=function(r){la(o,r);var i=sa(o);function o(){var a;_r(this,o);for(var l=arguments.length,c=new Array(l),u=0;u<l;u++)c[u]=arguments[u];return a=i.call.apply(i,[this].concat(c)),J(at(a),"state",{keyEntities:[]}),J(at(a),"removeKey",function(f){a.setState(function(p){var m=p.keyEntities.map(function(g){return g.key!==f?g:te(te({},g),{},{status:f4})});return{keyEntities:m}},function(){var p=a.state.keyEntities,m=p.filter(function(g){var b=g.status;return b!==f4}).length;m===0&&a.props.onAllRemoved&&a.props.onAllRemoved()})}),a}return Or(o,[{key:"render",value:function(){var l=this,c=this.state.keyEntities,u=this.props,f=u.component,p=u.children,m=u.onVisibleChanged;u.onAllRemoved;var g=Gt(u,qZ),b=f||d.Fragment,E={};return YZ.forEach(function(x){E[x]=g[x],delete g[x]}),delete g.keys,d.createElement(b,g,c.map(function(x,C){var S=x.status,T=Gt(x,XZ),O=S===NS||S===AS;return d.createElement(t,ze({},E,{key:T.key,visible:O,eventProps:T,onVisibleChanged:function(_){m==null||m(_,{key:T.key}),_||l.removeKey(T.key)}}),function(I,_){return p(te(te({},I),{},{index:C}),_)})}))}}],[{key:"getDerivedStateFromProps",value:function(l,c){var u=l.keys,f=c.keyEntities,p=RS(u),m=GZ(f,p);return{keyEntities:m.filter(function(g){var b=f.find(function(E){var x=E.key;return g.key===x});return!(b&&b.status===f4&&g.status===kS)})}}}]),o}(d.Component);return J(n,"defaultProps",{component:"div"}),n}const f8=QZ(TL);function ZZ(e){const{children:t}=e,[,n]=Bi(),{motion:r}=n,i=d.useRef(!1);return i.current=i.current||r===!1,i.current?d.createElement(kZ,{motion:r},t):t}const JZ=()=>null;var eJ=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const tJ=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];let oy,$L,NL,AL;function ov(){return oy||Gp}function nJ(){return $L||s8}function rJ(e){return Object.keys(e).some(t=>t.endsWith("Color"))}const iJ=e=>{const{prefixCls:t,iconPrefixCls:n,theme:r,holderRender:i}=e;t!==void 0&&(oy=t),n!==void 0&&($L=n),"holderRender"in e&&(AL=i),r&&(rJ(r)?oZ(ov(),r):NL=r)},kL=()=>({getPrefixCls:(e,t)=>t||(e?`${ov()}-${e}`:ov()),getIconPrefixCls:nJ,getRootPrefixCls:()=>oy||ov(),getTheme:()=>NL,holderRender:AL}),oJ=e=>{const{children:t,csp:n,autoInsertSpaceInButton:r,alert:i,anchor:o,form:a,locale:l,componentSize:c,direction:u,space:f,splitter:p,virtual:m,dropdownMatchSelectWidth:g,popupMatchSelectWidth:b,popupOverflow:E,legacyLocale:x,parentContext:C,iconPrefixCls:S,theme:T,componentDisabled:O,segmented:I,statistic:_,spin:$,calendar:k,carousel:R,cascader:M,collapse:H,typography:B,checkbox:L,descriptions:D,divider:z,drawer:W,skeleton:j,steps:U,image:q,layout:A,list:P,mentions:Z,modal:V,progress:Y,result:ee,slider:ue,breadcrumb:ne,menu:se,pagination:me,input:ye,textArea:de,empty:ce,badge:oe,radio:pe,rate:ve,switch:Te,transfer:Ge,avatar:je,message:Je,tag:Se,table:$e,card:qe,tabs:Le,timeline:Fe,timePicker:Ke,upload:Ve,notification:Ce,tree:Pe,colorPicker:We,datePicker:Ze,rangePicker:ut,flex:Be,wave:ot,dropdown:re,warning:Ie,tour:Re,floatButtonGroup:Ae,variant:Ye,inputNumber:mt,treeSelect:Nt}=e,qt=d.useCallback((ge,Ne)=>{const{prefixCls:Xe}=e;if(Ne)return Ne;const nt=Xe||C.getPrefixCls("");return ge?`${nt}-${ge}`:nt},[C.getPrefixCls,e.prefixCls]),Ft=S||C.iconPrefixCls||s8,Kt=n||C.csp;vL(Ft,Kt);const Qt=NZ(T,C.theme,{prefixCls:qt("")}),Zt={csp:Kt,autoInsertSpaceInButton:r,alert:i,anchor:o,locale:l||x,direction:u,space:f,splitter:p,virtual:m,popupMatchSelectWidth:b??g,popupOverflow:E,getPrefixCls:qt,iconPrefixCls:Ft,theme:Qt,segmented:I,statistic:_,spin:$,calendar:k,carousel:R,cascader:M,collapse:H,typography:B,checkbox:L,descriptions:D,divider:z,drawer:W,skeleton:j,steps:U,image:q,input:ye,textArea:de,layout:A,list:P,mentions:Z,modal:V,progress:Y,result:ee,slider:ue,breadcrumb:ne,menu:se,pagination:me,empty:ce,badge:oe,radio:pe,rate:ve,switch:Te,transfer:Ge,avatar:je,message:Je,tag:Se,table:$e,card:qe,tabs:Le,timeline:Fe,timePicker:Ke,upload:Ve,notification:Ce,tree:Pe,colorPicker:We,datePicker:Ze,rangePicker:ut,flex:Be,wave:ot,dropdown:re,warning:Ie,tour:Re,floatButtonGroup:Ae,variant:Ye,inputNumber:mt,treeSelect:Nt},Mt=Object.assign({},C);Object.keys(Zt).forEach(ge=>{Zt[ge]!==void 0&&(Mt[ge]=Zt[ge])}),tJ.forEach(ge=>{const Ne=e[ge];Ne&&(Mt[ge]=Ne)}),typeof r<"u"&&(Mt.button=Object.assign({autoInsertSpace:r},Mt.button));const St=Uu(()=>Mt,Mt,(ge,Ne)=>{const Xe=Object.keys(ge),nt=Object.keys(Ne);return Xe.length!==nt.length||Xe.some(pt=>ge[pt]!==Ne[pt])}),yt=d.useMemo(()=>({prefixCls:Ft,csp:Kt}),[Ft,Kt]);let lt=d.createElement(d.Fragment,null,d.createElement(JZ,{dropdownMatchSelectWidth:g}),t);const fe=d.useMemo(()=>{var ge,Ne,Xe,nt;return rf(((ge=Pl.Form)===null||ge===void 0?void 0:ge.defaultValidateMessages)||{},((Xe=(Ne=St.locale)===null||Ne===void 0?void 0:Ne.Form)===null||Xe===void 0?void 0:Xe.defaultValidateMessages)||{},((nt=St.form)===null||nt===void 0?void 0:nt.validateMessages)||{},(a==null?void 0:a.validateMessages)||{})},[St,a==null?void 0:a.validateMessages]);Object.keys(fe).length>0&&(lt=d.createElement(tL.Provider,{value:fe},lt)),l&&(lt=d.createElement(IQ,{locale:l,_ANT_MARK__:OQ},lt)),(Ft||Kt)&&(lt=d.createElement(a8.Provider,{value:yt},lt)),c&&(lt=d.createElement(aZ,{size:c},lt)),lt=d.createElement(ZZ,null,lt);const xe=d.useMemo(()=>{const ge=Qt||{},{algorithm:Ne,token:Xe,components:nt,cssVar:pt}=ge,st=eJ(ge,["algorithm","token","components","cssVar"]),rt=Ne&&(!Array.isArray(Ne)||Ne.length>0)?sS(Ne):cL,He={};Object.entries(nt||{}).forEach(ft=>{let[Ct,zt]=ft;const Tt=Object.assign({},zt);"algorithm"in Tt&&(Tt.algorithm===!0?Tt.theme=rt:(Array.isArray(Tt.algorithm)||typeof Tt.algorithm=="function")&&(Tt.theme=sS(Tt.algorithm)),delete Tt.algorithm),He[Ct]=Tt});const Ue=Object.assign(Object.assign({},Vp),Xe);return Object.assign(Object.assign({},st),{theme:rt,token:Ue,components:He,override:Object.assign({override:Ue},He),cssVar:pt})},[Qt]);return T&&(lt=d.createElement(uL.Provider,{value:xe},lt)),St.warning&&(lt=d.createElement(xQ.Provider,{value:St.warning},lt)),O!==void 0&&(lt=d.createElement(c8,{disabled:O},lt)),d.createElement(At.Provider,{value:St},lt)},Fl=e=>{const t=d.useContext(At),n=d.useContext(l8);return d.createElement(oJ,Object.assign({parentContext:t,legacyLocale:n},e))};Fl.ConfigContext=At;Fl.SizeContext=Lu;Fl.config=iJ;Fl.useConfig=lZ;Object.defineProperty(Fl,"SizeContext",{get:()=>Lu});var aJ={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"};function RL(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function lJ(e){return RL(e)instanceof ShadowRoot}function ay(e){return lJ(e)?RL(e):null}function sJ(e){return e.replace(/-(.)/g,function(t,n){return n.toUpperCase()})}function cJ(e,t){gr(e,"[@ant-design/icons] ".concat(t))}function v_(e){return $t(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&($t(e.icon)==="object"||typeof e.icon=="function")}function y_(){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[sJ(n)]=r}return t},{})}function MS(e,t,n){return n?be.createElement(e.tag,te(te({key:t},y_(e.attrs)),n),(e.children||[]).map(function(r,i){return MS(r,"".concat(t,"-").concat(e.tag,"-").concat(i))})):be.createElement(e.tag,te({key:t},y_(e.attrs)),(e.children||[]).map(function(r,i){return MS(r,"".concat(t,"-").concat(e.tag,"-").concat(i))}))}function ML(e){return Kp(e)[0]}function PL(e){return e?Array.isArray(e)?e:[e]:[]}var uJ=`
.anticon {
display: inline-flex;
align-items: center;
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);
}
}
`,dJ=function(t){var n=d.useContext(a8),r=n.csp,i=n.prefixCls,o=uJ;i&&(o=o.replace(/anticon/g,i)),d.useEffect(function(){var a=t.current,l=ay(a);us(o,"@ant-design-icons",{prepend:!0,csp:r,attachTo:l})},[])},fJ=["icon","className","onClick","style","primaryColor","secondaryColor"],Jh={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function hJ(e){var t=e.primaryColor,n=e.secondaryColor;Jh.primaryColor=t,Jh.secondaryColor=n||ML(t),Jh.calculated=!!n}function pJ(){return te({},Jh)}var c1=function(t){var n=t.icon,r=t.className,i=t.onClick,o=t.style,a=t.primaryColor,l=t.secondaryColor,c=Gt(t,fJ),u=d.useRef(),f=Jh;if(a&&(f={primaryColor:a,secondaryColor:l||ML(a)}),dJ(u),cJ(v_(n),"icon should be icon definiton, but got ".concat(n)),!v_(n))return null;var p=n;return p&&typeof p.icon=="function"&&(p=te(te({},p),{},{icon:p.icon(f.primaryColor,f.secondaryColor)})),MS(p.icon,"svg-".concat(p.name),te(te({className:r,onClick:i,style:o,"data-icon":p.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},c),{},{ref:u}))};c1.displayName="IconReact";c1.getTwoToneColors=pJ;c1.setTwoToneColors=hJ;function LL(e){var t=PL(e),n=Oe(t,2),r=n[0],i=n[1];return c1.setTwoToneColors({primaryColor:r,secondaryColor:i})}function mJ(){var e=c1.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var gJ=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];LL(jf.primary);var on=d.forwardRef(function(e,t){var n=e.className,r=e.icon,i=e.spin,o=e.rotate,a=e.tabIndex,l=e.onClick,c=e.twoToneColor,u=Gt(e,gJ),f=d.useContext(a8),p=f.prefixCls,m=p===void 0?"anticon":p,g=f.rootClassName,b=le(g,m,J(J({},"".concat(m,"-").concat(r.name),!!r.name),"".concat(m,"-spin"),!!i||r.name==="loading"),n),E=a;E===void 0&&l&&(E=-1);var x=o?{msTransform:"rotate(".concat(o,"deg)"),transform:"rotate(".concat(o,"deg)")}:void 0,C=PL(c),S=Oe(C,2),T=S[0],O=S[1];return d.createElement("span",ze({role:"img","aria-label":r.name},u,{ref:t,tabIndex:E,onClick:l,className:b}),d.createElement(c1,{icon:r,primaryColor:T,secondaryColor:O,style:x}))});on.displayName="AntdIcon";on.getTwoToneColor=mJ;on.setTwoToneColor=LL;var vJ=function(t,n){return d.createElement(on,ze({},t,{ref:n,icon:aJ}))},Em=d.forwardRef(vJ),yJ={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"},bJ=function(t,n){return d.createElement(on,ze({},t,{ref:n,icon:yJ}))},Ku=d.forwardRef(bJ),CJ={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"},SJ=function(t,n){return d.createElement(on,ze({},t,{ref:n,icon:CJ}))},Vu=d.forwardRef(SJ),EJ={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"},xJ=function(t,n){return d.createElement(on,ze({},t,{ref:n,icon:EJ}))},_b=d.forwardRef(xJ),wJ={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"},TJ=function(t,n){return d.createElement(on,ze({},t,{ref:n,icon:wJ}))},DL=d.forwardRef(TJ),_J=`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`,OJ=`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`,IJ="".concat(_J," ").concat(OJ).split(/[\s\n]+/),$J="aria-",NJ="data-";function b_(e,t){return e.indexOf(t)===0}function _i(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=te({},t);var r={};return Object.keys(e).forEach(function(i){(n.aria&&(i==="role"||b_(i,$J))||n.data&&b_(i,NJ)||n.attr&&IJ.includes(i))&&(r[i]=e[i])}),r}function FL(e){return e&&be.isValidElement(e)&&e.type===be.Fragment}const BL=(e,t,n)=>be.isValidElement(e)?be.cloneElement(e,typeof n=="function"?n(e.props||{}):n):t;function mi(e,t){return BL(e,e,t)}const C_=e=>typeof e=="object"&&e!=null&&e.nodeType===1,S_=(e,t)=>(!t||e!=="hidden")&&e!=="visible"&&e!=="clip",h4=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){const n=getComputedStyle(e,null);return S_(n.overflowY,t)||S_(n.overflowX,t)||(r=>{const i=(o=>{if(!o.ownerDocument||!o.ownerDocument.defaultView)return null;try{return o.ownerDocument.defaultView.frameElement}catch{return null}})(r);return!!i&&(i.clientHeight<r.scrollHeight||i.clientWidth<r.scrollWidth)})(e)}return!1},eg=(e,t,n,r,i,o,a,l)=>o<e&&a>t||o>e&&a<t?0:o<=e&&l<=n||a>=t&&l>=n?o-e-r:a>t&&l<n||o<e&&l>n?a-t+i:0,AJ=e=>{const t=e.parentElement;return t??(e.getRootNode().host||null)},E_=(e,t)=>{var n,r,i,o;if(typeof document>"u")return[];const{scrollMode:a,block:l,inline:c,boundary:u,skipOverflowHiddenElements:f}=t,p=typeof u=="function"?u:W=>W!==u;if(!C_(e))throw new TypeError("Invalid target");const m=document.scrollingElement||document.documentElement,g=[];let b=e;for(;C_(b)&&p(b);){if(b=AJ(b),b===m){g.push(b);break}b!=null&&b===document.body&&h4(b)&&!h4(document.documentElement)||b!=null&&h4(b,f)&&g.push(b)}const E=(r=(n=window.visualViewport)==null?void 0:n.width)!=null?r:innerWidth,x=(o=(i=window.visualViewport)==null?void 0:i.height)!=null?o:innerHeight,{scrollX:C,scrollY:S}=window,{height:T,width:O,top:I,right:_,bottom:$,left:k}=e.getBoundingClientRect(),{top:R,right:M,bottom:H,left:B}=(W=>{const j=window.getComputedStyle(W);return{top:parseFloat(j.scrollMarginTop)||0,right:parseFloat(j.scrollMarginRight)||0,bottom:parseFloat(j.scrollMarginBottom)||0,left:parseFloat(j.scrollMarginLeft)||0}})(e);let L=l==="start"||l==="nearest"?I-R:l==="end"?$+H:I+T/2-R+H,D=c==="center"?k+O/2-B+M:c==="end"?_+M:k-B;const z=[];for(let W=0;W<g.length;W++){const j=g[W],{height:U,width:q,top:A,right:P,bottom:Z,left:V}=j.getBoundingClientRect();if(a==="if-needed"&&I>=0&&k>=0&&$<=x&&_<=E&&I>=A&&$<=Z&&k>=V&&_<=P)return z;const Y=getComputedStyle(j),ee=parseInt(Y.borderLeftWidth,10),ue=parseInt(Y.borderTopWidth,10),ne=parseInt(Y.borderRightWidth,10),se=parseInt(Y.borderBottomWidth,10);let me=0,ye=0;const de="offsetWidth"in j?j.offsetWidth-j.clientWidth-ee-ne:0,ce="offsetHeight"in j?j.offsetHeight-j.clientHeight-ue-se:0,oe="offsetWidth"in j?j.offsetWidth===0?0:q/j.offsetWidth:0,pe="offsetHeight"in j?j.offsetHeight===0?0:U/j.offsetHeight:0;if(m===j)me=l==="start"?L:l==="end"?L-x:l==="nearest"?eg(S,S+x,x,ue,se,S+L,S+L+T,T):L-x/2,ye=c==="start"?D:c==="center"?D-E/2:c==="end"?D-E:eg(C,C+E,E,ee,ne,C+D,C+D+O,O),me=Math.max(0,me+S),ye=Math.max(0,ye+C);else{me=l==="start"?L-A-ue:l==="end"?L-Z+se+ce:l==="nearest"?eg(A,Z,U,ue,se+ce,L,L+T,T):L-(A+U/2)+ce/2,ye=c==="start"?D-V-ee:c==="center"?D-(V+q/2)+de/2:c==="end"?D-P+ne+de:eg(V,P,q,ee,ne+de,D,D+O,O);const{scrollLeft:ve,scrollTop:Te}=j;me=pe===0?0:Math.max(0,Math.min(Te+me/pe,j.scrollHeight-U/pe+ce)),ye=oe===0?0:Math.max(0,Math.min(ve+ye/oe,j.scrollWidth-q/oe+de)),L+=Te-me,D+=ve-ye}z.push({el:j,top:me,left:ye})}return z},kJ=e=>e===!1?{block:"end",inline:"nearest"}:(t=>t===Object(t)&&Object.keys(t).length!==0)(e)?e:{block:"start",inline:"nearest"};function RJ(e,t){if(!e.isConnected||!(i=>{let o=i;for(;o&&o.parentNode;){if(o.parentNode===document)return!0;o=o.parentNode instanceof ShadowRoot?o.parentNode.host:o.parentNode}return!1})(e))return;const n=(i=>{const o=window.getComputedStyle(i);return{top:parseFloat(o.scrollMarginTop)||0,right:parseFloat(o.scrollMarginRight)||0,bottom:parseFloat(o.scrollMarginBottom)||0,left:parseFloat(o.scrollMarginLeft)||0}})(e);if((i=>typeof i=="object"&&typeof i.behavior=="function")(t))return t.behavior(E_(e,t));const r=typeof t=="boolean"||t==null?void 0:t.behavior;for(const{el:i,top:o,left:a}of E_(e,kJ(t))){const l=o-n.top+n.bottom,c=a-n.left+n.right;i.scroll({top:l,left:c,behavior:r})}}function PS(e){return e!=null&&e===e.window}const MJ=e=>{var t,n;if(typeof window>"u")return 0;let r=0;return PS(e)?r=e.pageYOffset:e instanceof Document?r=e.documentElement.scrollTop:(e instanceof HTMLElement||e)&&(r=e.scrollTop),e&&!PS(e)&&typeof r!="number"&&(r=(n=((t=e.ownerDocument)!==null&&t!==void 0?t:e).documentElement)===null||n===void 0?void 0:n.scrollTop),r};function PJ(e,t,n,r){const i=n-t;return e/=r/2,e<1?i/2*e*e*e+t:i/2*((e-=2)*e*e+2)+t}function LJ(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{getContainer:n=()=>window,callback:r,duration:i=450}=t,o=n(),a=MJ(o),l=Date.now(),c=()=>{const f=Date.now()-l,p=PJ(f>i?i:f,a,e,i);PS(o)?o.scrollTo(window.pageXOffset,p):o instanceof Document||o.constructor.name==="HTMLDocument"?o.documentElement.scrollTop=p:o.scrollTop=p,f<i?kn(c):typeof r=="function"&&r()};kn(c)}const Kr=e=>{const[,,,,t]=Bi();return t?`${e}-css-var`:""};var it={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>=it.F1&&n<=it.F12)return!1;switch(n){case it.ALT:case it.CAPS_LOCK:case it.CONTEXT_MENU:case it.CTRL:case it.DOWN:case it.END:case it.ESC:case it.HOME:case it.INSERT:case it.LEFT:case it.MAC_FF_META:case it.META:case it.NUMLOCK:case it.NUM_CENTER:case it.PAGE_DOWN:case it.PAGE_UP:case it.PAUSE:case it.PRINT_SCREEN:case it.RIGHT:case it.SHIFT:case it.UP:case it.WIN_KEY:case it.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(t){if(t>=it.ZERO&&t<=it.NINE||t>=it.NUM_ZERO&&t<=it.NUM_MULTIPLY||t>=it.A&&t<=it.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&t===0)return!0;switch(t){case it.SPACE:case it.QUESTION_MARK:case it.NUM_PLUS:case it.NUM_MINUS:case it.NUM_PERIOD:case it.NUM_DIVISION:case it.SEMICOLON:case it.DASH:case it.EQUALS:case it.COMMA:case it.PERIOD:case it.SLASH:case it.APOSTROPHE:case it.SINGLE_QUOTE:case it.OPEN_SQUARE_BRACKET:case it.BACKSLASH:case it.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},jL=d.forwardRef(function(e,t){var n=e.prefixCls,r=e.style,i=e.className,o=e.duration,a=o===void 0?4.5:o,l=e.showProgress,c=e.pauseOnHover,u=c===void 0?!0:c,f=e.eventKey,p=e.content,m=e.closable,g=e.closeIcon,b=g===void 0?"x":g,E=e.props,x=e.onClick,C=e.onNoticeClose,S=e.times,T=e.hovering,O=d.useState(!1),I=Oe(O,2),_=I[0],$=I[1],k=d.useState(0),R=Oe(k,2),M=R[0],H=R[1],B=d.useState(0),L=Oe(B,2),D=L[0],z=L[1],W=T||_,j=a>0&&l,U=function(){C(f)},q=function(ee){(ee.key==="Enter"||ee.code==="Enter"||ee.keyCode===it.ENTER)&&U()};d.useEffect(function(){if(!W&&a>0){var Y=Date.now()-D,ee=setTimeout(function(){U()},a*1e3-D);return function(){u&&clearTimeout(ee),z(Date.now()-Y)}}},[a,W,S]),d.useEffect(function(){if(!W&&j&&(u||D===0)){var Y=performance.now(),ee,ue=function ne(){cancelAnimationFrame(ee),ee=requestAnimationFrame(function(se){var me=se+D-Y,ye=Math.min(me/(a*1e3),1);H(ye*100),ye<1&&ne()})};return ue(),function(){u&&cancelAnimationFrame(ee)}}},[a,D,W,j,S]);var A=d.useMemo(function(){return $t(m)==="object"&&m!==null?m:m?{closeIcon:b}:{}},[m,b]),P=_i(A,!0),Z=100-(!M||M<0?0:M>100?100:M),V="".concat(n,"-notice");return d.createElement("div",ze({},E,{ref:t,className:le(V,i,J({},"".concat(V,"-closable"),m)),style:r,onMouseEnter:function(ee){var ue;$(!0),E==null||(ue=E.onMouseEnter)===null||ue===void 0||ue.call(E,ee)},onMouseLeave:function(ee){var ue;$(!1),E==null||(ue=E.onMouseLeave)===null||ue===void 0||ue.call(E,ee)},onClick:x}),d.createElement("div",{className:"".concat(V,"-content")},p),m&&d.createElement("a",ze({tabIndex:0,className:"".concat(V,"-close"),onKeyDown:q,"aria-label":"Close"},P,{onClick:function(ee){ee.preventDefault(),ee.stopPropagation(),U()}}),A.closeIcon),j&&d.createElement("progress",{className:"".concat(V,"-progress"),max:"100",value:Z},Z+"%"))}),HL=be.createContext({}),DJ=function(t){var n=t.children,r=t.classNames;return be.createElement(HL.Provider,{value:{classNames:r}},n)},x_=8,w_=3,T_=16,FJ=function(t){var n={offset:x_,threshold:w_,gap:T_};if(t&&$t(t)==="object"){var r,i,o;n.offset=(r=t.offset)!==null&&r!==void 0?r:x_,n.threshold=(i=t.threshold)!==null&&i!==void 0?i:w_,n.gap=(o=t.gap)!==null&&o!==void 0?o:T_}return[!!t,n]},BJ=["className","style","classNames","styles"],jJ=function(t){var n=t.configList,r=t.placement,i=t.prefixCls,o=t.className,a=t.style,l=t.motion,c=t.onAllNoticeRemoved,u=t.onNoticeClose,f=t.stack,p=d.useContext(HL),m=p.classNames,g=d.useRef({}),b=d.useState(null),E=Oe(b,2),x=E[0],C=E[1],S=d.useState([]),T=Oe(S,2),O=T[0],I=T[1],_=n.map(function(W){return{config:W,key:String(W.key)}}),$=FJ(f),k=Oe($,2),R=k[0],M=k[1],H=M.offset,B=M.threshold,L=M.gap,D=R&&(O.length>0||_.length<=B),z=typeof l=="function"?l(r):l;return d.useEffect(function(){R&&O.length>1&&I(function(W){return W.filter(function(j){return _.some(function(U){var q=U.key;return j===q})})})},[O,_,R]),d.useEffect(function(){var W;if(R&&g.current[(W=_[_.length-1])===null||W===void 0?void 0:W.key]){var j;C(g.current[(j=_[_.length-1])===null||j===void 0?void 0:j.key])}},[_,R]),be.createElement(f8,ze({key:r,className:le(i,"".concat(i,"-").concat(r),m==null?void 0:m.list,o,J(J({},"".concat(i,"-stack"),!!R),"".concat(i,"-stack-expanded"),D)),style:a,keys:_,motionAppear:!0},z,{onAllRemoved:function(){c(r)}}),function(W,j){var U=W.config,q=W.className,A=W.style,P=W.index,Z=U,V=Z.key,Y=Z.times,ee=String(V),ue=U,ne=ue.className,se=ue.style,me=ue.classNames,ye=ue.styles,de=Gt(ue,BJ),ce=_.findIndex(function(Fe){return Fe.key===ee}),oe={};if(R){var pe=_.length-1-(ce>-1?ce:P-1),ve=r==="top"||r==="bottom"?"-50%":"0";if(pe>0){var Te,Ge,je;oe.height=D?(Te=g.current[ee])===null||Te===void 0?void 0:Te.offsetHeight:x==null?void 0:x.offsetHeight;for(var Je=0,Se=0;Se<pe;Se++){var $e;Je+=(($e=g.current[_[_.length-1-Se].key])===null||$e===void 0?void 0:$e.offsetHeight)+L}var qe=(D?Je:pe*H)*(r.startsWith("top")?1:-1),Le=!D&&x!==null&&x!==void 0&&x.offsetWidth&&(Ge=g.current[ee])!==null&&Ge!==void 0&&Ge.offsetWidth?((x==null?void 0:x.offsetWidth)-H*2*(pe<3?pe:3))/((je=g.current[ee])===null||je===void 0?void 0:je.offsetWidth):1;oe.transform="translate3d(".concat(ve,", ").concat(qe,"px, 0) scaleX(").concat(Le,")")}else oe.transform="translate3d(".concat(ve,", 0, 0)")}return be.createElement("div",{ref:j,className:le("".concat(i,"-notice-wrapper"),q,me==null?void 0:me.wrapper),style:te(te(te({},A),oe),ye==null?void 0:ye.wrapper),onMouseEnter:function(){return I(function(Ke){return Ke.includes(ee)?Ke:[].concat(Qe(Ke),[ee])})},onMouseLeave:function(){return I(function(Ke){return Ke.filter(function(Ve){return Ve!==ee})})}},be.createElement(jL,ze({},de,{ref:function(Ke){ce>-1?g.current[ee]=Ke:delete g.current[ee]},prefixCls:i,classNames:me,styles:ye,className:le(ne,m==null?void 0:m.notice),style:se,times:Y,key:V,eventKey:V,onNoticeClose:u,hovering:R&&O.length>0})))})},HJ=d.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-notification":n,i=e.container,o=e.motion,a=e.maxCount,l=e.className,c=e.style,u=e.onAllRemoved,f=e.stack,p=e.renderNotifications,m=d.useState([]),g=Oe(m,2),b=g[0],E=g[1],x=function(R){var M,H=b.find(function(B){return B.key===R});H==null||(M=H.onClose)===null||M===void 0||M.call(H),E(function(B){return B.filter(function(L){return L.key!==R})})};d.useImperativeHandle(t,function(){return{open:function(R){E(function(M){var H=Qe(M),B=H.findIndex(function(z){return z.key===R.key}),L=te({},R);if(B>=0){var D;L.times=(((D=M[B])===null||D===void 0?void 0:D.times)||0)+1,H[B]=L}else L.times=0,H.push(L);return a>0&&H.length>a&&(H=H.slice(-a)),H})},close:function(R){x(R)},destroy:function(){E([])}}});var C=d.useState({}),S=Oe(C,2),T=S[0],O=S[1];d.useEffect(function(){var k={};b.forEach(function(R){var M=R.placement,H=M===void 0?"topRight":M;H&&(k[H]=k[H]||[],k[H].push(R))}),Object.keys(T).forEach(function(R){k[R]=k[R]||[]}),O(k)},[b]);var I=function(R){O(function(M){var H=te({},M),B=H[R]||[];return B.length||delete H[R],H})},_=d.useRef(!1);if(d.useEffect(function(){Object.keys(T).length>0?_.current=!0:_.current&&(u==null||u(),_.current=!1)},[T]),!i)return null;var $=Object.keys(T);return Oa.createPortal(d.createElement(d.Fragment,null,$.map(function(k){var R=T[k],M=d.createElement(jJ,{key:k,configList:R,placement:k,prefixCls:r,className:l==null?void 0:l(k),style:c==null?void 0:c(k),motion:o,onNoticeClose:x,onAllNoticeRemoved:I,stack:f});return p?p(M,{prefixCls:r,key:k}):M})),i)}),zJ=["getContainer","motion","prefixCls","maxCount","className","style","onAllRemoved","stack","renderNotifications"],WJ=function(){return document.body},__=0;function UJ(){for(var e={},t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach(function(i){i&&Object.keys(i).forEach(function(o){var a=i[o];a!==void 0&&(e[o]=a)})}),e}function KJ(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.getContainer,n=t===void 0?WJ:t,r=e.motion,i=e.prefixCls,o=e.maxCount,a=e.className,l=e.style,c=e.onAllRemoved,u=e.stack,f=e.renderNotifications,p=Gt(e,zJ),m=d.useState(),g=Oe(m,2),b=g[0],E=g[1],x=d.useRef(),C=d.createElement(HJ,{container:b,ref:x,prefixCls:i,motion:r,maxCount:o,className:a,style:l,onAllRemoved:c,stack:u,renderNotifications:f}),S=d.useState([]),T=Oe(S,2),O=T[0],I=T[1],_=d.useMemo(function(){return{open:function(k){var R=UJ(p,k);(R.key===null||R.key===void 0)&&(R.key="rc-notification-".concat(__),__+=1),I(function(M){return[].concat(Qe(M),[{type:"open",config:R}])})},close:function(k){I(function(R){return[].concat(Qe(R),[{type:"close",key:k}])})},destroy:function(){I(function(k){return[].concat(Qe(k),[{type:"destroy"}])})}}},[]);return d.useEffect(function(){E(n())}),d.useEffect(function(){x.current&&O.length&&(O.forEach(function($){switch($.type){case"open":x.current.open($.config);break;case"close":x.current.close($.key);break;case"destroy":x.current.destroy();break}}),I(function($){return $.filter(function(k){return!O.includes(k)})}))},[O]),[_,C]}var VJ={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"},GJ=function(t,n){return d.createElement(on,ze({},t,{ref:n,icon:VJ}))},Ec=d.forwardRef(GJ);const Ob=be.createContext(void 0),Ws=100,qJ=10,zL=Ws*qJ,WL={Modal:Ws,Drawer:Ws,Popover:Ws,Popconfirm:Ws,Tooltip:Ws,Tour:Ws,FloatButton:Ws},XJ={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function YJ(e){return e in WL}const xm=(e,t)=>{const[,n]=Bi(),r=be.useContext(Ob),i=YJ(e);let o;if(t!==void 0)o=[t,t];else{let a=r??0;i?a+=(r?0:n.zIndexPopupBase)+WL[e]:a+=XJ[e],o=[r===void 0?t:a,a]}return o},QJ=e=>{const{componentCls:t,iconCls:n,boxShadow:r,colorText:i,colorSuccess:o,colorError:a,colorWarning:l,colorInfo:c,fontSizeLG:u,motionEaseInOutCirc:f,motionDurationSlow:p,marginXS:m,paddingXS:g,borderRadiusLG:b,zIndexPopup:E,contentPadding:x,contentBg:C}=e,S=`${t}-notice`,T=new Sn("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:g,transform:"translateY(0)",opacity:1}}),O=new Sn("MessageMoveOut",{"0%":{maxHeight:e.height,padding:g,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}}),I={padding:g,textAlign:"center",[`${t}-custom-content`]:{display:"flex",alignItems:"center"},[`${t}-custom-content > ${n}`]:{marginInlineEnd:m,fontSize:u},[`${S}-content`]:{display:"inline-block",padding:x,background:C,borderRadius:b,boxShadow:r,pointerEvents:"all"},[`${t}-success > ${n}`]:{color:o},[`${t}-error > ${n}`]:{color:a},[`${t}-warning > ${n}`]:{color:l},[`${t}-info > ${n},
${t}-loading > ${n}`]:{color:c}};return[{[t]:Object.assign(Object.assign({},Fn(e)),{color:i,position:"fixed",top:m,width:"100%",pointerEvents:"none",zIndex:E,[`${t}-move-up`]:{animationFillMode:"forwards"},[`
${t}-move-up-appear,
${t}-move-up-enter
`]:{animationName:T,animationDuration:p,animationPlayState:"paused",animationTimingFunction:f},[`
${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:O,animationDuration:p,animationPlayState:"paused",animationTimingFunction:f},[`${t}-move-up-leave${t}-move-up-leave-active`]:{animationPlayState:"running"},"&-rtl":{direction:"rtl",span:{direction:"rtl"}}})},{[t]:{[`${S}-wrapper`]:Object.assign({},I)}},{[`${t}-notice-pure-panel`]:Object.assign(Object.assign({},I),{padding:0,textAlign:"start"})}]},ZJ=e=>({zIndexPopup:e.zIndexPopupBase+zL+10,contentBg:e.colorBgElevated,contentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`}),UL=Mn("Message",e=>{const t=hn(e,{height:150});return[QJ(t)]},ZJ);var JJ=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const eee={info:d.createElement(DL,null),success:d.createElement(Em,null),error:d.createElement(Ku,null),warning:d.createElement(_b,null),loading:d.createElement(Ec,null)},KL=e=>{let{prefixCls:t,type:n,icon:r,children:i}=e;return d.createElement("div",{className:le(`${t}-custom-content`,`${t}-${n}`)},r||eee[n],d.createElement("span",null,i))},tee=e=>{const{prefixCls:t,className:n,type:r,icon:i,content:o}=e,a=JJ(e,["prefixCls","className","type","icon","content"]),{getPrefixCls:l}=d.useContext(At),c=t||l("message"),u=Kr(c),[f,p,m]=UL(c,u);return f(d.createElement(jL,Object.assign({},a,{prefixCls:c,className:le(n,p,`${c}-notice-pure-panel`,m,u),eventKey:"pure",duration:null,content:d.createElement(KL,{prefixCls:c,type:r,icon:i},o)})))};function nee(e,t){return{motionName:t??`${e}-move-up`}}function h8(e){let t;const n=new Promise(i=>{t=e(()=>{i(!0)})}),r=()=>{t==null||t()};return r.then=(i,o)=>n.then(i,o),r.promise=n,r}var ree=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const iee=8,oee=3,aee=e=>{let{children:t,prefixCls:n}=e;const r=Kr(n),[i,o,a]=UL(n,r);return i(d.createElement(DJ,{classNames:{list:le(o,a,r)}},t))},lee=(e,t)=>{let{prefixCls:n,key:r}=t;return d.createElement(aee,{prefixCls:n,key:r},e)},see=d.forwardRef((e,t)=>{const{top:n,prefixCls:r,getContainer:i,maxCount:o,duration:a=oee,rtl:l,transitionName:c,onAllRemoved:u}=e,{getPrefixCls:f,getPopupContainer:p,message:m,direction:g}=d.useContext(At),b=r||f("message"),E=()=>({left:"50%",transform:"translateX(-50%)",top:n??iee}),x=()=>le({[`${b}-rtl`]:l??g==="rtl"}),C=()=>nee(b,c),S=d.createElement("span",{className:`${b}-close-x`},d.createElement(Vu,{className:`${b}-close-icon`})),[T,O]=KJ({prefixCls:b,style:E,className:x,motion:C,closable:!1,closeIcon:S,duration:a,getContainer:()=>(i==null?void 0:i())||(p==null?void 0:p())||document.body,maxCount:o,onAllRemoved:u,renderNotifications:lee});return d.useImperativeHandle(t,()=>Object.assign(Object.assign({},T),{prefixCls:b,message:m})),O});let O_=0;function VL(e){const t=d.useRef(null);return Mc(),[d.useMemo(()=>{const r=c=>{var u;(u=t.current)===null||u===void 0||u.close(c)},i=c=>{if(!t.current){const _=()=>{};return _.then=()=>{},_}const{open:u,prefixCls:f,message:p}=t.current,m=`${f}-notice`,{content:g,icon:b,type:E,key:x,className:C,style:S,onClose:T}=c,O=ree(c,["content","icon","type","key","className","style","onClose"]);let I=x;return I==null&&(O_+=1,I=`antd-message-${O_}`),h8(_=>(u(Object.assign(Object.assign({},O),{key:I,content:d.createElement(KL,{prefixCls:f,type:E,icon:b},g),placement:"top",className:le(E&&`${m}-${E}`,C,p==null?void 0:p.className),style:Object.assign(Object.assign({},p==null?void 0:p.style),S),onClose:()=>{T==null||T(),_()}})),()=>{r(I)}))},a={open:i,destroy:c=>{var u;c!==void 0?r(c):(u=t.current)===null||u===void 0||u.destroy()}};return["info","success","warning","error","loading"].forEach(c=>{const u=(f,p,m)=>{let g;f&&typeof f=="object"&&"content"in f?g=f:g={content:f};let b,E;typeof p=="function"?E=p:(b=p,E=m);const x=Object.assign(Object.assign({onClose:E,duration:b},g),{type:c});return i(x)};a[c]=u}),a},[]),d.createElement(see,Object.assign({key:"message-holder"},e,{ref:t}))]}function cee(e){return VL(e)}function uee(){const[e,t]=d.useState([]),n=d.useCallback(r=>(t(i=>[].concat(Qe(i),[r])),()=>{t(i=>i.filter(o=>o!==r))}),[]);return[e,n]}function ir(){ir=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(W,j,U){W[j]=U.value},o=typeof Symbol=="function"?Symbol:{},a=o.iterator||"@@iterator",l=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(W,j,U){return Object.defineProperty(W,j,{value:U,enumerable:!0,configurable:!0,writable:!0}),W[j]}try{u({},"")}catch{u=function(U,q,A){return U[q]=A}}function f(W,j,U,q){var A=j&&j.prototype instanceof C?j:C,P=Object.create(A.prototype),Z=new D(q||[]);return i(P,"_invoke",{value:M(W,U,Z)}),P}function p(W,j,U){try{return{type:"normal",arg:W.call(j,U)}}catch(q){return{type:"throw",arg:q}}}t.wrap=f;var m="suspendedStart",g="suspendedYield",b="executing",E="completed",x={};function C(){}function S(){}function T(){}var O={};u(O,a,function(){return this});var I=Object.getPrototypeOf,_=I&&I(I(z([])));_&&_!==n&&r.call(_,a)&&(O=_);var $=T.prototype=C.prototype=Object.create(O);function k(W){["next","throw","return"].forEach(function(j){u(W,j,function(U){return this._invoke(j,U)})})}function R(W,j){function U(A,P,Z,V){var Y=p(W[A],W,P);if(Y.type!=="throw"){var ee=Y.arg,ue=ee.value;return ue&&$t(ue)=="object"&&r.call(ue,"__await")?j.resolve(ue.__await).then(function(ne){U("next",ne,Z,V)},function(ne){U("throw",ne,Z,V)}):j.resolve(ue).then(function(ne){ee.value=ne,Z(ee)},function(ne){return U("throw",ne,Z,V)})}V(Y.arg)}var q;i(this,"_invoke",{value:function(P,Z){function V(){return new j(function(Y,ee){U(P,Z,Y,ee)})}return q=q?q.then(V,V):V()}})}function M(W,j,U){var q=m;return function(A,P){if(q===b)throw Error("Generator is already running");if(q===E){if(A==="throw")throw P;return{value:e,done:!0}}for(U.method=A,U.arg=P;;){var Z=U.delegate;if(Z){var V=H(Z,U);if(V){if(V===x)continue;return V}}if(U.method==="next")U.sent=U._sent=U.arg;else if(U.method==="throw"){if(q===m)throw q=E,U.arg;U.dispatchException(U.arg)}else U.method==="return"&&U.abrupt("return",U.arg);q=b;var Y=p(W,j,U);if(Y.type==="normal"){if(q=U.done?E:g,Y.arg===x)continue;return{value:Y.arg,done:U.done}}Y.type==="throw"&&(q=E,U.method="throw",U.arg=Y.arg)}}}function H(W,j){var U=j.method,q=W.iterator[U];if(q===e)return j.delegate=null,U==="throw"&&W.iterator.return&&(j.method="return",j.arg=e,H(W,j),j.method==="throw")||U!=="return"&&(j.method="throw",j.arg=new TypeError("The iterator does not provide a '"+U+"' method")),x;var A=p(q,W.iterator,j.arg);if(A.type==="throw")return j.method="throw",j.arg=A.arg,j.delegate=null,x;var P=A.arg;return P?P.done?(j[W.resultName]=P.value,j.next=W.nextLoc,j.method!=="return"&&(j.method="next",j.arg=e),j.delegate=null,x):P:(j.method="throw",j.arg=new TypeError("iterator result is not an object"),j.delegate=null,x)}function B(W){var j={tryLoc:W[0]};1 in W&&(j.catchLoc=W[1]),2 in W&&(j.finallyLoc=W[2],j.afterLoc=W[3]),this.tryEntries.push(j)}function L(W){var j=W.completion||{};j.type="normal",delete j.arg,W.completion=j}function D(W){this.tryEntries=[{tryLoc:"root"}],W.forEach(B,this),this.reset(!0)}function z(W){if(W||W===""){var j=W[a];if(j)return j.call(W);if(typeof W.next=="function")return W;if(!isNaN(W.length)){var U=-1,q=function A(){for(;++U<W.length;)if(r.call(W,U))return A.value=W[U],A.done=!1,A;return A.value=e,A.done=!0,A};return q.next=q}}throw new TypeError($t(W)+" is not iterable")}return S.prototype=T,i($,"constructor",{value:T,configurable:!0}),i(T,"constructor",{value:S,configurable:!0}),S.displayName=u(T,c,"GeneratorFunction"),t.isGeneratorFunction=function(W){var j=typeof W=="function"&&W.constructor;return!!j&&(j===S||(j.displayName||j.name)==="GeneratorFunction")},t.mark=function(W){return Object.setPrototypeOf?Object.setPrototypeOf(W,T):(W.__proto__=T,u(W,c,"GeneratorFunction")),W.prototype=Object.create($),W},t.awrap=function(W){return{__await:W}},k(R.prototype),u(R.prototype,l,function(){return this}),t.AsyncIterator=R,t.async=function(W,j,U,q,A){A===void 0&&(A=Promise);var P=new R(f(W,j,U,q),A);return t.isGeneratorFunction(j)?P:P.next().then(function(Z){return Z.done?Z.value:P.next()})},k($),u($,c,"Generator"),u($,a,function(){return this}),u($,"toString",function(){return"[object Generator]"}),t.keys=function(W){var j=Object(W),U=[];for(var q in j)U.push(q);return U.reverse(),function A(){for(;U.length;){var P=U.pop();if(P in j)return A.value=P,A.done=!1,A}return A.done=!0,A}},t.values=z,D.prototype={constructor:D,reset:function(j){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(L),!j)for(var U in this)U.charAt(0)==="t"&&r.call(this,U)&&!isNaN(+U.slice(1))&&(this[U]=e)},stop:function(){this.done=!0;var j=this.tryEntries[0].completion;if(j.type==="throw")throw j.arg;return this.rval},dispatchException:function(j){if(this.done)throw j;var U=this;function q(ee,ue){return Z.type="throw",Z.arg=j,U.next=ee,ue&&(U.method="next",U.arg=e),!!ue}for(var A=this.tryEntries.length-1;A>=0;--A){var P=this.tryEntries[A],Z=P.completion;if(P.tryLoc==="root")return q("end");if(P.tryLoc<=this.prev){var V=r.call(P,"catchLoc"),Y=r.call(P,"finallyLoc");if(V&&Y){if(this.prev<P.catchLoc)return q(P.catchLoc,!0);if(this.prev<P.finallyLoc)return q(P.finallyLoc)}else if(V){if(this.prev<P.catchLoc)return q(P.catchLoc,!0)}else{if(!Y)throw Error("try statement without catch or finally");if(this.prev<P.finallyLoc)return q(P.finallyLoc)}}}},abrupt:function(j,U){for(var q=this.tryEntries.length-1;q>=0;--q){var A=this.tryEntries[q];if(A.tryLoc<=this.prev&&r.call(A,"finallyLoc")&&this.prev<A.finallyLoc){var P=A;break}}P&&(j==="break"||j==="continue")&&P.tryLoc<=U&&U<=P.finallyLoc&&(P=null);var Z=P?P.completion:{};return Z.type=j,Z.arg=U,P?(this.method="next",this.next=P.finallyLoc,x):this.complete(Z)},complete:function(j,U){if(j.type==="throw")throw j.arg;return j.type==="break"||j.type==="continue"?this.next=j.arg:j.type==="return"?(this.rval=this.arg=j.arg,this.method="return",this.next="end"):j.type==="normal"&&U&&(this.next=U),x},finish:function(j){for(var U=this.tryEntries.length-1;U>=0;--U){var q=this.tryEntries[U];if(q.finallyLoc===j)return this.complete(q.completion,q.afterLoc),L(q),x}},catch:function(j){for(var U=this.tryEntries.length-1;U>=0;--U){var q=this.tryEntries[U];if(q.tryLoc===j){var A=q.completion;if(A.type==="throw"){var P=A.arg;L(q)}return P}}throw Error("illegal catch attempt")},delegateYield:function(j,U,q){return this.delegate={iterator:z(j),resultName:U,nextLoc:q},this.method==="next"&&(this.arg=e),x}},t}function I_(e,t,n,r,i,o,a){try{var l=e[o](a),c=l.value}catch(u){return void n(u)}l.done?t(c):Promise.resolve(c).then(r,i)}function Yo(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var o=e.apply(t,n);function a(c){I_(o,r,i,a,l,"next",c)}function l(c){I_(o,r,i,a,l,"throw",c)}a(void 0)})}}var wm=te({},tP),dee=wm.version,fee=wm.render,hee=wm.unmountComponentAtNode,Ib;try{var pee=Number((dee||"").split(".")[0]);pee>=18&&(Ib=wm.createRoot)}catch{}function $_(e){var t=wm.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&$t(t)==="object"&&(t.usingClientEntryPoint=e)}var ly="__rc_react_root__";function mee(e,t){$_(!0);var n=t[ly]||Ib(t);$_(!1),n.render(e),t[ly]=n}function gee(e,t){fee(e,t)}function p8(e,t){if(Ib){mee(e,t);return}gee(e,t)}function vee(e){return LS.apply(this,arguments)}function LS(){return LS=Yo(ir().mark(function e(t){return ir().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.resolve().then(function(){var i;(i=t[ly])===null||i===void 0||i.unmount(),delete t[ly]}));case 1:case"end":return r.stop()}},e)})),LS.apply(this,arguments)}function yee(e){hee(e)}function GL(e){return DS.apply(this,arguments)}function DS(){return DS=Yo(ir().mark(function e(t){return ir().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(Ib===void 0){r.next=2;break}return r.abrupt("return",vee(t));case 2:yee(t);case 3:case"end":return r.stop()}},e)})),DS.apply(this,arguments)}const p4=()=>({height:0,opacity:0}),N_=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},bee=e=>({height:e?e.offsetHeight:0}),m4=(e,t)=>(t==null?void 0:t.deadline)===!0||t.propertyName==="height",Xp=function(){return{motionName:`${arguments.length>0&&arguments[0]!==void 0?arguments[0]:Gp}-motion-collapse`,onAppearStart:p4,onEnterStart:p4,onAppearActive:N_,onEnterActive:N_,onLeaveStart:bee,onLeaveActive:p4,onAppearEnd:m4,onEnterEnd:m4,onLeaveEnd:m4,motionDeadline:500}},xc=(e,t,n)=>n!==void 0?n:`${e}-${t}`,Tm=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 i=e.getBoundingClientRect(),o=i.width,a=i.height;if(o||a)return!0}}return!1},Cee=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 ${e.motionDurationSlow} ${e.motionEaseInOut}`,`opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`].join(",")}}}}},See=_Z("Wave",e=>[Cee(e)]),$b=`${Gp}-wave-target`;function g4(e){return e&&e!=="#fff"&&e!=="#ffffff"&&e!=="rgb(255, 255, 255)"&&e!=="rgba(255, 255, 255, 1)"&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&e!=="transparent"}function Eee(e){const{borderTopColor:t,borderColor:n,backgroundColor:r}=getComputedStyle(e);return g4(t)?t:g4(n)?n:g4(r)?r:null}function v4(e){return Number.isNaN(e)?0:e}const xee=e=>{const{className:t,target:n,component:r}=e,i=d.useRef(null),[o,a]=d.useState(null),[l,c]=d.useState([]),[u,f]=d.useState(0),[p,m]=d.useState(0),[g,b]=d.useState(0),[E,x]=d.useState(0),[C,S]=d.useState(!1),T={left:u,top:p,width:g,height:E,borderRadius:l.map(_=>`${_}px`).join(" ")};o&&(T["--wave-color"]=o);function O(){const _=getComputedStyle(n);a(Eee(n));const $=_.position==="static",{borderLeftWidth:k,borderTopWidth:R}=_;f($?n.offsetLeft:v4(-parseFloat(k))),m($?n.offsetTop:v4(-parseFloat(R))),b(n.offsetWidth),x(n.offsetHeight);const{borderTopLeftRadius:M,borderTopRightRadius:H,borderBottomLeftRadius:B,borderBottomRightRadius:L}=_;c([M,H,L,B].map(D=>v4(parseFloat(D))))}if(d.useEffect(()=>{if(n){const _=kn(()=>{O(),S(!0)});let $;return typeof ResizeObserver<"u"&&($=new ResizeObserver(O),$.observe(n)),()=>{kn.cancel(_),$==null||$.disconnect()}}},[]),!C)return null;const I=(r==="Checkbox"||r==="Radio")&&(n==null?void 0:n.classList.contains($b));return d.createElement(ca,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(_,$)=>{var k;if($.deadline||$.propertyName==="opacity"){const R=(k=i.current)===null||k===void 0?void 0:k.parentElement;GL(R).then(()=>{R==null||R.remove()})}return!1}},(_,$)=>{let{className:k}=_;return d.createElement("div",{ref:eo(i,$),className:le(t,k,{"wave-quick":I}),style:T})})},wee=(e,t)=>{var n;const{component:r}=t;if(r==="Checkbox"&&!(!((n=e.querySelector("input"))===null||n===void 0)&&n.checked))return;const i=document.createElement("div");i.style.position="absolute",i.style.left="0px",i.style.top="0px",e==null||e.insertBefore(i,e==null?void 0:e.firstChild),p8(d.createElement(xee,Object.assign({},t,{target:e})),i)},Tee=(e,t,n)=>{const{wave:r}=d.useContext(At),[,i,o]=Bi(),a=Hn(u=>{const f=e.current;if(r!=null&&r.disabled||!f)return;const p=f.querySelector(`.${$b}`)||f,{showEffect:m}=r||{};(m||wee)(p,{className:t,token:i,component:n,event:u,hashId:o})}),l=d.useRef();return u=>{kn.cancel(l.current),l.current=kn(()=>{a(u)})}},Nb=e=>{const{children:t,disabled:n,component:r}=e,{getPrefixCls:i}=d.useContext(At),o=d.useRef(null),a=i("wave"),[,l]=See(a),c=Tee(o,le(a,l),r);if(be.useEffect(()=>{const f=o.current;if(!f||f.nodeType!==1||n)return;const p=m=>{!Tm(m.target)||!f.getAttribute||f.getAttribute("disabled")||f.disabled||f.className.includes("disabled")||f.className.includes("-leave")||c(m)};return f.addEventListener("click",p,!0),()=>{f.removeEventListener("click",p,!0)}},[n]),!be.isValidElement(t))return t??null;const u=ol(t)?eo(t.ref,o):o;return mi(t,{ref:u})},vo=e=>{const t=be.useContext(Lu);return be.useMemo(()=>e?typeof e=="string"?e??t:e instanceof Function?e(t):t:t,[e,t])},_ee=e=>{const{componentCls:t}=e;return{[t]:{"&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}},Oee=e=>{const{componentCls:t,antCls:n}=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"},[`${t}-item > ${n}-badge-not-a-wrapper:only-child`]:{display:"block"}}}},Iee=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}}}},qL=Mn("Space",e=>{const t=hn(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[Oee(t),Iee(t),_ee(t)]},()=>({}),{resetStyle:!1});var XL=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const Ab=d.createContext(null),_m=(e,t)=>{const n=d.useContext(Ab),r=d.useMemo(()=>{if(!n)return"";const{compactDirection:i,isFirstItem:o,isLastItem:a}=n,l=i==="vertical"?"-vertical-":"-";return le(`${e}-compact${l}item`,{[`${e}-compact${l}first-item`]:o,[`${e}-compact${l}last-item`]:a,[`${e}-compact${l}item-rtl`]:t==="rtl"})},[e,t,n]);return{compactSize:n==null?void 0:n.compactSize,compactDirection:n==null?void 0:n.compactDirection,compactItemClassnames:r}},$ee=e=>{let{children:t}=e;return d.createElement(Ab.Provider,{value:null},t)},Nee=e=>{var{children:t}=e,n=XL(e,["children"]);return d.createElement(Ab.Provider,{value:n},t)},Aee=e=>{const{getPrefixCls:t,direction:n}=d.useContext(At),{size:r,direction:i,block:o,prefixCls:a,className:l,rootClassName:c,children:u}=e,f=XL(e,["size","direction","block","prefixCls","className","rootClassName","children"]),p=vo(T=>r??T),m=t("space-compact",a),[g,b]=qL(m),E=le(m,b,{[`${m}-rtl`]:n==="rtl",[`${m}-block`]:o,[`${m}-vertical`]:i==="vertical"},l,c),x=d.useContext(Ab),C=ri(u),S=d.useMemo(()=>C.map((T,O)=>{const I=(T==null?void 0:T.key)||`${m}-item-${O}`;return d.createElement(Nee,{key:I,compactSize:p,compactDirection:i,isFirstItem:O===0&&(!x||(x==null?void 0:x.isFirstItem)),isLastItem:O===C.length-1&&(!x||(x==null?void 0:x.isLastItem))},T)}),[r,C,x]);return C.length===0?null:g(d.createElement("div",Object.assign({className:E},f),S))};var kee=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const YL=d.createContext(void 0),Ree=e=>{const{getPrefixCls:t,direction:n}=d.useContext(At),{prefixCls:r,size:i,className:o}=e,a=kee(e,["prefixCls","size","className"]),l=t("btn-group",r),[,,c]=Bi();let u="";switch(i){case"large":u="lg";break;case"small":u="sm";break}const f=le(l,{[`${l}-${u}`]:u,[`${l}-rtl`]:n==="rtl"},o,c);return d.createElement(YL.Provider,{value:i},d.createElement("div",Object.assign({},a,{className:f})))},A_=/^[\u4E00-\u9FA5]{2}$/,FS=A_.test.bind(A_);function QL(e){return e==="danger"?{danger:!0}:{type:e}}function k_(e){return typeof e=="string"}function y4(e){return e==="text"||e==="link"}function Mee(e,t){if(e==null)return;const n=t?" ":"";return typeof e!="string"&&typeof e!="number"&&k_(e.type)&&FS(e.props.children)?mi(e,{children:e.props.children.split("").join(n)}):k_(e)?FS(e)?be.createElement("span",null,e.split("").join(n)):be.createElement("span",null,e):FL(e)?be.createElement("span",null,e):e}function Pee(e,t){let n=!1;const r=[];return be.Children.forEach(e,i=>{const o=typeof i,a=o==="string"||o==="number";if(n&&a){const l=r.length-1,c=r[l];r[l]=`${c}${i}`}else r.push(i);n=a}),be.Children.map(r,i=>Mee(i,t))}const ZL=d.forwardRef((e,t)=>{const{className:n,style:r,children:i,prefixCls:o}=e,a=le(`${o}-icon`,n);return be.createElement("span",{ref:t,className:a,style:r},i)}),R_=d.forwardRef((e,t)=>{const{prefixCls:n,className:r,style:i,iconClassName:o}=e,a=le(`${n}-loading-icon`,r);return be.createElement(ZL,{prefixCls:n,className:a,style:i,ref:t},be.createElement(Ec,{className:o}))}),b4=()=>({width:0,opacity:0,transform:"scale(0)"}),C4=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),Lee=e=>{const{prefixCls:t,loading:n,existIcon:r,className:i,style:o}=e,a=!!n;return r?be.createElement(R_,{prefixCls:t,className:i,style:o}):be.createElement(ca,{visible:a,motionName:`${t}-loading-icon-motion`,motionLeave:a,removeOnLeave:!0,onAppearStart:b4,onAppearActive:C4,onEnterStart:b4,onEnterActive:C4,onLeaveStart:C4,onLeaveActive:b4},(l,c)=>{let{className:u,style:f}=l;return be.createElement(R_,{prefixCls:t,className:i,style:Object.assign(Object.assign({},o),f),ref:c,iconClassName:u})})},M_=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),Dee=e=>{const{componentCls:t,fontSize:n,lineWidth:r,groupBorderColor:i,colorErrorHover:o}=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, &:focus, &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:n}},M_(`${t}-primary`,i),M_(`${t}-danger`,o)]}},Ci=Math.round;function S4(e,t){const n=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],r=n.map(i=>parseFloat(i));for(let i=0;i<3;i+=1)r[i]=t(r[i]||0,n[i]||"",i);return n[3]?r[3]=n[3].includes("%")?r[3]/100:r[3]:r[3]=1,r}const P_=(e,t,n)=>n===0?e:e/100;function fh(e,t){const n=t||255;return e>n?n:e<0?0:e}class kb{constructor(t){J(this,"isValid",!0),J(this,"r",0),J(this,"g",0),J(this,"b",0),J(this,"a",1),J(this,"_h",void 0),J(this,"_s",void 0),J(this,"_l",void 0),J(this,"_v",void 0),J(this,"_max",void 0),J(this,"_min",void 0),J(this,"_brightness",void 0);function n(r){return r[0]in t&&r[1]in t&&r[2]in t}if(t)if(typeof t=="string"){let i=function(o){return r.startsWith(o)};const r=t.trim();/^#?[A-F\d]{3,8}$/i.test(r)?this.fromHexString(r):i("rgb")?this.fromRgbString(r):i("hsl")?this.fromHslString(r):(i("hsv")||i("hsb"))&&this.fromHsvString(r)}else if(t instanceof kb)this.r=t.r,this.g=t.g,this.b=t.b,this.a=t.a,this._h=t._h,this._s=t._s,this._l=t._l,this._v=t._v;else if(n("rgb"))this.r=fh(t.r),this.g=fh(t.g),this.b=fh(t.b),this.a=typeof t.a=="number"?fh(t.a,1):1;else if(n("hsl"))this.fromHsl(t);else if(n("hsv"))this.fromHsv(t);else throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(t))}setR(t){return this._sc("r",t)}setG(t){return this._sc("g",t)}setB(t){return this._sc("b",t)}setA(t){return this._sc("a",t,1)}setHue(t){const n=this.toHsv();return n.h=t,this._c(n)}getLuminance(){function t(o){const a=o/255;return a<=.03928?a/12.92:Math.pow((a+.055)/1.055,2.4)}const n=t(this.r),r=t(this.g),i=t(this.b);return .2126*n+.7152*r+.0722*i}getHue(){if(typeof this._h>"u"){const t=this.getMax()-this.getMin();t===0?this._h=0:this._h=Ci(60*(this.r===this.getMax()?(this.g-this.b)/t+(this.g<this.b?6:0):this.g===this.getMax()?(this.b-this.r)/t+2:(this.r-this.g)/t+4))}return this._h}getSaturation(){if(typeof this._s>"u"){const t=this.getMax()-this.getMin();t===0?this._s=0:this._s=t/this.getMax()}return this._s}getLightness(){return typeof this._l>"u"&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return typeof this._v>"u"&&(this._v=this.getMax()/255),this._v}getBrightness(){return typeof this._brightness>"u"&&(this._brightness=(this.r*299+this.g*587+this.b*114)/1e3),this._brightness}darken(t=10){const n=this.getHue(),r=this.getSaturation();let i=this.getLightness()-t/100;return i<0&&(i=0),this._c({h:n,s:r,l:i,a:this.a})}lighten(t=10){const n=this.getHue(),r=this.getSaturation();let i=this.getLightness()+t/100;return i>1&&(i=1),this._c({h:n,s:r,l:i,a:this.a})}mix(t,n=50){const r=this._c(t),i=n/100,o=l=>(r[l]-this[l])*i+this[l],a={r:Ci(o("r")),g:Ci(o("g")),b:Ci(o("b")),a:Ci(o("a")*100)/100};return this._c(a)}tint(t=10){return this.mix({r:255,g:255,b:255,a:1},t)}shade(t=10){return this.mix({r:0,g:0,b:0,a:1},t)}onBackground(t){const n=this._c(t),r=this.a+n.a*(1-this.a),i=o=>Ci((this[o]*this.a+n[o]*n.a*(1-this.a))/r);return this._c({r:i("r"),g:i("g"),b:i("b"),a:r})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(t){return this.r===t.r&&this.g===t.g&&this.b===t.b&&this.a===t.a}clone(){return this._c(this)}toHexString(){let t="#";const n=(this.r||0).toString(16);t+=n.length===2?n:"0"+n;const r=(this.g||0).toString(16);t+=r.length===2?r:"0"+r;const i=(this.b||0).toString(16);if(t+=i.length===2?i:"0"+i,typeof this.a=="number"&&this.a>=0&&this.a<1){const o=Ci(this.a*255).toString(16);t+=o.length===2?o:"0"+o}return t}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const t=this.getHue(),n=Ci(this.getSaturation()*100),r=Ci(this.getLightness()*100);return this.a!==1?`hsla(${t},${n}%,${r}%,${this.a})`:`hsl(${t},${n}%,${r}%)`}toHsv(){return{h:this.getHue(),s:this.getSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return this.a!==1?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(t,n,r){const i=this.clone();return i[t]=fh(n,r),i}_c(t){return new this.constructor(t)}getMax(){return typeof this._max>"u"&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return typeof this._min>"u"&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(t){const n=t.replace("#","");function r(i,o){return parseInt(n[i]+n[o||i],16)}n.length<6?(this.r=r(0),this.g=r(1),this.b=r(2),this.a=n[3]?r(3)/255:1):(this.r=r(0,1),this.g=r(2,3),this.b=r(4,5),this.a=n[6]?r(6,7)/255:1)}fromHsl({h:t,s:n,l:r,a:i}){if(this._h=t%360,this._s=n,this._l=r,this.a=typeof i=="number"?i:1,n<=0){const m=Ci(r*255);this.r=m,this.g=m,this.b=m}let o=0,a=0,l=0;const c=t/60,u=(1-Math.abs(2*r-1))*n,f=u*(1-Math.abs(c%2-1));c>=0&&c<1?(o=u,a=f):c>=1&&c<2?(o=f,a=u):c>=2&&c<3?(a=u,l=f):c>=3&&c<4?(a=f,l=u):c>=4&&c<5?(o=f,l=u):c>=5&&c<6&&(o=u,l=f);const p=r-u/2;this.r=Ci((o+p)*255),this.g=Ci((a+p)*255),this.b=Ci((l+p)*255)}fromHsv({h:t,s:n,v:r,a:i}){this._h=t%360,this._s=n,this._v=r,this.a=typeof i=="number"?i:1;const o=Ci(r*255);if(this.r=o,this.g=o,this.b=o,n<=0)return;const a=t/60,l=Math.floor(a),c=a-l,u=Ci(r*(1-n)*255),f=Ci(r*(1-n*c)*255),p=Ci(r*(1-n*(1-c))*255);switch(l){case 0:this.g=p,this.b=u;break;case 1:this.r=f,this.b=u;break;case 2:this.r=u,this.b=p;break;case 3:this.r=u,this.g=f;break;case 4:this.r=p,this.g=u;break;case 5:default:this.g=u,this.b=f;break}}fromHsvString(t){const n=S4(t,P_);this.fromHsv({h:n[0],s:n[1],v:n[2],a:n[3]})}fromHslString(t){const n=S4(t,P_);this.fromHsl({h:n[0],s:n[1],l:n[2],a:n[3]})}fromRgbString(t){const n=S4(t,(r,i)=>i.includes("%")?Ci(r/100*255):r);this.r=n[0],this.g=n[1],this.b=n[2],this.a=n[3]}}var Fee=["b"],Bee=["v"],E4=function(t){return Math.round(Number(t||0))},jee=function(t){if(t instanceof kb)return t;if(t&&$t(t)==="object"&&"h"in t&&"b"in t){var n=t,r=n.b,i=Gt(n,Fee);return te(te({},i),{},{v:r})}return typeof t=="string"&&/hsb/.test(t)?t.replace(/hsb/,"hsv"):t},Yp=function(e){la(n,e);var t=sa(n);function n(r){return _r(this,n),t.call(this,jee(r))}return Or(n,[{key:"toHsbString",value:function(){var i=this.toHsb(),o=E4(i.s*100),a=E4(i.b*100),l=E4(i.h),c=i.a,u="hsb(".concat(l,", ").concat(o,"%, ").concat(a,"%)"),f="hsba(".concat(l,", ").concat(o,"%, ").concat(a,"%, ").concat(c.toFixed(c===0?0:2),")");return c===1?u:f}},{key:"toHsb",value:function(){var i=this.toHsv(),o=i.v,a=Gt(i,Bee);return te(te({},a),{},{b:o,a:this.a})}}]),n}(kb),Hee=function(t){return t instanceof Yp?t:new Yp(t)};Hee("#1677ff");const zee=(e,t)=>(e==null?void 0:e.replace(/[^\w/]/g,"").slice(0,t?8:6))||"",Wee=(e,t)=>e?zee(e,t):"";let Uee=function(){function e(t){_r(this,e);var n;if(this.cleared=!1,t instanceof e){this.metaColor=t.metaColor.clone(),this.colors=(n=t.colors)===null||n===void 0?void 0:n.map(i=>({color:new e(i.color),percent:i.percent})),this.cleared=t.cleared;return}const r=Array.isArray(t);r&&t.length?(this.colors=t.map(i=>{let{color:o,percent:a}=i;return{color:new e(o),percent:a}}),this.metaColor=new Yp(this.colors[0].color.metaColor)):this.metaColor=new Yp(r?"":t),(!t||r&&!this.colors)&&(this.metaColor=this.metaColor.setA(0),this.cleared=!0)}return Or(e,[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return Wee(this.toHexString(),this.metaColor.a<1)}},{key:"toHexString",value:function(){return this.metaColor.toHexString()}},{key:"toRgb",value:function(){return this.metaColor.toRgb()}},{key:"toRgbString",value:function(){return this.metaColor.toRgbString()}},{key:"isGradient",value:function(){return!!this.colors&&!this.cleared}},{key:"getColors",value:function(){return this.colors||[{color:this,percent:0}]}},{key:"toCssString",value:function(){const{colors:n}=this;return n?`linear-gradient(90deg, ${n.map(i=>`${i.color.toRgbString()} ${i.percent}%`).join(", ")})`:this.metaColor.toRgbString()}},{key:"equals",value:function(n){return!n||this.isGradient()!==n.isGradient()?!1:this.isGradient()?this.colors.length===n.colors.length&&this.colors.every((r,i)=>{const o=n.colors[i];return r.percent===o.percent&&r.color.equals(o.color)}):this.toHexString()===n.toHexString()}}])}();var Kee={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"},Vee=function(t,n){return d.createElement(on,ze({},t,{ref:n,icon:Kee}))},Qp=d.forwardRef(Vee);const Rb=e=>({[e.componentCls]:{[`${e.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},
opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}},[`${e.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},
opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}}}),Gee=e=>({animationDuration:e,animationFillMode:"both"}),qee=e=>({animationDuration:e,animationFillMode:"both"}),Mb=function(e,t,n,r){const o=(arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1)?"&":"";return{[`
${o}${e}-enter,
${o}${e}-appear
`]:Object.assign(Object.assign({},Gee(r)),{animationPlayState:"paused"}),[`${o}${e}-leave`]:Object.assign(Object.assign({},qee(r)),{animationPlayState:"paused"}),[`
${o}${e}-enter${e}-enter-active,
${o}${e}-appear${e}-appear-active
`]:{animationName:t,animationPlayState:"running"},[`${o}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},Xee=new Sn("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),Yee=new Sn("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),JL=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const{antCls:n}=e,r=`${n}-fade`,i=t?"&":"";return[Mb(r,Xee,Yee,e.motionDurationMid,t),{[`
${i}${r}-enter,
${i}${r}-appear
`]:{opacity:0,animationTimingFunction:"linear"},[`${i}${r}-leave`]:{animationTimingFunction:"linear"}}]},Qee=new Sn("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Zee=new Sn("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),Jee=new Sn("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),ete=new Sn("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),tte=new Sn("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),nte=new Sn("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),rte=new Sn("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),ite=new Sn("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),ote={"move-up":{inKeyframes:rte,outKeyframes:ite},"move-down":{inKeyframes:Qee,outKeyframes:Zee},"move-left":{inKeyframes:Jee,outKeyframes:ete},"move-right":{inKeyframes:tte,outKeyframes:nte}},sy=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:i,outKeyframes:o}=ote[t];return[Mb(r,i,o,e.motionDurationMid),{[`
${r}-enter,
${r}-appear
`]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},m8=new Sn("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),g8=new Sn("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),v8=new Sn("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),y8=new Sn("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),ate=new Sn("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),lte=new Sn("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),ste=new Sn("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),cte=new Sn("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),ute={"slide-up":{inKeyframes:m8,outKeyframes:g8},"slide-down":{inKeyframes:v8,outKeyframes:y8},"slide-left":{inKeyframes:ate,outKeyframes:lte},"slide-right":{inKeyframes:ste,outKeyframes:cte}},wc=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:i,outKeyframes:o}=ute[t];return[Mb(r,i,o,e.motionDurationMid),{[`
${r}-enter,
${r}-appear
`]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},b8=new Sn("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),dte=new Sn("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),L_=new Sn("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),D_=new Sn("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),fte=new Sn("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),hte=new Sn("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),pte=new Sn("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),mte=new Sn("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),gte=new Sn("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),vte=new Sn("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),yte=new Sn("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),bte=new Sn("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),Cte={zoom:{inKeyframes:b8,outKeyframes:dte},"zoom-big":{inKeyframes:L_,outKeyframes:D_},"zoom-big-fast":{inKeyframes:L_,outKeyframes:D_},"zoom-left":{inKeyframes:pte,outKeyframes:mte},"zoom-right":{inKeyframes:gte,outKeyframes:vte},"zoom-up":{inKeyframes:fte,outKeyframes:hte},"zoom-down":{inKeyframes:yte,outKeyframes:bte}},Om=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:i,outKeyframes:o}=Cte[t];return[Mb(r,i,o,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}}]},Ste=(e,t)=>{const{r:n,g:r,b:i,a:o}=e.toRgb(),a=new Yp(e.toRgbString()).onBackground(t).toHsv();return o<=.5?a.v>.5:n*.299+r*.587+i*.114>192},eD=e=>{const{paddingInline:t,onlyIconSize:n,paddingBlock:r}=e;return hn(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:r,buttonIconOnlyFontSize:n})},tD=e=>{var t,n,r,i,o,a;const l=(t=e.contentFontSize)!==null&&t!==void 0?t:e.fontSize,c=(n=e.contentFontSizeSM)!==null&&n!==void 0?n:e.fontSize,u=(r=e.contentFontSizeLG)!==null&&r!==void 0?r:e.fontSizeLG,f=(i=e.contentLineHeight)!==null&&i!==void 0?i:iv(l),p=(o=e.contentLineHeightSM)!==null&&o!==void 0?o:iv(c),m=(a=e.contentLineHeightLG)!==null&&a!==void 0?a:iv(u),g=Ste(new Uee(e.colorBgSolid),"#fff")?"#000":"#fff";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,onlyIconSize:e.fontSizeLG,onlyIconSizeSM:e.fontSizeLG-2,onlyIconSizeLG:e.fontSizeLG+2,groupBorderColor:e.colorPrimaryHover,linkHoverBg:"transparent",textTextColor:e.colorText,textTextHoverColor:e.colorText,textTextActiveColor:e.colorText,textHoverBg:e.colorFillTertiary,defaultColor:e.colorText,defaultBg:e.colorBgContainer,defaultBorderColor:e.colorBorder,defaultBorderColorDisabled:e.colorBorder,defaultHoverBg:e.colorBgContainer,defaultHoverColor:e.colorPrimaryHover,defaultHoverBorderColor:e.colorPrimaryHover,defaultActiveBg:e.colorBgContainer,defaultActiveColor:e.colorPrimaryActive,defaultActiveBorderColor:e.colorPrimaryActive,solidTextColor:g,contentFontSize:l,contentFontSizeSM:c,contentFontSizeLG:u,contentLineHeight:f,contentLineHeightSM:p,contentLineHeightLG:m,paddingBlock:Math.max((e.controlHeight-l*f)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-c*p)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-u*m)/2-e.lineWidth,0)}},Ete=e=>{const{componentCls:t,iconCls:n,fontWeight:r}=e;return{[t]:{outline:"none",position:"relative",display:"inline-flex",gap:e.marginXS,alignItems:"center",justifyContent:"center",fontWeight:r,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:`${ie(e.lineWidth)} ${e.lineType} transparent`,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",color:e.colorText,"&:disabled > *":{pointerEvents:"none"},[`> span, ${t}-icon`]:{display:"inline-flex"},"> a":{color:"currentColor"},"&:not(:disabled)":Object.assign({},ms(e)),[`&${t}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${t}-two-chinese-chars > *:not(${n})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},"&-icon-end":{flexDirection:"row-reverse"}}}},nD=(e,t,n)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":n}}),xte=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),wte=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.calc(e.controlHeight).div(2).equal(),paddingInlineEnd:e.calc(e.controlHeight).div(2).equal()}),Tte=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),C8=(e,t,n,r,i,o,a,l)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:n||void 0,background:t,borderColor:r||void 0,boxShadow:"none"},nD(e,Object.assign({background:t},a),Object.assign({background:t},l))),{"&:disabled":{cursor:"not-allowed",color:i||void 0,borderColor:o||void 0}})}),_te=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},Tte(e))}),Ote=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),Pb=(e,t,n,r)=>{const o=r&&["link","text"].includes(r)?Ote:_te;return Object.assign(Object.assign({},o(e)),nD(e.componentCls,t,n))},S8=(e,t,n,r,i)=>({[`&${e.componentCls}-variant-solid`]:Object.assign({color:t,background:n},Pb(e,r,i))}),E8=(e,t,n,r,i)=>({[`&${e.componentCls}-variant-outlined, &${e.componentCls}-variant-dashed`]:Object.assign({borderColor:t,background:n},Pb(e,r,i))}),x8=e=>({[`&${e.componentCls}-variant-dashed`]:{borderStyle:"dashed"}}),w8=(e,t,n,r)=>({[`&${e.componentCls}-variant-filled`]:Object.assign({boxShadow:"none",background:t},Pb(e,n,r))}),Hf=(e,t,n,r,i)=>({[`&${e.componentCls}-variant-${n}`]:Object.assign({color:t,boxShadow:"none"},Pb(e,r,i,n))}),Ite=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.defaultColor,boxShadow:e.defaultShadow},S8(e,e.solidTextColor,e.colorBgSolid,{background:e.colorBgSolidHover},{background:e.colorBgSolidActive})),x8(e)),w8(e,e.colorFillTertiary,{background:e.colorFillSecondary},{background:e.colorFill})),Hf(e,e.textTextColor,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),C8(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)),$te=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorPrimary,boxShadow:e.primaryShadow},E8(e,e.colorPrimary,e.colorBgContainer,{color:e.colorPrimaryTextHover,borderColor:e.colorPrimaryHover,background:e.colorBgContainer},{color:e.colorPrimaryTextActive,borderColor:e.colorPrimaryActive,background:e.colorBgContainer})),x8(e)),w8(e,e.colorPrimaryBg,{background:e.colorPrimaryBgHover},{background:e.colorPrimaryBorder})),Hf(e,e.colorLink,"text",{color:e.colorPrimaryTextHover,background:e.colorPrimaryBg},{color:e.colorPrimaryTextActive,background:e.colorPrimaryBorder})),C8(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),Nte=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorError,boxShadow:e.dangerShadow},S8(e,e.dangerColor,e.colorError,{background:e.colorErrorHover},{background:e.colorErrorActive})),E8(e,e.colorError,e.colorBgContainer,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),x8(e)),w8(e,e.colorErrorBg,{background:e.colorErrorBgFilledHover},{background:e.colorErrorBgActive})),Hf(e,e.colorError,"text",{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBgActive})),Hf(e,e.colorError,"link",{color:e.colorErrorHover},{color:e.colorErrorActive})),C8(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),Ate=e=>{const{componentCls:t}=e;return{[`${t}-color-default`]:Ite(e),[`${t}-color-primary`]:$te(e),[`${t}-color-dangerous`]:Nte(e)}},kte=e=>Object.assign(Object.assign(Object.assign(Object.assign({},E8(e,e.defaultBorderColor,e.defaultBg,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg})),Hf(e,e.textTextColor,"text",{color:e.textTextHoverColor,background:e.textHoverBg},{color:e.textTextActiveColor,background:e.colorBgTextActive})),S8(e,e.primaryColor,e.colorPrimary,{background:e.colorPrimaryHover,color:e.primaryColor},{background:e.colorPrimaryActive,color:e.primaryColor})),Hf(e,e.colorLink,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),T8=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const{componentCls:n,controlHeight:r,fontSize:i,lineHeight:o,borderRadius:a,buttonPaddingHorizontal:l,iconCls:c,buttonPaddingVertical:u,motionDurationSlow:f,motionEaseInOut:p,buttonIconOnlyFontSize:m,opacityLoading:g}=e;return[{[t]:{fontSize:i,lineHeight:o,height:r,padding:`${ie(u)} ${ie(l)}`,borderRadius:a,[`&${n}-icon-only`]:{width:r,paddingInline:0,[`&${n}-compact-item`]:{flex:"none"},[`&${n}-round`]:{width:"auto"},[c]:{fontSize:m}},[`&${n}-loading`]:{opacity:g,cursor:"default"},[`${n}-loading-icon`]:{transition:`width ${f} ${p}, opacity ${f} ${p}`}}},{[`${n}${n}-circle${t}`]:xte(e)},{[`${n}${n}-round${t}`]:wte(e)}]},Rte=e=>{const t=hn(e,{fontSize:e.contentFontSize,lineHeight:e.contentLineHeight});return T8(t,e.componentCls)},Mte=e=>{const t=hn(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,lineHeight:e.contentLineHeightSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:e.paddingBlockSM,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return T8(t,`${e.componentCls}-sm`)},Pte=e=>{const t=hn(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,lineHeight:e.contentLineHeightLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:e.paddingBlockLG,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return T8(t,`${e.componentCls}-lg`)},Lte=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},Dte=Mn("Button",e=>{const t=eD(e);return[Ete(t),Rte(t),Mte(t),Pte(t),Lte(t),Ate(t),kte(t),Dee(t)]},tD,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function Fte(e,t,n){const{focusElCls:r,focus:i,borderElCls:o}=n,a=o?"> *":"",l=["hover",i?"focus":null,"active"].filter(Boolean).map(c=>`&:${c} ${a}`).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},"&-item":Object.assign(Object.assign({[l]:{zIndex:2}},r?{[`&${r}`]:{zIndex:2}}:{}),{[`&[disabled] ${a}`]:{zIndex:0}})}}function Bte(e,t,n){const{borderElCls:r}=n,i=r?`> ${r}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${i}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${i}, &${e}-sm ${i}, &${e}-lg ${i}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${i}, &${e}-sm ${i}, &${e}-lg ${i}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function _8(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({},Fte(e,r,t)),Bte(n,r,t))}}function jte(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 Hte(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 zte(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},jte(e,t)),Hte(e.componentCls,t))}}const Wte=e=>{const{componentCls:t,colorPrimaryHover:n,lineWidth:r,calc:i}=e,o=i(r).mul(-1).equal(),a=l=>({[`${t}-compact${l?"-vertical":""}-item${t}-primary:not([disabled])`]:{"& + &::before":{position:"absolute",top:l?o:0,insetInlineStart:l?0:o,backgroundColor:n,content:'""',width:l?"100%":r,height:l?r:"100%"}}});return Object.assign(Object.assign({},a()),a(!0))},Ute=s1(["Button","compact"],e=>{const t=eD(e);return[_8(t),zte(t),Wte(t)]},tD);var Kte=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function Vte(e){if(typeof e=="object"&&e){let t=e==null?void 0:e.delay;return t=!Number.isNaN(t)&&typeof t=="number"?t:0,{loading:t<=0,delay:t}}return{loading:!!e,delay:0}}const Gte={default:["default","outlined"],primary:["primary","solid"],dashed:["default","dashed"],link:["primary","link"],text:["default","text"]},qte=be.forwardRef((e,t)=>{var n,r,i,o;const{loading:a=!1,prefixCls:l,color:c,variant:u,type:f,danger:p=!1,shape:m="default",size:g,styles:b,disabled:E,className:x,rootClassName:C,children:S,icon:T,iconPosition:O="start",ghost:I=!1,block:_=!1,htmlType:$="button",classNames:k,style:R={},autoInsertSpace:M,autoFocus:H}=e,B=Kte(e,["loading","prefixCls","color","variant","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","iconPosition","ghost","block","htmlType","classNames","style","autoInsertSpace","autoFocus"]),L=f||"default",[D,z]=d.useMemo(()=>{if(c&&u)return[c,u];const Be=Gte[L]||[];return p?["danger",Be[1]]:Be},[f,c,u,p]),j=D==="danger"?"dangerous":D,{getPrefixCls:U,direction:q,button:A}=d.useContext(At),P=(n=M??(A==null?void 0:A.autoInsertSpace))!==null&&n!==void 0?n:!0,Z=U("btn",l),[V,Y,ee]=Dte(Z),ue=d.useContext($a),ne=E??ue,se=d.useContext(YL),me=d.useMemo(()=>Vte(a),[a]),[ye,de]=d.useState(me.loading),[ce,oe]=d.useState(!1),pe=d.useRef(),ve=Cs(t,pe),Te=d.Children.count(S)===1&&!T&&!y4(z);d.useEffect(()=>{let Be=null;me.delay>0?Be=setTimeout(()=>{Be=null,de(!0)},me.delay):de(me.loading);function ot(){Be&&(clearTimeout(Be),Be=null)}return ot},[me]),d.useEffect(()=>{if(!pe.current||!P)return;const Be=pe.current.textContent||"";Te&&FS(Be)?ce||oe(!0):ce&&oe(!1)}),d.useEffect(()=>{H&&pe.current&&pe.current.focus()},[]);const Ge=be.useCallback(Be=>{var ot;if(ye||ne){Be.preventDefault();return}(ot=e.onClick)===null||ot===void 0||ot.call(e,Be)},[e.onClick,ye,ne]),{compactSize:je,compactItemClassnames:Je}=_m(Z,q),Se={large:"lg",small:"sm",middle:void 0},$e=vo(Be=>{var ot,re;return(re=(ot=g??je)!==null&&ot!==void 0?ot:se)!==null&&re!==void 0?re:Be}),qe=$e&&(r=Se[$e])!==null&&r!==void 0?r:"",Le=ye?"loading":T,Fe=tr(B,["navigate"]),Ke=le(Z,Y,ee,{[`${Z}-${m}`]:m!=="default"&&m,[`${Z}-${L}`]:L,[`${Z}-dangerous`]:p,[`${Z}-color-${j}`]:j,[`${Z}-variant-${z}`]:z,[`${Z}-${qe}`]:qe,[`${Z}-icon-only`]:!S&&S!==0&&!!Le,[`${Z}-background-ghost`]:I&&!y4(z),[`${Z}-loading`]:ye,[`${Z}-two-chinese-chars`]:ce&&P&&!ye,[`${Z}-block`]:_,[`${Z}-rtl`]:q==="rtl",[`${Z}-icon-end`]:O==="end"},Je,x,C,A==null?void 0:A.className),Ve=Object.assign(Object.assign({},A==null?void 0:A.style),R),Ce=le(k==null?void 0:k.icon,(i=A==null?void 0:A.classNames)===null||i===void 0?void 0:i.icon),Pe=Object.assign(Object.assign({},(b==null?void 0:b.icon)||{}),((o=A==null?void 0:A.styles)===null||o===void 0?void 0:o.icon)||{}),We=T&&!ye?be.createElement(ZL,{prefixCls:Z,className:Ce,style:Pe},T):be.createElement(Lee,{existIcon:!!T,prefixCls:Z,loading:ye}),Ze=S||S===0?Pee(S,Te&&P):null;if(Fe.href!==void 0)return V(be.createElement("a",Object.assign({},Fe,{className:le(Ke,{[`${Z}-disabled`]:ne}),href:ne?void 0:Fe.href,style:Ve,onClick:Ge,ref:ve,tabIndex:ne?-1:0}),We,Ze));let ut=be.createElement("button",Object.assign({},B,{type:$,className:Ke,style:Ve,onClick:Ge,disabled:ne,ref:ve}),We,Ze,Je&&be.createElement(Ute,{prefixCls:Z}));return y4(z)||(ut=be.createElement(Nb,{component:"Button",disabled:ye},ut)),V(ut)}),Dn=qte;Dn.Group=Ree;Dn.__ANT_BUTTON=!0;function x4(e){return!!(e!=null&&e.then)}const rD=e=>{const{type:t,children:n,prefixCls:r,buttonProps:i,close:o,autoFocus:a,emitEvent:l,isSilent:c,quitOnNullishReturnValue:u,actionFn:f}=e,p=d.useRef(!1),m=d.useRef(null),[g,b]=Du(!1),E=function(){o==null||o.apply(void 0,arguments)};d.useEffect(()=>{let S=null;return a&&(S=setTimeout(()=>{var T;(T=m.current)===null||T===void 0||T.focus({preventScroll:!0})})),()=>{S&&clearTimeout(S)}},[]);const x=S=>{x4(S)&&(b(!0),S.then(function(){b(!1,!0),E.apply(void 0,arguments),p.current=!1},T=>{if(b(!1,!0),p.current=!1,!(c!=null&&c()))return Promise.reject(T)}))},C=S=>{if(p.current)return;if(p.current=!0,!f){E();return}let T;if(l){if(T=f(S),u&&!x4(T)){p.current=!1,E(S);return}}else if(f.length)T=f(o),p.current=!1;else if(T=f(),!x4(T)){E();return}x(T)};return d.createElement(Dn,Object.assign({},QL(t),{onClick:C,loading:g,prefixCls:r},i,{ref:m}),n)},Im=be.createContext({}),{Provider:iD}=Im,F_=()=>{const{autoFocusButton:e,cancelButtonProps:t,cancelTextLocale:n,isSilent:r,mergedOkCancel:i,rootPrefixCls:o,close:a,onCancel:l,onConfirm:c}=d.useContext(Im);return i?be.createElement(rD,{isSilent:r,actionFn:l,close:function(){a==null||a.apply(void 0,arguments),c==null||c(!1)},autoFocus:e==="cancel",buttonProps:t,prefixCls:`${o}-btn`},n):null},B_=()=>{const{autoFocusButton:e,close:t,isSilent:n,okButtonProps:r,rootPrefixCls:i,okTextLocale:o,okType:a,onConfirm:l,onOk:c}=d.useContext(Im);return be.createElement(rD,{isSilent:n,type:a||"primary",actionFn:c,close:function(){t==null||t.apply(void 0,arguments),l==null||l(!0)},autoFocus:e==="ok",buttonProps:r,prefixCls:`${i}-btn`},o)};var oD=d.createContext(null),j_=[];function Xte(e,t){var n=d.useState(function(){if(!Ti())return null;var b=document.createElement("div");return b}),r=Oe(n,1),i=r[0],o=d.useRef(!1),a=d.useContext(oD),l=d.useState(j_),c=Oe(l,2),u=c[0],f=c[1],p=a||(o.current?void 0:function(b){f(function(E){var x=[b].concat(Qe(E));return x})});function m(){i.parentElement||document.body.appendChild(i),o.current=!0}function g(){var b;(b=i.parentElement)===null||b===void 0||b.removeChild(i),o.current=!1}return bn(function(){return e?a?a(m):m():g(),g},[e]),bn(function(){u.length&&(u.forEach(function(b){return b()}),f(j_))},[u]),[i,p]}var w4;function aD(e){var t="rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)),n=document.createElement("div");n.id=t;var r=n.style;r.position="absolute",r.left="0",r.top="0",r.width="100px",r.height="100px",r.overflow="scroll";var i,o;if(e){var a=getComputedStyle(e);r.scrollbarColor=a.scrollbarColor,r.scrollbarWidth=a.scrollbarWidth;var l=getComputedStyle(e,"::-webkit-scrollbar"),c=parseInt(l.width,10),u=parseInt(l.height,10);try{var f=c?"width: ".concat(l.width,";"):"",p=u?"height: ".concat(l.height,";"):"";us(`
#`.concat(t,`::-webkit-scrollbar {
`).concat(f,`
`).concat(p,`
}`),t)}catch(b){console.error(b),i=c,o=u}}document.body.appendChild(n);var m=e&&i&&!isNaN(i)?i:n.offsetWidth-n.clientWidth,g=e&&o&&!isNaN(o)?o:n.offsetHeight-n.clientHeight;return document.body.removeChild(n),zp(t),{width:m,height:g}}function H_(e){return typeof document>"u"?0:(w4===void 0&&(w4=aD()),w4.width)}function BS(e){return typeof document>"u"||!e||!(e instanceof Element)?{width:0,height:0}:aD(e)}function Yte(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var Qte="rc-util-locker-".concat(Date.now()),z_=0;function Zte(e){var t=!!e,n=d.useState(function(){return z_+=1,"".concat(Qte,"_").concat(z_)}),r=Oe(n,1),i=r[0];bn(function(){if(t){var o=BS(document.body).width,a=Yte();us(`
html body {
overflow-y: hidden;
`.concat(a?"width: calc(100% - ".concat(o,"px);"):"",`
}`),i)}else zp(i);return function(){zp(i)}},[t,i])}var Jte=!1;function ene(e){return Jte}var W_=function(t){return t===!1?!1:!Ti()||!t?null:typeof t=="string"?document.querySelector(t):typeof t=="function"?t():t},O8=d.forwardRef(function(e,t){var n=e.open,r=e.autoLock,i=e.getContainer;e.debug;var o=e.autoDestroy,a=o===void 0?!0:o,l=e.children,c=d.useState(n),u=Oe(c,2),f=u[0],p=u[1],m=f||n;d.useEffect(function(){(a||n)&&p(n)},[n,a]);var g=d.useState(function(){return W_(i)}),b=Oe(g,2),E=b[0],x=b[1];d.useEffect(function(){var H=W_(i);x(H??null)});var C=Xte(m&&!E),S=Oe(C,2),T=S[0],O=S[1],I=E??T;Zte(r&&n&&Ti()&&(I===T||I===document.body));var _=null;if(l&&ol(l)&&t){var $=l;_=$.ref}var k=Cs(_,t);if(!m||!Ti()||E===void 0)return null;var R=I===!1||ene(),M=l;return t&&(M=d.cloneElement(l,{ref:k})),d.createElement(oD.Provider,{value:O},R?M:Oa.createPortal(M,I))}),lD=d.createContext({});function tne(){var e=te({},mm);return e.useId}var U_=0,K_=tne();const sD=K_?function(t){var n=K_();return t||n}:function(t){var n=d.useState("ssr-id"),r=Oe(n,2),i=r[0],o=r[1];return d.useEffect(function(){var a=U_;U_+=1,o("rc_unique_".concat(a))},[]),t||i};function V_(e,t,n){var r=t;return!r&&n&&(r="".concat(e,"-").concat(n)),r}function G_(e,t){var n=e["page".concat(t?"Y":"X","Offset")],r="scroll".concat(t?"Top":"Left");if(typeof n!="number"){var i=e.document;n=i.documentElement[r],typeof n!="number"&&(n=i.body[r])}return n}function nne(e){var t=e.getBoundingClientRect(),n={left:t.left,top:t.top},r=e.ownerDocument,i=r.defaultView||r.parentWindow;return n.left+=G_(i),n.top+=G_(i,!0),n}const rne=d.memo(function(e){var t=e.children;return t},function(e,t){var n=t.shouldUpdate;return!n});var ine={width:0,height:0,overflow:"hidden",outline:"none"},one={outline:"none"},cD=be.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,i=e.style,o=e.title,a=e.ariaId,l=e.footer,c=e.closable,u=e.closeIcon,f=e.onClose,p=e.children,m=e.bodyStyle,g=e.bodyProps,b=e.modalRender,E=e.onMouseDown,x=e.onMouseUp,C=e.holderRef,S=e.visible,T=e.forceRender,O=e.width,I=e.height,_=e.classNames,$=e.styles,k=be.useContext(lD),R=k.panel,M=Cs(C,R),H=d.useRef(),B=d.useRef();be.useImperativeHandle(t,function(){return{focus:function(){var Z;(Z=H.current)===null||Z===void 0||Z.focus({preventScroll:!0})},changeActive:function(Z){var V=document,Y=V.activeElement;Z&&Y===B.current?H.current.focus({preventScroll:!0}):!Z&&Y===H.current&&B.current.focus({preventScroll:!0})}}});var L={};O!==void 0&&(L.width=O),I!==void 0&&(L.height=I);var D=l?be.createElement("div",{className:le("".concat(n,"-footer"),_==null?void 0:_.footer),style:te({},$==null?void 0:$.footer)},l):null,z=o?be.createElement("div",{className:le("".concat(n,"-header"),_==null?void 0:_.header),style:te({},$==null?void 0:$.header)},be.createElement("div",{className:"".concat(n,"-title"),id:a},o)):null,W=d.useMemo(function(){return $t(c)==="object"&&c!==null?c:c?{closeIcon:u??be.createElement("span",{className:"".concat(n,"-close-x")})}:{}},[c,u,n]),j=_i(W,!0),U=$t(c)==="object"&&c.disabled,q=c?be.createElement("button",ze({type:"button",onClick:f,"aria-label":"Close"},j,{className:"".concat(n,"-close"),disabled:U}),W.closeIcon):null,A=be.createElement("div",{className:le("".concat(n,"-content"),_==null?void 0:_.content),style:$==null?void 0:$.content},q,z,be.createElement("div",ze({className:le("".concat(n,"-body"),_==null?void 0:_.body),style:te(te({},m),$==null?void 0:$.body)},g),p),D);return be.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":o?a:null,"aria-modal":"true",ref:M,style:te(te({},i),L),className:le(n,r),onMouseDown:E,onMouseUp:x},be.createElement("div",{ref:H,tabIndex:0,style:one},be.createElement(rne,{shouldUpdate:S||T},b?b(A):A)),be.createElement("div",{tabIndex:0,ref:B,style:ine}))}),uD=d.forwardRef(function(e,t){var n=e.prefixCls,r=e.title,i=e.style,o=e.className,a=e.visible,l=e.forceRender,c=e.destroyOnClose,u=e.motionName,f=e.ariaId,p=e.onVisibleChanged,m=e.mousePosition,g=d.useRef(),b=d.useState(),E=Oe(b,2),x=E[0],C=E[1],S={};x&&(S.transformOrigin=x);function T(){var O=nne(g.current);C(m&&(m.x||m.y)?"".concat(m.x-O.left,"px ").concat(m.y-O.top,"px"):"")}return d.createElement(ca,{visible:a,onVisibleChanged:p,onAppearPrepare:T,onEnterPrepare:T,forceRender:l,motionName:u,removeOnLeave:c,ref:g},function(O,I){var _=O.className,$=O.style;return d.createElement(cD,ze({},e,{ref:t,title:r,ariaId:f,prefixCls:n,holderRef:I,style:te(te(te({},$),i),S),className:le(o,_)}))})});uD.displayName="Content";var ane=function(t){var n=t.prefixCls,r=t.style,i=t.visible,o=t.maskProps,a=t.motionName,l=t.className;return d.createElement(ca,{key:"mask",visible:i,motionName:a,leavedClassName:"".concat(n,"-mask-hidden")},function(c,u){var f=c.className,p=c.style;return d.createElement("div",ze({ref:u,style:te(te({},p),r),className:le("".concat(n,"-mask"),f,l)},o))})},lne=function(t){var n=t.prefixCls,r=n===void 0?"rc-dialog":n,i=t.zIndex,o=t.visible,a=o===void 0?!1:o,l=t.keyboard,c=l===void 0?!0:l,u=t.focusTriggerAfterClose,f=u===void 0?!0:u,p=t.wrapStyle,m=t.wrapClassName,g=t.wrapProps,b=t.onClose,E=t.afterOpenChange,x=t.afterClose,C=t.transitionName,S=t.animation,T=t.closable,O=T===void 0?!0:T,I=t.mask,_=I===void 0?!0:I,$=t.maskTransitionName,k=t.maskAnimation,R=t.maskClosable,M=R===void 0?!0:R,H=t.maskStyle,B=t.maskProps,L=t.rootClassName,D=t.classNames,z=t.styles,W=d.useRef(),j=d.useRef(),U=d.useRef(),q=d.useState(a),A=Oe(q,2),P=A[0],Z=A[1],V=sD();function Y(){oS(j.current,document.activeElement)||(W.current=document.activeElement)}function ee(){if(!oS(j.current,document.activeElement)){var ve;(ve=U.current)===null||ve===void 0||ve.focus()}}function ue(ve){if(ve)ee();else{if(Z(!1),_&&W.current&&f){try{W.current.focus({preventScroll:!0})}catch{}W.current=null}P&&(x==null||x())}E==null||E(ve)}function ne(ve){b==null||b(ve)}var se=d.useRef(!1),me=d.useRef(),ye=function(){clearTimeout(me.current),se.current=!0},de=function(){me.current=setTimeout(function(){se.current=!1})},ce=null;M&&(ce=function(Te){se.current?se.current=!1:j.current===Te.target&&ne(Te)});function oe(ve){if(c&&ve.keyCode===it.ESC){ve.stopPropagation(),ne(ve);return}a&&ve.keyCode===it.TAB&&U.current.changeActive(!ve.shiftKey)}d.useEffect(function(){a&&(Z(!0),Y())},[a]),d.useEffect(function(){return function(){clearTimeout(me.current)}},[]);var pe=te(te(te({zIndex:i},p),z==null?void 0:z.wrapper),{},{display:P?null:"none"});return d.createElement("div",ze({className:le("".concat(r,"-root"),L)},_i(t,{data:!0})),d.createElement(ane,{prefixCls:r,visible:_&&a,motionName:V_(r,$,k),style:te(te({zIndex:i},H),z==null?void 0:z.mask),maskProps:B,className:D==null?void 0:D.mask}),d.createElement("div",ze({tabIndex:-1,onKeyDown:oe,className:le("".concat(r,"-wrap"),m,D==null?void 0:D.wrapper),ref:j,onClick:ce,style:pe},g),d.createElement(uD,ze({},t,{onMouseDown:ye,onMouseUp:de,ref:U,closable:O,ariaId:V,prefixCls:r,visible:a&&P,onClose:ne,onVisibleChanged:ue,motionName:V_(r,C,S)}))))},dD=function(t){var n=t.visible,r=t.getContainer,i=t.forceRender,o=t.destroyOnClose,a=o===void 0?!1:o,l=t.afterClose,c=t.panelRef,u=d.useState(n),f=Oe(u,2),p=f[0],m=f[1],g=d.useMemo(function(){return{panel:c}},[c]);return d.useEffect(function(){n&&m(!0)},[n]),!i&&a&&!p?null:d.createElement(lD.Provider,{value:g},d.createElement(O8,{open:n||i||p,autoDestroy:!1,getContainer:r,autoLock:n||p},d.createElement(lne,ze({},t,{destroyOnClose:a,afterClose:function(){l==null||l(),m(!1)}}))))};dD.displayName="Dialog";var vu="RC_FORM_INTERNAL_HOOKS",Yn=function(){gr(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},Fu=d.createContext({getFieldValue:Yn,getFieldsValue:Yn,getFieldError:Yn,getFieldWarning:Yn,getFieldsError:Yn,isFieldsTouched:Yn,isFieldTouched:Yn,isFieldValidating:Yn,isFieldsValidating:Yn,resetFields:Yn,setFields:Yn,setFieldValue:Yn,setFieldsValue:Yn,validateFields:Yn,submit:Yn,getInternalHooks:function(){return Yn(),{dispatch:Yn,initEntityValue:Yn,registerField:Yn,useSubscribe:Yn,setInitialValues:Yn,destroyForm:Yn,setCallbacks:Yn,registerWatch:Yn,getFields:Yn,setValidateMessages:Yn,setPreserve:Yn,getInitialValue:Yn}}}),Zp=d.createContext(null);function jS(e){return e==null?[]:Array.isArray(e)?e:[e]}function sne(e){return e&&!!e._init}function HS(){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 zS=HS();function cne(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function une(e,t,n){if(Zx())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var i=new(e.bind.apply(e,r));return n&&Bp(i,n.prototype),i}function WS(e){var t=typeof Map=="function"?new Map:void 0;return WS=function(r){if(r===null||!cne(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(t!==void 0){if(t.has(r))return t.get(r);t.set(r,i)}function i(){return une(r,arguments,jp(this).constructor)}return i.prototype=Object.create(r.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),Bp(i,r)},WS(e)}var dne=/%[sdj%]/g,fne=function(){};function US(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 Qo(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i=0,o=n.length;if(typeof e=="function")return e.apply(null,n);if(typeof e=="string"){var a=e.replace(dne,function(l){if(l==="%%")return"%";if(i>=o)return l;switch(l){case"%s":return String(n[i++]);case"%d":return Number(n[i++]);case"%j":try{return JSON.stringify(n[i++])}catch{return"[Circular]"}break;default:return l}});return a}return e}function hne(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function gi(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||hne(t)&&typeof e=="string"&&!e)}function pne(e,t,n){var r=[],i=0,o=e.length;function a(l){r.push.apply(r,Qe(l||[])),i++,i===o&&n(r)}e.forEach(function(l){t(l,a)})}function q_(e,t,n){var r=0,i=e.length;function o(a){if(a&&a.length){n(a);return}var l=r;r=r+1,l<i?t(e[l],o):n([])}o([])}function mne(e){var t=[];return Object.keys(e).forEach(function(n){t.push.apply(t,Qe(e[n]||[]))}),t}var X_=function(e){la(n,e);var t=sa(n);function n(r,i){var o;return _r(this,n),o=t.call(this,"Async Validation Error"),J(at(o),"errors",void 0),J(at(o),"fields",void 0),o.errors=r,o.fields=i,o}return Or(n)}(WS(Error));function gne(e,t,n,r,i){if(t.first){var o=new Promise(function(m,g){var b=function(C){return r(C),C.length?g(new X_(C,US(C))):m(i)},E=mne(e);q_(E,n,b)});return o.catch(function(m){return m}),o}var a=t.firstFields===!0?Object.keys(e):t.firstFields||[],l=Object.keys(e),c=l.length,u=0,f=[],p=new Promise(function(m,g){var b=function(x){if(f.push.apply(f,x),u++,u===c)return r(f),f.length?g(new X_(f,US(f))):m(i)};l.length||(r(f),m(i)),l.forEach(function(E){var x=e[E];a.indexOf(E)!==-1?q_(x,n,b):pne(x,n,b)})});return p.catch(function(m){return m}),p}function vne(e){return!!(e&&e.message!==void 0)}function yne(e,t){for(var n=e,r=0;r<t.length;r++){if(n==null)return n;n=n[t[r]]}return n}function Y_(e,t){return function(n){var r;return e.fullFields?r=yne(t,e.fullFields):r=t[n.field||e.fullField],vne(n)?(n.field=n.field||e.fullField,n.fieldValue=r,n):{message:typeof n=="function"?n():n,fieldValue:r,field:n.field||e.fullField}}}function Q_(e,t){if(t){for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];$t(r)==="object"&&$t(e[n])==="object"?e[n]=te(te({},e[n]),r):e[n]=r}}return e}var wd="enum",bne=function(t,n,r,i,o){t[wd]=Array.isArray(t[wd])?t[wd]:[],t[wd].indexOf(n)===-1&&i.push(Qo(o.messages[wd],t.fullField,t[wd].join(", ")))},Cne=function(t,n,r,i,o){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||i.push(Qo(o.messages.pattern.mismatch,t.fullField,n,t.pattern));else if(typeof t.pattern=="string"){var a=new RegExp(t.pattern);a.test(n)||i.push(Qo(o.messages.pattern.mismatch,t.fullField,n,t.pattern))}}},Sne=function(t,n,r,i,o){var a=typeof t.len=="number",l=typeof t.min=="number",c=typeof t.max=="number",u=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,f=n,p=null,m=typeof n=="number",g=typeof n=="string",b=Array.isArray(n);if(m?p="number":g?p="string":b&&(p="array"),!p)return!1;b&&(f=n.length),g&&(f=n.replace(u,"_").length),a?f!==t.len&&i.push(Qo(o.messages[p].len,t.fullField,t.len)):l&&!c&&f<t.min?i.push(Qo(o.messages[p].min,t.fullField,t.min)):c&&!l&&f>t.max?i.push(Qo(o.messages[p].max,t.fullField,t.max)):l&&c&&(f<t.min||f>t.max)&&i.push(Qo(o.messages[p].range,t.fullField,t.min,t.max))},fD=function(t,n,r,i,o,a){t.required&&(!r.hasOwnProperty(t.field)||gi(n,a||t.type))&&i.push(Qo(o.messages.required,t.fullField))},tg;const Ene=function(){if(tg)return tg;var e="[a-fA-F\\d:]",t=function(_){return _&&_.includeBoundaries?"(?:(?<=\\s|^)(?=".concat(e,")|(?<=").concat(e,")(?=\\s|$))"):""},n="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",r="[a-fA-F\\d]{1,4}",i=["(?:".concat(r,":){7}(?:").concat(r,"|:)"),"(?:".concat(r,":){6}(?:").concat(n,"|:").concat(r,"|:)"),"(?:".concat(r,":){5}(?::").concat(n,"|(?::").concat(r,"){1,2}|:)"),"(?:".concat(r,":){4}(?:(?::").concat(r,"){0,1}:").concat(n,"|(?::").concat(r,"){1,3}|:)"),"(?:".concat(r,":){3}(?:(?::").concat(r,"){0,2}:").concat(n,"|(?::").concat(r,"){1,4}|:)"),"(?:".concat(r,":){2}(?:(?::").concat(r,"){0,3}:").concat(n,"|(?::").concat(r,"){1,5}|:)"),"(?:".concat(r,":){1}(?:(?::").concat(r,"){0,4}:").concat(n,"|(?::").concat(r,"){1,6}|:)"),"(?::(?:(?::".concat(r,"){0,5}:").concat(n,"|(?::").concat(r,"){1,7}|:))")],o="(?:%[0-9a-zA-Z]{1,})?",a="(?:".concat(i.join("|"),")").concat(o),l=new RegExp("(?:^".concat(n,"$)|(?:^").concat(a,"$)")),c=new RegExp("^".concat(n,"$")),u=new RegExp("^".concat(a,"$")),f=function(_){return _&&_.exact?l:new RegExp("(?:".concat(t(_)).concat(n).concat(t(_),")|(?:").concat(t(_)).concat(a).concat(t(_),")"),"g")};f.v4=function(I){return I&&I.exact?c:new RegExp("".concat(t(I)).concat(n).concat(t(I)),"g")},f.v6=function(I){return I&&I.exact?u:new RegExp("".concat(t(I)).concat(a).concat(t(I)),"g")};var p="(?:(?:[a-z]+:)?//)",m="(?:\\S+(?::\\S*)?@)?",g=f.v4().source,b=f.v6().source,E="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",x="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",C="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",S="(?::\\d{2,5})?",T='(?:[/?#][^\\s"]*)?',O="(?:".concat(p,"|www\\.)").concat(m,"(?:localhost|").concat(g,"|").concat(b,"|").concat(E).concat(x).concat(C,")").concat(S).concat(T);return tg=new RegExp("(?:^".concat(O,"$)"),"i"),tg};var Z_={email:/^(([^<>()\[\]\\.,;:\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},Mh={integer:function(t){return Mh.number(t)&&parseInt(t,10)===t},float:function(t){return Mh.number(t)&&!Mh.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 $t(t)==="object"&&!Mh.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(Z_.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(Ene())},hex:function(t){return typeof t=="string"&&!!t.match(Z_.hex)}},xne=function(t,n,r,i,o){if(t.required&&n===void 0){fD(t,n,r,i,o);return}var a=["integer","float","array","regexp","object","method","email","number","date","url","hex"],l=t.type;a.indexOf(l)>-1?Mh[l](n)||i.push(Qo(o.messages.types[l],t.fullField,t.type)):l&&$t(n)!==t.type&&i.push(Qo(o.messages.types[l],t.fullField,t.type))},wne=function(t,n,r,i,o){(/^\s+$/.test(n)||n==="")&&i.push(Qo(o.messages.whitespace,t.fullField))};const On={required:fD,whitespace:wne,type:xne,range:Sne,enum:bne,pattern:Cne};var Tne=function(t,n,r,i,o){var a=[],l=t.required||!t.required&&i.hasOwnProperty(t.field);if(l){if(gi(n)&&!t.required)return r();On.required(t,n,i,a,o)}r(a)},_ne=function(t,n,r,i,o){var a=[],l=t.required||!t.required&&i.hasOwnProperty(t.field);if(l){if(n==null&&!t.required)return r();On.required(t,n,i,a,o,"array"),n!=null&&(On.type(t,n,i,a,o),On.range(t,n,i,a,o))}r(a)},One=function(t,n,r,i,o){var a=[],l=t.required||!t.required&&i.hasOwnProperty(t.field);if(l){if(gi(n)&&!t.required)return r();On.required(t,n,i,a,o),n!==void 0&&On.type(t,n,i,a,o)}r(a)},Ine=function(t,n,r,i,o){var a=[],l=t.required||!t.required&&i.hasOwnProperty(t.field);if(l){if(gi(n,"date")&&!t.required)return r();if(On.required(t,n,i,a,o),!gi(n,"date")){var c;n instanceof Date?c=n:c=new Date(n),On.type(t,c,i,a,o),c&&On.range(t,c.getTime(),i,a,o)}}r(a)},$ne="enum",Nne=function(t,n,r,i,o){var a=[],l=t.required||!t.required&&i.hasOwnProperty(t.field);if(l){if(gi(n)&&!t.required)return r();On.required(t,n,i,a,o),n!==void 0&&On[$ne](t,n,i,a,o)}r(a)},Ane=function(t,n,r,i,o){var a=[],l=t.required||!t.required&&i.hasOwnProperty(t.field);if(l){if(gi(n)&&!t.required)return r();On.required(t,n,i,a,o),n!==void 0&&(On.type(t,n,i,a,o),On.range(t,n,i,a,o))}r(a)},kne=function(t,n,r,i,o){var a=[],l=t.required||!t.required&&i.hasOwnProperty(t.field);if(l){if(gi(n)&&!t.required)return r();On.required(t,n,i,a,o),n!==void 0&&(On.type(t,n,i,a,o),On.range(t,n,i,a,o))}r(a)},Rne=function(t,n,r,i,o){var a=[],l=t.required||!t.required&&i.hasOwnProperty(t.field);if(l){if(gi(n)&&!t.required)return r();On.required(t,n,i,a,o),n!==void 0&&On.type(t,n,i,a,o)}r(a)},Mne=function(t,n,r,i,o){var a=[],l=t.required||!t.required&&i.hasOwnProperty(t.field);if(l){if(n===""&&(n=void 0),gi(n)&&!t.required)return r();On.required(t,n,i,a,o),n!==void 0&&(On.type(t,n,i,a,o),On.range(t,n,i,a,o))}r(a)},Pne=function(t,n,r,i,o){var a=[],l=t.required||!t.required&&i.hasOwnProperty(t.field);if(l){if(gi(n)&&!t.required)return r();On.required(t,n,i,a,o),n!==void 0&&On.type(t,n,i,a,o)}r(a)},Lne=function(t,n,r,i,o){var a=[],l=t.required||!t.required&&i.hasOwnProperty(t.field);if(l){if(gi(n,"string")&&!t.required)return r();On.required(t,n,i,a,o),gi(n,"string")||On.pattern(t,n,i,a,o)}r(a)},Dne=function(t,n,r,i,o){var a=[],l=t.required||!t.required&&i.hasOwnProperty(t.field);if(l){if(gi(n)&&!t.required)return r();On.required(t,n,i,a,o),gi(n)||On.type(t,n,i,a,o)}r(a)},Fne=function(t,n,r,i,o){var a=[],l=Array.isArray(n)?"array":$t(n);On.required(t,n,i,a,o,l),r(a)},Bne=function(t,n,r,i,o){var a=[],l=t.required||!t.required&&i.hasOwnProperty(t.field);if(l){if(gi(n,"string")&&!t.required)return r();On.required(t,n,i,a,o,"string"),gi(n,"string")||(On.type(t,n,i,a,o),On.range(t,n,i,a,o),On.pattern(t,n,i,a,o),t.whitespace===!0&&On.whitespace(t,n,i,a,o))}r(a)},T4=function(t,n,r,i,o){var a=t.type,l=[],c=t.required||!t.required&&i.hasOwnProperty(t.field);if(c){if(gi(n,a)&&!t.required)return r();On.required(t,n,i,l,o,a),gi(n,a)||On.type(t,n,i,l,o)}r(l)};const ep={string:Bne,method:Rne,number:Mne,boolean:One,regexp:Dne,integer:kne,float:Ane,array:_ne,object:Pne,enum:Nne,pattern:Lne,date:Ine,url:T4,hex:T4,email:T4,required:Fne,any:Tne};var $m=function(){function e(t){_r(this,e),J(this,"rules",null),J(this,"_messages",zS),this.define(t)}return Or(e,[{key:"define",value:function(n){var r=this;if(!n)throw new Error("Cannot configure a schema with no rules");if($t(n)!=="object"||Array.isArray(n))throw new Error("Rules must be an object");this.rules={},Object.keys(n).forEach(function(i){var o=n[i];r.rules[i]=Array.isArray(o)?o:[o]})}},{key:"messages",value:function(n){return n&&(this._messages=Q_(HS(),n)),this._messages}},{key:"validate",value:function(n){var r=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},a=n,l=i,c=o;if(typeof l=="function"&&(c=l,l={}),!this.rules||Object.keys(this.rules).length===0)return c&&c(null,a),Promise.resolve(a);function u(b){var E=[],x={};function C(T){if(Array.isArray(T)){var O;E=(O=E).concat.apply(O,Qe(T))}else E.push(T)}for(var S=0;S<b.length;S++)C(b[S]);E.length?(x=US(E),c(E,x)):c(null,a)}if(l.messages){var f=this.messages();f===zS&&(f=HS()),Q_(f,l.messages),l.messages=f}else l.messages=this.messages();var p={},m=l.keys||Object.keys(this.rules);m.forEach(function(b){var E=r.rules[b],x=a[b];E.forEach(function(C){var S=C;typeof S.transform=="function"&&(a===n&&(a=te({},a)),x=a[b]=S.transform(x),x!=null&&(S.type=S.type||(Array.isArray(x)?"array":$t(x)))),typeof S=="function"?S={validator:S}:S=te({},S),S.validator=r.getValidationMethod(S),S.validator&&(S.field=b,S.fullField=S.fullField||b,S.type=r.getType(S),p[b]=p[b]||[],p[b].push({rule:S,value:x,source:a,field:b}))})});var g={};return gne(p,l,function(b,E){var x=b.rule,C=(x.type==="object"||x.type==="array")&&($t(x.fields)==="object"||$t(x.defaultField)==="object");C=C&&(x.required||!x.required&&b.value),x.field=b.field;function S($,k){return te(te({},k),{},{fullField:"".concat(x.fullField,".").concat($),fullFields:x.fullFields?[].concat(Qe(x.fullFields),[$]):[$]})}function T(){var $=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],k=Array.isArray($)?$:[$];!l.suppressWarning&&k.length&&e.warning("async-validator:",k),k.length&&x.message!==void 0&&(k=[].concat(x.message));var R=k.map(Y_(x,a));if(l.first&&R.length)return g[x.field]=1,E(R);if(!C)E(R);else{if(x.required&&!b.value)return x.message!==void 0?R=[].concat(x.message).map(Y_(x,a)):l.error&&(R=[l.error(x,Qo(l.messages.required,x.field))]),E(R);var M={};x.defaultField&&Object.keys(b.value).map(function(L){M[L]=x.defaultField}),M=te(te({},M),b.rule.fields);var H={};Object.keys(M).forEach(function(L){var D=M[L],z=Array.isArray(D)?D:[D];H[L]=z.map(S.bind(null,L))});var B=new e(H);B.messages(l.messages),b.rule.options&&(b.rule.options.messages=l.messages,b.rule.options.error=l.error),B.validate(b.value,b.rule.options||l,function(L){var D=[];R&&R.length&&D.push.apply(D,Qe(R)),L&&L.length&&D.push.apply(D,Qe(L)),E(D.length?D:null)})}}var O;if(x.asyncValidator)O=x.asyncValidator(x,b.value,T,b.source,l);else if(x.validator){try{O=x.validator(x,b.value,T,b.source,l)}catch($){var I,_;(I=(_=console).error)===null||I===void 0||I.call(_,$),l.suppressValidatorError||setTimeout(function(){throw $},0),T($.message)}O===!0?T():O===!1?T(typeof x.message=="function"?x.message(x.fullField||x.field):x.message||"".concat(x.fullField||x.field," fails")):O instanceof Array?T(O):O instanceof Error&&T(O.message)}O&&O.then&&O.then(function(){return T()},function($){return T($)})},function(b){u(b)},a)}},{key:"getType",value:function(n){if(n.type===void 0&&n.pattern instanceof RegExp&&(n.type="pattern"),typeof n.validator!="function"&&n.type&&!ep.hasOwnProperty(n.type))throw new Error(Qo("Unknown rule type %s",n.type));return n.type||"string"}},{key:"getValidationMethod",value:function(n){if(typeof n.validator=="function")return n.validator;var r=Object.keys(n),i=r.indexOf("message");return i!==-1&&r.splice(i,1),r.length===1&&r[0]==="required"?ep.required:ep[this.getType(n)]||void 0}}]),e}();J($m,"register",function(t,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");ep[t]=n});J($m,"warning",fne);J($m,"messages",zS);J($m,"validators",ep);var Ho="'${name}' is not a valid ${type}",hD={default:"Validation error on field '${name}'",required:"'${name}' is required",enum:"'${name}' must be one of [${enum}]",whitespace:"'${name}' cannot be empty",date:{format:"'${name}' is invalid for format date",parse:"'${name}' could not be parsed as date",invalid:"'${name}' is invalid date"},types:{string:Ho,method:Ho,array:Ho,object:Ho,number:Ho,date:Ho,boolean:Ho,integer:Ho,float:Ho,regexp:Ho,email:Ho,url:Ho,hex:Ho},string:{len:"'${name}' must be exactly ${len} characters",min:"'${name}' must be at least ${min} characters",max:"'${name}' cannot be longer than ${max} characters",range:"'${name}' must be between ${min} and ${max} characters"},number:{len:"'${name}' must equal ${len}",min:"'${name}' cannot be less than ${min}",max:"'${name}' cannot be greater than ${max}",range:"'${name}' must be between ${min} and ${max}"},array:{len:"'${name}' must be exactly ${len} in length",min:"'${name}' cannot be less than ${min} in length",max:"'${name}' cannot be greater than ${max} in length",range:"'${name}' must be between ${min} and ${max} in length"},pattern:{mismatch:"'${name}' does not match pattern ${pattern}"}},J_=$m;function jne(e,t){return e.replace(/\\?\$\{\w+\}/g,function(n){if(n.startsWith("\\"))return n.slice(1);var r=n.slice(2,-1);return t[r]})}var eO="CODE_LOGIC_ERROR";function KS(e,t,n,r,i){return VS.apply(this,arguments)}function VS(){return VS=Yo(ir().mark(function e(t,n,r,i,o){var a,l,c,u,f,p,m,g,b;return ir().wrap(function(x){for(;;)switch(x.prev=x.next){case 0:return a=te({},r),delete a.ruleIndex,J_.warning=function(){},a.validator&&(l=a.validator,a.validator=function(){try{return l.apply(void 0,arguments)}catch(C){return console.error(C),Promise.reject(eO)}}),c=null,a&&a.type==="array"&&a.defaultField&&(c=a.defaultField,delete a.defaultField),u=new J_(J({},t,[a])),f=rf(hD,i.validateMessages),u.messages(f),p=[],x.prev=10,x.next=13,Promise.resolve(u.validate(J({},t,n),te({},i)));case 13:x.next=18;break;case 15:x.prev=15,x.t0=x.catch(10),x.t0.errors&&(p=x.t0.errors.map(function(C,S){var T=C.message,O=T===eO?f.default:T;return d.isValidElement(O)?d.cloneElement(O,{key:"error_".concat(S)}):O}));case 18:if(!(!p.length&&c)){x.next=23;break}return x.next=21,Promise.all(n.map(function(C,S){return KS("".concat(t,".").concat(S),C,c,i,o)}));case 21:return m=x.sent,x.abrupt("return",m.reduce(function(C,S){return[].concat(Qe(C),Qe(S))},[]));case 23:return g=te(te({},r),{},{name:t,enum:(r.enum||[]).join(", ")},o),b=p.map(function(C){return typeof C=="string"?jne(C,g):C}),x.abrupt("return",b);case 26:case"end":return x.stop()}},e,null,[[10,15]])})),VS.apply(this,arguments)}function Hne(e,t,n,r,i,o){var a=e.join("."),l=n.map(function(f,p){var m=f.validator,g=te(te({},f),{},{ruleIndex:p});return m&&(g.validator=function(b,E,x){var C=!1,S=function(){for(var I=arguments.length,_=new Array(I),$=0;$<I;$++)_[$]=arguments[$];Promise.resolve().then(function(){gr(!C,"Your validator function has already return a promise. `callback` will be ignored."),C||x.apply(void 0,_)})},T=m(b,E,S);C=T&&typeof T.then=="function"&&typeof T.catch=="function",gr(C,"`callback` is deprecated. Please return a promise instead."),C&&T.then(function(){x()}).catch(function(O){x(O||" ")})}),g}).sort(function(f,p){var m=f.warningOnly,g=f.ruleIndex,b=p.warningOnly,E=p.ruleIndex;return!!m==!!b?g-E:m?1:-1}),c;if(i===!0)c=new Promise(function(){var f=Yo(ir().mark(function p(m,g){var b,E,x;return ir().wrap(function(S){for(;;)switch(S.prev=S.next){case 0:b=0;case 1:if(!(b<l.length)){S.next=12;break}return E=l[b],S.next=5,KS(a,t,E,r,o);case 5:if(x=S.sent,!x.length){S.next=9;break}return g([{errors:x,rule:E}]),S.abrupt("return");case 9:b+=1,S.next=1;break;case 12:m([]);case 13:case"end":return S.stop()}},p)}));return function(p,m){return f.apply(this,arguments)}}());else{var u=l.map(function(f){return KS(a,t,f,r,o).then(function(p){return{errors:p,rule:f}})});c=(i?Wne(u):zne(u)).then(function(f){return Promise.reject(f)})}return c.catch(function(f){return f}),c}function zne(e){return GS.apply(this,arguments)}function GS(){return GS=Yo(ir().mark(function e(t){return ir().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.all(t).then(function(i){var o,a=(o=[]).concat.apply(o,Qe(i));return a}));case 1:case"end":return r.stop()}},e)})),GS.apply(this,arguments)}function Wne(e){return qS.apply(this,arguments)}function qS(){return qS=Yo(ir().mark(function e(t){var n;return ir().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return n=0,i.abrupt("return",new Promise(function(o){t.forEach(function(a){a.then(function(l){l.errors.length&&o([l]),n+=1,n===t.length&&o([])})})}));case 2:case"end":return i.stop()}},e)})),qS.apply(this,arguments)}function zr(e){return jS(e)}function tO(e,t){var n={};return t.forEach(function(r){var i=co(e,r);n=va(n,r,i)}),n}function Sf(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return e&&e.some(function(r){return pD(t,r,n)})}function pD(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,i){return e[i]===r})}function Une(e,t){if(e===t)return!0;if(!e&&t||e&&!t||!e||!t||$t(e)!=="object"||$t(t)!=="object")return!1;var n=Object.keys(e),r=Object.keys(t),i=new Set([].concat(n,r));return Qe(i).every(function(o){var a=e[o],l=t[o];return typeof a=="function"&&typeof l=="function"?!0:a===l})}function Kne(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&$t(t.target)==="object"&&e in t.target?t.target[e]:t}function nO(e,t,n){var r=e.length;if(t<0||t>=r||n<0||n>=r)return e;var i=e[t],o=t-n;return o>0?[].concat(Qe(e.slice(0,n)),[i],Qe(e.slice(n,t)),Qe(e.slice(t+1,r))):o<0?[].concat(Qe(e.slice(0,t)),Qe(e.slice(t+1,n+1)),[i],Qe(e.slice(n+1,r))):e}var Vne=["name"],fa=[];function _4(e,t,n,r,i,o){return typeof e=="function"?e(t,n,"source"in o?{source:o.source}:{}):r!==i}var I8=function(e){la(n,e);var t=sa(n);function n(r){var i;if(_r(this,n),i=t.call(this,r),J(at(i),"state",{resetCount:0}),J(at(i),"cancelRegisterFunc",null),J(at(i),"mounted",!1),J(at(i),"touched",!1),J(at(i),"dirty",!1),J(at(i),"validatePromise",void 0),J(at(i),"prevValidating",void 0),J(at(i),"errors",fa),J(at(i),"warnings",fa),J(at(i),"cancelRegister",function(){var c=i.props,u=c.preserve,f=c.isListField,p=c.name;i.cancelRegisterFunc&&i.cancelRegisterFunc(f,u,zr(p)),i.cancelRegisterFunc=null}),J(at(i),"getNamePath",function(){var c=i.props,u=c.name,f=c.fieldContext,p=f.prefixName,m=p===void 0?[]:p;return u!==void 0?[].concat(Qe(m),Qe(u)):[]}),J(at(i),"getRules",function(){var c=i.props,u=c.rules,f=u===void 0?[]:u,p=c.fieldContext;return f.map(function(m){return typeof m=="function"?m(p):m})}),J(at(i),"refresh",function(){i.mounted&&i.setState(function(c){var u=c.resetCount;return{resetCount:u+1}})}),J(at(i),"metaCache",null),J(at(i),"triggerMetaEvent",function(c){var u=i.props.onMetaChange;if(u){var f=te(te({},i.getMeta()),{},{destroy:c});Ml(i.metaCache,f)||u(f),i.metaCache=f}else i.metaCache=null}),J(at(i),"onStoreChange",function(c,u,f){var p=i.props,m=p.shouldUpdate,g=p.dependencies,b=g===void 0?[]:g,E=p.onReset,x=f.store,C=i.getNamePath(),S=i.getValue(c),T=i.getValue(x),O=u&&Sf(u,C);switch(f.type==="valueUpdate"&&f.source==="external"&&!Ml(S,T)&&(i.touched=!0,i.dirty=!0,i.validatePromise=null,i.errors=fa,i.warnings=fa,i.triggerMetaEvent()),f.type){case"reset":if(!u||O){i.touched=!1,i.dirty=!1,i.validatePromise=void 0,i.errors=fa,i.warnings=fa,i.triggerMetaEvent(),E==null||E(),i.refresh();return}break;case"remove":{if(m&&_4(m,c,x,S,T,f)){i.reRender();return}break}case"setField":{var I=f.data;if(O){"touched"in I&&(i.touched=I.touched),"validating"in I&&!("originRCField"in I)&&(i.validatePromise=I.validating?Promise.resolve([]):null),"errors"in I&&(i.errors=I.errors||fa),"warnings"in I&&(i.warnings=I.warnings||fa),i.dirty=!0,i.triggerMetaEvent(),i.reRender();return}else if("value"in I&&Sf(u,C,!0)){i.reRender();return}if(m&&!C.length&&_4(m,c,x,S,T,f)){i.reRender();return}break}case"dependenciesUpdate":{var _=b.map(zr);if(_.some(function($){return Sf(f.relatedFields,$)})){i.reRender();return}break}default:if(O||(!b.length||C.length||m)&&_4(m,c,x,S,T,f)){i.reRender();return}break}m===!0&&i.reRender()}),J(at(i),"validateRules",function(c){var u=i.getNamePath(),f=i.getValue(),p=c||{},m=p.triggerName,g=p.validateOnly,b=g===void 0?!1:g,E=Promise.resolve().then(Yo(ir().mark(function x(){var C,S,T,O,I,_,$;return ir().wrap(function(R){for(;;)switch(R.prev=R.next){case 0:if(i.mounted){R.next=2;break}return R.abrupt("return",[]);case 2:if(C=i.props,S=C.validateFirst,T=S===void 0?!1:S,O=C.messageVariables,I=C.validateDebounce,_=i.getRules(),m&&(_=_.filter(function(M){return M}).filter(function(M){var H=M.validateTrigger;if(!H)return!0;var B=jS(H);return B.includes(m)})),!(I&&m)){R.next=10;break}return R.next=8,new Promise(function(M){setTimeout(M,I)});case 8:if(i.validatePromise===E){R.next=10;break}return R.abrupt("return",[]);case 10:return $=Hne(u,f,_,c,T,O),$.catch(function(M){return M}).then(function(){var M=arguments.length>0&&arguments[0]!==void 0?arguments[0]:fa;if(i.validatePromise===E){var H;i.validatePromise=null;var B=[],L=[];(H=M.forEach)===null||H===void 0||H.call(M,function(D){var z=D.rule.warningOnly,W=D.errors,j=W===void 0?fa:W;z?L.push.apply(L,Qe(j)):B.push.apply(B,Qe(j))}),i.errors=B,i.warnings=L,i.triggerMetaEvent(),i.reRender()}}),R.abrupt("return",$);case 13:case"end":return R.stop()}},x)})));return b||(i.validatePromise=E,i.dirty=!0,i.errors=fa,i.warnings=fa,i.triggerMetaEvent(),i.reRender()),E}),J(at(i),"isFieldValidating",function(){return!!i.validatePromise}),J(at(i),"isFieldTouched",function(){return i.touched}),J(at(i),"isFieldDirty",function(){if(i.dirty||i.props.initialValue!==void 0)return!0;var c=i.props.fieldContext,u=c.getInternalHooks(vu),f=u.getInitialValue;return f(i.getNamePath())!==void 0}),J(at(i),"getErrors",function(){return i.errors}),J(at(i),"getWarnings",function(){return i.warnings}),J(at(i),"isListField",function(){return i.props.isListField}),J(at(i),"isList",function(){return i.props.isList}),J(at(i),"isPreserve",function(){return i.props.preserve}),J(at(i),"getMeta",function(){i.prevValidating=i.isFieldValidating();var c={touched:i.isFieldTouched(),validating:i.prevValidating,errors:i.errors,warnings:i.warnings,name:i.getNamePath(),validated:i.validatePromise===null};return c}),J(at(i),"getOnlyChild",function(c){if(typeof c=="function"){var u=i.getMeta();return te(te({},i.getOnlyChild(c(i.getControlled(),u,i.props.fieldContext))),{},{isFunction:!0})}var f=ri(c);return f.length!==1||!d.isValidElement(f[0])?{child:f,isFunction:!1}:{child:f[0],isFunction:!1}}),J(at(i),"getValue",function(c){var u=i.props.fieldContext.getFieldsValue,f=i.getNamePath();return co(c||u(!0),f)}),J(at(i),"getControlled",function(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},u=i.props,f=u.name,p=u.trigger,m=u.validateTrigger,g=u.getValueFromEvent,b=u.normalize,E=u.valuePropName,x=u.getValueProps,C=u.fieldContext,S=m!==void 0?m:C.validateTrigger,T=i.getNamePath(),O=C.getInternalHooks,I=C.getFieldsValue,_=O(vu),$=_.dispatch,k=i.getValue(),R=x||function(D){return J({},E,D)},M=c[p],H=f!==void 0?R(k):{},B=te(te({},c),H);B[p]=function(){i.touched=!0,i.dirty=!0,i.triggerMetaEvent();for(var D,z=arguments.length,W=new Array(z),j=0;j<z;j++)W[j]=arguments[j];g?D=g.apply(void 0,W):D=Kne.apply(void 0,[E].concat(W)),b&&(D=b(D,k,I(!0))),D!==k&&$({type:"updateValue",namePath:T,value:D}),M&&M.apply(void 0,W)};var L=jS(S||[]);return L.forEach(function(D){var z=B[D];B[D]=function(){z&&z.apply(void 0,arguments);var W=i.props.rules;W&&W.length&&$({type:"validateField",namePath:T,triggerName:D})}}),B}),r.fieldContext){var o=r.fieldContext.getInternalHooks,a=o(vu),l=a.initEntityValue;l(at(i))}return i}return Or(n,[{key:"componentDidMount",value:function(){var i=this.props,o=i.shouldUpdate,a=i.fieldContext;if(this.mounted=!0,a){var l=a.getInternalHooks,c=l(vu),u=c.registerField;this.cancelRegisterFunc=u(this)}o===!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 i=this.state.resetCount,o=this.props.children,a=this.getOnlyChild(o),l=a.child,c=a.isFunction,u;return c?u=l:d.isValidElement(l)?u=d.cloneElement(l,this.getControlled(l.props)):(gr(!l,"`children` of Field is not validate ReactElement."),u=l),d.createElement(d.Fragment,{key:i},u)}}]),n}(d.Component);J(I8,"contextType",Fu);J(I8,"defaultProps",{trigger:"onChange",valuePropName:"value"});function $8(e){var t=e.name,n=Gt(e,Vne),r=d.useContext(Fu),i=d.useContext(Zp),o=t!==void 0?zr(t):void 0,a="keep";return n.isListField||(a="_".concat((o||[]).join("_"))),d.createElement(I8,ze({key:a,name:o,isListField:!!i},n,{fieldContext:r}))}function mD(e){var t=e.name,n=e.initialValue,r=e.children,i=e.rules,o=e.validateTrigger,a=e.isListField,l=d.useContext(Fu),c=d.useContext(Zp),u=d.useRef({keys:[],id:0}),f=u.current,p=d.useMemo(function(){var E=zr(l.prefixName)||[];return[].concat(Qe(E),Qe(zr(t)))},[l.prefixName,t]),m=d.useMemo(function(){return te(te({},l),{},{prefixName:p})},[l,p]),g=d.useMemo(function(){return{getKey:function(x){var C=p.length,S=x[C];return[f.keys[S],x.slice(C+1)]}}},[p]);if(typeof r!="function")return gr(!1,"Form.List only accepts function as children."),null;var b=function(x,C,S){var T=S.source;return T==="internal"?!1:x!==C};return d.createElement(Zp.Provider,{value:g},d.createElement(Fu.Provider,{value:m},d.createElement($8,{name:[],shouldUpdate:b,rules:i,validateTrigger:o,initialValue:n,isList:!0,isListField:a??!!c},function(E,x){var C=E.value,S=C===void 0?[]:C,T=E.onChange,O=l.getFieldValue,I=function(){var R=O(p||[]);return R||[]},_={add:function(R,M){var H=I();M>=0&&M<=H.length?(f.keys=[].concat(Qe(f.keys.slice(0,M)),[f.id],Qe(f.keys.slice(M))),T([].concat(Qe(H.slice(0,M)),[R],Qe(H.slice(M))))):(f.keys=[].concat(Qe(f.keys),[f.id]),T([].concat(Qe(H),[R]))),f.id+=1},remove:function(R){var M=I(),H=new Set(Array.isArray(R)?R:[R]);H.size<=0||(f.keys=f.keys.filter(function(B,L){return!H.has(L)}),T(M.filter(function(B,L){return!H.has(L)})))},move:function(R,M){if(R!==M){var H=I();R<0||R>=H.length||M<0||M>=H.length||(f.keys=nO(f.keys,R,M),T(nO(H,R,M)))}}},$=S||[];return Array.isArray($)||($=[]),r($.map(function(k,R){var M=f.keys[R];return M===void 0&&(f.keys[R]=f.id,M=f.keys[R],f.id+=1),{name:R,key:M,isListField:!0}}),_,x)})))}function Gne(e){var t=!1,n=e.length,r=[];return e.length?new Promise(function(i,o){e.forEach(function(a,l){a.catch(function(c){return t=!0,c}).then(function(c){n-=1,r[l]=c,!(n>0)&&(t&&o(r),i(r))})})}):Promise.resolve([])}var gD="__@field_split__";function O4(e){return e.map(function(t){return"".concat($t(t),":").concat(t)}).join(gD)}var Td=function(){function e(){_r(this,e),J(this,"kvs",new Map)}return Or(e,[{key:"set",value:function(n,r){this.kvs.set(O4(n),r)}},{key:"get",value:function(n){return this.kvs.get(O4(n))}},{key:"update",value:function(n,r){var i=this.get(n),o=r(i);o?this.set(n,o):this.delete(n)}},{key:"delete",value:function(n){this.kvs.delete(O4(n))}},{key:"map",value:function(n){return Qe(this.kvs.entries()).map(function(r){var i=Oe(r,2),o=i[0],a=i[1],l=o.split(gD);return n({key:l.map(function(c){var u=c.match(/^([^:]*):(.*)$/),f=Oe(u,3),p=f[1],m=f[2];return p==="number"?Number(m):m}),value:a})})}},{key:"toJSON",value:function(){var n={};return this.map(function(r){var i=r.key,o=r.value;return n[i.join(".")]=o,null}),n}}]),e}(),qne=["name"],Xne=Or(function e(t){var n=this;_r(this,e),J(this,"formHooked",!1),J(this,"forceRootUpdate",void 0),J(this,"subscribable",!0),J(this,"store",{}),J(this,"fieldEntities",[]),J(this,"initialValues",{}),J(this,"callbacks",{}),J(this,"validateMessages",null),J(this,"preserve",null),J(this,"lastValidatePromise",null),J(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}}),J(this,"getInternalHooks",function(r){return r===vu?(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}):(gr(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),J(this,"useSubscribe",function(r){n.subscribable=r}),J(this,"prevWithoutPreserves",null),J(this,"setInitialValues",function(r,i){if(n.initialValues=r||{},i){var o,a=rf(r,n.store);(o=n.prevWithoutPreserves)===null||o===void 0||o.map(function(l){var c=l.key;a=va(a,c,co(r,c))}),n.prevWithoutPreserves=null,n.updateStore(a)}}),J(this,"destroyForm",function(r){if(r)n.updateStore({});else{var i=new Td;n.getFieldEntities(!0).forEach(function(o){n.isMergedPreserve(o.isPreserve())||i.set(o.getNamePath(),!0)}),n.prevWithoutPreserves=i}}),J(this,"getInitialValue",function(r){var i=co(n.initialValues,r);return r.length?rf(i):i}),J(this,"setCallbacks",function(r){n.callbacks=r}),J(this,"setValidateMessages",function(r){n.validateMessages=r}),J(this,"setPreserve",function(r){n.preserve=r}),J(this,"watchList",[]),J(this,"registerWatch",function(r){return n.watchList.push(r),function(){n.watchList=n.watchList.filter(function(i){return i!==r})}}),J(this,"notifyWatch",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(n.watchList.length){var i=n.getFieldsValue(),o=n.getFieldsValue(!0);n.watchList.forEach(function(a){a(i,o,r)})}}),J(this,"timeoutId",null),J(this,"warningUnhooked",function(){}),J(this,"updateStore",function(r){n.store=r}),J(this,"getFieldEntities",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return r?n.fieldEntities.filter(function(i){return i.getNamePath().length}):n.fieldEntities}),J(this,"getFieldsMap",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,i=new Td;return n.getFieldEntities(r).forEach(function(o){var a=o.getNamePath();i.set(a,o)}),i}),J(this,"getFieldEntitiesForNamePathList",function(r){if(!r)return n.getFieldEntities(!0);var i=n.getFieldsMap(!0);return r.map(function(o){var a=zr(o);return i.get(a)||{INVALIDATE_NAME_PATH:zr(o)}})}),J(this,"getFieldsValue",function(r,i){n.warningUnhooked();var o,a,l;if(r===!0||Array.isArray(r)?(o=r,a=i):r&&$t(r)==="object"&&(l=r.strict,a=r.filter),o===!0&&!a)return n.store;var c=n.getFieldEntitiesForNamePathList(Array.isArray(o)?o:null),u=[];return c.forEach(function(f){var p,m,g="INVALIDATE_NAME_PATH"in f?f.INVALIDATE_NAME_PATH:f.getNamePath();if(l){var b,E;if((b=(E=f).isList)!==null&&b!==void 0&&b.call(E))return}else if(!o&&(p=(m=f).isListField)!==null&&p!==void 0&&p.call(m))return;if(!a)u.push(g);else{var x="getMeta"in f?f.getMeta():null;a(x)&&u.push(g)}}),tO(n.store,u.map(zr))}),J(this,"getFieldValue",function(r){n.warningUnhooked();var i=zr(r);return co(n.store,i)}),J(this,"getFieldsError",function(r){n.warningUnhooked();var i=n.getFieldEntitiesForNamePathList(r);return i.map(function(o,a){return o&&!("INVALIDATE_NAME_PATH"in o)?{name:o.getNamePath(),errors:o.getErrors(),warnings:o.getWarnings()}:{name:zr(r[a]),errors:[],warnings:[]}})}),J(this,"getFieldError",function(r){n.warningUnhooked();var i=zr(r),o=n.getFieldsError([i])[0];return o.errors}),J(this,"getFieldWarning",function(r){n.warningUnhooked();var i=zr(r),o=n.getFieldsError([i])[0];return o.warnings}),J(this,"isFieldsTouched",function(){n.warningUnhooked();for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];var a=i[0],l=i[1],c,u=!1;i.length===0?c=null:i.length===1?Array.isArray(a)?(c=a.map(zr),u=!1):(c=null,u=a):(c=a.map(zr),u=l);var f=n.getFieldEntities(!0),p=function(x){return x.isFieldTouched()};if(!c)return u?f.every(function(E){return p(E)||E.isList()}):f.some(p);var m=new Td;c.forEach(function(E){m.set(E,[])}),f.forEach(function(E){var x=E.getNamePath();c.forEach(function(C){C.every(function(S,T){return x[T]===S})&&m.update(C,function(S){return[].concat(Qe(S),[E])})})});var g=function(x){return x.some(p)},b=m.map(function(E){var x=E.value;return x});return u?b.every(g):b.some(g)}),J(this,"isFieldTouched",function(r){return n.warningUnhooked(),n.isFieldsTouched([r])}),J(this,"isFieldsValidating",function(r){n.warningUnhooked();var i=n.getFieldEntities();if(!r)return i.some(function(a){return a.isFieldValidating()});var o=r.map(zr);return i.some(function(a){var l=a.getNamePath();return Sf(o,l)&&a.isFieldValidating()})}),J(this,"isFieldValidating",function(r){return n.warningUnhooked(),n.isFieldsValidating([r])}),J(this,"resetWithFieldInitialValue",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=new Td,o=n.getFieldEntities(!0);o.forEach(function(c){var u=c.props.initialValue,f=c.getNamePath();if(u!==void 0){var p=i.get(f)||new Set;p.add({entity:c,value:u}),i.set(f,p)}});var a=function(u){u.forEach(function(f){var p=f.props.initialValue;if(p!==void 0){var m=f.getNamePath(),g=n.getInitialValue(m);if(g!==void 0)gr(!1,"Form already set 'initialValues' with path '".concat(m.join("."),"'. Field can not overwrite it."));else{var b=i.get(m);if(b&&b.size>1)gr(!1,"Multiple Field with path '".concat(m.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(b){var E=n.getFieldValue(m),x=f.isListField();!x&&(!r.skipExist||E===void 0)&&n.updateStore(va(n.store,m,Qe(b)[0].value))}}}})},l;r.entities?l=r.entities:r.namePathList?(l=[],r.namePathList.forEach(function(c){var u=i.get(c);if(u){var f;(f=l).push.apply(f,Qe(Qe(u).map(function(p){return p.entity})))}})):l=o,a(l)}),J(this,"resetFields",function(r){n.warningUnhooked();var i=n.store;if(!r){n.updateStore(rf(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(i,null,{type:"reset"}),n.notifyWatch();return}var o=r.map(zr);o.forEach(function(a){var l=n.getInitialValue(a);n.updateStore(va(n.store,a,l))}),n.resetWithFieldInitialValue({namePathList:o}),n.notifyObservers(i,o,{type:"reset"}),n.notifyWatch(o)}),J(this,"setFields",function(r){n.warningUnhooked();var i=n.store,o=[];r.forEach(function(a){var l=a.name,c=Gt(a,qne),u=zr(l);o.push(u),"value"in c&&n.updateStore(va(n.store,u,c.value)),n.notifyObservers(i,[u],{type:"setField",data:a})}),n.notifyWatch(o)}),J(this,"getFields",function(){var r=n.getFieldEntities(!0),i=r.map(function(o){var a=o.getNamePath(),l=o.getMeta(),c=te(te({},l),{},{name:a,value:n.getFieldValue(a)});return Object.defineProperty(c,"originRCField",{value:!0}),c});return i}),J(this,"initEntityValue",function(r){var i=r.props.initialValue;if(i!==void 0){var o=r.getNamePath(),a=co(n.store,o);a===void 0&&n.updateStore(va(n.store,o,i))}}),J(this,"isMergedPreserve",function(r){var i=r!==void 0?r:n.preserve;return i??!0}),J(this,"registerField",function(r){n.fieldEntities.push(r);var i=r.getNamePath();if(n.notifyWatch([i]),r.props.initialValue!==void 0){var o=n.store;n.resetWithFieldInitialValue({entities:[r],skipExist:!0}),n.notifyObservers(o,[r.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(a,l){var c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(n.fieldEntities=n.fieldEntities.filter(function(p){return p!==r}),!n.isMergedPreserve(l)&&(!a||c.length>1)){var u=a?void 0:n.getInitialValue(i);if(i.length&&n.getFieldValue(i)!==u&&n.fieldEntities.every(function(p){return!pD(p.getNamePath(),i)})){var f=n.store;n.updateStore(va(f,i,u,!0)),n.notifyObservers(f,[i],{type:"remove"}),n.triggerDependenciesUpdate(f,i)}}n.notifyWatch([i])}}),J(this,"dispatch",function(r){switch(r.type){case"updateValue":{var i=r.namePath,o=r.value;n.updateValue(i,o);break}case"validateField":{var a=r.namePath,l=r.triggerName;n.validateFields([a],{triggerName:l});break}}}),J(this,"notifyObservers",function(r,i,o){if(n.subscribable){var a=te(te({},o),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach(function(l){var c=l.onStoreChange;c(r,i,a)})}else n.forceRootUpdate()}),J(this,"triggerDependenciesUpdate",function(r,i){var o=n.getDependencyChildrenFields(i);return o.length&&n.validateFields(o),n.notifyObservers(r,o,{type:"dependenciesUpdate",relatedFields:[i].concat(Qe(o))}),o}),J(this,"updateValue",function(r,i){var o=zr(r),a=n.store;n.updateStore(va(n.store,o,i)),n.notifyObservers(a,[o],{type:"valueUpdate",source:"internal"}),n.notifyWatch([o]);var l=n.triggerDependenciesUpdate(a,o),c=n.callbacks.onValuesChange;if(c){var u=tO(n.store,[o]);c(u,n.getFieldsValue())}n.triggerOnFieldsChange([o].concat(Qe(l)))}),J(this,"setFieldsValue",function(r){n.warningUnhooked();var i=n.store;if(r){var o=rf(n.store,r);n.updateStore(o)}n.notifyObservers(i,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()}),J(this,"setFieldValue",function(r,i){n.setFields([{name:r,value:i}])}),J(this,"getDependencyChildrenFields",function(r){var i=new Set,o=[],a=new Td;n.getFieldEntities().forEach(function(c){var u=c.props.dependencies;(u||[]).forEach(function(f){var p=zr(f);a.update(p,function(){var m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return m.add(c),m})})});var l=function c(u){var f=a.get(u)||new Set;f.forEach(function(p){if(!i.has(p)){i.add(p);var m=p.getNamePath();p.isFieldDirty()&&m.length&&(o.push(m),c(m))}})};return l(r),o}),J(this,"triggerOnFieldsChange",function(r,i){var o=n.callbacks.onFieldsChange;if(o){var a=n.getFields();if(i){var l=new Td;i.forEach(function(u){var f=u.name,p=u.errors;l.set(f,p)}),a.forEach(function(u){u.errors=l.get(u.name)||u.errors})}var c=a.filter(function(u){var f=u.name;return Sf(r,f)});c.length&&o(c,a)}}),J(this,"validateFields",function(r,i){n.warningUnhooked();var o,a;Array.isArray(r)||typeof r=="string"||typeof i=="string"?(o=r,a=i):a=r;var l=!!o,c=l?o.map(zr):[],u=[],f=String(Date.now()),p=new Set,m=a||{},g=m.recursive,b=m.dirty;n.getFieldEntities(!0).forEach(function(S){if(l||c.push(S.getNamePath()),!(!S.props.rules||!S.props.rules.length)&&!(b&&!S.isFieldDirty())){var T=S.getNamePath();if(p.add(T.join(f)),!l||Sf(c,T,g)){var O=S.validateRules(te({validateMessages:te(te({},hD),n.validateMessages)},a));u.push(O.then(function(){return{name:T,errors:[],warnings:[]}}).catch(function(I){var _,$=[],k=[];return(_=I.forEach)===null||_===void 0||_.call(I,function(R){var M=R.rule.warningOnly,H=R.errors;M?k.push.apply(k,Qe(H)):$.push.apply($,Qe(H))}),$.length?Promise.reject({name:T,errors:$,warnings:k}):{name:T,errors:$,warnings:k}}))}}});var E=Gne(u);n.lastValidatePromise=E,E.catch(function(S){return S}).then(function(S){var T=S.map(function(O){var I=O.name;return I});n.notifyObservers(n.store,T,{type:"validateFinish"}),n.triggerOnFieldsChange(T,S)});var x=E.then(function(){return n.lastValidatePromise===E?Promise.resolve(n.getFieldsValue(c)):Promise.reject([])}).catch(function(S){var T=S.filter(function(O){return O&&O.errors.length});return Promise.reject({values:n.getFieldsValue(c),errorFields:T,outOfDate:n.lastValidatePromise!==E})});x.catch(function(S){return S});var C=c.filter(function(S){return p.has(S.join(f))});return n.triggerOnFieldsChange(C),x}),J(this,"submit",function(){n.warningUnhooked(),n.validateFields().then(function(r){var i=n.callbacks.onFinish;if(i)try{i(r)}catch(o){console.error(o)}}).catch(function(r){var i=n.callbacks.onFinishFailed;i&&i(r)})}),this.forceRootUpdate=t});function N8(e){var t=d.useRef(),n=d.useState({}),r=Oe(n,2),i=r[1];if(!t.current)if(e)t.current=e;else{var o=function(){i({})},a=new Xne(o);t.current=a.getForm()}return[t.current]}var XS=d.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),vD=function(t){var n=t.validateMessages,r=t.onFormChange,i=t.onFormFinish,o=t.children,a=d.useContext(XS),l=d.useRef({});return d.createElement(XS.Provider,{value:te(te({},a),{},{validateMessages:te(te({},a.validateMessages),n),triggerFormChange:function(u,f){r&&r(u,{changedFields:f,forms:l.current}),a.triggerFormChange(u,f)},triggerFormFinish:function(u,f){i&&i(u,{values:f,forms:l.current}),a.triggerFormFinish(u,f)},registerForm:function(u,f){u&&(l.current=te(te({},l.current),{},J({},u,f))),a.registerForm(u,f)},unregisterForm:function(u){var f=te({},l.current);delete f[u],l.current=f,a.unregisterForm(u)}})},o)},Yne=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"],Qne=function(t,n){var r=t.name,i=t.initialValues,o=t.fields,a=t.form,l=t.preserve,c=t.children,u=t.component,f=u===void 0?"form":u,p=t.validateMessages,m=t.validateTrigger,g=m===void 0?"onChange":m,b=t.onValuesChange,E=t.onFieldsChange,x=t.onFinish,C=t.onFinishFailed,S=t.clearOnDestroy,T=Gt(t,Yne),O=d.useRef(null),I=d.useContext(XS),_=N8(a),$=Oe(_,1),k=$[0],R=k.getInternalHooks(vu),M=R.useSubscribe,H=R.setInitialValues,B=R.setCallbacks,L=R.setValidateMessages,D=R.setPreserve,z=R.destroyForm;d.useImperativeHandle(n,function(){return te(te({},k),{},{nativeElement:O.current})}),d.useEffect(function(){return I.registerForm(r,k),function(){I.unregisterForm(r)}},[I,k,r]),L(te(te({},I.validateMessages),p)),B({onValuesChange:b,onFieldsChange:function(Y){if(I.triggerFormChange(r,Y),E){for(var ee=arguments.length,ue=new Array(ee>1?ee-1:0),ne=1;ne<ee;ne++)ue[ne-1]=arguments[ne];E.apply(void 0,[Y].concat(ue))}},onFinish:function(Y){I.triggerFormFinish(r,Y),x&&x(Y)},onFinishFailed:C}),D(l);var W=d.useRef(null);H(i,!W.current),W.current||(W.current=!0),d.useEffect(function(){return function(){return z(S)}},[]);var j,U=typeof c=="function";if(U){var q=k.getFieldsValue(!0);j=c(q,k)}else j=c;M(!U);var A=d.useRef();d.useEffect(function(){Une(A.current||[],o||[])||k.setFields(o||[]),A.current=o},[o,k]);var P=d.useMemo(function(){return te(te({},k),{},{validateTrigger:g})},[k,g]),Z=d.createElement(Zp.Provider,{value:null},d.createElement(Fu.Provider,{value:P},j));return f===!1?Z:d.createElement(f,ze({},T,{ref:O,onSubmit:function(Y){Y.preventDefault(),Y.stopPropagation(),k.submit()},onReset:function(Y){var ee;Y.preventDefault(),k.resetFields(),(ee=T.onReset)===null||ee===void 0||ee.call(T,Y)}}),Z)};function rO(e){try{return JSON.stringify(e)}catch{return Math.random()}}function yD(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],i=t[1],o=i===void 0?{}:i,a=sne(o)?{form:o}:o,l=a.form,c=d.useState(),u=Oe(c,2),f=u[0],p=u[1],m=d.useMemo(function(){return rO(f)},[f]),g=d.useRef(m);g.current=m;var b=d.useContext(Fu),E=l||b,x=E&&E._init,C=zr(r),S=d.useRef(C);return S.current=C,d.useEffect(function(){if(x){var T=E.getFieldsValue,O=E.getInternalHooks,I=O(vu),_=I.registerWatch,$=function(H,B){var L=a.preserve?B:H;return typeof r=="function"?r(L):co(L,S.current)},k=_(function(M,H){var B=$(M,H),L=rO(B);g.current!==L&&(g.current=L,p(B))}),R=$(T(),T(!0));return f!==R&&p(R),k}},[x]),f}var Zne=d.forwardRef(Qne),u1=Zne;u1.FormProvider=vD;u1.Field=$8;u1.List=mD;u1.useForm=N8;u1.useWatch=yD;const gs=d.createContext({labelAlign:"right",vertical:!1,itemRef:()=>{}}),bD=d.createContext(null),CD=e=>{const t=tr(e,["prefixCls"]);return d.createElement(vD,Object.assign({},t))},A8=d.createContext({prefixCls:""}),fo=d.createContext({}),Jne=e=>{let{children:t,status:n,override:r}=e;const i=d.useContext(fo),o=d.useMemo(()=>{const a=Object.assign({},i);return r&&delete a.isFormItemInput,n&&(delete a.status,delete a.hasFeedback,delete a.feedbackIcon),a},[n,r,i]);return d.createElement(fo.Provider,{value:o},t)},SD=d.createContext(void 0),Jp=e=>{const{space:t,form:n,children:r}=e;if(r==null)return null;let i=r;return n&&(i=be.createElement(Jne,{override:!0,status:!0},i)),t&&(i=be.createElement($ee,null,i)),i};function cy(e){if(e)return{closable:e.closable,closeIcon:e.closeIcon}}function iO(e){const{closable:t,closeIcon:n}=e||{};return be.useMemo(()=>{if(!t&&(t===!1||n===!1||n===null))return!1;if(t===void 0&&n===void 0)return null;let r={closeIcon:typeof n!="boolean"&&n!==null?n:void 0};return t&&typeof t=="object"&&(r=Object.assign(Object.assign({},r),t)),r},[t,n])}function oO(){const e={};for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach(i=>{i&&Object.keys(i).forEach(o=>{i[o]!==void 0&&(e[o]=i[o])})}),e}const ere={};function ED(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ere;const r=iO(e),i=iO(t),o=typeof r!="boolean"?!!(r!=null&&r.disabled):!1,a=be.useMemo(()=>Object.assign({closeIcon:be.createElement(Vu,null)},n),[n]),l=be.useMemo(()=>r===!1?!1:r?oO(a,i,r):i===!1?!1:i?oO(a,i):a.closable?a:!1,[r,i,a]);return be.useMemo(()=>{if(l===!1)return[!1,null,o];const{closeIconRender:c}=a,{closeIcon:u}=l;let f=u;if(f!=null){c&&(f=c(u));const p=_i(l,!0);Object.keys(p).length&&(f=be.isValidElement(f)?be.cloneElement(f,p):be.createElement("span",Object.assign({},p),f))}return[!0,f,o]},[l,a])}var xD=function(t){if(Ti()&&window.document.documentElement){var n=Array.isArray(t)?t:[t],r=window.document.documentElement;return n.some(function(i){return i in r.style})}return!1},tre=function(t,n){if(!xD(t))return!1;var r=document.createElement("div"),i=r.style[t];return r.style[t]=n,r.style[t]!==i};function YS(e,t){return!Array.isArray(e)&&t!==void 0?tre(e,t):xD(e)}const nre=()=>Ti()&&window.document.documentElement,Lb=e=>{const{prefixCls:t,className:n,style:r,size:i,shape:o}=e,a=le({[`${t}-lg`]:i==="large",[`${t}-sm`]:i==="small"}),l=le({[`${t}-circle`]:o==="circle",[`${t}-square`]:o==="square",[`${t}-round`]:o==="round"}),c=d.useMemo(()=>typeof i=="number"?{width:i,height:i,lineHeight:`${i}px`}:{},[i]);return d.createElement("span",{className:le(t,a,l,n),style:Object.assign(Object.assign({},c),r)})},rre=new Sn("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),Db=e=>({height:e,lineHeight:ie(e)}),Ef=e=>Object.assign({width:e},Db(e)),ire=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:rre,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),I4=(e,t)=>Object.assign({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal()},Db(e)),ore=e=>{const{skeletonAvatarCls:t,gradientFromColor:n,controlHeight:r,controlHeightLG:i,controlHeightSM:o}=e;return{[t]:Object.assign({display:"inline-block",verticalAlign:"top",background:n},Ef(r)),[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:Object.assign({},Ef(i)),[`${t}${t}-sm`]:Object.assign({},Ef(o))}},are=e=>{const{controlHeight:t,borderRadiusSM:n,skeletonInputCls:r,controlHeightLG:i,controlHeightSM:o,gradientFromColor:a,calc:l}=e;return{[r]:Object.assign({display:"inline-block",verticalAlign:"top",background:a,borderRadius:n},I4(t,l)),[`${r}-lg`]:Object.assign({},I4(i,l)),[`${r}-sm`]:Object.assign({},I4(o,l))}},aO=e=>Object.assign({width:e},Db(e)),lre=e=>{const{skeletonImageCls:t,imageSizeBase:n,gradientFromColor:r,borderRadiusSM:i,calc:o}=e;return{[t]:Object.assign(Object.assign({display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"middle",background:r,borderRadius:i},aO(o(n).mul(2).equal())),{[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:Object.assign(Object.assign({},aO(n)),{maxWidth:o(n).mul(4).equal(),maxHeight:o(n).mul(4).equal()}),[`${t}-svg${t}-svg-circle`]:{borderRadius:"50%"}}),[`${t}${t}-circle`]:{borderRadius:"50%"}}},$4=(e,t,n)=>{const{skeletonButtonCls:r}=e;return{[`${n}${r}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${n}${r}-round`]:{borderRadius:t}}},N4=(e,t)=>Object.assign({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal()},Db(e)),sre=e=>{const{borderRadiusSM:t,skeletonButtonCls:n,controlHeight:r,controlHeightLG:i,controlHeightSM:o,gradientFromColor:a,calc:l}=e;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[n]:Object.assign({display:"inline-block",verticalAlign:"top",background:a,borderRadius:t,width:l(r).mul(2).equal(),minWidth:l(r).mul(2).equal()},N4(r,l))},$4(e,r,n)),{[`${n}-lg`]:Object.assign({},N4(i,l))}),$4(e,i,`${n}-lg`)),{[`${n}-sm`]:Object.assign({},N4(o,l))}),$4(e,o,`${n}-sm`))},cre=e=>{const{componentCls:t,skeletonAvatarCls:n,skeletonTitleCls:r,skeletonParagraphCls:i,skeletonButtonCls:o,skeletonInputCls:a,skeletonImageCls:l,controlHeight:c,controlHeightLG:u,controlHeightSM:f,gradientFromColor:p,padding:m,marginSM:g,borderRadius:b,titleHeight:E,blockRadius:x,paragraphLiHeight:C,controlHeightXS:S,paragraphMarginTop:T}=e;return{[t]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:m,verticalAlign:"top",[n]:Object.assign({display:"inline-block",verticalAlign:"top",background:p},Ef(c)),[`${n}-circle`]:{borderRadius:"50%"},[`${n}-lg`]:Object.assign({},Ef(u)),[`${n}-sm`]:Object.assign({},Ef(f))},[`${t}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[r]:{width:"100%",height:E,background:p,borderRadius:x,[`+ ${i}`]:{marginBlockStart:f}},[i]:{padding:0,"> li":{width:"100%",height:C,listStyle:"none",background:p,borderRadius:x,"+ li":{marginBlockStart:S}}},[`${i}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-content`]:{[`${r}, ${i} > li`]:{borderRadius:b}}},[`${t}-with-avatar ${t}-content`]:{[r]:{marginBlockStart:g,[`+ ${i}`]:{marginBlockStart:T}}},[`${t}${t}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},sre(e)),ore(e)),are(e)),lre(e)),[`${t}${t}-block`]:{width:"100%",[o]:{width:"100%"},[a]:{width:"100%"}},[`${t}${t}-active`]:{[`
${r},
${i} > li,
${n},
${o},
${a},
${l}
`]:Object.assign({},ire(e))}}},ure=e=>{const{colorFillContent:t,colorFill:n}=e,r=t,i=n;return{color:r,colorGradientEnd:i,gradientFromColor:r,gradientToColor:i,titleHeight:e.controlHeight/2,blockRadius:e.borderRadiusSM,paragraphMarginTop:e.marginLG+e.marginXXS,paragraphLiHeight:e.controlHeight/2}},d1=Mn("Skeleton",e=>{const{componentCls:t,calc:n}=e,r=hn(e,{skeletonAvatarCls:`${t}-avatar`,skeletonTitleCls:`${t}-title`,skeletonParagraphCls:`${t}-paragraph`,skeletonButtonCls:`${t}-button`,skeletonInputCls:`${t}-input`,skeletonImageCls:`${t}-image`,imageSizeBase:n(e.controlHeight).mul(1.5).equal(),borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${e.gradientFromColor} 25%, ${e.gradientToColor} 37%, ${e.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[cre(r)]},ure,{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),dre=e=>{const{prefixCls:t,className:n,rootClassName:r,active:i,shape:o="circle",size:a="default"}=e,{getPrefixCls:l}=d.useContext(At),c=l("skeleton",t),[u,f,p]=d1(c),m=tr(e,["prefixCls","className"]),g=le(c,`${c}-element`,{[`${c}-active`]:i},n,r,f,p);return u(d.createElement("div",{className:g},d.createElement(Lb,Object.assign({prefixCls:`${c}-avatar`,shape:o,size:a},m))))},fre=e=>{const{prefixCls:t,className:n,rootClassName:r,active:i,block:o=!1,size:a="default"}=e,{getPrefixCls:l}=d.useContext(At),c=l("skeleton",t),[u,f,p]=d1(c),m=tr(e,["prefixCls"]),g=le(c,`${c}-element`,{[`${c}-active`]:i,[`${c}-block`]:o},n,r,f,p);return u(d.createElement("div",{className:g},d.createElement(Lb,Object.assign({prefixCls:`${c}-button`,size:a},m))))},hre="M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z",pre=e=>{const{prefixCls:t,className:n,rootClassName:r,style:i,active:o}=e,{getPrefixCls:a}=d.useContext(At),l=a("skeleton",t),[c,u,f]=d1(l),p=le(l,`${l}-element`,{[`${l}-active`]:o},n,r,u,f);return c(d.createElement("div",{className:p},d.createElement("div",{className:le(`${l}-image`,n),style:i},d.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${l}-image-svg`},d.createElement("title",null,"Image placeholder"),d.createElement("path",{d:hre,className:`${l}-image-path`})))))},mre=e=>{const{prefixCls:t,className:n,rootClassName:r,active:i,block:o,size:a="default"}=e,{getPrefixCls:l}=d.useContext(At),c=l("skeleton",t),[u,f,p]=d1(c),m=tr(e,["prefixCls"]),g=le(c,`${c}-element`,{[`${c}-active`]:i,[`${c}-block`]:o},n,r,f,p);return u(d.createElement("div",{className:g},d.createElement(Lb,Object.assign({prefixCls:`${c}-input`,size:a},m))))},gre=e=>{const{prefixCls:t,className:n,rootClassName:r,style:i,active:o,children:a}=e,{getPrefixCls:l}=d.useContext(At),c=l("skeleton",t),[u,f,p]=d1(c),m=le(c,`${c}-element`,{[`${c}-active`]:o},f,n,r,p);return u(d.createElement("div",{className:m},d.createElement("div",{className:le(`${c}-image`,n),style:i},a)))},vre=(e,t)=>{const{width:n,rows:r=2}=t;if(Array.isArray(n))return n[e];if(r-1===e)return n},yre=e=>{const{prefixCls:t,className:n,style:r,rows:i}=e,o=Qe(new Array(i)).map((a,l)=>d.createElement("li",{key:l,style:{width:vre(l,e)}}));return d.createElement("ul",{className:le(t,n),style:r},o)},bre=e=>{let{prefixCls:t,className:n,width:r,style:i}=e;return d.createElement("h3",{className:le(t,n),style:Object.assign({width:r},i)})};function A4(e){return e&&typeof e=="object"?e:{}}function Cre(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function Sre(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}function Ere(e,t){const n={};return(!e||!t)&&(n.width="61%"),!e&&t?n.rows=3:n.rows=2,n}const Gu=e=>{const{prefixCls:t,loading:n,className:r,rootClassName:i,style:o,children:a,avatar:l=!1,title:c=!0,paragraph:u=!0,active:f,round:p}=e,{getPrefixCls:m,direction:g,skeleton:b}=d.useContext(At),E=m("skeleton",t),[x,C,S]=d1(E);if(n||!("loading"in e)){const T=!!l,O=!!c,I=!!u;let _;if(T){const R=Object.assign(Object.assign({prefixCls:`${E}-avatar`},Cre(O,I)),A4(l));_=d.createElement("div",{className:`${E}-header`},d.createElement(Lb,Object.assign({},R)))}let $;if(O||I){let R;if(O){const H=Object.assign(Object.assign({prefixCls:`${E}-title`},Sre(T,I)),A4(c));R=d.createElement(bre,Object.assign({},H))}let M;if(I){const H=Object.assign(Object.assign({prefixCls:`${E}-paragraph`},Ere(T,O)),A4(u));M=d.createElement(yre,Object.assign({},H))}$=d.createElement("div",{className:`${E}-content`},R,M)}const k=le(E,{[`${E}-with-avatar`]:T,[`${E}-active`]:f,[`${E}-rtl`]:g==="rtl",[`${E}-round`]:p},b==null?void 0:b.className,r,i,C,S);return x(d.createElement("div",{className:k,style:Object.assign(Object.assign({},b==null?void 0:b.style),o)},_,$))}return a??null};Gu.Button=fre;Gu.Avatar=dre;Gu.Input=mre;Gu.Image=pre;Gu.Node=gre;function lO(){}const xre=d.createContext({add:lO,remove:lO});function wre(e){const t=d.useContext(xre),n=d.useRef();return Hn(i=>{if(i){const o=e?i.querySelector(e):i;t.add(o),n.current=o}else t.remove(n.current)})}const sO=()=>{const{cancelButtonProps:e,cancelTextLocale:t,onCancel:n}=d.useContext(Im);return be.createElement(Dn,Object.assign({onClick:n},e),t)},cO=()=>{const{confirmLoading:e,okButtonProps:t,okType:n,okTextLocale:r,onOk:i}=d.useContext(Im);return be.createElement(Dn,Object.assign({},QL(n),{loading:e,onClick:i},t),r)};function wD(e,t){return be.createElement("span",{className:`${e}-close-x`},t||be.createElement(Vu,{className:`${e}-close-icon`}))}const TD=e=>{const{okText:t,okType:n="primary",cancelText:r,confirmLoading:i,onOk:o,onCancel:a,okButtonProps:l,cancelButtonProps:c,footer:u}=e,[f]=Dl("Modal",iL()),p=t||(f==null?void 0:f.okText),m=r||(f==null?void 0:f.cancelText),g={confirmLoading:i,okButtonProps:l,cancelButtonProps:c,okTextLocale:p,cancelTextLocale:m,okType:n,onOk:o,onCancel:a},b=be.useMemo(()=>g,Qe(Object.values(g)));let E;return typeof u=="function"||typeof u>"u"?(E=be.createElement(be.Fragment,null,be.createElement(sO,null),be.createElement(cO,null)),typeof u=="function"&&(E=u(E,{OkBtn:cO,CancelBtn:sO})),E=be.createElement(iD,{value:b},E)):E=u,be.createElement(c8,{disabled:!1},E)};function uO(e){return{position:e,inset:0}}const Tre=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({},uO("fixed")),{zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,pointerEvents:"none",[`${t}-hidden`]:{display:"none"}}),[`${t}-wrap`]:Object.assign(Object.assign({},uO("fixed")),{zIndex:e.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"})}},{[`${t}-root`]:JL(e)}]},_re=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:`${ie(e.marginXS)} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:Object.assign(Object.assign({},Fn(e)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${ie(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:ie(e.modalCloseBtnSize),justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:disabled":{pointerEvents:"none"},"&:hover":{color:e.modalCloseIconHoverColor,backgroundColor:e.colorBgTextHover,textDecoration:"none"},"&:active":{backgroundColor:e.colorBgTextActive}},ms(e)),[`${t}-header`]:{color:e.colorText,background:e.headerBg,borderRadius:`${ie(e.borderRadiusLG)} ${ie(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}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",margin:`${ie(e.margin)} auto`}},[`${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"}}}]},Ore=e=>{const{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},_D=e=>{const t=e.padding,n=e.fontSizeHeading5,r=e.lineHeightHeading5;return hn(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,modalCloseIconColor:e.colorIcon,modalCloseIconHoverColor:e.colorIconHover,modalCloseBtnSize:e.controlHeight,modalConfirmIconSize:e.fontHeight,modalTitleHeight:e.calc(e.titleFontSize).mul(e.titleLineHeight).equal()})},OD=e=>({footerBg:"transparent",headerBg:e.colorBgElevated,titleLineHeight:e.lineHeightHeading5,titleFontSize:e.fontSizeHeading5,contentBg:e.colorBgElevated,titleColor:e.colorTextHeading,contentPadding:e.wireframe?0:`${ie(e.paddingMD)} ${ie(e.paddingContentHorizontalLG)}`,headerPadding:e.wireframe?`${ie(e.padding)} ${ie(e.paddingLG)}`:0,headerBorderBottom:e.wireframe?`${ie(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",headerMarginBottom:e.wireframe?0:e.marginXS,bodyPadding:e.wireframe?e.paddingLG:0,footerPadding:e.wireframe?`${ie(e.paddingXS)} ${ie(e.padding)}`:0,footerBorderTop:e.wireframe?`${ie(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",footerBorderRadius:e.wireframe?`0 0 ${ie(e.borderRadiusLG)} ${ie(e.borderRadiusLG)}`:0,footerMarginTop:e.wireframe?0:e.marginSM,confirmBodyPadding:e.wireframe?`${ie(e.padding*2)} ${ie(e.padding*2)} ${ie(e.paddingLG)}`:0,confirmIconMarginInlineEnd:e.wireframe?e.margin:e.marginSM,confirmBtnsMarginTop:e.wireframe?e.marginLG:e.marginSM}),ID=Mn("Modal",e=>{const t=_D(e);return[_re(t),Ore(t),Tre(t),Om(t,"zoom")]},OD,{unitless:{titleLineHeight:!0}});var Ire=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};let QS;const $re=e=>{QS={x:e.pageX,y:e.pageY},setTimeout(()=>{QS=null},100)};nre()&&document.documentElement.addEventListener("click",$re,!0);const $D=e=>{var t;const{getPopupContainer:n,getPrefixCls:r,direction:i,modal:o}=d.useContext(At),a=V=>{const{onCancel:Y}=e;Y==null||Y(V)},l=V=>{const{onOk:Y}=e;Y==null||Y(V)},{prefixCls:c,className:u,rootClassName:f,open:p,wrapClassName:m,centered:g,getContainer:b,focusTriggerAfterClose:E=!0,style:x,visible:C,width:S=520,footer:T,classNames:O,styles:I,children:_,loading:$}=e,k=Ire(e,["prefixCls","className","rootClassName","open","wrapClassName","centered","getContainer","focusTriggerAfterClose","style","visible","width","footer","classNames","styles","children","loading"]),R=r("modal",c),M=r(),H=Kr(R),[B,L,D]=ID(R,H),z=le(m,{[`${R}-centered`]:!!g,[`${R}-wrap-rtl`]:i==="rtl"}),W=T!==null&&!$?d.createElement(TD,Object.assign({},e,{onOk:l,onCancel:a})):null,[j,U,q]=ED(cy(e),cy(o),{closable:!0,closeIcon:d.createElement(Vu,{className:`${R}-close-icon`}),closeIconRender:V=>wD(R,V)}),A=wre(`.${R}-content`),[P,Z]=xm("Modal",k.zIndex);return B(d.createElement(Jp,{form:!0,space:!0},d.createElement(Ob.Provider,{value:Z},d.createElement(dD,Object.assign({width:S},k,{zIndex:P,getContainer:b===void 0?n:b,prefixCls:R,rootClassName:le(L,f,D,H),footer:W,visible:p??C,mousePosition:(t=k.mousePosition)!==null&&t!==void 0?t:QS,onClose:a,closable:j&&{disabled:q,closeIcon:U},closeIcon:U,focusTriggerAfterClose:E,transitionName:xc(M,"zoom",e.transitionName),maskTransitionName:xc(M,"fade",e.maskTransitionName),className:le(L,u,o==null?void 0:o.className),style:Object.assign(Object.assign({},o==null?void 0:o.style),x),classNames:Object.assign(Object.assign(Object.assign({},o==null?void 0:o.classNames),O),{wrapper:le(z,O==null?void 0:O.wrapper)}),styles:Object.assign(Object.assign({},o==null?void 0:o.styles),I),panelRef:A}),$?d.createElement(Gu,{active:!0,title:!1,paragraph:{rows:4},className:`${R}-body-skeleton`}):_))))},Nre=e=>{const{componentCls:t,titleFontSize:n,titleLineHeight:r,modalConfirmIconSize:i,fontSize:o,lineHeight:a,modalTitleHeight:l,fontHeight:c,confirmBodyPadding:u}=e,f=`${t}-confirm`;return{[f]:{"&-rtl":{direction:"rtl"},[`${e.antCls}-modal-header`]:{display:"none"},[`${f}-body-wrapper`]:Object.assign({},ll()),[`&${t} ${t}-body`]:{padding:u},[`${f}-body`]:{display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${e.iconCls}`]:{flex:"none",fontSize:i,marginInlineEnd:e.confirmIconMarginInlineEnd,marginTop:e.calc(e.calc(c).sub(i).equal()).div(2).equal()},[`&-has-title > ${e.iconCls}`]:{marginTop:e.calc(e.calc(l).sub(i).equal()).div(2).equal()}},[`${f}-paragraph`]:{display:"flex",flexDirection:"column",flex:"auto",rowGap:e.marginXS},[`${e.iconCls} + ${f}-paragraph`]:{maxWidth:`calc(100% - ${ie(e.calc(e.modalConfirmIconSize).add(e.marginSM).equal())})`},[`${f}-title`]:{color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:n,lineHeight:r},[`${f}-content`]:{color:e.colorText,fontSize:o,lineHeight:a},[`${f}-btns`]:{textAlign:"end",marginTop:e.confirmBtnsMarginTop,[`${e.antCls}-btn + ${e.antCls}-btn`]:{marginBottom:0,marginInlineStart:e.marginXS}}},[`${f}-error ${f}-body > ${e.iconCls}`]:{color:e.colorError},[`${f}-warning ${f}-body > ${e.iconCls},
${f}-confirm ${f}-body > ${e.iconCls}`]:{color:e.colorWarning},[`${f}-info ${f}-body > ${e.iconCls}`]:{color:e.colorInfo},[`${f}-success ${f}-body > ${e.iconCls}`]:{color:e.colorSuccess}}},Are=s1(["Modal","confirm"],e=>{const t=_D(e);return[Nre(t)]},OD,{order:-1e3});var kre=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function ND(e){const{prefixCls:t,icon:n,okText:r,cancelText:i,confirmPrefixCls:o,type:a,okCancel:l,footer:c,locale:u}=e,f=kre(e,["prefixCls","icon","okText","cancelText","confirmPrefixCls","type","okCancel","footer","locale"]);let p=n;if(!n&&n!==null)switch(a){case"info":p=d.createElement(DL,null);break;case"success":p=d.createElement(Em,null);break;case"error":p=d.createElement(Ku,null);break;default:p=d.createElement(_b,null)}const m=l??a==="confirm",g=e.autoFocusButton===null?!1:e.autoFocusButton||"ok",[b]=Dl("Modal"),E=u||b,x=r||(m?E==null?void 0:E.okText:E==null?void 0:E.justOkText),C=i||(E==null?void 0:E.cancelText),S=Object.assign({autoFocusButton:g,cancelTextLocale:C,okTextLocale:x,mergedOkCancel:m},f),T=d.useMemo(()=>S,Qe(Object.values(S))),O=d.createElement(d.Fragment,null,d.createElement(F_,null),d.createElement(B_,null)),I=e.title!==void 0&&e.title!==null,_=`${o}-body`;return d.createElement("div",{className:`${o}-body-wrapper`},d.createElement("div",{className:le(_,{[`${_}-has-title`]:I})},p,d.createElement("div",{className:`${o}-paragraph`},I&&d.createElement("span",{className:`${o}-title`},e.title),d.createElement("div",{className:`${o}-content`},e.content))),c===void 0||typeof c=="function"?d.createElement(iD,{value:T},d.createElement("div",{className:`${o}-btns`},typeof c=="function"?c(O,{OkBtn:B_,CancelBtn:F_}):O)):c,d.createElement(Are,{prefixCls:t}))}const Rre=e=>{const{close:t,zIndex:n,afterClose:r,open:i,keyboard:o,centered:a,getContainer:l,maskStyle:c,direction:u,prefixCls:f,wrapClassName:p,rootPrefixCls:m,bodyStyle:g,closable:b=!1,closeIcon:E,modalRender:x,focusTriggerAfterClose:C,onConfirm:S,styles:T}=e,O=`${f}-confirm`,I=e.width||416,_=e.style||{},$=e.mask===void 0?!0:e.mask,k=e.maskClosable===void 0?!1:e.maskClosable,R=le(O,`${O}-${e.type}`,{[`${O}-rtl`]:u==="rtl"},e.className),[,M]=Bi(),H=d.useMemo(()=>n!==void 0?n:M.zIndexPopupBase+zL,[n,M]);return d.createElement($D,{prefixCls:f,className:R,wrapClassName:le({[`${O}-centered`]:!!e.centered},p),onCancel:()=>{t==null||t({triggerCancel:!0}),S==null||S(!1)},open:i,title:"",footer:null,transitionName:xc(m||"","zoom",e.transitionName),maskTransitionName:xc(m||"","fade",e.maskTransitionName),mask:$,maskClosable:k,style:_,styles:Object.assign({body:g,mask:c},T),width:I,zIndex:H,afterClose:r,keyboard:o,centered:a,getContainer:l,closable:b,closeIcon:E,modalRender:x,focusTriggerAfterClose:C},d.createElement(ND,Object.assign({},e,{confirmPrefixCls:O})))},AD=e=>{const{rootPrefixCls:t,iconPrefixCls:n,direction:r,theme:i}=e;return d.createElement(Fl,{prefixCls:t,iconPrefixCls:n,direction:r,theme:i},d.createElement(Rre,Object.assign({},e)))},yu=[];let kD="";function RD(){return kD}const Mre=e=>{var t,n;const{prefixCls:r,getContainer:i,direction:o}=e,a=iL(),l=d.useContext(At),c=RD()||l.getPrefixCls(),u=r||`${c}-modal`;let f=i;return f===!1&&(f=void 0),be.createElement(AD,Object.assign({},e,{rootPrefixCls:c,prefixCls:u,iconPrefixCls:l.iconPrefixCls,theme:l.theme,direction:o??l.direction,locale:(n=(t=l.locale)===null||t===void 0?void 0:t.Modal)!==null&&n!==void 0?n:a,getContainer:f}))};function Nm(e){const t=kL(),n=document.createDocumentFragment();let r=Object.assign(Object.assign({},e),{close:l,open:!0}),i;function o(){for(var u,f=arguments.length,p=new Array(f),m=0;m<f;m++)p[m]=arguments[m];if(p.some(E=>E==null?void 0:E.triggerCancel)){var b;(u=e.onCancel)===null||u===void 0||(b=u).call.apply(b,[e,()=>{}].concat(Qe(p.slice(1))))}for(let E=0;E<yu.length;E++)if(yu[E]===l){yu.splice(E,1);break}GL(n)}function a(u){clearTimeout(i),i=setTimeout(()=>{const f=t.getPrefixCls(void 0,RD()),p=t.getIconPrefixCls(),m=t.getTheme(),g=be.createElement(Mre,Object.assign({},u));p8(be.createElement(Fl,{prefixCls:f,iconPrefixCls:p,theme:m},t.holderRender?t.holderRender(g):g),n)})}function l(){for(var u=arguments.length,f=new Array(u),p=0;p<u;p++)f[p]=arguments[p];r=Object.assign(Object.assign({},r),{open:!1,afterClose:()=>{typeof e.afterClose=="function"&&e.afterClose(),o.apply(this,f)}}),r.visible&&delete r.visible,a(r)}function c(u){typeof u=="function"?r=u(r):r=Object.assign(Object.assign({},r),u),a(r)}return a(r),yu.push(l),{destroy:l,update:c}}function MD(e){return Object.assign(Object.assign({},e),{type:"warning"})}function PD(e){return Object.assign(Object.assign({},e),{type:"info"})}function LD(e){return Object.assign(Object.assign({},e),{type:"success"})}function DD(e){return Object.assign(Object.assign({},e),{type:"error"})}function FD(e){return Object.assign(Object.assign({},e),{type:"confirm"})}function Pre(e){let{rootPrefixCls:t}=e;kD=t}var Lre=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const Dre=(e,t)=>{var n,{afterClose:r,config:i}=e,o=Lre(e,["afterClose","config"]);const[a,l]=d.useState(!0),[c,u]=d.useState(i),{direction:f,getPrefixCls:p}=d.useContext(At),m=p("modal"),g=p(),b=()=>{var S;r(),(S=c.afterClose)===null||S===void 0||S.call(c)},E=function(){var S;l(!1);for(var T=arguments.length,O=new Array(T),I=0;I<T;I++)O[I]=arguments[I];if(O.some(k=>k==null?void 0:k.triggerCancel)){var $;(S=c.onCancel)===null||S===void 0||($=S).call.apply($,[c,()=>{}].concat(Qe(O.slice(1))))}};d.useImperativeHandle(t,()=>({destroy:E,update:S=>{u(T=>Object.assign(Object.assign({},T),S))}}));const x=(n=c.okCancel)!==null&&n!==void 0?n:c.type==="confirm",[C]=Dl("Modal",Pl.Modal);return d.createElement(AD,Object.assign({prefixCls:m,rootPrefixCls:g},c,{close:E,open:a,afterClose:b,okText:c.okText||(x?C==null?void 0:C.okText:C==null?void 0:C.justOkText),direction:c.direction||f,cancelText:c.cancelText||(C==null?void 0:C.cancelText)},o))},Fre=d.forwardRef(Dre);let dO=0;const Bre=d.memo(d.forwardRef((e,t)=>{const[n,r]=uee();return d.useImperativeHandle(t,()=>({patchElement:r}),[]),d.createElement(d.Fragment,null,n)}));function jre(){const e=d.useRef(null),[t,n]=d.useState([]);d.useEffect(()=>{t.length&&(Qe(t).forEach(a=>{a()}),n([]))},[t]);const r=d.useCallback(o=>function(l){var c;dO+=1;const u=d.createRef();let f;const p=new Promise(x=>{f=x});let m=!1,g;const b=d.createElement(Fre,{key:`modal-${dO}`,config:o(l),ref:u,afterClose:()=>{g==null||g()},isSilent:()=>m,onConfirm:x=>{f(x)}});return g=(c=e.current)===null||c===void 0?void 0:c.patchElement(b),g&&yu.push(g),{destroy:()=>{function x(){var C;(C=u.current)===null||C===void 0||C.destroy()}u.current?x():n(C=>[].concat(Qe(C),[x]))},update:x=>{function C(){var S;(S=u.current)===null||S===void 0||S.update(x)}u.current?C():n(S=>[].concat(Qe(S),[C]))},then:x=>(m=!0,p.then(x))}},[]);return[d.useMemo(()=>({info:r(PD),success:r(LD),error:r(DD),warning:r(MD),confirm:r(FD)}),[]),d.createElement(Bre,{key:"modal-holder",ref:e})]}const Hre=be.createContext({});function BD(e){return t=>d.createElement(Fl,{theme:{token:{motion:!1,zIndexPopupBase:0}}},d.createElement(e,Object.assign({},t)))}const jD=(e,t,n,r)=>BD(o=>{const{prefixCls:a,style:l}=o,c=d.useRef(null),[u,f]=d.useState(0),[p,m]=d.useState(0),[g,b]=Tr(!1,{value:o.open}),{getPrefixCls:E}=d.useContext(At),x=E(t||"select",a);d.useEffect(()=>{if(b(!0),typeof ResizeObserver<"u"){const T=new ResizeObserver(I=>{const _=I[0].target;f(_.offsetHeight+8),m(_.offsetWidth)}),O=setInterval(()=>{var I;const _=n?`.${n(x)}`:`.${x}-dropdown`,$=(I=c.current)===null||I===void 0?void 0:I.querySelector(_);$&&(clearInterval(O),T.observe($))},10);return()=>{clearInterval(O),T.disconnect()}}},[]);let C=Object.assign(Object.assign({},o),{style:Object.assign(Object.assign({},l),{margin:0}),open:g,visible:g,getPopupContainer:()=>c.current});r&&(C=r(C));const S={paddingBottom:u,position:"relative",minWidth:p};return d.createElement("div",{ref:c,style:S},d.createElement(e,Object.assign({},C)))}),k8=function(){if(typeof navigator>"u"||typeof window>"u")return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(e==null?void 0:e.substr(0,4))};var Fb=function(t){var n=t.className,r=t.customizeIcon,i=t.customizeIconProps,o=t.children,a=t.onMouseDown,l=t.onClick,c=typeof r=="function"?r(i):r;return d.createElement("span",{className:n,onMouseDown:function(f){f.preventDefault(),a==null||a(f)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:l,"aria-hidden":!0},c!==void 0?c:d.createElement("span",{className:le(n.split(/\s+/).map(function(u){return"".concat(u,"-icon")}))},o))},zre=function(t,n,r,i,o){var a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,l=arguments.length>6?arguments[6]:void 0,c=arguments.length>7?arguments[7]:void 0,u=be.useMemo(function(){if($t(i)==="object")return i.clearIcon;if(o)return o},[i,o]),f=be.useMemo(function(){return!!(!a&&i&&(r.length||l)&&!(c==="combobox"&&l===""))},[i,a,r.length,l,c]);return{allowClear:f,clearIcon:be.createElement(Fb,{className:"".concat(t,"-clear"),onMouseDown:n,customizeIcon:u},"×")}},HD=d.createContext(null);function Wre(){return d.useContext(HD)}function Ure(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,t=d.useState(!1),n=Oe(t,2),r=n[0],i=n[1],o=d.useRef(null),a=function(){window.clearTimeout(o.current)};d.useEffect(function(){return a},[]);var l=function(u,f){a(),o.current=window.setTimeout(function(){i(u),f&&f()},e)};return[r,l,a]}function zD(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,t=d.useRef(null),n=d.useRef(null);d.useEffect(function(){return function(){window.clearTimeout(n.current)}},[]);function r(i){(i||t.current===null)&&(t.current=i),window.clearTimeout(n.current),n.current=window.setTimeout(function(){t.current=null},e)}return[function(){return t.current},r]}function Kre(e,t,n,r){var i=d.useRef(null);i.current={open:t,triggerOpen:n,customizedTrigger:r},d.useEffect(function(){function o(a){var l;if(!((l=i.current)!==null&&l!==void 0&&l.customizedTrigger)){var c=a.target;c.shadowRoot&&a.composed&&(c=a.composedPath()[0]||c),i.current.open&&e().filter(function(u){return u}).every(function(u){return!u.contains(c)&&u!==c})&&i.current.triggerOpen(!1)}}return window.addEventListener("mousedown",o),function(){return window.removeEventListener("mousedown",o)}},[])}function Vre(e){return![it.ESC,it.SHIFT,it.BACKSPACE,it.TAB,it.WIN_KEY,it.ALT,it.META,it.WIN_KEY_RIGHT,it.CTRL,it.SEMICOLON,it.EQUALS,it.CAPS_LOCK,it.CONTEXT_MENU,it.F1,it.F2,it.F3,it.F4,it.F5,it.F6,it.F7,it.F8,it.F9,it.F10,it.F11,it.F12].includes(e)}var Gre=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],_d=void 0;function qre(e,t){var n=e.prefixCls,r=e.invalidate,i=e.item,o=e.renderItem,a=e.responsive,l=e.responsiveDisabled,c=e.registerSize,u=e.itemKey,f=e.className,p=e.style,m=e.children,g=e.display,b=e.order,E=e.component,x=E===void 0?"div":E,C=Gt(e,Gre),S=a&&!g;function T(k){c(u,k)}d.useEffect(function(){return function(){T(null)}},[]);var O=o&&i!==_d?o(i):m,I;r||(I={opacity:S?0:1,height:S?0:_d,overflowY:S?"hidden":_d,order:a?b:_d,pointerEvents:S?"none":_d,position:S?"absolute":_d});var _={};S&&(_["aria-hidden"]=!0);var $=d.createElement(x,ze({className:le(!r&&n,f),style:te(te({},I),p)},_,C,{ref:t}),O);return a&&($=d.createElement(Yi,{onResize:function(R){var M=R.offsetWidth;T(M)},disabled:l},$)),$}var tp=d.forwardRef(qre);tp.displayName="Item";function Xre(e){if(typeof MessageChannel>"u")kn(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}function Yre(){var e=d.useRef(null),t=function(r){e.current||(e.current=[],Xre(function(){Oa.unstable_batchedUpdates(function(){e.current.forEach(function(i){i()}),e.current=null})})),e.current.push(r)};return t}function hh(e,t){var n=d.useState(t),r=Oe(n,2),i=r[0],o=r[1],a=Hn(function(l){e(function(){o(l)})});return[i,a]}var uy=be.createContext(null),Qre=["component"],Zre=["className"],Jre=["className"],eie=function(t,n){var r=d.useContext(uy);if(!r){var i=t.component,o=i===void 0?"div":i,a=Gt(t,Qre);return d.createElement(o,ze({},a,{ref:n}))}var l=r.className,c=Gt(r,Zre),u=t.className,f=Gt(t,Jre);return d.createElement(uy.Provider,{value:null},d.createElement(tp,ze({ref:n,className:le(l,u)},c,f)))},WD=d.forwardRef(eie);WD.displayName="RawItem";var tie=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],UD="responsive",KD="invalidate";function nie(e){return"+ ".concat(e.length," ...")}function rie(e,t){var n=e.prefixCls,r=n===void 0?"rc-overflow":n,i=e.data,o=i===void 0?[]:i,a=e.renderItem,l=e.renderRawItem,c=e.itemKey,u=e.itemWidth,f=u===void 0?10:u,p=e.ssr,m=e.style,g=e.className,b=e.maxCount,E=e.renderRest,x=e.renderRawRest,C=e.suffix,S=e.component,T=S===void 0?"div":S,O=e.itemComponent,I=e.onVisibleChange,_=Gt(e,tie),$=p==="full",k=Yre(),R=hh(k,null),M=Oe(R,2),H=M[0],B=M[1],L=H||0,D=hh(k,new Map),z=Oe(D,2),W=z[0],j=z[1],U=hh(k,0),q=Oe(U,2),A=q[0],P=q[1],Z=hh(k,0),V=Oe(Z,2),Y=V[0],ee=V[1],ue=hh(k,0),ne=Oe(ue,2),se=ne[0],me=ne[1],ye=d.useState(null),de=Oe(ye,2),ce=de[0],oe=de[1],pe=d.useState(null),ve=Oe(pe,2),Te=ve[0],Ge=ve[1],je=d.useMemo(function(){return Te===null&&$?Number.MAX_SAFE_INTEGER:Te||0},[Te,H]),Je=d.useState(!1),Se=Oe(Je,2),$e=Se[0],qe=Se[1],Le="".concat(r,"-item"),Fe=Math.max(A,Y),Ke=b===UD,Ve=o.length&&Ke,Ce=b===KD,Pe=Ve||typeof b=="number"&&o.length>b,We=d.useMemo(function(){var St=o;return Ve?H===null&&$?St=o:St=o.slice(0,Math.min(o.length,L/f)):typeof b=="number"&&(St=o.slice(0,b)),St},[o,f,H,b,Ve]),Ze=d.useMemo(function(){return Ve?o.slice(je+1):o.slice(We.length)},[o,We,Ve,je]),ut=d.useCallback(function(St,yt){var lt;return typeof c=="function"?c(St):(lt=c&&(St==null?void 0:St[c]))!==null&&lt!==void 0?lt:yt},[c]),Be=d.useCallback(a||function(St){return St},[a]);function ot(St,yt,lt){Te===St&&(yt===void 0||yt===ce)||(Ge(St),lt||(qe(St<o.length-1),I==null||I(St)),yt!==void 0&&oe(yt))}function re(St,yt){B(yt.clientWidth)}function Ie(St,yt){j(function(lt){var fe=new Map(lt);return yt===null?fe.delete(St):fe.set(St,yt),fe})}function Re(St,yt){ee(yt),P(Y)}function Ae(St,yt){me(yt)}function Ye(St){return W.get(ut(We[St],St))}bn(function(){if(L&&typeof Fe=="number"&&We){var St=se,yt=We.length,lt=yt-1;if(!yt){ot(0,null);return}for(var fe=0;fe<yt;fe+=1){var xe=Ye(fe);if($&&(xe=xe||0),xe===void 0){ot(fe-1,void 0,!0);break}if(St+=xe,lt===0&&St<=L||fe===lt-1&&St+Ye(lt)<=L){ot(lt,null);break}else if(St+Fe>L){ot(fe-1,St-xe-se+Y);break}}C&&Ye(0)+se>L&&oe(null)}},[L,W,Y,se,ut,We]);var mt=$e&&!!Ze.length,Nt={};ce!==null&&Ve&&(Nt={position:"absolute",left:ce,top:0});var qt={prefixCls:Le,responsive:Ve,component:O,invalidate:Ce},Ft=l?function(St,yt){var lt=ut(St,yt);return d.createElement(uy.Provider,{key:lt,value:te(te({},qt),{},{order:yt,item:St,itemKey:lt,registerSize:Ie,display:yt<=je})},l(St,yt))}:function(St,yt){var lt=ut(St,yt);return d.createElement(tp,ze({},qt,{order:yt,key:lt,item:St,renderItem:Be,itemKey:lt,registerSize:Ie,display:yt<=je}))},Kt,Qt={order:mt?je:Number.MAX_SAFE_INTEGER,className:"".concat(Le,"-rest"),registerSize:Re,display:mt};if(x)x&&(Kt=d.createElement(uy.Provider,{value:te(te({},qt),Qt)},x(Ze)));else{var Zt=E||nie;Kt=d.createElement(tp,ze({},qt,Qt),typeof Zt=="function"?Zt(Ze):Zt)}var Mt=d.createElement(T,ze({className:le(!Ce&&r,g),style:m,ref:t},_),We.map(Ft),Pe?Kt:null,C&&d.createElement(tp,ze({},qt,{responsive:Ke,responsiveDisabled:!Ve,order:je,className:"".concat(Le,"-suffix"),registerSize:Ae,display:!0,style:Nt}),C));return Ke&&(Mt=d.createElement(Yi,{onResize:re,disabled:!Ve},Mt)),Mt}var Nl=d.forwardRef(rie);Nl.displayName="Overflow";Nl.Item=WD;Nl.RESPONSIVE=UD;Nl.INVALIDATE=KD;var iie=function(t,n){var r,i=t.prefixCls,o=t.id,a=t.inputElement,l=t.disabled,c=t.tabIndex,u=t.autoFocus,f=t.autoComplete,p=t.editable,m=t.activeDescendantId,g=t.value,b=t.maxLength,E=t.onKeyDown,x=t.onMouseDown,C=t.onChange,S=t.onPaste,T=t.onCompositionStart,O=t.onCompositionEnd,I=t.open,_=t.attrs,$=a||d.createElement("input",null),k=$,R=k.ref,M=k.props,H=M.onKeyDown,B=M.onChange,L=M.onMouseDown,D=M.onCompositionStart,z=M.onCompositionEnd,W=M.style;return"maxLength"in $.props,$=d.cloneElement($,te(te(te({type:"search"},M),{},{id:o,ref:eo(n,R),disabled:l,tabIndex:c,autoComplete:f||"off",autoFocus:u,className:le("".concat(i,"-selection-search-input"),(r=$)===null||r===void 0||(r=r.props)===null||r===void 0?void 0:r.className),role:"combobox","aria-expanded":I||!1,"aria-haspopup":"listbox","aria-owns":"".concat(o,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(o,"_list"),"aria-activedescendant":I?m:void 0},_),{},{value:p?g:"",maxLength:b,readOnly:!p,unselectable:p?null:"on",style:te(te({},W),{},{opacity:p?null:0}),onKeyDown:function(U){E(U),H&&H(U)},onMouseDown:function(U){x(U),L&&L(U)},onChange:function(U){C(U),B&&B(U)},onCompositionStart:function(U){T(U),D&&D(U)},onCompositionEnd:function(U){O(U),z&&z(U)},onPaste:S})),$},VD=d.forwardRef(iie);function GD(e){return Array.isArray(e)?e:e!==void 0?[e]:[]}var oie=typeof window<"u"&&window.document&&window.document.documentElement,aie=oie;function lie(e){return e!=null}function sie(e){return!e&&e!==0}function fO(e){return["string","number"].includes($t(e))}function qD(e){var t=void 0;return e&&(fO(e.title)?t=e.title.toString():fO(e.label)&&(t=e.label.toString())),t}function cie(e,t){aie?d.useLayoutEffect(e,t):d.useEffect(e,t)}function uie(e){var t;return(t=e.key)!==null&&t!==void 0?t:e.value}var hO=function(t){t.preventDefault(),t.stopPropagation()},die=function(t){var n=t.id,r=t.prefixCls,i=t.values,o=t.open,a=t.searchValue,l=t.autoClearSearchValue,c=t.inputRef,u=t.placeholder,f=t.disabled,p=t.mode,m=t.showSearch,g=t.autoFocus,b=t.autoComplete,E=t.activeDescendantId,x=t.tabIndex,C=t.removeIcon,S=t.maxTagCount,T=t.maxTagTextLength,O=t.maxTagPlaceholder,I=O===void 0?function(oe){return"+ ".concat(oe.length," ...")}:O,_=t.tagRender,$=t.onToggleOpen,k=t.onRemove,R=t.onInputChange,M=t.onInputPaste,H=t.onInputKeyDown,B=t.onInputMouseDown,L=t.onInputCompositionStart,D=t.onInputCompositionEnd,z=d.useRef(null),W=d.useState(0),j=Oe(W,2),U=j[0],q=j[1],A=d.useState(!1),P=Oe(A,2),Z=P[0],V=P[1],Y="".concat(r,"-selection"),ee=o||p==="multiple"&&l===!1||p==="tags"?a:"",ue=p==="tags"||p==="multiple"&&l===!1||m&&(o||Z);cie(function(){q(z.current.scrollWidth)},[ee]);var ne=function(pe,ve,Te,Ge,je){return d.createElement("span",{title:qD(pe),className:le("".concat(Y,"-item"),J({},"".concat(Y,"-item-disabled"),Te))},d.createElement("span",{className:"".concat(Y,"-item-content")},ve),Ge&&d.createElement(Fb,{className:"".concat(Y,"-item-remove"),onMouseDown:hO,onClick:je,customizeIcon:C},"×"))},se=function(pe,ve,Te,Ge,je,Je){var Se=function(qe){hO(qe),$(!o)};return d.createElement("span",{onMouseDown:Se},_({label:ve,value:pe,disabled:Te,closable:Ge,onClose:je,isMaxTag:!!Je}))},me=function(pe){var ve=pe.disabled,Te=pe.label,Ge=pe.value,je=!f&&!ve,Je=Te;if(typeof T=="number"&&(typeof Te=="string"||typeof Te=="number")){var Se=String(Je);Se.length>T&&(Je="".concat(Se.slice(0,T),"..."))}var $e=function(Le){Le&&Le.stopPropagation(),k(pe)};return typeof _=="function"?se(Ge,Je,ve,je,$e):ne(pe,Je,ve,je,$e)},ye=function(pe){var ve=typeof I=="function"?I(pe):I;return typeof _=="function"?se(void 0,ve,!1,!1,void 0,!0):ne({title:ve},ve,!1)},de=d.createElement("div",{className:"".concat(Y,"-search"),style:{width:U},onFocus:function(){V(!0)},onBlur:function(){V(!1)}},d.createElement(VD,{ref:c,open:o,prefixCls:r,id:n,inputElement:null,disabled:f,autoFocus:g,autoComplete:b,editable:ue,activeDescendantId:E,value:ee,onKeyDown:H,onMouseDown:B,onChange:R,onPaste:M,onCompositionStart:L,onCompositionEnd:D,tabIndex:x,attrs:_i(t,!0)}),d.createElement("span",{ref:z,className:"".concat(Y,"-search-mirror"),"aria-hidden":!0},ee," ")),ce=d.createElement(Nl,{prefixCls:"".concat(Y,"-overflow"),data:i,renderItem:me,renderRest:ye,suffix:de,itemKey:uie,maxCount:S});return d.createElement("span",{className:"".concat(Y,"-wrap")},ce,!i.length&&!ee&&d.createElement("span",{className:"".concat(Y,"-placeholder")},u))},fie=function(t){var n=t.inputElement,r=t.prefixCls,i=t.id,o=t.inputRef,a=t.disabled,l=t.autoFocus,c=t.autoComplete,u=t.activeDescendantId,f=t.mode,p=t.open,m=t.values,g=t.placeholder,b=t.tabIndex,E=t.showSearch,x=t.searchValue,C=t.activeValue,S=t.maxLength,T=t.onInputKeyDown,O=t.onInputMouseDown,I=t.onInputChange,_=t.onInputPaste,$=t.onInputCompositionStart,k=t.onInputCompositionEnd,R=t.title,M=d.useState(!1),H=Oe(M,2),B=H[0],L=H[1],D=f==="combobox",z=D||E,W=m[0],j=x||"";D&&C&&!B&&(j=C),d.useEffect(function(){D&&L(!1)},[D,C]);var U=f!=="combobox"&&!p&&!E?!1:!!j,q=R===void 0?qD(W):R,A=d.useMemo(function(){return W?null:d.createElement("span",{className:"".concat(r,"-selection-placeholder"),style:U?{visibility:"hidden"}:void 0},g)},[W,U,g,r]);return d.createElement("span",{className:"".concat(r,"-selection-wrap")},d.createElement("span",{className:"".concat(r,"-selection-search")},d.createElement(VD,{ref:o,prefixCls:r,id:i,open:p,inputElement:n,disabled:a,autoFocus:l,autoComplete:c,editable:z,activeDescendantId:u,value:j,onKeyDown:T,onMouseDown:O,onChange:function(Z){L(!0),I(Z)},onPaste:_,onCompositionStart:$,onCompositionEnd:k,tabIndex:b,attrs:_i(t,!0),maxLength:D?S:void 0})),!D&&W?d.createElement("span",{className:"".concat(r,"-selection-item"),title:q,style:U?{visibility:"hidden"}:void 0},W.label):null,A)},hie=function(t,n){var r=d.useRef(null),i=d.useRef(!1),o=t.prefixCls,a=t.open,l=t.mode,c=t.showSearch,u=t.tokenWithEnter,f=t.disabled,p=t.prefix,m=t.autoClearSearchValue,g=t.onSearch,b=t.onSearchSubmit,E=t.onToggleOpen,x=t.onInputKeyDown,C=t.domRef;d.useImperativeHandle(n,function(){return{focus:function(q){r.current.focus(q)},blur:function(){r.current.blur()}}});var S=zD(0),T=Oe(S,2),O=T[0],I=T[1],_=function(q){var A=q.which,P=r.current instanceof HTMLTextAreaElement;!P&&a&&(A===it.UP||A===it.DOWN)&&q.preventDefault(),x&&x(q),A===it.ENTER&&l==="tags"&&!i.current&&!a&&(b==null||b(q.target.value)),!(P&&!a&&~[it.UP,it.DOWN,it.LEFT,it.RIGHT].indexOf(A))&&Vre(A)&&E(!0)},$=function(){I(!0)},k=d.useRef(null),R=function(q){g(q,!0,i.current)!==!1&&E(!0)},M=function(){i.current=!0},H=function(q){i.current=!1,l!=="combobox"&&R(q.target.value)},B=function(q){var A=q.target.value;if(u&&k.current&&/[\r\n]/.test(k.current)){var P=k.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");A=A.replace(P,k.current)}k.current=null,R(A)},L=function(q){var A=q.clipboardData,P=A==null?void 0:A.getData("text");k.current=P||""},D=function(q){var A=q.target;if(A!==r.current){var P=document.body.style.msTouchAction!==void 0;P?setTimeout(function(){r.current.focus()}):r.current.focus()}},z=function(q){var A=O();q.target!==r.current&&!A&&!(l==="combobox"&&f)&&q.preventDefault(),(l!=="combobox"&&(!c||!A)||!a)&&(a&&m!==!1&&g("",!0,!1),E())},W={inputRef:r,onInputKeyDown:_,onInputMouseDown:$,onInputChange:B,onInputPaste:L,onInputCompositionStart:M,onInputCompositionEnd:H},j=l==="multiple"||l==="tags"?d.createElement(die,ze({},t,W)):d.createElement(fie,ze({},t,W));return d.createElement("div",{ref:C,className:"".concat(o,"-selector"),onClick:D,onMouseDown:z},p&&d.createElement("div",{className:"".concat(o,"-prefix")},p),j)},pie=d.forwardRef(hie);function mie(e){var t=e.prefixCls,n=e.align,r=e.arrow,i=e.arrowPos,o=r||{},a=o.className,l=o.content,c=i.x,u=c===void 0?0:c,f=i.y,p=f===void 0?0:f,m=d.useRef();if(!n||!n.points)return null;var g={position:"absolute"};if(n.autoArrow!==!1){var b=n.points[0],E=n.points[1],x=b[0],C=b[1],S=E[0],T=E[1];x===S||!["t","b"].includes(x)?g.top=p:x==="t"?g.top=0:g.bottom=0,C===T||!["l","r"].includes(C)?g.left=u:C==="l"?g.left=0:g.right=0}return d.createElement("div",{ref:m,className:le("".concat(t,"-arrow"),a),style:g},l)}function gie(e){var t=e.prefixCls,n=e.open,r=e.zIndex,i=e.mask,o=e.motion;return i?d.createElement(ca,ze({},o,{motionAppear:!0,visible:n,removeOnLeave:!0}),function(a){var l=a.className;return d.createElement("div",{style:{zIndex:r},className:le("".concat(t,"-mask"),l)})}):null}var vie=d.memo(function(e){var t=e.children;return t},function(e,t){return t.cache}),yie=d.forwardRef(function(e,t){var n=e.popup,r=e.className,i=e.prefixCls,o=e.style,a=e.target,l=e.onVisibleChanged,c=e.open,u=e.keepDom,f=e.fresh,p=e.onClick,m=e.mask,g=e.arrow,b=e.arrowPos,E=e.align,x=e.motion,C=e.maskMotion,S=e.forceRender,T=e.getPopupContainer,O=e.autoDestroy,I=e.portal,_=e.zIndex,$=e.onMouseEnter,k=e.onMouseLeave,R=e.onPointerEnter,M=e.onPointerDownCapture,H=e.ready,B=e.offsetX,L=e.offsetY,D=e.offsetR,z=e.offsetB,W=e.onAlign,j=e.onPrepare,U=e.stretch,q=e.targetWidth,A=e.targetHeight,P=typeof n=="function"?n():n,Z=c||u,V=(T==null?void 0:T.length)>0,Y=d.useState(!T||!V),ee=Oe(Y,2),ue=ee[0],ne=ee[1];if(bn(function(){!ue&&V&&a&&ne(!0)},[ue,V,a]),!ue)return null;var se="auto",me={left:"-1000vw",top:"-1000vh",right:se,bottom:se};if(H||!c){var ye,de=E.points,ce=E.dynamicInset||((ye=E._experimental)===null||ye===void 0?void 0:ye.dynamicInset),oe=ce&&de[0][1]==="r",pe=ce&&de[0][0]==="b";oe?(me.right=D,me.left=se):(me.left=B,me.right=se),pe?(me.bottom=z,me.top=se):(me.top=L,me.bottom=se)}var ve={};return U&&(U.includes("height")&&A?ve.height=A:U.includes("minHeight")&&A&&(ve.minHeight=A),U.includes("width")&&q?ve.width=q:U.includes("minWidth")&&q&&(ve.minWidth=q)),c||(ve.pointerEvents="none"),d.createElement(I,{open:S||Z,getContainer:T&&function(){return T(a)},autoDestroy:O},d.createElement(gie,{prefixCls:i,open:c,zIndex:_,mask:m,motion:C}),d.createElement(Yi,{onResize:W,disabled:!c},function(Te){return d.createElement(ca,ze({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:S,leavedClassName:"".concat(i,"-hidden")},x,{onAppearPrepare:j,onEnterPrepare:j,visible:c,onVisibleChanged:function(je){var Je;x==null||(Je=x.onVisibleChanged)===null||Je===void 0||Je.call(x,je),l(je)}}),function(Ge,je){var Je=Ge.className,Se=Ge.style,$e=le(i,Je,r);return d.createElement("div",{ref:eo(Te,t,je),className:$e,style:te(te(te(te({"--arrow-x":"".concat(b.x||0,"px"),"--arrow-y":"".concat(b.y||0,"px")},me),ve),Se),{},{boxSizing:"border-box",zIndex:_},o),onMouseEnter:$,onMouseLeave:k,onPointerEnter:R,onClick:p,onPointerDownCapture:M},g&&d.createElement(mie,{prefixCls:i,arrow:g,arrowPos:b,align:E}),d.createElement(vie,{cache:!c&&!f},P))})}))}),bie=d.forwardRef(function(e,t){var n=e.children,r=e.getTriggerDOMNode,i=ol(n),o=d.useCallback(function(l){Fp(t,r?r(l):l)},[r]),a=Cs(o,n.ref);return i?d.cloneElement(n,{ref:a}):n}),pO=d.createContext(null);function mO(e){return e?Array.isArray(e)?e:[e]:[]}function Cie(e,t,n,r){return d.useMemo(function(){var i=mO(n??t),o=mO(r??t),a=new Set(i),l=new Set(o);return e&&(a.has("hover")&&(a.delete("hover"),a.add("click")),l.has("hover")&&(l.delete("hover"),l.add("click"))),[a,l]},[e,t,n,r])}function Sie(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0;return n?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function Eie(e,t,n,r){for(var i=n.points,o=Object.keys(e),a=0;a<o.length;a+=1){var l,c=o[a];if(Sie((l=e[c])===null||l===void 0?void 0:l.points,i,r))return"".concat(t,"-placement-").concat(c)}return""}function gO(e,t,n,r){return t||(n?{motionName:"".concat(e,"-").concat(n)}:r?{motionName:r}:null)}function Am(e){return e.ownerDocument.defaultView}function ZS(e){for(var t=[],n=e==null?void 0:e.parentElement,r=["hidden","scroll","clip","auto"];n;){var i=Am(n).getComputedStyle(n),o=i.overflowX,a=i.overflowY,l=i.overflow;[o,a,l].some(function(c){return r.includes(c)})&&t.push(n),n=n.parentElement}return t}function em(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?t:e}function ph(e){return em(parseFloat(e),0)}function vO(e,t){var n=te({},e);return(t||[]).forEach(function(r){if(!(r instanceof HTMLBodyElement||r instanceof HTMLHtmlElement)){var i=Am(r).getComputedStyle(r),o=i.overflow,a=i.overflowClipMargin,l=i.borderTopWidth,c=i.borderBottomWidth,u=i.borderLeftWidth,f=i.borderRightWidth,p=r.getBoundingClientRect(),m=r.offsetHeight,g=r.clientHeight,b=r.offsetWidth,E=r.clientWidth,x=ph(l),C=ph(c),S=ph(u),T=ph(f),O=em(Math.round(p.width/b*1e3)/1e3),I=em(Math.round(p.height/m*1e3)/1e3),_=(b-E-S-T)*O,$=(m-g-x-C)*I,k=x*I,R=C*I,M=S*O,H=T*O,B=0,L=0;if(o==="clip"){var D=ph(a);B=D*O,L=D*I}var z=p.x+M-B,W=p.y+k-L,j=z+p.width+2*B-M-H-_,U=W+p.height+2*L-k-R-$;n.left=Math.max(n.left,z),n.top=Math.max(n.top,W),n.right=Math.min(n.right,j),n.bottom=Math.min(n.bottom,U)}}),n}function yO(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n="".concat(t),r=n.match(/^(.*)\%$/);return r?e*(parseFloat(r[1])/100):parseFloat(n)}function bO(e,t){var n=t||[],r=Oe(n,2),i=r[0],o=r[1];return[yO(e.width,i),yO(e.height,o)]}function CO(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[e[0],e[1]]}function Od(e,t){var n=t[0],r=t[1],i,o;return n==="t"?o=e.y:n==="b"?o=e.y+e.height:o=e.y+e.height/2,r==="l"?i=e.x:r==="r"?i=e.x+e.width:i=e.x+e.width/2,{x:i,y:o}}function Rs(e,t){var n={t:"b",b:"t",l:"r",r:"l"};return e.map(function(r,i){return i===t?n[r]||"c":r}).join("")}function xie(e,t,n,r,i,o,a){var l=d.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:i[r]||{}}),c=Oe(l,2),u=c[0],f=c[1],p=d.useRef(0),m=d.useMemo(function(){return t?ZS(t):[]},[t]),g=d.useRef({}),b=function(){g.current={}};e||b();var E=Hn(function(){if(t&&n&&e){let nr=function(ai,vi){var yi=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Fe,Fo=Y.x+ai,hl=Y.y+vi,Fc=Fo+oe,Zu=hl+ce,O1=Math.max(Fo,yi.left),jt=Math.max(hl,yi.top),sn=Math.min(Fc,yi.right),Kn=Math.min(Zu,yi.bottom);return Math.max(0,(sn-O1)*(Kn-jt))},rr=function(){Ct=Y.y+lt,zt=Ct+ce,Tt=Y.x+yt,Pt=Tt+oe};var S,T,O,I,_=t,$=_.ownerDocument,k=Am(_),R=k.getComputedStyle(_),M=R.width,H=R.height,B=R.position,L=_.style.left,D=_.style.top,z=_.style.right,W=_.style.bottom,j=_.style.overflow,U=te(te({},i[r]),o),q=$.createElement("div");(S=_.parentElement)===null||S===void 0||S.appendChild(q),q.style.left="".concat(_.offsetLeft,"px"),q.style.top="".concat(_.offsetTop,"px"),q.style.position=B,q.style.height="".concat(_.offsetHeight,"px"),q.style.width="".concat(_.offsetWidth,"px"),_.style.left="0",_.style.top="0",_.style.right="auto",_.style.bottom="auto",_.style.overflow="hidden";var A;if(Array.isArray(n))A={x:n[0],y:n[1],width:0,height:0};else{var P,Z,V=n.getBoundingClientRect();V.x=(P=V.x)!==null&&P!==void 0?P:V.left,V.y=(Z=V.y)!==null&&Z!==void 0?Z:V.top,A={x:V.x,y:V.y,width:V.width,height:V.height}}var Y=_.getBoundingClientRect();Y.x=(T=Y.x)!==null&&T!==void 0?T:Y.left,Y.y=(O=Y.y)!==null&&O!==void 0?O:Y.top;var ee=$.documentElement,ue=ee.clientWidth,ne=ee.clientHeight,se=ee.scrollWidth,me=ee.scrollHeight,ye=ee.scrollTop,de=ee.scrollLeft,ce=Y.height,oe=Y.width,pe=A.height,ve=A.width,Te={left:0,top:0,right:ue,bottom:ne},Ge={left:-de,top:-ye,right:se-de,bottom:me-ye},je=U.htmlRegion,Je="visible",Se="visibleFirst";je!=="scroll"&&je!==Se&&(je=Je);var $e=je===Se,qe=vO(Ge,m),Le=vO(Te,m),Fe=je===Je?Le:qe,Ke=$e?Le:Fe;_.style.left="auto",_.style.top="auto",_.style.right="0",_.style.bottom="0";var Ve=_.getBoundingClientRect();_.style.left=L,_.style.top=D,_.style.right=z,_.style.bottom=W,_.style.overflow=j,(I=_.parentElement)===null||I===void 0||I.removeChild(q);var Ce=em(Math.round(oe/parseFloat(M)*1e3)/1e3),Pe=em(Math.round(ce/parseFloat(H)*1e3)/1e3);if(Ce===0||Pe===0||Dp(n)&&!Tm(n))return;var We=U.offset,Ze=U.targetOffset,ut=bO(Y,We),Be=Oe(ut,2),ot=Be[0],re=Be[1],Ie=bO(A,Ze),Re=Oe(Ie,2),Ae=Re[0],Ye=Re[1];A.x-=Ae,A.y-=Ye;var mt=U.points||[],Nt=Oe(mt,2),qt=Nt[0],Ft=Nt[1],Kt=CO(Ft),Qt=CO(qt),Zt=Od(A,Kt),Mt=Od(Y,Qt),St=te({},U),yt=Zt.x-Mt.x+ot,lt=Zt.y-Mt.y+re,fe=nr(yt,lt),xe=nr(yt,lt,Le),ge=Od(A,["t","l"]),Ne=Od(Y,["t","l"]),Xe=Od(A,["b","r"]),nt=Od(Y,["b","r"]),pt=U.overflow||{},st=pt.adjustX,rt=pt.adjustY,He=pt.shiftX,Ue=pt.shiftY,ft=function(vi){return typeof vi=="boolean"?vi:vi>=0},Ct,zt,Tt,Pt;rr();var vt=ft(rt),gt=Qt[0]===Kt[0];if(vt&&Qt[0]==="t"&&(zt>Ke.bottom||g.current.bt)){var tt=lt;gt?tt-=ce-pe:tt=ge.y-nt.y-re;var Xt=nr(yt,tt),Jt=nr(yt,tt,Le);Xt>fe||Xt===fe&&(!$e||Jt>=xe)?(g.current.bt=!0,lt=tt,re=-re,St.points=[Rs(Qt,0),Rs(Kt,0)]):g.current.bt=!1}if(vt&&Qt[0]==="b"&&(Ct<Ke.top||g.current.tb)){var En=lt;gt?En+=ce-pe:En=Xe.y-Ne.y-re;var Wt=nr(yt,En),In=nr(yt,En,Le);Wt>fe||Wt===fe&&(!$e||In>=xe)?(g.current.tb=!0,lt=En,re=-re,St.points=[Rs(Qt,0),Rs(Kt,0)]):g.current.tb=!1}var qn=ft(st),vr=Qt[1]===Kt[1];if(qn&&Qt[1]==="l"&&(Pt>Ke.right||g.current.rl)){var ke=yt;vr?ke-=oe-ve:ke=ge.x-nt.x-ot;var dt=nr(ke,lt),cn=nr(ke,lt,Le);dt>fe||dt===fe&&(!$e||cn>=xe)?(g.current.rl=!0,yt=ke,ot=-ot,St.points=[Rs(Qt,1),Rs(Kt,1)]):g.current.rl=!1}if(qn&&Qt[1]==="r"&&(Tt<Ke.left||g.current.lr)){var $n=yt;vr?$n+=oe-ve:$n=Xe.x-Ne.x-ot;var pn=nr($n,lt),yr=nr($n,lt,Le);pn>fe||pn===fe&&(!$e||yr>=xe)?(g.current.lr=!0,yt=$n,ot=-ot,St.points=[Rs(Qt,1),Rs(Kt,1)]):g.current.lr=!1}rr();var Ir=He===!0?0:He;typeof Ir=="number"&&(Tt<Le.left&&(yt-=Tt-Le.left-ot,A.x+ve<Le.left+Ir&&(yt+=A.x-Le.left+ve-Ir)),Pt>Le.right&&(yt-=Pt-Le.right-ot,A.x>Le.right-Ir&&(yt+=A.x-Le.right+Ir)));var Bt=Ue===!0?0:Ue;typeof Bt=="number"&&(Ct<Le.top&&(lt-=Ct-Le.top-re,A.y+pe<Le.top+Bt&&(lt+=A.y-Le.top+pe-Bt)),zt>Le.bottom&&(lt-=zt-Le.bottom-re,A.y>Le.bottom-Bt&&(lt+=A.y-Le.bottom+Bt)));var bo=Y.x+yt,ji=bo+oe,cr=Y.y+lt,br=cr+ce,Dt=A.x,kt=Dt+ve,an=A.y,Cn=an+pe,fn=Math.max(bo,Dt),jn=Math.min(ji,kt),Cr=(fn+jn)/2,$r=Cr-bo,Vr=Math.max(cr,an),Br=Math.min(br,Cn),Pr=(Vr+Br)/2,Hi=Pr-cr;a==null||a(t,St);var rn=Ve.right-Y.x-(yt+Y.width),Yt=Ve.bottom-Y.y-(lt+Y.height);Ce===1&&(yt=Math.round(yt),rn=Math.round(rn)),Pe===1&&(lt=Math.round(lt),Yt=Math.round(Yt));var Nr={ready:!0,offsetX:yt/Ce,offsetY:lt/Pe,offsetR:rn/Ce,offsetB:Yt/Pe,arrowX:$r/Ce,arrowY:Hi/Pe,scaleX:Ce,scaleY:Pe,align:St};f(Nr)}}),x=function(){p.current+=1;var T=p.current;Promise.resolve().then(function(){p.current===T&&E()})},C=function(){f(function(T){return te(te({},T),{},{ready:!1})})};return bn(C,[r]),bn(function(){e||C()},[e]),[u.ready,u.offsetX,u.offsetY,u.offsetR,u.offsetB,u.arrowX,u.arrowY,u.scaleX,u.scaleY,u.align,x]}function wie(e,t,n,r,i){bn(function(){if(e&&t&&n){let p=function(){r(),i()};var o=t,a=n,l=ZS(o),c=ZS(a),u=Am(a),f=new Set([u].concat(Qe(l),Qe(c)));return f.forEach(function(m){m.addEventListener("scroll",p,{passive:!0})}),u.addEventListener("resize",p,{passive:!0}),r(),function(){f.forEach(function(m){m.removeEventListener("scroll",p),u.removeEventListener("resize",p)})}}},[e,t,n])}function Tie(e,t,n,r,i,o,a,l){var c=d.useRef(e);c.current=e;var u=d.useRef(!1);d.useEffect(function(){if(t&&r&&(!i||o)){var p=function(){u.current=!1},m=function(x){var C;c.current&&!a(((C=x.composedPath)===null||C===void 0||(C=C.call(x))===null||C===void 0?void 0:C[0])||x.target)&&!u.current&&l(!1)},g=Am(r);g.addEventListener("pointerdown",p,!0),g.addEventListener("mousedown",m,!0),g.addEventListener("contextmenu",m,!0);var b=ay(n);return b&&(b.addEventListener("mousedown",m,!0),b.addEventListener("contextmenu",m,!0)),function(){g.removeEventListener("pointerdown",p,!0),g.removeEventListener("mousedown",m,!0),g.removeEventListener("contextmenu",m,!0),b&&(b.removeEventListener("mousedown",m,!0),b.removeEventListener("contextmenu",m,!0))}}},[t,n,r,i,o]);function f(){u.current=!0}return f}var _ie=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];function Oie(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:O8,t=d.forwardRef(function(n,r){var i=n.prefixCls,o=i===void 0?"rc-trigger-popup":i,a=n.children,l=n.action,c=l===void 0?"hover":l,u=n.showAction,f=n.hideAction,p=n.popupVisible,m=n.defaultPopupVisible,g=n.onPopupVisibleChange,b=n.afterPopupVisibleChange,E=n.mouseEnterDelay,x=n.mouseLeaveDelay,C=x===void 0?.1:x,S=n.focusDelay,T=n.blurDelay,O=n.mask,I=n.maskClosable,_=I===void 0?!0:I,$=n.getPopupContainer,k=n.forceRender,R=n.autoDestroy,M=n.destroyPopupOnHide,H=n.popup,B=n.popupClassName,L=n.popupStyle,D=n.popupPlacement,z=n.builtinPlacements,W=z===void 0?{}:z,j=n.popupAlign,U=n.zIndex,q=n.stretch,A=n.getPopupClassNameFromAlign,P=n.fresh,Z=n.alignPoint,V=n.onPopupClick,Y=n.onPopupAlign,ee=n.arrow,ue=n.popupMotion,ne=n.maskMotion,se=n.popupTransitionName,me=n.popupAnimation,ye=n.maskTransitionName,de=n.maskAnimation,ce=n.className,oe=n.getTriggerDOMNode,pe=Gt(n,_ie),ve=R||M||!1,Te=d.useState(!1),Ge=Oe(Te,2),je=Ge[0],Je=Ge[1];bn(function(){Je(k8())},[]);var Se=d.useRef({}),$e=d.useContext(pO),qe=d.useMemo(function(){return{registerSubPopup:function(sn,Kn){Se.current[sn]=Kn,$e==null||$e.registerSubPopup(sn,Kn)}}},[$e]),Le=sD(),Fe=d.useState(null),Ke=Oe(Fe,2),Ve=Ke[0],Ce=Ke[1],Pe=d.useRef(null),We=Hn(function(jt){Pe.current=jt,Dp(jt)&&Ve!==jt&&Ce(jt),$e==null||$e.registerSubPopup(Le,jt)}),Ze=d.useState(null),ut=Oe(Ze,2),Be=ut[0],ot=ut[1],re=d.useRef(null),Ie=Hn(function(jt){Dp(jt)&&Be!==jt&&(ot(jt),re.current=jt)}),Re=d.Children.only(a),Ae=(Re==null?void 0:Re.props)||{},Ye={},mt=Hn(function(jt){var sn,Kn,Sr=Be;return(Sr==null?void 0:Sr.contains(jt))||((sn=ay(Sr))===null||sn===void 0?void 0:sn.host)===jt||jt===Sr||(Ve==null?void 0:Ve.contains(jt))||((Kn=ay(Ve))===null||Kn===void 0?void 0:Kn.host)===jt||jt===Ve||Object.values(Se.current).some(function(ar){return(ar==null?void 0:ar.contains(jt))||jt===ar})}),Nt=gO(o,ue,me,se),qt=gO(o,ne,de,ye),Ft=d.useState(m||!1),Kt=Oe(Ft,2),Qt=Kt[0],Zt=Kt[1],Mt=p??Qt,St=Hn(function(jt){p===void 0&&Zt(jt)});bn(function(){Zt(p||!1)},[p]);var yt=d.useRef(Mt);yt.current=Mt;var lt=d.useRef([]);lt.current=[];var fe=Hn(function(jt){var sn;St(jt),((sn=lt.current[lt.current.length-1])!==null&&sn!==void 0?sn:Mt)!==jt&&(lt.current.push(jt),g==null||g(jt))}),xe=d.useRef(),ge=function(){clearTimeout(xe.current)},Ne=function(sn){var Kn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;ge(),Kn===0?fe(sn):xe.current=setTimeout(function(){fe(sn)},Kn*1e3)};d.useEffect(function(){return ge},[]);var Xe=d.useState(!1),nt=Oe(Xe,2),pt=nt[0],st=nt[1];bn(function(jt){(!jt||Mt)&&st(!0)},[Mt]);var rt=d.useState(null),He=Oe(rt,2),Ue=He[0],ft=He[1],Ct=d.useState(null),zt=Oe(Ct,2),Tt=zt[0],Pt=zt[1],vt=function(sn){Pt([sn.clientX,sn.clientY])},gt=xie(Mt,Ve,Z&&Tt!==null?Tt:Be,D,W,j,Y),tt=Oe(gt,11),Xt=tt[0],Jt=tt[1],En=tt[2],Wt=tt[3],In=tt[4],qn=tt[5],vr=tt[6],ke=tt[7],dt=tt[8],cn=tt[9],$n=tt[10],pn=Cie(je,c,u,f),yr=Oe(pn,2),Ir=yr[0],Bt=yr[1],bo=Ir.has("click"),ji=Bt.has("click")||Bt.has("contextMenu"),cr=Hn(function(){pt||$n()}),br=function(){yt.current&&Z&&ji&&Ne(!1)};wie(Mt,Be,Ve,cr,br),bn(function(){cr()},[Tt,D]),bn(function(){Mt&&!(W!=null&&W[D])&&cr()},[JSON.stringify(j)]);var Dt=d.useMemo(function(){var jt=Eie(W,o,cn,Z);return le(jt,A==null?void 0:A(cn))},[cn,A,W,o,Z]);d.useImperativeHandle(r,function(){return{nativeElement:re.current,popupElement:Pe.current,forceAlign:cr}});var kt=d.useState(0),an=Oe(kt,2),Cn=an[0],fn=an[1],jn=d.useState(0),Cr=Oe(jn,2),$r=Cr[0],Vr=Cr[1],Br=function(){if(q&&Be){var sn=Be.getBoundingClientRect();fn(sn.width),Vr(sn.height)}},Pr=function(){Br(),cr()},Hi=function(sn){st(!1),$n(),b==null||b(sn)},rn=function(){return new Promise(function(sn){Br(),ft(function(){return sn})})};bn(function(){Ue&&($n(),Ue(),ft(null))},[Ue]);function Yt(jt,sn,Kn,Sr){Ye[jt]=function(ar){var Bc;Sr==null||Sr(ar),Ne(sn,Kn);for(var Ju=arguments.length,jc=new Array(Ju>1?Ju-1:0),ed=1;ed<Ju;ed++)jc[ed-1]=arguments[ed];(Bc=Ae[jt])===null||Bc===void 0||Bc.call.apply(Bc,[Ae,ar].concat(jc))}}(bo||ji)&&(Ye.onClick=function(jt){var sn;yt.current&&ji?Ne(!1):!yt.current&&bo&&(vt(jt),Ne(!0));for(var Kn=arguments.length,Sr=new Array(Kn>1?Kn-1:0),ar=1;ar<Kn;ar++)Sr[ar-1]=arguments[ar];(sn=Ae.onClick)===null||sn===void 0||sn.call.apply(sn,[Ae,jt].concat(Sr))});var Nr=Tie(Mt,ji,Be,Ve,O,_,mt,Ne),nr=Ir.has("hover"),rr=Bt.has("hover"),ai,vi;nr&&(Yt("onMouseEnter",!0,E,function(jt){vt(jt)}),Yt("onPointerEnter",!0,E,function(jt){vt(jt)}),ai=function(sn){(Mt||pt)&&Ve!==null&&Ve!==void 0&&Ve.contains(sn.target)&&Ne(!0,E)},Z&&(Ye.onMouseMove=function(jt){var sn;(sn=Ae.onMouseMove)===null||sn===void 0||sn.call(Ae,jt)})),rr&&(Yt("onMouseLeave",!1,C),Yt("onPointerLeave",!1,C),vi=function(){Ne(!1,C)}),Ir.has("focus")&&Yt("onFocus",!0,S),Bt.has("focus")&&Yt("onBlur",!1,T),Ir.has("contextMenu")&&(Ye.onContextMenu=function(jt){var sn;yt.current&&Bt.has("contextMenu")?Ne(!1):(vt(jt),Ne(!0)),jt.preventDefault();for(var Kn=arguments.length,Sr=new Array(Kn>1?Kn-1:0),ar=1;ar<Kn;ar++)Sr[ar-1]=arguments[ar];(sn=Ae.onContextMenu)===null||sn===void 0||sn.call.apply(sn,[Ae,jt].concat(Sr))}),ce&&(Ye.className=le(Ae.className,ce));var yi=te(te({},Ae),Ye),Fo={},hl=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];hl.forEach(function(jt){pe[jt]&&(Fo[jt]=function(){for(var sn,Kn=arguments.length,Sr=new Array(Kn),ar=0;ar<Kn;ar++)Sr[ar]=arguments[ar];(sn=yi[jt])===null||sn===void 0||sn.call.apply(sn,[yi].concat(Sr)),pe[jt].apply(pe,Sr)})});var Fc=d.cloneElement(Re,te(te({},yi),Fo)),Zu={x:qn,y:vr},O1=ee?te({},ee!==!0?ee:{}):null;return d.createElement(d.Fragment,null,d.createElement(Yi,{disabled:!Mt,ref:Ie,onResize:Pr},d.createElement(bie,{getTriggerDOMNode:oe},Fc)),d.createElement(pO.Provider,{value:qe},d.createElement(yie,{portal:e,ref:We,prefixCls:o,popup:H,className:le(B,Dt),style:L,target:Be,onMouseEnter:ai,onMouseLeave:vi,onPointerEnter:ai,zIndex:U,open:Mt,keepDom:pt,fresh:P,onClick:V,onPointerDownCapture:Nr,mask:O,motion:Nt,maskMotion:qt,onVisibleChanged:Hi,onPrepare:rn,forceRender:k,autoDestroy:ve,getPopupContainer:$,align:cn,arrow:O1,arrowPos:Zu,ready:Xt,offsetX:Jt,offsetY:En,offsetR:Wt,offsetB:In,onAlign:cr,stretch:q,targetWidth:Cn/ke,targetHeight:$r/dt})))});return t}const Bb=Oie(O8);var Iie=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],$ie=function(t){var n=t===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:n,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:n,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:n,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:n,adjustY:1},htmlRegion:"scroll"}}},Nie=function(t,n){var r=t.prefixCls;t.disabled;var i=t.visible,o=t.children,a=t.popupElement,l=t.animation,c=t.transitionName,u=t.dropdownStyle,f=t.dropdownClassName,p=t.direction,m=p===void 0?"ltr":p,g=t.placement,b=t.builtinPlacements,E=t.dropdownMatchSelectWidth,x=t.dropdownRender,C=t.dropdownAlign,S=t.getPopupContainer,T=t.empty,O=t.getTriggerDOMNode,I=t.onPopupVisibleChange,_=t.onPopupMouseEnter,$=Gt(t,Iie),k="".concat(r,"-dropdown"),R=a;x&&(R=x(a));var M=d.useMemo(function(){return b||$ie(E)},[b,E]),H=l?"".concat(k,"-").concat(l):c,B=typeof E=="number",L=d.useMemo(function(){return B?null:E===!1?"minWidth":"width"},[E,B]),D=u;B&&(D=te(te({},D),{},{width:E}));var z=d.useRef(null);return d.useImperativeHandle(n,function(){return{getPopupElement:function(){var j;return(j=z.current)===null||j===void 0?void 0:j.popupElement}}}),d.createElement(Bb,ze({},$,{showAction:I?["click"]:[],hideAction:I?["click"]:[],popupPlacement:g||(m==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:M,prefixCls:k,popupTransitionName:H,popup:d.createElement("div",{onMouseEnter:_},R),ref:z,stretch:L,popupAlign:C,popupVisible:i,getPopupContainer:S,popupClassName:le(f,J({},"".concat(k,"-empty"),T)),popupStyle:D,getTriggerDOMNode:O,onPopupVisibleChange:I}),o)},Aie=d.forwardRef(Nie);function SO(e,t){var n=e.key,r;return"value"in e&&(r=e.value),n??(r!==void 0?r:"rc-index-key-".concat(t))}function JS(e){return typeof e<"u"&&!Number.isNaN(e)}function XD(e,t){var n=e||{},r=n.label,i=n.value,o=n.options,a=n.groupLabel,l=r||(t?"children":"label");return{label:l,value:i||"value",options:o||"options",groupLabel:a||l}}function kie(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.fieldNames,r=t.childrenAsData,i=[],o=XD(n,!1),a=o.label,l=o.value,c=o.options,u=o.groupLabel;function f(p,m){Array.isArray(p)&&p.forEach(function(g){if(m||!(c in g)){var b=g[l];i.push({key:SO(g,i.length),groupOption:m,data:g,label:g[a],value:b})}else{var E=g[u];E===void 0&&r&&(E=g.label),i.push({key:SO(g,i.length),group:!0,data:g,label:E}),f(g[c],!0)}})}return f(e,!1),i}function eE(e){var t=te({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return gr(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}var Rie=function(t,n,r){if(!n||!n.length)return null;var i=!1,o=function l(c,u){var f=JP(u),p=f[0],m=f.slice(1);if(!p)return[c];var g=c.split(p);return i=i||g.length>1,g.reduce(function(b,E){return[].concat(Qe(b),Qe(l(E,m)))},[]).filter(Boolean)},a=o(t,n);return i?typeof r<"u"?a.slice(0,r):a:null},R8=d.createContext(null);function Mie(e){var t=e.visible,n=e.values;if(!t)return null;var r=50;return d.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(n.slice(0,r).map(function(i){var o=i.label,a=i.value;return["number","string"].includes($t(o))?o:a}).join(", ")),n.length>r?", ...":null)}var Pie=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","prefix","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],Lie=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],tE=function(t){return t==="tags"||t==="multiple"},Die=d.forwardRef(function(e,t){var n,r=e.id,i=e.prefixCls,o=e.className,a=e.showSearch,l=e.tagRender,c=e.direction,u=e.omitDomProps,f=e.displayValues,p=e.onDisplayValuesChange,m=e.emptyOptions,g=e.notFoundContent,b=g===void 0?"Not Found":g,E=e.onClear,x=e.mode,C=e.disabled,S=e.loading,T=e.getInputElement,O=e.getRawInputElement,I=e.open,_=e.defaultOpen,$=e.onDropdownVisibleChange,k=e.activeValue,R=e.onActiveValueChange,M=e.activeDescendantId,H=e.searchValue,B=e.autoClearSearchValue,L=e.onSearch,D=e.onSearchSplit,z=e.tokenSeparators,W=e.allowClear,j=e.prefix,U=e.suffixIcon,q=e.clearIcon,A=e.OptionList,P=e.animation,Z=e.transitionName,V=e.dropdownStyle,Y=e.dropdownClassName,ee=e.dropdownMatchSelectWidth,ue=e.dropdownRender,ne=e.dropdownAlign,se=e.placement,me=e.builtinPlacements,ye=e.getPopupContainer,de=e.showAction,ce=de===void 0?[]:de,oe=e.onFocus,pe=e.onBlur,ve=e.onKeyUp,Te=e.onKeyDown,Ge=e.onMouseDown,je=Gt(e,Pie),Je=tE(x),Se=(a!==void 0?a:Je)||x==="combobox",$e=te({},je);Lie.forEach(function(Dt){delete $e[Dt]}),u==null||u.forEach(function(Dt){delete $e[Dt]});var qe=d.useState(!1),Le=Oe(qe,2),Fe=Le[0],Ke=Le[1];d.useEffect(function(){Ke(k8())},[]);var Ve=d.useRef(null),Ce=d.useRef(null),Pe=d.useRef(null),We=d.useRef(null),Ze=d.useRef(null),ut=d.useRef(!1),Be=Ure(),ot=Oe(Be,3),re=ot[0],Ie=ot[1],Re=ot[2];d.useImperativeHandle(t,function(){var Dt,kt;return{focus:(Dt=We.current)===null||Dt===void 0?void 0:Dt.focus,blur:(kt=We.current)===null||kt===void 0?void 0:kt.blur,scrollTo:function(Cn){var fn;return(fn=Ze.current)===null||fn===void 0?void 0:fn.scrollTo(Cn)},nativeElement:Ve.current||Ce.current}});var Ae=d.useMemo(function(){var Dt;if(x!=="combobox")return H;var kt=(Dt=f[0])===null||Dt===void 0?void 0:Dt.value;return typeof kt=="string"||typeof kt=="number"?String(kt):""},[H,x,f]),Ye=x==="combobox"&&typeof T=="function"&&T()||null,mt=typeof O=="function"&&O(),Nt=Cs(Ce,mt==null||(n=mt.props)===null||n===void 0?void 0:n.ref),qt=d.useState(!1),Ft=Oe(qt,2),Kt=Ft[0],Qt=Ft[1];bn(function(){Qt(!0)},[]);var Zt=Tr(!1,{defaultValue:_,value:I}),Mt=Oe(Zt,2),St=Mt[0],yt=Mt[1],lt=Kt?St:!1,fe=!b&&m;(C||fe&&lt&&x==="combobox")&&(lt=!1);var xe=fe?!1:lt,ge=d.useCallback(function(Dt){var kt=Dt!==void 0?Dt:!lt;C||(yt(kt),lt!==kt&&($==null||$(kt)))},[C,lt,yt,$]),Ne=d.useMemo(function(){return(z||[]).some(function(Dt){return[`
`,`\r
`].includes(Dt)})},[z]),Xe=d.useContext(R8)||{},nt=Xe.maxCount,pt=Xe.rawValues,st=function(kt,an,Cn){if(!(Je&&JS(nt)&&(pt==null?void 0:pt.size)>=nt)){var fn=!0,jn=kt;R==null||R(null);var Cr=Rie(kt,z,JS(nt)?nt-pt.size:void 0),$r=Cn?null:Cr;return x!=="combobox"&&$r&&(jn="",D==null||D($r),ge(!1),fn=!1),L&&Ae!==jn&&L(jn,{source:an?"typing":"effect"}),fn}},rt=function(kt){!kt||!kt.trim()||L(kt,{source:"submit"})};d.useEffect(function(){!lt&&!Je&&x!=="combobox"&&st("",!1,!1)},[lt]),d.useEffect(function(){St&&C&&yt(!1),C&&!ut.current&&Ie(!1)},[C]);var He=zD(),Ue=Oe(He,2),ft=Ue[0],Ct=Ue[1],zt=d.useRef(!1),Tt=function(kt){var an=ft(),Cn=kt.key,fn=Cn==="Enter";if(fn&&(x!=="combobox"&&kt.preventDefault(),lt||ge(!0)),Ct(!!Ae),Cn==="Backspace"&&!an&&Je&&!Ae&&f.length){for(var jn=Qe(f),Cr=null,$r=jn.length-1;$r>=0;$r-=1){var Vr=jn[$r];if(!Vr.disabled){jn.splice($r,1),Cr=Vr;break}}Cr&&p(jn,{type:"remove",values:[Cr]})}for(var Br=arguments.length,Pr=new Array(Br>1?Br-1:0),Hi=1;Hi<Br;Hi++)Pr[Hi-1]=arguments[Hi];if(lt&&(!fn||!zt.current)){var rn;(rn=Ze.current)===null||rn===void 0||rn.onKeyDown.apply(rn,[kt].concat(Pr))}fn&&(zt.current=!0),Te==null||Te.apply(void 0,[kt].concat(Pr))},Pt=function(kt){for(var an=arguments.length,Cn=new Array(an>1?an-1:0),fn=1;fn<an;fn++)Cn[fn-1]=arguments[fn];if(lt){var jn;(jn=Ze.current)===null||jn===void 0||jn.onKeyUp.apply(jn,[kt].concat(Cn))}kt.key==="Enter"&&(zt.current=!1),ve==null||ve.apply(void 0,[kt].concat(Cn))},vt=function(kt){var an=f.filter(function(Cn){return Cn!==kt});p(an,{type:"remove",values:[kt]})},gt=d.useRef(!1),tt=function(){Ie(!0),C||(oe&&!gt.current&&oe.apply(void 0,arguments),ce.includes("focus")&&ge(!0)),gt.current=!0},Xt=function(){ut.current=!0,Ie(!1,function(){gt.current=!1,ut.current=!1,ge(!1)}),!C&&(Ae&&(x==="tags"?L(Ae,{source:"submit"}):x==="multiple"&&L("",{source:"blur"})),pe&&pe.apply(void 0,arguments))},Jt=[];d.useEffect(function(){return function(){Jt.forEach(function(Dt){return clearTimeout(Dt)}),Jt.splice(0,Jt.length)}},[]);var En=function(kt){var an,Cn=kt.target,fn=(an=Pe.current)===null||an===void 0?void 0:an.getPopupElement();if(fn&&fn.contains(Cn)){var jn=setTimeout(function(){var Br=Jt.indexOf(jn);if(Br!==-1&&Jt.splice(Br,1),Re(),!Fe&&!fn.contains(document.activeElement)){var Pr;(Pr=We.current)===null||Pr===void 0||Pr.focus()}});Jt.push(jn)}for(var Cr=arguments.length,$r=new Array(Cr>1?Cr-1:0),Vr=1;Vr<Cr;Vr++)$r[Vr-1]=arguments[Vr];Ge==null||Ge.apply(void 0,[kt].concat($r))},Wt=d.useState({}),In=Oe(Wt,2),qn=In[1];function vr(){qn({})}var ke;mt&&(ke=function(kt){ge(kt)}),Kre(function(){var Dt;return[Ve.current,(Dt=Pe.current)===null||Dt===void 0?void 0:Dt.getPopupElement()]},xe,ge,!!mt);var dt=d.useMemo(function(){return te(te({},e),{},{notFoundContent:b,open:lt,triggerOpen:xe,id:r,showSearch:Se,multiple:Je,toggleOpen:ge})},[e,b,xe,lt,r,Se,Je,ge]),cn=!!U||S,$n;cn&&($n=d.createElement(Fb,{className:le("".concat(i,"-arrow"),J({},"".concat(i,"-arrow-loading"),S)),customizeIcon:U,customizeIconProps:{loading:S,searchValue:Ae,open:lt,focused:re,showSearch:Se}}));var pn=function(){var kt;E==null||E(),(kt=We.current)===null||kt===void 0||kt.focus(),p([],{type:"clear",values:f}),st("",!1,!1)},yr=zre(i,pn,f,W,q,C,Ae,x),Ir=yr.allowClear,Bt=yr.clearIcon,bo=d.createElement(A,{ref:Ze}),ji=le(i,o,J(J(J(J(J(J(J(J(J(J({},"".concat(i,"-focused"),re),"".concat(i,"-multiple"),Je),"".concat(i,"-single"),!Je),"".concat(i,"-allow-clear"),W),"".concat(i,"-show-arrow"),cn),"".concat(i,"-disabled"),C),"".concat(i,"-loading"),S),"".concat(i,"-open"),lt),"".concat(i,"-customize-input"),Ye),"".concat(i,"-show-search"),Se)),cr=d.createElement(Aie,{ref:Pe,disabled:C,prefixCls:i,visible:xe,popupElement:bo,animation:P,transitionName:Z,dropdownStyle:V,dropdownClassName:Y,direction:c,dropdownMatchSelectWidth:ee,dropdownRender:ue,dropdownAlign:ne,placement:se,builtinPlacements:me,getPopupContainer:ye,empty:m,getTriggerDOMNode:function(kt){return Ce.current||kt},onPopupVisibleChange:ke,onPopupMouseEnter:vr},mt?d.cloneElement(mt,{ref:Nt}):d.createElement(pie,ze({},e,{domRef:Ce,prefixCls:i,inputElement:Ye,ref:We,id:r,prefix:j,showSearch:Se,autoClearSearchValue:B,mode:x,activeDescendantId:M,tagRender:l,values:f,open:lt,onToggleOpen:ge,activeValue:k,searchValue:Ae,onSearch:st,onSearchSubmit:rt,onRemove:vt,tokenWithEnter:Ne}))),br;return mt?br=cr:br=d.createElement("div",ze({className:ji},$e,{ref:Ve,onMouseDown:En,onKeyDown:Tt,onKeyUp:Pt,onFocus:tt,onBlur:Xt}),d.createElement(Mie,{visible:re&&!lt,values:f}),cr,$n,Ir&&Bt),d.createElement(HD.Provider,{value:dt},br)}),M8=function(){return null};M8.isSelectOptGroup=!0;var P8=function(){return null};P8.isSelectOption=!0;var YD=d.forwardRef(function(e,t){var n=e.height,r=e.offsetY,i=e.offsetX,o=e.children,a=e.prefixCls,l=e.onInnerResize,c=e.innerProps,u=e.rtl,f=e.extra,p={},m={display:"flex",flexDirection:"column"};return r!==void 0&&(p={height:n,position:"relative",overflow:"hidden"},m=te(te({},m),{},J(J(J(J(J({transform:"translateY(".concat(r,"px)")},u?"marginRight":"marginLeft",-i),"position","absolute"),"left",0),"right",0),"top",0))),d.createElement("div",{style:p},d.createElement(Yi,{onResize:function(b){var E=b.offsetHeight;E&&l&&l()}},d.createElement("div",ze({style:m,className:le(J({},"".concat(a,"-holder-inner"),a)),ref:t},c),o,f)))});YD.displayName="Filler";function Fie(e){var t=e.children,n=e.setRef,r=d.useCallback(function(i){n(i)},[]);return d.cloneElement(t,{ref:r})}function Bie(e,t,n,r,i,o,a,l){var c=l.getKey;return e.slice(t,n+1).map(function(u,f){var p=t+f,m=a(u,p,{style:{width:r},offsetX:i}),g=c(u);return d.createElement(Fie,{key:g,setRef:function(E){return o(u,E)}},m)})}function jie(e,t,n){var r=e.length,i=t.length,o,a;if(r===0&&i===0)return null;r<i?(o=e,a=t):(o=t,a=e);var l={__EMPTY_ITEM__:!0};function c(b){return b!==void 0?n(b):l}for(var u=null,f=Math.abs(r-i)!==1,p=0;p<a.length;p+=1){var m=c(o[p]),g=c(a[p]);if(m!==g){u=p,f=f||m!==c(a[p+1]);break}}return u===null?null:{index:u,multiple:f}}function Hie(e,t,n){var r=d.useState(e),i=Oe(r,2),o=i[0],a=i[1],l=d.useState(null),c=Oe(l,2),u=c[0],f=c[1];return d.useEffect(function(){var p=jie(o||[],e||[],t);(p==null?void 0:p.index)!==void 0&&f(e[p.index]),a(e)},[e]),[u]}var EO=(typeof navigator>"u"?"undefined":$t(navigator))==="object"&&/Firefox/i.test(navigator.userAgent);const QD=function(e,t,n,r){var i=d.useRef(!1),o=d.useRef(null);function a(){clearTimeout(o.current),i.current=!0,o.current=setTimeout(function(){i.current=!1},50)}var l=d.useRef({top:e,bottom:t,left:n,right:r});return l.current.top=e,l.current.bottom=t,l.current.left=n,l.current.right=r,function(c,u){var f=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,p=c?u<0&&l.current.left||u>0&&l.current.right:u<0&&l.current.top||u>0&&l.current.bottom;return f&&p?(clearTimeout(o.current),i.current=!1):(!p||i.current)&&a(),!i.current&&p}};function zie(e,t,n,r,i,o,a){var l=d.useRef(0),c=d.useRef(null),u=d.useRef(null),f=d.useRef(!1),p=QD(t,n,r,i);function m(S,T){if(kn.cancel(c.current),!p(!1,T)){var O=S;if(!O._virtualHandled)O._virtualHandled=!0;else return;l.current+=T,u.current=T,EO||O.preventDefault(),c.current=kn(function(){var I=f.current?10:1;a(l.current*I,!1),l.current=0})}}function g(S,T){a(T,!0),EO||S.preventDefault()}var b=d.useRef(null),E=d.useRef(null);function x(S){if(e){kn.cancel(E.current),E.current=kn(function(){b.current=null},2);var T=S.deltaX,O=S.deltaY,I=S.shiftKey,_=T,$=O;(b.current==="sx"||!b.current&&I&&O&&!T)&&(_=O,$=0,b.current="sx");var k=Math.abs(_),R=Math.abs($);b.current===null&&(b.current=o&&k>R?"x":"y"),b.current==="y"?m(S,$):g(S,_)}}function C(S){e&&(f.current=S.detail===u.current)}return[x,C]}function Wie(e,t,n,r){var i=d.useMemo(function(){return[new Map,[]]},[e,n.id,r]),o=Oe(i,2),a=o[0],l=o[1],c=function(f){var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:f,m=a.get(f),g=a.get(p);if(m===void 0||g===void 0)for(var b=e.length,E=l.length;E<b;E+=1){var x,C=e[E],S=t(C);a.set(S,E);var T=(x=n.get(S))!==null&&x!==void 0?x:r;if(l[E]=(l[E-1]||0)+T,S===f&&(m=E),S===p&&(g=E),m!==void 0&&g!==void 0)break}return{top:l[m-1]||0,bottom:l[g]}};return c}var Uie=function(){function e(){_r(this,e),J(this,"maps",void 0),J(this,"id",0),this.maps=Object.create(null)}return Or(e,[{key:"set",value:function(n,r){this.maps[n]=r,this.id+=1}},{key:"get",value:function(n){return this.maps[n]}}]),e}();function xO(e){var t=parseFloat(e);return isNaN(t)?0:t}function Kie(e,t,n){var r=d.useState(0),i=Oe(r,2),o=i[0],a=i[1],l=d.useRef(new Map),c=d.useRef(new Uie),u=d.useRef();function f(){kn.cancel(u.current)}function p(){var g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;f();var b=function(){l.current.forEach(function(x,C){if(x&&x.offsetParent){var S=Qh(x),T=S.offsetHeight,O=getComputedStyle(S),I=O.marginTop,_=O.marginBottom,$=xO(I),k=xO(_),R=T+$+k;c.current.get(C)!==R&&c.current.set(C,R)}}),a(function(x){return x+1})};g?b():u.current=kn(b)}function m(g,b){var E=e(g);l.current.get(E),b?(l.current.set(E,b),p()):l.current.delete(E)}return d.useEffect(function(){return f},[]),[m,p,c.current,o]}var wO=14/15;function Vie(e,t,n){var r=d.useRef(!1),i=d.useRef(0),o=d.useRef(0),a=d.useRef(null),l=d.useRef(null),c,u=function(g){if(r.current){var b=Math.ceil(g.touches[0].pageX),E=Math.ceil(g.touches[0].pageY),x=i.current-b,C=o.current-E,S=Math.abs(x)>Math.abs(C);S?i.current=b:o.current=E;var T=n(S,S?x:C,!1,g);T&&g.preventDefault(),clearInterval(l.current),T&&(l.current=setInterval(function(){S?x*=wO:C*=wO;var O=Math.floor(S?x:C);(!n(S,O,!0)||Math.abs(O)<=.1)&&clearInterval(l.current)},16))}},f=function(){r.current=!1,c()},p=function(g){c(),g.touches.length===1&&!r.current&&(r.current=!0,i.current=Math.ceil(g.touches[0].pageX),o.current=Math.ceil(g.touches[0].pageY),a.current=g.target,a.current.addEventListener("touchmove",u,{passive:!1}),a.current.addEventListener("touchend",f,{passive:!0}))};c=function(){a.current&&(a.current.removeEventListener("touchmove",u),a.current.removeEventListener("touchend",f))},bn(function(){return e&&t.current.addEventListener("touchstart",p,{passive:!0}),function(){var m;(m=t.current)===null||m===void 0||m.removeEventListener("touchstart",p),c(),clearInterval(l.current)}},[e])}var Gie=10;function qie(e,t,n,r,i,o,a,l){var c=d.useRef(),u=d.useState(null),f=Oe(u,2),p=f[0],m=f[1];return bn(function(){if(p&&p.times<Gie){if(!e.current){m(function(q){return te({},q)});return}o();var g=p.targetAlign,b=p.originAlign,E=p.index,x=p.offset,C=e.current.clientHeight,S=!1,T=g,O=null;if(C){for(var I=g||b,_=0,$=0,k=0,R=Math.min(t.length-1,E),M=0;M<=R;M+=1){var H=i(t[M]);$=_;var B=n.get(H);k=$+(B===void 0?r:B),_=k}for(var L=I==="top"?x:C-x,D=R;D>=0;D-=1){var z=i(t[D]),W=n.get(z);if(W===void 0){S=!0;break}if(L-=W,L<=0)break}switch(I){case"top":O=$-x;break;case"bottom":O=k-C+x;break;default:{var j=e.current.scrollTop,U=j+C;$<j?T="top":k>U&&(T="bottom")}}O!==null&&a(O),O!==p.lastTop&&(S=!0)}S&&m(te(te({},p),{},{times:p.times+1,targetAlign:T,lastTop:O}))}},[p,e.current]),function(g){if(g==null){l();return}if(kn.cancel(c.current),typeof g=="number")a(g);else if(g&&$t(g)==="object"){var b,E=g.align;"index"in g?b=g.index:b=t.findIndex(function(S){return i(S)===g.key});var x=g.offset,C=x===void 0?0:x;m({times:0,index:b,offset:C,originAlign:E})}}}function TO(e,t){var n="touches"in e?e.touches[0]:e;return n[t?"pageX":"pageY"]}var _O=d.forwardRef(function(e,t){var n=e.prefixCls,r=e.rtl,i=e.scrollOffset,o=e.scrollRange,a=e.onStartMove,l=e.onStopMove,c=e.onScroll,u=e.horizontal,f=e.spinSize,p=e.containerSize,m=e.style,g=e.thumbStyle,b=d.useState(!1),E=Oe(b,2),x=E[0],C=E[1],S=d.useState(null),T=Oe(S,2),O=T[0],I=T[1],_=d.useState(null),$=Oe(_,2),k=$[0],R=$[1],M=!r,H=d.useRef(),B=d.useRef(),L=d.useState(!1),D=Oe(L,2),z=D[0],W=D[1],j=d.useRef(),U=function(){clearTimeout(j.current),W(!0),j.current=setTimeout(function(){W(!1)},3e3)},q=o-p||0,A=p-f||0,P=d.useMemo(function(){if(i===0||q===0)return 0;var ye=i/q;return ye*A},[i,q,A]),Z=function(de){de.stopPropagation(),de.preventDefault()},V=d.useRef({top:P,dragging:x,pageY:O,startTop:k});V.current={top:P,dragging:x,pageY:O,startTop:k};var Y=function(de){C(!0),I(TO(de,u)),R(V.current.top),a(),de.stopPropagation(),de.preventDefault()};d.useEffect(function(){var ye=function(pe){pe.preventDefault()},de=H.current,ce=B.current;return de.addEventListener("touchstart",ye,{passive:!1}),ce.addEventListener("touchstart",Y,{passive:!1}),function(){de.removeEventListener("touchstart",ye),ce.removeEventListener("touchstart",Y)}},[]);var ee=d.useRef();ee.current=q;var ue=d.useRef();ue.current=A,d.useEffect(function(){if(x){var ye,de=function(pe){var ve=V.current,Te=ve.dragging,Ge=ve.pageY,je=ve.startTop;kn.cancel(ye);var Je=H.current.getBoundingClientRect(),Se=p/(u?Je.width:Je.height);if(Te){var $e=(TO(pe,u)-Ge)*Se,qe=je;!M&&u?qe-=$e:qe+=$e;var Le=ee.current,Fe=ue.current,Ke=Fe?qe/Fe:0,Ve=Math.ceil(Ke*Le);Ve=Math.max(Ve,0),Ve=Math.min(Ve,Le),ye=kn(function(){c(Ve,u)})}},ce=function(){C(!1),l()};return window.addEventListener("mousemove",de,{passive:!0}),window.addEventListener("touchmove",de,{passive:!0}),window.addEventListener("mouseup",ce,{passive:!0}),window.addEventListener("touchend",ce,{passive:!0}),function(){window.removeEventListener("mousemove",de),window.removeEventListener("touchmove",de),window.removeEventListener("mouseup",ce),window.removeEventListener("touchend",ce),kn.cancel(ye)}}},[x]),d.useEffect(function(){return U(),function(){clearTimeout(j.current)}},[i]),d.useImperativeHandle(t,function(){return{delayHidden:U}});var ne="".concat(n,"-scrollbar"),se={position:"absolute",visibility:z?null:"hidden"},me={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return u?(se.height=8,se.left=0,se.right=0,se.bottom=0,me.height="100%",me.width=f,M?me.left=P:me.right=P):(se.width=8,se.top=0,se.bottom=0,M?se.right=0:se.left=0,me.width="100%",me.height=f,me.top=P),d.createElement("div",{ref:H,className:le(ne,J(J(J({},"".concat(ne,"-horizontal"),u),"".concat(ne,"-vertical"),!u),"".concat(ne,"-visible"),z)),style:te(te({},se),m),onMouseDown:Z,onMouseMove:U},d.createElement("div",{ref:B,className:le("".concat(ne,"-thumb"),J({},"".concat(ne,"-thumb-moving"),x)),style:te(te({},me),g),onMouseDown:Y}))}),Xie=20;function OO(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=e/t*e;return isNaN(n)&&(n=0),n=Math.max(n,Xie),Math.floor(n)}var Yie=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles"],Qie=[],Zie={overflowY:"auto",overflowAnchor:"none"};function Jie(e,t){var n=e.prefixCls,r=n===void 0?"rc-virtual-list":n,i=e.className,o=e.height,a=e.itemHeight,l=e.fullHeight,c=l===void 0?!0:l,u=e.style,f=e.data,p=e.children,m=e.itemKey,g=e.virtual,b=e.direction,E=e.scrollWidth,x=e.component,C=x===void 0?"div":x,S=e.onScroll,T=e.onVirtualScroll,O=e.onVisibleChange,I=e.innerProps,_=e.extraRender,$=e.styles,k=Gt(e,Yie),R=d.useCallback(function(vt){return typeof m=="function"?m(vt):vt==null?void 0:vt[m]},[m]),M=Kie(R),H=Oe(M,4),B=H[0],L=H[1],D=H[2],z=H[3],W=!!(g!==!1&&o&&a),j=d.useMemo(function(){return Object.values(D.maps).reduce(function(vt,gt){return vt+gt},0)},[D.id,D.maps]),U=W&&f&&(Math.max(a*f.length,j)>o||!!E),q=b==="rtl",A=le(r,J({},"".concat(r,"-rtl"),q),i),P=f||Qie,Z=d.useRef(),V=d.useRef(),Y=d.useRef(),ee=d.useState(0),ue=Oe(ee,2),ne=ue[0],se=ue[1],me=d.useState(0),ye=Oe(me,2),de=ye[0],ce=ye[1],oe=d.useState(!1),pe=Oe(oe,2),ve=pe[0],Te=pe[1],Ge=function(){Te(!0)},je=function(){Te(!1)},Je={getKey:R};function Se(vt){se(function(gt){var tt;typeof vt=="function"?tt=vt(gt):tt=vt;var Xt=Ft(tt);return Z.current.scrollTop=Xt,Xt})}var $e=d.useRef({start:0,end:P.length}),qe=d.useRef(),Le=Hie(P,R),Fe=Oe(Le,1),Ke=Fe[0];qe.current=Ke;var Ve=d.useMemo(function(){if(!W)return{scrollHeight:void 0,start:0,end:P.length-1,offset:void 0};if(!U){var vt;return{scrollHeight:((vt=V.current)===null||vt===void 0?void 0:vt.offsetHeight)||0,start:0,end:P.length-1,offset:void 0}}for(var gt=0,tt,Xt,Jt,En=P.length,Wt=0;Wt<En;Wt+=1){var In=P[Wt],qn=R(In),vr=D.get(qn),ke=gt+(vr===void 0?a:vr);ke>=ne&&tt===void 0&&(tt=Wt,Xt=gt),ke>ne+o&&Jt===void 0&&(Jt=Wt),gt=ke}return tt===void 0&&(tt=0,Xt=0,Jt=Math.ceil(o/a)),Jt===void 0&&(Jt=P.length-1),Jt=Math.min(Jt+1,P.length-1),{scrollHeight:gt,start:tt,end:Jt,offset:Xt}},[U,W,ne,P,z,o]),Ce=Ve.scrollHeight,Pe=Ve.start,We=Ve.end,Ze=Ve.offset;$e.current.start=Pe,$e.current.end=We;var ut=d.useState({width:0,height:o}),Be=Oe(ut,2),ot=Be[0],re=Be[1],Ie=function(gt){re({width:gt.offsetWidth,height:gt.offsetHeight})},Re=d.useRef(),Ae=d.useRef(),Ye=d.useMemo(function(){return OO(ot.width,E)},[ot.width,E]),mt=d.useMemo(function(){return OO(ot.height,Ce)},[ot.height,Ce]),Nt=Ce-o,qt=d.useRef(Nt);qt.current=Nt;function Ft(vt){var gt=vt;return Number.isNaN(qt.current)||(gt=Math.min(gt,qt.current)),gt=Math.max(gt,0),gt}var Kt=ne<=0,Qt=ne>=Nt,Zt=de<=0,Mt=de>=E,St=QD(Kt,Qt,Zt,Mt),yt=function(){return{x:q?-de:de,y:ne}},lt=d.useRef(yt()),fe=Hn(function(vt){if(T){var gt=te(te({},yt()),vt);(lt.current.x!==gt.x||lt.current.y!==gt.y)&&(T(gt),lt.current=gt)}});function xe(vt,gt){var tt=vt;gt?(Oa.flushSync(function(){ce(tt)}),fe()):Se(tt)}function ge(vt){var gt=vt.currentTarget.scrollTop;gt!==ne&&Se(gt),S==null||S(vt),fe()}var Ne=function(gt){var tt=gt,Xt=E?E-ot.width:0;return tt=Math.max(tt,0),tt=Math.min(tt,Xt),tt},Xe=Hn(function(vt,gt){gt?(Oa.flushSync(function(){ce(function(tt){var Xt=tt+(q?-vt:vt);return Ne(Xt)})}),fe()):Se(function(tt){var Xt=tt+vt;return Xt})}),nt=zie(W,Kt,Qt,Zt,Mt,!!E,Xe),pt=Oe(nt,2),st=pt[0],rt=pt[1];Vie(W,Z,function(vt,gt,tt,Xt){var Jt=Xt;return St(vt,gt,tt)?!1:!Jt||!Jt._virtualHandled?(Jt&&(Jt._virtualHandled=!0),st({preventDefault:function(){},deltaX:vt?gt:0,deltaY:vt?0:gt}),!0):!1}),bn(function(){function vt(tt){var Xt=Kt&&tt.detail<0,Jt=Qt&&tt.detail>0;W&&!Xt&&!Jt&&tt.preventDefault()}var gt=Z.current;return gt.addEventListener("wheel",st,{passive:!1}),gt.addEventListener("DOMMouseScroll",rt,{passive:!0}),gt.addEventListener("MozMousePixelScroll",vt,{passive:!1}),function(){gt.removeEventListener("wheel",st),gt.removeEventListener("DOMMouseScroll",rt),gt.removeEventListener("MozMousePixelScroll",vt)}},[W,Kt,Qt]),bn(function(){if(E){var vt=Ne(de);ce(vt),fe({x:vt})}},[ot.width,E]);var He=function(){var gt,tt;(gt=Re.current)===null||gt===void 0||gt.delayHidden(),(tt=Ae.current)===null||tt===void 0||tt.delayHidden()},Ue=qie(Z,P,D,a,R,function(){return L(!0)},Se,He);d.useImperativeHandle(t,function(){return{nativeElement:Y.current,getScrollInfo:yt,scrollTo:function(gt){function tt(Xt){return Xt&&$t(Xt)==="object"&&("left"in Xt||"top"in Xt)}tt(gt)?(gt.left!==void 0&&ce(Ne(gt.left)),Ue(gt.top)):Ue(gt)}}}),bn(function(){if(O){var vt=P.slice(Pe,We+1);O(vt,P)}},[Pe,We,P]);var ft=Wie(P,R,D,a),Ct=_==null?void 0:_({start:Pe,end:We,virtual:U,offsetX:de,offsetY:Ze,rtl:q,getSize:ft}),zt=Bie(P,Pe,We,E,de,B,p,Je),Tt=null;o&&(Tt=te(J({},c?"height":"maxHeight",o),Zie),W&&(Tt.overflowY="hidden",E&&(Tt.overflowX="hidden"),ve&&(Tt.pointerEvents="none")));var Pt={};return q&&(Pt.dir="rtl"),d.createElement("div",ze({ref:Y,style:te(te({},u),{},{position:"relative"}),className:A},Pt,k),d.createElement(Yi,{onResize:Ie},d.createElement(C,{className:"".concat(r,"-holder"),style:Tt,ref:Z,onScroll:ge,onMouseEnter:He},d.createElement(YD,{prefixCls:r,height:Ce,offsetX:de,offsetY:Ze,scrollWidth:E,onInnerResize:L,ref:V,innerProps:I,rtl:q,extra:Ct},zt))),U&&Ce>o&&d.createElement(_O,{ref:Re,prefixCls:r,scrollOffset:ne,scrollRange:Ce,rtl:q,onScroll:xe,onStartMove:Ge,onStopMove:je,spinSize:mt,containerSize:ot.height,style:$==null?void 0:$.verticalScrollBar,thumbStyle:$==null?void 0:$.verticalScrollBarThumb}),U&&E>ot.width&&d.createElement(_O,{ref:Ae,prefixCls:r,scrollOffset:de,scrollRange:E,rtl:q,onScroll:xe,onStartMove:Ge,onStopMove:je,spinSize:Ye,containerSize:ot.width,horizontal:!0,style:$==null?void 0:$.horizontalScrollBar,thumbStyle:$==null?void 0:$.horizontalScrollBarThumb}))}var jb=d.forwardRef(Jie);jb.displayName="List";function eoe(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var toe=["disabled","title","children","style","className"];function IO(e){return typeof e=="string"||typeof e=="number"}var noe=function(t,n){var r=Wre(),i=r.prefixCls,o=r.id,a=r.open,l=r.multiple,c=r.mode,u=r.searchValue,f=r.toggleOpen,p=r.notFoundContent,m=r.onPopupScroll,g=d.useContext(R8),b=g.maxCount,E=g.flattenOptions,x=g.onActiveValue,C=g.defaultActiveFirstOption,S=g.onSelect,T=g.menuItemSelectedIcon,O=g.rawValues,I=g.fieldNames,_=g.virtual,$=g.direction,k=g.listHeight,R=g.listItemHeight,M=g.optionRender,H="".concat(i,"-item"),B=Uu(function(){return E},[a,E],function(de,ce){return ce[0]&&de[1]!==ce[1]}),L=d.useRef(null),D=d.useMemo(function(){return l&&JS(b)&&(O==null?void 0:O.size)>=b},[l,b,O==null?void 0:O.size]),z=function(ce){ce.preventDefault()},W=function(ce){var oe;(oe=L.current)===null||oe===void 0||oe.scrollTo(typeof ce=="number"?{index:ce}:ce)},j=function(ce){for(var oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,pe=B.length,ve=0;ve<pe;ve+=1){var Te=(ce+ve*oe+pe)%pe,Ge=B[Te]||{},je=Ge.group,Je=Ge.data;if(!je&&!(Je!=null&&Je.disabled)&&!D)return Te}return-1},U=d.useState(function(){return j(0)}),q=Oe(U,2),A=q[0],P=q[1],Z=function(ce){var oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;P(ce);var pe={source:oe?"keyboard":"mouse"},ve=B[ce];if(!ve){x(null,-1,pe);return}x(ve.value,ce,pe)};d.useEffect(function(){Z(C!==!1?j(0):-1)},[B.length,u]);var V=d.useCallback(function(de){return c==="combobox"?!1:O.has(de)},[c,Qe(O).toString(),O.size]),Y=d.useCallback(function(de){return c==="combobox"?String(de).toLowerCase()===u.toLowerCase():O.has(de)},[c,u,Qe(O).toString(),O.size]);d.useEffect(function(){var de=setTimeout(function(){if(!l&&a&&O.size===1){var oe=Array.from(O)[0],pe=B.findIndex(function(ve){var Te=ve.data;return Te.value===oe});pe!==-1&&(Z(pe),W(pe))}});if(a){var ce;(ce=L.current)===null||ce===void 0||ce.scrollTo(void 0)}return function(){return clearTimeout(de)}},[a,u]);var ee=function(ce){ce!==void 0&&S(ce,{selected:!O.has(ce)}),l||f(!1)};if(d.useImperativeHandle(n,function(){return{onKeyDown:function(ce){var oe=ce.which,pe=ce.ctrlKey;switch(oe){case it.N:case it.P:case it.UP:case it.DOWN:{var ve=0;if(oe===it.UP?ve=-1:oe===it.DOWN?ve=1:eoe()&&pe&&(oe===it.N?ve=1:oe===it.P&&(ve=-1)),ve!==0){var Te=j(A+ve,ve);W(Te),Z(Te,!0)}break}case it.TAB:case it.ENTER:{var Ge,je=B[A];je&&!(je!=null&&(Ge=je.data)!==null&&Ge!==void 0&&Ge.disabled)&&!D?ee(je.value):ee(void 0),a&&ce.preventDefault();break}case it.ESC:f(!1),a&&ce.stopPropagation()}},onKeyUp:function(){},scrollTo:function(ce){W(ce)}}}),B.length===0)return d.createElement("div",{role:"listbox",id:"".concat(o,"_list"),className:"".concat(H,"-empty"),onMouseDown:z},p);var ue=Object.keys(I).map(function(de){return I[de]}),ne=function(ce){return ce.label};function se(de,ce){var oe=de.group;return{role:oe?"presentation":"option",id:"".concat(o,"_list_").concat(ce)}}var me=function(ce){var oe=B[ce];if(!oe)return null;var pe=oe.data||{},ve=pe.value,Te=oe.group,Ge=_i(pe,!0),je=ne(oe);return oe?d.createElement("div",ze({"aria-label":typeof je=="string"&&!Te?je:null},Ge,{key:ce},se(oe,ce),{"aria-selected":Y(ve)}),ve):null},ye={role:"listbox",id:"".concat(o,"_list")};return d.createElement(d.Fragment,null,_&&d.createElement("div",ze({},ye,{style:{height:0,width:0,overflow:"hidden"}}),me(A-1),me(A),me(A+1)),d.createElement(jb,{itemKey:"key",ref:L,data:B,height:k,itemHeight:R,fullHeight:!1,onMouseDown:z,onScroll:m,virtual:_,direction:$,innerProps:_?null:ye},function(de,ce){var oe=de.group,pe=de.groupOption,ve=de.data,Te=de.label,Ge=de.value,je=ve.key;if(oe){var Je,Se=(Je=ve.title)!==null&&Je!==void 0?Je:IO(Te)?Te.toString():void 0;return d.createElement("div",{className:le(H,"".concat(H,"-group"),ve.className),title:Se},Te!==void 0?Te:je)}var $e=ve.disabled,qe=ve.title;ve.children;var Le=ve.style,Fe=ve.className,Ke=Gt(ve,toe),Ve=tr(Ke,ue),Ce=V(Ge),Pe=$e||!Ce&&D,We="".concat(H,"-option"),Ze=le(H,We,Fe,J(J(J(J({},"".concat(We,"-grouped"),pe),"".concat(We,"-active"),A===ce&&!Pe),"".concat(We,"-disabled"),Pe),"".concat(We,"-selected"),Ce)),ut=ne(de),Be=!T||typeof T=="function"||Ce,ot=typeof ut=="number"?ut:ut||Ge,re=IO(ot)?ot.toString():void 0;return qe!==void 0&&(re=qe),d.createElement("div",ze({},_i(Ve),_?{}:se(de,ce),{"aria-selected":Y(Ge),className:Ze,title:re,onMouseMove:function(){A===ce||Pe||Z(ce)},onClick:function(){Pe||ee(Ge)},style:Le}),d.createElement("div",{className:"".concat(We,"-content")},typeof M=="function"?M(de,{index:ce}):ot),d.isValidElement(T)||Ce,Be&&d.createElement(Fb,{className:"".concat(H,"-option-state"),customizeIcon:T,customizeIconProps:{value:Ge,disabled:Pe,isSelected:Ce}},Ce?"✓":null))}))},roe=d.forwardRef(noe);const ioe=function(e,t){var n=d.useRef({values:new Map,options:new Map}),r=d.useMemo(function(){var o=n.current,a=o.values,l=o.options,c=e.map(function(p){if(p.label===void 0){var m;return te(te({},p),{},{label:(m=a.get(p.value))===null||m===void 0?void 0:m.label})}return p}),u=new Map,f=new Map;return c.forEach(function(p){u.set(p.value,p),f.set(p.value,t.get(p.value)||l.get(p.value))}),n.current.values=u,n.current.options=f,c},[e,t]),i=d.useCallback(function(o){return t.get(o)||n.current.options.get(o)},[t]);return[r,i]};function k4(e,t){return GD(e).join("").toUpperCase().includes(t)}const ooe=function(e,t,n,r,i){return d.useMemo(function(){if(!n||r===!1)return e;var o=t.options,a=t.label,l=t.value,c=[],u=typeof r=="function",f=n.toUpperCase(),p=u?r:function(g,b){return i?k4(b[i],f):b[o]?k4(b[a!=="children"?a:"label"],f):k4(b[l],f)},m=u?function(g){return eE(g)}:function(g){return g};return e.forEach(function(g){if(g[o]){var b=p(n,m(g));if(b)c.push(g);else{var E=g[o].filter(function(x){return p(n,m(x))});E.length&&c.push(te(te({},g),{},J({},o,E)))}return}p(n,m(g))&&c.push(g)}),c},[e,r,i,n,t])};var $O=0,aoe=Ti();function loe(){var e;return aoe?(e=$O,$O+=1):e="TEST_OR_SSR",e}function soe(e){var t=d.useState(),n=Oe(t,2),r=n[0],i=n[1];return d.useEffect(function(){i("rc_select_".concat(loe()))},[]),e||r}var coe=["children","value"],uoe=["children"];function doe(e){var t=e,n=t.key,r=t.props,i=r.children,o=r.value,a=Gt(r,coe);return te({key:n,value:o!==void 0?o:n,children:i},a)}function ZD(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return ri(e).map(function(n,r){if(!d.isValidElement(n)||!n.type)return null;var i=n,o=i.type.isSelectOptGroup,a=i.key,l=i.props,c=l.children,u=Gt(l,uoe);return t||!o?doe(n):te(te({key:"__RC_SELECT_GRP__".concat(a===null?r:a,"__"),label:a},u),{},{options:ZD(c)})}).filter(function(n){return n})}var foe=function(t,n,r,i,o){return d.useMemo(function(){var a=t,l=!t;l&&(a=ZD(n));var c=new Map,u=new Map,f=function(g,b,E){E&&typeof E=="string"&&g.set(b[E],b)},p=function m(g){for(var b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,E=0;E<g.length;E+=1){var x=g[E];!x[r.options]||b?(c.set(x[r.value],x),f(u,x,r.label),f(u,x,i),f(u,x,o)):m(x[r.options],!0)}};return p(a),{options:a,valueOptions:c,labelOptions:u}},[t,n,r,i,o])};function NO(e){var t=d.useRef();t.current=e;var n=d.useCallback(function(){return t.current.apply(t,arguments)},[]);return n}var hoe=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","optionRender","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","direction","listHeight","listItemHeight","labelRender","value","defaultValue","labelInValue","onChange","maxCount"],poe=["inputValue"];function moe(e){return!e||$t(e)!=="object"}var goe=d.forwardRef(function(e,t){var n=e.id,r=e.mode,i=e.prefixCls,o=i===void 0?"rc-select":i,a=e.backfill,l=e.fieldNames,c=e.inputValue,u=e.searchValue,f=e.onSearch,p=e.autoClearSearchValue,m=p===void 0?!0:p,g=e.onSelect,b=e.onDeselect,E=e.dropdownMatchSelectWidth,x=E===void 0?!0:E,C=e.filterOption,S=e.filterSort,T=e.optionFilterProp,O=e.optionLabelProp,I=e.options,_=e.optionRender,$=e.children,k=e.defaultActiveFirstOption,R=e.menuItemSelectedIcon,M=e.virtual,H=e.direction,B=e.listHeight,L=B===void 0?200:B,D=e.listItemHeight,z=D===void 0?20:D,W=e.labelRender,j=e.value,U=e.defaultValue,q=e.labelInValue,A=e.onChange,P=e.maxCount,Z=Gt(e,hoe),V=soe(n),Y=tE(r),ee=!!(!I&&$),ue=d.useMemo(function(){return C===void 0&&r==="combobox"?!1:C},[C,r]),ne=d.useMemo(function(){return XD(l,ee)},[JSON.stringify(l),ee]),se=Tr("",{value:u!==void 0?u:c,postState:function(Ne){return Ne||""}}),me=Oe(se,2),ye=me[0],de=me[1],ce=foe(I,$,ne,T,O),oe=ce.valueOptions,pe=ce.labelOptions,ve=ce.options,Te=d.useCallback(function(ge){var Ne=GD(ge);return Ne.map(function(Xe){var nt,pt,st,rt,He;if(moe(Xe))nt=Xe;else{var Ue;st=Xe.key,pt=Xe.label,nt=(Ue=Xe.value)!==null&&Ue!==void 0?Ue:st}var ft=oe.get(nt);if(ft){var Ct;pt===void 0&&(pt=ft==null?void 0:ft[O||ne.label]),st===void 0&&(st=(Ct=ft==null?void 0:ft.key)!==null&&Ct!==void 0?Ct:nt),rt=ft==null?void 0:ft.disabled,He=ft==null?void 0:ft.title}return{label:pt,value:nt,key:st,disabled:rt,title:He}})},[ne,O,oe]),Ge=Tr(U,{value:j}),je=Oe(Ge,2),Je=je[0],Se=je[1],$e=d.useMemo(function(){var ge,Ne=Y&&Je===null?[]:Je,Xe=Te(Ne);return r==="combobox"&&sie((ge=Xe[0])===null||ge===void 0?void 0:ge.value)?[]:Xe},[Je,Te,r,Y]),qe=ioe($e,oe),Le=Oe(qe,2),Fe=Le[0],Ke=Le[1],Ve=d.useMemo(function(){if(!r&&Fe.length===1){var ge=Fe[0];if(ge.value===null&&(ge.label===null||ge.label===void 0))return[]}return Fe.map(function(Ne){var Xe;return te(te({},Ne),{},{label:(Xe=typeof W=="function"?W(Ne):Ne.label)!==null&&Xe!==void 0?Xe:Ne.value})})},[r,Fe,W]),Ce=d.useMemo(function(){return new Set(Fe.map(function(ge){return ge.value}))},[Fe]);d.useEffect(function(){if(r==="combobox"){var ge,Ne=(ge=Fe[0])===null||ge===void 0?void 0:ge.value;de(lie(Ne)?String(Ne):"")}},[Fe]);var Pe=NO(function(ge,Ne){var Xe=Ne??ge;return J(J({},ne.value,ge),ne.label,Xe)}),We=d.useMemo(function(){if(r!=="tags")return ve;var ge=Qe(ve),Ne=function(nt){return oe.has(nt)};return Qe(Fe).sort(function(Xe,nt){return Xe.value<nt.value?-1:1}).forEach(function(Xe){var nt=Xe.value;Ne(nt)||ge.push(Pe(nt,Xe.label))}),ge},[Pe,ve,oe,Fe,r]),Ze=ooe(We,ne,ye,ue,T),ut=d.useMemo(function(){return r!=="tags"||!ye||Ze.some(function(ge){return ge[T||"value"]===ye})||Ze.some(function(ge){return ge[ne.value]===ye})?Ze:[Pe(ye)].concat(Qe(Ze))},[Pe,T,r,Ze,ye,ne]),Be=function ge(Ne){var Xe=Qe(Ne).sort(function(nt,pt){return S(nt,pt,{searchValue:ye})});return Xe.map(function(nt){return Array.isArray(nt.options)?te(te({},nt),{},{options:nt.options.length>0?ge(nt.options):nt.options}):nt})},ot=d.useMemo(function(){return S?Be(ut):ut},[ut,S,ye]),re=d.useMemo(function(){return kie(ot,{fieldNames:ne,childrenAsData:ee})},[ot,ne,ee]),Ie=function(Ne){var Xe=Te(Ne);if(Se(Xe),A&&(Xe.length!==Fe.length||Xe.some(function(st,rt){var He;return((He=Fe[rt])===null||He===void 0?void 0:He.value)!==(st==null?void 0:st.value)}))){var nt=q?Xe:Xe.map(function(st){return st.value}),pt=Xe.map(function(st){return eE(Ke(st.value))});A(Y?nt:nt[0],Y?pt:pt[0])}},Re=d.useState(null),Ae=Oe(Re,2),Ye=Ae[0],mt=Ae[1],Nt=d.useState(0),qt=Oe(Nt,2),Ft=qt[0],Kt=qt[1],Qt=k!==void 0?k:r!=="combobox",Zt=d.useCallback(function(ge,Ne){var Xe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},nt=Xe.source,pt=nt===void 0?"keyboard":nt;Kt(Ne),a&&r==="combobox"&&ge!==null&&pt==="keyboard"&&mt(String(ge))},[a,r]),Mt=function(Ne,Xe,nt){var pt=function(){var vt,gt=Ke(Ne);return[q?{label:gt==null?void 0:gt[ne.label],value:Ne,key:(vt=gt==null?void 0:gt.key)!==null&&vt!==void 0?vt:Ne}:Ne,eE(gt)]};if(Xe&&g){var st=pt(),rt=Oe(st,2),He=rt[0],Ue=rt[1];g(He,Ue)}else if(!Xe&&b&&nt!=="clear"){var ft=pt(),Ct=Oe(ft,2),zt=Ct[0],Tt=Ct[1];b(zt,Tt)}},St=NO(function(ge,Ne){var Xe,nt=Y?Ne.selected:!0;nt?Xe=Y?[].concat(Qe(Fe),[ge]):[ge]:Xe=Fe.filter(function(pt){return pt.value!==ge}),Ie(Xe),Mt(ge,nt),r==="combobox"?mt(""):(!tE||m)&&(de(""),mt(""))}),yt=function(Ne,Xe){Ie(Ne);var nt=Xe.type,pt=Xe.values;(nt==="remove"||nt==="clear")&&pt.forEach(function(st){Mt(st.value,!1,nt)})},lt=function(Ne,Xe){if(de(Ne),mt(null),Xe.source==="submit"){var nt=(Ne||"").trim();if(nt){var pt=Array.from(new Set([].concat(Qe(Ce),[nt])));Ie(pt),Mt(nt,!0),de("")}return}Xe.source!=="blur"&&(r==="combobox"&&Ie(Ne),f==null||f(Ne))},fe=function(Ne){var Xe=Ne;r!=="tags"&&(Xe=Ne.map(function(pt){var st=pe.get(pt);return st==null?void 0:st.value}).filter(function(pt){return pt!==void 0}));var nt=Array.from(new Set([].concat(Qe(Ce),Qe(Xe))));Ie(nt),nt.forEach(function(pt){Mt(pt,!0)})},xe=d.useMemo(function(){var ge=M!==!1&&x!==!1;return te(te({},ce),{},{flattenOptions:re,onActiveValue:Zt,defaultActiveFirstOption:Qt,onSelect:St,menuItemSelectedIcon:R,rawValues:Ce,fieldNames:ne,virtual:ge,direction:H,listHeight:L,listItemHeight:z,childrenAsData:ee,maxCount:P,optionRender:_})},[P,ce,re,Zt,Qt,St,R,Ce,ne,M,x,H,L,z,ee,_]);return d.createElement(R8.Provider,{value:xe},d.createElement(Die,ze({},Z,{id:V,prefixCls:o,ref:t,omitDomProps:poe,mode:r,displayValues:Ve,onDisplayValuesChange:yt,direction:H,searchValue:ye,onSearch:lt,autoClearSearchValue:m,onSearchSplit:fe,dropdownMatchSelectWidth:x,OptionList:roe,emptyOptions:!re.length,activeValue:Ye,activeDescendantId:"".concat(V,"_list_").concat(Ft)})))}),L8=goe;L8.Option=P8;L8.OptGroup=M8;function dy(e,t,n){return le({[`${e}-status-success`]:t==="success",[`${e}-status-warning`]:t==="warning",[`${e}-status-error`]:t==="error",[`${e}-status-validating`]:t==="validating",[`${e}-has-feedback`]:n})}const Hb=(e,t)=>t||e,voe=()=>{const[,e]=Bi(),[t]=Dl("Empty"),r=new er(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return d.createElement("svg",{style:r,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},d.createElement("title",null,(t==null?void 0:t.description)||"Empty"),d.createElement("g",{fill:"none",fillRule:"evenodd"},d.createElement("g",{transform:"translate(24 31.67)"},d.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),d.createElement("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"}),d.createElement("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}),d.createElement("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"}),d.createElement("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"})),d.createElement("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"}),d.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},d.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),d.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},yoe=()=>{const[,e]=Bi(),[t]=Dl("Empty"),{colorFill:n,colorFillTertiary:r,colorFillQuaternary:i,colorBgContainer:o}=e,{borderColor:a,shadowColor:l,contentColor:c}=d.useMemo(()=>({borderColor:new er(n).onBackground(o).toHexShortString(),shadowColor:new er(r).onBackground(o).toHexShortString(),contentColor:new er(i).onBackground(o).toHexShortString()}),[n,r,i,o]);return d.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},d.createElement("title",null,(t==null?void 0:t.description)||"Empty"),d.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},d.createElement("ellipse",{fill:l,cx:"32",cy:"33",rx:"32",ry:"7"}),d.createElement("g",{fillRule:"nonzero",stroke:a},d.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),d.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:c}))))},boe=e=>{const{componentCls:t,margin:n,marginXS:r,marginXL:i,fontSize:o,lineHeight:a}=e;return{[t]:{marginInline:r,fontSize:o,lineHeight:a,textAlign:"center",[`${t}-image`]:{height:e.emptyImgHeight,marginBottom:r,opacity:e.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${t}-description`]:{color:e.colorTextDescription},[`${t}-footer`]:{marginTop:n},"&-normal":{marginBlock:i,color:e.colorTextDescription,[`${t}-description`]:{color:e.colorTextDescription},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:r,color:e.colorTextDescription,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}},Coe=Mn("Empty",e=>{const{componentCls:t,controlHeightLG:n,calc:r}=e,i=hn(e,{emptyImgCls:`${t}-img`,emptyImgHeight:r(n).mul(2.5).equal(),emptyImgHeightMD:n,emptyImgHeightSM:r(n).mul(.875).equal()});return[boe(i)]});var Soe=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const JD=d.createElement(voe,null),eF=d.createElement(yoe,null),os=e=>{var{className:t,rootClassName:n,prefixCls:r,image:i=JD,description:o,children:a,imageStyle:l,style:c}=e,u=Soe(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:f,direction:p,empty:m}=d.useContext(At),g=f("empty",r),[b,E,x]=Coe(g),[C]=Dl("Empty"),S=typeof o<"u"?o:C==null?void 0:C.description,T=typeof S=="string"?S:"empty";let O=null;return typeof i=="string"?O=d.createElement("img",{alt:T,src:i}):O=i,b(d.createElement("div",Object.assign({className:le(E,x,g,m==null?void 0:m.className,{[`${g}-normal`]:i===eF,[`${g}-rtl`]:p==="rtl"},t,n),style:Object.assign(Object.assign({},m==null?void 0:m.style),c)},u),d.createElement("div",{className:`${g}-image`,style:l},O),S&&d.createElement("div",{className:`${g}-description`},S),a&&d.createElement("div",{className:`${g}-footer`},a)))};os.PRESENTED_IMAGE_DEFAULT=JD;os.PRESENTED_IMAGE_SIMPLE=eF;const tF=e=>{const{componentName:t}=e,{getPrefixCls:n}=d.useContext(At),r=n("empty");switch(t){case"Table":case"List":return be.createElement(os,{image:os.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return be.createElement(os,{image:os.PRESENTED_IMAGE_SIMPLE,className:`${r}-small`});case"Table.filter":return null;default:return be.createElement(os,null)}},D8=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;var r,i;const{variant:o,[e]:a}=d.useContext(At),l=d.useContext(SD),c=a==null?void 0:a.variant;let u;typeof t<"u"?u=t:n===!1?u="borderless":u=(i=(r=l??c)!==null&&r!==void 0?r:o)!==null&&i!==void 0?i:"outlined";const f=tZ.includes(u);return[u,f]},Eoe=e=>{const n={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:e==="scroll"?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},n),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},n),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},n),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},n),{points:["br","tr"],offset:[0,-4]})}};function xoe(e,t){return e||Eoe(t)}const AO=e=>{const{optionHeight:t,optionFontSize:n,optionLineHeight:r,optionPadding:i}=e;return{position:"relative",display:"block",minHeight:t,padding:i,color:e.colorText,fontWeight:"normal",fontSize:n,lineHeight:r,boxSizing:"border-box"}},woe=e=>{const{antCls:t,componentCls:n}=e,r=`${n}-item`,i=`&${t}-slide-up-enter${t}-slide-up-enter-active`,o=`&${t}-slide-up-appear${t}-slide-up-appear-active`,a=`&${t}-slide-up-leave${t}-slide-up-leave-active`,l=`${n}-dropdown-placement-`;return[{[`${n}-dropdown`]:Object.assign(Object.assign({},Fn(e)),{position:"absolute",top:-9999,zIndex:e.zIndexPopup,boxSizing:"border-box",padding:e.paddingXXS,overflow:"hidden",fontSize:e.fontSize,fontVariant:"initial",backgroundColor:e.colorBgElevated,borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,[`
${i}${l}bottomLeft,
${o}${l}bottomLeft
`]:{animationName:m8},[`
${i}${l}topLeft,
${o}${l}topLeft,
${i}${l}topRight,
${o}${l}topRight
`]:{animationName:v8},[`${a}${l}bottomLeft`]:{animationName:g8},[`
${a}${l}topLeft,
${a}${l}topRight
`]:{animationName:y8},"&-hidden":{display:"none"},[r]:Object.assign(Object.assign({},AO(e)),{cursor:"pointer",transition:`background ${e.motionDurationSlow} ease`,borderRadius:e.borderRadiusSM,"&-group":{color:e.colorTextDescription,fontSize:e.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},al),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${r}-option-disabled)`]:{backgroundColor:e.optionActiveBg},[`&-selected:not(${r}-option-disabled)`]:{color:e.optionSelectedColor,fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg,[`${r}-option-state`]:{color:e.colorPrimary},[`&:has(+ ${r}-option-selected:not(${r}-option-disabled))`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${r}-option-selected:not(${r}-option-disabled)`]:{borderStartStartRadius:0,borderStartEndRadius:0}}},"&-disabled":{[`&${r}-option-selected`]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:e.calc(e.controlPaddingHorizontal).mul(2).equal()}},"&-empty":Object.assign(Object.assign({},AO(e)),{color:e.colorTextDisabled})}),"&-rtl":{direction:"rtl"}})},wc(e,"slide-up"),wc(e,"slide-down"),sy(e,"move-up"),sy(e,"move-down")]},Toe=e=>{const{multipleSelectItemHeight:t,paddingXXS:n,lineWidth:r,INTERNAL_FIXED_ITEM_MARGIN:i}=e,o=e.max(e.calc(n).sub(r).equal(),0),a=e.max(e.calc(o).sub(i).equal(),0);return{basePadding:o,containerPadding:a,itemHeight:ie(t),itemLineHeight:ie(e.calc(t).sub(e.calc(e.lineWidth).mul(2)).equal())}},_oe=e=>{const{multipleSelectItemHeight:t,selectHeight:n,lineWidth:r}=e;return e.calc(n).sub(t).div(2).sub(r).equal()},Ooe=e=>{const{componentCls:t,iconCls:n,borderRadiusSM:r,motionDurationSlow:i,paddingXS:o,multipleItemColorDisabled:a,multipleItemBorderColorDisabled:l,colorIcon:c,colorIconHover:u,INTERNAL_FIXED_ITEM_MARGIN:f}=e;return{[`${t}-selection-overflow`]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"},[`${t}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",marginBlock:f,borderRadius:r,cursor:"default",transition:`font-size ${i}, line-height ${i}, height ${i}`,marginInlineEnd:e.calc(f).mul(2).equal(),paddingInlineStart:o,paddingInlineEnd:e.calc(o).div(2).equal(),[`${t}-disabled&`]:{color:a,borderColor:l,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.calc(o).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},Tb()),{display:"inline-flex",alignItems:"center",color:c,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${n}`]:{verticalAlign:"-0.2em"},"&:hover":{color:u}})}}}},Ioe=(e,t)=>{const{componentCls:n,INTERNAL_FIXED_ITEM_MARGIN:r}=e,i=`${n}-selection-overflow`,o=e.multipleSelectItemHeight,a=_oe(e),l=t?`${n}-${t}`:"",c=Toe(e);return{[`${n}-multiple${l}`]:Object.assign(Object.assign({},Ooe(e)),{[`${n}-selector`]:{display:"flex",alignItems:"center",width:"100%",height:"100%",paddingInline:c.basePadding,paddingBlock:c.containerPadding,borderRadius:e.borderRadius,[`${n}-disabled&`]:{background:e.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${ie(r)} 0`,lineHeight:ie(o),visibility:"hidden",content:'"\\a0"'}},[`${n}-selection-item`]:{height:c.itemHeight,lineHeight:ie(c.itemLineHeight)},[`${n}-selection-wrap`]:{alignSelf:"flex-start","&:after":{lineHeight:ie(o),marginBlock:r}},[`${n}-prefix`]:{marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(c.basePadding).equal()},[`${i}-item + ${i}-item,
${n}-prefix + ${n}-selection-wrap
`]:{[`${n}-selection-search`]:{marginInlineStart:0},[`${n}-selection-placeholder`]:{insetInlineStart:0}},[`${i}-item-suffix`]:{minHeight:c.itemHeight,marginBlock:r},[`${n}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(a).equal(),"\n &-input,\n &-mirror\n ":{height:o,fontFamily:e.fontFamily,lineHeight:ie(o),transition:`all ${e.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${n}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(c.basePadding).equal(),insetInlineEnd:e.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`}})}};function R4(e,t){const{componentCls:n}=e,r=t?`${n}-${t}`:"",i={[`${n}-multiple${r}`]:{fontSize:e.fontSize,[`${n}-selector`]:{[`${n}-show-search&`]:{cursor:"text"}},[`
&${n}-show-arrow ${n}-selector,
&${n}-allow-clear ${n}-selector
`]:{paddingInlineEnd:e.calc(e.fontSizeIcon).add(e.controlPaddingHorizontal).equal()}}};return[Ioe(e,t),i]}const $oe=e=>{const{componentCls:t}=e,n=hn(e,{selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),r=hn(e,{fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius});return[R4(e),R4(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal()},[`${t}-selection-search`]:{marginInlineStart:2}}},R4(r,"lg")]};function M4(e,t){const{componentCls:n,inputPaddingHorizontalBase:r,borderRadius:i}=e,o=e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),a=t?`${n}-${t}`:"";return{[`${n}-single${a}`]:{fontSize:e.fontSize,height:e.controlHeight,[`${n}-selector`]:Object.assign(Object.assign({},Fn(e,!0)),{display:"flex",borderRadius:i,flex:"1 1 auto",[`${n}-selection-search`]:{position:"absolute",inset:0,width:"100%","&-input":{width:"100%",WebkitAppearance:"textfield"}},[`
${n}-selection-item,
${n}-selection-placeholder
`]:{display:"block",padding:0,lineHeight:ie(o),transition:`all ${e.motionDurationSlow}, visibility 0s`,alignSelf:"center"},[`${n}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${n}-selection-item:empty:after`,`${n}-selection-placeholder:empty:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`
&${n}-show-arrow ${n}-selection-item,
&${n}-show-arrow ${n}-selection-search,
&${n}-show-arrow ${n}-selection-placeholder
`]:{paddingInlineEnd:e.showArrowPaddingInlineEnd},[`&${n}-open ${n}-selection-item`]:{color:e.colorTextPlaceholder},[`&:not(${n}-customize-input)`]:{[`${n}-selector`]:{width:"100%",height:"100%",alignItems:"center",padding:`0 ${ie(r)}`,[`${n}-selection-search-input`]:{height:o},"&:after":{lineHeight:ie(o)}}},[`&${n}-customize-input`]:{[`${n}-selector`]:{"&:after":{display:"none"},[`${n}-selection-search`]:{position:"static",width:"100%"},[`${n}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${ie(r)}`,"&:after":{display:"none"}}}}}}}function Noe(e){const{componentCls:t}=e,n=e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal();return[M4(e),M4(hn(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{[`${t}-single${t}-sm`]:{[`&:not(${t}-customize-input)`]:{[`${t}-selector`]:{padding:`0 ${ie(n)}`},[`&${t}-show-arrow ${t}-selection-search`]:{insetInlineEnd:e.calc(n).add(e.calc(e.fontSize).mul(1.5)).equal()},[`
&${t}-show-arrow ${t}-selection-item,
&${t}-show-arrow ${t}-selection-placeholder
`]:{paddingInlineEnd:e.calc(e.fontSize).mul(1.5).equal()}}}},M4(hn(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}const Aoe=e=>{const{fontSize:t,lineHeight:n,lineWidth:r,controlHeight:i,controlHeightSM:o,controlHeightLG:a,paddingXXS:l,controlPaddingHorizontal:c,zIndexPopupBase:u,colorText:f,fontWeightStrong:p,controlItemBgActive:m,controlItemBgHover:g,colorBgContainer:b,colorFillSecondary:E,colorBgContainerDisabled:x,colorTextDisabled:C,colorPrimaryHover:S,colorPrimary:T,controlOutline:O}=e,I=l*2,_=r*2,$=Math.min(i-I,i-_),k=Math.min(o-I,o-_),R=Math.min(a-I,a-_);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(l/2),zIndexPopup:u+50,optionSelectedColor:f,optionSelectedFontWeight:p,optionSelectedBg:m,optionActiveBg:g,optionPadding:`${(i-t*n)/2}px ${c}px`,optionFontSize:t,optionLineHeight:n,optionHeight:i,selectorBg:b,clearBg:b,singleItemHeightLG:a,multipleItemBg:E,multipleItemBorderColor:"transparent",multipleItemHeight:$,multipleItemHeightSM:k,multipleItemHeightLG:R,multipleSelectorBgDisabled:x,multipleItemColorDisabled:C,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(e.fontSize*1.25),hoverBorderColor:S,activeBorderColor:T,activeOutlineColor:O,selectAffixPadding:l}},nF=(e,t)=>{const{componentCls:n,antCls:r,controlOutlineWidth:i}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{border:`${ie(e.lineWidth)} ${e.lineType} ${t.borderColor}`,background:e.selectorBg},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{borderColor:t.hoverBorderHover},[`${n}-focused& ${n}-selector`]:{borderColor:t.activeBorderColor,boxShadow:`0 0 0 ${ie(i)} ${t.activeOutlineColor}`,outline:0},[`${n}-prefix`]:{color:t.color}}}},kO=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},nF(e,t))}),koe=e=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},nF(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeOutlineColor:e.activeOutlineColor,color:e.colorText})),kO(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeOutlineColor:e.colorErrorOutline,color:e.colorError})),kO(e,{status:"warning",borderColor:e.colorWarning,hoverBorderHover:e.colorWarningHover,activeBorderColor:e.colorWarning,activeOutlineColor:e.colorWarningOutline,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${ie(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),rF=(e,t)=>{const{componentCls:n,antCls:r}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{background:t.bg,border:`${ie(e.lineWidth)} ${e.lineType} transparent`,color:t.color},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{background:t.hoverBg},[`${n}-focused& ${n}-selector`]:{background:e.selectorBg,borderColor:t.activeBorderColor,outline:0}}}},RO=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},rF(e,t))}),Roe=e=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},rF(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor,color:e.colorText})),RO(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,color:e.colorError})),RO(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{borderColor:e.colorBorder,background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.colorBgContainer,border:`${ie(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}})}),Moe=e=>({"&-borderless":{[`${e.componentCls}-selector`]:{background:"transparent",border:`${ie(e.lineWidth)} ${e.lineType} transparent`},[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${ie(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`},[`&${e.componentCls}-status-error`]:{[`${e.componentCls}-prefix, ${e.componentCls}-selection-item`]:{color:e.colorError}},[`&${e.componentCls}-status-warning`]:{[`${e.componentCls}-prefix, ${e.componentCls}-selection-item`]:{color:e.colorWarning}}}}),Poe=e=>({[e.componentCls]:Object.assign(Object.assign(Object.assign({},koe(e)),Roe(e)),Moe(e))}),Loe=e=>{const{componentCls:t}=e;return{position:"relative",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,input:{cursor:"pointer"},[`${t}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},[`${t}-disabled&`]:{cursor:"not-allowed",input:{cursor:"not-allowed"}}}},Doe=e=>{const{componentCls:t}=e;return{[`${t}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none",fontFamily:"inherit","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},Foe=e=>{const{antCls:t,componentCls:n,inputPaddingHorizontalBase:r,iconCls:i}=e;return{[n]:Object.assign(Object.assign({},Fn(e)),{position:"relative",display:"inline-flex",cursor:"pointer",[`&:not(${n}-customize-input) ${n}-selector`]:Object.assign(Object.assign({},Loe(e)),Doe(e)),[`${n}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},al),{[`> ${t}-typography`]:{display:"inline"}}),[`${n}-selection-placeholder`]:Object.assign(Object.assign({},al),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${n}-arrow`]:Object.assign(Object.assign({},Tb()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",transition:`opacity ${e.motionDurationSlow} ease`,[i]:{verticalAlign:"top",transition:`transform ${e.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${n}-suffix)`]:{pointerEvents:"auto"}},[`${n}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${n}-selection-wrap`]:{display:"flex",width:"100%",position:"relative","&:after":{content:'"\\a0"',width:0,overflow:"hidden"}},[`${n}-prefix`]:{flex:"none",marginInlineEnd:e.selectAffixPadding},[`${n}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,zIndex:1,display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",cursor:"pointer",opacity:0,transition:`color ${e.motionDurationMid} ease, opacity ${e.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:e.colorTextTertiary}},[`&:hover ${n}-clear`]:{opacity:1,background:e.colorBgBase,borderRadius:"50%"}}),[`${n}-has-feedback`]:{[`${n}-clear`]:{insetInlineEnd:e.calc(r).add(e.fontSize).add(e.paddingXS).equal()}}}},Boe=e=>{const{componentCls:t}=e;return[{[t]:{[`&${t}-in-form-item`]:{width:"100%"}}},Foe(e),Noe(e),$oe(e),woe(e),{[`${t}-rtl`]:{direction:"rtl"}},_8(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},joe=Mn("Select",(e,t)=>{let{rootPrefixCls:n}=t;const r=hn(e,{rootPrefixCls:n,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[Boe(r),Poe(r)]},Aoe,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}});var Hoe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"},zoe=function(t,n){return d.createElement(on,ze({},t,{ref:n,icon:Hoe}))},F8=d.forwardRef(zoe),Woe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"},Uoe=function(t,n){return d.createElement(on,ze({},t,{ref:n,icon:Woe}))},B8=d.forwardRef(Uoe),Koe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"},Voe=function(t,n){return d.createElement(on,ze({},t,{ref:n,icon:Koe}))},j8=d.forwardRef(Voe);function Goe(e){let{suffixIcon:t,clearIcon:n,menuItemSelectedIcon:r,removeIcon:i,loading:o,multiple:a,hasFeedback:l,prefixCls:c,showSuffixIcon:u,feedbackIcon:f,showArrow:p,componentName:m}=e;const g=n??d.createElement(Ku,null),b=S=>t===null&&!l&&!p?null:d.createElement(d.Fragment,null,u!==!1&&S,l&&f);let E=null;if(t!==void 0)E=b(t);else if(o)E=b(d.createElement(Ec,{spin:!0}));else{const S=`${c}-suffix`;E=T=>{let{open:O,showSearch:I}=T;return b(O&&I?d.createElement(j8,{className:S}):d.createElement(B8,{className:S}))}}let x=null;r!==void 0?x=r:a?x=d.createElement(F8,null):x=null;let C=null;return i!==void 0?C=i:C=d.createElement(Vu,null),{clearIcon:g,suffixIcon:E,itemIcon:x,removeIcon:C}}function qoe(e,t){return t!==void 0?t:e!==null}var Xoe=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const iF="SECRET_COMBOBOX_MODE_DO_NOT_USE",Yoe=(e,t)=>{var n;const{prefixCls:r,bordered:i,className:o,rootClassName:a,getPopupContainer:l,popupClassName:c,dropdownClassName:u,listHeight:f=256,placement:p,listItemHeight:m,size:g,disabled:b,notFoundContent:E,status:x,builtinPlacements:C,dropdownMatchSelectWidth:S,popupMatchSelectWidth:T,direction:O,style:I,allowClear:_,variant:$,dropdownStyle:k,transitionName:R,tagRender:M,maxCount:H,prefix:B}=e,L=Xoe(e,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear","variant","dropdownStyle","transitionName","tagRender","maxCount","prefix"]),{getPopupContainer:D,getPrefixCls:z,renderEmpty:W,direction:j,virtual:U,popupMatchSelectWidth:q,popupOverflow:A,select:P}=d.useContext(At),[,Z]=Bi(),V=m??(Z==null?void 0:Z.controlHeight),Y=z("select",r),ee=z(),ue=O??j,{compactSize:ne,compactItemClassnames:se}=_m(Y,ue),[me,ye]=D8("select",$,i),de=Kr(Y),[ce,oe,pe]=joe(Y,de),ve=d.useMemo(()=>{const{mode:Ye}=e;if(Ye!=="combobox")return Ye===iF?"combobox":Ye},[e.mode]),Te=ve==="multiple"||ve==="tags",Ge=qoe(e.suffixIcon,e.showArrow),je=(n=T??S)!==null&&n!==void 0?n:q,{status:Je,hasFeedback:Se,isFormItemInput:$e,feedbackIcon:qe}=d.useContext(fo),Le=Hb(Je,x);let Fe;E!==void 0?Fe=E:ve==="combobox"?Fe=null:Fe=(W==null?void 0:W("Select"))||d.createElement(tF,{componentName:"Select"});const{suffixIcon:Ke,itemIcon:Ve,removeIcon:Ce,clearIcon:Pe}=Goe(Object.assign(Object.assign({},L),{multiple:Te,hasFeedback:Se,feedbackIcon:qe,showSuffixIcon:Ge,prefixCls:Y,componentName:"Select"})),We=_===!0?{clearIcon:Pe}:_,Ze=tr(L,["suffixIcon","itemIcon"]),ut=le(c||u,{[`${Y}-dropdown-${ue}`]:ue==="rtl"},a,pe,de,oe),Be=vo(Ye=>{var mt;return(mt=g??ne)!==null&&mt!==void 0?mt:Ye}),ot=d.useContext($a),re=b??ot,Ie=le({[`${Y}-lg`]:Be==="large",[`${Y}-sm`]:Be==="small",[`${Y}-rtl`]:ue==="rtl",[`${Y}-${me}`]:ye,[`${Y}-in-form-item`]:$e},dy(Y,Le,Se),se,P==null?void 0:P.className,o,a,pe,de,oe),Re=d.useMemo(()=>p!==void 0?p:ue==="rtl"?"bottomRight":"bottomLeft",[p,ue]),[Ae]=xm("SelectLike",k==null?void 0:k.zIndex);return ce(d.createElement(L8,Object.assign({ref:t,virtual:U,showSearch:P==null?void 0:P.showSearch},Ze,{style:Object.assign(Object.assign({},P==null?void 0:P.style),I),dropdownMatchSelectWidth:je,transitionName:xc(ee,"slide-up",R),builtinPlacements:xoe(C,A),listHeight:f,listItemHeight:V,mode:ve,prefixCls:Y,placement:Re,direction:ue,prefix:B,suffixIcon:Ke,menuItemSelectedIcon:Ve,removeIcon:Ce,allowClear:We,notFoundContent:Fe,className:Ie,getPopupContainer:l||D,dropdownClassName:ut,disabled:re,dropdownStyle:Object.assign(Object.assign({},k),{zIndex:Ae}),maxCount:Te?H:void 0,tagRender:Te?M:void 0})))},Pi=d.forwardRef(Yoe),Qoe=jD(Pi);Pi.SECRET_COMBOBOX_MODE_DO_NOT_USE=iF;Pi.Option=P8;Pi.OptGroup=M8;Pi._InternalPanelDoNotUseOrYouWillBeFired=Qoe;const Tc=["xxl","xl","lg","md","sm","xs"],Zoe=e=>({xs:`(max-width: ${e.screenXSMax}px)`,sm:`(min-width: ${e.screenSM}px)`,md:`(min-width: ${e.screenMD}px)`,lg:`(min-width: ${e.screenLG}px)`,xl:`(min-width: ${e.screenXL}px)`,xxl:`(min-width: ${e.screenXXL}px)`}),Joe=e=>{const t=e,n=[].concat(Tc).reverse();return n.forEach((r,i)=>{const o=r.toUpperCase(),a=`screen${o}Min`,l=`screen${o}`;if(!(t[a]<=t[l]))throw new Error(`${a}<=${l} fails : !(${t[a]}<=${t[l]})`);if(i<n.length-1){const c=`screen${o}Max`;if(!(t[l]<=t[c]))throw new Error(`${l}<=${c} fails : !(${t[l]}<=${t[c]})`);const f=`screen${n[i+1].toUpperCase()}Min`;if(!(t[c]<=t[f]))throw new Error(`${c}<=${f} fails : !(${t[c]}<=${t[f]})`)}}),e};function oF(){const[,e]=Bi(),t=Zoe(Joe(e));return be.useMemo(()=>{const n=new Map;let r=-1,i={};return{matchHandlers:{},dispatch(o){return i=o,n.forEach(a=>a(i)),n.size>=1},subscribe(o){return n.size||this.register(),r+=1,n.set(r,o),o(i),r},unsubscribe(o){n.delete(o),n.size||this.unregister()},unregister(){Object.keys(t).forEach(o=>{const a=t[o],l=this.matchHandlers[a];l==null||l.mql.removeListener(l==null?void 0:l.listener)}),n.clear()},register(){Object.keys(t).forEach(o=>{const a=t[o],l=u=>{let{matches:f}=u;this.dispatch(Object.assign(Object.assign({},i),{[o]:f}))},c=window.matchMedia(a);c.addListener(l),this.matchHandlers[a]={mql:c,listener:l},l(c)})},responsiveMap:t}},[e])}const aF=(e,t)=>{if(t&&typeof t=="object")for(let n=0;n<Tc.length;n++){const r=Tc[n];if(e[r]&&t[r]!==void 0)return t[r]}};function H8(){const[,e]=d.useReducer(t=>t+1,0);return e}function zb(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;const t=d.useRef({}),n=H8(),r=oF();return bn(()=>{const i=r.subscribe(o=>{t.current=o,e&&n()});return()=>r.unsubscribe(i)},[]),t.current}const nE=d.createContext({}),eae=e=>{const{antCls:t,componentCls:n,iconCls:r,avatarBg:i,avatarColor:o,containerSize:a,containerSizeLG:l,containerSizeSM:c,textFontSize:u,textFontSizeLG:f,textFontSizeSM:p,borderRadius:m,borderRadiusLG:g,borderRadiusSM:b,lineWidth:E,lineType:x}=e,C=(S,T,O)=>({width:S,height:S,borderRadius:"50%",[`&${n}-square`]:{borderRadius:O},[`&${n}-icon`]:{fontSize:T,[`> ${r}`]:{margin:0}}});return{[n]:Object.assign(Object.assign(Object.assign(Object.assign({},Fn(e)),{position:"relative",display:"inline-flex",justifyContent:"center",alignItems:"center",overflow:"hidden",color:o,whiteSpace:"nowrap",textAlign:"center",verticalAlign:"middle",background:i,border:`${ie(E)} ${x} transparent`,"&-image":{background:"transparent"},[`${t}-image-img`]:{display:"block"}}),C(a,u,m)),{"&-lg":Object.assign({},C(l,f,g)),"&-sm":Object.assign({},C(c,p,b)),"> img":{display:"block",width:"100%",height:"100%",objectFit:"cover"}})}},tae=e=>{const{componentCls:t,groupBorderColor:n,groupOverlapping:r,groupSpace:i}=e;return{[`${t}-group`]:{display:"inline-flex",[t]:{borderColor:n},"> *:not(:first-child)":{marginInlineStart:r}},[`${t}-group-popover`]:{[`${t} + ${t}`]:{marginInlineStart:i}}}},nae=e=>{const{controlHeight:t,controlHeightLG:n,controlHeightSM:r,fontSize:i,fontSizeLG:o,fontSizeXL:a,fontSizeHeading3:l,marginXS:c,marginXXS:u,colorBorderBg:f}=e;return{containerSize:t,containerSizeLG:n,containerSizeSM:r,textFontSize:Math.round((o+a)/2),textFontSizeLG:l,textFontSizeSM:i,groupSpace:u,groupOverlapping:-c,groupBorderColor:f}},lF=Mn("Avatar",e=>{const{colorTextLightSolid:t,colorTextPlaceholder:n}=e,r=hn(e,{avatarBg:n,avatarColor:t});return[eae(r),tae(r)]},nae);var rae=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const iae=(e,t)=>{const[n,r]=d.useState(1),[i,o]=d.useState(!1),[a,l]=d.useState(!0),c=d.useRef(null),u=d.useRef(null),f=eo(t,c),{getPrefixCls:p,avatar:m}=d.useContext(At),g=d.useContext(nE),b=()=>{if(!u.current||!c.current)return;const se=u.current.offsetWidth,me=c.current.offsetWidth;if(se!==0&&me!==0){const{gap:ye=4}=e;ye*2<me&&r(me-ye*2<se?(me-ye*2)/se:1)}};d.useEffect(()=>{o(!0)},[]),d.useEffect(()=>{l(!0),r(1)},[e.src]),d.useEffect(b,[e.gap]);const E=()=>{const{onError:se}=e;(se==null?void 0:se())!==!1&&l(!1)},{prefixCls:x,shape:C,size:S,src:T,srcSet:O,icon:I,className:_,rootClassName:$,alt:k,draggable:R,children:M,crossOrigin:H}=e,B=rae(e,["prefixCls","shape","size","src","srcSet","icon","className","rootClassName","alt","draggable","children","crossOrigin"]),L=vo(se=>{var me,ye;return(ye=(me=S??(g==null?void 0:g.size))!==null&&me!==void 0?me:se)!==null&&ye!==void 0?ye:"default"}),D=Object.keys(typeof L=="object"?L||{}:{}).some(se=>["xs","sm","md","lg","xl","xxl"].includes(se)),z=zb(D),W=d.useMemo(()=>{if(typeof L!="object")return{};const se=Tc.find(ye=>z[ye]),me=L[se];return me?{width:me,height:me,fontSize:me&&(I||M)?me/2:18}:{}},[z,L]),j=p("avatar",x),U=Kr(j),[q,A,P]=lF(j,U),Z=le({[`${j}-lg`]:L==="large",[`${j}-sm`]:L==="small"}),V=d.isValidElement(T),Y=C||(g==null?void 0:g.shape)||"circle",ee=le(j,Z,m==null?void 0:m.className,`${j}-${Y}`,{[`${j}-image`]:V||T&&a,[`${j}-icon`]:!!I},P,U,_,$,A),ue=typeof L=="number"?{width:L,height:L,fontSize:I?L/2:18}:{};let ne;if(typeof T=="string"&&a)ne=d.createElement("img",{src:T,draggable:R,srcSet:O,onError:E,alt:k,crossOrigin:H});else if(V)ne=T;else if(I)ne=I;else if(i||n!==1){const se=`scale(${n})`,me={msTransform:se,WebkitTransform:se,transform:se};ne=d.createElement(Yi,{onResize:b},d.createElement("span",{className:`${j}-string`,ref:u,style:Object.assign({},me)},M))}else ne=d.createElement("span",{className:`${j}-string`,style:{opacity:0},ref:u},M);return delete B.onError,delete B.gap,q(d.createElement("span",Object.assign({},B,{style:Object.assign(Object.assign(Object.assign(Object.assign({},ue),W),m==null?void 0:m.style),B.style),className:ee,ref:f}),ne))},sF=d.forwardRef(iae),fy=e=>e?typeof e=="function"?e():e:null;function z8(e){var t=e.children,n=e.prefixCls,r=e.id,i=e.overlayInnerStyle,o=e.className,a=e.style;return d.createElement("div",{className:le("".concat(n,"-content"),o),style:a},d.createElement("div",{className:"".concat(n,"-inner"),id:r,role:"tooltip",style:i},typeof t=="function"?t():t))}var Id={shiftX:64,adjustY:1},$d={adjustX:1,shiftY:!0},ha=[0,0],oae={left:{points:["cr","cl"],overflow:$d,offset:[-4,0],targetOffset:ha},right:{points:["cl","cr"],overflow:$d,offset:[4,0],targetOffset:ha},top:{points:["bc","tc"],overflow:Id,offset:[0,-4],targetOffset:ha},bottom:{points:["tc","bc"],overflow:Id,offset:[0,4],targetOffset:ha},topLeft:{points:["bl","tl"],overflow:Id,offset:[0,-4],targetOffset:ha},leftTop:{points:["tr","tl"],overflow:$d,offset:[-4,0],targetOffset:ha},topRight:{points:["br","tr"],overflow:Id,offset:[0,-4],targetOffset:ha},rightTop:{points:["tl","tr"],overflow:$d,offset:[4,0],targetOffset:ha},bottomRight:{points:["tr","br"],overflow:Id,offset:[0,4],targetOffset:ha},rightBottom:{points:["bl","br"],overflow:$d,offset:[4,0],targetOffset:ha},bottomLeft:{points:["tl","bl"],overflow:Id,offset:[0,4],targetOffset:ha},leftBottom:{points:["br","bl"],overflow:$d,offset:[-4,0],targetOffset:ha}},aae=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],lae=function(t,n){var r=t.overlayClassName,i=t.trigger,o=i===void 0?["hover"]:i,a=t.mouseEnterDelay,l=a===void 0?0:a,c=t.mouseLeaveDelay,u=c===void 0?.1:c,f=t.overlayStyle,p=t.prefixCls,m=p===void 0?"rc-tooltip":p,g=t.children,b=t.onVisibleChange,E=t.afterVisibleChange,x=t.transitionName,C=t.animation,S=t.motion,T=t.placement,O=T===void 0?"right":T,I=t.align,_=I===void 0?{}:I,$=t.destroyTooltipOnHide,k=$===void 0?!1:$,R=t.defaultVisible,M=t.getTooltipContainer,H=t.overlayInnerStyle;t.arrowContent;var B=t.overlay,L=t.id,D=t.showArrow,z=D===void 0?!0:D,W=Gt(t,aae),j=d.useRef(null);d.useImperativeHandle(n,function(){return j.current});var U=te({},W);"visible"in t&&(U.popupVisible=t.visible);var q=function(){return d.createElement(z8,{key:"content",prefixCls:m,id:L,overlayInnerStyle:H},B)};return d.createElement(Bb,ze({popupClassName:r,prefixCls:m,popup:q,action:o,builtinPlacements:oae,popupPlacement:O,ref:j,popupAlign:_,getPopupContainer:M,onPopupVisibleChange:b,afterPopupVisibleChange:E,popupTransitionName:x,popupAnimation:C,popupMotion:S,defaultPopupVisible:R,autoDestroy:k,mouseLeaveDelay:u,popupStyle:f,mouseEnterDelay:l,arrow:z},U),g)};const sae=d.forwardRef(lae);function W8(e){const{sizePopupArrow:t,borderRadiusXS:n,borderRadiusOuter:r}=e,i=t/2,o=0,a=i,l=r*1/Math.sqrt(2),c=i-r*(1-1/Math.sqrt(2)),u=i-n*(1/Math.sqrt(2)),f=r*(Math.sqrt(2)-1)+n*(1/Math.sqrt(2)),p=2*i-u,m=f,g=2*i-l,b=c,E=2*i-o,x=a,C=i*Math.sqrt(2)+r*(Math.sqrt(2)-2),S=r*(Math.sqrt(2)-1),T=`polygon(${S}px 100%, 50% ${S}px, ${2*i-S}px 100%, ${S}px 100%)`,O=`path('M ${o} ${a} A ${r} ${r} 0 0 0 ${l} ${c} L ${u} ${f} A ${n} ${n} 0 0 1 ${p} ${m} L ${g} ${b} A ${r} ${r} 0 0 0 ${E} ${x} Z')`;return{arrowShadowWidth:C,arrowPath:O,arrowPolygon:T}}const cae=(e,t,n)=>{const{sizePopupArrow:r,arrowPolygon:i,arrowPath:o,arrowShadowWidth:a,borderRadiusXS:l,calc:c}=e;return{pointerEvents:"none",width:r,height:r,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:r,height:c(r).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[i,o]},content:'""'},"&::after":{content:'""',position:"absolute",width:a,height:a,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${ie(l)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}},cF=8;function Wb(e){const{contentRadius:t,limitVerticalRadius:n}=e,r=t>12?t+2:12;return{arrowOffsetHorizontal:r,arrowOffsetVertical:n?cF:r}}function ng(e,t){return e?t:{}}function U8(e,t,n){const{componentCls:r,boxShadowPopoverArrow:i,arrowOffsetVertical:o,arrowOffsetHorizontal:a}=e,{arrowDistance:l=0,arrowPlacement:c={left:!0,right:!0,top:!0,bottom:!0}}=n||{};return{[r]:Object.assign(Object.assign(Object.assign(Object.assign({[`${r}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},cae(e,t,i)),{"&:before":{background:t}})]},ng(!!c.top,{[[`&-placement-top > ${r}-arrow`,`&-placement-topLeft > ${r}-arrow`,`&-placement-topRight > ${r}-arrow`].join(",")]:{bottom:l,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},"&-placement-topLeft":{"--arrow-offset-horizontal":a,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:a}}},"&-placement-topRight":{"--arrow-offset-horizontal":`calc(100% - ${ie(a)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:a}}}})),ng(!!c.bottom,{[[`&-placement-bottom > ${r}-arrow`,`&-placement-bottomLeft > ${r}-arrow`,`&-placement-bottomRight > ${r}-arrow`].join(",")]:{top:l,transform:"translateY(-100%)"},[`&-placement-bottom > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{"--arrow-offset-horizontal":a,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:a}}},"&-placement-bottomRight":{"--arrow-offset-horizontal":`calc(100% - ${ie(a)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:a}}}})),ng(!!c.left,{[[`&-placement-left > ${r}-arrow`,`&-placement-leftTop > ${r}-arrow`,`&-placement-leftBottom > ${r}-arrow`].join(",")]:{right:{_skip_check_:!0,value:l},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${r}-arrow`]:{top:o},[`&-placement-leftBottom > ${r}-arrow`]:{bottom:o}})),ng(!!c.right,{[[`&-placement-right > ${r}-arrow`,`&-placement-rightTop > ${r}-arrow`,`&-placement-rightBottom > ${r}-arrow`].join(",")]:{left:{_skip_check_:!0,value:l},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${r}-arrow`]:{top:o},[`&-placement-rightBottom > ${r}-arrow`]:{bottom:o}}))}}function uae(e,t,n,r){if(r===!1)return{adjustX:!1,adjustY:!1};const i=r&&typeof r=="object"?r:{},o={};switch(e){case"top":case"bottom":o.shiftX=t.arrowOffsetHorizontal*2+n,o.shiftY=!0,o.adjustY=!0;break;case"left":case"right":o.shiftY=t.arrowOffsetVertical*2+n,o.shiftX=!0,o.adjustX=!0;break}const a=Object.assign(Object.assign({},o),i);return a.shiftX||(a.adjustX=!0),a.shiftY||(a.adjustY=!0),a}const MO={left:{points:["cr","cl"]},right:{points:["cl","cr"]},top:{points:["bc","tc"]},bottom:{points:["tc","bc"]},topLeft:{points:["bl","tl"]},leftTop:{points:["tr","tl"]},topRight:{points:["br","tr"]},rightTop:{points:["tl","tr"]},bottomRight:{points:["tr","br"]},rightBottom:{points:["bl","br"]},bottomLeft:{points:["tl","bl"]},leftBottom:{points:["br","bl"]}},dae={topLeft:{points:["bl","tc"]},leftTop:{points:["tr","cl"]},topRight:{points:["br","tc"]},rightTop:{points:["tl","cr"]},bottomRight:{points:["tr","bc"]},rightBottom:{points:["bl","cr"]},bottomLeft:{points:["tl","bc"]},leftBottom:{points:["br","cl"]}},fae=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function uF(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:i,borderRadius:o,visibleFirst:a}=e,l=t/2,c={};return Object.keys(MO).forEach(u=>{const f=r&&dae[u]||MO[u],p=Object.assign(Object.assign({},f),{offset:[0,0],dynamicInset:!0});switch(c[u]=p,fae.has(u)&&(p.autoArrow=!1),u){case"top":case"topLeft":case"topRight":p.offset[1]=-l-i;break;case"bottom":case"bottomLeft":case"bottomRight":p.offset[1]=l+i;break;case"left":case"leftTop":case"leftBottom":p.offset[0]=-l-i;break;case"right":case"rightTop":case"rightBottom":p.offset[0]=l+i;break}const m=Wb({contentRadius:o,limitVerticalRadius:!0});if(r)switch(u){case"topLeft":case"bottomLeft":p.offset[0]=-m.arrowOffsetHorizontal-l;break;case"topRight":case"bottomRight":p.offset[0]=m.arrowOffsetHorizontal+l;break;case"leftTop":case"rightTop":p.offset[1]=-m.arrowOffsetHorizontal*2+l;break;case"leftBottom":case"rightBottom":p.offset[1]=m.arrowOffsetHorizontal*2-l;break}p.overflow=uae(u,m,t,n),a&&(p.htmlRegion="visibleFirst")}),c}const hae=e=>{const{componentCls:t,tooltipMaxWidth:n,tooltipColor:r,tooltipBg:i,tooltipBorderRadius:o,zIndexPopup:a,controlHeight:l,boxShadowSecondary:c,paddingSM:u,paddingXS:f}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Fn(e)),{position:"absolute",zIndex:a,display:"block",width:"max-content",maxWidth:n,visibility:"visible","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"&-hidden":{display:"none"},"--antd-arrow-background-color":i,[`${t}-inner`]:{minWidth:"1em",minHeight:l,padding:`${ie(e.calc(u).div(2).equal())} ${ie(f)}`,color:r,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:i,borderRadius:o,boxShadow:c,boxSizing:"border-box"},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${t}-inner`]:{borderRadius:e.min(o,cF)}},[`${t}-content`]:{position:"relative"}}),yL(e,(p,m)=>{let{darkColor:g}=m;return{[`&${t}-${p}`]:{[`${t}-inner`]:{backgroundColor:g},[`${t}-arrow`]:{"--antd-arrow-background-color":g}}}})),{"&-rtl":{direction:"rtl"}})},U8(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},pae=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},Wb({contentRadius:e.borderRadius,limitVerticalRadius:!0})),W8(hn(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),dF=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return Mn("Tooltip",r=>{const{borderRadius:i,colorTextLightSolid:o,colorBgSpotlight:a}=r,l=hn(r,{tooltipMaxWidth:250,tooltipColor:o,tooltipBorderRadius:i,tooltipBg:a});return[hae(l),Om(r,"zoom-big-fast")]},pae,{resetStyle:!1,injectStyle:t})(e)},mae=qp.map(e=>`${e}-inverse`),gae=["success","processing","error","default","warning"];function fF(e){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[].concat(Qe(mae),Qe(qp)).includes(e):qp.includes(e)}function vae(e){return gae.includes(e)}function hF(e,t){const n=fF(t),r=le({[`${e}-${t}`]:t&&n}),i={},o={};return t&&!n&&(i.background=t,o["--antd-arrow-background-color"]=t),{className:r,overlayStyle:i,arrowStyle:o}}const yae=e=>{const{prefixCls:t,className:n,placement:r="top",title:i,color:o,overlayInnerStyle:a}=e,{getPrefixCls:l}=d.useContext(At),c=l("tooltip",t),[u,f,p]=dF(c),m=hF(c,o),g=m.arrowStyle,b=Object.assign(Object.assign({},a),m.overlayStyle),E=le(f,p,c,`${c}-pure`,`${c}-placement-${r}`,n,m.className);return u(d.createElement("div",{className:E,style:g},d.createElement("div",{className:`${c}-arrow`}),d.createElement(z8,Object.assign({},e,{className:f,prefixCls:c,overlayInnerStyle:b}),i)))};var bae=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const Cae=d.forwardRef((e,t)=>{var n,r;const{prefixCls:i,openClassName:o,getTooltipContainer:a,overlayClassName:l,color:c,overlayInnerStyle:u,children:f,afterOpenChange:p,afterVisibleChange:m,destroyTooltipOnHide:g,arrow:b=!0,title:E,overlay:x,builtinPlacements:C,arrowPointAtCenter:S=!1,autoAdjustOverflow:T=!0}=e,O=!!b,[,I]=Bi(),{getPopupContainer:_,getPrefixCls:$,direction:k}=d.useContext(At),R=Mc(),M=d.useRef(null),H=()=>{var Le;(Le=M.current)===null||Le===void 0||Le.forceAlign()};d.useImperativeHandle(t,()=>{var Le;return{forceAlign:H,forcePopupAlign:()=>{R.deprecated(!1,"forcePopupAlign","forceAlign"),H()},nativeElement:(Le=M.current)===null||Le===void 0?void 0:Le.nativeElement}});const[B,L]=Tr(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),D=!E&&!x&&E!==0,z=Le=>{var Fe,Ke;L(D?!1:Le),D||((Fe=e.onOpenChange)===null||Fe===void 0||Fe.call(e,Le),(Ke=e.onVisibleChange)===null||Ke===void 0||Ke.call(e,Le))},W=d.useMemo(()=>{var Le,Fe;let Ke=S;return typeof b=="object"&&(Ke=(Fe=(Le=b.pointAtCenter)!==null&&Le!==void 0?Le:b.arrowPointAtCenter)!==null&&Fe!==void 0?Fe:S),C||uF({arrowPointAtCenter:Ke,autoAdjustOverflow:T,arrowWidth:O?I.sizePopupArrow:0,borderRadius:I.borderRadius,offset:I.marginXXS,visibleFirst:!0})},[S,b,C,I]),j=d.useMemo(()=>E===0?E:x||E||"",[x,E]),U=d.createElement(Jp,{space:!0},typeof j=="function"?j():j),{getPopupContainer:q,placement:A="top",mouseEnterDelay:P=.1,mouseLeaveDelay:Z=.1,overlayStyle:V,rootClassName:Y}=e,ee=bae(e,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),ue=$("tooltip",i),ne=$(),se=e["data-popover-inject"];let me=B;!("open"in e)&&!("visible"in e)&&D&&(me=!1);const ye=d.isValidElement(f)&&!FL(f)?f:d.createElement("span",null,f),de=ye.props,ce=!de.className||typeof de.className=="string"?le(de.className,o||`${ue}-open`):de.className,[oe,pe,ve]=dF(ue,!se),Te=hF(ue,c),Ge=Te.arrowStyle,je=Object.assign(Object.assign({},u),Te.overlayStyle),Je=le(l,{[`${ue}-rtl`]:k==="rtl"},Te.className,Y,pe,ve),[Se,$e]=xm("Tooltip",ee.zIndex),qe=d.createElement(sae,Object.assign({},ee,{zIndex:Se,showArrow:O,placement:A,mouseEnterDelay:P,mouseLeaveDelay:Z,prefixCls:ue,overlayClassName:Je,overlayStyle:Object.assign(Object.assign({},Ge),V),getTooltipContainer:q||a||_,ref:M,builtinPlacements:W,overlay:U,visible:me,onVisibleChange:z,afterVisibleChange:p??m,overlayInnerStyle:je,arrowContent:d.createElement("span",{className:`${ue}-arrow-content`}),motion:{motionName:xc(ne,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!g}),me?mi(ye,{className:ce}):ye);return oe(d.createElement(Ob.Provider,{value:$e},qe))}),sl=Cae;sl._InternalPanelDoNotUseOrYouWillBeFired=yae;const Sae=e=>{const{componentCls:t,popoverColor:n,titleMinWidth:r,fontWeightStrong:i,innerPadding:o,boxShadowSecondary:a,colorTextHeading:l,borderRadiusLG:c,zIndexPopup:u,titleMarginBottom:f,colorBgElevated:p,popoverBg:m,titleBorderBottom:g,innerContentPadding:b,titlePadding:E}=e;return[{[t]:Object.assign(Object.assign({},Fn(e)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:u,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"--antd-arrow-background-color":p,width:"max-content",maxWidth:"100vw","&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-inner`]:{backgroundColor:m,backgroundClip:"padding-box",borderRadius:c,boxShadow:a,padding:o},[`${t}-title`]:{minWidth:r,marginBottom:f,color:l,fontWeight:i,borderBottom:g,padding:E},[`${t}-inner-content`]:{color:n,padding:b}})},U8(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block",[`${t}-content`]:{display:"inline-block"}}}]},Eae=e=>{const{componentCls:t}=e;return{[t]:qp.map(n=>{const r=e[`${n}6`];return{[`&${t}-${n}`]:{"--antd-arrow-background-color":r,[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{background:"transparent"}}}})}},xae=e=>{const{lineWidth:t,controlHeight:n,fontHeight:r,padding:i,wireframe:o,zIndexPopupBase:a,borderRadiusLG:l,marginXS:c,lineType:u,colorSplit:f,paddingSM:p}=e,m=n-r,g=m/2,b=m/2-t,E=i;return Object.assign(Object.assign(Object.assign({titleMinWidth:177,zIndexPopup:a+30},W8(e)),Wb({contentRadius:l,limitVerticalRadius:!0})),{innerPadding:o?0:12,titleMarginBottom:o?0:c,titlePadding:o?`${g}px ${E}px ${b}px`:0,titleBorderBottom:o?`${t}px ${u} ${f}`:"none",innerContentPadding:o?`${p}px ${E}px`:0})},pF=Mn("Popover",e=>{const{colorBgElevated:t,colorText:n}=e,r=hn(e,{popoverBg:t,popoverColor:n});return[Sae(r),Eae(r),Om(r,"zoom-big")]},xae,{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]});var wae=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const mF=e=>{let{title:t,content:n,prefixCls:r}=e;return!t&&!n?null:d.createElement(d.Fragment,null,t&&d.createElement("div",{className:`${r}-title`},t),n&&d.createElement("div",{className:`${r}-inner-content`},n))},Tae=e=>{const{hashId:t,prefixCls:n,className:r,style:i,placement:o="top",title:a,content:l,children:c}=e,u=fy(a),f=fy(l),p=le(t,n,`${n}-pure`,`${n}-placement-${o}`,r);return d.createElement("div",{className:p,style:i},d.createElement("div",{className:`${n}-arrow`}),d.createElement(z8,Object.assign({},e,{className:t,prefixCls:n}),c||d.createElement(mF,{prefixCls:n,title:u,content:f})))},_ae=e=>{const{prefixCls:t,className:n}=e,r=wae(e,["prefixCls","className"]),{getPrefixCls:i}=d.useContext(At),o=i("popover",t),[a,l,c]=pF(o);return a(d.createElement(Tae,Object.assign({},r,{prefixCls:o,hashId:l,className:le(n,c)})))};var Oae=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const Iae=d.forwardRef((e,t)=>{var n,r;const{prefixCls:i,title:o,content:a,overlayClassName:l,placement:c="top",trigger:u="hover",children:f,mouseEnterDelay:p=.1,mouseLeaveDelay:m=.1,onOpenChange:g,overlayStyle:b={}}=e,E=Oae(e,["prefixCls","title","content","overlayClassName","placement","trigger","children","mouseEnterDelay","mouseLeaveDelay","onOpenChange","overlayStyle"]),{getPrefixCls:x}=d.useContext(At),C=x("popover",i),[S,T,O]=pF(C),I=x(),_=le(l,T,O),[$,k]=Tr(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),R=(D,z)=>{k(D,!0),g==null||g(D,z)},M=D=>{D.keyCode===it.ESC&&R(!1,D)},H=D=>{R(D)},B=fy(o),L=fy(a);return S(d.createElement(sl,Object.assign({placement:c,trigger:u,mouseEnterDelay:p,mouseLeaveDelay:m,overlayStyle:b},E,{prefixCls:C,overlayClassName:_,ref:t,open:$,onOpenChange:H,overlay:B||L?d.createElement(mF,{prefixCls:C,title:B,content:L}):null,transitionName:xc(I,"zoom-big",E.transitionName),"data-popover-inject":!0}),mi(f,{onKeyDown:D=>{var z,W;d.isValidElement(f)&&((W=f==null?void 0:(z=f.props).onKeyDown)===null||W===void 0||W.call(z,D)),M(D)}})))}),gF=Iae;gF._InternalPanelDoNotUseOrYouWillBeFired=_ae;const PO=e=>{const{size:t,shape:n}=d.useContext(nE),r=d.useMemo(()=>({size:e.size||t,shape:e.shape||n}),[e.size,e.shape,t,n]);return d.createElement(nE.Provider,{value:r},e.children)},$ae=e=>{var t,n,r;const{getPrefixCls:i,direction:o}=d.useContext(At),{prefixCls:a,className:l,rootClassName:c,style:u,maxCount:f,maxStyle:p,size:m,shape:g,maxPopoverPlacement:b,maxPopoverTrigger:E,children:x,max:C}=e,S=i("avatar",a),T=`${S}-group`,O=Kr(S),[I,_,$]=lF(S,O),k=le(T,{[`${T}-rtl`]:o==="rtl"},$,O,l,c,_),R=ri(x).map((B,L)=>mi(B,{key:`avatar-key-${L}`})),M=(C==null?void 0:C.count)||f,H=R.length;if(M&&M<H){const B=R.slice(0,M),L=R.slice(M,H),D=(C==null?void 0:C.style)||p,z=((t=C==null?void 0:C.popover)===null||t===void 0?void 0:t.trigger)||E||"hover",W=((n=C==null?void 0:C.popover)===null||n===void 0?void 0:n.placement)||b||"top",j=Object.assign(Object.assign({content:L},C==null?void 0:C.popover),{overlayClassName:le(`${T}-popover`,(r=C==null?void 0:C.popover)===null||r===void 0?void 0:r.overlayClassName),placement:W,trigger:z});return B.push(d.createElement(gF,Object.assign({key:"avatar-popover-key",destroyTooltipOnHide:!0},j),d.createElement(sF,{style:D},`+${H-M}`))),I(d.createElement(PO,{shape:g,size:m},d.createElement("div",{className:k,style:u},B)))}return I(d.createElement(PO,{shape:g,size:m},d.createElement("div",{className:k,style:u},R)))},vF=sF;vF.Group=$ae;var Nae=it.ESC,Aae=it.TAB;function kae(e){var t=e.visible,n=e.triggerRef,r=e.onVisibleChange,i=e.autoFocus,o=e.overlayRef,a=d.useRef(!1),l=function(){if(t){var p,m;(p=n.current)===null||p===void 0||(m=p.focus)===null||m===void 0||m.call(p),r==null||r(!1)}},c=function(){var p;return(p=o.current)!==null&&p!==void 0&&p.focus?(o.current.focus(),a.current=!0,!0):!1},u=function(p){switch(p.keyCode){case Nae:l();break;case Aae:{var m=!1;a.current||(m=c()),m?p.preventDefault():l();break}}};d.useEffect(function(){return t?(window.addEventListener("keydown",u),i&&kn(c,3),function(){window.removeEventListener("keydown",u),a.current=!1}):function(){a.current=!1}},[t])}var Rae=d.forwardRef(function(e,t){var n=e.overlay,r=e.arrow,i=e.prefixCls,o=d.useMemo(function(){var l;return typeof n=="function"?l=n():l=n,l},[n]),a=eo(t,o==null?void 0:o.ref);return be.createElement(be.Fragment,null,r&&be.createElement("div",{className:"".concat(i,"-arrow")}),be.cloneElement(o,{ref:ol(o)?a:void 0}))}),Nd={adjustX:1,adjustY:1},Ad=[0,0],Mae={topLeft:{points:["bl","tl"],overflow:Nd,offset:[0,-4],targetOffset:Ad},top:{points:["bc","tc"],overflow:Nd,offset:[0,-4],targetOffset:Ad},topRight:{points:["br","tr"],overflow:Nd,offset:[0,-4],targetOffset:Ad},bottomLeft:{points:["tl","bl"],overflow:Nd,offset:[0,4],targetOffset:Ad},bottom:{points:["tc","bc"],overflow:Nd,offset:[0,4],targetOffset:Ad},bottomRight:{points:["tr","br"],overflow:Nd,offset:[0,4],targetOffset:Ad}},Pae=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function Lae(e,t){var n,r=e.arrow,i=r===void 0?!1:r,o=e.prefixCls,a=o===void 0?"rc-dropdown":o,l=e.transitionName,c=e.animation,u=e.align,f=e.placement,p=f===void 0?"bottomLeft":f,m=e.placements,g=m===void 0?Mae:m,b=e.getPopupContainer,E=e.showAction,x=e.hideAction,C=e.overlayClassName,S=e.overlayStyle,T=e.visible,O=e.trigger,I=O===void 0?["hover"]:O,_=e.autoFocus,$=e.overlay,k=e.children,R=e.onVisibleChange,M=Gt(e,Pae),H=be.useState(),B=Oe(H,2),L=B[0],D=B[1],z="visible"in e?T:L,W=be.useRef(null),j=be.useRef(null),U=be.useRef(null);be.useImperativeHandle(t,function(){return W.current});var q=function(se){D(se),R==null||R(se)};kae({visible:z,triggerRef:U,onVisibleChange:q,autoFocus:_,overlayRef:j});var A=function(se){var me=e.onOverlayClick;D(!1),me&&me(se)},P=function(){return be.createElement(Rae,{ref:j,overlay:$,prefixCls:a,arrow:i})},Z=function(){return typeof $=="function"?P:P()},V=function(){var se=e.minOverlayWidthMatchTrigger,me=e.alignPoint;return"minOverlayWidthMatchTrigger"in e?se:!me},Y=function(){var se=e.openClassName;return se!==void 0?se:"".concat(a,"-open")},ee=be.cloneElement(k,{className:le((n=k.props)===null||n===void 0?void 0:n.className,z&&Y()),ref:ol(k)?eo(U,k.ref):void 0}),ue=x;return!ue&&I.indexOf("contextMenu")!==-1&&(ue=["click"]),be.createElement(Bb,ze({builtinPlacements:g},M,{prefixCls:a,ref:W,popupClassName:le(C,J({},"".concat(a,"-show-arrow"),i)),popupStyle:S,action:I,showAction:E,hideAction:ue,popupPlacement:p,popupAlign:u,popupTransitionName:l,popupAnimation:c,popupVisible:z,stretch:V()?"minWidth":"",popup:Z(),onPopupVisibleChange:q,onPopupClick:A,getPopupContainer:b}),ee)}const yF=be.forwardRef(Lae);var bF=d.createContext(null);function CF(e,t){return e===void 0?null:"".concat(e,"-").concat(t)}function SF(e){var t=d.useContext(bF);return CF(t,e)}var Dae=["children","locked"],cl=d.createContext(null);function Fae(e,t){var n=te({},e);return Object.keys(t).forEach(function(r){var i=t[r];i!==void 0&&(n[r]=i)}),n}function tm(e){var t=e.children,n=e.locked,r=Gt(e,Dae),i=d.useContext(cl),o=Uu(function(){return Fae(i,r)},[i,r],function(a,l){return!n&&(a[0]!==l[0]||!Ml(a[1],l[1],!0))});return d.createElement(cl.Provider,{value:o},t)}var Bae=[],EF=d.createContext(null);function Ub(){return d.useContext(EF)}var xF=d.createContext(Bae);function f1(e){var t=d.useContext(xF);return d.useMemo(function(){return e!==void 0?[].concat(Qe(t),[e]):t},[t,e])}var wF=d.createContext(null),K8=d.createContext({});function LO(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(Tm(e)){var n=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(n)||e.isContentEditable||n==="a"&&!!e.getAttribute("href"),i=e.getAttribute("tabindex"),o=Number(i),a=null;return i&&!Number.isNaN(o)?a=o:r&&a===null&&(a=0),r&&e.disabled&&(a=null),a!==null&&(a>=0||t&&a<0)}return!1}function jae(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=Qe(e.querySelectorAll("*")).filter(function(r){return LO(r,t)});return LO(e,t)&&n.unshift(e),n}var rE=it.LEFT,iE=it.RIGHT,oE=it.UP,av=it.DOWN,lv=it.ENTER,TF=it.ESC,mh=it.HOME,gh=it.END,DO=[oE,av,rE,iE];function Hae(e,t,n,r){var i,o="prev",a="next",l="children",c="parent";if(e==="inline"&&r===lv)return{inlineTrigger:!0};var u=J(J({},oE,o),av,a),f=J(J(J(J({},rE,n?a:o),iE,n?o:a),av,l),lv,l),p=J(J(J(J(J(J({},oE,o),av,a),lv,l),TF,c),rE,n?l:c),iE,n?c:l),m={inline:u,horizontal:f,vertical:p,inlineSub:u,horizontalSub:p,verticalSub:p},g=(i=m["".concat(e).concat(t?"":"Sub")])===null||i===void 0?void 0:i[r];switch(g){case o:return{offset:-1,sibling:!0};case a:return{offset:1,sibling:!0};case c:return{offset:-1,sibling:!1};case l:return{offset:1,sibling:!1};default:return null}}function zae(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}function Wae(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}function V8(e,t){var n=jae(e,!0);return n.filter(function(r){return t.has(r)})}function FO(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!e)return null;var i=V8(e,t),o=i.length,a=i.findIndex(function(l){return n===l});return r<0?a===-1?a=o-1:a-=1:r>0&&(a+=1),a=(a+o)%o,i[a]}var aE=function(t,n){var r=new Set,i=new Map,o=new Map;return t.forEach(function(a){var l=document.querySelector("[data-menu-id='".concat(CF(n,a),"']"));l&&(r.add(l),o.set(l,a),i.set(a,l))}),{elements:r,key2element:i,element2key:o}};function Uae(e,t,n,r,i,o,a,l,c,u){var f=d.useRef(),p=d.useRef();p.current=t;var m=function(){kn.cancel(f.current)};return d.useEffect(function(){return function(){m()}},[]),function(g){var b=g.which;if([].concat(DO,[lv,TF,mh,gh]).includes(b)){var E=o(),x=aE(E,r),C=x,S=C.elements,T=C.key2element,O=C.element2key,I=T.get(t),_=Wae(I,S),$=O.get(_),k=Hae(e,a($,!0).length===1,n,b);if(!k&&b!==mh&&b!==gh)return;(DO.includes(b)||[mh,gh].includes(b))&&g.preventDefault();var R=function(j){if(j){var U=j,q=j.querySelector("a");q!=null&&q.getAttribute("href")&&(U=q);var A=O.get(j);l(A),m(),f.current=kn(function(){p.current===A&&U.focus()})}};if([mh,gh].includes(b)||k.sibling||!_){var M;!_||e==="inline"?M=i.current:M=zae(_);var H,B=V8(M,S);b===mh?H=B[0]:b===gh?H=B[B.length-1]:H=FO(M,S,_,k.offset),R(H)}else if(k.inlineTrigger)c($);else if(k.offset>0)c($,!0),m(),f.current=kn(function(){x=aE(E,r);var W=_.getAttribute("aria-controls"),j=document.getElementById(W),U=FO(j,x.elements);R(U)},5);else if(k.offset<0){var L=a($,!0),D=L[L.length-2],z=T.get(D);c(D,!1),R(z)}}u==null||u(g)}}function Kae(e){Promise.resolve().then(e)}var G8="__RC_UTIL_PATH_SPLIT__",BO=function(t){return t.join(G8)},Vae=function(t){return t.split(G8)},lE="rc-menu-more";function Gae(){var e=d.useState({}),t=Oe(e,2),n=t[1],r=d.useRef(new Map),i=d.useRef(new Map),o=d.useState([]),a=Oe(o,2),l=a[0],c=a[1],u=d.useRef(0),f=d.useRef(!1),p=function(){f.current||n({})},m=d.useCallback(function(T,O){var I=BO(O);i.current.set(I,T),r.current.set(T,I),u.current+=1;var _=u.current;Kae(function(){_===u.current&&p()})},[]),g=d.useCallback(function(T,O){var I=BO(O);i.current.delete(I),r.current.delete(T)},[]),b=d.useCallback(function(T){c(T)},[]),E=d.useCallback(function(T,O){var I=r.current.get(T)||"",_=Vae(I);return O&&l.includes(_[0])&&_.unshift(lE),_},[l]),x=d.useCallback(function(T,O){return T.filter(function(I){return I!==void 0}).some(function(I){var _=E(I,!0);return _.includes(O)})},[E]),C=function(){var O=Qe(r.current.keys());return l.length&&O.push(lE),O},S=d.useCallback(function(T){var O="".concat(r.current.get(T)).concat(G8),I=new Set;return Qe(i.current.keys()).forEach(function(_){_.startsWith(O)&&I.add(i.current.get(_))}),I},[]);return d.useEffect(function(){return function(){f.current=!0}},[]),{registerPath:m,unregisterPath:g,refreshOverflowKeys:b,isSubPathKey:x,getKeyPath:E,getKeys:C,getSubPathKeys:S}}function Ph(e){var t=d.useRef(e);t.current=e;var n=d.useCallback(function(){for(var r,i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return(r=t.current)===null||r===void 0?void 0:r.call.apply(r,[t].concat(o))},[]);return e?n:void 0}var qae=Math.random().toFixed(5).toString().slice(2),jO=0;function Xae(e){var t=Tr(e,{value:e}),n=Oe(t,2),r=n[0],i=n[1];return d.useEffect(function(){jO+=1;var o="".concat(qae,"-").concat(jO);i("rc-menu-uuid-".concat(o))},[]),r}function _F(e,t,n,r){var i=d.useContext(cl),o=i.activeKey,a=i.onActive,l=i.onInactive,c={active:o===e};return t||(c.onMouseEnter=function(u){n==null||n({key:e,domEvent:u}),a(e)},c.onMouseLeave=function(u){r==null||r({key:e,domEvent:u}),l(e)}),c}function OF(e){var t=d.useContext(cl),n=t.mode,r=t.rtl,i=t.inlineIndent;if(n!=="inline")return null;var o=e;return r?{paddingRight:o*i}:{paddingLeft:o*i}}function IF(e){var t=e.icon,n=e.props,r=e.children,i;return t===null||t===!1?null:(typeof t=="function"?i=d.createElement(t,te({},n)):typeof t!="boolean"&&(i=t),i||r||null)}var Yae=["item"];function hy(e){var t=e.item,n=Gt(e,Yae);return Object.defineProperty(n,"item",{get:function(){return gr(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),t}}),n}var Qae=["title","attribute","elementRef"],Zae=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],Jae=["active"],ele=function(e){la(n,e);var t=sa(n);function n(){return _r(this,n),t.apply(this,arguments)}return Or(n,[{key:"render",value:function(){var i=this.props,o=i.title,a=i.attribute,l=i.elementRef,c=Gt(i,Qae),u=tr(c,["eventKey","popupClassName","popupOffset","onTitleClick"]);return gr(!a,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),d.createElement(Nl.Item,ze({},a,{title:typeof o=="string"?o:void 0},u,{ref:l}))}}]),n}(d.Component),tle=d.forwardRef(function(e,t){var n=e.style,r=e.className,i=e.eventKey;e.warnKey;var o=e.disabled,a=e.itemIcon,l=e.children,c=e.role,u=e.onMouseEnter,f=e.onMouseLeave,p=e.onClick,m=e.onKeyDown,g=e.onFocus,b=Gt(e,Zae),E=SF(i),x=d.useContext(cl),C=x.prefixCls,S=x.onItemClick,T=x.disabled,O=x.overflowDisabled,I=x.itemIcon,_=x.selectedKeys,$=x.onActive,k=d.useContext(K8),R=k._internalRenderMenuItem,M="".concat(C,"-item"),H=d.useRef(),B=d.useRef(),L=T||o,D=Cs(t,B),z=f1(i),W=function(me){return{key:i,keyPath:Qe(z).reverse(),item:H.current,domEvent:me}},j=a||I,U=_F(i,L,u,f),q=U.active,A=Gt(U,Jae),P=_.includes(i),Z=OF(z.length),V=function(me){if(!L){var ye=W(me);p==null||p(hy(ye)),S(ye)}},Y=function(me){if(m==null||m(me),me.which===it.ENTER){var ye=W(me);p==null||p(hy(ye)),S(ye)}},ee=function(me){$(i),g==null||g(me)},ue={};e.role==="option"&&(ue["aria-selected"]=P);var ne=d.createElement(ele,ze({ref:H,elementRef:D,role:c===null?"none":c||"menuitem",tabIndex:o?null:-1,"data-menu-id":O&&E?null:E},tr(b,["extra"]),A,ue,{component:"li","aria-disabled":o,style:te(te({},Z),n),className:le(M,J(J(J({},"".concat(M,"-active"),q),"".concat(M,"-selected"),P),"".concat(M,"-disabled"),L),r),onClick:V,onKeyDown:Y,onFocus:ee}),l,d.createElement(IF,{props:te(te({},e),{},{isSelected:P}),icon:j}));return R&&(ne=R(ne,e,{selected:P})),ne});function nle(e,t){var n=e.eventKey,r=Ub(),i=f1(n);return d.useEffect(function(){if(r)return r.registerPath(n,i),function(){r.unregisterPath(n,i)}},[i]),r?null:d.createElement(tle,ze({},e,{ref:t}))}const km=d.forwardRef(nle);var rle=["className","children"],ile=function(t,n){var r=t.className,i=t.children,o=Gt(t,rle),a=d.useContext(cl),l=a.prefixCls,c=a.mode,u=a.rtl;return d.createElement("ul",ze({className:le(l,u&&"".concat(l,"-rtl"),"".concat(l,"-sub"),"".concat(l,"-").concat(c==="inline"?"inline":"vertical"),r),role:"menu"},o,{"data-menu-list":!0,ref:n}),i)},q8=d.forwardRef(ile);q8.displayName="SubMenuList";function X8(e,t){return ri(e).map(function(n,r){if(d.isValidElement(n)){var i,o,a=n.key,l=(i=(o=n.props)===null||o===void 0?void 0:o.eventKey)!==null&&i!==void 0?i:a,c=l==null;c&&(l="tmp_key-".concat([].concat(Qe(t),[r]).join("-")));var u={key:l,eventKey:l};return d.cloneElement(n,u)}return n})}var Vi={adjustX:1,adjustY:1},ole={topLeft:{points:["bl","tl"],overflow:Vi},topRight:{points:["br","tr"],overflow:Vi},bottomLeft:{points:["tl","bl"],overflow:Vi},bottomRight:{points:["tr","br"],overflow:Vi},leftTop:{points:["tr","tl"],overflow:Vi},leftBottom:{points:["br","bl"],overflow:Vi},rightTop:{points:["tl","tr"],overflow:Vi},rightBottom:{points:["bl","br"],overflow:Vi}},ale={topLeft:{points:["bl","tl"],overflow:Vi},topRight:{points:["br","tr"],overflow:Vi},bottomLeft:{points:["tl","bl"],overflow:Vi},bottomRight:{points:["tr","br"],overflow:Vi},rightTop:{points:["tr","tl"],overflow:Vi},rightBottom:{points:["br","bl"],overflow:Vi},leftTop:{points:["tl","tr"],overflow:Vi},leftBottom:{points:["bl","br"],overflow:Vi}};function $F(e,t,n){if(t)return t;if(n)return n[e]||n.other}var lle={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function sle(e){var t=e.prefixCls,n=e.visible,r=e.children,i=e.popup,o=e.popupStyle,a=e.popupClassName,l=e.popupOffset,c=e.disabled,u=e.mode,f=e.onVisibleChange,p=d.useContext(cl),m=p.getPopupContainer,g=p.rtl,b=p.subMenuOpenDelay,E=p.subMenuCloseDelay,x=p.builtinPlacements,C=p.triggerSubMenuAction,S=p.forceSubMenuRender,T=p.rootClassName,O=p.motion,I=p.defaultMotions,_=d.useState(!1),$=Oe(_,2),k=$[0],R=$[1],M=te(g?te({},ale):te({},ole),x),H=lle[u],B=$F(u,O,I),L=d.useRef(B);u!=="inline"&&(L.current=B);var D=te(te({},L.current),{},{leavedClassName:"".concat(t,"-hidden"),removeOnLeave:!1,motionAppear:!0}),z=d.useRef();return d.useEffect(function(){return z.current=kn(function(){R(n)}),function(){kn.cancel(z.current)}},[n]),d.createElement(Bb,{prefixCls:t,popupClassName:le("".concat(t,"-popup"),J({},"".concat(t,"-rtl"),g),a,T),stretch:u==="horizontal"?"minWidth":null,getPopupContainer:m,builtinPlacements:M,popupPlacement:H,popupVisible:k,popup:i,popupStyle:o,popupAlign:l&&{offset:l},action:c?[]:[C],mouseEnterDelay:b,mouseLeaveDelay:E,onPopupVisibleChange:f,forceRender:S,popupMotion:D,fresh:!0},r)}function cle(e){var t=e.id,n=e.open,r=e.keyPath,i=e.children,o="inline",a=d.useContext(cl),l=a.prefixCls,c=a.forceSubMenuRender,u=a.motion,f=a.defaultMotions,p=a.mode,m=d.useRef(!1);m.current=p===o;var g=d.useState(!m.current),b=Oe(g,2),E=b[0],x=b[1],C=m.current?n:!1;d.useEffect(function(){m.current&&x(!1)},[p]);var S=te({},$F(o,u,f));r.length>1&&(S.motionAppear=!1);var T=S.onVisibleChanged;return S.onVisibleChanged=function(O){return!m.current&&!O&&x(!0),T==null?void 0:T(O)},E?null:d.createElement(tm,{mode:o,locked:!m.current},d.createElement(ca,ze({visible:C},S,{forceRender:c,removeOnLeave:!1,leavedClassName:"".concat(l,"-hidden")}),function(O){var I=O.className,_=O.style;return d.createElement(q8,{id:t,className:I,style:_},i)}))}var ule=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],dle=["active"],fle=d.forwardRef(function(e,t){var n=e.style,r=e.className,i=e.title,o=e.eventKey;e.warnKey;var a=e.disabled,l=e.internalPopupClose,c=e.children,u=e.itemIcon,f=e.expandIcon,p=e.popupClassName,m=e.popupOffset,g=e.popupStyle,b=e.onClick,E=e.onMouseEnter,x=e.onMouseLeave,C=e.onTitleClick,S=e.onTitleMouseEnter,T=e.onTitleMouseLeave,O=Gt(e,ule),I=SF(o),_=d.useContext(cl),$=_.prefixCls,k=_.mode,R=_.openKeys,M=_.disabled,H=_.overflowDisabled,B=_.activeKey,L=_.selectedKeys,D=_.itemIcon,z=_.expandIcon,W=_.onItemClick,j=_.onOpenChange,U=_.onActive,q=d.useContext(K8),A=q._internalRenderSubMenuItem,P=d.useContext(wF),Z=P.isSubPathKey,V=f1(),Y="".concat($,"-submenu"),ee=M||a,ue=d.useRef(),ne=d.useRef(),se=u??D,me=f??z,ye=R.includes(o),de=!H&&ye,ce=Z(L,o),oe=_F(o,ee,S,T),pe=oe.active,ve=Gt(oe,dle),Te=d.useState(!1),Ge=Oe(Te,2),je=Ge[0],Je=Ge[1],Se=function(Ie){ee||Je(Ie)},$e=function(Ie){Se(!0),E==null||E({key:o,domEvent:Ie})},qe=function(Ie){Se(!1),x==null||x({key:o,domEvent:Ie})},Le=d.useMemo(function(){return pe||(k!=="inline"?je||Z([B],o):!1)},[k,pe,B,je,o,Z]),Fe=OF(V.length),Ke=function(Ie){ee||(C==null||C({key:o,domEvent:Ie}),k==="inline"&&j(o,!ye))},Ve=Ph(function(re){b==null||b(hy(re)),W(re)}),Ce=function(Ie){k!=="inline"&&j(o,Ie)},Pe=function(){U(o)},We=I&&"".concat(I,"-popup"),Ze=d.createElement("div",ze({role:"menuitem",style:Fe,className:"".concat(Y,"-title"),tabIndex:ee?null:-1,ref:ue,title:typeof i=="string"?i:null,"data-menu-id":H&&I?null:I,"aria-expanded":de,"aria-haspopup":!0,"aria-controls":We,"aria-disabled":ee,onClick:Ke,onFocus:Pe},ve),i,d.createElement(IF,{icon:k!=="horizontal"?me:void 0,props:te(te({},e),{},{isOpen:de,isSubMenu:!0})},d.createElement("i",{className:"".concat(Y,"-arrow")}))),ut=d.useRef(k);if(k!=="inline"&&V.length>1?ut.current="vertical":ut.current=k,!H){var Be=ut.current;Ze=d.createElement(sle,{mode:Be,prefixCls:Y,visible:!l&&de&&k!=="inline",popupClassName:p,popupOffset:m,popupStyle:g,popup:d.createElement(tm,{mode:Be==="horizontal"?"vertical":Be},d.createElement(q8,{id:We,ref:ne},c)),disabled:ee,onVisibleChange:Ce},Ze)}var ot=d.createElement(Nl.Item,ze({ref:t,role:"none"},O,{component:"li",style:n,className:le(Y,"".concat(Y,"-").concat(k),r,J(J(J(J({},"".concat(Y,"-open"),de),"".concat(Y,"-active"),Le),"".concat(Y,"-selected"),ce),"".concat(Y,"-disabled"),ee)),onMouseEnter:$e,onMouseLeave:qe}),Ze,!H&&d.createElement(cle,{id:We,open:de,keyPath:V},c));return A&&(ot=A(ot,e,{selected:ce,active:Le,open:de,disabled:ee})),d.createElement(tm,{onItemClick:Ve,mode:k==="horizontal"?"vertical":k,itemIcon:se,expandIcon:me},ot)}),Kb=d.forwardRef(function(e,t){var n=e.eventKey,r=e.children,i=f1(n),o=X8(r,i),a=Ub();d.useEffect(function(){if(a)return a.registerPath(n,i),function(){a.unregisterPath(n,i)}},[i]);var l;return a?l=o:l=d.createElement(fle,ze({ref:t},e),o),d.createElement(xF.Provider,{value:i},l)});function Y8(e){var t=e.className,n=e.style,r=d.useContext(cl),i=r.prefixCls,o=Ub();return o?null:d.createElement("li",{role:"separator",className:le("".concat(i,"-item-divider"),t),style:n})}var hle=["className","title","eventKey","children"],ple=d.forwardRef(function(e,t){var n=e.className,r=e.title;e.eventKey;var i=e.children,o=Gt(e,hle),a=d.useContext(cl),l=a.prefixCls,c="".concat(l,"-item-group");return d.createElement("li",ze({ref:t,role:"presentation"},o,{onClick:function(f){return f.stopPropagation()},className:le(c,n)}),d.createElement("div",{role:"presentation",className:"".concat(c,"-title"),title:typeof r=="string"?r:void 0},r),d.createElement("ul",{role:"group",className:"".concat(c,"-list")},i))}),Q8=d.forwardRef(function(e,t){var n=e.eventKey,r=e.children,i=f1(n),o=X8(r,i),a=Ub();return a?o:d.createElement(ple,ze({ref:t},tr(e,["warnKey"])),o)}),mle=["label","children","key","type","extra"];function sE(e,t,n){var r=t.item,i=t.group,o=t.submenu,a=t.divider;return(e||[]).map(function(l,c){if(l&&$t(l)==="object"){var u=l,f=u.label,p=u.children,m=u.key,g=u.type,b=u.extra,E=Gt(u,mle),x=m??"tmp-".concat(c);return p||g==="group"?g==="group"?d.createElement(i,ze({key:x},E,{title:f}),sE(p,t,n)):d.createElement(o,ze({key:x},E,{title:f}),sE(p,t,n)):g==="divider"?d.createElement(a,ze({key:x},E)):d.createElement(r,ze({key:x},E,{extra:b}),f,(!!b||b===0)&&d.createElement("span",{className:"".concat(n,"-item-extra")},b))}return null}).filter(function(l){return l})}function HO(e,t,n,r,i){var o=e,a=te({divider:Y8,item:km,group:Q8,submenu:Kb},r);return t&&(o=sE(t,a,i)),X8(o,n)}var gle=["prefixCls","rootClassName","style","className","tabIndex","items","children","direction","id","mode","inlineCollapsed","disabled","disabledOverflow","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","defaultOpenKeys","openKeys","activeKey","defaultActiveFirst","selectable","multiple","defaultSelectedKeys","selectedKeys","onSelect","onDeselect","inlineIndent","motion","defaultMotions","triggerSubMenuAction","builtinPlacements","itemIcon","expandIcon","overflowedIndicator","overflowedIndicatorPopupClassName","getPopupContainer","onClick","onOpenChange","onKeyDown","openAnimation","openTransitionName","_internalRenderMenuItem","_internalRenderSubMenuItem","_internalComponents"],Qc=[],vle=d.forwardRef(function(e,t){var n,r=e,i=r.prefixCls,o=i===void 0?"rc-menu":i,a=r.rootClassName,l=r.style,c=r.className,u=r.tabIndex,f=u===void 0?0:u,p=r.items,m=r.children,g=r.direction,b=r.id,E=r.mode,x=E===void 0?"vertical":E,C=r.inlineCollapsed,S=r.disabled,T=r.disabledOverflow,O=r.subMenuOpenDelay,I=O===void 0?.1:O,_=r.subMenuCloseDelay,$=_===void 0?.1:_,k=r.forceSubMenuRender,R=r.defaultOpenKeys,M=r.openKeys,H=r.activeKey,B=r.defaultActiveFirst,L=r.selectable,D=L===void 0?!0:L,z=r.multiple,W=z===void 0?!1:z,j=r.defaultSelectedKeys,U=r.selectedKeys,q=r.onSelect,A=r.onDeselect,P=r.inlineIndent,Z=P===void 0?24:P,V=r.motion,Y=r.defaultMotions,ee=r.triggerSubMenuAction,ue=ee===void 0?"hover":ee,ne=r.builtinPlacements,se=r.itemIcon,me=r.expandIcon,ye=r.overflowedIndicator,de=ye===void 0?"...":ye,ce=r.overflowedIndicatorPopupClassName,oe=r.getPopupContainer,pe=r.onClick,ve=r.onOpenChange,Te=r.onKeyDown;r.openAnimation,r.openTransitionName;var Ge=r._internalRenderMenuItem,je=r._internalRenderSubMenuItem,Je=r._internalComponents,Se=Gt(r,gle),$e=d.useMemo(function(){return[HO(m,p,Qc,Je,o),HO(m,p,Qc,{},o)]},[m,p,Je]),qe=Oe($e,2),Le=qe[0],Fe=qe[1],Ke=d.useState(!1),Ve=Oe(Ke,2),Ce=Ve[0],Pe=Ve[1],We=d.useRef(),Ze=Xae(b),ut=g==="rtl",Be=Tr(R,{value:M,postState:function(kt){return kt||Qc}}),ot=Oe(Be,2),re=ot[0],Ie=ot[1],Re=function(kt){var an=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function Cn(){Ie(kt),ve==null||ve(kt)}an?Oa.flushSync(Cn):Cn()},Ae=d.useState(re),Ye=Oe(Ae,2),mt=Ye[0],Nt=Ye[1],qt=d.useRef(!1),Ft=d.useMemo(function(){return(x==="inline"||x==="vertical")&&C?["vertical",C]:[x,!1]},[x,C]),Kt=Oe(Ft,2),Qt=Kt[0],Zt=Kt[1],Mt=Qt==="inline",St=d.useState(Qt),yt=Oe(St,2),lt=yt[0],fe=yt[1],xe=d.useState(Zt),ge=Oe(xe,2),Ne=ge[0],Xe=ge[1];d.useEffect(function(){fe(Qt),Xe(Zt),qt.current&&(Mt?Ie(mt):Re(Qc))},[Qt,Zt]);var nt=d.useState(0),pt=Oe(nt,2),st=pt[0],rt=pt[1],He=st>=Le.length-1||lt!=="horizontal"||T;d.useEffect(function(){Mt&&Nt(re)},[re]),d.useEffect(function(){return qt.current=!0,function(){qt.current=!1}},[]);var Ue=Gae(),ft=Ue.registerPath,Ct=Ue.unregisterPath,zt=Ue.refreshOverflowKeys,Tt=Ue.isSubPathKey,Pt=Ue.getKeyPath,vt=Ue.getKeys,gt=Ue.getSubPathKeys,tt=d.useMemo(function(){return{registerPath:ft,unregisterPath:Ct}},[ft,Ct]),Xt=d.useMemo(function(){return{isSubPathKey:Tt}},[Tt]);d.useEffect(function(){zt(He?Qc:Le.slice(st+1).map(function(Dt){return Dt.key}))},[st,He]);var Jt=Tr(H||B&&((n=Le[0])===null||n===void 0?void 0:n.key),{value:H}),En=Oe(Jt,2),Wt=En[0],In=En[1],qn=Ph(function(Dt){In(Dt)}),vr=Ph(function(){In(void 0)});d.useImperativeHandle(t,function(){return{list:We.current,focus:function(kt){var an,Cn=vt(),fn=aE(Cn,Ze),jn=fn.elements,Cr=fn.key2element,$r=fn.element2key,Vr=V8(We.current,jn),Br=Wt??(Vr[0]?$r.get(Vr[0]):(an=Le.find(function(rn){return!rn.props.disabled}))===null||an===void 0?void 0:an.key),Pr=Cr.get(Br);if(Br&&Pr){var Hi;Pr==null||(Hi=Pr.focus)===null||Hi===void 0||Hi.call(Pr,kt)}}}});var ke=Tr(j||[],{value:U,postState:function(kt){return Array.isArray(kt)?kt:kt==null?Qc:[kt]}}),dt=Oe(ke,2),cn=dt[0],$n=dt[1],pn=function(kt){if(D){var an=kt.key,Cn=cn.includes(an),fn;W?Cn?fn=cn.filter(function(Cr){return Cr!==an}):fn=[].concat(Qe(cn),[an]):fn=[an],$n(fn);var jn=te(te({},kt),{},{selectedKeys:fn});Cn?A==null||A(jn):q==null||q(jn)}!W&&re.length&&lt!=="inline"&&Re(Qc)},yr=Ph(function(Dt){pe==null||pe(hy(Dt)),pn(Dt)}),Ir=Ph(function(Dt,kt){var an=re.filter(function(fn){return fn!==Dt});if(kt)an.push(Dt);else if(lt!=="inline"){var Cn=gt(Dt);an=an.filter(function(fn){return!Cn.has(fn)})}Ml(re,an,!0)||Re(an,!0)}),Bt=function(kt,an){var Cn=an??!re.includes(kt);Ir(kt,Cn)},bo=Uae(lt,Wt,ut,Ze,We,vt,Pt,In,Bt,Te);d.useEffect(function(){Pe(!0)},[]);var ji=d.useMemo(function(){return{_internalRenderMenuItem:Ge,_internalRenderSubMenuItem:je}},[Ge,je]),cr=lt!=="horizontal"||T?Le:Le.map(function(Dt,kt){return d.createElement(tm,{key:Dt.key,overflowDisabled:kt>st},Dt)}),br=d.createElement(Nl,ze({id:b,ref:We,prefixCls:"".concat(o,"-overflow"),component:"ul",itemComponent:km,className:le(o,"".concat(o,"-root"),"".concat(o,"-").concat(lt),c,J(J({},"".concat(o,"-inline-collapsed"),Ne),"".concat(o,"-rtl"),ut),a),dir:g,style:l,role:"menu",tabIndex:f,data:cr,renderRawItem:function(kt){return kt},renderRawRest:function(kt){var an=kt.length,Cn=an?Le.slice(-an):null;return d.createElement(Kb,{eventKey:lE,title:de,disabled:He,internalPopupClose:an===0,popupClassName:ce},Cn)},maxCount:lt!=="horizontal"||T?Nl.INVALIDATE:Nl.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(kt){rt(kt)},onKeyDown:bo},Se));return d.createElement(K8.Provider,{value:ji},d.createElement(bF.Provider,{value:Ze},d.createElement(tm,{prefixCls:o,rootClassName:a,mode:lt,openKeys:re,rtl:ut,disabled:S,motion:Ce?V:null,defaultMotions:Ce?Y:null,activeKey:Wt,onActive:qn,onInactive:vr,selectedKeys:cn,inlineIndent:Z,subMenuOpenDelay:I,subMenuCloseDelay:$,forceSubMenuRender:k,builtinPlacements:ne,triggerSubMenuAction:ue,getPopupContainer:oe,itemIcon:se,expandIcon:me,onItemClick:yr,onOpenChange:Ir},d.createElement(wF.Provider,{value:Xt},br),d.createElement("div",{style:{display:"none"},"aria-hidden":!0},d.createElement(EF.Provider,{value:tt},Fe)))))}),h1=vle;h1.Item=km;h1.SubMenu=Kb;h1.ItemGroup=Q8;h1.Divider=Y8;var yle={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"},ble=function(t,n){return d.createElement(on,ze({},t,{ref:n,icon:yle}))},NF=d.forwardRef(ble),Cle={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"},Sle=function(t,n){return d.createElement(on,ze({},t,{ref:n,icon:Cle}))},py=d.forwardRef(Sle);const Ele=e=>!isNaN(parseFloat(e))&&isFinite(e),AF=d.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}}),xle=e=>{const{antCls:t,componentCls:n,colorText:r,footerBg:i,headerHeight:o,headerPadding:a,headerColor:l,footerPadding:c,fontSize:u,bodyBg:f,headerBg:p}=e;return{[n]:{display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:f,"&, *":{boxSizing:"border-box"},[`&${n}-has-sider`]:{flexDirection:"row",[`> ${n}, > ${n}-content`]:{width:0}},[`${n}-header, &${n}-footer`]:{flex:"0 0 auto"},"&-rtl":{direction:"rtl"}},[`${n}-header`]:{height:o,padding:a,color:l,lineHeight:ie(o),background:p,[`${t}-menu`]:{lineHeight:"inherit"}},[`${n}-footer`]:{padding:c,color:r,fontSize:u,background:i},[`${n}-content`]:{flex:"auto",color:r,minHeight:0}}},kF=e=>{const{colorBgLayout:t,controlHeight:n,controlHeightLG:r,colorText:i,controlHeightSM:o,marginXXS:a,colorTextLightSolid:l,colorBgContainer:c}=e,u=r*1.25;return{colorBgHeader:"#001529",colorBgBody:t,colorBgTrigger:"#002140",bodyBg:t,headerBg:"#001529",headerHeight:n*2,headerPadding:`0 ${u}px`,headerColor:i,footerPadding:`${o}px ${u}px`,footerBg:t,siderBg:"#001529",triggerHeight:r+a*2,triggerBg:"#002140",triggerColor:l,zeroTriggerWidth:r,zeroTriggerHeight:r,lightSiderBg:c,lightTriggerBg:c,lightTriggerColor:i}},RF=[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]],MF=Mn("Layout",e=>[xle(e)],kF,{deprecatedTokens:RF}),wle=e=>{const{componentCls:t,siderBg:n,motionDurationMid:r,motionDurationSlow:i,antCls:o,triggerHeight:a,triggerColor:l,triggerBg:c,headerHeight:u,zeroTriggerWidth:f,zeroTriggerHeight:p,borderRadius:m,lightSiderBg:g,lightTriggerColor:b,lightTriggerBg:E,bodyBg:x}=e;return{[t]:{position:"relative",minWidth:0,background:n,transition:`all ${r}, background 0s`,"&-has-trigger":{paddingBottom:a},"&-right":{order:1},[`${t}-children`]:{height:"100%",marginTop:-.1,paddingTop:.1,[`${o}-menu${o}-menu-inline-collapsed`]:{width:"auto"}},[`${t}-trigger`]:{position:"fixed",bottom:0,zIndex:1,height:a,color:l,lineHeight:ie(a),textAlign:"center",background:c,cursor:"pointer",transition:`all ${r}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:u,insetInlineEnd:e.calc(f).mul(-1).equal(),zIndex:1,width:f,height:p,color:l,fontSize:e.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:n,borderStartStartRadius:0,borderStartEndRadius:m,borderEndEndRadius:m,borderEndStartRadius:0,cursor:"pointer",transition:`background ${i} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${i}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:e.calc(f).mul(-1).equal(),borderStartStartRadius:m,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:m}}},"&-light":{background:g,[`${t}-trigger`]:{color:b,background:E},[`${t}-zero-width-trigger`]:{color:b,background:E,border:`1px solid ${x}`,borderInlineStart:0}}}}},Tle=Mn(["Layout","Sider"],e=>[wle(e)],kF,{deprecatedTokens:RF});var _le=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const zO={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},Vb=d.createContext({}),Ole=(()=>{let e=0;return function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return e+=1,`${t}${e}`}})(),PF=d.forwardRef((e,t)=>{const{prefixCls:n,className:r,trigger:i,children:o,defaultCollapsed:a=!1,theme:l="dark",style:c={},collapsible:u=!1,reverseArrow:f=!1,width:p=200,collapsedWidth:m=80,zeroWidthTriggerStyle:g,breakpoint:b,onCollapse:E,onBreakpoint:x}=e,C=_le(e,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:S}=d.useContext(AF),[T,O]=d.useState("collapsed"in e?e.collapsed:a),[I,_]=d.useState(!1);d.useEffect(()=>{"collapsed"in e&&O(e.collapsed)},[e.collapsed]);const $=(j,U)=>{"collapsed"in e||O(j),E==null||E(j,U)},{getPrefixCls:k}=d.useContext(At),R=k("layout-sider",n),[M,H,B]=Tle(R),L=d.useRef();L.current=j=>{_(j.matches),x==null||x(j.matches),T!==j.matches&&$(j.matches,"responsive")},d.useEffect(()=>{function j(q){return L.current(q)}let U;if(typeof window<"u"){const{matchMedia:q}=window;if(q&&b&&b in zO){U=q(`screen and (max-width: ${zO[b]})`);try{U.addEventListener("change",j)}catch{U.addListener(j)}j(U)}}return()=>{try{U==null||U.removeEventListener("change",j)}catch{U==null||U.removeListener(j)}}},[b]),d.useEffect(()=>{const j=Ole("ant-sider-");return S.addSider(j),()=>S.removeSider(j)},[]);const D=()=>{$(!T,"clickTrigger")},z=()=>{const j=tr(C,["collapsed"]),U=T?m:p,q=Ele(U)?`${U}px`:String(U),A=parseFloat(String(m||0))===0?d.createElement("span",{onClick:D,className:le(`${R}-zero-width-trigger`,`${R}-zero-width-trigger-${f?"right":"left"}`),style:g},i||d.createElement(NF,null)):null,V={expanded:f?d.createElement(Qp,null):d.createElement(py,null),collapsed:f?d.createElement(py,null):d.createElement(Qp,null)}[T?"collapsed":"expanded"],Y=i!==null?A||d.createElement("div",{className:`${R}-trigger`,onClick:D,style:{width:q}},i||V):null,ee=Object.assign(Object.assign({},c),{flex:`0 0 ${q}`,maxWidth:q,minWidth:q,width:q}),ue=le(R,`${R}-${l}`,{[`${R}-collapsed`]:!!T,[`${R}-has-trigger`]:u&&i!==null&&!A,[`${R}-below`]:!!I,[`${R}-zero-width`]:parseFloat(q)===0},r,H,B);return d.createElement("aside",Object.assign({className:ue},j,{style:ee,ref:t}),d.createElement("div",{className:`${R}-children`},o),u||I&&A?Y:null)},W=d.useMemo(()=>({siderCollapsed:T}),[T]);return M(d.createElement(Vb.Provider,{value:W},z()))});var Ile={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"},$le=function(t,n){return d.createElement(on,ze({},t,{ref:n,icon:Ile}))},Z8=d.forwardRef($le);const my=d.createContext({prefixCls:"",firstLevel:!0,inlineCollapsed:!1});var Nle=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const LF=e=>{const{prefixCls:t,className:n,dashed:r}=e,i=Nle(e,["prefixCls","className","dashed"]),{getPrefixCls:o}=d.useContext(At),a=o("menu",t),l=le({[`${a}-item-divider-dashed`]:!!r},n);return d.createElement(Y8,Object.assign({className:l},i))},DF=e=>{var t;const{className:n,children:r,icon:i,title:o,danger:a,extra:l}=e,{prefixCls:c,firstLevel:u,direction:f,disableMenuItemTitleTooltip:p,inlineCollapsed:m}=d.useContext(my),g=T=>{const O=r==null?void 0:r[0],I=d.createElement("span",{className:le(`${c}-title-content`,{[`${c}-title-content-with-extra`]:!!l||l===0})},r);return(!i||d.isValidElement(r)&&r.type==="span")&&r&&T&&u&&typeof O=="string"?d.createElement("div",{className:`${c}-inline-collapsed-noicon`},O.charAt(0)):I},{siderCollapsed:b}=d.useContext(Vb);let E=o;typeof o>"u"?E=u?r:"":o===!1&&(E="");const x={title:E};!b&&!m&&(x.title=null,x.open=!1);const C=ri(r).length;let S=d.createElement(km,Object.assign({},tr(e,["title","icon","danger"]),{className:le({[`${c}-item-danger`]:a,[`${c}-item-only-child`]:(i?C+1:C)===1},n),title:typeof o=="string"?o:void 0}),mi(i,{className:le(d.isValidElement(i)?(t=i.props)===null||t===void 0?void 0:t.className:"",`${c}-item-icon`)}),g(m));return p||(S=d.createElement(sl,Object.assign({},x,{placement:f==="rtl"?"left":"right",overlayClassName:`${c}-inline-collapsed-tooltip`}),S)),S};var Ale=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const gy=d.createContext(null),FF=d.forwardRef((e,t)=>{const{children:n}=e,r=Ale(e,["children"]),i=d.useContext(gy),o=d.useMemo(()=>Object.assign(Object.assign({},i),r),[i,r.prefixCls,r.mode,r.selectable,r.rootClassName]),a=HX(n),l=Cs(t,a?n.ref:null);return d.createElement(gy.Provider,{value:o},d.createElement(Jp,{space:!0},a?d.cloneElement(n,{ref:l}):n))}),kle=e=>{const{componentCls:t,motionDurationSlow:n,horizontalLineHeight:r,colorSplit:i,lineWidth:o,lineType:a,itemPaddingInline:l}=e;return{[`${t}-horizontal`]:{lineHeight:r,border:0,borderBottom:`${ie(o)} ${a} ${i}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${t}-item, ${t}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:l},[`> ${t}-item:hover,
> ${t}-item-active,
> ${t}-submenu ${t}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${t}-item, ${t}-submenu-title`]:{transition:[`border-color ${n}`,`background ${n}`].join(",")},[`${t}-submenu-arrow`]:{display:"none"}}}},Rle=e=>{let{componentCls:t,menuArrowOffset:n,calc:r}=e;return{[`${t}-rtl`]:{direction:"rtl"},[`${t}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${t}-rtl${t}-vertical,
${t}-submenu-rtl ${t}-vertical`]:{[`${t}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${ie(r(n).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${ie(n)})`}}}}},WO=e=>Object.assign({},Sc(e)),UO=(e,t)=>{const{componentCls:n,itemColor:r,itemSelectedColor:i,groupTitleColor:o,itemBg:a,subMenuItemBg:l,itemSelectedBg:c,activeBarHeight:u,activeBarWidth:f,activeBarBorderWidth:p,motionDurationSlow:m,motionEaseInOut:g,motionEaseOut:b,itemPaddingInline:E,motionDurationMid:x,itemHoverColor:C,lineType:S,colorSplit:T,itemDisabledColor:O,dangerItemColor:I,dangerItemHoverColor:_,dangerItemSelectedColor:$,dangerItemActiveBg:k,dangerItemSelectedBg:R,popupBg:M,itemHoverBg:H,itemActiveBg:B,menuSubMenuBg:L,horizontalItemSelectedColor:D,horizontalItemSelectedBg:z,horizontalItemBorderRadius:W,horizontalItemHoverBg:j}=e;return{[`${n}-${t}, ${n}-${t} > ${n}`]:{color:r,background:a,[`&${n}-root:focus-visible`]:Object.assign({},WO(e)),[`${n}-item`]:{"&-group-title, &-extra":{color:o}},[`${n}-submenu-selected`]:{[`> ${n}-submenu-title`]:{color:i}},[`${n}-item, ${n}-submenu-title`]:{color:r,[`&:not(${n}-item-disabled):focus-visible`]:Object.assign({},WO(e))},[`${n}-item-disabled, ${n}-submenu-disabled`]:{color:`${O} !important`},[`${n}-item:not(${n}-item-selected):not(${n}-submenu-selected)`]:{[`&:hover, > ${n}-submenu-title:hover`]:{color:C}},[`&:not(${n}-horizontal)`]:{[`${n}-item:not(${n}-item-selected)`]:{"&:hover":{backgroundColor:H},"&:active":{backgroundColor:B}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:H},"&:active":{backgroundColor:B}}},[`${n}-item-danger`]:{color:I,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:_}},[`&${n}-item:active`]:{background:k}},[`${n}-item a`]:{"&, &:hover":{color:"inherit"}},[`${n}-item-selected`]:{color:i,[`&${n}-item-danger`]:{color:$},"a, a:hover":{color:"inherit"}},[`& ${n}-item-selected`]:{backgroundColor:c,[`&${n}-item-danger`]:{backgroundColor:R}},[`&${n}-submenu > ${n}`]:{backgroundColor:L},[`&${n}-popup > ${n}`]:{backgroundColor:M},[`&${n}-submenu-popup > ${n}`]:{backgroundColor:M},[`&${n}-horizontal`]:Object.assign(Object.assign({},t==="dark"?{borderBottom:0}:{}),{[`> ${n}-item, > ${n}-submenu`]:{top:p,marginTop:e.calc(p).mul(-1).equal(),marginBottom:0,borderRadius:W,"&::after":{position:"absolute",insetInline:E,bottom:0,borderBottom:`${ie(u)} solid transparent`,transition:`border-color ${m} ${g}`,content:'""'},"&:hover, &-active, &-open":{background:j,"&::after":{borderBottomWidth:u,borderBottomColor:D}},"&-selected":{color:D,backgroundColor:z,"&:hover":{backgroundColor:z},"&::after":{borderBottomWidth:u,borderBottomColor:D}}}}),[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${ie(p)} ${S} ${T}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:l},[`${n}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${ie(f)} solid ${i}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${x} ${b}`,`opacity ${x} ${b}`].join(","),content:'""'},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:$}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${x} ${g}`,`opacity ${x} ${g}`].join(",")}}}}}},KO=e=>{const{componentCls:t,itemHeight:n,itemMarginInline:r,padding:i,menuArrowSize:o,marginXS:a,itemMarginBlock:l,itemWidth:c,itemPaddingInline:u}=e,f=e.calc(o).add(i).add(a).equal();return{[`${t}-item`]:{position:"relative",overflow:"hidden"},[`${t}-item, ${t}-submenu-title`]:{height:n,lineHeight:ie(n),paddingInline:u,overflow:"hidden",textOverflow:"ellipsis",marginInline:r,marginBlock:l,width:c},[`> ${t}-item,
> ${t}-submenu > ${t}-submenu-title`]:{height:n,lineHeight:ie(n)},[`${t}-item-group-list ${t}-submenu-title,
${t}-submenu-title`]:{paddingInlineEnd:f}}},Mle=e=>{const{componentCls:t,iconCls:n,itemHeight:r,colorTextLightSolid:i,dropdownWidth:o,controlHeightLG:a,motionEaseOut:l,paddingXL:c,itemMarginInline:u,fontSizeLG:f,motionDurationFast:p,motionDurationSlow:m,paddingXS:g,boxShadowSecondary:b,collapsedWidth:E,collapsedIconSize:x}=e,C={height:r,lineHeight:ie(r),listStylePosition:"inside",listStyleType:"disc"};return[{[t]:{"&-inline, &-vertical":Object.assign({[`&${t}-root`]:{boxShadow:"none"}},KO(e))},[`${t}-submenu-popup`]:{[`${t}-vertical`]:Object.assign(Object.assign({},KO(e)),{boxShadow:b})}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:o,maxHeight:`calc(100vh - ${ie(e.calc(a).mul(2.5).equal())})`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${t}-inline`]:{width:"100%",[`&${t}-root`]:{[`${t}-item, ${t}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${m}`,`background ${m}`,`padding ${p} ${l}`].join(","),[`> ${t}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${t}-sub${t}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${t}-submenu > ${t}-submenu-title`]:C,[`& ${t}-item-group-title`]:{paddingInlineStart:c}},[`${t}-item`]:C}},{[`${t}-inline-collapsed`]:{width:E,[`&${t}-root`]:{[`${t}-item, ${t}-submenu ${t}-submenu-title`]:{[`> ${t}-inline-collapsed-noicon`]:{fontSize:f,textAlign:"center"}}},[`> ${t}-item,
> ${t}-item-group > ${t}-item-group-list > ${t}-item,
> ${t}-item-group > ${t}-item-group-list > ${t}-submenu > ${t}-submenu-title,
> ${t}-submenu > ${t}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${ie(e.calc(f).div(2).equal())} - ${ie(u)})`,textOverflow:"clip",[`
${t}-submenu-arrow,
${t}-submenu-expand-icon
`]:{opacity:0},[`${t}-item-icon, ${n}`]:{margin:0,fontSize:x,lineHeight:ie(r),"+ span":{display:"inline-block",opacity:0}}},[`${t}-item-icon, ${n}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${t}-item-icon, ${n}`]:{display:"none"},"a, a:hover":{color:i}},[`${t}-item-group-title`]:Object.assign(Object.assign({},al),{paddingInline:g})}}]},VO=e=>{const{componentCls:t,motionDurationSlow:n,motionDurationMid:r,motionEaseInOut:i,motionEaseOut:o,iconCls:a,iconSize:l,iconMarginInlineEnd:c}=e;return{[`${t}-item, ${t}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${n}`,`background ${n}`,`padding calc(${n} + 0.1s) ${i}`].join(","),[`${t}-item-icon, ${a}`]:{minWidth:l,fontSize:l,transition:[`font-size ${r} ${o}`,`margin ${n} ${i}`,`color ${n}`].join(","),"+ span":{marginInlineStart:c,opacity:1,transition:[`opacity ${n} ${i}`,`margin ${n}`,`color ${n}`].join(",")}},[`${t}-item-icon`]:Object.assign({},Tb()),[`&${t}-item-only-child`]:{[`> ${a}, > ${t}-item-icon`]:{marginInlineEnd:0}}},[`${t}-item-disabled, ${t}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${t}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},GO=e=>{const{componentCls:t,motionDurationSlow:n,motionEaseInOut:r,borderRadius:i,menuArrowSize:o,menuArrowOffset:a}=e;return{[`${t}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:e.margin,width:o,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${n} ${r}, opacity ${n}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:e.calc(o).mul(.6).equal(),height:e.calc(o).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:i,transition:[`background ${n} ${r}`,`transform ${n} ${r}`,`top ${n} ${r}`,`color ${n} ${r}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${ie(e.calc(a).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${ie(a)})`}}}}},Ple=e=>{const{antCls:t,componentCls:n,fontSize:r,motionDurationSlow:i,motionDurationMid:o,motionEaseInOut:a,paddingXS:l,padding:c,colorSplit:u,lineWidth:f,zIndexPopup:p,borderRadiusLG:m,subMenuItemBorderRadius:g,menuArrowSize:b,menuArrowOffset:E,lineType:x,groupTitleLineHeight:C,groupTitleFontSize:S}=e;return[{"":{[n]:Object.assign(Object.assign({},ll()),{"&-hidden":{display:"none"}})},[`${n}-submenu-hidden`]:{display:"none"}},{[n]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Fn(e)),ll()),{marginBottom:0,paddingInlineStart:0,fontSize:r,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${i} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${n}-item`]:{flex:"none"}},[`${n}-item, ${n}-submenu, ${n}-submenu-title`]:{borderRadius:e.itemBorderRadius},[`${n}-item-group-title`]:{padding:`${ie(l)} ${ie(c)}`,fontSize:S,lineHeight:C,transition:`all ${i}`},[`&-horizontal ${n}-submenu`]:{transition:[`border-color ${i} ${a}`,`background ${i} ${a}`].join(",")},[`${n}-submenu, ${n}-submenu-inline`]:{transition:[`border-color ${i} ${a}`,`background ${i} ${a}`,`padding ${o} ${a}`].join(",")},[`${n}-submenu ${n}-sub`]:{cursor:"initial",transition:[`background ${i} ${a}`,`padding ${i} ${a}`].join(",")},[`${n}-title-content`]:{transition:`color ${i}`,"&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},[`> ${t}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"},[`${n}-item-extra`]:{marginInlineStart:"auto",paddingInlineStart:e.padding,fontSize:e.fontSizeSM}},[`${n}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${n}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:u,borderStyle:x,borderWidth:0,borderTopWidth:f,marginBlock:f,padding:0,"&-dashed":{borderStyle:"dashed"}}}),VO(e)),{[`${n}-item-group`]:{[`${n}-item-group-list`]:{margin:0,padding:0,[`${n}-item, ${n}-submenu-title`]:{paddingInline:`${ie(e.calc(r).mul(2).equal())} ${ie(c)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:p,borderRadius:m,boxShadow:"none",transformOrigin:"0 0",[`&${n}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:0,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'},[`> ${n}`]:Object.assign(Object.assign(Object.assign({borderRadius:m},VO(e)),GO(e)),{[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:g},[`${n}-submenu-title::after`]:{transition:`transform ${i} ${a}`}})},"\n &-placement-leftTop,\n &-placement-bottomRight,\n ":{transformOrigin:"100% 0"},"\n &-placement-leftBottom,\n &-placement-topRight,\n ":{transformOrigin:"100% 100%"},"\n &-placement-rightBottom,\n &-placement-topLeft,\n ":{transformOrigin:"0 100%"},"\n &-placement-bottomLeft,\n &-placement-rightTop,\n ":{transformOrigin:"0 0"},"\n &-placement-leftTop,\n &-placement-leftBottom\n ":{paddingInlineEnd:e.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:e.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:e.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:e.paddingXS}}}),GO(e)),{[`&-inline-collapsed ${n}-submenu-arrow,
&-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${ie(E)})`},"&::after":{transform:`rotate(45deg) translateX(${ie(e.calc(E).mul(-1).equal())})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(${ie(e.calc(b).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${ie(e.calc(E).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${ie(E)})`}}})},{[`${t}-layout-header`]:{[n]:{lineHeight:"inherit"}}}]},Lle=e=>{var t,n,r;const{colorPrimary:i,colorError:o,colorTextDisabled:a,colorErrorBg:l,colorText:c,colorTextDescription:u,colorBgContainer:f,colorFillAlter:p,colorFillContent:m,lineWidth:g,lineWidthBold:b,controlItemBgActive:E,colorBgTextHover:x,controlHeightLG:C,lineHeight:S,colorBgElevated:T,marginXXS:O,padding:I,fontSize:_,controlHeightSM:$,fontSizeLG:k,colorTextLightSolid:R,colorErrorHover:M}=e,H=(t=e.activeBarWidth)!==null&&t!==void 0?t:0,B=(n=e.activeBarBorderWidth)!==null&&n!==void 0?n:g,L=(r=e.itemMarginInline)!==null&&r!==void 0?r:e.marginXXS,D=new er(R).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:e.zIndexPopupBase+50,radiusItem:e.borderRadiusLG,itemBorderRadius:e.borderRadiusLG,radiusSubMenuItem:e.borderRadiusSM,subMenuItemBorderRadius:e.borderRadiusSM,colorItemText:c,itemColor:c,colorItemTextHover:c,itemHoverColor:c,colorItemTextHoverHorizontal:i,horizontalItemHoverColor:i,colorGroupTitle:u,groupTitleColor:u,colorItemTextSelected:i,itemSelectedColor:i,colorItemTextSelectedHorizontal:i,horizontalItemSelectedColor:i,colorItemBg:f,itemBg:f,colorItemBgHover:x,itemHoverBg:x,colorItemBgActive:m,itemActiveBg:E,colorSubItemBg:p,subMenuItemBg:p,colorItemBgSelected:E,itemSelectedBg:E,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:H,colorActiveBarHeight:b,activeBarHeight:b,colorActiveBarBorderSize:g,activeBarBorderWidth:B,colorItemTextDisabled:a,itemDisabledColor:a,colorDangerItemText:o,dangerItemColor:o,colorDangerItemTextHover:o,dangerItemHoverColor:o,colorDangerItemTextSelected:o,dangerItemSelectedColor:o,colorDangerItemBgActive:l,dangerItemActiveBg:l,colorDangerItemBgSelected:l,dangerItemSelectedBg:l,itemMarginInline:L,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:C,groupTitleLineHeight:S,collapsedWidth:C*2,popupBg:T,itemMarginBlock:O,itemPaddingInline:I,horizontalLineHeight:`${C*1.15}px`,iconSize:_,iconMarginInlineEnd:$-_,collapsedIconSize:k,groupTitleFontSize:_,darkItemDisabledColor:new er(R).setAlpha(.25).toRgbString(),darkItemColor:D,darkDangerItemColor:o,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:R,darkItemSelectedBg:i,darkDangerItemSelectedBg:o,darkItemHoverBg:"transparent",darkGroupTitleColor:D,darkItemHoverColor:R,darkDangerItemHoverColor:M,darkDangerItemSelectedColor:R,darkDangerItemActiveBg:o,itemWidth:H?`calc(100% + ${B}px)`:`calc(100% - ${L*2}px)`}},Dle=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return Mn("Menu",i=>{const{colorBgElevated:o,controlHeightLG:a,fontSize:l,darkItemColor:c,darkDangerItemColor:u,darkItemBg:f,darkSubMenuItemBg:p,darkItemSelectedColor:m,darkItemSelectedBg:g,darkDangerItemSelectedBg:b,darkItemHoverBg:E,darkGroupTitleColor:x,darkItemHoverColor:C,darkItemDisabledColor:S,darkDangerItemHoverColor:T,darkDangerItemSelectedColor:O,darkDangerItemActiveBg:I,popupBg:_,darkPopupBg:$}=i,k=i.calc(l).div(7).mul(5).equal(),R=hn(i,{menuArrowSize:k,menuHorizontalHeight:i.calc(a).mul(1.15).equal(),menuArrowOffset:i.calc(k).mul(.25).equal(),menuSubMenuBg:o,calc:i.calc,popupBg:_}),M=hn(R,{itemColor:c,itemHoverColor:C,groupTitleColor:x,itemSelectedColor:m,itemBg:f,popupBg:$,subMenuItemBg:p,itemActiveBg:"transparent",itemSelectedBg:g,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:E,itemDisabledColor:S,dangerItemColor:u,dangerItemHoverColor:T,dangerItemSelectedColor:O,dangerItemActiveBg:I,dangerItemSelectedBg:b,menuSubMenuBg:p,horizontalItemSelectedColor:m,horizontalItemSelectedBg:g});return[Ple(R),kle(R),Mle(R),UO(R,"light"),UO(M,"dark"),Rle(R),Rb(R),wc(R,"slide-up"),wc(R,"slide-down"),Om(R,"zoom-big")]},Lle,{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]],injectStyle:n,unitless:{groupTitleLineHeight:!0}})(e,t)},BF=e=>{var t;const{popupClassName:n,icon:r,title:i,theme:o}=e,a=d.useContext(my),{prefixCls:l,inlineCollapsed:c,theme:u}=a,f=f1();let p;if(!r)p=c&&!f.length&&i&&typeof i=="string"?d.createElement("div",{className:`${l}-inline-collapsed-noicon`},i.charAt(0)):d.createElement("span",{className:`${l}-title-content`},i);else{const b=d.isValidElement(i)&&i.type==="span";p=d.createElement(d.Fragment,null,mi(r,{className:le(d.isValidElement(r)?(t=r.props)===null||t===void 0?void 0:t.className:"",`${l}-item-icon`)}),b?i:d.createElement("span",{className:`${l}-title-content`},i))}const m=d.useMemo(()=>Object.assign(Object.assign({},a),{firstLevel:!1}),[a]),[g]=xm("Menu");return d.createElement(my.Provider,{value:m},d.createElement(Kb,Object.assign({},tr(e,["icon"]),{title:p,popupClassName:le(l,n,`${l}-${o||u}`),popupStyle:Object.assign({zIndex:g},e.popupStyle)})))};var Fle=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function P4(e){return e===null||e===!1}const Ble={item:DF,submenu:BF,divider:LF},jle=d.forwardRef((e,t)=>{var n;const r=d.useContext(gy),i=r||{},{getPrefixCls:o,getPopupContainer:a,direction:l,menu:c}=d.useContext(At),u=o(),{prefixCls:f,className:p,style:m,theme:g="light",expandIcon:b,_internalDisableMenuItemTitleTooltip:E,inlineCollapsed:x,siderCollapsed:C,rootClassName:S,mode:T,selectable:O,onClick:I,overflowedIndicatorPopupClassName:_}=e,$=Fle(e,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),k=tr($,["collapsedWidth"]);(n=i.validator)===null||n===void 0||n.call(i,{mode:T});const R=Hn(function(){var Z;I==null||I.apply(void 0,arguments),(Z=i.onClick)===null||Z===void 0||Z.call(i)}),M=i.mode||T,H=O??i.selectable,B=d.useMemo(()=>C!==void 0?C:x,[x,C]),L={horizontal:{motionName:`${u}-slide-up`},inline:Xp(u),other:{motionName:`${u}-zoom-big`}},D=o("menu",f||i.prefixCls),z=Kr(D),[W,j,U]=Dle(D,z,!r),q=le(`${D}-${g}`,c==null?void 0:c.className,p),A=d.useMemo(()=>{var Z,V;if(typeof b=="function"||P4(b))return b||null;if(typeof i.expandIcon=="function"||P4(i.expandIcon))return i.expandIcon||null;if(typeof(c==null?void 0:c.expandIcon)=="function"||P4(c==null?void 0:c.expandIcon))return(c==null?void 0:c.expandIcon)||null;const Y=(Z=b??(i==null?void 0:i.expandIcon))!==null&&Z!==void 0?Z:c==null?void 0:c.expandIcon;return mi(Y,{className:le(`${D}-submenu-expand-icon`,d.isValidElement(Y)?(V=Y.props)===null||V===void 0?void 0:V.className:void 0)})},[b,i==null?void 0:i.expandIcon,c==null?void 0:c.expandIcon,D]),P=d.useMemo(()=>({prefixCls:D,inlineCollapsed:B||!1,direction:l,firstLevel:!0,theme:g,mode:M,disableMenuItemTitleTooltip:E}),[D,B,l,E,g]);return W(d.createElement(gy.Provider,{value:null},d.createElement(my.Provider,{value:P},d.createElement(h1,Object.assign({getPopupContainer:a,overflowedIndicator:d.createElement(Z8,null),overflowedIndicatorPopupClassName:le(D,`${D}-${g}`,_),mode:M,selectable:H,onClick:R},k,{inlineCollapsed:B,style:Object.assign(Object.assign({},c==null?void 0:c.style),m),className:q,prefixCls:D,direction:l,defaultMotions:L,expandIcon:A,ref:t,rootClassName:le(S,j,i.rootClassName,U,z),_internalComponents:Ble})))))}),qu=d.forwardRef((e,t)=>{const n=d.useRef(null),r=d.useContext(Vb);return d.useImperativeHandle(t,()=>({menu:n.current,focus:i=>{var o;(o=n.current)===null||o===void 0||o.focus(i)}})),d.createElement(jle,Object.assign({ref:n},e,r))});qu.Item=DF;qu.SubMenu=BF;qu.Divider=LF;qu.ItemGroup=Q8;const Hle=e=>{const{componentCls:t,menuCls:n,colorError:r,colorTextLightSolid:i}=e,o=`${n}-item`;return{[`${t}, ${t}-menu-submenu`]:{[`${n} ${o}`]:{[`&${o}-danger:not(${o}-disabled)`]:{color:r,"&:hover":{color:i,backgroundColor:r}}}}}},zle=e=>{const{componentCls:t,menuCls:n,zIndexPopup:r,dropdownArrowDistance:i,sizePopupArrow:o,antCls:a,iconCls:l,motionDurationMid:c,paddingBlock:u,fontSize:f,dropdownEdgeChildPadding:p,colorTextDisabled:m,fontSizeIcon:g,controlPaddingHorizontal:b,colorBgElevated:E}=e;return[{[t]:{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:r,display:"block","&::before":{position:"absolute",insetBlock:e.calc(o).div(2).sub(i).equal(),zIndex:-9999,opacity:1e-4,content:'""'},"&-menu-vertical":{maxHeight:"100vh",overflowY:"auto"},[`&-trigger${a}-btn`]:{[`& > ${l}-down, & > ${a}-btn-icon > ${l}-down`]:{fontSize:g}},[`${t}-wrap`]:{position:"relative",[`${a}-btn > ${l}-down`]:{fontSize:g},[`${l}-down::before`]:{transition:`transform ${c}`}},[`${t}-wrap-open`]:{[`${l}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottomLeft,
&${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottomLeft,
&${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottom,
&${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottom,
&${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottomRight,
&${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottomRight`]:{animationName:m8},[`&${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-topLeft,
&${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-topLeft,
&${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-top,
&${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-top,
&${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-topRight,
&${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-topRight`]:{animationName:v8},[`&${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottomLeft,
&${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottom,
&${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottomRight`]:{animationName:g8},[`&${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-topLeft,
&${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-top,
&${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-topRight`]:{animationName:y8}}},U8(e,E,{arrowPlacement:{top:!0,bottom:!0}}),{[`${t} ${n}`]:{position:"relative",margin:0},[`${n}-submenu-popup`]:{position:"absolute",zIndex:r,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${t}, ${t}-menu-submenu`]:Object.assign(Object.assign({},Fn(e)),{[n]:Object.assign(Object.assign({padding:p,listStyleType:"none",backgroundColor:E,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary},ms(e)),{"&:empty":{padding:0,boxShadow:"none"},[`${n}-item-group-title`]:{padding:`${ie(u)} ${ie(b)}`,color:e.colorTextDescription,transition:`all ${c}`},[`${n}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${n}-item-icon`]:{minWidth:f,marginInlineEnd:e.marginXS,fontSize:e.fontSizeSM},[`${n}-title-content`]:{flex:"auto","&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},"> a":{color:"inherit",transition:`all ${c}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}},[`${n}-item-extra`]:{paddingInlineStart:e.padding,marginInlineStart:"auto",fontSize:e.fontSizeSM,color:e.colorTextDescription}},[`${n}-item, ${n}-submenu-title`]:Object.assign(Object.assign({display:"flex",margin:0,padding:`${ie(u)} ${ie(b)}`,color:e.colorText,fontWeight:"normal",fontSize:f,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${c}`,borderRadius:e.borderRadiusSM,"&:hover, &-active":{backgroundColor:e.controlItemBgHover}},ms(e)),{"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:m,cursor:"not-allowed","&:hover":{color:m,backgroundColor:E,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${ie(e.marginXXS)} 0`,overflow:"hidden",lineHeight:0,backgroundColor:e.colorSplit},[`${t}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:e.paddingXS,[`${t}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:e.colorTextDescription,fontSize:g,fontStyle:"normal"}}}),[`${n}-item-group-list`]:{margin:`0 ${ie(e.marginXS)}`,padding:0,listStyle:"none"},[`${n}-submenu-title`]:{paddingInlineEnd:e.calc(b).add(e.fontSizeSM).equal()},[`${n}-submenu-vertical`]:{position:"relative"},[`${n}-submenu${n}-submenu-disabled ${t}-menu-submenu-title`]:{[`&, ${t}-menu-submenu-arrow-icon`]:{color:m,backgroundColor:E,cursor:"not-allowed"}},[`${n}-submenu-selected ${t}-menu-submenu-title`]:{color:e.colorPrimary}})})},[wc(e,"slide-up"),wc(e,"slide-down"),sy(e,"move-up"),sy(e,"move-down"),Om(e,"zoom-big")]]},Wle=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+50,paddingBlock:(e.controlHeight-e.fontSize*e.lineHeight)/2},Wb({contentRadius:e.borderRadiusLG,limitVerticalRadius:!0})),W8(e)),Ule=Mn("Dropdown",e=>{const{marginXXS:t,sizePopupArrow:n,paddingXXS:r,componentCls:i}=e,o=hn(e,{menuCls:`${i}-menu`,dropdownArrowDistance:e.calc(n).div(2).add(t).equal(),dropdownEdgeChildPadding:r});return[zle(o),Hle(o)]},Wle,{resetStyle:!1}),Rm=e=>{var t;const{menu:n,arrow:r,prefixCls:i,children:o,trigger:a,disabled:l,dropdownRender:c,getPopupContainer:u,overlayClassName:f,rootClassName:p,overlayStyle:m,open:g,onOpenChange:b,visible:E,onVisibleChange:x,mouseEnterDelay:C=.15,mouseLeaveDelay:S=.1,autoAdjustOverflow:T=!0,placement:O="",overlay:I,transitionName:_}=e,{getPopupContainer:$,getPrefixCls:k,direction:R,dropdown:M}=d.useContext(At);Mc();const H=d.useMemo(()=>{const oe=k();return _!==void 0?_:O.includes("top")?`${oe}-slide-down`:`${oe}-slide-up`},[k,O,_]),B=d.useMemo(()=>O?O.includes("Center")?O.slice(0,O.indexOf("Center")):O:R==="rtl"?"bottomRight":"bottomLeft",[O,R]),L=k("dropdown",i),D=Kr(L),[z,W,j]=Ule(L,D),[,U]=Bi(),q=d.Children.only(o),A=mi(q,{className:le(`${L}-trigger`,{[`${L}-rtl`]:R==="rtl"},q.props.className),disabled:(t=q.props.disabled)!==null&&t!==void 0?t:l}),P=l?[]:a,Z=!!(P!=null&&P.includes("contextMenu")),[V,Y]=Tr(!1,{value:g??E}),ee=Hn(oe=>{b==null||b(oe,{source:"trigger"}),x==null||x(oe),Y(oe)}),ue=le(f,p,W,j,D,M==null?void 0:M.className,{[`${L}-rtl`]:R==="rtl"}),ne=uF({arrowPointAtCenter:typeof r=="object"&&r.pointAtCenter,autoAdjustOverflow:T,offset:U.marginXXS,arrowWidth:r?U.sizePopupArrow:0,borderRadius:U.borderRadius}),se=d.useCallback(()=>{n!=null&&n.selectable&&(n!=null&&n.multiple)||(b==null||b(!1,{source:"menu"}),Y(!1))},[n==null?void 0:n.selectable,n==null?void 0:n.multiple]),me=()=>{let oe;return n!=null&&n.items?oe=d.createElement(qu,Object.assign({},n)):typeof I=="function"?oe=I():oe=I,c&&(oe=c(oe)),oe=d.Children.only(typeof oe=="string"?d.createElement("span",null,oe):oe),d.createElement(FF,{prefixCls:`${L}-menu`,rootClassName:le(j,D),expandIcon:d.createElement("span",{className:`${L}-menu-submenu-arrow`},d.createElement(Qp,{className:`${L}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:se,validator:pe=>{}},oe)},[ye,de]=xm("Dropdown",m==null?void 0:m.zIndex);let ce=d.createElement(yF,Object.assign({alignPoint:Z},tr(e,["rootClassName"]),{mouseEnterDelay:C,mouseLeaveDelay:S,visible:V,builtinPlacements:ne,arrow:!!r,overlayClassName:ue,prefixCls:L,getPopupContainer:u||$,transitionName:H,trigger:P,overlay:me,placement:B,onVisibleChange:ee,overlayStyle:Object.assign(Object.assign(Object.assign({},M==null?void 0:M.style),m),{zIndex:ye})}),A);return ye&&(ce=d.createElement(Ob.Provider,{value:de},ce)),z(ce)};function Kle(e){return Object.assign(Object.assign({},e),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const Vle=jD(Rm,"dropdown",e=>e,Kle),Gle=e=>d.createElement(Vle,Object.assign({},e),d.createElement("span",null));Rm._InternalPanelDoNotUseOrYouWillBeFired=Gle;const Gb=e=>{let{children:t}=e;const{getPrefixCls:n}=d.useContext(At),r=n("breadcrumb");return d.createElement("li",{className:`${r}-separator`,"aria-hidden":"true"},t===""?t:t||"/")};Gb.__ANT_BREADCRUMB_SEPARATOR=!0;var qle=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function Xle(e,t){if(e.title===void 0||e.title===null)return null;const n=Object.keys(t).join("|");return typeof e.title=="object"?e.title:String(e.title).replace(new RegExp(`:(${n})`,"g"),(r,i)=>t[i]||r)}function jF(e,t,n,r){if(n==null)return null;const{className:i,onClick:o}=t,a=qle(t,["className","onClick"]),l=Object.assign(Object.assign({},_i(a,{data:!0,aria:!0})),{onClick:o});return r!==void 0?d.createElement("a",Object.assign({},l,{className:le(`${e}-link`,i),href:r}),n):d.createElement("span",Object.assign({},l,{className:le(`${e}-link`,i)}),n)}function Yle(e,t){return(r,i,o,a,l)=>{if(t)return t(r,i,o,a);const c=Xle(r,i);return jF(e,r,c,l)}}var cE=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const HF=e=>{const{prefixCls:t,separator:n="/",children:r,menu:i,overlay:o,dropdownProps:a,href:l}=e,u=(f=>{if(i||o){const p=Object.assign({},a);if(i){const m=i||{},{items:g}=m,b=cE(m,["items"]);p.menu=Object.assign(Object.assign({},b),{items:g==null?void 0:g.map((E,x)=>{var{key:C,title:S,label:T,path:O}=E,I=cE(E,["key","title","label","path"]);let _=T??S;return O&&(_=d.createElement("a",{href:`${l}${O}`},_)),Object.assign(Object.assign({},I),{key:C??x,label:_})})})}else o&&(p.overlay=o);return d.createElement(Rm,Object.assign({placement:"bottom"},p),d.createElement("span",{className:`${t}-overlay-link`},f,d.createElement(B8,null)))}return f})(r);return u!=null?d.createElement(d.Fragment,null,d.createElement("li",null,u),n&&d.createElement(Gb,null,n)):null},zF=e=>{const{prefixCls:t,children:n,href:r}=e,i=cE(e,["prefixCls","children","href"]),{getPrefixCls:o}=d.useContext(At),a=o("breadcrumb",t);return d.createElement(HF,Object.assign({},i,{prefixCls:a}),jF(a,i,n,r))};zF.__ANT_BREADCRUMB_ITEM=!0;const Qle=e=>{const{componentCls:t,iconCls:n,calc:r}=e;return{[t]:Object.assign(Object.assign({},Fn(e)),{color:e.itemColor,fontSize:e.fontSize,[n]:{fontSize:e.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:Object.assign({color:e.linkColor,transition:`color ${e.motionDurationMid}`,padding:`0 ${ie(e.paddingXXS)}`,borderRadius:e.borderRadiusSM,height:e.fontHeight,display:"inline-block",marginInline:r(e.marginXXS).mul(-1).equal(),"&:hover":{color:e.linkHoverColor,backgroundColor:e.colorBgTextHover}},ms(e)),"li:last-child":{color:e.lastItemColor},[`${t}-separator`]:{marginInline:e.separatorMargin,color:e.separatorColor},[`${t}-link`]:{[`
> ${n} + span,
> ${n} + a
`]:{marginInlineStart:e.marginXXS}},[`${t}-overlay-link`]:{borderRadius:e.borderRadiusSM,height:e.fontHeight,display:"inline-block",padding:`0 ${ie(e.paddingXXS)}`,marginInline:r(e.marginXXS).mul(-1).equal(),[`> ${n}`]:{marginInlineStart:e.marginXXS,fontSize:e.fontSizeIcon},"&:hover":{color:e.linkHoverColor,backgroundColor:e.colorBgTextHover,a:{color:e.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${e.componentCls}-rtl`]:{direction:"rtl"}})}},Zle=e=>({itemColor:e.colorTextDescription,lastItemColor:e.colorText,iconFontSize:e.fontSize,linkColor:e.colorTextDescription,linkHoverColor:e.colorText,separatorColor:e.colorTextDescription,separatorMargin:e.marginXS}),Jle=Mn("Breadcrumb",e=>{const t=hn(e,{});return Qle(t)},Zle);var qO=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function ese(e){const{breadcrumbName:t,children:n}=e,r=qO(e,["breadcrumbName","children"]),i=Object.assign({title:t},r);return n&&(i.menu={items:n.map(o=>{var{breadcrumbName:a}=o,l=qO(o,["breadcrumbName"]);return Object.assign(Object.assign({},l),{title:a})})}),i}function tse(e,t){return d.useMemo(()=>e||(t?t.map(ese):null),[e,t])}var nse=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const rse=(e,t)=>{if(t===void 0)return t;let n=(t||"").replace(/^\//,"");return Object.keys(e).forEach(r=>{n=n.replace(`:${r}`,e[r])}),n},J8=e=>{const{prefixCls:t,separator:n="/",style:r,className:i,rootClassName:o,routes:a,items:l,children:c,itemRender:u,params:f={}}=e,p=nse(e,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:m,direction:g,breadcrumb:b}=d.useContext(At);let E;const x=m("breadcrumb",t),[C,S,T]=Jle(x),O=tse(l,a),I=Yle(x,u);if(O&&O.length>0){const k=[],R=l||a;E=O.map((M,H)=>{const{path:B,key:L,type:D,menu:z,overlay:W,onClick:j,className:U,separator:q,dropdownProps:A}=M,P=rse(f,B);P!==void 0&&k.push(P);const Z=L??H;if(D==="separator")return d.createElement(Gb,{key:Z},q);const V={},Y=H===O.length-1;z?V.menu=z:W&&(V.overlay=W);let{href:ee}=M;return k.length&&P!==void 0&&(ee=`#/${k.join("/")}`),d.createElement(HF,Object.assign({key:Z},V,_i(M,{data:!0,aria:!0}),{className:U,dropdownProps:A,href:ee,separator:Y?"":n,onClick:j,prefixCls:x}),I(M,f,R,k,ee))})}else if(c){const k=ri(c).length;E=ri(c).map((R,M)=>{if(!R)return R;const H=M===k-1;return mi(R,{separator:H?"":n,key:M})})}const _=le(x,b==null?void 0:b.className,{[`${x}-rtl`]:g==="rtl"},i,o,S,T),$=Object.assign(Object.assign({},b==null?void 0:b.style),r);return C(d.createElement("nav",Object.assign({className:_,style:$},p),d.createElement("ol",null,E)))};J8.Item=zF;J8.Separator=Gb;const WF=d.createContext(null),ise=WF.Provider,UF=d.createContext(null),ose=UF.Provider;var ase=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],KF=d.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-checkbox":n,i=e.className,o=e.style,a=e.checked,l=e.disabled,c=e.defaultChecked,u=c===void 0?!1:c,f=e.type,p=f===void 0?"checkbox":f,m=e.title,g=e.onChange,b=Gt(e,ase),E=d.useRef(null),x=d.useRef(null),C=Tr(u,{value:a}),S=Oe(C,2),T=S[0],O=S[1];d.useImperativeHandle(t,function(){return{focus:function(k){var R;(R=E.current)===null||R===void 0||R.focus(k)},blur:function(){var k;(k=E.current)===null||k===void 0||k.blur()},input:E.current,nativeElement:x.current}});var I=le(r,i,J(J({},"".concat(r,"-checked"),T),"".concat(r,"-disabled"),l)),_=function(k){l||("checked"in e||O(k.target.checked),g==null||g({target:te(te({},e),{},{type:p,checked:k.target.checked}),stopPropagation:function(){k.stopPropagation()},preventDefault:function(){k.preventDefault()},nativeEvent:k.nativeEvent}))};return d.createElement("span",{className:I,title:m,style:o,ref:x},d.createElement("input",ze({},b,{className:"".concat(r,"-input"),ref:E,onChange:_,disabled:l,checked:!!T,type:p})),d.createElement("span",{className:"".concat(r,"-inner")}))});const lse=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-group`;return{[r]:Object.assign(Object.assign({},Fn(e)),{display:"inline-block",fontSize:0,[`&${r}-rtl`]:{direction:"rtl"},[`&${r}-block`]:{display:"flex"},[`${n}-badge ${n}-badge-count`]:{zIndex:1},[`> ${n}-badge:not(:first-child) > ${n}-button-wrapper`]:{borderInlineStart:"none"}})}},sse=e=>{const{componentCls:t,wrapperMarginInlineEnd:n,colorPrimary:r,radioSize:i,motionDurationSlow:o,motionDurationMid:a,motionEaseInOutCirc:l,colorBgContainer:c,colorBorder:u,lineWidth:f,colorBgContainerDisabled:p,colorTextDisabled:m,paddingXS:g,dotColorDisabled:b,lineType:E,radioColor:x,radioBgColor:C,calc:S}=e,T=`${t}-inner`,I=S(i).sub(S(4).mul(2)),_=S(1).mul(i).equal({unit:!0});return{[`${t}-wrapper`]:Object.assign(Object.assign({},Fn(e)),{display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:n,cursor:"pointer",[`&${t}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:e.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},"&-block":{flex:1,justifyContent:"center"},[`${t}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${ie(f)} ${E} ${r}`,borderRadius:"50%",visibility:"hidden",opacity:0,content:'""'},[t]:Object.assign(Object.assign({},Fn(e)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${t}-wrapper:hover &,
&:hover ${T}`]:{borderColor:r},[`${t}-input:focus-visible + ${T}`]:Object.assign({},Sc(e)),[`${t}:hover::after, ${t}-wrapper:hover &::after`]:{visibility:"visible"},[`${t}-inner`]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:_,height:_,marginBlockStart:S(1).mul(i).div(-2).equal({unit:!0}),marginInlineStart:S(1).mul(i).div(-2).equal({unit:!0}),backgroundColor:x,borderBlockStart:0,borderInlineStart:0,borderRadius:_,transform:"scale(0)",opacity:0,transition:`all ${o} ${l}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:_,height:_,backgroundColor:c,borderColor:u,borderStyle:"solid",borderWidth:f,borderRadius:"50%",transition:`all ${a}`},[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},[`${t}-checked`]:{[T]:{borderColor:r,backgroundColor:C,"&::after":{transform:`scale(${e.calc(e.dotSize).div(i).equal()})`,opacity:1,transition:`all ${o} ${l}`}}},[`${t}-disabled`]:{cursor:"not-allowed",[T]:{backgroundColor:p,borderColor:u,cursor:"not-allowed","&::after":{backgroundColor:b}},[`${t}-input`]:{cursor:"not-allowed"},[`${t}-disabled + span`]:{color:m,cursor:"not-allowed"},[`&${t}-checked`]:{[T]:{"&::after":{transform:`scale(${S(I).div(i).equal()})`}}}},[`span${t} + *`]:{paddingInlineStart:g,paddingInlineEnd:g}})}},cse=e=>{const{buttonColor:t,controlHeight:n,componentCls:r,lineWidth:i,lineType:o,colorBorder:a,motionDurationSlow:l,motionDurationMid:c,buttonPaddingInline:u,fontSize:f,buttonBg:p,fontSizeLG:m,controlHeightLG:g,controlHeightSM:b,paddingXS:E,borderRadius:x,borderRadiusSM:C,borderRadiusLG:S,buttonCheckedBg:T,buttonSolidCheckedColor:O,colorTextDisabled:I,colorBgContainerDisabled:_,buttonCheckedBgDisabled:$,buttonCheckedColorDisabled:k,colorPrimary:R,colorPrimaryHover:M,colorPrimaryActive:H,buttonSolidCheckedBg:B,buttonSolidCheckedHoverBg:L,buttonSolidCheckedActiveBg:D,calc:z}=e;return{[`${r}-button-wrapper`]:{position:"relative",display:"inline-block",height:n,margin:0,paddingInline:u,paddingBlock:0,color:t,fontSize:f,lineHeight:ie(z(n).sub(z(i).mul(2)).equal()),background:p,border:`${ie(i)} ${o} ${a}`,borderBlockStartWidth:z(i).add(.02).equal(),borderInlineStartWidth:0,borderInlineEndWidth:i,cursor:"pointer",transition:[`color ${c}`,`background ${c}`,`box-shadow ${c}`].join(","),a:{color:t},[`> ${r}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:first-child)":{"&::before":{position:"absolute",insetBlockStart:z(i).mul(-1).equal(),insetInlineStart:z(i).mul(-1).equal(),display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:i,paddingInline:0,backgroundColor:a,transition:`background-color ${l}`,content:'""'}},"&:first-child":{borderInlineStart:`${ie(i)} ${o} ${a}`,borderStartStartRadius:x,borderEndStartRadius:x},"&:last-child":{borderStartEndRadius:x,borderEndEndRadius:x},"&:first-child:last-child":{borderRadius:x},[`${r}-group-large &`]:{height:g,fontSize:m,lineHeight:ie(z(g).sub(z(i).mul(2)).equal()),"&:first-child":{borderStartStartRadius:S,borderEndStartRadius:S},"&:last-child":{borderStartEndRadius:S,borderEndEndRadius:S}},[`${r}-group-small &`]:{height:b,paddingInline:z(E).sub(i).equal(),paddingBlock:0,lineHeight:ie(z(b).sub(z(i).mul(2)).equal()),"&:first-child":{borderStartStartRadius:C,borderEndStartRadius:C},"&:last-child":{borderStartEndRadius:C,borderEndEndRadius:C}},"&:hover":{position:"relative",color:R},"&:has(:focus-visible)":Object.assign({},Sc(e)),[`${r}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${r}-button-wrapper-disabled)`]:{zIndex:1,color:R,background:T,borderColor:R,"&::before":{backgroundColor:R},"&:first-child":{borderColor:R},"&:hover":{color:M,borderColor:M,"&::before":{backgroundColor:M}},"&:active":{color:H,borderColor:H,"&::before":{backgroundColor:H}}},[`${r}-group-solid &-checked:not(${r}-button-wrapper-disabled)`]:{color:O,background:B,borderColor:B,"&:hover":{color:O,background:L,borderColor:L},"&:active":{color:O,background:D,borderColor:D}},"&-disabled":{color:I,backgroundColor:_,borderColor:a,cursor:"not-allowed","&:first-child, &:hover":{color:I,backgroundColor:_,borderColor:a}},[`&-disabled${r}-button-wrapper-checked`]:{color:k,backgroundColor:$,borderColor:a,boxShadow:"none"},"&-block":{flex:1,textAlign:"center"}}}},use=e=>{const{wireframe:t,padding:n,marginXS:r,lineWidth:i,fontSizeLG:o,colorText:a,colorBgContainer:l,colorTextDisabled:c,controlItemBgActiveDisabled:u,colorTextLightSolid:f,colorPrimary:p,colorPrimaryHover:m,colorPrimaryActive:g,colorWhite:b}=e,E=4,x=o,C=t?x-E*2:x-(E+i)*2;return{radioSize:x,dotSize:C,dotColorDisabled:c,buttonSolidCheckedColor:f,buttonSolidCheckedBg:p,buttonSolidCheckedHoverBg:m,buttonSolidCheckedActiveBg:g,buttonBg:l,buttonCheckedBg:l,buttonColor:a,buttonCheckedBgDisabled:u,buttonCheckedColorDisabled:c,buttonPaddingInline:n-i,wrapperMarginInlineEnd:r,radioColor:t?p:b,radioBgColor:t?l:p}},VF=Mn("Radio",e=>{const{controlOutline:t,controlOutlineWidth:n}=e,r=`0 0 0 ${ie(n)} ${t}`,o=hn(e,{radioFocusShadow:r,radioButtonFocusShadow:r});return[lse(o),sse(o),cse(o)]},use,{unitless:{radioSize:!0,dotSize:!0}});var dse=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const fse=(e,t)=>{var n,r;const i=d.useContext(WF),o=d.useContext(UF),{getPrefixCls:a,direction:l,radio:c}=d.useContext(At),u=d.useRef(null),f=eo(t,u),{isFormItemInput:p}=d.useContext(fo),m=D=>{var z,W;(z=e.onChange)===null||z===void 0||z.call(e,D),(W=i==null?void 0:i.onChange)===null||W===void 0||W.call(i,D)},{prefixCls:g,className:b,rootClassName:E,children:x,style:C,title:S}=e,T=dse(e,["prefixCls","className","rootClassName","children","style","title"]),O=a("radio",g),I=((i==null?void 0:i.optionType)||o)==="button",_=I?`${O}-button`:O,$=Kr(O),[k,R,M]=VF(O,$),H=Object.assign({},T),B=d.useContext($a);i&&(H.name=i.name,H.onChange=m,H.checked=e.value===i.value,H.disabled=(n=H.disabled)!==null&&n!==void 0?n:i.disabled),H.disabled=(r=H.disabled)!==null&&r!==void 0?r:B;const L=le(`${_}-wrapper`,{[`${_}-wrapper-checked`]:H.checked,[`${_}-wrapper-disabled`]:H.disabled,[`${_}-wrapper-rtl`]:l==="rtl",[`${_}-wrapper-in-form-item`]:p,[`${_}-wrapper-block`]:!!(i!=null&&i.block)},c==null?void 0:c.className,b,E,R,M,$);return k(d.createElement(Nb,{component:"Radio",disabled:H.disabled},d.createElement("label",{className:L,style:Object.assign(Object.assign({},c==null?void 0:c.style),C),onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,title:S},d.createElement(KF,Object.assign({},H,{className:le(H.className,{[$b]:!I}),type:"radio",prefixCls:_,ref:f})),x!==void 0?d.createElement("span",null,x):null)))},vy=d.forwardRef(fse),hse=d.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=d.useContext(At),{prefixCls:i,className:o,rootClassName:a,options:l,buttonStyle:c="outline",disabled:u,children:f,size:p,style:m,id:g,optionType:b,name:E,defaultValue:x,value:C,block:S=!1,onChange:T,onMouseEnter:O,onMouseLeave:I,onFocus:_,onBlur:$}=e,[k,R]=Tr(x,{value:C}),M=d.useCallback(P=>{const Z=k,V=P.target.value;"value"in e||R(V),V!==Z&&(T==null||T(P))},[k,R,T]),H=n("radio",i),B=`${H}-group`,L=Kr(H),[D,z,W]=VF(H,L);let j=f;l&&l.length>0&&(j=l.map(P=>typeof P=="string"||typeof P=="number"?d.createElement(vy,{key:P.toString(),prefixCls:H,disabled:u,value:P,checked:k===P},P):d.createElement(vy,{key:`radio-group-value-options-${P.value}`,prefixCls:H,disabled:P.disabled||u,value:P.value,checked:k===P.value,title:P.title,style:P.style,id:P.id,required:P.required},P.label)));const U=vo(p),q=le(B,`${B}-${c}`,{[`${B}-${U}`]:U,[`${B}-rtl`]:r==="rtl",[`${B}-block`]:S},o,a,z,W,L),A=d.useMemo(()=>({onChange:M,value:k,disabled:u,name:E,optionType:b,block:S}),[M,k,u,E,b,S]);return D(d.createElement("div",Object.assign({},_i(e,{aria:!0,data:!0}),{className:q,style:m,onMouseEnter:O,onMouseLeave:I,onFocus:_,onBlur:$,id:g,ref:t}),d.createElement(ise,{value:A},j)))}),pse=d.memo(hse);var mse=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const gse=(e,t)=>{const{getPrefixCls:n}=d.useContext(At),{prefixCls:r}=e,i=mse(e,["prefixCls"]),o=n("radio",r);return d.createElement(ose,{value:"button"},d.createElement(vy,Object.assign({prefixCls:o},i,{type:"radio",ref:t})))},vse=d.forwardRef(gse),Ai=vy;Ai.Button=vse;Ai.Group=pse;Ai.__ANT_RADIO=!0;function e3(e){return hn(e,{inputAffixPadding:e.paddingXXS})}const t3=e=>{const{controlHeight:t,fontSize:n,lineHeight:r,lineWidth:i,controlHeightSM:o,controlHeightLG:a,fontSizeLG:l,lineHeightLG:c,paddingSM:u,controlPaddingHorizontalSM:f,controlPaddingHorizontal:p,colorFillAlter:m,colorPrimaryHover:g,colorPrimary:b,controlOutlineWidth:E,controlOutline:x,colorErrorOutline:C,colorWarningOutline:S,colorBgContainer:T}=e;return{paddingBlock:Math.max(Math.round((t-n*r)/2*10)/10-i,0),paddingBlockSM:Math.max(Math.round((o-n*r)/2*10)/10-i,0),paddingBlockLG:Math.ceil((a-l*c)/2*10)/10-i,paddingInline:u-i,paddingInlineSM:f-i,paddingInlineLG:p-i,addonBg:m,activeBorderColor:b,hoverBorderColor:g,activeShadow:`0 0 0 ${E}px ${x}`,errorActiveShadow:`0 0 0 ${E}px ${C}`,warningActiveShadow:`0 0 0 ${E}px ${S}`,hoverBg:T,activeBg:T,inputFontSize:n,inputFontSizeLG:l,inputFontSizeSM:n}},yse=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),qb=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"input[disabled], textarea[disabled]":{cursor:"not-allowed"},"&:hover:not([disabled])":Object.assign({},yse(hn(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),n3=(e,t)=>({background:e.colorBgContainer,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:t.borderColor,"&:hover":{borderColor:t.hoverBorderColor,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:t.activeBorderColor,boxShadow:t.activeShadow,outline:0,backgroundColor:e.activeBg}}),XO=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},n3(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),bse=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},n3(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},qb(e))}),XO(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),XO(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),YO=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),Cse=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${ie(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},YO(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),YO(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},qb(e))}})}),Sse=(e,t)=>{const{componentCls:n}=e;return{"&-borderless":Object.assign({background:"transparent",border:"none","&:focus, &:focus-within":{outline:"none"},[`&${n}-disabled, &[disabled]`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${n}-status-error`]:{"&, & input, & textarea":{color:e.colorError}},[`&${n}-status-warning`]:{"&, & input, & textarea":{color:e.colorWarning}}},t)}},GF=(e,t)=>({background:t.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:t==null?void 0:t.inputColor},"&:hover":{background:t.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:t.activeBorderColor,backgroundColor:e.activeBg}}),QO=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},GF(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),Ese=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},GF(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},qb(e))}),QO(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),QO(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),ZO=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),xse=e=>({"&-filled":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary},[`${e.componentCls}-filled:not(:focus):not(:focus-within)`]:{"&:not(:first-child)":{borderInlineStart:`${ie(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"&:not(:last-child)":{borderInlineEnd:`${ie(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}}}},ZO(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),ZO(e,{status:"warning",addonBg:e.colorWarningBg,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary,color:e.colorTextDisabled},"&-addon:first-child":{borderInlineStart:`${ie(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${ie(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${ie(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${ie(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${ie(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${ie(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),wse=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),qF=e=>{const{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:r,paddingInlineLG:i}=e;return{padding:`${ie(t)} ${ie(i)}`,fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:r}},r3=e=>({padding:`${ie(e.paddingBlockSM)} ${ie(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),i3=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${ie(e.paddingBlock)} ${ie(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},wse(e.colorTextPlaceholder)),{"textarea&":{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":Object.assign({},qF(e)),"&-sm":Object.assign({},r3(e)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),Tse=e=>{const{componentCls:t,antCls:n}=e;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:e.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${t}, &-lg > ${t}-group-addon`]:Object.assign({},qF(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},r3(e)),[`&-lg ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightLG},[`&-sm ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightSM},[`> ${t}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${t}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${ie(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`${ie(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${ie(e.calc(e.paddingInline).mul(-1).equal())}`,[`&${n}-select-single:not(${n}-select-customize-input):not(${n}-pagination-size-changer)`]:{[`${n}-select-selector`]:{backgroundColor:"inherit",border:`${ie(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}}},[`${n}-cascader-picker`]:{margin:`-9px ${ie(e.calc(e.paddingInline).mul(-1).equal())}`,backgroundColor:"transparent",[`${n}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}}},[t]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${t}-search-with-button &`]:{zIndex:0}}},[`> ${t}:first-child, ${t}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}-affix-wrapper`]:{[`&:not(:first-child) ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}:last-child, ${t}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${t}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${t}-search &`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius}},[`&:not(:first-child), ${t}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${t}-group-compact`]:Object.assign(Object.assign({display:"block"},ll()),{[`${t}-group-addon, ${t}-group-wrap, > ${t}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover, &:focus":{zIndex:1}}},"& > *":{display:"inline-flex",float:"none",verticalAlign:"top",borderRadius:0},[`
& > ${t}-affix-wrapper,
& > ${t}-number-affix-wrapper,
& > ${n}-picker-range
`]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderInlineEndWidth:e.lineWidth},[t]:{float:"none"},[`& > ${n}-select > ${n}-select-selector,
& > ${n}-select-auto-complete ${t},
& > ${n}-cascader-picker ${t},
& > ${t}-group-wrapper ${t}`]:{borderInlineEndWidth:e.lineWidth,borderRadius:0,"&:hover, &:focus":{zIndex:1}},[`& > ${n}-select-focused`]:{zIndex:1},[`& > ${n}-select > ${n}-select-arrow`]:{zIndex:1},[`& > *:first-child,
& > ${n}-select:first-child > ${n}-select-selector,
& > ${n}-select-auto-complete:first-child ${t},
& > ${n}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child,
& > ${n}-select:last-child > ${n}-select-selector,
& > ${n}-cascader-picker:last-child ${t},
& > ${n}-cascader-picker-focused:last-child ${t}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${n}-select-auto-complete ${t}`]:{verticalAlign:"top"},[`${t}-group-wrapper + ${t}-group-wrapper`]:{marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),[`${t}-affix-wrapper`]:{borderRadius:0}},[`${t}-group-wrapper:not(:last-child)`]:{[`&${t}-search > ${t}-group`]:{[`& > ${t}-group-addon > ${t}-search-button`]:{borderRadius:0},[`& > ${t}`]:{borderStartStartRadius:e.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:e.borderRadius}}}})}},_se=e=>{const{componentCls:t,controlHeightSM:n,lineWidth:r,calc:i}=e,a=i(n).sub(i(r).mul(2)).sub(16).div(2).equal();return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Fn(e)),i3(e)),bse(e)),Ese(e)),Sse(e)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:n,paddingTop:a,paddingBottom:a}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},Ose=e=>{const{componentCls:t}=e;return{[`${t}-clear-icon`]:{margin:0,lineHeight:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextTertiary},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${ie(e.inputAffixPadding)}`}}}},Ise=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:i,colorIcon:o,colorIconHover:a,iconCls:l}=e,c=`${t}-affix-wrapper`,u=`${t}-affix-wrapper-disabled`;return{[c]:Object.assign(Object.assign(Object.assign(Object.assign({},i3(e)),{display:"inline-flex",[`&:not(${t}-disabled):hover`]:{zIndex:1,[`${t}-search-with-button &`]:{zIndex:0}},"&-focused, &:focus":{zIndex:1},[`> input${t}`]:{padding:0},[`> input${t}, > textarea${t}`]:{fontSize:"inherit",border:"none",borderRadius:0,outline:"none",background:"transparent",color:"inherit","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[t]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:e.paddingXS}},"&-show-count-suffix":{color:r},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:n},"&-suffix":{marginInlineStart:n}}}),Ose(e)),{[`${l}${t}-password-icon`]:{color:o,cursor:"pointer",transition:`all ${i}`,"&:hover":{color:a}}}),[u]:{[`${l}${t}-password-icon`]:{color:o,cursor:"not-allowed","&:hover":{color:o}}}}},$se=e=>{const{componentCls:t,borderRadiusLG:n,borderRadiusSM:r}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},Fn(e)),Tse(e)),{"&-rtl":{direction:"rtl"},"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${t}-group-addon`]:{borderRadius:n,fontSize:e.inputFontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:r}}},Cse(e)),xse(e)),{[`&:not(${t}-compact-first-item):not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}, ${t}-group-addon`]:{borderRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-first-item`]:{[`${t}, ${t}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-last-item`]:{[`${t}, ${t}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}-affix-wrapper`]:{borderStartEndRadius:0,borderEndEndRadius:0}}})})}},Nse=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-search`;return{[r]:{[t]:{"&:hover, &:focus":{[`+ ${t}-group-addon ${r}-button:not(${n}-btn-primary)`]:{borderInlineStartColor:e.colorPrimaryHover}}},[`${t}-affix-wrapper`]:{height:e.controlHeight,borderRadius:0},[`${t}-lg`]:{lineHeight:e.calc(e.lineHeightLG).sub(2e-4).equal()},[`> ${t}-group`]:{[`> ${t}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${r}-button`]:{marginInlineEnd:-1,paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderEndStartRadius:0,boxShadow:"none"},[`${r}-button:not(${n}-btn-primary)`]:{color:e.colorTextDescription,"&:hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${n}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${r}-button`]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},"&-large":{[`${t}-affix-wrapper, ${r}-button`]:{height:e.controlHeightLG}},"&-small":{[`${t}-affix-wrapper, ${r}-button`]:{height:e.controlHeightSM}},"&-rtl":{direction:"rtl"},[`&${t}-compact-item`]:{[`&:not(${t}-compact-last-item)`]:{[`${t}-group-addon`]:{[`${t}-search-button`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderRadius:0}}},[`&:not(${t}-compact-first-item)`]:{[`${t},${t}-affix-wrapper`]:{borderRadius:0}},[`> ${t}-group-addon ${t}-search-button,
> ${t},
${t}-affix-wrapper`]:{"&:hover, &:focus, &:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}},Ase=e=>{const{componentCls:t,paddingLG:n}=e,r=`${t}-textarea`;return{[r]:{position:"relative","&-show-count":{[`> ${t}`]:{height:"100%"},[`${t}-data-count`]:{position:"absolute",bottom:e.calc(e.fontSize).mul(e.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:e.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},[`
&-allow-clear > ${t},
&-affix-wrapper${r}-has-feedback ${t}
`]:{paddingInlineEnd:n},[`&-affix-wrapper${t}-affix-wrapper`]:{padding:0,[`> textarea${t}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent","&:focus":{boxShadow:"none !important"}},[`${t}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${t}-clear-icon`]:{position:"absolute",insetInlineEnd:e.paddingInline,insetBlockStart:e.paddingXS},[`${r}-suffix`]:{position:"absolute",top:0,insetInlineEnd:e.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}},[`&-affix-wrapper${t}-affix-wrapper-sm`]:{[`${t}-suffix`]:{[`${t}-clear-icon`]:{insetInlineEnd:e.paddingInlineSM}}}}}},kse=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},o3=Mn("Input",e=>{const t=hn(e,e3(e));return[_se(t),Ase(t),Ise(t),$se(t),Nse(t),kse(t),_8(t)]},t3,{resetFont:!1});var Rse={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"},Mse=function(t,n){return d.createElement(on,ze({},t,{ref:n,icon:Rse}))},Mm=d.forwardRef(Mse);const Xb=d.createContext(null);var Pse=function(t){var n=t.activeTabOffset,r=t.horizontal,i=t.rtl,o=t.indicator,a=o===void 0?{}:o,l=a.size,c=a.align,u=c===void 0?"center":c,f=d.useState(),p=Oe(f,2),m=p[0],g=p[1],b=d.useRef(),E=be.useCallback(function(C){return typeof l=="function"?l(C):typeof l=="number"?l:C},[l]);function x(){kn.cancel(b.current)}return d.useEffect(function(){var C={};if(n)if(r){C.width=E(n.width);var S=i?"right":"left";u==="start"&&(C[S]=n[S]),u==="center"&&(C[S]=n[S]+n.width/2,C.transform=i?"translateX(50%)":"translateX(-50%)"),u==="end"&&(C[S]=n[S]+n.width,C.transform="translateX(-100%)")}else C.height=E(n.height),u==="start"&&(C.top=n.top),u==="center"&&(C.top=n.top+n.height/2,C.transform="translateY(-50%)"),u==="end"&&(C.top=n.top+n.height,C.transform="translateY(-100%)");return x(),b.current=kn(function(){g(C)}),x},[n,r,i,u,E]),{style:m}},JO={width:0,height:0,left:0,top:0};function Lse(e,t,n){return d.useMemo(function(){for(var r,i=new Map,o=t.get((r=e[0])===null||r===void 0?void 0:r.key)||JO,a=o.left+o.width,l=0;l<e.length;l+=1){var c=e[l].key,u=t.get(c);if(!u){var f;u=t.get((f=e[l-1])===null||f===void 0?void 0:f.key)||JO}var p=i.get(c)||te({},u);p.right=a-p.left-p.width,i.set(c,p)}return i},[e.map(function(r){return r.key}).join("_"),t,n])}function eI(e,t){var n=d.useRef(e),r=d.useState({}),i=Oe(r,2),o=i[1];function a(l){var c=typeof l=="function"?l(n.current):l;c!==n.current&&t(c,n.current),n.current=c,o({})}return[n.current,a]}var Dse=.1,tI=.01,sv=20,nI=Math.pow(.995,sv);function Fse(e,t){var n=d.useState(),r=Oe(n,2),i=r[0],o=r[1],a=d.useState(0),l=Oe(a,2),c=l[0],u=l[1],f=d.useState(0),p=Oe(f,2),m=p[0],g=p[1],b=d.useState(),E=Oe(b,2),x=E[0],C=E[1],S=d.useRef();function T(R){var M=R.touches[0],H=M.screenX,B=M.screenY;o({x:H,y:B}),window.clearInterval(S.current)}function O(R){if(i){var M=R.touches[0],H=M.screenX,B=M.screenY;o({x:H,y:B});var L=H-i.x,D=B-i.y;t(L,D);var z=Date.now();u(z),g(z-c),C({x:L,y:D})}}function I(){if(i&&(o(null),C(null),x)){var R=x.x/m,M=x.y/m,H=Math.abs(R),B=Math.abs(M);if(Math.max(H,B)<Dse)return;var L=R,D=M;S.current=window.setInterval(function(){if(Math.abs(L)<tI&&Math.abs(D)<tI){window.clearInterval(S.current);return}L*=nI,D*=nI,t(L*sv,D*sv)},sv)}}var _=d.useRef();function $(R){var M=R.deltaX,H=R.deltaY,B=0,L=Math.abs(M),D=Math.abs(H);L===D?B=_.current==="x"?M:H:L>D?(B=M,_.current="x"):(B=H,_.current="y"),t(-B,-B)&&R.preventDefault()}var k=d.useRef(null);k.current={onTouchStart:T,onTouchMove:O,onTouchEnd:I,onWheel:$},d.useEffect(function(){function R(L){k.current.onTouchStart(L)}function M(L){k.current.onTouchMove(L)}function H(L){k.current.onTouchEnd(L)}function B(L){k.current.onWheel(L)}return document.addEventListener("touchmove",M,{passive:!1}),document.addEventListener("touchend",H,{passive:!0}),e.current.addEventListener("touchstart",R,{passive:!0}),e.current.addEventListener("wheel",B,{passive:!1}),function(){document.removeEventListener("touchmove",M),document.removeEventListener("touchend",H)}},[])}function XF(e){var t=d.useState(0),n=Oe(t,2),r=n[0],i=n[1],o=d.useRef(0),a=d.useRef();return a.current=e,uS(function(){var l;(l=a.current)===null||l===void 0||l.call(a)},[r]),function(){o.current===r&&(o.current+=1,i(o.current))}}function Bse(e){var t=d.useRef([]),n=d.useState({}),r=Oe(n,2),i=r[1],o=d.useRef(typeof e=="function"?e():e),a=XF(function(){var c=o.current;t.current.forEach(function(u){c=u(c)}),t.current=[],o.current=c,i({})});function l(c){t.current.push(c),a()}return[o.current,l]}var rI={width:0,height:0,left:0,top:0,right:0};function jse(e,t,n,r,i,o,a){var l=a.tabs,c=a.tabPosition,u=a.rtl,f,p,m;return["top","bottom"].includes(c)?(f="width",p=u?"right":"left",m=Math.abs(n)):(f="height",p="top",m=-n),d.useMemo(function(){if(!l.length)return[0,0];for(var g=l.length,b=g,E=0;E<g;E+=1){var x=e.get(l[E].key)||rI;if(Math.floor(x[p]+x[f])>Math.floor(m+t)){b=E-1;break}}for(var C=0,S=g-1;S>=0;S-=1){var T=e.get(l[S].key)||rI;if(T[p]<m){C=S+1;break}}return C>=b?[0,0]:[C,b]},[e,t,r,i,o,m,c,l.map(function(g){return g.key}).join("_"),u])}function iI(e){var t;return e instanceof Map?(t={},e.forEach(function(n,r){t[r]=n})):t=e,JSON.stringify(t)}var Hse="TABS_DQ";function YF(e){return String(e).replace(/"/g,Hse)}function QF(e,t,n,r){return!(!n||r||e===!1||e===void 0&&(t===!1||t===null))}var ZF=d.forwardRef(function(e,t){var n=e.prefixCls,r=e.editable,i=e.locale,o=e.style;return!r||r.showAdd===!1?null:d.createElement("button",{ref:t,type:"button",className:"".concat(n,"-nav-add"),style:o,"aria-label":(i==null?void 0:i.addAriaLabel)||"Add tab",onClick:function(l){r.onEdit("add",{event:l})}},r.addIcon||"+")}),oI=d.forwardRef(function(e,t){var n=e.position,r=e.prefixCls,i=e.extra;if(!i)return null;var o,a={};return $t(i)==="object"&&!d.isValidElement(i)?a=i:a.right=i,n==="right"&&(o=a.right),n==="left"&&(o=a.left),o?d.createElement("div",{className:"".concat(r,"-extra-content"),ref:t},o):null}),zse=d.forwardRef(function(e,t){var n=e.prefixCls,r=e.id,i=e.tabs,o=e.locale,a=e.mobile,l=e.more,c=l===void 0?{}:l,u=e.style,f=e.className,p=e.editable,m=e.tabBarGutter,g=e.rtl,b=e.removeAriaLabel,E=e.onTabClick,x=e.getPopupContainer,C=e.popupClassName,S=d.useState(!1),T=Oe(S,2),O=T[0],I=T[1],_=d.useState(null),$=Oe(_,2),k=$[0],R=$[1],M=c.icon,H=M===void 0?"More":M,B="".concat(r,"-more-popup"),L="".concat(n,"-dropdown"),D=k!==null?"".concat(B,"-").concat(k):null,z=o==null?void 0:o.dropdownAriaLabel;function W(V,Y){V.preventDefault(),V.stopPropagation(),p.onEdit("remove",{key:Y,event:V})}var j=d.createElement(h1,{onClick:function(Y){var ee=Y.key,ue=Y.domEvent;E(ee,ue),I(!1)},prefixCls:"".concat(L,"-menu"),id:B,tabIndex:-1,role:"listbox","aria-activedescendant":D,selectedKeys:[k],"aria-label":z!==void 0?z:"expanded dropdown"},i.map(function(V){var Y=V.closable,ee=V.disabled,ue=V.closeIcon,ne=V.key,se=V.label,me=QF(Y,ue,p,ee);return d.createElement(km,{key:ne,id:"".concat(B,"-").concat(ne),role:"option","aria-controls":r&&"".concat(r,"-panel-").concat(ne),disabled:ee},d.createElement("span",null,se),me&&d.createElement("button",{type:"button","aria-label":b||"remove",tabIndex:0,className:"".concat(L,"-menu-item-remove"),onClick:function(de){de.stopPropagation(),W(de,ne)}},ue||p.removeIcon||"×"))}));function U(V){for(var Y=i.filter(function(me){return!me.disabled}),ee=Y.findIndex(function(me){return me.key===k})||0,ue=Y.length,ne=0;ne<ue;ne+=1){ee=(ee+V+ue)%ue;var se=Y[ee];if(!se.disabled){R(se.key);return}}}function q(V){var Y=V.which;if(!O){[it.DOWN,it.SPACE,it.ENTER].includes(Y)&&(I(!0),V.preventDefault());return}switch(Y){case it.UP:U(-1),V.preventDefault();break;case it.DOWN:U(1),V.preventDefault();break;case it.ESC:I(!1);break;case it.SPACE:case it.ENTER:k!==null&&E(k,V);break}}d.useEffect(function(){var V=document.getElementById(D);V&&V.scrollIntoView&&V.scrollIntoView(!1)},[k]),d.useEffect(function(){O||R(null)},[O]);var A=J({},g?"marginRight":"marginLeft",m);i.length||(A.visibility="hidden",A.order=1);var P=le(J({},"".concat(L,"-rtl"),g)),Z=a?null:d.createElement(yF,ze({prefixCls:L,overlay:j,visible:i.length?O:!1,onVisibleChange:I,overlayClassName:le(P,C),mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:x},c),d.createElement("button",{type:"button",className:"".concat(n,"-nav-more"),style:A,tabIndex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":B,id:"".concat(r,"-more"),"aria-expanded":O,onKeyDown:q},H));return d.createElement("div",{className:le("".concat(n,"-nav-operations"),f),style:u,ref:t},Z,d.createElement(ZF,{prefixCls:n,locale:o,editable:p}))});const Wse=d.memo(zse,function(e,t){return t.tabMoving});var Use=function(t){var n=t.prefixCls,r=t.id,i=t.active,o=t.tab,a=o.key,l=o.label,c=o.disabled,u=o.closeIcon,f=o.icon,p=t.closable,m=t.renderWrapper,g=t.removeAriaLabel,b=t.editable,E=t.onClick,x=t.onFocus,C=t.style,S="".concat(n,"-tab"),T=QF(p,u,b,c);function O(k){c||E(k)}function I(k){k.preventDefault(),k.stopPropagation(),b.onEdit("remove",{key:a,event:k})}var _=d.useMemo(function(){return f&&typeof l=="string"?d.createElement("span",null,l):l},[l,f]),$=d.createElement("div",{key:a,"data-node-key":YF(a),className:le(S,J(J(J({},"".concat(S,"-with-remove"),T),"".concat(S,"-active"),i),"".concat(S,"-disabled"),c)),style:C,onClick:O},d.createElement("div",{role:"tab","aria-selected":i,id:r&&"".concat(r,"-tab-").concat(a),className:"".concat(S,"-btn"),"aria-controls":r&&"".concat(r,"-panel-").concat(a),"aria-disabled":c,tabIndex:c?null:0,onClick:function(R){R.stopPropagation(),O(R)},onKeyDown:function(R){[it.SPACE,it.ENTER].includes(R.which)&&(R.preventDefault(),O(R))},onFocus:x},f&&d.createElement("span",{className:"".concat(S,"-icon")},f),l&&_),T&&d.createElement("button",{type:"button","aria-label":g||"remove",tabIndex:0,className:"".concat(S,"-remove"),onClick:function(R){R.stopPropagation(),I(R)}},u||b.removeIcon||"×"));return m?m($):$},Kse=function(t,n){var r=t.offsetWidth,i=t.offsetHeight,o=t.offsetTop,a=t.offsetLeft,l=t.getBoundingClientRect(),c=l.width,u=l.height,f=l.left,p=l.top;return Math.abs(c-r)<1?[c,u,f-n.left,p-n.top]:[r,i,a,o]},kd=function(t){var n=t.current||{},r=n.offsetWidth,i=r===void 0?0:r,o=n.offsetHeight,a=o===void 0?0:o;if(t.current){var l=t.current.getBoundingClientRect(),c=l.width,u=l.height;if(Math.abs(c-i)<1)return[c,u]}return[i,a]},rg=function(t,n){return t[n?0:1]},aI=d.forwardRef(function(e,t){var n=e.className,r=e.style,i=e.id,o=e.animated,a=e.activeKey,l=e.rtl,c=e.extra,u=e.editable,f=e.locale,p=e.tabPosition,m=e.tabBarGutter,g=e.children,b=e.onTabClick,E=e.onTabScroll,x=e.indicator,C=d.useContext(Xb),S=C.prefixCls,T=C.tabs,O=d.useRef(null),I=d.useRef(null),_=d.useRef(null),$=d.useRef(null),k=d.useRef(null),R=d.useRef(null),M=d.useRef(null),H=p==="top"||p==="bottom",B=eI(0,function(He,Ue){H&&E&&E({direction:He>Ue?"left":"right"})}),L=Oe(B,2),D=L[0],z=L[1],W=eI(0,function(He,Ue){!H&&E&&E({direction:He>Ue?"top":"bottom"})}),j=Oe(W,2),U=j[0],q=j[1],A=d.useState([0,0]),P=Oe(A,2),Z=P[0],V=P[1],Y=d.useState([0,0]),ee=Oe(Y,2),ue=ee[0],ne=ee[1],se=d.useState([0,0]),me=Oe(se,2),ye=me[0],de=me[1],ce=d.useState([0,0]),oe=Oe(ce,2),pe=oe[0],ve=oe[1],Te=Bse(new Map),Ge=Oe(Te,2),je=Ge[0],Je=Ge[1],Se=Lse(T,je,ue[0]),$e=rg(Z,H),qe=rg(ue,H),Le=rg(ye,H),Fe=rg(pe,H),Ke=Math.floor($e)<Math.floor(qe+Le),Ve=Ke?$e-Fe:$e-Le,Ce="".concat(S,"-nav-operations-hidden"),Pe=0,We=0;H&&l?(Pe=0,We=Math.max(0,qe-Ve)):(Pe=Math.min(0,Ve-qe),We=0);function Ze(He){return He<Pe?Pe:He>We?We:He}var ut=d.useRef(null),Be=d.useState(),ot=Oe(Be,2),re=ot[0],Ie=ot[1];function Re(){Ie(Date.now())}function Ae(){ut.current&&clearTimeout(ut.current)}Fse($,function(He,Ue){function ft(Ct,zt){Ct(function(Tt){var Pt=Ze(Tt+zt);return Pt})}return Ke?(H?ft(z,He):ft(q,Ue),Ae(),Re(),!0):!1}),d.useEffect(function(){return Ae(),re&&(ut.current=setTimeout(function(){Ie(0)},100)),Ae},[re]);var Ye=jse(Se,Ve,H?D:U,qe,Le,Fe,te(te({},e),{},{tabs:T})),mt=Oe(Ye,2),Nt=mt[0],qt=mt[1],Ft=Hn(function(){var He=arguments.length>0&&arguments[0]!==void 0?arguments[0]:a,Ue=Se.get(He)||{width:0,height:0,left:0,right:0,top:0};if(H){var ft=D;l?Ue.right<D?ft=Ue.right:Ue.right+Ue.width>D+Ve&&(ft=Ue.right+Ue.width-Ve):Ue.left<-D?ft=-Ue.left:Ue.left+Ue.width>-D+Ve&&(ft=-(Ue.left+Ue.width-Ve)),q(0),z(Ze(ft))}else{var Ct=U;Ue.top<-U?Ct=-Ue.top:Ue.top+Ue.height>-U+Ve&&(Ct=-(Ue.top+Ue.height-Ve)),z(0),q(Ze(Ct))}}),Kt={};p==="top"||p==="bottom"?Kt[l?"marginRight":"marginLeft"]=m:Kt.marginTop=m;var Qt=T.map(function(He,Ue){var ft=He.key;return d.createElement(Use,{id:i,prefixCls:S,key:ft,tab:He,style:Ue===0?void 0:Kt,closable:He.closable,editable:u,active:ft===a,renderWrapper:g,removeAriaLabel:f==null?void 0:f.removeAriaLabel,onClick:function(zt){b(ft,zt)},onFocus:function(){Ft(ft),Re(),$.current&&(l||($.current.scrollLeft=0),$.current.scrollTop=0)}})}),Zt=function(){return Je(function(){var Ue,ft=new Map,Ct=(Ue=k.current)===null||Ue===void 0?void 0:Ue.getBoundingClientRect();return T.forEach(function(zt){var Tt,Pt=zt.key,vt=(Tt=k.current)===null||Tt===void 0?void 0:Tt.querySelector('[data-node-key="'.concat(YF(Pt),'"]'));if(vt){var gt=Kse(vt,Ct),tt=Oe(gt,4),Xt=tt[0],Jt=tt[1],En=tt[2],Wt=tt[3];ft.set(Pt,{width:Xt,height:Jt,left:En,top:Wt})}}),ft})};d.useEffect(function(){Zt()},[T.map(function(He){return He.key}).join("_")]);var Mt=XF(function(){var He=kd(O),Ue=kd(I),ft=kd(_);V([He[0]-Ue[0]-ft[0],He[1]-Ue[1]-ft[1]]);var Ct=kd(M);de(Ct);var zt=kd(R);ve(zt);var Tt=kd(k);ne([Tt[0]-Ct[0],Tt[1]-Ct[1]]),Zt()}),St=T.slice(0,Nt),yt=T.slice(qt+1),lt=[].concat(Qe(St),Qe(yt)),fe=Se.get(a),xe=Pse({activeTabOffset:fe,horizontal:H,indicator:x,rtl:l}),ge=xe.style;d.useEffect(function(){Ft()},[a,Pe,We,iI(fe),iI(Se),H]),d.useEffect(function(){Mt()},[l]);var Ne=!!lt.length,Xe="".concat(S,"-nav-wrap"),nt,pt,st,rt;return H?l?(pt=D>0,nt=D!==We):(nt=D<0,pt=D!==Pe):(st=U<0,rt=U!==Pe),d.createElement(Yi,{onResize:Mt},d.createElement("div",{ref:Cs(t,O),role:"tablist",className:le("".concat(S,"-nav"),n),style:r,onKeyDown:function(){Re()}},d.createElement(oI,{ref:I,position:"left",extra:c,prefixCls:S}),d.createElement(Yi,{onResize:Mt},d.createElement("div",{className:le(Xe,J(J(J(J({},"".concat(Xe,"-ping-left"),nt),"".concat(Xe,"-ping-right"),pt),"".concat(Xe,"-ping-top"),st),"".concat(Xe,"-ping-bottom"),rt)),ref:$},d.createElement(Yi,{onResize:Mt},d.createElement("div",{ref:k,className:"".concat(S,"-nav-list"),style:{transform:"translate(".concat(D,"px, ").concat(U,"px)"),transition:re?"none":void 0}},Qt,d.createElement(ZF,{ref:M,prefixCls:S,locale:f,editable:u,style:te(te({},Qt.length===0?void 0:Kt),{},{visibility:Ne?"hidden":null})}),d.createElement("div",{className:le("".concat(S,"-ink-bar"),J({},"".concat(S,"-ink-bar-animated"),o.inkBar)),style:ge}))))),d.createElement(Wse,ze({},e,{removeAriaLabel:f==null?void 0:f.removeAriaLabel,ref:R,prefixCls:S,tabs:lt,className:!Ne&&Ce,tabMoving:!!re})),d.createElement(oI,{ref:_,position:"right",extra:c,prefixCls:S})))}),JF=d.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,i=e.style,o=e.id,a=e.active,l=e.tabKey,c=e.children;return d.createElement("div",{id:o&&"".concat(o,"-panel-").concat(l),role:"tabpanel",tabIndex:a?0:-1,"aria-labelledby":o&&"".concat(o,"-tab-").concat(l),"aria-hidden":!a,style:i,className:le(n,a&&"".concat(n,"-active"),r),ref:t},c)}),Vse=["renderTabBar"],Gse=["label","key"],qse=function(t){var n=t.renderTabBar,r=Gt(t,Vse),i=d.useContext(Xb),o=i.tabs;if(n){var a=te(te({},r),{},{panes:o.map(function(l){var c=l.label,u=l.key,f=Gt(l,Gse);return d.createElement(JF,ze({tab:c,key:u,tabKey:u},f))})});return n(a,aI)}return d.createElement(aI,r)},Xse=["key","forceRender","style","className","destroyInactiveTabPane"],Yse=function(t){var n=t.id,r=t.activeKey,i=t.animated,o=t.tabPosition,a=t.destroyInactiveTabPane,l=d.useContext(Xb),c=l.prefixCls,u=l.tabs,f=i.tabPane,p="".concat(c,"-tabpane");return d.createElement("div",{className:le("".concat(c,"-content-holder"))},d.createElement("div",{className:le("".concat(c,"-content"),"".concat(c,"-content-").concat(o),J({},"".concat(c,"-content-animated"),f))},u.map(function(m){var g=m.key,b=m.forceRender,E=m.style,x=m.className,C=m.destroyInactiveTabPane,S=Gt(m,Xse),T=g===r;return d.createElement(ca,ze({key:g,visible:T,forceRender:b,removeOnLeave:!!(a||C),leavedClassName:"".concat(p,"-hidden")},i.tabPaneMotion),function(O,I){var _=O.style,$=O.className;return d.createElement(JF,ze({},S,{prefixCls:p,id:n,tabKey:g,animated:f,active:T,style:te(te({},E),_),className:le(x,$),ref:I}))})})))};function Qse(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{inkBar:!0,tabPane:!1},t;return e===!1?t={inkBar:!1,tabPane:!1}:e===!0?t={inkBar:!0,tabPane:!1}:t=te({inkBar:!0},$t(e)==="object"?e:{}),t.tabPaneMotion&&t.tabPane===void 0&&(t.tabPane=!0),!t.tabPaneMotion&&t.tabPane&&(t.tabPane=!1),t}var Zse=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","more","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicator"],lI=0,Jse=d.forwardRef(function(e,t){var n=e.id,r=e.prefixCls,i=r===void 0?"rc-tabs":r,o=e.className,a=e.items,l=e.direction,c=e.activeKey,u=e.defaultActiveKey,f=e.editable,p=e.animated,m=e.tabPosition,g=m===void 0?"top":m,b=e.tabBarGutter,E=e.tabBarStyle,x=e.tabBarExtraContent,C=e.locale,S=e.more,T=e.destroyInactiveTabPane,O=e.renderTabBar,I=e.onChange,_=e.onTabClick,$=e.onTabScroll,k=e.getPopupContainer,R=e.popupClassName,M=e.indicator,H=Gt(e,Zse),B=d.useMemo(function(){return(a||[]).filter(function(pe){return pe&&$t(pe)==="object"&&"key"in pe})},[a]),L=l==="rtl",D=Qse(p),z=d.useState(!1),W=Oe(z,2),j=W[0],U=W[1];d.useEffect(function(){U(k8())},[]);var q=Tr(function(){var pe;return(pe=B[0])===null||pe===void 0?void 0:pe.key},{value:c,defaultValue:u}),A=Oe(q,2),P=A[0],Z=A[1],V=d.useState(function(){return B.findIndex(function(pe){return pe.key===P})}),Y=Oe(V,2),ee=Y[0],ue=Y[1];d.useEffect(function(){var pe=B.findIndex(function(Te){return Te.key===P});if(pe===-1){var ve;pe=Math.max(0,Math.min(ee,B.length-1)),Z((ve=B[pe])===null||ve===void 0?void 0:ve.key)}ue(pe)},[B.map(function(pe){return pe.key}).join("_"),P,ee]);var ne=Tr(null,{value:n}),se=Oe(ne,2),me=se[0],ye=se[1];d.useEffect(function(){n||(ye("rc-tabs-".concat(lI)),lI+=1)},[]);function de(pe,ve){_==null||_(pe,ve);var Te=pe!==P;Z(pe),Te&&(I==null||I(pe))}var ce={id:me,activeKey:P,animated:D,tabPosition:g,rtl:L,mobile:j},oe=te(te({},ce),{},{editable:f,locale:C,more:S,tabBarGutter:b,onTabClick:de,onTabScroll:$,extra:x,style:E,panes:null,getPopupContainer:k,popupClassName:R,indicator:M});return d.createElement(Xb.Provider,{value:{tabs:B,prefixCls:i}},d.createElement("div",ze({ref:t,id:n,className:le(i,"".concat(i,"-").concat(g),J(J(J({},"".concat(i,"-mobile"),j),"".concat(i,"-editable"),f),"".concat(i,"-rtl"),L),o)},H),d.createElement(qse,ze({},oe,{renderTabBar:O})),d.createElement(Yse,ze({destroyInactiveTabPane:T},ce,{animated:D}))))});const ece={motionAppear:!1,motionEnter:!0,motionLeave:!0};function tce(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{inkBar:!0,tabPane:!1},n;return t===!1?n={inkBar:!1,tabPane:!1}:t===!0?n={inkBar:!0,tabPane:!0}:n=Object.assign({inkBar:!0},typeof t=="object"?t:{}),n.tabPane&&(n.tabPaneMotion=Object.assign(Object.assign({},ece),{motionName:xc(e,"switch")})),n}var nce=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function rce(e){return e.filter(t=>t)}function ice(e,t){if(e)return e;const n=ri(t).map(r=>{if(d.isValidElement(r)){const{key:i,props:o}=r,a=o||{},{tab:l}=a,c=nce(a,["tab"]);return Object.assign(Object.assign({key:String(i)},c),{label:l})}return null});return rce(n)}const oce=e=>{const{componentCls:t,motionDurationSlow:n}=e;return[{[t]:{[`${t}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${n}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${n}`}}}}},[wc(e,"slide-up"),wc(e,"slide-down")]]},ace=e=>{const{componentCls:t,tabsCardPadding:n,cardBg:r,cardGutter:i,colorBorderSecondary:o,itemSelectedColor:a}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:r,border:`${ie(e.lineWidth)} ${e.lineType} ${o}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:a,background:e.colorBgContainer},[`${t}-ink-bar`]:{visibility:"hidden"}},[`&${t}-top, &${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginLeft:{_skip_check_:!0,value:ie(i)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${ie(e.borderRadiusLG)} ${ie(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${ie(e.borderRadiusLG)} ${ie(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:ie(i)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${ie(e.borderRadiusLG)} 0 0 ${ie(e.borderRadiusLG)}`}},[`${t}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:e.colorBgContainer}}}},[`&${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${ie(e.borderRadiusLG)} ${ie(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},lce=e=>{const{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:r}=e;return{[`${t}-dropdown`]:Object.assign(Object.assign({},Fn(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:e.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${t}-dropdown-menu`]:{maxHeight:e.tabsDropdownHeight,margin:0,padding:`${ie(r)} 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:e.colorBgContainer,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,"&-item":Object.assign(Object.assign({},al),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${ie(e.paddingXXS)} ${ie(e.paddingSM)}`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:e.marginSM},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:n}},"&:hover":{background:e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:e.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},sce=e=>{const{componentCls:t,margin:n,colorBorderSecondary:r,horizontalMargin:i,verticalItemPadding:o,verticalItemMargin:a,calc:l}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:i,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${ie(e.lineWidth)} ${e.lineType} ${r}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:`width ${e.motionDurationSlow}, left ${e.motionDurationSlow},
right ${e.motionDurationSlow}`}},[`${t}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:e.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowRight},[`&${t}-nav-wrap-ping-left::before`]:{opacity:1},[`&${t}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${t}-top`]:{[`> ${t}-nav,
> div > ${t}-nav`]:{"&::before":{bottom:0},[`${t}-ink-bar`]:{bottom:0}}},[`${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,marginTop:n,marginBottom:0,"&::before":{top:0},[`${t}-ink-bar`]:{top:0}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0}},[`${t}-left, ${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{flexDirection:"column",minWidth:l(e.controlHeight).mul(1.25).equal(),[`${t}-tab`]:{padding:o,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:a},[`${t}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:e.controlHeight},"&::before":{top:0,boxShadow:e.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:e.boxShadowTabsOverflowBottom},[`&${t}-nav-wrap-ping-top::before`]:{opacity:1},[`&${t}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${t}-ink-bar`]:{width:e.lineWidthBold,"&-animated":{transition:`height ${e.motionDurationSlow}, top ${e.motionDurationSlow}`}},[`${t}-nav-list, ${t}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{marginLeft:{_skip_check_:!0,value:ie(l(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${ie(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:e.paddingLG}}}},[`${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,[`${t}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:l(e.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:!0,value:`${ie(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},cce=e=>{const{componentCls:t,cardPaddingSM:n,cardPaddingLG:r,horizontalItemPaddingSM:i,horizontalItemPaddingLG:o}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:i,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:o,fontSize:e.titleFontSizeLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${ie(e.borderRadius)} ${ie(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${ie(e.borderRadius)} ${ie(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${ie(e.borderRadius)} ${ie(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${ie(e.borderRadius)} 0 0 ${ie(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r}}}}}},uce=e=>{const{componentCls:t,itemActiveColor:n,itemHoverColor:r,iconCls:i,tabsHorizontalItemMargin:o,horizontalItemPadding:a,itemSelectedColor:l,itemColor:c}=e,u=`${t}-tab`;return{[u]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:a,fontSize:e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:c,"&-btn, &-remove":Object.assign({"&:focus:not(:focus-visible), &:active":{color:n}},ms(e)),"&-btn":{outline:"none",transition:`all ${e.motionDurationSlow}`,[`${u}-icon:not(:last-child)`]:{marginInlineEnd:e.marginSM}},"&-remove":{flex:"none",marginRight:{_skip_check_:!0,value:e.calc(e.marginXXS).mul(-1).equal()},marginLeft:{_skip_check_:!0,value:e.marginXS},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextHeading}},"&:hover":{color:r},[`&${u}-active ${u}-btn`]:{color:l,textShadow:e.tabsActiveTextShadow},[`&${u}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${u}-disabled ${u}-btn, &${u}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${u}-remove ${i}`]:{margin:0},[`${i}:not(:last-child)`]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${u} + ${u}`]:{margin:{_skip_check_:!0,value:o}}}},dce=e=>{const{componentCls:t,tabsHorizontalItemMarginRTL:n,iconCls:r,cardGutter:i,calc:o}=e;return{[`${t}-rtl`]:{direction:"rtl",[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:!0,value:n},[`${t}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[r]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:ie(e.marginSM)}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:ie(e.marginXS)},marginLeft:{_skip_check_:!0,value:ie(o(e.marginXXS).mul(-1).equal())},[r]:{margin:0}}}},[`&${t}-left`]:{[`> ${t}-nav`]:{order:1},[`> ${t}-content-holder`]:{order:0}},[`&${t}-right`]:{[`> ${t}-nav`]:{order:0},[`> ${t}-content-holder`]:{order:1}},[`&${t}-card${t}-top, &${t}-card${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginRight:{_skip_check_:!0,value:i},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},fce=e=>{const{componentCls:t,tabsCardPadding:n,cardHeight:r,cardGutter:i,itemHoverColor:o,itemActiveColor:a,colorBorderSecondary:l}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Fn(e)),{display:"flex",[`> ${t}-nav, > div > ${t}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${t}-nav-wrap`]:{position:"relative",display:"flex",flex:"auto",alignSelf:"stretch",overflow:"hidden",whiteSpace:"nowrap",transform:"translate(0)","&::before, &::after":{position:"absolute",zIndex:1,opacity:0,transition:`opacity ${e.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${t}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${e.motionDurationSlow}`},[`${t}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${t}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${t}-nav-more`]:{position:"relative",padding:n,background:"transparent",border:0,color:e.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:e.calc(e.controlHeightLG).div(8).equal(),transform:"translateY(100%)",content:"''"}},[`${t}-nav-add`]:Object.assign({minWidth:r,minHeight:r,marginLeft:{_skip_check_:!0,value:i},padding:`0 ${ie(e.paddingXS)}`,background:"transparent",border:`${ie(e.lineWidth)} ${e.lineType} ${l}`,borderRadius:`${ie(e.borderRadiusLG)} ${ie(e.borderRadiusLG)} 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:o},"&:active, &:focus:not(:focus-visible)":{color:a}},ms(e))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),uce(e)),{[`${t}-content`]:{position:"relative",width:"100%"},[`${t}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-tabpane`]:{outline:"none","&-hidden":{display:"none"}}}),[`${t}-centered`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-nav-wrap`]:{[`&:not([class*='${t}-nav-wrap-ping']) > ${t}-nav-list`]:{margin:"auto"}}}}}},hce=e=>{const t=e.controlHeightLG;return{zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:t,cardPadding:`${(t-Math.round(e.fontSize*e.lineHeight))/2-e.lineWidth}px ${e.padding}px`,cardPaddingSM:`${e.paddingXXS*1.5}px ${e.padding}px`,cardPaddingLG:`${e.paddingXS}px ${e.padding}px ${e.paddingXXS*1.5}px`,titleFontSize:e.fontSize,titleFontSizeLG:e.fontSizeLG,titleFontSizeSM:e.fontSize,inkBarColor:e.colorPrimary,horizontalMargin:`0 0 ${e.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:`${e.paddingSM}px 0`,horizontalItemPaddingSM:`${e.paddingXS}px 0`,horizontalItemPaddingLG:`${e.padding}px 0`,verticalItemPadding:`${e.paddingXS}px ${e.paddingLG}px`,verticalItemMargin:`${e.margin}px 0 0 0`,itemColor:e.colorText,itemSelectedColor:e.colorPrimary,itemHoverColor:e.colorPrimaryHover,itemActiveColor:e.colorPrimaryActive,cardGutter:e.marginXXS/2}},pce=Mn("Tabs",e=>{const t=hn(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${ie(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${ie(e.horizontalItemGutter)}`});return[cce(t),dce(t),sce(t),lce(t),ace(t),fce(t),oce(t)]},hce),mce=()=>null;var gce=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const a3=e=>{var t,n,r,i,o,a,l,c,u,f,p;const{type:m,className:g,rootClassName:b,size:E,onEdit:x,hideAdd:C,centered:S,addIcon:T,removeIcon:O,moreIcon:I,more:_,popupClassName:$,children:k,items:R,animated:M,style:H,indicatorSize:B,indicator:L}=e,D=gce(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","removeIcon","moreIcon","more","popupClassName","children","items","animated","style","indicatorSize","indicator"]),{prefixCls:z}=D,{direction:W,tabs:j,getPrefixCls:U,getPopupContainer:q}=d.useContext(At),A=U("tabs",z),P=Kr(A),[Z,V,Y]=pce(A,P);let ee;m==="editable-card"&&(ee={onEdit:(ce,oe)=>{let{key:pe,event:ve}=oe;x==null||x(ce==="add"?ve:pe,ce)},removeIcon:(t=O??(j==null?void 0:j.removeIcon))!==null&&t!==void 0?t:d.createElement(Vu,null),addIcon:(T??(j==null?void 0:j.addIcon))||d.createElement(Mm,null),showAdd:C!==!0});const ue=U(),ne=vo(E),se=ice(R,k),me=tce(A,M),ye=Object.assign(Object.assign({},j==null?void 0:j.style),H),de={align:(n=L==null?void 0:L.align)!==null&&n!==void 0?n:(r=j==null?void 0:j.indicator)===null||r===void 0?void 0:r.align,size:(l=(o=(i=L==null?void 0:L.size)!==null&&i!==void 0?i:B)!==null&&o!==void 0?o:(a=j==null?void 0:j.indicator)===null||a===void 0?void 0:a.size)!==null&&l!==void 0?l:j==null?void 0:j.indicatorSize};return Z(d.createElement(Jse,Object.assign({direction:W,getPopupContainer:q},D,{items:se,className:le({[`${A}-${ne}`]:ne,[`${A}-card`]:["card","editable-card"].includes(m),[`${A}-editable-card`]:m==="editable-card",[`${A}-centered`]:S},j==null?void 0:j.className,g,b,V,Y,P),popupClassName:le($,V,Y,P),style:ye,editable:ee,more:Object.assign({icon:(p=(f=(u=(c=j==null?void 0:j.more)===null||c===void 0?void 0:c.icon)!==null&&u!==void 0?u:j==null?void 0:j.moreIcon)!==null&&f!==void 0?f:I)!==null&&p!==void 0?p:d.createElement(Z8,null),transitionName:`${ue}-slide-up`},_),prefixCls:A,animated:me,indicator:de})))};a3.TabPane=mce;var vce=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const eB=e=>{var{prefixCls:t,className:n,hoverable:r=!0}=e,i=vce(e,["prefixCls","className","hoverable"]);const{getPrefixCls:o}=d.useContext(At),a=o("card",t),l=le(`${a}-grid`,n,{[`${a}-grid-hoverable`]:r});return d.createElement("div",Object.assign({},i,{className:l}))},yce=e=>{const{antCls:t,componentCls:n,headerHeight:r,cardPaddingBase:i,tabsMarginBottom:o}=e;return Object.assign(Object.assign({display:"flex",justifyContent:"center",flexDirection:"column",minHeight:r,marginBottom:-1,padding:`0 ${ie(i)}`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.headerFontSize,background:e.headerBg,borderBottom:`${ie(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${ie(e.borderRadiusLG)} ${ie(e.borderRadiusLG)} 0 0`},ll()),{"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":Object.assign(Object.assign({display:"inline-block",flex:1},al),{[`
> ${n}-typography,
> ${n}-typography-edit-content
`]:{insetInlineStart:0,marginTop:0,marginBottom:0}}),[`${t}-tabs-top`]:{clear:"both",marginBottom:o,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,"&-bar":{borderBottom:`${ie(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`}}})},bce=e=>{const{cardPaddingBase:t,colorBorderSecondary:n,cardShadow:r,lineWidth:i}=e;return{width:"33.33%",padding:t,border:0,borderRadius:0,boxShadow:`
${ie(i)} 0 0 0 ${n},
0 ${ie(i)} 0 0 ${n},
${ie(i)} ${ie(i)} 0 0 ${n},
${ie(i)} 0 0 0 ${n} inset,
0 ${ie(i)} 0 0 ${n} inset;
`,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:r}}},Cce=e=>{const{componentCls:t,iconCls:n,actionsLiMargin:r,cardActionsIconSize:i,colorBorderSecondary:o,actionsBg:a}=e;return Object.assign(Object.assign({margin:0,padding:0,listStyle:"none",background:a,borderTop:`${ie(e.lineWidth)} ${e.lineType} ${o}`,display:"flex",borderRadius:`0 0 ${ie(e.borderRadiusLG)} ${ie(e.borderRadiusLG)}`},ll()),{"& > li":{margin:r,color:e.colorTextDescription,textAlign:"center","> span":{position:"relative",display:"block",minWidth:e.calc(e.cardActionsIconSize).mul(2).equal(),fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer","&:hover":{color:e.colorPrimary,transition:`color ${e.motionDurationMid}`},[`a:not(${t}-btn), > ${n}`]:{display:"inline-block",width:"100%",color:e.colorTextDescription,lineHeight:ie(e.fontHeight),transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${n}`]:{fontSize:i,lineHeight:ie(e.calc(i).mul(e.lineHeight).equal())}},"&:not(:last-child)":{borderInlineEnd:`${ie(e.lineWidth)} ${e.lineType} ${o}`}}})},Sce=e=>Object.assign(Object.assign({margin:`${ie(e.calc(e.marginXXS).mul(-1).equal())} 0`,display:"flex"},ll()),{"&-avatar":{paddingInlineEnd:e.padding},"&-detail":{overflow:"hidden",flex:1,"> div:not(:last-child)":{marginBottom:e.marginXS}},"&-title":Object.assign({color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG},al),"&-description":{color:e.colorTextDescription}}),Ece=e=>{const{componentCls:t,cardPaddingBase:n,colorFillAlter:r}=e;return{[`${t}-head`]:{padding:`0 ${ie(n)}`,background:r,"&-title":{fontSize:e.fontSize}},[`${t}-body`]:{padding:`${ie(e.padding)} ${ie(n)}`}}},xce=e=>{const{componentCls:t}=e;return{overflow:"hidden",[`${t}-body`]:{userSelect:"none"}}},wce=e=>{const{componentCls:t,cardShadow:n,cardHeadPadding:r,colorBorderSecondary:i,boxShadowTertiary:o,cardPaddingBase:a,extraColor:l}=e;return{[t]:Object.assign(Object.assign({},Fn(e)),{position:"relative",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${t}-bordered)`]:{boxShadow:o},[`${t}-head`]:yce(e),[`${t}-extra`]:{marginInlineStart:"auto",color:l,fontWeight:"normal",fontSize:e.fontSize},[`${t}-body`]:Object.assign({padding:a,borderRadius:`0 0 ${ie(e.borderRadiusLG)} ${ie(e.borderRadiusLG)}`},ll()),[`${t}-grid`]:bce(e),[`${t}-cover`]:{"> *":{display:"block",width:"100%",borderRadius:`${ie(e.borderRadiusLG)} ${ie(e.borderRadiusLG)} 0 0`}},[`${t}-actions`]:Cce(e),[`${t}-meta`]:Sce(e)}),[`${t}-bordered`]:{border:`${ie(e.lineWidth)} ${e.lineType} ${i}`,[`${t}-cover`]:{marginTop:-1,marginInlineStart:-1,marginInlineEnd:-1}},[`${t}-hoverable`]:{cursor:"pointer",transition:`box-shadow ${e.motionDurationMid}, border-color ${e.motionDurationMid}`,"&:hover":{borderColor:"transparent",boxShadow:n}},[`${t}-contain-grid`]:{borderRadius:`${ie(e.borderRadiusLG)} ${ie(e.borderRadiusLG)} 0 0 `,[`${t}-body`]:{display:"flex",flexWrap:"wrap"},[`&:not(${t}-loading) ${t}-body`]:{marginBlockStart:e.calc(e.lineWidth).mul(-1).equal(),marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),padding:0}},[`${t}-contain-tabs`]:{[`> div${t}-head`]:{minHeight:0,[`${t}-head-title, ${t}-extra`]:{paddingTop:r}}},[`${t}-type-inner`]:Ece(e),[`${t}-loading`]:xce(e),[`${t}-rtl`]:{direction:"rtl"}}},Tce=e=>{const{componentCls:t,cardPaddingSM:n,headerHeightSM:r,headerFontSizeSM:i}=e;return{[`${t}-small`]:{[`> ${t}-head`]:{minHeight:r,padding:`0 ${ie(n)}`,fontSize:i,[`> ${t}-head-wrapper`]:{[`> ${t}-extra`]:{fontSize:e.fontSize}}},[`> ${t}-body`]:{padding:n}},[`${t}-small${t}-contain-tabs`]:{[`> ${t}-head`]:{[`${t}-head-title, ${t}-extra`]:{paddingTop:0,display:"flex",alignItems:"center"}}}}},_ce=e=>({headerBg:"transparent",headerFontSize:e.fontSizeLG,headerFontSizeSM:e.fontSize,headerHeight:e.fontSizeLG*e.lineHeightLG+e.padding*2,headerHeightSM:e.fontSize*e.lineHeight+e.paddingXS*2,actionsBg:e.colorBgContainer,actionsLiMargin:`${e.paddingSM}px 0`,tabsMarginBottom:-e.padding-e.lineWidth,extraColor:e.colorText}),Oce=Mn("Card",e=>{const t=hn(e,{cardShadow:e.boxShadowCard,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardActionsIconSize:e.fontSize,cardPaddingSM:12});return[wce(t),Tce(t)]},_ce);var sI=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const Ice=e=>{const{actionClasses:t,actions:n=[],actionStyle:r}=e;return d.createElement("ul",{className:t,style:r},n.map((i,o)=>{const a=`action-${o}`;return d.createElement("li",{style:{width:`${100/n.length}%`},key:a},d.createElement("span",null,i))}))},$ce=d.forwardRef((e,t)=>{const{prefixCls:n,className:r,rootClassName:i,style:o,extra:a,headStyle:l={},bodyStyle:c={},title:u,loading:f,bordered:p=!0,size:m,type:g,cover:b,actions:E,tabList:x,children:C,activeTabKey:S,defaultActiveTabKey:T,tabBarExtraContent:O,hoverable:I,tabProps:_={},classNames:$,styles:k}=e,R=sI(e,["prefixCls","className","rootClassName","style","extra","headStyle","bodyStyle","title","loading","bordered","size","type","cover","actions","tabList","children","activeTabKey","defaultActiveTabKey","tabBarExtraContent","hoverable","tabProps","classNames","styles"]),{getPrefixCls:M,direction:H,card:B}=d.useContext(At),L=je=>{var Je;(Je=e.onTabChange)===null||Je===void 0||Je.call(e,je)},D=je=>{var Je;return le((Je=B==null?void 0:B.classNames)===null||Je===void 0?void 0:Je[je],$==null?void 0:$[je])},z=je=>{var Je;return Object.assign(Object.assign({},(Je=B==null?void 0:B.styles)===null||Je===void 0?void 0:Je[je]),k==null?void 0:k[je])},W=d.useMemo(()=>{let je=!1;return d.Children.forEach(C,Je=>{(Je==null?void 0:Je.type)===eB&&(je=!0)}),je},[C]),j=M("card",n),[U,q,A]=Oce(j),P=d.createElement(Gu,{loading:!0,active:!0,paragraph:{rows:4},title:!1},C),Z=S!==void 0,V=Object.assign(Object.assign({},_),{[Z?"activeKey":"defaultActiveKey"]:Z?S:T,tabBarExtraContent:O});let Y;const ee=vo(m),ue=!ee||ee==="default"?"large":ee,ne=x?d.createElement(a3,Object.assign({size:ue},V,{className:`${j}-head-tabs`,onChange:L,items:x.map(je=>{var{tab:Je}=je,Se=sI(je,["tab"]);return Object.assign({label:Je},Se)})})):null;if(u||a||ne){const je=le(`${j}-head`,D("header")),Je=le(`${j}-head-title`,D("title")),Se=le(`${j}-extra`,D("extra")),$e=Object.assign(Object.assign({},l),z("header"));Y=d.createElement("div",{className:je,style:$e},d.createElement("div",{className:`${j}-head-wrapper`},u&&d.createElement("div",{className:Je,style:z("title")},u),a&&d.createElement("div",{className:Se,style:z("extra")},a)),ne)}const se=le(`${j}-cover`,D("cover")),me=b?d.createElement("div",{className:se,style:z("cover")},b):null,ye=le(`${j}-body`,D("body")),de=Object.assign(Object.assign({},c),z("body")),ce=d.createElement("div",{className:ye,style:de},f?P:C),oe=le(`${j}-actions`,D("actions")),pe=E!=null&&E.length?d.createElement(Ice,{actionClasses:oe,actionStyle:z("actions"),actions:E}):null,ve=tr(R,["onTabChange"]),Te=le(j,B==null?void 0:B.className,{[`${j}-loading`]:f,[`${j}-bordered`]:p,[`${j}-hoverable`]:I,[`${j}-contain-grid`]:W,[`${j}-contain-tabs`]:x==null?void 0:x.length,[`${j}-${ee}`]:ee,[`${j}-type-${g}`]:!!g,[`${j}-rtl`]:H==="rtl"},r,i,q,A),Ge=Object.assign(Object.assign({},B==null?void 0:B.style),o);return U(d.createElement("div",Object.assign({ref:t},ve,{className:Te,style:Ge}),Y,me,ce,pe))});var Nce=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const Ace=e=>{const{prefixCls:t,className:n,avatar:r,title:i,description:o}=e,a=Nce(e,["prefixCls","className","avatar","title","description"]),{getPrefixCls:l}=d.useContext(At),c=l("card",t),u=le(`${c}-meta`,n),f=r?d.createElement("div",{className:`${c}-meta-avatar`},r):null,p=i?d.createElement("div",{className:`${c}-meta-title`},i):null,m=o?d.createElement("div",{className:`${c}-meta-description`},o):null,g=p||m?d.createElement("div",{className:`${c}-meta-detail`},p,m):null;return d.createElement("div",Object.assign({},a,{className:u}),f,g)},p1=$ce;p1.Grid=eB;p1.Meta=Ace;function kce(e,t,n){var r=n||{},i=r.noTrailing,o=i===void 0?!1:i,a=r.noLeading,l=a===void 0?!1:a,c=r.debounceMode,u=c===void 0?void 0:c,f,p=!1,m=0;function g(){f&&clearTimeout(f)}function b(x){var C=x||{},S=C.upcomingOnly,T=S===void 0?!1:S;g(),p=!T}function E(){for(var x=arguments.length,C=new Array(x),S=0;S<x;S++)C[S]=arguments[S];var T=this,O=Date.now()-m;if(p)return;function I(){m=Date.now(),t.apply(T,C)}function _(){f=void 0}!l&&u&&!f&&I(),g(),u===void 0&&O>e?l?(m=Date.now(),o||(f=setTimeout(u?_:I,e))):I():o!==!0&&(f=setTimeout(u?_:I,u===void 0?e-O:e))}return E.cancel=b,E}function Rce(e,t,n){var r={},i=r.atBegin,o=i===void 0?!1:i;return kce(e,t,{debounceMode:o!==!1})}function Oo(e,t){return e[t]}var Mce=["children"];function tB(e,t){return"".concat(e,"-").concat(t)}function Pce(e){return e&&e.type&&e.type.isTreeNode}function Pm(e,t){return e??t}function zf(e){var t=e||{},n=t.title,r=t._title,i=t.key,o=t.children,a=n||"title";return{title:a,_title:r||[a],key:i||"key",children:o||"children"}}function nB(e){function t(n){var r=ri(n);return r.map(function(i){if(!Pce(i))return gr(!i,"Tree/TreeNode can only accept TreeNode as children."),null;var o=i.key,a=i.props,l=a.children,c=Gt(a,Mce),u=te({key:o},c),f=t(l);return f.length&&(u.children=f),u}).filter(function(i){return i})}return t(e)}function L4(e,t,n){var r=zf(n),i=r._title,o=r.key,a=r.children,l=new Set(t===!0?[]:t),c=[];function u(f){var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return f.map(function(m,g){for(var b=tB(p?p.pos:"0",g),E=Pm(m[o],b),x,C=0;C<i.length;C+=1){var S=i[C];if(m[S]!==void 0){x=m[S];break}}var T=Object.assign(tr(m,[].concat(Qe(i),[o,a])),{title:x,key:E,parent:p,pos:b,children:null,data:m,isStart:[].concat(Qe(p?p.isStart:[]),[g===0]),isEnd:[].concat(Qe(p?p.isEnd:[]),[g===f.length-1])});return c.push(T),t===!0||l.has(E)?T.children=u(m[a]||[],T):T.children=[],T})}return u(e),c}function Lce(e,t,n){var r={};$t(n)==="object"?r=n:r={externalGetKey:n},r=r||{};var i=r,o=i.childrenPropName,a=i.externalGetKey,l=i.fieldNames,c=zf(l),u=c.key,f=c.children,p=o||f,m;a?typeof a=="string"?m=function(E){return E[a]}:typeof a=="function"&&(m=function(E){return a(E)}):m=function(E,x){return Pm(E[u],x)};function g(b,E,x,C){var S=b?b[p]:e,T=b?tB(x.pos,E):"0",O=b?[].concat(Qe(C),[b]):[];if(b){var I=m(b,T),_={node:b,index:E,pos:T,key:I,parentPos:x.node?x.pos:null,level:x.level+1,nodes:O};t(_)}S&&S.forEach(function($,k){g($,k,{node:b,pos:T,level:x?x.level+1:-1},O)})}g(null)}function l3(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.initWrapper,r=t.processEntity,i=t.onProcessFinished,o=t.externalGetKey,a=t.childrenPropName,l=t.fieldNames,c=arguments.length>2?arguments[2]:void 0,u=o||c,f={},p={},m={posEntities:f,keyEntities:p};return n&&(m=n(m)||m),Lce(e,function(g){var b=g.node,E=g.index,x=g.pos,C=g.key,S=g.parentPos,T=g.level,O=g.nodes,I={node:b,nodes:O,index:E,key:C,pos:x,level:T},_=Pm(C,x);f[x]=I,p[_]=I,I.parent=f[S],I.parent&&(I.parent.children=I.parent.children||[],I.parent.children.push(I)),r&&r(I,m)},{externalGetKey:u,childrenPropName:a,fieldNames:l}),i&&i(m),m}function np(e,t){var n=t.expandedKeys,r=t.selectedKeys,i=t.loadedKeys,o=t.loadingKeys,a=t.checkedKeys,l=t.halfCheckedKeys,c=t.dragOverNodeKey,u=t.dropPosition,f=t.keyEntities,p=Oo(f,e),m={eventKey:e,expanded:n.indexOf(e)!==-1,selected:r.indexOf(e)!==-1,loaded:i.indexOf(e)!==-1,loading:o.indexOf(e)!==-1,checked:a.indexOf(e)!==-1,halfChecked:l.indexOf(e)!==-1,pos:String(p?p.pos:""),dragOver:c===e&&u===0,dragOverGapTop:c===e&&u===-1,dragOverGapBottom:c===e&&u===1};return m}function Yr(e){var t=e.data,n=e.expanded,r=e.selected,i=e.checked,o=e.loaded,a=e.loading,l=e.halfChecked,c=e.dragOver,u=e.dragOverGapTop,f=e.dragOverGapBottom,p=e.pos,m=e.active,g=e.eventKey,b=te(te({},t),{},{expanded:n,selected:r,checked:i,loaded:o,loading:a,halfChecked:l,dragOver:c,dragOverGapTop:u,dragOverGapBottom:f,pos:p,active:m,key:g});return"props"in b||Object.defineProperty(b,"props",{get:function(){return gr(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),e}}),b}function rB(e,t){var n=new Set;return e.forEach(function(r){t.has(r)||n.add(r)}),n}function Dce(e){var t=e||{},n=t.disabled,r=t.disableCheckbox,i=t.checkable;return!!(n||r)||i===!1}function Fce(e,t,n,r){for(var i=new Set(e),o=new Set,a=0;a<=n;a+=1){var l=t.get(a)||new Set;l.forEach(function(p){var m=p.key,g=p.node,b=p.children,E=b===void 0?[]:b;i.has(m)&&!r(g)&&E.filter(function(x){return!r(x.node)}).forEach(function(x){i.add(x.key)})})}for(var c=new Set,u=n;u>=0;u-=1){var f=t.get(u)||new Set;f.forEach(function(p){var m=p.parent,g=p.node;if(!(r(g)||!p.parent||c.has(p.parent.key))){if(r(p.parent.node)){c.add(m.key);return}var b=!0,E=!1;(m.children||[]).filter(function(x){return!r(x.node)}).forEach(function(x){var C=x.key,S=i.has(C);b&&!S&&(b=!1),!E&&(S||o.has(C))&&(E=!0)}),b&&i.add(m.key),E&&o.add(m.key),c.add(m.key)}})}return{checkedKeys:Array.from(i),halfCheckedKeys:Array.from(rB(o,i))}}function Bce(e,t,n,r,i){for(var o=new Set(e),a=new Set(t),l=0;l<=r;l+=1){var c=n.get(l)||new Set;c.forEach(function(m){var g=m.key,b=m.node,E=m.children,x=E===void 0?[]:E;!o.has(g)&&!a.has(g)&&!i(b)&&x.filter(function(C){return!i(C.node)}).forEach(function(C){o.delete(C.key)})})}a=new Set;for(var u=new Set,f=r;f>=0;f-=1){var p=n.get(f)||new Set;p.forEach(function(m){var g=m.parent,b=m.node;if(!(i(b)||!m.parent||u.has(m.parent.key))){if(i(m.parent.node)){u.add(g.key);return}var E=!0,x=!1;(g.children||[]).filter(function(C){return!i(C.node)}).forEach(function(C){var S=C.key,T=o.has(S);E&&!T&&(E=!1),!x&&(T||a.has(S))&&(x=!0)}),E||o.delete(g.key),x&&a.add(g.key),u.add(g.key)}})}return{checkedKeys:Array.from(o),halfCheckedKeys:Array.from(rB(a,o))}}function xf(e,t,n,r){var i=[],o;r?o=r:o=Dce;var a=new Set(e.filter(function(f){var p=!!Oo(n,f);return p||i.push(f),p})),l=new Map,c=0;Object.keys(n).forEach(function(f){var p=n[f],m=p.level,g=l.get(m);g||(g=new Set,l.set(m,g)),g.add(p),c=Math.max(c,m)}),gr(!i.length,"Tree missing follow keys: ".concat(i.slice(0,100).map(function(f){return"'".concat(f,"'")}).join(", ")));var u;return t===!0?u=Fce(a,l,c,o):u=Bce(a,t.halfCheckedKeys,l,c,o),u}const jce=e=>{const{checkboxCls:t}=e,n=`${t}-wrapper`;return[{[`${t}-group`]:Object.assign(Object.assign({},Fn(e)),{display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}}),[n]:Object.assign(Object.assign({},Fn(e)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${n}`]:{marginInlineStart:0},[`&${n}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[t]:Object.assign(Object.assign({},Fn(e)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:e.borderRadiusSM,alignSelf:"center",[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${t}-inner`]:Object.assign({},Sc(e))},[`${t}-inner`]:{boxSizing:"border-box",display:"block",width:e.checkboxSize,height:e.checkboxSize,direction:"ltr",backgroundColor:e.colorBgContainer,border:`${ie(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,borderCollapse:"separate",transition:`all ${e.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"25%",display:"table",width:e.calc(e.checkboxSize).div(14).mul(5).equal(),height:e.calc(e.checkboxSize).div(14).mul(8).equal(),border:`${ie(e.lineWidthBold)} solid ${e.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`}},"& + span":{paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS}})},{[`
${n}:not(${n}-disabled),
${t}:not(${t}-disabled)
`]:{[`&:hover ${t}-inner`]:{borderColor:e.colorPrimary}},[`${n}:not(${n}-disabled)`]:{[`&:hover ${t}-checked:not(${t}-disabled) ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${t}-checked:not(${t}-disabled):after`]:{borderColor:e.colorPrimaryHover}}},{[`${t}-checked`]:{[`${t}-inner`]:{backgroundColor:e.colorPrimary,borderColor:e.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack} ${e.motionDurationFast}`}}},[`
${n}-checked:not(${n}-disabled),
${t}-checked:not(${t}-disabled)
`]:{[`&:hover ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"}}},{[t]:{"&-indeterminate":{[`${t}-inner`]:{backgroundColor:`${e.colorBgContainer} !important`,borderColor:`${e.colorBorder} !important`,"&:after":{top:"50%",insetInlineStart:"50%",width:e.calc(e.fontSizeLG).div(2).equal(),height:e.calc(e.fontSizeLG).div(2).equal(),backgroundColor:e.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}},[`&:hover ${t}-inner`]:{backgroundColor:`${e.colorBgContainer} !important`,borderColor:`${e.colorPrimary} !important`}}}},{[`${n}-disabled`]:{cursor:"not-allowed"},[`${t}-disabled`]:{[`&, ${t}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${t}-inner`]:{background:e.colorBgContainerDisabled,borderColor:e.colorBorder,"&:after":{borderColor:e.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:e.colorTextDisabled},[`&${t}-indeterminate ${t}-inner::after`]:{background:e.colorTextDisabled}}}]};function iB(e,t){const n=hn(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});return[jce(n)]}const oB=Mn("Checkbox",(e,t)=>{let{prefixCls:n}=t;return[iB(n,e)]}),aB=be.createContext(null);var Hce=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const zce=(e,t)=>{var n;const{prefixCls:r,className:i,rootClassName:o,children:a,indeterminate:l=!1,style:c,onMouseEnter:u,onMouseLeave:f,skipGroup:p=!1,disabled:m}=e,g=Hce(e,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:b,direction:E,checkbox:x}=d.useContext(At),C=d.useContext(aB),{isFormItemInput:S}=d.useContext(fo),T=d.useContext($a),O=(n=(C==null?void 0:C.disabled)||m)!==null&&n!==void 0?n:T,I=d.useRef(g.value),_=d.useRef(null),$=eo(t,_);d.useEffect(()=>{C==null||C.registerValue(g.value)},[]),d.useEffect(()=>{if(!p)return g.value!==I.current&&(C==null||C.cancelValue(I.current),C==null||C.registerValue(g.value),I.current=g.value),()=>C==null?void 0:C.cancelValue(g.value)},[g.value]),d.useEffect(()=>{var W;!((W=_.current)===null||W===void 0)&&W.input&&(_.current.input.indeterminate=l)},[l]);const k=b("checkbox",r),R=Kr(k),[M,H,B]=oB(k,R),L=Object.assign({},g);C&&!p&&(L.onChange=function(){g.onChange&&g.onChange.apply(g,arguments),C.toggleOption&&C.toggleOption({label:a,value:g.value})},L.name=C.name,L.checked=C.value.includes(g.value));const D=le(`${k}-wrapper`,{[`${k}-rtl`]:E==="rtl",[`${k}-wrapper-checked`]:L.checked,[`${k}-wrapper-disabled`]:O,[`${k}-wrapper-in-form-item`]:S},x==null?void 0:x.className,i,o,B,R,H),z=le({[`${k}-indeterminate`]:l},$b,H);return M(d.createElement(Nb,{component:"Checkbox",disabled:O},d.createElement("label",{className:D,style:Object.assign(Object.assign({},x==null?void 0:x.style),c),onMouseEnter:u,onMouseLeave:f},d.createElement(KF,Object.assign({},L,{prefixCls:k,className:z,disabled:O,ref:$})),a!==void 0&&d.createElement("span",null,a))))},lB=d.forwardRef(zce);var Wce=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const Uce=d.forwardRef((e,t)=>{const{defaultValue:n,children:r,options:i=[],prefixCls:o,className:a,rootClassName:l,style:c,onChange:u}=e,f=Wce(e,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:p,direction:m}=d.useContext(At),[g,b]=d.useState(f.value||n||[]),[E,x]=d.useState([]);d.useEffect(()=>{"value"in f&&b(f.value||[])},[f.value]);const C=d.useMemo(()=>i.map(z=>typeof z=="string"||typeof z=="number"?{label:z,value:z}:z),[i]),S=z=>{x(W=>W.filter(j=>j!==z))},T=z=>{x(W=>[].concat(Qe(W),[z]))},O=z=>{const W=g.indexOf(z.value),j=Qe(g);W===-1?j.push(z.value):j.splice(W,1),"value"in f||b(j),u==null||u(j.filter(U=>E.includes(U)).sort((U,q)=>{const A=C.findIndex(Z=>Z.value===U),P=C.findIndex(Z=>Z.value===q);return A-P}))},I=p("checkbox",o),_=`${I}-group`,$=Kr(I),[k,R,M]=oB(I,$),H=tr(f,["value","disabled"]),B=i.length?C.map(z=>d.createElement(lB,{prefixCls:I,key:z.value.toString(),disabled:"disabled"in z?z.disabled:f.disabled,value:z.value,checked:g.includes(z.value),onChange:z.onChange,className:`${_}-item`,style:z.style,title:z.title,id:z.id,required:z.required},z.label)):r,L={toggleOption:O,value:g,disabled:f.disabled,name:f.name,registerValue:T,cancelValue:S},D=le(_,{[`${_}-rtl`]:m==="rtl"},a,l,M,$,R);return k(d.createElement("div",Object.assign({className:D,style:c},H,{ref:t}),d.createElement(aB.Provider,{value:L},B)))}),Wf=lB;Wf.Group=Uce;Wf.__ANT_CHECKBOX=!0;const sB=d.createContext({}),Kce=e=>{const{componentCls:t}=e;return{[t]:{display:"flex",flexFlow:"row wrap",minWidth:0,"&::before, &::after":{display:"flex"},"&-no-wrap":{flexWrap:"nowrap"},"&-start":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"flex-end"},"&-space-between":{justifyContent:"space-between"},"&-space-around":{justifyContent:"space-around"},"&-space-evenly":{justifyContent:"space-evenly"},"&-top":{alignItems:"flex-start"},"&-middle":{alignItems:"center"},"&-bottom":{alignItems:"flex-end"}}}},Vce=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},Gce=(e,t)=>{const{prefixCls:n,componentCls:r,gridColumns:i}=e,o={};for(let a=i;a>=0;a--)a===0?(o[`${r}${t}-${a}`]={display:"none"},o[`${r}-push-${a}`]={insetInlineStart:"auto"},o[`${r}-pull-${a}`]={insetInlineEnd:"auto"},o[`${r}${t}-push-${a}`]={insetInlineStart:"auto"},o[`${r}${t}-pull-${a}`]={insetInlineEnd:"auto"},o[`${r}${t}-offset-${a}`]={marginInlineStart:0},o[`${r}${t}-order-${a}`]={order:0}):(o[`${r}${t}-${a}`]=[{"--ant-display":"block",display:"block"},{display:"var(--ant-display)",flex:`0 0 ${a/i*100}%`,maxWidth:`${a/i*100}%`}],o[`${r}${t}-push-${a}`]={insetInlineStart:`${a/i*100}%`},o[`${r}${t}-pull-${a}`]={insetInlineEnd:`${a/i*100}%`},o[`${r}${t}-offset-${a}`]={marginInlineStart:`${a/i*100}%`},o[`${r}${t}-order-${a}`]={order:a});return o[`${r}${t}-flex`]={flex:`var(--${n}${t}-flex)`},o},uE=(e,t)=>Gce(e,t),qce=(e,t,n)=>({[`@media (min-width: ${ie(t)})`]:Object.assign({},uE(e,n))}),Xce=()=>({}),Yce=()=>({}),Qce=Mn("Grid",Kce,Xce),Zce=Mn("Grid",e=>{const t=hn(e,{gridColumns:24}),n={"-sm":t.screenSMMin,"-md":t.screenMDMin,"-lg":t.screenLGMin,"-xl":t.screenXLMin,"-xxl":t.screenXXLMin};return[Vce(t),uE(t,""),uE(t,"-xs"),Object.keys(n).map(r=>qce(t,n[r],r)).reduce((r,i)=>Object.assign(Object.assign({},r),i),{})]},Yce);var Jce=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function cI(e){return typeof e=="number"?`${e} ${e} auto`:/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?`0 0 ${e}`:e}const eue=["xs","sm","md","lg","xl","xxl"],s3=d.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=d.useContext(At),{gutter:i,wrap:o}=d.useContext(sB),{prefixCls:a,span:l,order:c,offset:u,push:f,pull:p,className:m,children:g,flex:b,style:E}=e,x=Jce(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),C=n("col",a),[S,T,O]=Zce(C),I={};let _={};eue.forEach(R=>{let M={};const H=e[R];typeof H=="number"?M.span=H:typeof H=="object"&&(M=H||{}),delete x[R],_=Object.assign(Object.assign({},_),{[`${C}-${R}-${M.span}`]:M.span!==void 0,[`${C}-${R}-order-${M.order}`]:M.order||M.order===0,[`${C}-${R}-offset-${M.offset}`]:M.offset||M.offset===0,[`${C}-${R}-push-${M.push}`]:M.push||M.push===0,[`${C}-${R}-pull-${M.pull}`]:M.pull||M.pull===0,[`${C}-rtl`]:r==="rtl"}),M.flex&&(_[`${C}-${R}-flex`]=!0,I[`--${C}-${R}-flex`]=cI(M.flex))});const $=le(C,{[`${C}-${l}`]:l!==void 0,[`${C}-order-${c}`]:c,[`${C}-offset-${u}`]:u,[`${C}-push-${f}`]:f,[`${C}-pull-${p}`]:p},m,_,T,O),k={};if(i&&i[0]>0){const R=i[0]/2;k.paddingLeft=R,k.paddingRight=R}return b&&(k.flex=cI(b),o===!1&&!k.minWidth&&(k.minWidth=0)),S(d.createElement("div",Object.assign({},x,{style:Object.assign(Object.assign(Object.assign({},k),E),I),className:$,ref:t}),g))});var tue=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function uI(e,t){const[n,r]=d.useState(typeof e=="string"?e:""),i=()=>{if(typeof e=="string"&&r(e),typeof e=="object")for(let o=0;o<Tc.length;o++){const a=Tc[o];if(!t[a])continue;const l=e[a];if(l!==void 0){r(l);return}}};return d.useEffect(()=>{i()},[JSON.stringify(e),t]),n}const cB=d.forwardRef((e,t)=>{const{prefixCls:n,justify:r,align:i,className:o,style:a,children:l,gutter:c=0,wrap:u}=e,f=tue(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:p,direction:m}=d.useContext(At),[g,b]=d.useState({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),[E,x]=d.useState({xs:!1,sm:!1,md:!1,lg:!1,xl:!1,xxl:!1}),C=uI(i,E),S=uI(r,E),T=d.useRef(c),O=oF();d.useEffect(()=>{const j=O.subscribe(U=>{x(U);const q=T.current||0;(!Array.isArray(q)&&typeof q=="object"||Array.isArray(q)&&(typeof q[0]=="object"||typeof q[1]=="object"))&&b(U)});return()=>O.unsubscribe(j)},[]);const I=()=>{const j=[void 0,void 0];return(Array.isArray(c)?c:[c,void 0]).forEach((q,A)=>{if(typeof q=="object")for(let P=0;P<Tc.length;P++){const Z=Tc[P];if(g[Z]&&q[Z]!==void 0){j[A]=q[Z];break}}else j[A]=q}),j},_=p("row",n),[$,k,R]=Qce(_),M=I(),H=le(_,{[`${_}-no-wrap`]:u===!1,[`${_}-${S}`]:S,[`${_}-${C}`]:C,[`${_}-rtl`]:m==="rtl"},o,k,R),B={},L=M[0]!=null&&M[0]>0?M[0]/-2:void 0;L&&(B.marginLeft=L,B.marginRight=L);const[D,z]=M;B.rowGap=z;const W=d.useMemo(()=>({gutter:[D,z],wrap:u}),[D,z,u]);return $(d.createElement(sB.Provider,{value:W},d.createElement("div",Object.assign({},f,{className:H,style:Object.assign(Object.assign({},B),a),ref:t}),l)))});function nue(e){return!!(e.addonBefore||e.addonAfter)}function rue(e){return!!(e.prefix||e.suffix||e.allowClear)}function dI(e,t,n){var r=t.cloneNode(!0),i=Object.create(e,{target:{value:r},currentTarget:{value:r}});return r.value=n,typeof t.selectionStart=="number"&&typeof t.selectionEnd=="number"&&(r.selectionStart=t.selectionStart,r.selectionEnd=t.selectionEnd),r.setSelectionRange=function(){t.setSelectionRange.apply(t,arguments)},i}function yy(e,t,n,r){if(n){var i=t;if(t.type==="click"){i=dI(t,e,""),n(i);return}if(e.type!=="file"&&r!==void 0){i=dI(t,e,r),n(i);return}n(i)}}function uB(e,t){if(e){e.focus(t);var n=t||{},r=n.cursor;if(r){var i=e.value.length;switch(r){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(i,i);break;default:e.setSelectionRange(0,i)}}}}var dB=be.forwardRef(function(e,t){var n,r,i=e.inputElement,o=e.children,a=e.prefixCls,l=e.prefix,c=e.suffix,u=e.addonBefore,f=e.addonAfter,p=e.className,m=e.style,g=e.disabled,b=e.readOnly,E=e.focused,x=e.triggerFocus,C=e.allowClear,S=e.value,T=e.handleReset,O=e.hidden,I=e.classes,_=e.classNames,$=e.dataAttrs,k=e.styles,R=e.components,M=e.onClear,H=o??i,B=(R==null?void 0:R.affixWrapper)||"span",L=(R==null?void 0:R.groupWrapper)||"span",D=(R==null?void 0:R.wrapper)||"span",z=(R==null?void 0:R.groupAddon)||"span",W=d.useRef(null),j=function(pe){var ve;(ve=W.current)!==null&&ve!==void 0&&ve.contains(pe.target)&&(x==null||x())},U=rue(e),q=d.cloneElement(H,{value:S,className:le(H.props.className,!U&&(_==null?void 0:_.variant))||null}),A=d.useRef(null);if(be.useImperativeHandle(t,function(){return{nativeElement:A.current||W.current}}),U){var P=null;if(C){var Z=!g&&!b&&S,V="".concat(a,"-clear-icon"),Y=$t(C)==="object"&&C!==null&&C!==void 0&&C.clearIcon?C.clearIcon:"✖";P=be.createElement("span",{onClick:function(pe){T==null||T(pe),M==null||M()},onMouseDown:function(pe){return pe.preventDefault()},className:le(V,J(J({},"".concat(V,"-hidden"),!Z),"".concat(V,"-has-suffix"),!!c)),role:"button",tabIndex:-1},Y)}var ee="".concat(a,"-affix-wrapper"),ue=le(ee,J(J(J(J(J({},"".concat(a,"-disabled"),g),"".concat(ee,"-disabled"),g),"".concat(ee,"-focused"),E),"".concat(ee,"-readonly"),b),"".concat(ee,"-input-with-clear-btn"),c&&C&&S),I==null?void 0:I.affixWrapper,_==null?void 0:_.affixWrapper,_==null?void 0:_.variant),ne=(c||C)&&be.createElement("span",{className:le("".concat(a,"-suffix"),_==null?void 0:_.suffix),style:k==null?void 0:k.suffix},P,c);q=be.createElement(B,ze({className:ue,style:k==null?void 0:k.affixWrapper,onClick:j},$==null?void 0:$.affixWrapper,{ref:W}),l&&be.createElement("span",{className:le("".concat(a,"-prefix"),_==null?void 0:_.prefix),style:k==null?void 0:k.prefix},l),q,ne)}if(nue(e)){var se="".concat(a,"-group"),me="".concat(se,"-addon"),ye="".concat(se,"-wrapper"),de=le("".concat(a,"-wrapper"),se,I==null?void 0:I.wrapper,_==null?void 0:_.wrapper),ce=le(ye,J({},"".concat(ye,"-disabled"),g),I==null?void 0:I.group,_==null?void 0:_.groupWrapper);q=be.createElement(L,{className:ce,ref:A},be.createElement(D,{className:de},u&&be.createElement(z,{className:me},u),q,f&&be.createElement(z,{className:me},f)))}return be.cloneElement(q,{className:le((n=q.props)===null||n===void 0?void 0:n.className,p)||null,style:te(te({},(r=q.props)===null||r===void 0?void 0:r.style),m),hidden:O})}),iue=["show"];function fB(e,t){return d.useMemo(function(){var n={};t&&(n.show=$t(t)==="object"&&t.formatter?t.formatter:!!t),n=te(te({},n),e);var r=n,i=r.show,o=Gt(r,iue);return te(te({},o),{},{show:!!i,showFormatter:typeof i=="function"?i:void 0,strategy:o.strategy||function(a){return a.length}})},[e,t])}var oue=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","onKeyUp","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],aue=d.forwardRef(function(e,t){var n=e.autoComplete,r=e.onChange,i=e.onFocus,o=e.onBlur,a=e.onPressEnter,l=e.onKeyDown,c=e.onKeyUp,u=e.prefixCls,f=u===void 0?"rc-input":u,p=e.disabled,m=e.htmlSize,g=e.className,b=e.maxLength,E=e.suffix,x=e.showCount,C=e.count,S=e.type,T=S===void 0?"text":S,O=e.classes,I=e.classNames,_=e.styles,$=e.onCompositionStart,k=e.onCompositionEnd,R=Gt(e,oue),M=d.useState(!1),H=Oe(M,2),B=H[0],L=H[1],D=d.useRef(!1),z=d.useRef(!1),W=d.useRef(null),j=d.useRef(null),U=function(Fe){W.current&&uB(W.current,Fe)},q=Tr(e.defaultValue,{value:e.value}),A=Oe(q,2),P=A[0],Z=A[1],V=P==null?"":String(P),Y=d.useState(null),ee=Oe(Y,2),ue=ee[0],ne=ee[1],se=fB(C,x),me=se.max||b,ye=se.strategy(V),de=!!me&&ye>me;d.useImperativeHandle(t,function(){var Le;return{focus:U,blur:function(){var Ke;(Ke=W.current)===null||Ke===void 0||Ke.blur()},setSelectionRange:function(Ke,Ve,Ce){var Pe;(Pe=W.current)===null||Pe===void 0||Pe.setSelectionRange(Ke,Ve,Ce)},select:function(){var Ke;(Ke=W.current)===null||Ke===void 0||Ke.select()},input:W.current,nativeElement:((Le=j.current)===null||Le===void 0?void 0:Le.nativeElement)||W.current}}),d.useEffect(function(){L(function(Le){return Le&&p?!1:Le})},[p]);var ce=function(Fe,Ke,Ve){var Ce=Ke;if(!D.current&&se.exceedFormatter&&se.max&&se.strategy(Ke)>se.max){if(Ce=se.exceedFormatter(Ke,{max:se.max}),Ke!==Ce){var Pe,We;ne([((Pe=W.current)===null||Pe===void 0?void 0:Pe.selectionStart)||0,((We=W.current)===null||We===void 0?void 0:We.selectionEnd)||0])}}else if(Ve.source==="compositionEnd")return;Z(Ce),W.current&&yy(W.current,Fe,r,Ce)};d.useEffect(function(){if(ue){var Le;(Le=W.current)===null||Le===void 0||Le.setSelectionRange.apply(Le,Qe(ue))}},[ue]);var oe=function(Fe){ce(Fe,Fe.target.value,{source:"change"})},pe=function(Fe){D.current=!1,ce(Fe,Fe.currentTarget.value,{source:"compositionEnd"}),k==null||k(Fe)},ve=function(Fe){a&&Fe.key==="Enter"&&!z.current&&(z.current=!0,a(Fe)),l==null||l(Fe)},Te=function(Fe){Fe.key==="Enter"&&(z.current=!1),c==null||c(Fe)},Ge=function(Fe){L(!0),i==null||i(Fe)},je=function(Fe){L(!1),o==null||o(Fe)},Je=function(Fe){Z(""),U(),W.current&&yy(W.current,Fe,r)},Se=de&&"".concat(f,"-out-of-range"),$e=function(){var Fe=tr(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]);return be.createElement("input",ze({autoComplete:n},Fe,{onChange:oe,onFocus:Ge,onBlur:je,onKeyDown:ve,onKeyUp:Te,className:le(f,J({},"".concat(f,"-disabled"),p),I==null?void 0:I.input),style:_==null?void 0:_.input,ref:W,size:m,type:T,onCompositionStart:function(Ve){D.current=!0,$==null||$(Ve)},onCompositionEnd:pe}))},qe=function(){var Fe=Number(me)>0;if(E||se.show){var Ke=se.showFormatter?se.showFormatter({value:V,count:ye,maxLength:me}):"".concat(ye).concat(Fe?" / ".concat(me):"");return be.createElement(be.Fragment,null,se.show&&be.createElement("span",{className:le("".concat(f,"-show-count-suffix"),J({},"".concat(f,"-show-count-has-suffix"),!!E),I==null?void 0:I.count),style:te({},_==null?void 0:_.count)},Ke),E)}return null};return be.createElement(dB,ze({},R,{prefixCls:f,className:le(g,Se),handleReset:Je,value:V,focused:B,triggerFocus:U,suffix:qe(),disabled:p,classes:O,classNames:I,styles:_}),$e())});const lue=e=>{const{getPrefixCls:t,direction:n}=d.useContext(At),{prefixCls:r,className:i}=e,o=t("input-group",r),a=t("input"),[l,c]=o3(a),u=le(o,{[`${o}-lg`]:e.size==="large",[`${o}-sm`]:e.size==="small",[`${o}-compact`]:e.compact,[`${o}-rtl`]:n==="rtl"},c,i),f=d.useContext(fo),p=d.useMemo(()=>Object.assign(Object.assign({},f),{isFormItemInput:!1}),[f]);return l(d.createElement("span",{className:u,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},d.createElement(fo.Provider,{value:p},e.children)))},hB=e=>{let t;return typeof e=="object"&&(e!=null&&e.clearIcon)?t=e:e&&(t={clearIcon:be.createElement(Ku,null)}),t};function pB(e,t){const n=d.useRef([]),r=()=>{n.current.push(setTimeout(()=>{var i,o,a,l;!((i=e.current)===null||i===void 0)&&i.input&&((o=e.current)===null||o===void 0?void 0:o.input.getAttribute("type"))==="password"&&(!((a=e.current)===null||a===void 0)&&a.input.hasAttribute("value"))&&((l=e.current)===null||l===void 0||l.input.removeAttribute("value"))}))};return d.useEffect(()=>(t&&r(),()=>n.current.forEach(i=>{i&&clearTimeout(i)})),[]),r}function sue(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}var cue=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const Yb=d.forwardRef((e,t)=>{var n;const{prefixCls:r,bordered:i=!0,status:o,size:a,disabled:l,onBlur:c,onFocus:u,suffix:f,allowClear:p,addonAfter:m,addonBefore:g,className:b,style:E,styles:x,rootClassName:C,onChange:S,classNames:T,variant:O}=e,I=cue(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]),{getPrefixCls:_,direction:$,input:k}=be.useContext(At),R=_("input",r),M=d.useRef(null),H=Kr(R),[B,L,D]=o3(R,H),{compactSize:z,compactItemClassnames:W}=_m(R,$),j=vo(oe=>{var pe;return(pe=a??z)!==null&&pe!==void 0?pe:oe}),U=be.useContext($a),q=l??U,{status:A,hasFeedback:P,feedbackIcon:Z}=d.useContext(fo),V=Hb(A,o),Y=sue(e)||!!P;d.useRef(Y);const ee=pB(M,!0),ue=oe=>{ee(),c==null||c(oe)},ne=oe=>{ee(),u==null||u(oe)},se=oe=>{ee(),S==null||S(oe)},me=(P||f)&&be.createElement(be.Fragment,null,f,P&&Z),ye=hB(p??(k==null?void 0:k.allowClear)),[de,ce]=D8("input",O,i);return B(be.createElement(aue,Object.assign({ref:eo(t,M),prefixCls:R,autoComplete:k==null?void 0:k.autoComplete},I,{disabled:q,onBlur:ue,onFocus:ne,style:Object.assign(Object.assign({},k==null?void 0:k.style),E),styles:Object.assign(Object.assign({},k==null?void 0:k.styles),x),suffix:me,allowClear:ye,className:le(b,C,D,H,W,k==null?void 0:k.className),onChange:se,addonBefore:g&&be.createElement(Jp,{form:!0,space:!0},g),addonAfter:m&&be.createElement(Jp,{form:!0,space:!0},m),classNames:Object.assign(Object.assign(Object.assign({},T),k==null?void 0:k.classNames),{input:le({[`${R}-sm`]:j==="small",[`${R}-lg`]:j==="large",[`${R}-rtl`]:$==="rtl"},T==null?void 0:T.input,(n=k==null?void 0:k.classNames)===null||n===void 0?void 0:n.input,L),variant:le({[`${R}-${de}`]:ce},dy(R,V)),affixWrapper:le({[`${R}-affix-wrapper-sm`]:j==="small",[`${R}-affix-wrapper-lg`]:j==="large",[`${R}-affix-wrapper-rtl`]:$==="rtl"},L),wrapper:le({[`${R}-group-rtl`]:$==="rtl"},L),groupWrapper:le({[`${R}-group-wrapper-sm`]:j==="small",[`${R}-group-wrapper-lg`]:j==="large",[`${R}-group-wrapper-rtl`]:$==="rtl",[`${R}-group-wrapper-${de}`]:ce},dy(`${R}-group-wrapper`,V,P),L)})})))}),uue=e=>{const{componentCls:t,paddingXS:n}=e;return{[t]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:n,"&-rtl":{direction:"rtl"},[`${t}-input`]:{textAlign:"center",paddingInline:e.paddingXXS},[`&${t}-sm ${t}-input`]:{paddingInline:e.calc(e.paddingXXS).div(2).equal()},[`&${t}-lg ${t}-input`]:{paddingInline:e.paddingXS}}}},due=Mn(["Input","OTP"],e=>{const t=hn(e,e3(e));return[uue(t)]},t3);var fue=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const hue=d.forwardRef((e,t)=>{const{value:n,onChange:r,onActiveChange:i,index:o,mask:a}=e,l=fue(e,["value","onChange","onActiveChange","index","mask"]),c=n&&typeof a=="string"?a:n,u=b=>{r(o,b.target.value)},f=d.useRef(null);d.useImperativeHandle(t,()=>f.current);const p=()=>{kn(()=>{var b;const E=(b=f.current)===null||b===void 0?void 0:b.input;document.activeElement===E&&E&&E.select()})},m=b=>{const{key:E,ctrlKey:x,metaKey:C}=b;E==="ArrowLeft"?i(o-1):E==="ArrowRight"?i(o+1):E==="z"&&(x||C)&&b.preventDefault(),p()},g=b=>{b.key==="Backspace"&&!n&&i(o-1),p()};return d.createElement(Yb,Object.assign({type:a===!0?"password":"text"},l,{ref:f,value:c,onInput:u,onFocus:p,onKeyDown:m,onKeyUp:g,onMouseDown:p,onMouseUp:p}))});var pue=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function ig(e){return(e||"").split("")}const mue=d.forwardRef((e,t)=>{const{prefixCls:n,length:r=6,size:i,defaultValue:o,value:a,onChange:l,formatter:c,variant:u,disabled:f,status:p,autoFocus:m,mask:g,type:b,onInput:E,inputMode:x}=e,C=pue(e,["prefixCls","length","size","defaultValue","value","onChange","formatter","variant","disabled","status","autoFocus","mask","type","onInput","inputMode"]),{getPrefixCls:S,direction:T}=d.useContext(At),O=S("otp",n),I=_i(C,{aria:!0,data:!0,attr:!0}),_=Kr(O),[$,k,R]=due(O,_),M=vo(Y=>i??Y),H=d.useContext(fo),B=Hb(H.status,p),L=d.useMemo(()=>Object.assign(Object.assign({},H),{status:B,hasFeedback:!1,feedbackIcon:null}),[H,B]),D=d.useRef(null),z=d.useRef({});d.useImperativeHandle(t,()=>({focus:()=>{var Y;(Y=z.current[0])===null||Y===void 0||Y.focus()},blur:()=>{var Y;for(let ee=0;ee<r;ee+=1)(Y=z.current[ee])===null||Y===void 0||Y.blur()},nativeElement:D.current}));const W=Y=>c?c(Y):Y,[j,U]=d.useState(ig(W(o||"")));d.useEffect(()=>{a!==void 0&&U(ig(a))},[a]);const q=Hn(Y=>{U(Y),E&&E(Y),l&&Y.length===r&&Y.every(ee=>ee)&&Y.some((ee,ue)=>j[ue]!==ee)&&l(Y.join(""))}),A=Hn((Y,ee)=>{let ue=Qe(j);for(let se=0;se<Y;se+=1)ue[se]||(ue[se]="");ee.length<=1?ue[Y]=ee:ue=ue.slice(0,Y).concat(ig(ee)),ue=ue.slice(0,r);for(let se=ue.length-1;se>=0&&!ue[se];se-=1)ue.pop();const ne=W(ue.map(se=>se||" ").join(""));return ue=ig(ne).map((se,me)=>se===" "&&!ue[me]?ue[me]:se),ue}),P=(Y,ee)=>{var ue;const ne=A(Y,ee),se=Math.min(Y+ee.length,r-1);se!==Y&&ne[Y]!==void 0&&((ue=z.current[se])===null||ue===void 0||ue.focus()),q(ne)},Z=Y=>{var ee;(ee=z.current[Y])===null||ee===void 0||ee.focus()},V={variant:u,disabled:f,status:B,mask:g,type:b,inputMode:x};return $(d.createElement("div",Object.assign({},I,{ref:D,className:le(O,{[`${O}-sm`]:M==="small",[`${O}-lg`]:M==="large",[`${O}-rtl`]:T==="rtl"},R,k)}),d.createElement(fo.Provider,{value:L},Array.from({length:r}).map((Y,ee)=>{const ue=`otp-${ee}`,ne=j[ee]||"";return d.createElement(hue,Object.assign({ref:se=>{z.current[ee]=se},key:ue,index:ee,size:M,htmlSize:1,className:`${O}-input`,onChange:P,value:ne,onActiveChange:Z,autoFocus:ee===0&&m},V))}))))});var gue={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"},vue=function(t,n){return d.createElement(on,ze({},t,{ref:n,icon:gue}))},yue=d.forwardRef(vue),bue={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"},Cue=function(t,n){return d.createElement(on,ze({},t,{ref:n,icon:bue}))},Qb=d.forwardRef(Cue),Sue=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const Eue=e=>e?d.createElement(Qb,null):d.createElement(yue,null),xue={click:"onClick",hover:"onMouseOver"},wue=d.forwardRef((e,t)=>{const{disabled:n,action:r="click",visibilityToggle:i=!0,iconRender:o=Eue}=e,a=d.useContext($a),l=n??a,c=typeof i=="object"&&i.visible!==void 0,[u,f]=d.useState(()=>c?i.visible:!1),p=d.useRef(null);d.useEffect(()=>{c&&f(i.visible)},[c,i]);const m=pB(p),g=()=>{l||(u&&m(),f(M=>{var H;const B=!M;return typeof i=="object"&&((H=i.onVisibleChange)===null||H===void 0||H.call(i,B)),B}))},b=M=>{const H=xue[r]||"",B=o(u),L={[H]:g,className:`${M}-icon`,key:"passwordIcon",onMouseDown:D=>{D.preventDefault()},onMouseUp:D=>{D.preventDefault()}};return d.cloneElement(d.isValidElement(B)?B:d.createElement("span",null,B),L)},{className:E,prefixCls:x,inputPrefixCls:C,size:S}=e,T=Sue(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:O}=d.useContext(At),I=O("input",C),_=O("input-password",x),$=i&&b(_),k=le(_,E,{[`${_}-${S}`]:!!S}),R=Object.assign(Object.assign({},tr(T,["suffix","iconRender","visibilityToggle"])),{type:u?"text":"password",className:k,prefixCls:I,suffix:$});return S&&(R.size=S),d.createElement(Yb,Object.assign({ref:eo(t,p)},R))});var Tue=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const _ue=d.forwardRef((e,t)=>{const{prefixCls:n,inputPrefixCls:r,className:i,size:o,suffix:a,enterButton:l=!1,addonAfter:c,loading:u,disabled:f,onSearch:p,onChange:m,onCompositionStart:g,onCompositionEnd:b}=e,E=Tue(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:x,direction:C}=d.useContext(At),S=d.useRef(!1),T=x("input-search",n),O=x("input",r),{compactSize:I}=_m(T,C),_=vo(A=>{var P;return(P=o??I)!==null&&P!==void 0?P:A}),$=d.useRef(null),k=A=>{A!=null&&A.target&&A.type==="click"&&p&&p(A.target.value,A,{source:"clear"}),m==null||m(A)},R=A=>{var P;document.activeElement===((P=$.current)===null||P===void 0?void 0:P.input)&&A.preventDefault()},M=A=>{var P,Z;p&&p((Z=(P=$.current)===null||P===void 0?void 0:P.input)===null||Z===void 0?void 0:Z.value,A,{source:"input"})},H=A=>{S.current||u||M(A)},B=typeof l=="boolean"?d.createElement(j8,null):null,L=`${T}-button`;let D;const z=l||{},W=z.type&&z.type.__ANT_BUTTON===!0;W||z.type==="button"?D=mi(z,Object.assign({onMouseDown:R,onClick:A=>{var P,Z;(Z=(P=z==null?void 0:z.props)===null||P===void 0?void 0:P.onClick)===null||Z===void 0||Z.call(P,A),M(A)},key:"enterButton"},W?{className:L,size:_}:{})):D=d.createElement(Dn,{className:L,type:l?"primary":void 0,size:_,disabled:f,key:"enterButton",onMouseDown:R,onClick:M,loading:u,icon:B},l),c&&(D=[D,mi(c,{key:"addonAfter"})]);const j=le(T,{[`${T}-rtl`]:C==="rtl",[`${T}-${_}`]:!!_,[`${T}-with-button`]:!!l},i),U=A=>{S.current=!0,g==null||g(A)},q=A=>{S.current=!1,b==null||b(A)};return d.createElement(Yb,Object.assign({ref:eo($,t),onPressEnter:H},E,{size:_,onCompositionStart:U,onCompositionEnd:q,prefixCls:O,addonAfter:D,suffix:a,onChange:k,className:j,disabled:f}))});var Oue=`
min-height:0 !important;
max-height:none !important;
height:0 !important;
visibility:hidden !important;
overflow:hidden !important;
position:absolute !important;
z-index:-1000 !important;
top:0 !important;
right:0 !important;
pointer-events: none !important;
`,Iue=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break","white-space"],D4={},zo;function $ue(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&D4[n])return D4[n];var r=window.getComputedStyle(e),i=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),o=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),a=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),l=Iue.map(function(u){return"".concat(u,":").concat(r.getPropertyValue(u))}).join(";"),c={sizingStyle:l,paddingSize:o,borderSize:a,boxSizing:i};return t&&n&&(D4[n]=c),c}function Nue(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;zo||(zo=document.createElement("textarea"),zo.setAttribute("tab-index","-1"),zo.setAttribute("aria-hidden","true"),zo.setAttribute("name","hiddenTextarea"),document.body.appendChild(zo)),e.getAttribute("wrap")?zo.setAttribute("wrap",e.getAttribute("wrap")):zo.removeAttribute("wrap");var i=$ue(e,t),o=i.paddingSize,a=i.borderSize,l=i.boxSizing,c=i.sizingStyle;zo.setAttribute("style","".concat(c,";").concat(Oue)),zo.value=e.value||e.placeholder||"";var u=void 0,f=void 0,p,m=zo.scrollHeight;if(l==="border-box"?m+=a:l==="content-box"&&(m-=o),n!==null||r!==null){zo.value=" ";var g=zo.scrollHeight-o;n!==null&&(u=g*n,l==="border-box"&&(u=u+o+a),m=Math.max(u,m)),r!==null&&(f=g*r,l==="border-box"&&(f=f+o+a),p=m>f?"":"hidden",m=Math.min(f,m))}var b={height:m,overflowY:p,resize:"none"};return u&&(b.minHeight=u),f&&(b.maxHeight=f),b}var Aue=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],F4=0,B4=1,j4=2,kue=d.forwardRef(function(e,t){var n=e,r=n.prefixCls,i=n.defaultValue,o=n.value,a=n.autoSize,l=n.onResize,c=n.className,u=n.style,f=n.disabled,p=n.onChange;n.onInternalAutoSize;var m=Gt(n,Aue),g=Tr(i,{value:o,postState:function(Y){return Y??""}}),b=Oe(g,2),E=b[0],x=b[1],C=function(Y){x(Y.target.value),p==null||p(Y)},S=d.useRef();d.useImperativeHandle(t,function(){return{textArea:S.current}});var T=d.useMemo(function(){return a&&$t(a)==="object"?[a.minRows,a.maxRows]:[]},[a]),O=Oe(T,2),I=O[0],_=O[1],$=!!a,k=function(){try{if(document.activeElement===S.current){var Y=S.current,ee=Y.selectionStart,ue=Y.selectionEnd,ne=Y.scrollTop;S.current.setSelectionRange(ee,ue),S.current.scrollTop=ne}}catch{}},R=d.useState(j4),M=Oe(R,2),H=M[0],B=M[1],L=d.useState(),D=Oe(L,2),z=D[0],W=D[1],j=function(){B(F4)};bn(function(){$&&j()},[o,I,_,$]),bn(function(){if(H===F4)B(B4);else if(H===B4){var V=Nue(S.current,!1,I,_);B(j4),W(V)}else k()},[H]);var U=d.useRef(),q=function(){kn.cancel(U.current)},A=function(Y){H===j4&&(l==null||l(Y),a&&(q(),U.current=kn(function(){j()})))};d.useEffect(function(){return q},[]);var P=$?z:null,Z=te(te({},u),P);return(H===F4||H===B4)&&(Z.overflowY="hidden",Z.overflowX="hidden"),d.createElement(Yi,{onResize:A,disabled:!(a||l)},d.createElement("textarea",ze({},m,{ref:S,style:Z,className:le(r,c,J({},"".concat(r,"-disabled"),f)),disabled:f,value:E,onChange:C})))}),Rue=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","showCount","count","className","style","disabled","hidden","classNames","styles","onResize","onClear","onPressEnter","readOnly","autoSize","onKeyDown"],Mue=be.forwardRef(function(e,t){var n,r=e.defaultValue,i=e.value,o=e.onFocus,a=e.onBlur,l=e.onChange,c=e.allowClear,u=e.maxLength,f=e.onCompositionStart,p=e.onCompositionEnd,m=e.suffix,g=e.prefixCls,b=g===void 0?"rc-textarea":g,E=e.showCount,x=e.count,C=e.className,S=e.style,T=e.disabled,O=e.hidden,I=e.classNames,_=e.styles,$=e.onResize,k=e.onClear,R=e.onPressEnter,M=e.readOnly,H=e.autoSize,B=e.onKeyDown,L=Gt(e,Rue),D=Tr(r,{value:i,defaultValue:r}),z=Oe(D,2),W=z[0],j=z[1],U=W==null?"":String(W),q=be.useState(!1),A=Oe(q,2),P=A[0],Z=A[1],V=be.useRef(!1),Y=be.useState(null),ee=Oe(Y,2),ue=ee[0],ne=ee[1],se=d.useRef(null),me=d.useRef(null),ye=function(){var re;return(re=me.current)===null||re===void 0?void 0:re.textArea},de=function(){ye().focus()};d.useImperativeHandle(t,function(){var ot;return{resizableTextArea:me.current,focus:de,blur:function(){ye().blur()},nativeElement:((ot=se.current)===null||ot===void 0?void 0:ot.nativeElement)||ye()}}),d.useEffect(function(){Z(function(ot){return!T&&ot})},[T]);var ce=be.useState(null),oe=Oe(ce,2),pe=oe[0],ve=oe[1];be.useEffect(function(){if(pe){var ot;(ot=ye()).setSelectionRange.apply(ot,Qe(pe))}},[pe]);var Te=fB(x,E),Ge=(n=Te.max)!==null&&n!==void 0?n:u,je=Number(Ge)>0,Je=Te.strategy(U),Se=!!Ge&&Je>Ge,$e=function(re,Ie){var Re=Ie;!V.current&&Te.exceedFormatter&&Te.max&&Te.strategy(Ie)>Te.max&&(Re=Te.exceedFormatter(Ie,{max:Te.max}),Ie!==Re&&ve([ye().selectionStart||0,ye().selectionEnd||0])),j(Re),yy(re.currentTarget,re,l,Re)},qe=function(re){V.current=!0,f==null||f(re)},Le=function(re){V.current=!1,$e(re,re.currentTarget.value),p==null||p(re)},Fe=function(re){$e(re,re.target.value)},Ke=function(re){re.key==="Enter"&&R&&R(re),B==null||B(re)},Ve=function(re){Z(!0),o==null||o(re)},Ce=function(re){Z(!1),a==null||a(re)},Pe=function(re){j(""),de(),yy(ye(),re,l)},We=m,Ze;Te.show&&(Te.showFormatter?Ze=Te.showFormatter({value:U,count:Je,maxLength:Ge}):Ze="".concat(Je).concat(je?" / ".concat(Ge):""),We=be.createElement(be.Fragment,null,We,be.createElement("span",{className:le("".concat(b,"-data-count"),I==null?void 0:I.count),style:_==null?void 0:_.count},Ze)));var ut=function(re){var Ie;$==null||$(re),(Ie=ye())!==null&&Ie!==void 0&&Ie.style.height&&ne(!0)},Be=!H&&!E&&!c;return be.createElement(dB,{ref:se,value:U,allowClear:c,handleReset:Pe,suffix:We,prefixCls:b,classNames:te(te({},I),{},{affixWrapper:le(I==null?void 0:I.affixWrapper,J(J({},"".concat(b,"-show-count"),E),"".concat(b,"-textarea-allow-clear"),c))}),disabled:T,focused:P,className:le(C,Se&&"".concat(b,"-out-of-range")),style:te(te({},S),ue&&!Be?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Ze=="string"?Ze:void 0}},hidden:O,readOnly:M,onClear:k},be.createElement(kue,ze({},L,{autoSize:H,maxLength:u,onKeyDown:Ke,onChange:Fe,onFocus:Ve,onBlur:Ce,onCompositionStart:qe,onCompositionEnd:Le,className:le(I==null?void 0:I.textarea),style:te(te({},_==null?void 0:_.textarea),{},{resize:S==null?void 0:S.resize}),disabled:T,prefixCls:b,onResize:ut,ref:me,readOnly:M})))}),Pue=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const mB=d.forwardRef((e,t)=>{var n,r;const{prefixCls:i,bordered:o=!0,size:a,disabled:l,status:c,allowClear:u,classNames:f,rootClassName:p,className:m,style:g,styles:b,variant:E}=e,x=Pue(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant"]),{getPrefixCls:C,direction:S,textArea:T}=d.useContext(At),O=vo(a),I=d.useContext($a),_=l??I,{status:$,hasFeedback:k,feedbackIcon:R}=d.useContext(fo),M=Hb($,c),H=d.useRef(null);d.useImperativeHandle(t,()=>{var A;return{resizableTextArea:(A=H.current)===null||A===void 0?void 0:A.resizableTextArea,focus:P=>{var Z,V;uB((V=(Z=H.current)===null||Z===void 0?void 0:Z.resizableTextArea)===null||V===void 0?void 0:V.textArea,P)},blur:()=>{var P;return(P=H.current)===null||P===void 0?void 0:P.blur()}}});const B=C("input",i),L=Kr(B),[D,z,W]=o3(B,L),[j,U]=D8("textArea",E,o),q=hB(u??(T==null?void 0:T.allowClear));return D(d.createElement(Mue,Object.assign({autoComplete:T==null?void 0:T.autoComplete},x,{style:Object.assign(Object.assign({},T==null?void 0:T.style),g),styles:Object.assign(Object.assign({},T==null?void 0:T.styles),b),disabled:_,allowClear:q,className:le(W,L,m,p,T==null?void 0:T.className),classNames:Object.assign(Object.assign(Object.assign({},f),T==null?void 0:T.classNames),{textarea:le({[`${B}-sm`]:O==="small",[`${B}-lg`]:O==="large"},z,f==null?void 0:f.textarea,(n=T==null?void 0:T.classNames)===null||n===void 0?void 0:n.textarea),variant:le({[`${B}-${j}`]:U},dy(B,M)),affixWrapper:le(`${B}-textarea-affix-wrapper`,{[`${B}-affix-wrapper-rtl`]:S==="rtl",[`${B}-affix-wrapper-sm`]:O==="small",[`${B}-affix-wrapper-lg`]:O==="large",[`${B}-textarea-show-count`]:e.showCount||((r=e.count)===null||r===void 0?void 0:r.show)},z)}),prefixCls:B,suffix:k&&d.createElement("span",{className:`${B}-textarea-suffix`},R),ref:H})))}),Ji=Yb;Ji.Group=lue;Ji.Search=_ue;Ji.TextArea=mB;Ji.Password=wue;Ji.OTP=mue;const Lue={xxl:3,xl:3,lg:3,md:3,sm:2,xs:1},gB=be.createContext({});var Due=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const Fue=e=>ri(e).map(t=>Object.assign(Object.assign({},t==null?void 0:t.props),{key:t.key}));function Bue(e,t,n){const r=d.useMemo(()=>t||Fue(n),[t,n]);return d.useMemo(()=>r.map(o=>{var{span:a}=o,l=Due(o,["span"]);return a==="filled"?Object.assign(Object.assign({},l),{filled:!0}):Object.assign(Object.assign({},l),{span:typeof a=="number"?a:aF(e,a)})}),[r,e])}var jue=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function Hue(e,t){let n=[],r=[],i=!1,o=0;return e.filter(a=>a).forEach(a=>{const{filled:l}=a,c=jue(a,["filled"]);if(l){r.push(c),n.push(r),r=[],o=0;return}const u=t-o;o+=a.span||1,o>=t?(o>t?(i=!0,r.push(Object.assign(Object.assign({},c),{span:u}))):r.push(c),n.push(r),r=[],o=0):r.push(c)}),r.length>0&&n.push(r),n=n.map(a=>{const l=a.reduce((c,u)=>c+(u.span||1),0);if(l<t){const c=a[a.length-1];return c.span=t-l+1,a}return a}),[n,i]}const zue=(e,t)=>{const[n,r]=d.useMemo(()=>Hue(t,e),[t,e]);return n},Wue=e=>{let{children:t}=e;return t};function fI(e){return e!=null}const H4=e=>{const{itemPrefixCls:t,component:n,span:r,className:i,style:o,labelStyle:a,contentStyle:l,bordered:c,label:u,content:f,colon:p,type:m}=e,g=n;return c?d.createElement(g,{className:le({[`${t}-item-label`]:m==="label",[`${t}-item-content`]:m==="content"},i),style:o,colSpan:r},fI(u)&&d.createElement("span",{style:a},u),fI(f)&&d.createElement("span",{style:l},f)):d.createElement(g,{className:le(`${t}-item`,i),style:o,colSpan:r},d.createElement("div",{className:`${t}-item-container`},(u||u===0)&&d.createElement("span",{className:le(`${t}-item-label`,{[`${t}-item-no-colon`]:!p}),style:a},u),(f||f===0)&&d.createElement("span",{className:le(`${t}-item-content`),style:l},f)))};function z4(e,t,n){let{colon:r,prefixCls:i,bordered:o}=t,{component:a,type:l,showLabel:c,showContent:u,labelStyle:f,contentStyle:p}=n;return e.map((m,g)=>{let{label:b,children:E,prefixCls:x=i,className:C,style:S,labelStyle:T,contentStyle:O,span:I=1,key:_}=m;return typeof a=="string"?d.createElement(H4,{key:`${l}-${_||g}`,className:C,style:S,labelStyle:Object.assign(Object.assign({},f),T),contentStyle:Object.assign(Object.assign({},p),O),span:I,colon:r,component:a,itemPrefixCls:x,bordered:o,label:c?b:null,content:u?E:null,type:l}):[d.createElement(H4,{key:`label-${_||g}`,className:C,style:Object.assign(Object.assign(Object.assign({},f),S),T),span:1,colon:r,component:a[0],itemPrefixCls:x,bordered:o,label:b,type:"label"}),d.createElement(H4,{key:`content-${_||g}`,className:C,style:Object.assign(Object.assign(Object.assign({},p),S),O),span:I*2-1,component:a[1],itemPrefixCls:x,bordered:o,content:E,type:"content"})]})}const Uue=e=>{const t=d.useContext(gB),{prefixCls:n,vertical:r,row:i,index:o,bordered:a}=e;return r?d.createElement(d.Fragment,null,d.createElement("tr",{key:`label-${o}`,className:`${n}-row`},z4(i,e,Object.assign({component:"th",type:"label",showLabel:!0},t))),d.createElement("tr",{key:`content-${o}`,className:`${n}-row`},z4(i,e,Object.assign({component:"td",type:"content",showContent:!0},t)))):d.createElement("tr",{key:o,className:`${n}-row`},z4(i,e,Object.assign({component:a?["th","td"]:"td",type:"item",showLabel:!0,showContent:!0},t)))},Kue=e=>{const{componentCls:t,labelBg:n}=e;return{[`&${t}-bordered`]:{[`> ${t}-view`]:{border:`${ie(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"> table":{tableLayout:"auto"},[`${t}-row`]:{borderBottom:`${ie(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderBottom:"none"},[`> ${t}-item-label, > ${t}-item-content`]:{padding:`${ie(e.padding)} ${ie(e.paddingLG)}`,borderInlineEnd:`${ie(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderInlineEnd:"none"}},[`> ${t}-item-label`]:{color:e.colorTextSecondary,backgroundColor:n,"&::after":{display:"none"}}}},[`&${t}-middle`]:{[`${t}-row`]:{[`> ${t}-item-label, > ${t}-item-content`]:{padding:`${ie(e.paddingSM)} ${ie(e.paddingLG)}`}}},[`&${t}-small`]:{[`${t}-row`]:{[`> ${t}-item-label, > ${t}-item-content`]:{padding:`${ie(e.paddingXS)} ${ie(e.padding)}`}}}}}},Vue=e=>{const{componentCls:t,extraColor:n,itemPaddingBottom:r,itemPaddingEnd:i,colonMarginRight:o,colonMarginLeft:a,titleMarginBottom:l}=e;return{[t]:Object.assign(Object.assign(Object.assign({},Fn(e)),Kue(e)),{"&-rtl":{direction:"rtl"},[`${t}-header`]:{display:"flex",alignItems:"center",marginBottom:l},[`${t}-title`]:Object.assign(Object.assign({},al),{flex:"auto",color:e.titleColor,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG,lineHeight:e.lineHeightLG}),[`${t}-extra`]:{marginInlineStart:"auto",color:n,fontSize:e.fontSize},[`${t}-view`]:{width:"100%",borderRadius:e.borderRadiusLG,table:{width:"100%",tableLayout:"fixed",borderCollapse:"collapse"}},[`${t}-row`]:{"> th, > td":{paddingBottom:r,paddingInlineEnd:i},"> th:last-child, > td:last-child":{paddingInlineEnd:0},"&:last-child":{borderBottom:"none","> th, > td":{paddingBottom:0}}},[`${t}-item-label`]:{color:e.colorTextTertiary,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,textAlign:"start","&::after":{content:'":"',position:"relative",top:-.5,marginInline:`${ie(a)} ${ie(o)}`},[`&${t}-item-no-colon::after`]:{content:'""'}},[`${t}-item-no-label`]:{"&::after":{margin:0,content:'""'}},[`${t}-item-content`]:{display:"table-cell",flex:1,color:e.contentColor,fontSize:e.fontSize,lineHeight:e.lineHeight,wordBreak:"break-word",overflowWrap:"break-word"},[`${t}-item`]:{paddingBottom:0,verticalAlign:"top","&-container":{display:"flex",[`${t}-item-label`]:{display:"inline-flex",alignItems:"baseline"},[`${t}-item-content`]:{display:"inline-flex",alignItems:"baseline",minWidth:"1em"}}},"&-middle":{[`${t}-row`]:{"> th, > td":{paddingBottom:e.paddingSM}}},"&-small":{[`${t}-row`]:{"> th, > td":{paddingBottom:e.paddingXS}}}})}},Gue=e=>({labelBg:e.colorFillAlter,titleColor:e.colorText,titleMarginBottom:e.fontSizeSM*e.lineHeightSM,itemPaddingBottom:e.padding,itemPaddingEnd:e.padding,colonMarginRight:e.marginXS,colonMarginLeft:e.marginXXS/2,contentColor:e.colorText,extraColor:e.colorText}),que=Mn("Descriptions",e=>{const t=hn(e,{});return Vue(t)},Gue);var Xue=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const cv=e=>{const{prefixCls:t,title:n,extra:r,column:i,colon:o=!0,bordered:a,layout:l,children:c,className:u,rootClassName:f,style:p,size:m,labelStyle:g,contentStyle:b,items:E}=e,x=Xue(e,["prefixCls","title","extra","column","colon","bordered","layout","children","className","rootClassName","style","size","labelStyle","contentStyle","items"]),{getPrefixCls:C,direction:S,descriptions:T}=d.useContext(At),O=C("descriptions",t),I=zb(),_=d.useMemo(()=>{var D;return typeof i=="number"?i:(D=aF(I,Object.assign(Object.assign({},Lue),i)))!==null&&D!==void 0?D:3},[I,i]),$=Bue(I,E,c),k=vo(m),R=zue(_,$),[M,H,B]=que(O),L=d.useMemo(()=>({labelStyle:g,contentStyle:b}),[g,b]);return M(d.createElement(gB.Provider,{value:L},d.createElement("div",Object.assign({className:le(O,T==null?void 0:T.className,{[`${O}-${k}`]:k&&k!=="default",[`${O}-bordered`]:!!a,[`${O}-rtl`]:S==="rtl"},u,f,H,B),style:Object.assign(Object.assign({},T==null?void 0:T.style),p)},x),(n||r)&&d.createElement("div",{className:`${O}-header`},n&&d.createElement("div",{className:`${O}-title`},n),r&&d.createElement("div",{className:`${O}-extra`},r)),d.createElement("div",{className:`${O}-view`},d.createElement("table",null,d.createElement("tbody",null,R.map((D,z)=>d.createElement(Uue,{key:z,index:z,colon:o,prefixCls:O,vertical:l==="vertical",bordered:a,row:D}))))))))};cv.Item=Wue;function hI(e){return["small","middle","large"].includes(e)}function pI(e){return e?typeof e=="number"&&!Number.isNaN(e):!1}const vB=be.createContext({latestIndex:0}),Yue=vB.Provider,Que=e=>{let{className:t,index:n,children:r,split:i,style:o}=e;const{latestIndex:a}=d.useContext(vB);return r==null?null:d.createElement(d.Fragment,null,d.createElement("div",{className:t,style:o},r),n<a&&i&&d.createElement("span",{className:`${t}-split`},i))};var Zue=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const Jue=d.forwardRef((e,t)=>{var n,r,i;const{getPrefixCls:o,space:a,direction:l}=d.useContext(At),{size:c=(n=a==null?void 0:a.size)!==null&&n!==void 0?n:"small",align:u,className:f,rootClassName:p,children:m,direction:g="horizontal",prefixCls:b,split:E,style:x,wrap:C=!1,classNames:S,styles:T}=e,O=Zue(e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[I,_]=Array.isArray(c)?c:[c,c],$=hI(_),k=hI(I),R=pI(_),M=pI(I),H=ri(m,{keepEmpty:!0}),B=u===void 0&&g==="horizontal"?"center":u,L=o("space",b),[D,z,W]=qL(L),j=le(L,a==null?void 0:a.className,z,`${L}-${g}`,{[`${L}-rtl`]:l==="rtl",[`${L}-align-${B}`]:B,[`${L}-gap-row-${_}`]:$,[`${L}-gap-col-${I}`]:k},f,p,W),U=le(`${L}-item`,(r=S==null?void 0:S.item)!==null&&r!==void 0?r:(i=a==null?void 0:a.classNames)===null||i===void 0?void 0:i.item);let q=0;const A=H.map((V,Y)=>{var ee,ue;V!=null&&(q=Y);const ne=(V==null?void 0:V.key)||`${U}-${Y}`;return d.createElement(Que,{className:U,key:ne,index:Y,split:E,style:(ee=T==null?void 0:T.item)!==null&&ee!==void 0?ee:(ue=a==null?void 0:a.styles)===null||ue===void 0?void 0:ue.item},V)}),P=d.useMemo(()=>({latestIndex:q}),[q]);if(H.length===0)return null;const Z={};return C&&(Z.flexWrap="wrap"),!k&&M&&(Z.columnGap=I),!$&&R&&(Z.rowGap=_),D(d.createElement("div",Object.assign({ref:t,className:j,style:Object.assign(Object.assign(Object.assign({},Z),a==null?void 0:a.style),x)},O),d.createElement(Yue,{value:P},A)))}),ho=Jue;ho.Compact=Aee;var ede=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const yB=e=>{const{getPopupContainer:t,getPrefixCls:n,direction:r}=d.useContext(At),{prefixCls:i,type:o="default",danger:a,disabled:l,loading:c,onClick:u,htmlType:f,children:p,className:m,menu:g,arrow:b,autoFocus:E,overlay:x,trigger:C,align:S,open:T,onOpenChange:O,placement:I,getPopupContainer:_,href:$,icon:k=d.createElement(Z8,null),title:R,buttonsRender:M=se=>se,mouseEnterDelay:H,mouseLeaveDelay:B,overlayClassName:L,overlayStyle:D,destroyPopupOnHide:z,dropdownRender:W}=e,j=ede(e,["prefixCls","type","danger","disabled","loading","onClick","htmlType","children","className","menu","arrow","autoFocus","overlay","trigger","align","open","onOpenChange","placement","getPopupContainer","href","icon","title","buttonsRender","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyPopupOnHide","dropdownRender"]),U=n("dropdown",i),q=`${U}-button`,A={menu:g,arrow:b,autoFocus:E,align:S,disabled:l,trigger:l?[]:C,onOpenChange:O,getPopupContainer:_||t,mouseEnterDelay:H,mouseLeaveDelay:B,overlayClassName:L,overlayStyle:D,destroyPopupOnHide:z,dropdownRender:W},{compactSize:P,compactItemClassnames:Z}=_m(U,r),V=le(q,Z,m);"overlay"in e&&(A.overlay=x),"open"in e&&(A.open=T),"placement"in e?A.placement=I:A.placement=r==="rtl"?"bottomLeft":"bottomRight";const Y=d.createElement(Dn,{type:o,danger:a,disabled:l,loading:c,onClick:u,htmlType:f,href:$,title:R},p),ee=d.createElement(Dn,{type:o,danger:a,icon:k}),[ue,ne]=M([Y,ee]);return d.createElement(ho.Compact,Object.assign({className:V,size:P,block:!0},j),ue,d.createElement(Rm,Object.assign({},A),ne))};yB.__ANT_BUTTON=!0;const Lm=Rm;Lm.Button=yB;var tde={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494zM504 618H320c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM312 490v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H320c-4.4 0-8 3.6-8 8z"}}]},name:"file-text",theme:"outlined"},nde=function(t,n){return d.createElement(on,ze({},t,{ref:n,icon:tde}))},rde=d.forwardRef(nde);function by(e){const[t,n]=d.useState(e);return d.useEffect(()=>{const r=setTimeout(()=>{n(e)},e.length?0:10);return()=>{clearTimeout(r)}},[e]),t}const ide=e=>{const{componentCls:t}=e,n=`${t}-show-help`,r=`${t}-show-help-item`;return{[n]:{transition:`opacity ${e.motionDurationFast} ${e.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[r]:{overflow:"hidden",transition:`height ${e.motionDurationFast} ${e.motionEaseInOut},
opacity ${e.motionDurationFast} ${e.motionEaseInOut},
transform ${e.motionDurationFast} ${e.motionEaseInOut} !important`,[`&${r}-appear, &${r}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${r}-leave-active`]:{transform:"translateY(-5px)"}}}}},ode=e=>({legend:{display:"block",width:"100%",marginBottom:e.marginLG,padding:0,color:e.colorTextDescription,fontSize:e.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${ie(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},'input[type="search"]':{boxSizing:"border-box"},'input[type="radio"], input[type="checkbox"]':{lineHeight:"normal"},'input[type="file"]':{display:"block"},'input[type="range"]':{display:"block",width:"100%"},"select[multiple], select[size]":{height:"auto"},"input[type='file']:focus,\n input[type='radio']:focus,\n input[type='checkbox']:focus":{outline:0,boxShadow:`0 0 0 ${ie(e.controlOutlineWidth)} ${e.controlOutline}`},output:{display:"block",paddingTop:15,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight}}),mI=(e,t)=>{const{formItemCls:n}=e;return{[n]:{[`${n}-label > label`]:{height:t},[`${n}-control-input`]:{minHeight:t}}}},ade=e=>{const{componentCls:t}=e;return{[e.componentCls]:Object.assign(Object.assign(Object.assign({},Fn(e)),ode(e)),{[`${t}-text`]:{display:"inline-block",paddingInlineEnd:e.paddingSM},"&-small":Object.assign({},mI(e,e.controlHeightSM)),"&-large":Object.assign({},mI(e,e.controlHeightLG))})}},lde=e=>{const{formItemCls:t,iconCls:n,componentCls:r,rootPrefixCls:i,antCls:o,labelRequiredMarkColor:a,labelColor:l,labelFontSize:c,labelHeight:u,labelColonMarginInlineStart:f,labelColonMarginInlineEnd:p,itemMarginBottom:m}=e;return{[t]:Object.assign(Object.assign({},Fn(e)),{marginBottom:m,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,
&-hidden${o}-row`]:{display:"none"},"&-has-warning":{[`${t}-split`]:{color:e.colorError}},"&-has-error":{[`${t}-split`]:{color:e.colorWarning}},[`${t}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:e.lineHeight,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:u,color:l,fontSize:c,[`> ${n}`]:{fontSize:e.fontSize,verticalAlign:"top"},[`&${t}-required:not(${t}-required-mark-optional)::before`]:{display:"inline-block",marginInlineEnd:e.marginXXS,color:a,fontSize:e.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"',[`${r}-hide-required-mark &`]:{display:"none"}},[`${t}-optional`]:{display:"inline-block",marginInlineStart:e.marginXXS,color:e.colorTextDescription,[`${r}-hide-required-mark &`]:{display:"none"}},[`${t}-tooltip`]:{color:e.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:e.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:f,marginInlineEnd:p},[`&${t}-no-colon::after`]:{content:'"\\a0"'}}},[`${t}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${i}-col-'"]):not([class*="' ${i}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:e.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[t]:{"&-additional":{display:"flex",flexDirection:"column"},"&-explain, &-extra":{clear:"both",color:e.colorTextDescription,fontSize:e.fontSize,lineHeight:e.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:e.controlHeightSM,transition:`color ${e.motionDurationMid} ${e.motionEaseOut}`},"&-explain":{"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning}}},[`&-with-help ${t}-explain`]:{height:"auto",opacity:1},[`${t}-feedback-icon`]:{fontSize:e.fontSize,textAlign:"center",visibility:"visible",animationName:b8,animationDuration:e.motionDurationMid,animationTimingFunction:e.motionEaseOutBack,pointerEvents:"none","&-success":{color:e.colorSuccess},"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning},"&-validating":{color:e.colorPrimary}}})}},gI=(e,t)=>{const{formItemCls:n}=e;return{[`${t}-horizontal`]:{[`${n}-label`]:{flexGrow:0},[`${n}-control`]:{flex:"1 1 0",minWidth:0},[`${n}-label[class$='-24'], ${n}-label[class*='-24 ']`]:{[`& + ${n}-control`]:{minWidth:"unset"}}}}},sde=e=>{const{componentCls:t,formItemCls:n,inlineItemMarginBottom:r}=e;return{[`${t}-inline`]:{display:"flex",flexWrap:"wrap",[n]:{flex:"none",marginInlineEnd:e.margin,marginBottom:r,"&-row":{flexWrap:"nowrap"},[`> ${n}-label,
> ${n}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${n}-label`]:{flex:"none"},[`${t}-text`]:{display:"inline-block"},[`${n}-has-feedback`]:{display:"inline-block"}}}}},Qa=e=>({padding:e.verticalLabelPadding,margin:e.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),bB=e=>{const{componentCls:t,formItemCls:n,rootPrefixCls:r}=e;return{[`${n} ${n}-label`]:Qa(e),[`${t}:not(${t}-inline)`]:{[n]:{flexWrap:"wrap",[`${n}-label, ${n}-control`]:{[`&:not([class*=" ${r}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},cde=e=>{const{componentCls:t,formItemCls:n,antCls:r}=e;return{[`${t}-vertical`]:{[`${n}:not(${n}-horizontal)`]:{[`${n}-row`]:{flexDirection:"column"},[`${n}-label > label`]:{height:"auto"},[`${n}-control`]:{width:"100%"},[`${n}-label,
${r}-col-24${n}-label,
${r}-col-xl-24${n}-label`]:Qa(e)}},[`@media (max-width: ${ie(e.screenXSMax)})`]:[bB(e),{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-xs-24${n}-label`]:Qa(e)}}}],[`@media (max-width: ${ie(e.screenSMMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-sm-24${n}-label`]:Qa(e)}}},[`@media (max-width: ${ie(e.screenMDMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-md-24${n}-label`]:Qa(e)}}},[`@media (max-width: ${ie(e.screenLGMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-lg-24${n}-label`]:Qa(e)}}}}},ude=e=>{const{formItemCls:t,antCls:n}=e;return{[`${t}-vertical`]:{[`${t}-row`]:{flexDirection:"column"},[`${t}-label > label`]:{height:"auto"},[`${t}-control`]:{width:"100%"}},[`${t}-vertical ${t}-label,
${n}-col-24${t}-label,
${n}-col-xl-24${t}-label`]:Qa(e),[`@media (max-width: ${ie(e.screenXSMax)})`]:[bB(e),{[t]:{[`${n}-col-xs-24${t}-label`]:Qa(e)}}],[`@media (max-width: ${ie(e.screenSMMax)})`]:{[t]:{[`${n}-col-sm-24${t}-label`]:Qa(e)}},[`@media (max-width: ${ie(e.screenMDMax)})`]:{[t]:{[`${n}-col-md-24${t}-label`]:Qa(e)}},[`@media (max-width: ${ie(e.screenLGMax)})`]:{[t]:{[`${n}-col-lg-24${t}-label`]:Qa(e)}}}},dde=e=>({labelRequiredMarkColor:e.colorError,labelColor:e.colorTextHeading,labelFontSize:e.fontSize,labelHeight:e.controlHeight,labelColonMarginInlineStart:e.marginXXS/2,labelColonMarginInlineEnd:e.marginXS,itemMarginBottom:e.marginLG,verticalLabelPadding:`0 0 ${e.paddingXS}px`,verticalLabelMargin:0,inlineItemMarginBottom:0}),CB=(e,t)=>hn(e,{formItemCls:`${e.componentCls}-item`,rootPrefixCls:t}),c3=Mn("Form",(e,t)=>{let{rootPrefixCls:n}=t;const r=CB(e,n);return[ade(r),lde(r),ide(r),gI(r,r.componentCls),gI(r,r.formItemCls),sde(r),cde(r),ude(r),Rb(r),b8]},dde,{order:-1e3}),vI=[];function W4(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof e=="string"?e:`${t}-${r}`,error:e,errorStatus:n}}const SB=e=>{let{help:t,helpStatus:n,errors:r=vI,warnings:i=vI,className:o,fieldId:a,onVisibleChanged:l}=e;const{prefixCls:c}=d.useContext(A8),u=`${c}-item-explain`,f=Kr(c),[p,m,g]=c3(c,f),b=d.useMemo(()=>Xp(c),[c]),E=by(r),x=by(i),C=d.useMemo(()=>t!=null?[W4(t,"help",n)]:[].concat(Qe(E.map((O,I)=>W4(O,"error","error",I))),Qe(x.map((O,I)=>W4(O,"warning","warning",I)))),[t,n,E,x]),S=d.useMemo(()=>{const O={};return C.forEach(I=>{let{key:_}=I;O[_]=(O[_]||0)+1}),C.map((I,_)=>Object.assign(Object.assign({},I),{key:O[I.key]>1?`${I.key}-fallback-${_}`:I.key}))},[C]),T={};return a&&(T.id=`${a}_help`),p(d.createElement(ca,{motionDeadline:b.motionDeadline,motionName:`${c}-show-help`,visible:!!S.length,onVisibleChanged:l},O=>{const{className:I,style:_}=O;return d.createElement("div",Object.assign({},T,{className:le(u,I,g,f,o,m),style:_,role:"alert"}),d.createElement(f8,Object.assign({keys:S},Xp(c),{motionName:`${c}-show-help-item`,component:!1}),$=>{const{key:k,error:R,errorStatus:M,className:H,style:B}=$;return d.createElement("div",{key:k,className:le(H,{[`${u}-${M}`]:M}),style:B},R)}))}))},fde=["parentNode"],hde="form_item";function rp(e){return e===void 0||e===!1?[]:Array.isArray(e)?e:[e]}function EB(e,t){if(!e.length)return;const n=e.join("_");return t?`${t}_${n}`:fde.includes(n)?`${hde}_${n}`:n}function xB(e,t,n,r,i,o){let a=r;return o!==void 0?a=o:n.validating?a="validating":e.length?a="error":t.length?a="warning":(n.touched||i&&n.validated)&&(a="success"),a}function yI(e){return rp(e).join("_")}function bI(e,t){const n=t.getFieldInstance(e),r=Qx(n);if(r)return r;const i=EB(rp(e),t.__INTERNAL__.name);if(i)return document.getElementById(i)}function wB(e){const[t]=N8(),n=d.useRef({}),r=d.useMemo(()=>e??Object.assign(Object.assign({},t),{__INTERNAL__:{itemRef:i=>o=>{const a=yI(i);o?n.current[a]=o:delete n.current[a]}},scrollToField:function(i){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const a=bI(i,r);a&&RJ(a,Object.assign({scrollMode:"if-needed",block:"nearest"},o))},focusField:i=>{var o;const a=bI(i,r);a&&((o=a.focus)===null||o===void 0||o.call(a))},getFieldInstance:i=>{const o=yI(i);return n.current[o]}}),[e,t]);return[r]}var pde=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const mde=(e,t)=>{const n=d.useContext($a),{getPrefixCls:r,direction:i,form:o}=d.useContext(At),{prefixCls:a,className:l,rootClassName:c,size:u,disabled:f=n,form:p,colon:m,labelAlign:g,labelWrap:b,labelCol:E,wrapperCol:x,hideRequiredMark:C,layout:S="horizontal",scrollToFirstError:T,requiredMark:O,onFinishFailed:I,name:_,style:$,feedbackIcons:k,variant:R}=e,M=pde(e,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons","variant"]),H=vo(u),B=d.useContext(tL),L=d.useMemo(()=>O!==void 0?O:C?!1:o&&o.requiredMark!==void 0?o.requiredMark:!0,[C,O,o]),D=m??(o==null?void 0:o.colon),z=r("form",a),W=Kr(z),[j,U,q]=c3(z,W),A=le(z,`${z}-${S}`,{[`${z}-hide-required-mark`]:L===!1,[`${z}-rtl`]:i==="rtl",[`${z}-${H}`]:H},q,W,U,o==null?void 0:o.className,l,c),[P]=wB(p),{__INTERNAL__:Z}=P;Z.name=_;const V=d.useMemo(()=>({name:_,labelAlign:g,labelCol:E,labelWrap:b,wrapperCol:x,vertical:S==="vertical",colon:D,requiredMark:L,itemRef:Z.itemRef,form:P,feedbackIcons:k}),[_,g,E,x,S,D,L,P,k]),Y=d.useRef(null);d.useImperativeHandle(t,()=>{var ne;return Object.assign(Object.assign({},P),{nativeElement:(ne=Y.current)===null||ne===void 0?void 0:ne.nativeElement})});const ee=(ne,se)=>{if(ne){let me={block:"nearest"};typeof ne=="object"&&(me=Object.assign(Object.assign({},me),ne)),P.scrollToField(se,me),me.focus&&P.focusField(se)}},ue=ne=>{if(I==null||I(ne),ne.errorFields.length){const se=ne.errorFields[0].name;if(T!==void 0){ee(T,se);return}o&&o.scrollToFirstError!==void 0&&ee(o.scrollToFirstError,se)}};return j(d.createElement(SD.Provider,{value:R},d.createElement(c8,{disabled:f},d.createElement(Lu.Provider,{value:H},d.createElement(CD,{validateMessages:B},d.createElement(gs.Provider,{value:V},d.createElement(u1,Object.assign({id:_},M,{name:_,onFinishFailed:ue,form:P,ref:Y,style:Object.assign(Object.assign({},o==null?void 0:o.style),$),className:A}))))))))},gde=d.forwardRef(mde);function vde(e){if(typeof e=="function")return e;const t=ri(e);return t.length<=1?t[0]:t}const TB=()=>{const{status:e,errors:t=[],warnings:n=[]}=d.useContext(fo);return{status:e,errors:t,warnings:n}};TB.Context=fo;function yde(e){const[t,n]=d.useState(e),r=d.useRef(null),i=d.useRef([]),o=d.useRef(!1);d.useEffect(()=>(o.current=!1,()=>{o.current=!0,kn.cancel(r.current),r.current=null}),[]);function a(l){o.current||(r.current===null&&(i.current=[],r.current=kn(()=>{r.current=null,n(c=>{let u=c;return i.current.forEach(f=>{u=f(u)}),u})})),i.current.push(l))}return[t,a]}function bde(){const{itemRef:e}=d.useContext(gs),t=d.useRef({});function n(r,i){const o=i&&typeof i=="object"&&i.ref,a=r.join("_");return(t.current.name!==a||t.current.originRef!==o)&&(t.current.name=a,t.current.originRef=o,t.current.ref=eo(e(r),o)),t.current.ref}return n}const Cde=e=>{const{formItemCls:t}=e;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${t}-control`]:{display:"flex"}}}},Sde=s1(["Form","item-item"],(e,t)=>{let{rootPrefixCls:n}=t;const r=CB(e,n);return[Cde(r)]});var Ede=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const xde=24,wde=e=>{const{prefixCls:t,status:n,labelCol:r,wrapperCol:i,children:o,errors:a,warnings:l,_internalItemRender:c,extra:u,help:f,fieldId:p,marginBottom:m,onErrorVisibleChanged:g,label:b}=e,E=`${t}-item`,x=d.useContext(gs),C=d.useMemo(()=>{let D=Object.assign({},i||x.wrapperCol||{});return b===null&&!r&&!i&&x.labelCol&&[void 0,"xs","sm","md","lg","xl","xxl"].forEach(W=>{const j=W?[W]:[],U=co(x.labelCol,j),q=typeof U=="object"?U:{},A=co(D,j),P=typeof A=="object"?A:{};"span"in q&&!("offset"in P)&&q.span<xde&&(D=va(D,[].concat(j,["offset"]),q.span))}),D},[i,x]),S=le(`${E}-control`,C.className),T=d.useMemo(()=>Ede(x,["labelCol","wrapperCol"]),[x]),O=d.useRef(null),[I,_]=d.useState(0);bn(()=>{u&&O.current?_(O.current.clientHeight):_(0)},[u]);const $=d.createElement("div",{className:`${E}-control-input`},d.createElement("div",{className:`${E}-control-input-content`},o)),k=d.useMemo(()=>({prefixCls:t,status:n}),[t,n]),R=m!==null||a.length||l.length?d.createElement(A8.Provider,{value:k},d.createElement(SB,{fieldId:p,errors:a,warnings:l,help:f,helpStatus:n,className:`${E}-explain-connected`,onVisibleChanged:g})):null,M={};p&&(M.id=`${p}_extra`);const H=u?d.createElement("div",Object.assign({},M,{className:`${E}-extra`,ref:O}),u):null,B=R||H?d.createElement("div",{className:`${E}-additional`,style:m?{minHeight:m+I}:{}},R,H):null,L=c&&c.mark==="pro_table_render"&&c.render?c.render(e,{input:$,errorList:R,extra:H}):d.createElement(d.Fragment,null,$,B);return d.createElement(gs.Provider,{value:T},d.createElement(s3,Object.assign({},C,{className:S}),L),d.createElement(Sde,{prefixCls:t}))};var Tde={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 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"},_de=function(t,n){return d.createElement(on,ze({},t,{ref:n,icon:Tde}))},Ode=d.forwardRef(_de),Ide=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function $de(e){return e?typeof e=="object"&&!d.isValidElement(e)?e:{title:e}:null}const Nde=e=>{let{prefixCls:t,label:n,htmlFor:r,labelCol:i,labelAlign:o,colon:a,required:l,requiredMark:c,tooltip:u,vertical:f}=e;var p;const[m]=Dl("Form"),{labelAlign:g,labelCol:b,labelWrap:E,colon:x}=d.useContext(gs);if(!n)return null;const C=i||b||{},S=o||g,T=`${t}-item-label`,O=le(T,S==="left"&&`${T}-left`,C.className,{[`${T}-wrap`]:!!E});let I=n;const _=a===!0||x!==!1&&a!==!1;_&&!f&&typeof n=="string"&&n.trim()&&(I=n.replace(/[:|]\s*$/,""));const k=$de(u);if(k){const{icon:B=d.createElement(Ode,null)}=k,L=Ide(k,["icon"]),D=d.createElement(sl,Object.assign({},L),d.cloneElement(B,{className:`${t}-item-tooltip`,title:"",onClick:z=>{z.preventDefault()},tabIndex:null}));I=d.createElement(d.Fragment,null,I,D)}const R=c==="optional",M=typeof c=="function";M?I=c(I,{required:!!l}):R&&!l&&(I=d.createElement(d.Fragment,null,I,d.createElement("span",{className:`${t}-item-optional`,title:""},(m==null?void 0:m.optional)||((p=Pl.Form)===null||p===void 0?void 0:p.optional))));const H=le({[`${t}-item-required`]:l,[`${t}-item-required-mark-optional`]:R||M,[`${t}-item-no-colon`]:!_});return d.createElement(s3,Object.assign({},C,{className:O}),d.createElement("label",{htmlFor:r,className:H,title:typeof n=="string"?n:""},I))},Ade={success:Em,warning:_b,error:Ku,validating:Ec};function _B(e){let{children:t,errors:n,warnings:r,hasFeedback:i,validateStatus:o,prefixCls:a,meta:l,noStyle:c}=e;const u=`${a}-item`,{feedbackIcons:f}=d.useContext(gs),p=xB(n,r,l,null,!!i,o),{isFormItemInput:m,status:g,hasFeedback:b,feedbackIcon:E}=d.useContext(fo),x=d.useMemo(()=>{var C;let S;if(i){const O=i!==!0&&i.icons||f,I=p&&((C=O==null?void 0:O({status:p,errors:n,warnings:r}))===null||C===void 0?void 0:C[p]),_=p&&Ade[p];S=I!==!1&&_?d.createElement("span",{className:le(`${u}-feedback-icon`,`${u}-feedback-icon-${p}`)},I||d.createElement(_,null)):null}const T={status:p||"",errors:n,warnings:r,hasFeedback:!!i,feedbackIcon:S,isFormItemInput:!0};return c&&(T.status=(p??g)||"",T.isFormItemInput=m,T.hasFeedback=!!(i??b),T.feedbackIcon=i!==void 0?T.feedbackIcon:E),T},[p,i,c,m,g]);return d.createElement(fo.Provider,{value:x},t)}var kde=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function Rde(e){const{prefixCls:t,className:n,rootClassName:r,style:i,help:o,errors:a,warnings:l,validateStatus:c,meta:u,hasFeedback:f,hidden:p,children:m,fieldId:g,required:b,isRequired:E,onSubItemMetaChange:x,layout:C}=e,S=kde(e,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange","layout"]),T=`${t}-item`,{requiredMark:O,vertical:I}=d.useContext(gs),_=I||C==="vertical",$=d.useRef(null),k=by(a),R=by(l),M=o!=null,H=!!(M||a.length||l.length),B=!!$.current&&Tm($.current),[L,D]=d.useState(null);bn(()=>{if(H&&$.current){const q=getComputedStyle($.current);D(parseInt(q.marginBottom,10))}},[H,B]);const z=q=>{q||D(null)},j=function(){let q=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const A=q?k:u.errors,P=q?R:u.warnings;return xB(A,P,u,"",!!f,c)}(),U=le(T,n,r,{[`${T}-with-help`]:M||k.length||R.length,[`${T}-has-feedback`]:j&&f,[`${T}-has-success`]:j==="success",[`${T}-has-warning`]:j==="warning",[`${T}-has-error`]:j==="error",[`${T}-is-validating`]:j==="validating",[`${T}-hidden`]:p,[`${T}-${C}`]:C});return d.createElement("div",{className:U,style:i,ref:$},d.createElement(cB,Object.assign({className:`${T}-row`},tr(S,["_internalItemRender","colon","dependencies","extra","fieldKey","getValueFromEvent","getValueProps","htmlFor","id","initialValue","isListField","label","labelAlign","labelCol","labelWrap","messageVariables","name","normalize","noStyle","preserve","requiredMark","rules","shouldUpdate","trigger","tooltip","validateFirst","validateTrigger","valuePropName","wrapperCol","validateDebounce"])),d.createElement(Nde,Object.assign({htmlFor:g},e,{requiredMark:O,required:b??E,prefixCls:t,vertical:_})),d.createElement(wde,Object.assign({},e,u,{errors:k,warnings:R,prefixCls:t,status:j,help:o,marginBottom:L,onErrorVisibleChanged:z}),d.createElement(bD.Provider,{value:x},d.createElement(_B,{prefixCls:t,meta:u,errors:u.errors,warnings:u.warnings,hasFeedback:f,validateStatus:j},m)))),!!L&&d.createElement("div",{className:`${T}-margin-offset`,style:{marginBottom:-L}}))}const Mde="__SPLIT__";function Pde(e,t){const n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every(i=>{const o=e[i],a=t[i];return o===a||typeof o=="function"||typeof a=="function"})}const Lde=d.memo(e=>{let{children:t}=e;return t},(e,t)=>Pde(e.control,t.control)&&e.update===t.update&&e.childProps.length===t.childProps.length&&e.childProps.every((n,r)=>n===t.childProps[r]));function CI(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function Dde(e){const{name:t,noStyle:n,className:r,dependencies:i,prefixCls:o,shouldUpdate:a,rules:l,children:c,required:u,label:f,messageVariables:p,trigger:m="onChange",validateTrigger:g,hidden:b,help:E,layout:x}=e,{getPrefixCls:C}=d.useContext(At),{name:S}=d.useContext(gs),T=vde(c),O=typeof T=="function",I=d.useContext(bD),{validateTrigger:_}=d.useContext(Fu),$=g!==void 0?g:_,k=t!=null,R=C("form",o),M=Kr(R),[H,B,L]=c3(R,M);Mc();const D=d.useContext(Zp),z=d.useRef(),[W,j]=yde({}),[U,q]=Du(()=>CI()),A=ne=>{const se=D==null?void 0:D.getKey(ne.name);if(q(ne.destroy?CI():ne,!0),n&&E!==!1&&I){let me=ne.name;if(ne.destroy)me=z.current||me;else if(se!==void 0){const[ye,de]=se;me=[ye].concat(Qe(de)),z.current=me}I(ne,me)}},P=(ne,se)=>{j(me=>{const ye=Object.assign({},me),ce=[].concat(Qe(ne.name.slice(0,-1)),Qe(se)).join(Mde);return ne.destroy?delete ye[ce]:ye[ce]=ne,ye})},[Z,V]=d.useMemo(()=>{const ne=Qe(U.errors),se=Qe(U.warnings);return Object.values(W).forEach(me=>{ne.push.apply(ne,Qe(me.errors||[])),se.push.apply(se,Qe(me.warnings||[]))}),[ne,se]},[W,U.errors,U.warnings]),Y=bde();function ee(ne,se,me){return n&&!b?d.createElement(_B,{prefixCls:R,hasFeedback:e.hasFeedback,validateStatus:e.validateStatus,meta:U,errors:Z,warnings:V,noStyle:!0},ne):d.createElement(Rde,Object.assign({key:"row"},e,{className:le(r,L,M,B),prefixCls:R,fieldId:se,isRequired:me,errors:Z,warnings:V,meta:U,onSubItemMetaChange:P,layout:x}),ne)}if(!k&&!O&&!i)return H(ee(T));let ue={};return typeof f=="string"?ue.label=f:t&&(ue.label=String(t)),p&&(ue=Object.assign(Object.assign({},ue),p)),H(d.createElement($8,Object.assign({},e,{messageVariables:ue,trigger:m,validateTrigger:$,onMetaChange:A}),(ne,se,me)=>{const ye=rp(t).length&&se?se.name:[],de=EB(ye,S),ce=u!==void 0?u:!!(l!=null&&l.some(ve=>{if(ve&&typeof ve=="object"&&ve.required&&!ve.warningOnly)return!0;if(typeof ve=="function"){const Te=ve(me);return(Te==null?void 0:Te.required)&&!(Te!=null&&Te.warningOnly)}return!1})),oe=Object.assign({},ne);let pe=null;if(Array.isArray(T)&&k)pe=T;else if(!(O&&(!(a||i)||k))){if(!(i&&!O&&!k))if(d.isValidElement(T)){const ve=Object.assign(Object.assign({},T.props),oe);if(ve.id||(ve.id=de),E||Z.length>0||V.length>0||e.extra){const je=[];(E||Z.length>0)&&je.push(`${de}_help`),e.extra&&je.push(`${de}_extra`),ve["aria-describedby"]=je.join(" ")}Z.length>0&&(ve["aria-invalid"]="true"),ce&&(ve["aria-required"]="true"),ol(T)&&(ve.ref=Y(ye,T)),new Set([].concat(Qe(rp(m)),Qe(rp($)))).forEach(je=>{ve[je]=function(){for(var Je,Se,$e,qe,Le,Fe=arguments.length,Ke=new Array(Fe),Ve=0;Ve<Fe;Ve++)Ke[Ve]=arguments[Ve];($e=oe[je])===null||$e===void 0||(Je=$e).call.apply(Je,[oe].concat(Ke)),(Le=(qe=T.props)[je])===null||Le===void 0||(Se=Le).call.apply(Se,[qe].concat(Ke))}});const Ge=[ve["aria-required"],ve["aria-invalid"],ve["aria-describedby"]];pe=d.createElement(Lde,{control:oe,update:T,childProps:Ge},mi(T,ve))}else O&&(a||i)&&!k?pe=T(me):pe=T}return ee(pe,de,ce)}))}const OB=Dde;OB.useStatus=TB;var Fde=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const Bde=e=>{var{prefixCls:t,children:n}=e,r=Fde(e,["prefixCls","children"]);const{getPrefixCls:i}=d.useContext(At),o=i("form",t),a=d.useMemo(()=>({prefixCls:o,status:"error"}),[o]);return d.createElement(mD,Object.assign({},r),(l,c,u)=>d.createElement(A8.Provider,{value:a},n(l.map(f=>Object.assign(Object.assign({},f),{fieldKey:f.key})),c,{errors:u.errors,warnings:u.warnings})))};function jde(){const{form:e}=d.useContext(gs);return e}const Nn=gde;Nn.Item=OB;Nn.List=Bde;Nn.ErrorList=SB;Nn.useForm=wB;Nn.useFormInstance=jde;Nn.useWatch=yD;Nn.Provider=CD;Nn.create=()=>{};function SI(e){var t=e.getBoundingClientRect(),n=document.documentElement;return{left:t.left+(window.pageXOffset||n.scrollLeft)-(n.clientLeft||document.body.clientLeft||0),top:t.top+(window.pageYOffset||n.scrollTop)-(n.clientTop||document.body.clientTop||0)}}function og(e,t,n,r){var i=Pp.unstable_batchedUpdates?function(a){Pp.unstable_batchedUpdates(n,a)}:n;return e!=null&&e.addEventListener&&e.addEventListener(t,i,r),{remove:function(){e!=null&&e.removeEventListener&&e.removeEventListener(t,i,r)}}}function Hde(e,t,n){return typeof n=="boolean"?n:e.length?!0:ri(t).some(i=>i.type===PF)}var IB=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function Zb(e){let{suffixCls:t,tagName:n,displayName:r}=e;return i=>d.forwardRef((a,l)=>d.createElement(i,Object.assign({ref:l,suffixCls:t,tagName:n},a)))}const u3=d.forwardRef((e,t)=>{const{prefixCls:n,suffixCls:r,className:i,tagName:o}=e,a=IB(e,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:l}=d.useContext(At),c=l("layout",n),[u,f,p]=MF(c),m=r?`${c}-${r}`:c;return u(d.createElement(o,Object.assign({className:le(n||m,i,f,p),ref:t},a)))}),zde=d.forwardRef((e,t)=>{const{direction:n}=d.useContext(At),[r,i]=d.useState([]),{prefixCls:o,className:a,rootClassName:l,children:c,hasSider:u,tagName:f,style:p}=e,m=IB(e,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),g=tr(m,["suffixCls"]),{getPrefixCls:b,layout:E}=d.useContext(At),x=b("layout",o),C=Hde(r,c,u),[S,T,O]=MF(x),I=le(x,{[`${x}-has-sider`]:C,[`${x}-rtl`]:n==="rtl"},E==null?void 0:E.className,a,l,T,O),_=d.useMemo(()=>({siderHook:{addSider:$=>{i(k=>[].concat(Qe(k),[$]))},removeSider:$=>{i(k=>k.filter(R=>R!==$))}}}),[]);return S(d.createElement(AF.Provider,{value:_},d.createElement(f,Object.assign({ref:t,className:I,style:Object.assign(Object.assign({},E==null?void 0:E.style),p)},g),c)))}),Wde=Zb({tagName:"div",displayName:"Layout"})(zde),Ude=Zb({suffixCls:"header",tagName:"header",displayName:"Header"})(u3),Kde=Zb({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(u3),Vde=Zb({suffixCls:"content",tagName:"main",displayName:"Content"})(u3),Lo=Wde;Lo.Header=Ude;Lo.Footer=Kde;Lo.Content=Vde;Lo.Sider=PF;Lo._InternalSiderContext=Vb;const $B=function(){const e=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let t=1;t<arguments.length;t++){const n=t<0||arguments.length<=t?void 0:arguments[t];n&&Object.keys(n).forEach(r=>{const i=n[r];i!==void 0&&(e[r]=i)})}return e};var Gde={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z"}}]},name:"double-left",theme:"outlined"},qde=function(t,n){return d.createElement(on,ze({},t,{ref:n,icon:Gde}))},EI=d.forwardRef(qde),Xde={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"}}]},name:"double-right",theme:"outlined"},Yde=function(t,n){return d.createElement(on,ze({},t,{ref:n,icon:Xde}))},xI=d.forwardRef(Yde),Qde={items_per_page:"条/页",jump_to:"跳至",jump_to_confirm:"确定",page:"页",prev_page:"上一页",next_page:"下一页",prev_5:"向前 5 页",next_5:"向后 5 页",prev_3:"向前 3 页",next_3:"向后 3 页",page_size:"页码"},Zde=["10","20","50","100"],Jde=function(t){var n=t.pageSizeOptions,r=n===void 0?Zde:n,i=t.locale,o=t.changeSize,a=t.pageSize,l=t.goButton,c=t.quickGo,u=t.rootPrefixCls,f=t.selectComponentClass,p=t.selectPrefixCls,m=t.disabled,g=t.buildOptionText,b=t.showSizeChanger,E=be.useState(""),x=Oe(E,2),C=x[0],S=x[1],T=function(){return!C||Number.isNaN(C)?void 0:Number(C)},O=typeof g=="function"?g:function(U){return"".concat(U," ").concat(i.items_per_page)},I=function(q,A){if(o==null||o(Number(q)),$t(b)==="object"){var P;(P=b.onChange)===null||P===void 0||P.call(b,q,A)}},_=function(q){S(q.target.value)},$=function(q){l||C===""||(S(""),!(q.relatedTarget&&(q.relatedTarget.className.indexOf("".concat(u,"-item-link"))>=0||q.relatedTarget.className.indexOf("".concat(u,"-item"))>=0))&&(c==null||c(T())))},k=function(q){C!==""&&(q.keyCode===it.ENTER||q.type==="click")&&(S(""),c==null||c(T()))},R=function(){return r.some(function(q){return q.toString()===a.toString()})?r:r.concat([a.toString()]).sort(function(q,A){var P=Number.isNaN(Number(q))?0:Number(q),Z=Number.isNaN(Number(A))?0:Number(A);return P-Z})},M="".concat(u,"-options");if(!b&&!c)return null;var H=null,B=null,L=null;if(b&&f){var D=$t(b)==="object"?b:{},z=D.options,W=D.className,j=z?void 0:R().map(function(U,q){return be.createElement(f.Option,{key:q,value:U.toString()},O(U))});H=be.createElement(f,ze({disabled:m,prefixCls:p,showSearch:!1,optionLabelProp:z?"label":"children",popupMatchSelectWidth:!1,value:(a||r[0]).toString(),getPopupContainer:function(q){return q.parentNode},"aria-label":i.page_size,defaultOpen:!1},$t(b)==="object"?b:null,{className:le("".concat(M,"-size-changer"),W),options:z,onChange:I}),j)}return c&&(l&&(L=typeof l=="boolean"?be.createElement("button",{type:"button",onClick:k,onKeyUp:k,disabled:m,className:"".concat(M,"-quick-jumper-button")},i.jump_to_confirm):be.createElement("span",{onClick:k,onKeyUp:k},l)),B=be.createElement("div",{className:"".concat(M,"-quick-jumper")},i.jump_to,be.createElement("input",{disabled:m,type:"text",value:C,onChange:_,onKeyUp:k,onBlur:$,"aria-label":i.page}),i.page,L)),be.createElement("li",{className:M},H,B)},vh=function(t){var n=t.rootPrefixCls,r=t.page,i=t.active,o=t.className,a=t.showTitle,l=t.onClick,c=t.onKeyPress,u=t.itemRender,f="".concat(n,"-item"),p=le(f,"".concat(f,"-").concat(r),J(J({},"".concat(f,"-active"),i),"".concat(f,"-disabled"),!r),o),m=function(){l(r)},g=function(x){c(x,l,r)},b=u(r,"page",be.createElement("a",{rel:"nofollow"},r));return b?be.createElement("li",{title:a?String(r):null,className:p,onClick:m,onKeyDown:g,tabIndex:0},b):null},efe=function(t,n,r){return r};function wI(){}function TI(e){var t=Number(e);return typeof t=="number"&&!Number.isNaN(t)&&isFinite(t)&&Math.floor(t)===t}function Zc(e,t,n){var r=typeof e>"u"?t:e;return Math.floor((n-1)/r)+1}var tfe=function(t){var n=t.prefixCls,r=n===void 0?"rc-pagination":n,i=t.selectPrefixCls,o=i===void 0?"rc-select":i,a=t.className,l=t.selectComponentClass,c=t.current,u=t.defaultCurrent,f=u===void 0?1:u,p=t.total,m=p===void 0?0:p,g=t.pageSize,b=t.defaultPageSize,E=b===void 0?10:b,x=t.onChange,C=x===void 0?wI:x,S=t.hideOnSinglePage,T=t.align,O=t.showPrevNextJumpers,I=O===void 0?!0:O,_=t.showQuickJumper,$=t.showLessItems,k=t.showTitle,R=k===void 0?!0:k,M=t.onShowSizeChange,H=M===void 0?wI:M,B=t.locale,L=B===void 0?Qde:B,D=t.style,z=t.totalBoundaryShowSizeChanger,W=z===void 0?50:z,j=t.disabled,U=t.simple,q=t.showTotal,A=t.showSizeChanger,P=A===void 0?m>W:A,Z=t.pageSizeOptions,V=t.itemRender,Y=V===void 0?efe:V,ee=t.jumpPrevIcon,ue=t.jumpNextIcon,ne=t.prevIcon,se=t.nextIcon,me=be.useRef(null),ye=Tr(10,{value:g,defaultValue:E}),de=Oe(ye,2),ce=de[0],oe=de[1],pe=Tr(1,{value:c,defaultValue:f,postState:function(dt){return Math.max(1,Math.min(dt,Zc(void 0,ce,m)))}}),ve=Oe(pe,2),Te=ve[0],Ge=ve[1],je=be.useState(Te),Je=Oe(je,2),Se=Je[0],$e=Je[1];d.useEffect(function(){$e(Te)},[Te]);var qe=Math.max(1,Te-($?3:5)),Le=Math.min(Zc(void 0,ce,m),Te+($?3:5));function Fe(ke,dt){var cn=ke||be.createElement("button",{type:"button","aria-label":dt,className:"".concat(r,"-item-link")});return typeof ke=="function"&&(cn=be.createElement(ke,te({},t))),cn}function Ke(ke){var dt=ke.target.value,cn=Zc(void 0,ce,m),$n;return dt===""?$n=dt:Number.isNaN(Number(dt))?$n=Se:dt>=cn?$n=cn:$n=Number(dt),$n}function Ve(ke){return TI(ke)&&ke!==Te&&TI(m)&&m>0}var Ce=m>ce?_:!1;function Pe(ke){(ke.keyCode===it.UP||ke.keyCode===it.DOWN)&&ke.preventDefault()}function We(ke){var dt=Ke(ke);switch(dt!==Se&&$e(dt),ke.keyCode){case it.ENTER:Be(dt);break;case it.UP:Be(dt-1);break;case it.DOWN:Be(dt+1);break}}function Ze(ke){Be(Ke(ke))}function ut(ke){var dt=Zc(ke,ce,m),cn=Te>dt&&dt!==0?dt:Te;oe(ke),$e(cn),H==null||H(Te,ke),Ge(cn),C==null||C(cn,ke)}function Be(ke){if(Ve(ke)&&!j){var dt=Zc(void 0,ce,m),cn=ke;return ke>dt?cn=dt:ke<1&&(cn=1),cn!==Se&&$e(cn),Ge(cn),C==null||C(cn,ce),cn}return Te}var ot=Te>1,re=Te<Zc(void 0,ce,m);function Ie(){ot&&Be(Te-1)}function Re(){re&&Be(Te+1)}function Ae(){Be(qe)}function Ye(){Be(Le)}function mt(ke,dt){if(ke.key==="Enter"||ke.charCode===it.ENTER||ke.keyCode===it.ENTER){for(var cn=arguments.length,$n=new Array(cn>2?cn-2:0),pn=2;pn<cn;pn++)$n[pn-2]=arguments[pn];dt.apply(void 0,$n)}}function Nt(ke){mt(ke,Ie)}function qt(ke){mt(ke,Re)}function Ft(ke){mt(ke,Ae)}function Kt(ke){mt(ke,Ye)}function Qt(ke){var dt=Y(ke,"prev",Fe(ne,"prev page"));return be.isValidElement(dt)?be.cloneElement(dt,{disabled:!ot}):dt}function Zt(ke){var dt=Y(ke,"next",Fe(se,"next page"));return be.isValidElement(dt)?be.cloneElement(dt,{disabled:!re}):dt}function Mt(ke){(ke.type==="click"||ke.keyCode===it.ENTER)&&Be(Se)}var St=null,yt=_i(t,{aria:!0,data:!0}),lt=q&&be.createElement("li",{className:"".concat(r,"-total-text")},q(m,[m===0?0:(Te-1)*ce+1,Te*ce>m?m:Te*ce])),fe=null,xe=Zc(void 0,ce,m);if(S&&m<=ce)return null;var ge=[],Ne={rootPrefixCls:r,onClick:Be,onKeyPress:mt,showTitle:R,itemRender:Y,page:-1},Xe=Te-1>0?Te-1:0,nt=Te+1<xe?Te+1:xe,pt=_&&_.goButton,st=$t(U)==="object"?U.readOnly:!U,rt=pt,He=null;U&&(pt&&(typeof pt=="boolean"?rt=be.createElement("button",{type:"button",onClick:Mt,onKeyUp:Mt},L.jump_to_confirm):rt=be.createElement("span",{onClick:Mt,onKeyUp:Mt},pt),rt=be.createElement("li",{title:R?"".concat(L.jump_to).concat(Te,"/").concat(xe):null,className:"".concat(r,"-simple-pager")},rt)),He=be.createElement("li",{title:R?"".concat(Te,"/").concat(xe):null,className:"".concat(r,"-simple-pager")},st?Se:be.createElement("input",{type:"text",value:Se,disabled:j,onKeyDown:Pe,onKeyUp:We,onChange:We,onBlur:Ze,size:3}),be.createElement("span",{className:"".concat(r,"-slash")},"/"),xe));var Ue=$?1:2;if(xe<=3+Ue*2){xe||ge.push(be.createElement(vh,ze({},Ne,{key:"noPager",page:1,className:"".concat(r,"-item-disabled")})));for(var ft=1;ft<=xe;ft+=1)ge.push(be.createElement(vh,ze({},Ne,{key:ft,page:ft,active:Te===ft})))}else{var Ct=$?L.prev_3:L.prev_5,zt=$?L.next_3:L.next_5,Tt=Y(qe,"jump-prev",Fe(ee,"prev page")),Pt=Y(Le,"jump-next",Fe(ue,"next page"));I&&(St=Tt?be.createElement("li",{title:R?Ct:null,key:"prev",onClick:Ae,tabIndex:0,onKeyDown:Ft,className:le("".concat(r,"-jump-prev"),J({},"".concat(r,"-jump-prev-custom-icon"),!!ee))},Tt):null,fe=Pt?be.createElement("li",{title:R?zt:null,key:"next",onClick:Ye,tabIndex:0,onKeyDown:Kt,className:le("".concat(r,"-jump-next"),J({},"".concat(r,"-jump-next-custom-icon"),!!ue))},Pt):null);var vt=Math.max(1,Te-Ue),gt=Math.min(Te+Ue,xe);Te-1<=Ue&&(gt=1+Ue*2),xe-Te<=Ue&&(vt=xe-Ue*2);for(var tt=vt;tt<=gt;tt+=1)ge.push(be.createElement(vh,ze({},Ne,{key:tt,page:tt,active:Te===tt})));if(Te-1>=Ue*2&&Te!==3&&(ge[0]=be.cloneElement(ge[0],{className:le("".concat(r,"-item-after-jump-prev"),ge[0].props.className)}),ge.unshift(St)),xe-Te>=Ue*2&&Te!==xe-2){var Xt=ge[ge.length-1];ge[ge.length-1]=be.cloneElement(Xt,{className:le("".concat(r,"-item-before-jump-next"),Xt.props.className)}),ge.push(fe)}vt!==1&&ge.unshift(be.createElement(vh,ze({},Ne,{key:1,page:1}))),gt!==xe&&ge.push(be.createElement(vh,ze({},Ne,{key:xe,page:xe})))}var Jt=Qt(Xe);if(Jt){var En=!ot||!xe;Jt=be.createElement("li",{title:R?L.prev_page:null,onClick:Ie,tabIndex:En?null:0,onKeyDown:Nt,className:le("".concat(r,"-prev"),J({},"".concat(r,"-disabled"),En)),"aria-disabled":En},Jt)}var Wt=Zt(nt);if(Wt){var In,qn;U?(In=!re,qn=ot?0:null):(In=!re||!xe,qn=In?null:0),Wt=be.createElement("li",{title:R?L.next_page:null,onClick:Re,tabIndex:qn,onKeyDown:qt,className:le("".concat(r,"-next"),J({},"".concat(r,"-disabled"),In)),"aria-disabled":In},Wt)}var vr=le(r,a,J(J(J(J(J({},"".concat(r,"-start"),T==="start"),"".concat(r,"-center"),T==="center"),"".concat(r,"-end"),T==="end"),"".concat(r,"-simple"),U),"".concat(r,"-disabled"),j));return be.createElement("ul",ze({className:vr,style:D,ref:me},yt),lt,Jt,U?He:ge,Wt,be.createElement(Jde,{locale:L,rootPrefixCls:r,disabled:j,selectComponentClass:l,selectPrefixCls:o,changeSize:ut,pageSize:ce,pageSizeOptions:Z,quickGo:Ce?Be:null,goButton:rt,showSizeChanger:P}))};const NB=e=>d.createElement(Pi,Object.assign({},e,{showSearch:!0,size:"small"})),AB=e=>d.createElement(Pi,Object.assign({},e,{showSearch:!0,size:"middle"}));NB.Option=Pi.Option;AB.Option=Pi.Option;const nfe=e=>{const{componentCls:t}=e;return{[`${t}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}}},[`&${t}-disabled`]:{cursor:"not-allowed",[`${t}-item`]:{cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},a:{color:e.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:e.colorBorder,backgroundColor:e.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:e.itemActiveBgDisabled},a:{color:e.itemActiveColorDisabled}}},[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${t}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${t}-simple-pager`]:{color:e.colorTextDisabled},[`${t}-jump-prev, ${t}-jump-next`]:{[`${t}-item-link-icon`]:{opacity:0},[`${t}-item-ellipsis`]:{opacity:1}}},[`&${t}-simple`]:{[`${t}-prev, ${t}-next`]:{[`&${t}-disabled ${t}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},rfe=e=>{const{componentCls:t}=e;return{[`&${t}-mini ${t}-total-text, &${t}-mini ${t}-simple-pager`]:{height:e.itemSizeSM,lineHeight:ie(e.itemSizeSM)},[`&${t}-mini ${t}-item`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:ie(e.calc(e.itemSizeSM).sub(2).equal())},[`&${t}-mini:not(${t}-disabled) ${t}-item:not(${t}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},[`&${t}-mini ${t}-prev, &${t}-mini ${t}-next`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:ie(e.itemSizeSM)},[`&${t}-mini:not(${t}-disabled)`]:{[`${t}-prev, ${t}-next`]:{[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover ${t}-item-link`]:{backgroundColor:"transparent"}}},[`
&${t}-mini ${t}-prev ${t}-item-link,
&${t}-mini ${t}-next ${t}-item-link
`]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:e.itemSizeSM,lineHeight:ie(e.itemSizeSM)}},[`&${t}-mini ${t}-jump-prev, &${t}-mini ${t}-jump-next`]:{height:e.itemSizeSM,marginInlineEnd:0,lineHeight:ie(e.itemSizeSM)},[`&${t}-mini ${t}-options`]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:e.miniOptionsSizeChangerTop},"&-quick-jumper":{height:e.itemSizeSM,lineHeight:ie(e.itemSizeSM),input:Object.assign(Object.assign({},r3(e)),{width:e.paginationMiniQuickJumperInputWidth,height:e.controlHeightSM})}}}},ife=e=>{const{componentCls:t}=e;return{[`
&${t}-simple ${t}-prev,
&${t}-simple ${t}-next
`]:{height:e.itemSizeSM,lineHeight:ie(e.itemSizeSM),verticalAlign:"top",[`${t}-item-link`]:{height:e.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive},"&::after":{height:e.itemSizeSM,lineHeight:ie(e.itemSizeSM)}}},[`&${t}-simple ${t}-simple-pager`]:{display:"inline-block",height:e.itemSizeSM,marginInlineEnd:e.marginXS,input:{boxSizing:"border-box",height:"100%",padding:`0 ${ie(e.paginationItemPaddingInline)}`,textAlign:"center",backgroundColor:e.itemInputBg,border:`${ie(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadius,outline:"none",transition:`border-color ${e.motionDurationMid}`,color:"inherit","&:hover":{borderColor:e.colorPrimary},"&:focus":{borderColor:e.colorPrimaryHover,boxShadow:`${ie(e.inputOutlineOffset)} 0 ${ie(e.controlOutlineWidth)} ${e.controlOutline}`},"&[disabled]":{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,cursor:"not-allowed"}}}}},ofe=e=>{const{componentCls:t}=e;return{[`${t}-jump-prev, ${t}-jump-next`]:{outline:0,[`${t}-item-container`]:{position:"relative",[`${t}-item-link-icon`]:{color:e.colorPrimary,fontSize:e.fontSizeSM,opacity:0,transition:`all ${e.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${t}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:e.colorTextDisabled,letterSpacing:e.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:e.paginationEllipsisTextIndent,opacity:1,transition:`all ${e.motionDurationMid}`}},"&:hover":{[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}}},[`
${t}-prev,
${t}-jump-prev,
${t}-jump-next
`]:{marginInlineEnd:e.marginXS},[`
${t}-prev,
${t}-next,
${t}-jump-prev,
${t}-jump-next
`]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,color:e.colorText,fontFamily:e.fontFamily,lineHeight:ie(e.itemSize),textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:e.borderRadius,cursor:"pointer",transition:`all ${e.motionDurationMid}`},[`${t}-prev, ${t}-next`]:{outline:0,button:{color:e.colorText,cursor:"pointer",userSelect:"none"},[`${t}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:e.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${ie(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:"none",transition:`all ${e.motionDurationMid}`},[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover`]:{[`${t}-item-link`]:{backgroundColor:"transparent"}}},[`${t}-slash`]:{marginInlineEnd:e.paginationSlashMarginInlineEnd,marginInlineStart:e.paginationSlashMarginInlineStart},[`${t}-options`]:{display:"inline-block",marginInlineStart:e.margin,verticalAlign:"middle","&-size-changer":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:e.controlHeight,marginInlineStart:e.marginXS,lineHeight:ie(e.controlHeight),verticalAlign:"top",input:Object.assign(Object.assign(Object.assign({},i3(e)),n3(e,{borderColor:e.colorBorder,hoverBorderColor:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadow:e.activeShadow})),{"&[disabled]":Object.assign({},qb(e)),width:e.calc(e.controlHeightLG).mul(1.25).equal(),height:e.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:e.marginXS,marginInlineEnd:e.marginXS})}}}},afe=e=>{const{componentCls:t}=e;return{[`${t}-item`]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,marginInlineEnd:e.marginXS,fontFamily:e.fontFamily,lineHeight:ie(e.calc(e.itemSize).sub(2).equal()),textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:e.itemBg,border:`${ie(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${ie(e.paginationItemPaddingInline)}`,color:e.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${t}-item-active)`]:{"&:hover":{transition:`all ${e.motionDurationMid}`,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},"&-active":{fontWeight:e.fontWeightStrong,backgroundColor:e.itemActiveBg,borderColor:e.colorPrimary,a:{color:e.colorPrimary},"&:hover":{borderColor:e.colorPrimaryHover},"&:hover a":{color:e.colorPrimaryHover}}}}},lfe=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Fn(e)),{display:"flex","&-start":{justifyContent:"start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"end"},"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${t}-total-text`]:{display:"inline-block",height:e.itemSize,marginInlineEnd:e.marginXS,lineHeight:ie(e.calc(e.itemSize).sub(2).equal()),verticalAlign:"middle"}}),afe(e)),ofe(e)),ife(e)),rfe(e)),nfe(e)),{[`@media only screen and (max-width: ${e.screenLG}px)`]:{[`${t}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${e.screenSM}px)`]:{[`${t}-options`]:{display:"none"}}}),[`&${e.componentCls}-rtl`]:{direction:"rtl"}}},sfe=e=>{const{componentCls:t}=e;return{[`${t}:not(${t}-disabled)`]:{[`${t}-item`]:Object.assign({},ms(e)),[`${t}-jump-prev, ${t}-jump-next`]:{"&:focus-visible":Object.assign({[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}},Sc(e))},[`${t}-prev, ${t}-next`]:{[`&:focus-visible ${t}-item-link`]:Object.assign({},Sc(e))}}}},kB=e=>Object.assign({itemBg:e.colorBgContainer,itemSize:e.controlHeight,itemSizeSM:e.controlHeightSM,itemActiveBg:e.colorBgContainer,itemLinkBg:e.colorBgContainer,itemActiveColorDisabled:e.colorTextDisabled,itemActiveBgDisabled:e.controlItemBgActiveDisabled,itemInputBg:e.colorBgContainer,miniOptionsSizeChangerTop:0},t3(e)),RB=e=>hn(e,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:e.calc(e.marginXXS).div(2).equal(),paginationMiniQuickJumperInputWidth:e.calc(e.controlHeightLG).mul(1.1).equal(),paginationItemPaddingInline:e.calc(e.marginXXS).mul(1.5).equal(),paginationEllipsisLetterSpacing:e.calc(e.marginXXS).div(2).equal(),paginationSlashMarginInlineStart:e.marginSM,paginationSlashMarginInlineEnd:e.marginSM,paginationEllipsisTextIndent:"0.13em"},e3(e)),cfe=Mn("Pagination",e=>{const t=RB(e);return[lfe(t),sfe(t)]},kB),ufe=e=>{const{componentCls:t}=e;return{[`${t}${t}-bordered${t}-disabled:not(${t}-mini)`]:{"&, &:hover":{[`${t}-item-link`]:{borderColor:e.colorBorder}},"&:focus-visible":{[`${t}-item-link`]:{borderColor:e.colorBorder}},[`${t}-item, ${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,[`&:hover:not(${t}-item-active)`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,a:{color:e.colorTextDisabled}},[`&${t}-item-active`]:{backgroundColor:e.itemActiveBgDisabled}},[`${t}-prev, ${t}-next`]:{"&:hover button":{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,color:e.colorTextDisabled},[`${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder}}},[`${t}${t}-bordered:not(${t}-mini)`]:{[`${t}-prev, ${t}-next`]:{"&:hover button":{borderColor:e.colorPrimaryHover,backgroundColor:e.itemBg},[`${t}-item-link`]:{backgroundColor:e.itemLinkBg,borderColor:e.colorBorder},[`&:hover ${t}-item-link`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,color:e.colorPrimary},[`&${t}-disabled`]:{[`${t}-item-link`]:{borderColor:e.colorBorder,color:e.colorTextDisabled}}},[`${t}-item`]:{backgroundColor:e.itemBg,border:`${ie(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,[`&:hover:not(${t}-item-active)`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,a:{color:e.colorPrimary}},"&-active":{borderColor:e.colorPrimary}}}}},dfe=s1(["Pagination","bordered"],e=>{const t=RB(e);return[ufe(t)]},kB);var ffe=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const hfe=e=>{const{align:t,prefixCls:n,selectPrefixCls:r,className:i,rootClassName:o,style:a,size:l,locale:c,selectComponentClass:u,responsive:f,showSizeChanger:p}=e,m=ffe(e,["align","prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","selectComponentClass","responsive","showSizeChanger"]),{xs:g}=zb(f),[,b]=Bi(),{getPrefixCls:E,direction:x,pagination:C={}}=d.useContext(At),S=E("pagination",n),[T,O,I]=cfe(S),_=p??C.showSizeChanger,$=d.useMemo(()=>{const z=d.createElement("span",{className:`${S}-item-ellipsis`},"•••"),W=d.createElement("button",{className:`${S}-item-link`,type:"button",tabIndex:-1},x==="rtl"?d.createElement(Qp,null):d.createElement(py,null)),j=d.createElement("button",{className:`${S}-item-link`,type:"button",tabIndex:-1},x==="rtl"?d.createElement(py,null):d.createElement(Qp,null)),U=d.createElement("a",{className:`${S}-item-link`},d.createElement("div",{className:`${S}-item-container`},x==="rtl"?d.createElement(xI,{className:`${S}-item-link-icon`}):d.createElement(EI,{className:`${S}-item-link-icon`}),z)),q=d.createElement("a",{className:`${S}-item-link`},d.createElement("div",{className:`${S}-item-container`},x==="rtl"?d.createElement(EI,{className:`${S}-item-link-icon`}):d.createElement(xI,{className:`${S}-item-link-icon`}),z));return{prevIcon:W,nextIcon:j,jumpPrevIcon:U,jumpNextIcon:q}},[x,S]),[k]=Dl("Pagination",nL),R=Object.assign(Object.assign({},k),c),M=vo(l),H=M==="small"||!!(g&&!M&&f),B=E("select",r),L=le({[`${S}-${t}`]:!!t,[`${S}-mini`]:H,[`${S}-rtl`]:x==="rtl",[`${S}-bordered`]:b.wireframe},C==null?void 0:C.className,i,o,O,I),D=Object.assign(Object.assign({},C==null?void 0:C.style),a);return T(d.createElement(d.Fragment,null,b.wireframe&&d.createElement(dfe,{prefixCls:S}),d.createElement(tfe,Object.assign({},$,m,{style:D,prefixCls:S,selectPrefixCls:B,className:L,selectComponentClass:u||(H?NB:AB),locale:R,showSizeChanger:_}))))},Cy=100,MB=Cy/5,PB=Cy/2-MB/2,U4=PB*2*Math.PI,_I=50,OI=e=>{const{dotClassName:t,style:n,hasCircleCls:r}=e;return d.createElement("circle",{className:le(`${t}-circle`,{[`${t}-circle-bg`]:r}),r:PB,cx:_I,cy:_I,strokeWidth:MB,style:n})},pfe=e=>{let{percent:t,prefixCls:n}=e;const r=`${n}-dot`,i=`${r}-holder`,o=`${i}-hidden`,[a,l]=d.useState(!1);bn(()=>{t!==0&&l(!0)},[t!==0]);const c=Math.max(Math.min(t,100),0);if(!a)return null;const u={strokeDashoffset:`${U4/4}`,strokeDasharray:`${U4*c/100} ${U4*(100-c)/100}`};return d.createElement("span",{className:le(i,`${r}-progress`,c<=0&&o)},d.createElement("svg",{viewBox:`0 0 ${Cy} ${Cy}`,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":c},d.createElement(OI,{dotClassName:r,hasCircleCls:!0}),d.createElement(OI,{dotClassName:r,style:u})))};function mfe(e){const{prefixCls:t,percent:n=0}=e,r=`${t}-dot`,i=`${r}-holder`,o=`${i}-hidden`;return d.createElement(d.Fragment,null,d.createElement("span",{className:le(i,n>0&&o)},d.createElement("span",{className:le(r,`${t}-dot-spin`)},[1,2,3,4].map(a=>d.createElement("i",{className:`${t}-dot-item`,key:a})))),d.createElement(pfe,{prefixCls:t,percent:n}))}function gfe(e){const{prefixCls:t,indicator:n,percent:r}=e,i=`${t}-dot`;return n&&d.isValidElement(n)?mi(n,{className:le(n.props.className,i),percent:r}):d.createElement(mfe,{prefixCls:t,percent:r})}const vfe=new Sn("antSpinMove",{to:{opacity:1}}),yfe=new Sn("antRotate",{to:{transform:"rotate(405deg)"}}),bfe=e=>{const{componentCls:t,calc:n}=e;return{[t]:Object.assign(Object.assign({},Fn(e)),{position:"absolute",display:"none",color:e.colorPrimary,fontSize:0,textAlign:"center",verticalAlign:"middle",opacity:0,transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`,"&-spinning":{position:"relative",display:"inline-block",opacity:1},[`${t}-text`]:{fontSize:e.fontSize,paddingTop:n(n(e.dotSize).sub(e.fontSize)).div(2).add(2).equal()},"&-fullscreen":{position:"fixed",width:"100vw",height:"100vh",backgroundColor:e.colorBgMask,zIndex:e.zIndexPopupBase,inset:0,display:"flex",alignItems:"center",flexDirection:"column",justifyContent:"center",opacity:0,visibility:"hidden",transition:`all ${e.motionDurationMid}`,"&-show":{opacity:1,visibility:"visible"},[t]:{[`${t}-dot-holder`]:{color:e.colorWhite},[`${t}-text`]:{color:e.colorTextLightSolid}}},"&-nested-loading":{position:"relative",[`> div > ${t}`]:{position:"absolute",top:0,insetInlineStart:0,zIndex:4,display:"block",width:"100%",height:"100%",maxHeight:e.contentHeight,[`${t}-dot`]:{position:"absolute",top:"50%",insetInlineStart:"50%",margin:n(e.dotSize).mul(-1).div(2).equal()},[`${t}-text`]:{position:"absolute",top:"50%",width:"100%",textShadow:`0 1px 2px ${e.colorBgContainer}`},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSize).div(2).mul(-1).sub(10).equal()},"&-sm":{[`${t}-dot`]:{margin:n(e.dotSizeSM).mul(-1).div(2).equal()},[`${t}-text`]:{paddingTop:n(n(e.dotSizeSM).sub(e.fontSize)).div(2).add(2).equal()},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSizeSM).div(2).mul(-1).sub(10).equal()}},"&-lg":{[`${t}-dot`]:{margin:n(e.dotSizeLG).mul(-1).div(2).equal()},[`${t}-text`]:{paddingTop:n(n(e.dotSizeLG).sub(e.fontSize)).div(2).add(2).equal()},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSizeLG).div(2).mul(-1).sub(10).equal()}}},[`${t}-container`]:{position:"relative",transition:`opacity ${e.motionDurationSlow}`,"&::after":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:10,width:"100%",height:"100%",background:e.colorBgContainer,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'""',pointerEvents:"none"}},[`${t}-blur`]:{clear:"both",opacity:.5,userSelect:"none",pointerEvents:"none","&::after":{opacity:.4,pointerEvents:"auto"}}},"&-tip":{color:e.spinDotDefault},[`${t}-dot-holder`]:{width:"1em",height:"1em",fontSize:e.dotSize,display:"inline-block",transition:`transform ${e.motionDurationSlow} ease, opacity ${e.motionDurationSlow} ease`,transformOrigin:"50% 50%",lineHeight:1,color:e.colorPrimary,"&-hidden":{transform:"scale(0.3)",opacity:0}},[`${t}-dot-progress`]:{position:"absolute",top:"50%",transform:"translate(-50%, -50%)",insetInlineStart:"50%"},[`${t}-dot`]:{position:"relative",display:"inline-block",fontSize:e.dotSize,width:"1em",height:"1em","&-item":{position:"absolute",display:"block",width:n(e.dotSize).sub(n(e.marginXXS).div(2)).div(2).equal(),height:n(e.dotSize).sub(n(e.marginXXS).div(2)).div(2).equal(),background:"currentColor",borderRadius:"100%",transform:"scale(0.75)",transformOrigin:"50% 50%",opacity:.3,animationName:vfe,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear",animationDirection:"alternate","&:nth-child(1)":{top:0,insetInlineStart:0,animationDelay:"0s"},"&:nth-child(2)":{top:0,insetInlineEnd:0,animationDelay:"0.4s"},"&:nth-child(3)":{insetInlineEnd:0,bottom:0,animationDelay:"0.8s"},"&:nth-child(4)":{bottom:0,insetInlineStart:0,animationDelay:"1.2s"}},"&-spin":{transform:"rotate(45deg)",animationName:yfe,animationDuration:"1.2s",animationIterationCount:"infinite",animationTimingFunction:"linear"},"&-circle":{strokeLinecap:"round",transition:["stroke-dashoffset","stroke-dasharray","stroke","stroke-width","opacity"].map(r=>`${r} ${e.motionDurationSlow} ease`).join(","),fillOpacity:0,stroke:"currentcolor"},"&-circle-bg":{stroke:e.colorFillSecondary}},[`&-sm ${t}-dot`]:{"&, &-holder":{fontSize:e.dotSizeSM}},[`&-sm ${t}-dot-holder`]:{i:{width:n(n(e.dotSizeSM).sub(n(e.marginXXS).div(2))).div(2).equal(),height:n(n(e.dotSizeSM).sub(n(e.marginXXS).div(2))).div(2).equal()}},[`&-lg ${t}-dot`]:{"&, &-holder":{fontSize:e.dotSizeLG}},[`&-lg ${t}-dot-holder`]:{i:{width:n(n(e.dotSizeLG).sub(e.marginXXS)).div(2).equal(),height:n(n(e.dotSizeLG).sub(e.marginXXS)).div(2).equal()}},[`&${t}-show-text ${t}-text`]:{display:"block"}})}},Cfe=e=>{const{controlHeightLG:t,controlHeight:n}=e;return{contentHeight:400,dotSize:t/2,dotSizeSM:t*.35,dotSizeLG:n}},Sfe=Mn("Spin",e=>{const t=hn(e,{spinDotDefault:e.colorTextDescription});return[bfe(t)]},Cfe),Efe=200,II=[[30,.05],[70,.03],[96,.01]];function xfe(e,t){const[n,r]=d.useState(0),i=d.useRef(),o=t==="auto";return d.useEffect(()=>(o&&e&&(r(0),i.current=setInterval(()=>{r(a=>{const l=100-a;for(let c=0;c<II.length;c+=1){const[u,f]=II[c];if(a<=u)return a+l*f}return a})},Efe)),()=>{clearInterval(i.current)}),[o,e]),o?n:t}var wfe=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};let LB;function Tfe(e,t){return!!e&&!!t&&!isNaN(Number(t))}const Dm=e=>{var t;const{prefixCls:n,spinning:r=!0,delay:i=0,className:o,rootClassName:a,size:l="default",tip:c,wrapperClassName:u,style:f,children:p,fullscreen:m=!1,indicator:g,percent:b}=e,E=wfe(e,["prefixCls","spinning","delay","className","rootClassName","size","tip","wrapperClassName","style","children","fullscreen","indicator","percent"]),{getPrefixCls:x,direction:C,spin:S}=d.useContext(At),T=x("spin",n),[O,I,_]=Sfe(T),[$,k]=d.useState(()=>r&&!Tfe(r,i)),R=xfe($,b);d.useEffect(()=>{if(r){const W=Rce(i,()=>{k(!0)});return W(),()=>{var j;(j=W==null?void 0:W.cancel)===null||j===void 0||j.call(W)}}k(!1)},[i,r]);const M=d.useMemo(()=>typeof p<"u"&&!m,[p,m]),H=le(T,S==null?void 0:S.className,{[`${T}-sm`]:l==="small",[`${T}-lg`]:l==="large",[`${T}-spinning`]:$,[`${T}-show-text`]:!!c,[`${T}-rtl`]:C==="rtl"},o,!m&&a,I,_),B=le(`${T}-container`,{[`${T}-blur`]:$}),L=(t=g??(S==null?void 0:S.indicator))!==null&&t!==void 0?t:LB,D=Object.assign(Object.assign({},S==null?void 0:S.style),f),z=d.createElement("div",Object.assign({},E,{style:D,className:H,"aria-live":"polite","aria-busy":$}),d.createElement(gfe,{prefixCls:T,indicator:L,percent:R}),c&&(M||m)?d.createElement("div",{className:`${T}-text`},c):null);return O(M?d.createElement("div",Object.assign({},E,{className:le(`${T}-nested-loading`,u,I,_)}),$&&d.createElement("div",{key:"loading"},z),d.createElement("div",{className:B,key:"container"},p)):m?d.createElement("div",{className:le(`${T}-fullscreen`,{[`${T}-fullscreen-show`]:$},a,I,_)},z):z)};Dm.setDefaultIndicator=e=>{LB=e};function _fe(e){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1)&&e==null?[]:Array.isArray(e)?e:[e]}let ma=null,bu=e=>e(),nm=[],rm={};function $I(){const{getContainer:e,duration:t,rtl:n,maxCount:r,top:i}=rm,o=(e==null?void 0:e())||document.body;return{getContainer:()=>o,duration:t,rtl:n,maxCount:r,top:i}}const Ofe=be.forwardRef((e,t)=>{const{messageConfig:n,sync:r}=e,{getPrefixCls:i}=d.useContext(At),o=rm.prefixCls||i("message"),a=d.useContext(Hre),[l,c]=VL(Object.assign(Object.assign(Object.assign({},n),{prefixCls:o}),a.message));return be.useImperativeHandle(t,()=>{const u=Object.assign({},l);return Object.keys(u).forEach(f=>{u[f]=function(){return r(),l[f].apply(l,arguments)}}),{instance:u,sync:r}}),c}),Ife=be.forwardRef((e,t)=>{const[n,r]=be.useState($I),i=()=>{r($I)};be.useEffect(i,[]);const o=kL(),a=o.getRootPrefixCls(),l=o.getIconPrefixCls(),c=o.getTheme(),u=be.createElement(Ofe,{ref:t,sync:i,messageConfig:n});return be.createElement(Fl,{prefixCls:a,iconPrefixCls:l,theme:c},o.holderRender?o.holderRender(u):u)});function Jb(){if(!ma){const e=document.createDocumentFragment(),t={fragment:e};ma=t,bu(()=>{p8(be.createElement(Ife,{ref:n=>{const{instance:r,sync:i}=n||{};Promise.resolve().then(()=>{!t.instance&&r&&(t.instance=r,t.sync=i,Jb())})}}),e)});return}ma.instance&&(nm.forEach(e=>{const{type:t,skipped:n}=e;if(!n)switch(t){case"open":{bu(()=>{const r=ma.instance.open(Object.assign(Object.assign({},rm),e.config));r==null||r.then(e.resolve),e.setCloseFn(r)});break}case"destroy":bu(()=>{ma==null||ma.instance.destroy(e.key)});break;default:bu(()=>{var r;const i=(r=ma.instance)[t].apply(r,Qe(e.args));i==null||i.then(e.resolve),e.setCloseFn(i)})}}),nm=[])}function $fe(e){rm=Object.assign(Object.assign({},rm),e),bu(()=>{var t;(t=ma==null?void 0:ma.sync)===null||t===void 0||t.call(ma)})}function Nfe(e){const t=h8(n=>{let r;const i={type:"open",config:e,resolve:n,setCloseFn:o=>{r=o}};return nm.push(i),()=>{r?bu(()=>{r()}):i.skipped=!0}});return Jb(),t}function Afe(e,t){const n=h8(r=>{let i;const o={type:e,args:t,resolve:r,setCloseFn:a=>{i=a}};return nm.push(o),()=>{i?bu(()=>{i()}):o.skipped=!0}});return Jb(),n}const kfe=e=>{nm.push({type:"destroy",key:e}),Jb()},Rfe=["success","info","warning","error","loading"],Mfe={open:Nfe,destroy:kfe,config:$fe,useMessage:cee,_InternalPanelDoNotUseOrYouWillBeFired:tee},po=Mfe;Rfe.forEach(e=>{po[e]=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Afe(e,n)}});var Pfe=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const Lfe=e=>{const{prefixCls:t,className:n,closeIcon:r,closable:i,type:o,title:a,children:l,footer:c}=e,u=Pfe(e,["prefixCls","className","closeIcon","closable","type","title","children","footer"]),{getPrefixCls:f}=d.useContext(At),p=f(),m=t||f("modal"),g=Kr(p),[b,E,x]=ID(m,g),C=`${m}-confirm`;let S={};return o?S={closable:i??!1,title:"",footer:"",children:d.createElement(ND,Object.assign({},e,{prefixCls:m,confirmPrefixCls:C,rootPrefixCls:p,content:l}))}:S={closable:i??!0,title:a,footer:c!==null&&d.createElement(TD,Object.assign({},e)),children:l},b(d.createElement(cD,Object.assign({prefixCls:m,className:le(E,`${m}-pure-panel`,o&&C,o&&`${C}-${o}`,n,x,g)},u,{closeIcon:wD(m,r),closable:i},S)))},Dfe=BD(Lfe);function DB(e){return Nm(MD(e))}const ua=$D;ua.useModal=jre;ua.info=function(t){return Nm(PD(t))};ua.success=function(t){return Nm(LD(t))};ua.error=function(t){return Nm(DD(t))};ua.warning=DB;ua.warn=DB;ua.confirm=function(t){return Nm(FD(t))};ua.destroyAll=function(){for(;yu.length;){const t=yu.pop();t&&t()}};ua.config=Pre;ua._InternalPanelDoNotUseOrYouWillBeFired=Dfe;var Ffe={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},Bfe=function(){var t=d.useRef([]),n=d.useRef(null);return d.useEffect(function(){var r=Date.now(),i=!1;t.current.forEach(function(o){if(o){i=!0;var a=o.style;a.transitionDuration=".3s, .3s, .3s, .06s",n.current&&r-n.current<100&&(a.transitionDuration="0s, 0s")}}),i&&(n.current=Date.now())}),t.current},NI=0,jfe=Ti();function Hfe(){var e;return jfe?(e=NI,NI+=1):e="TEST_OR_SSR",e}const zfe=function(e){var t=d.useState(),n=Oe(t,2),r=n[0],i=n[1];return d.useEffect(function(){i("rc_progress_".concat(Hfe()))},[]),e||r};var AI=function(t){var n=t.bg,r=t.children;return d.createElement("div",{style:{width:"100%",height:"100%",background:n}},r)};function kI(e,t){return Object.keys(e).map(function(n){var r=parseFloat(n),i="".concat(Math.floor(r*t),"%");return"".concat(e[n]," ").concat(i)})}var Wfe=d.forwardRef(function(e,t){var n=e.prefixCls,r=e.color,i=e.gradientId,o=e.radius,a=e.style,l=e.ptg,c=e.strokeLinecap,u=e.strokeWidth,f=e.size,p=e.gapDegree,m=r&&$t(r)==="object",g=m?"#FFF":void 0,b=f/2,E=d.createElement("circle",{className:"".concat(n,"-circle-path"),r:o,cx:b,cy:b,stroke:g,strokeLinecap:c,strokeWidth:u,opacity:l===0?0:1,style:a,ref:t});if(!m)return E;var x="".concat(i,"-conic"),C=p?"".concat(180+p/2,"deg"):"0deg",S=kI(r,(360-p)/360),T=kI(r,1),O="conic-gradient(from ".concat(C,", ").concat(S.join(", "),")"),I="linear-gradient(to ".concat(p?"bottom":"top",", ").concat(T.join(", "),")");return d.createElement(d.Fragment,null,d.createElement("mask",{id:x},E),d.createElement("foreignObject",{x:0,y:0,width:f,height:f,mask:"url(#".concat(x,")")},d.createElement(AI,{bg:I},d.createElement(AI,{bg:O}))))}),Lh=100,K4=function(t,n,r,i,o,a,l,c,u,f){var p=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,m=r/100*360*((360-a)/360),g=a===0?0:{bottom:0,top:180,left:90,right:-90}[l],b=(100-i)/100*n;u==="round"&&i!==100&&(b+=f/2,b>=n&&(b=n-.01));var E=Lh/2;return{stroke:typeof c=="string"?c:void 0,strokeDasharray:"".concat(n,"px ").concat(t),strokeDashoffset:b+p,transform:"rotate(".concat(o+m+g,"deg)"),transformOrigin:"".concat(E,"px ").concat(E,"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}},Ufe=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function RI(e){var t=e??[];return Array.isArray(t)?t:[t]}var Kfe=function(t){var n=te(te({},Ffe),t),r=n.id,i=n.prefixCls,o=n.steps,a=n.strokeWidth,l=n.trailWidth,c=n.gapDegree,u=c===void 0?0:c,f=n.gapPosition,p=n.trailColor,m=n.strokeLinecap,g=n.style,b=n.className,E=n.strokeColor,x=n.percent,C=Gt(n,Ufe),S=Lh/2,T=zfe(r),O="".concat(T,"-gradient"),I=S-a/2,_=Math.PI*2*I,$=u>0?90+u/2:-90,k=_*((360-u)/360),R=$t(o)==="object"?o:{count:o,gap:2},M=R.count,H=R.gap,B=RI(x),L=RI(E),D=L.find(function(P){return P&&$t(P)==="object"}),z=D&&$t(D)==="object",W=z?"butt":m,j=K4(_,k,0,100,$,u,f,p,W,a),U=Bfe(),q=function(){var Z=0;return B.map(function(V,Y){var ee=L[Y]||L[L.length-1],ue=K4(_,k,Z,V,$,u,f,ee,W,a);return Z+=V,d.createElement(Wfe,{key:Y,color:ee,ptg:V,radius:I,prefixCls:i,gradientId:O,style:ue,strokeLinecap:W,strokeWidth:a,gapDegree:u,ref:function(se){U[Y]=se},size:Lh})}).reverse()},A=function(){var Z=Math.round(M*(B[0]/100)),V=100/M,Y=0;return new Array(M).fill(null).map(function(ee,ue){var ne=ue<=Z-1?L[0]:p,se=ne&&$t(ne)==="object"?"url(#".concat(O,")"):void 0,me=K4(_,k,Y,V,$,u,f,ne,"butt",a,H);return Y+=(k-me.strokeDashoffset+H)*100/k,d.createElement("circle",{key:ue,className:"".concat(i,"-circle-path"),r:I,cx:S,cy:S,stroke:se,strokeWidth:a,opacity:1,style:me,ref:function(de){U[ue]=de}})})};return d.createElement("svg",ze({className:le("".concat(i,"-circle"),b),viewBox:"0 0 ".concat(Lh," ").concat(Lh),style:g,id:r,role:"presentation"},C),!M&&d.createElement("circle",{className:"".concat(i,"-circle-trail"),r:I,cx:S,cy:S,stroke:p,strokeLinecap:W,strokeWidth:l||a,style:j}),M?A():q())};function vc(e){return!e||e<0?0:e>100?100:e}function Sy(e){let{success:t,successPercent:n}=e,r=n;return t&&"progress"in t&&(r=t.progress),t&&"percent"in t&&(r=t.percent),r}const Vfe=e=>{let{percent:t,success:n,successPercent:r}=e;const i=vc(Sy({success:n,successPercent:r}));return[i,vc(vc(t)-i)]},Gfe=e=>{let{success:t={},strokeColor:n}=e;const{strokeColor:r}=t;return[r||Cf.green,n||null]},e2=(e,t,n)=>{var r,i,o,a;let l=-1,c=-1;if(t==="step"){const u=n.steps,f=n.strokeWidth;typeof e=="string"||typeof e>"u"?(l=e==="small"?2:14,c=f??8):typeof e=="number"?[l,c]=[e,e]:[l=14,c=8]=Array.isArray(e)?e:[e.width,e.height],l*=u}else if(t==="line"){const u=n==null?void 0:n.strokeWidth;typeof e=="string"||typeof e>"u"?c=u||(e==="small"?6:8):typeof e=="number"?[l,c]=[e,e]:[l=-1,c=8]=Array.isArray(e)?e:[e.width,e.height]}else(t==="circle"||t==="dashboard")&&(typeof e=="string"||typeof e>"u"?[l,c]=e==="small"?[60,60]:[120,120]:typeof e=="number"?[l,c]=[e,e]:Array.isArray(e)&&(l=(i=(r=e[0])!==null&&r!==void 0?r:e[1])!==null&&i!==void 0?i:120,c=(a=(o=e[0])!==null&&o!==void 0?o:e[1])!==null&&a!==void 0?a:120));return[l,c]},qfe=3,Xfe=e=>qfe/e*100,Yfe=e=>{const{prefixCls:t,trailColor:n=null,strokeLinecap:r="round",gapPosition:i,gapDegree:o,width:a=120,type:l,children:c,success:u,size:f=a,steps:p}=e,[m,g]=e2(f,"circle");let{strokeWidth:b}=e;b===void 0&&(b=Math.max(Xfe(m),6));const E={width:m,height:g,fontSize:m*.15+6},x=d.useMemo(()=>{if(o||o===0)return o;if(l==="dashboard")return 75},[o,l]),C=Vfe(e),S=i||l==="dashboard"&&"bottom"||void 0,T=Object.prototype.toString.call(e.strokeColor)==="[object Object]",O=Gfe({success:u,strokeColor:e.strokeColor}),I=le(`${t}-inner`,{[`${t}-circle-gradient`]:T}),_=d.createElement(Kfe,{steps:p,percent:p?C[1]:C,strokeWidth:b,trailWidth:b,strokeColor:p?O[1]:O,strokeLinecap:r,trailColor:n,prefixCls:t,gapDegree:x,gapPosition:S}),$=m<=20,k=d.createElement("div",{className:I,style:E},_,!$&&c);return $?d.createElement(sl,{title:c},k):k},Ey="--progress-line-stroke-color",FB="--progress-percent",MI=e=>{const t=e?"100%":"-100%";return new Sn(`antProgress${e?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${t}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${t}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},Qfe=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:Object.assign(Object.assign({},Fn(e)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:e.fontSize},[`${t}-outer`]:{display:"inline-flex",alignItems:"center",width:"100%"},[`${t}-inner`]:{position:"relative",display:"inline-block",width:"100%",flex:1,overflow:"hidden",verticalAlign:"middle",backgroundColor:e.remainingColor,borderRadius:e.lineBorderRadius},[`${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.defaultColor}},[`${t}-success-bg, ${t}-bg`]:{position:"relative",background:e.defaultColor,borderRadius:e.lineBorderRadius,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`},[`${t}-layout-bottom`]:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",[`${t}-text`]:{width:"max-content",marginInlineStart:0,marginTop:e.marginXXS}},[`${t}-bg`]:{overflow:"hidden","&::after":{content:'""',background:{_multi_value_:!0,value:["inherit",`var(${Ey})`]},height:"100%",width:`calc(1 / var(${FB}) * 100%)`,display:"block"},[`&${t}-bg-inner`]:{minWidth:"max-content","&::after":{content:"none"},[`${t}-text-inner`]:{color:e.colorWhite,[`&${t}-text-bright`]:{color:"rgba(0, 0, 0, 0.45)"}}}},[`${t}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:e.colorSuccess},[`${t}-text`]:{display:"inline-block",marginInlineStart:e.marginXS,color:e.colorText,lineHeight:1,width:"2em",whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[n]:{fontSize:e.fontSize},[`&${t}-text-outer`]:{width:"max-content"},[`&${t}-text-outer${t}-text-start`]:{width:"max-content",marginInlineStart:0,marginInlineEnd:e.marginXS}},[`${t}-text-inner`]:{display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",marginInlineStart:0,padding:`0 ${ie(e.paddingXXS)}`,[`&${t}-text-start`]:{justifyContent:"start"},[`&${t}-text-end`]:{justifyContent:"end"}},[`&${t}-status-active`]:{[`${t}-bg::before`]:{position:"absolute",inset:0,backgroundColor:e.colorBgContainer,borderRadius:e.lineBorderRadius,opacity:0,animationName:MI(),animationDuration:e.progressActiveMotionDuration,animationTimingFunction:e.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${t}-rtl${t}-status-active`]:{[`${t}-bg::before`]:{animationName:MI(!0)}},[`&${t}-status-exception`]:{[`${t}-bg`]:{backgroundColor:e.colorError},[`${t}-text`]:{color:e.colorError}},[`&${t}-status-exception ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorError}},[`&${t}-status-success`]:{[`${t}-bg`]:{backgroundColor:e.colorSuccess},[`${t}-text`]:{color:e.colorSuccess}},[`&${t}-status-success ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorSuccess}}})}},Zfe=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{[`${t}-circle-trail`]:{stroke:e.remainingColor},[`&${t}-circle ${t}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${t}-circle ${t}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:e.circleTextColor,fontSize:e.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[n]:{fontSize:e.circleIconFontSize}},[`${t}-circle&-status-exception`]:{[`${t}-text`]:{color:e.colorError}},[`${t}-circle&-status-success`]:{[`${t}-text`]:{color:e.colorSuccess}}},[`${t}-inline-circle`]:{lineHeight:1,[`${t}-inner`]:{verticalAlign:"bottom"}}}},Jfe=e=>{const{componentCls:t}=e;return{[t]:{[`${t}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:e.progressStepMinWidth,marginInlineEnd:e.progressStepMarginInlineEnd,backgroundColor:e.remainingColor,transition:`all ${e.motionDurationSlow}`,"&-active":{backgroundColor:e.defaultColor}}}}}},e1e=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{[`${t}-small&-line, ${t}-small&-line ${t}-text ${n}`]:{fontSize:e.fontSizeSM}}}},t1e=e=>({circleTextColor:e.colorText,defaultColor:e.colorInfo,remainingColor:e.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:`${e.fontSize/e.fontSizeSM}em`}),n1e=Mn("Progress",e=>{const t=e.calc(e.marginXXS).div(2).equal(),n=hn(e,{progressStepMarginInlineEnd:t,progressStepMinWidth:t,progressActiveMotionDuration:"2.4s"});return[Qfe(n),Zfe(n),Jfe(n),e1e(n)]},t1e);var r1e=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const i1e=e=>{let t=[];return Object.keys(e).forEach(n=>{const r=parseFloat(n.replace(/%/g,""));isNaN(r)||t.push({key:r,value:e[n]})}),t=t.sort((n,r)=>n.key-r.key),t.map(n=>{let{key:r,value:i}=n;return`${i} ${r}%`}).join(", ")},o1e=(e,t)=>{const{from:n=Cf.blue,to:r=Cf.blue,direction:i=t==="rtl"?"to left":"to right"}=e,o=r1e(e,["from","to","direction"]);if(Object.keys(o).length!==0){const l=i1e(o),c=`linear-gradient(${i}, ${l})`;return{background:c,[Ey]:c}}const a=`linear-gradient(${i}, ${n}, ${r})`;return{background:a,[Ey]:a}},a1e=e=>{const{prefixCls:t,direction:n,percent:r,size:i,strokeWidth:o,strokeColor:a,strokeLinecap:l="round",children:c,trailColor:u=null,percentPosition:f,success:p}=e,{align:m,type:g}=f,b=a&&typeof a!="string"?o1e(a,n):{[Ey]:a,background:a},E=l==="square"||l==="butt"?0:void 0,x=i??[-1,o||(i==="small"?6:8)],[C,S]=e2(x,"line",{strokeWidth:o}),T={backgroundColor:u||void 0,borderRadius:E},O=Object.assign(Object.assign({width:`${vc(r)}%`,height:S,borderRadius:E},b),{[FB]:vc(r)/100}),I=Sy(e),_={width:`${vc(I)}%`,height:S,borderRadius:E,backgroundColor:p==null?void 0:p.strokeColor},$={width:C<0?"100%":C},k=d.createElement("div",{className:`${t}-inner`,style:T},d.createElement("div",{className:le(`${t}-bg`,`${t}-bg-${g}`),style:O},g==="inner"&&c),I!==void 0&&d.createElement("div",{className:`${t}-success-bg`,style:_})),R=g==="outer"&&m==="start",M=g==="outer"&&m==="end";return g==="outer"&&m==="center"?d.createElement("div",{className:`${t}-layout-bottom`},k,c):d.createElement("div",{className:`${t}-outer`,style:$},R&&c,k,M&&c)},l1e=e=>{const{size:t,steps:n,percent:r=0,strokeWidth:i=8,strokeColor:o,trailColor:a=null,prefixCls:l,children:c}=e,u=Math.round(n*(r/100)),p=t??[t==="small"?2:14,i],[m,g]=e2(p,"step",{steps:n,strokeWidth:i}),b=m/n,E=new Array(n);for(let x=0;x<n;x++){const C=Array.isArray(o)?o[x]:o;E[x]=d.createElement("div",{key:x,className:le(`${l}-steps-item`,{[`${l}-steps-item-active`]:x<=u-1}),style:{backgroundColor:x<=u-1?C:a,width:b,height:g}})}return d.createElement("div",{className:`${l}-steps-outer`},E,c)};var s1e=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const c1e=["normal","exception","active","success"],u1e=d.forwardRef((e,t)=>{const{prefixCls:n,className:r,rootClassName:i,steps:o,strokeColor:a,percent:l=0,size:c="default",showInfo:u=!0,type:f="line",status:p,format:m,style:g,percentPosition:b={}}=e,E=s1e(e,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style","percentPosition"]),{align:x="end",type:C="outer"}=b,S=Array.isArray(a)?a[0]:a,T=typeof a=="string"||Array.isArray(a)?a:void 0,O=d.useMemo(()=>{if(S){const q=typeof S=="string"?S:Object.values(S)[0];return new er(q).isLight()}return!1},[a]),I=d.useMemo(()=>{var q,A;const P=Sy(e);return parseInt(P!==void 0?(q=P??0)===null||q===void 0?void 0:q.toString():(A=l??0)===null||A===void 0?void 0:A.toString(),10)},[l,e.success,e.successPercent]),_=d.useMemo(()=>!c1e.includes(p)&&I>=100?"success":p||"normal",[p,I]),{getPrefixCls:$,direction:k,progress:R}=d.useContext(At),M=$("progress",n),[H,B,L]=n1e(M),D=f==="line",z=D&&!o,W=d.useMemo(()=>{if(!u)return null;const q=Sy(e);let A;const P=m||(V=>`${V}%`),Z=D&&O&&C==="inner";return C==="inner"||m||_!=="exception"&&_!=="success"?A=P(vc(l),vc(q)):_==="exception"?A=D?d.createElement(Ku,null):d.createElement(Vu,null):_==="success"&&(A=D?d.createElement(Em,null):d.createElement(F8,null)),d.createElement("span",{className:le(`${M}-text`,{[`${M}-text-bright`]:Z,[`${M}-text-${x}`]:z,[`${M}-text-${C}`]:z}),title:typeof A=="string"?A:void 0},A)},[u,l,I,_,f,M,m]);let j;f==="line"?j=o?d.createElement(l1e,Object.assign({},e,{strokeColor:T,prefixCls:M,steps:typeof o=="object"?o.count:o}),W):d.createElement(a1e,Object.assign({},e,{strokeColor:S,prefixCls:M,direction:k,percentPosition:{align:x,type:C}}),W):(f==="circle"||f==="dashboard")&&(j=d.createElement(Yfe,Object.assign({},e,{strokeColor:S,prefixCls:M,progressStatus:_}),W));const U=le(M,`${M}-status-${_}`,{[`${M}-${f==="dashboard"&&"circle"||f}`]:f!=="line",[`${M}-inline-circle`]:f==="circle"&&e2(c,"circle")[0]<=20,[`${M}-line`]:z,[`${M}-line-align-${x}`]:z,[`${M}-line-position-${C}`]:z,[`${M}-steps`]:o,[`${M}-show-info`]:u,[`${M}-${c}`]:typeof c=="string",[`${M}-rtl`]:k==="rtl"},R==null?void 0:R.className,r,i,B,L);return H(d.createElement("div",Object.assign({ref:t,style:Object.assign(Object.assign({},R==null?void 0:R.style),g),className:U,role:"progressbar","aria-valuenow":I,"aria-valuemin":0,"aria-valuemax":100},tr(E,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),j))});var d1e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M464 144H160c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V160c0-8.8-7.2-16-16-16zm-52 268H212V212h200v200zm452-268H560c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V160c0-8.8-7.2-16-16-16zm-52 268H612V212h200v200zM464 544H160c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V560c0-8.8-7.2-16-16-16zm-52 268H212V612h200v200zm452-268H560c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V560c0-8.8-7.2-16-16-16zm-52 268H612V612h200v200z"}}]},name:"appstore",theme:"outlined"},f1e=function(t,n){return d.createElement(on,ze({},t,{ref:n,icon:d1e}))},BB=d.forwardRef(f1e),h1e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32zm-260 72h96v209.9L621.5 312 572 347.4V136zm220 752H232V136h280v296.9c0 3.3 1 6.6 3 9.3a15.9 15.9 0 0022.3 3.7l83.8-59.9 81.4 59.4c2.7 2 6 3.1 9.4 3.1 8.8 0 16-7.2 16-16V136h64v752z"}}]},name:"book",theme:"outlined"},p1e=function(t,n){return d.createElement(on,ze({},t,{ref:n,icon:h1e}))},m1e=d.forwardRef(p1e),g1e={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"filled"},v1e=function(t,n){return d.createElement(on,ze({},t,{ref:n,icon:g1e}))},y1e=d.forwardRef(v1e),b1e={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"outlined"},C1e=function(t,n){return d.createElement(on,ze({},t,{ref:n,icon:b1e}))},S1e=d.forwardRef(C1e),E1e={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.9 689L530.5 308.2c-9.4-10.9-27.5-10.9-37 0L165.1 689c-12.2 14.2-1.2 35 18.5 35h656.8c19.7 0 30.7-20.8 18.5-35z"}}]},name:"caret-up",theme:"outlined"},x1e=function(t,n){return d.createElement(on,ze({},t,{ref:n,icon:E1e}))},w1e=d.forwardRef(x1e),T1e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z"}}]},name:"copy",theme:"outlined"},_1e=function(t,n){return d.createElement(on,ze({},t,{ref:n,icon:T1e}))},O1e=d.forwardRef(_1e),I1e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"},$1e=function(t,n){return d.createElement(on,ze({},t,{ref:n,icon:I1e}))},t2=d.forwardRef($1e),N1e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"},A1e=function(t,n){return d.createElement(on,ze({},t,{ref:n,icon:N1e}))},k1e=d.forwardRef(A1e),R1e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z"}}]},name:"edit",theme:"outlined"},M1e=function(t,n){return d.createElement(on,ze({},t,{ref:n,icon:R1e}))},im=d.forwardRef(M1e),P1e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 170h-60c-4.4 0-8 3.6-8 8v518H310v-73c0-6.7-7.8-10.5-13-6.3l-141.9 112a8 8 0 000 12.6l141.9 112c5.3 4.2 13 .4 13-6.3v-75h498c35.3 0 64-28.7 64-64V178c0-4.4-3.6-8-8-8z"}}]},name:"enter",theme:"outlined"},L1e=function(t,n){return d.createElement(on,ze({},t,{ref:n,icon:P1e}))},D1e=d.forwardRef(L1e),F1e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"}}]},name:"file",theme:"outlined"},B1e=function(t,n){return d.createElement(on,ze({},t,{ref:n,icon:F1e}))},jB=d.forwardRef(B1e),j1e={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:n}},{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z",fill:t}}]}},name:"file",theme:"twotone"},H1e=function(t,n){return d.createElement(on,ze({},t,{ref:n,icon:j1e}))},z1e=d.forwardRef(H1e),W1e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M349 838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V642H349v196zm531.1-684H143.9c-24.5 0-39.8 26.7-27.5 48l221.3 376h348.8l221.3-376c12.1-21.3-3.2-48-27.7-48z"}}]},name:"filter",theme:"filled"},U1e=function(t,n){return d.createElement(on,ze({},t,{ref:n,icon:W1e}))},K1e=d.forwardRef(U1e),V1e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 00-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zM136 256h188.5l119.6 114.4H748V444H238c-13 0-24.8 7.9-29.7 20L136 643.2V256zm635.3 512H159l103.3-256h612.4L771.3 768z"}}]},name:"folder-open",theme:"outlined"},G1e=function(t,n){return d.createElement(on,ze({},t,{ref:n,icon:V1e}))},q1e=d.forwardRef(G1e),X1e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 298.4H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z"}}]},name:"folder",theme:"outlined"},Y1e=function(t,n){return d.createElement(on,ze({},t,{ref:n,icon:X1e}))},Q1e=d.forwardRef(Y1e),Z1e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M300 276.5a56 56 0 1056-97 56 56 0 00-56 97zm0 284a56 56 0 1056-97 56 56 0 00-56 97zM640 228a56 56 0 10112 0 56 56 0 00-112 0zm0 284a56 56 0 10112 0 56 56 0 00-112 0zM300 844.5a56 56 0 1056-97 56 56 0 00-56 97zM640 796a56 56 0 10112 0 56 56 0 00-112 0z"}}]},name:"holder",theme:"outlined"},J1e=function(t,n){return d.createElement(on,ze({},t,{ref:n,icon:Z1e}))},ehe=d.forwardRef(J1e),the={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M868 732h-70.3c-4.8 0-9.3 2.1-12.3 5.8-7 8.5-14.5 16.7-22.4 24.5a353.84 353.84 0 01-112.7 75.9A352.8 352.8 0 01512.4 866c-47.9 0-94.3-9.4-137.9-27.8a353.84 353.84 0 01-112.7-75.9 353.28 353.28 0 01-76-112.5C167.3 606.2 158 559.9 158 512s9.4-94.2 27.8-137.8c17.8-42.1 43.4-80 76-112.5s70.5-58.1 112.7-75.9c43.6-18.4 90-27.8 137.9-27.8 47.9 0 94.3 9.3 137.9 27.8 42.2 17.8 80.1 43.4 112.7 75.9 7.9 7.9 15.3 16.1 22.4 24.5 3 3.7 7.6 5.8 12.3 5.8H868c6.3 0 10.2-7 6.7-12.3C798 160.5 663.8 81.6 511.3 82 271.7 82.6 79.6 277.1 82 516.4 84.4 751.9 276.2 942 512.4 942c152.1 0 285.7-78.8 362.3-197.7 3.4-5.3-.4-12.3-6.7-12.3zm88.9-226.3L815 393.7c-5.3-4.2-13-.4-13 6.3v76H488c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h314v76c0 6.7 7.8 10.5 13 6.3l141.9-112a8 8 0 000-12.6z"}}]},name:"logout",theme:"outlined"},nhe=function(t,n){return d.createElement(on,ze({},t,{ref:n,icon:the}))},rhe=d.forwardRef(nhe),ihe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 110.8V792H136V270.8l-27.6-21.5 39.3-50.5 42.8 33.3h643.1l42.8-33.3 39.3 50.5-27.7 21.5zM833.6 232L512 482 190.4 232l-42.8-33.3-39.3 50.5 27.6 21.5 341.6 265.6a55.99 55.99 0 0068.7 0L888 270.8l27.6-21.5-39.3-50.5-42.7 33.2z"}}]},name:"mail",theme:"outlined"},ohe=function(t,n){return d.createElement(on,ze({},t,{ref:n,icon:ihe}))},ahe=d.forwardRef(ohe),lhe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"minus-square",theme:"outlined"},she=function(t,n){return d.createElement(on,ze({},t,{ref:n,icon:lhe}))},che=d.forwardRef(she),uhe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M456 231a56 56 0 10112 0 56 56 0 10-112 0zm0 280a56 56 0 10112 0 56 56 0 10-112 0zm0 280a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"more",theme:"outlined"},dhe=function(t,n){return d.createElement(on,ze({},t,{ref:n,icon:uhe}))},fhe=d.forwardRef(dhe),hhe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z"}}]},name:"paper-clip",theme:"outlined"},phe=function(t,n){return d.createElement(on,ze({},t,{ref:n,icon:hhe}))},mhe=d.forwardRef(phe),ghe={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2z",fill:t}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:n}},{tag:"path",attrs:{d:"M136 652.7l132.4-157c3.2-3.8 9-3.8 12.2 0l144 170.7L652 396.8c3.2-3.8 9-3.8 12.2 0L888 662.2V232H136v420.7zM304 280a88 88 0 110 176 88 88 0 010-176z",fill:n}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:n}},{tag:"path",attrs:{d:"M304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z",fill:t}}]}},name:"picture",theme:"twotone"},vhe=function(t,n){return d.createElement(on,ze({},t,{ref:n,icon:ghe}))},yhe=d.forwardRef(vhe),bhe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"plus-square",theme:"outlined"},Che=function(t,n){return d.createElement(on,ze({},t,{ref:n,icon:bhe}))},She=d.forwardRef(Che),Ehe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M793 242H366v-74c0-6.7-7.7-10.4-12.9-6.3l-142 112a8 8 0 000 12.6l142 112c5.2 4.1 12.9.4 12.9-6.3v-74h415v470H175c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h618c35.3 0 64-28.7 64-64V306c0-35.3-28.7-64-64-64z"}}]},name:"rollback",theme:"outlined"},xhe=function(t,n){return d.createElement(on,ze({},t,{ref:n,icon:Ehe}))},HB=d.forwardRef(xhe),whe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M893.3 293.3L730.7 130.7c-7.5-7.5-16.7-13-26.7-16V112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V338.5c0-17-6.7-33.2-18.7-45.2zM384 184h256v104H384V184zm456 656H184V184h136v136c0 17.7 14.3 32 32 32h320c17.7 0 32-14.3 32-32V205.8l136 136V840zM512 442c-79.5 0-144 64.5-144 144s64.5 144 144 144 144-64.5 144-144-64.5-144-144-144zm0 224c-44.2 0-80-35.8-80-80s35.8-80 80-80 80 35.8 80 80-35.8 80-80 80z"}}]},name:"save",theme:"outlined"},The=function(t,n){return d.createElement(on,ze({},t,{ref:n,icon:whe}))},_he=d.forwardRef(The),Ohe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M924.8 625.7l-65.5-56c3.1-19 4.7-38.4 4.7-57.8s-1.6-38.8-4.7-57.8l65.5-56a32.03 32.03 0 009.3-35.2l-.9-2.6a443.74 443.74 0 00-79.7-137.9l-1.8-2.1a32.12 32.12 0 00-35.1-9.5l-81.3 28.9c-30-24.6-63.5-44-99.7-57.6l-15.7-85a32.05 32.05 0 00-25.8-25.7l-2.7-.5c-52.1-9.4-106.9-9.4-159 0l-2.7.5a32.05 32.05 0 00-25.8 25.7l-15.8 85.4a351.86 351.86 0 00-99 57.4l-81.9-29.1a32 32 0 00-35.1 9.5l-1.8 2.1a446.02 446.02 0 00-79.7 137.9l-.9 2.6c-4.5 12.5-.8 26.5 9.3 35.2l66.3 56.6c-3.1 18.8-4.6 38-4.6 57.1 0 19.2 1.5 38.4 4.6 57.1L99 625.5a32.03 32.03 0 00-9.3 35.2l.9 2.6c18.1 50.4 44.9 96.9 79.7 137.9l1.8 2.1a32.12 32.12 0 0035.1 9.5l81.9-29.1c29.8 24.5 63.1 43.9 99 57.4l15.8 85.4a32.05 32.05 0 0025.8 25.7l2.7.5a449.4 449.4 0 00159 0l2.7-.5a32.05 32.05 0 0025.8-25.7l15.7-85a350 350 0 0099.7-57.6l81.3 28.9a32 32 0 0035.1-9.5l1.8-2.1c34.8-41.1 61.6-87.5 79.7-137.9l.9-2.6c4.5-12.3.8-26.3-9.3-35zM788.3 465.9c2.5 15.1 3.8 30.6 3.8 46.1s-1.3 31-3.8 46.1l-6.6 40.1 74.7 63.9a370.03 370.03 0 01-42.6 73.6L721 702.8l-31.4 25.8c-23.9 19.6-50.5 35-79.3 45.8l-38.1 14.3-17.9 97a377.5 377.5 0 01-85 0l-17.9-97.2-37.8-14.5c-28.5-10.8-55-26.2-78.7-45.7l-31.4-25.9-93.4 33.2c-17-22.9-31.2-47.6-42.6-73.6l75.5-64.5-6.5-40c-2.4-14.9-3.7-30.3-3.7-45.5 0-15.3 1.2-30.6 3.7-45.5l6.5-40-75.5-64.5c11.3-26.1 25.6-50.7 42.6-73.6l93.4 33.2 31.4-25.9c23.7-19.5 50.2-34.9 78.7-45.7l37.9-14.3 17.9-97.2c28.1-3.2 56.8-3.2 85 0l17.9 97 38.1 14.3c28.7 10.8 55.4 26.2 79.3 45.8l31.4 25.8 92.8-32.9c17 22.9 31.2 47.6 42.6 73.6L781.8 426l6.5 39.9zM512 326c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm79.2 255.2A111.6 111.6 0 01512 614c-29.9 0-58-11.7-79.2-32.8A111.6 111.6 0 01400 502c0-29.9 11.7-58 32.8-79.2C454 401.6 482.1 390 512 390c29.9 0 58 11.6 79.2 32.8A111.6 111.6 0 01624 502c0 29.9-11.7 58-32.8 79.2z"}}]},name:"setting",theme:"outlined"},Ihe=function(t,n){return d.createElement(on,ze({},t,{ref:n,icon:Ohe}))},d3=d.forwardRef(Ihe),$he={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M752 664c-28.5 0-54.8 10-75.4 26.7L469.4 540.8a160.68 160.68 0 000-57.6l207.2-149.9C697.2 350 723.5 360 752 360c66.2 0 120-53.8 120-120s-53.8-120-120-120-120 53.8-120 120c0 11.6 1.6 22.7 4.7 33.3L439.9 415.8C410.7 377.1 364.3 352 312 352c-88.4 0-160 71.6-160 160s71.6 160 160 160c52.3 0 98.7-25.1 127.9-63.8l196.8 142.5c-3.1 10.6-4.7 21.8-4.7 33.3 0 66.2 53.8 120 120 120s120-53.8 120-120-53.8-120-120-120zm0-476c28.7 0 52 23.3 52 52s-23.3 52-52 52-52-23.3-52-52 23.3-52 52-52zM312 600c-48.5 0-88-39.5-88-88s39.5-88 88-88 88 39.5 88 88-39.5 88-88 88zm440 236c-28.7 0-52-23.3-52-52s23.3-52 52-52 52 23.3 52 52-23.3 52-52 52z"}}]},name:"share-alt",theme:"outlined"},Nhe=function(t,n){return d.createElement(on,ze({},t,{ref:n,icon:$he}))},Ahe=d.forwardRef(Nhe),khe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z"}}]},name:"star",theme:"filled"},Rhe=function(t,n){return d.createElement(on,ze({},t,{ref:n,icon:khe}))},zB=d.forwardRef(Rhe),Mhe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3zM664.8 561.6l36.1 210.3L512 672.7 323.1 772l36.1-210.3-152.8-149L417.6 382 512 190.7 606.4 382l211.2 30.7-152.8 148.9z"}}]},name:"star",theme:"outlined"},Phe=function(t,n){return d.createElement(on,ze({},t,{ref:n,icon:Mhe}))},WB=d.forwardRef(Phe),Lhe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M824.2 699.9a301.55 301.55 0 00-86.4-60.4C783.1 602.8 812 546.8 812 484c0-110.8-92.4-201.7-203.2-200-109.1 1.7-197 90.6-197 200 0 62.8 29 118.8 74.2 155.5a300.95 300.95 0 00-86.4 60.4C345 754.6 314 826.8 312 903.8a8 8 0 008 8.2h56c4.3 0 7.9-3.4 8-7.7 1.9-58 25.4-112.3 66.7-153.5A226.62 226.62 0 01612 684c60.9 0 118.2 23.7 161.3 66.8C814.5 792 838 846.3 840 904.3c.1 4.3 3.7 7.7 8 7.7h56a8 8 0 008-8.2c-2-77-33-149.2-87.8-203.9zM612 612c-34.2 0-66.4-13.3-90.5-37.5a126.86 126.86 0 01-37.5-91.8c.3-32.8 13.4-64.5 36.3-88 24-24.6 56.1-38.3 90.4-38.7 33.9-.3 66.8 12.9 91 36.6 24.8 24.3 38.4 56.8 38.4 91.4 0 34.2-13.3 66.3-37.5 90.5A127.3 127.3 0 01612 612zM361.5 510.4c-.9-8.7-1.4-17.5-1.4-26.4 0-15.9 1.5-31.4 4.3-46.5.7-3.6-1.2-7.3-4.5-8.8-13.6-6.1-26.1-14.5-36.9-25.1a127.54 127.54 0 01-38.7-95.4c.9-32.1 13.8-62.6 36.3-85.6 24.7-25.3 57.9-39.1 93.2-38.7 31.9.3 62.7 12.6 86 34.4 7.9 7.4 14.7 15.6 20.4 24.4 2 3.1 5.9 4.4 9.3 3.2 17.6-6.1 36.2-10.4 55.3-12.4 5.6-.6 8.8-6.6 6.3-11.6-32.5-64.3-98.9-108.7-175.7-109.9-110.9-1.7-203.3 89.2-203.3 199.9 0 62.8 28.9 118.8 74.2 155.5-31.8 14.7-61.1 35-86.5 60.4-54.8 54.7-85.8 126.9-87.8 204a8 8 0 008 8.2h56.1c4.3 0 7.9-3.4 8-7.7 1.9-58 25.4-112.3 66.7-153.5 29.4-29.4 65.4-49.8 104.7-59.7 3.9-1 6.5-4.7 6-8.7z"}}]},name:"team",theme:"outlined"},Dhe=function(t,n){return d.createElement(on,ze({},t,{ref:n,icon:Lhe}))},Fhe=d.forwardRef(Dhe),Bhe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.5 763.6a374 374 0 00-80.6-119.5 375.63 375.63 0 00-119.5-80.6c-.4-.2-.8-.3-1.2-.5C719.5 518 760 444.7 760 362c0-137-111-248-248-248S264 225 264 362c0 82.7 40.5 156 102.8 201.1-.4.2-.8.3-1.2.5-44.8 18.9-85 46-119.5 80.6a375.63 375.63 0 00-80.6 119.5A371.7 371.7 0 00136 901.8a8 8 0 008 8.2h60c4.4 0 7.9-3.5 8-7.8 2-77.2 33-149.5 87.8-204.3 56.7-56.7 132-87.9 212.2-87.9s155.5 31.2 212.2 87.9C779 752.7 810 825 812 902.2c.1 4.4 3.6 7.8 8 7.8h60a8 8 0 008-8.2c-1-47.8-10.9-94.3-29.5-138.2zM512 534c-45.9 0-89.1-17.9-121.6-50.4S340 407.9 340 362c0-45.9 17.9-89.1 50.4-121.6S466.1 190 512 190s89.1 17.9 121.6 50.4S684 316.1 684 362c0 45.9-17.9 89.1-50.4 121.6S557.9 534 512 534z"}}]},name:"user",theme:"outlined"},jhe=function(t,n){return d.createElement(on,ze({},t,{ref:n,icon:Bhe}))},UB=d.forwardRef(jhe),Hhe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M955.7 856l-416-720c-6.2-10.7-16.9-16-27.7-16s-21.6 5.3-27.7 16l-416 720C56 877.4 71.4 904 96 904h832c24.6 0 40-26.6 27.7-48zM480 416c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v184c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V416zm32 352a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"warning",theme:"filled"},zhe=function(t,n){return d.createElement(on,ze({},t,{ref:n,icon:Hhe}))},Whe=d.forwardRef(zhe);const Uhe=()=>d.createElement("svg",{width:"252",height:"294"},d.createElement("title",null,"No Found"),d.createElement("defs",null,d.createElement("path",{d:"M0 .387h251.772v251.772H0z"})),d.createElement("g",{fill:"none",fillRule:"evenodd"},d.createElement("g",{transform:"translate(0 .012)"},d.createElement("mask",{fill:"#fff"}),d.createElement("path",{d:"M0 127.32v-2.095C0 56.279 55.892.387 124.838.387h2.096c68.946 0 124.838 55.892 124.838 124.838v2.096c0 68.946-55.892 124.838-124.838 124.838h-2.096C55.892 252.16 0 196.267 0 127.321",fill:"#E4EBF7",mask:"url(#b)"})),d.createElement("path",{d:"M39.755 130.84a8.276 8.276 0 1 1-16.468-1.66 8.276 8.276 0 0 1 16.468 1.66",fill:"#FFF"}),d.createElement("path",{d:"M36.975 134.297l10.482 5.943M48.373 146.508l-12.648 10.788",stroke:"#FFF",strokeWidth:"2"}),d.createElement("path",{d:"M39.875 159.352a5.667 5.667 0 1 1-11.277-1.136 5.667 5.667 0 0 1 11.277 1.136M57.588 143.247a5.708 5.708 0 1 1-11.358-1.145 5.708 5.708 0 0 1 11.358 1.145M99.018 26.875l29.82-.014a4.587 4.587 0 1 0-.003-9.175l-29.82.013a4.587 4.587 0 1 0 .003 9.176M110.424 45.211l29.82-.013a4.588 4.588 0 0 0-.004-9.175l-29.82.013a4.587 4.587 0 1 0 .004 9.175",fill:"#FFF"}),d.createElement("path",{d:"M112.798 26.861v-.002l15.784-.006a4.588 4.588 0 1 0 .003 9.175l-15.783.007v-.002a4.586 4.586 0 0 0-.004-9.172M184.523 135.668c-.553 5.485-5.447 9.483-10.931 8.93-5.485-.553-9.483-5.448-8.93-10.932.552-5.485 5.447-9.483 10.932-8.93 5.485.553 9.483 5.447 8.93 10.932",fill:"#FFF"}),d.createElement("path",{d:"M179.26 141.75l12.64 7.167M193.006 156.477l-15.255 13.011",stroke:"#FFF",strokeWidth:"2"}),d.createElement("path",{d:"M184.668 170.057a6.835 6.835 0 1 1-13.6-1.372 6.835 6.835 0 0 1 13.6 1.372M203.34 153.325a6.885 6.885 0 1 1-13.7-1.382 6.885 6.885 0 0 1 13.7 1.382",fill:"#FFF"}),d.createElement("path",{d:"M151.931 192.324a2.222 2.222 0 1 1-4.444 0 2.222 2.222 0 0 1 4.444 0zM225.27 116.056a2.222 2.222 0 1 1-4.445 0 2.222 2.222 0 0 1 4.444 0zM216.38 151.08a2.223 2.223 0 1 1-4.446-.001 2.223 2.223 0 0 1 4.446 0zM176.917 107.636a2.223 2.223 0 1 1-4.445 0 2.223 2.223 0 0 1 4.445 0zM195.291 92.165a2.223 2.223 0 1 1-4.445 0 2.223 2.223 0 0 1 4.445 0zM202.058 180.711a2.223 2.223 0 1 1-4.446 0 2.223 2.223 0 0 1 4.446 0z",stroke:"#FFF",strokeWidth:"2"}),d.createElement("path",{stroke:"#FFF",strokeWidth:"2",d:"M214.404 153.302l-1.912 20.184-10.928 5.99M173.661 174.792l-6.356 9.814h-11.36l-4.508 6.484M174.941 125.168v-15.804M220.824 117.25l-12.84 7.901-15.31-7.902V94.39"}),d.createElement("path",{d:"M166.588 65.936h-3.951a4.756 4.756 0 0 1-4.743-4.742 4.756 4.756 0 0 1 4.743-4.743h3.951a4.756 4.756 0 0 1 4.743 4.743 4.756 4.756 0 0 1-4.743 4.742",fill:"#FFF"}),d.createElement("path",{d:"M174.823 30.03c0-16.281 13.198-29.48 29.48-29.48 16.28 0 29.48 13.199 29.48 29.48 0 16.28-13.2 29.48-29.48 29.48-16.282 0-29.48-13.2-29.48-29.48",fill:"#1677ff"}),d.createElement("path",{d:"M205.952 38.387c.5.5.785 1.142.785 1.928s-.286 1.465-.785 1.964c-.572.5-1.214.75-2 .75-.785 0-1.429-.285-1.929-.785-.572-.5-.82-1.143-.82-1.929s.248-1.428.82-1.928c.5-.5 1.144-.75 1.93-.75.785 0 1.462.25 1.999.75m4.285-19.463c1.428 1.249 2.143 2.963 2.143 5.142 0 1.712-.427 3.13-1.219 4.25-.067.096-.137.18-.218.265-.416.429-1.41 1.346-2.956 2.699a5.07 5.07 0 0 0-1.428 1.75 5.207 5.207 0 0 0-.536 2.357v.5h-4.107v-.5c0-1.357.215-2.536.714-3.5.464-.964 1.857-2.464 4.178-4.536l.43-.5c.643-.785.964-1.643.964-2.535 0-1.18-.358-2.108-1-2.785-.678-.68-1.643-1.001-2.858-1.001-1.536 0-2.642.464-3.357 1.43-.37.5-.621 1.135-.76 1.904a1.999 1.999 0 0 1-1.971 1.63h-.004c-1.277 0-2.257-1.183-1.98-2.43.337-1.518 1.02-2.78 2.073-3.784 1.536-1.5 3.607-2.25 6.25-2.25 2.32 0 4.214.607 5.642 1.894",fill:"#FFF"}),d.createElement("path",{d:"M52.04 76.131s21.81 5.36 27.307 15.945c5.575 10.74-6.352 9.26-15.73 4.935-10.86-5.008-24.7-11.822-11.577-20.88",fill:"#FFB594"}),d.createElement("path",{d:"M90.483 67.504l-.449 2.893c-.753.49-4.748-2.663-4.748-2.663l-1.645.748-1.346-5.684s6.815-4.589 8.917-5.018c2.452-.501 9.884.94 10.7 2.278 0 0 1.32.486-2.227.69-3.548.203-5.043.447-6.79 3.132-1.747 2.686-2.412 3.624-2.412 3.624",fill:"#FFC6A0"}),d.createElement("path",{d:"M128.055 111.367c-2.627-7.724-6.15-13.18-8.917-15.478-3.5-2.906-9.34-2.225-11.366-4.187-1.27-1.231-3.215-1.197-3.215-1.197s-14.98-3.158-16.828-3.479c-2.37-.41-2.124-.714-6.054-1.405-1.57-1.907-2.917-1.122-2.917-1.122l-7.11-1.383c-.853-1.472-2.423-1.023-2.423-1.023l-2.468-.897c-1.645 9.976-7.74 13.796-7.74 13.796 1.795 1.122 15.703 8.3 15.703 8.3l5.107 37.11s-3.321 5.694 1.346 9.109c0 0 19.883-3.743 34.921-.329 0 0 3.047-2.546.972-8.806.523-3.01 1.394-8.263 1.736-11.622.385.772 2.019 1.918 3.14 3.477 0 0 9.407-7.365 11.052-14.012-.832-.723-1.598-1.585-2.267-2.453-.567-.736-.358-2.056-.765-2.717-.669-1.084-1.804-1.378-1.907-1.682",fill:"#FFF"}),d.createElement("path",{d:"M101.09 289.998s4.295 2.041 7.354 1.021c2.821-.94 4.53.668 7.08 1.178 2.55.51 6.874 1.1 11.686-1.26-.103-5.51-6.889-3.98-11.96-6.713-2.563-1.38-3.784-4.722-3.598-8.799h-9.402s-1.392 10.52-1.16 14.573",fill:"#CBD1D1"}),d.createElement("path",{d:"M101.067 289.826s2.428 1.271 6.759.653c3.058-.437 3.712.481 7.423 1.031 3.712.55 10.724-.069 11.823-.894.413 1.1-.343 2.063-.343 2.063s-1.512.603-4.812.824c-2.03.136-5.8.291-7.607-.503-1.787-1.375-5.247-1.903-5.728-.241-3.918.95-7.355-.286-7.355-.286l-.16-2.647z",fill:"#2B0849"}),d.createElement("path",{d:"M108.341 276.044h3.094s-.103 6.702 4.536 8.558c-4.64.618-8.558-2.303-7.63-8.558",fill:"#A4AABA"}),d.createElement("path",{d:"M57.542 272.401s-2.107 7.416-4.485 12.306c-1.798 3.695-4.225 7.492 5.465 7.492 6.648 0 8.953-.48 7.423-6.599-1.53-6.12.266-13.199.266-13.199h-8.669z",fill:"#CBD1D1"}),d.createElement("path",{d:"M51.476 289.793s2.097 1.169 6.633 1.169c6.083 0 8.249-1.65 8.249-1.65s.602 1.114-.619 2.165c-.993.855-3.597 1.591-7.39 1.546-4.145-.048-5.832-.566-6.736-1.168-.825-.55-.687-1.58-.137-2.062",fill:"#2B0849"}),d.createElement("path",{d:"M58.419 274.304s.033 1.519-.314 2.93c-.349 1.42-1.078 3.104-1.13 4.139-.058 1.151 4.537 1.58 5.155.034.62-1.547 1.294-6.427 1.913-7.252.619-.825-4.903-2.119-5.624.15",fill:"#A4AABA"}),d.createElement("path",{d:"M99.66 278.514l13.378.092s1.298-54.52 1.853-64.403c.554-9.882 3.776-43.364 1.002-63.128l-12.547-.644-22.849.78s-.434 3.966-1.195 9.976c-.063.496-.682.843-.749 1.365-.075.585.423 1.354.32 1.966-2.364 14.08-6.377 33.104-8.744 46.677-.116.666-1.234 1.009-1.458 2.691-.04.302.211 1.525.112 1.795-6.873 18.744-10.949 47.842-14.277 61.885l14.607-.014s2.197-8.57 4.03-16.97c2.811-12.886 23.111-85.01 23.111-85.01l3.016-.521 1.043 46.35s-.224 1.234.337 2.02c.56.785-.56 1.123-.392 2.244l.392 1.794s-.449 7.178-.898 11.89c-.448 4.71-.092 39.165-.092 39.165",fill:"#7BB2F9"}),d.createElement("path",{d:"M76.085 221.626c1.153.094 4.038-2.019 6.955-4.935M106.36 225.142s2.774-1.11 6.103-3.883",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M107.275 222.1s2.773-1.11 6.102-3.884",stroke:"#648BD8",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M74.74 224.767s2.622-.591 6.505-3.365M86.03 151.634c-.27 3.106.3 8.525-4.336 9.123M103.625 149.88s.11 14.012-1.293 15.065c-2.219 1.664-2.99 1.944-2.99 1.944M99.79 150.438s.035 12.88-1.196 24.377M93.673 175.911s7.212-1.664 9.431-1.664M74.31 205.861a212.013 212.013 0 0 1-.979 4.56s-1.458 1.832-1.009 3.776c.449 1.944-.947 2.045-4.985 15.355-1.696 5.59-4.49 18.591-6.348 27.597l-.231 1.12M75.689 197.807a320.934 320.934 0 0 1-.882 4.754M82.591 152.233L81.395 162.7s-1.097.15-.5 2.244c.113 1.346-2.674 15.775-5.18 30.43M56.12 274.418h13.31",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M116.241 148.22s-17.047-3.104-35.893.2c.158 2.514-.003 4.15-.003 4.15s14.687-2.818 35.67-.312c.252-2.355.226-4.038.226-4.038",fill:"#192064"}),d.createElement("path",{d:"M106.322 151.165l.003-4.911a.81.81 0 0 0-.778-.815c-2.44-.091-5.066-.108-7.836-.014a.818.818 0 0 0-.789.815l-.003 4.906a.81.81 0 0 0 .831.813c2.385-.06 4.973-.064 7.73.017a.815.815 0 0 0 .842-.81",fill:"#FFF"}),d.createElement("path",{d:"M105.207 150.233l.002-3.076a.642.642 0 0 0-.619-.646 94.321 94.321 0 0 0-5.866-.01.65.65 0 0 0-.63.647v3.072a.64.64 0 0 0 .654.644 121.12 121.12 0 0 1 5.794.011c.362.01.665-.28.665-.642",fill:"#192064"}),d.createElement("path",{d:"M100.263 275.415h12.338M101.436 270.53c.006 3.387.042 5.79.111 6.506M101.451 264.548a915.75 915.75 0 0 0-.015 4.337M100.986 174.965l.898 44.642s.673 1.57-.225 2.692c-.897 1.122 2.468.673.898 2.243-1.57 1.57.897 1.122 0 3.365-.596 1.489-.994 21.1-1.096 35.146",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M46.876 83.427s-.516 6.045 7.223 5.552c11.2-.712 9.218-9.345 31.54-21.655-.786-2.708-2.447-4.744-2.447-4.744s-11.068 3.11-22.584 8.046c-6.766 2.9-13.395 6.352-13.732 12.801M104.46 91.057l.941-5.372-8.884-11.43-5.037 5.372-1.74 7.834a.321.321 0 0 0 .108.32c.965.8 6.5 5.013 14.347 3.544a.332.332 0 0 0 .264-.268",fill:"#FFC6A0"}),d.createElement("path",{d:"M93.942 79.387s-4.533-2.853-2.432-6.855c1.623-3.09 4.513 1.133 4.513 1.133s.52-3.642 3.121-3.642c.52-1.04 1.561-4.162 1.561-4.162s11.445 2.601 13.526 3.121c0 5.203-2.304 19.424-7.84 19.861-8.892.703-12.449-9.456-12.449-9.456",fill:"#FFC6A0"}),d.createElement("path",{d:"M113.874 73.446c2.601-2.081 3.47-9.722 3.47-9.722s-2.479-.49-6.64-2.05c-4.683-2.081-12.798-4.747-17.48.976-9.668 3.223-2.05 19.823-2.05 19.823l2.713-3.021s-3.935-3.287-2.08-6.243c2.17-3.462 3.92 1.073 3.92 1.073s.637-2.387 3.581-3.342c.355-.71 1.036-2.674 1.432-3.85a1.073 1.073 0 0 1 1.263-.704c2.4.558 8.677 2.019 11.356 2.662.522.125.871.615.82 1.15l-.305 3.248z",fill:"#520038"}),d.createElement("path",{d:"M104.977 76.064c-.103.61-.582 1.038-1.07.956-.489-.083-.801-.644-.698-1.254.103-.61.582-1.038 1.07-.956.488.082.8.644.698 1.254M112.132 77.694c-.103.61-.582 1.038-1.07.956-.488-.083-.8-.644-.698-1.254.103-.61.582-1.038 1.07-.956.488.082.8.643.698 1.254",fill:"#552950"}),d.createElement("path",{stroke:"#DB836E",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round",d:"M110.13 74.84l-.896 1.61-.298 4.357h-2.228"}),d.createElement("path",{d:"M110.846 74.481s1.79-.716 2.506.537",stroke:"#5C2552",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M92.386 74.282s.477-1.114 1.113-.716c.637.398 1.274 1.433.558 1.99-.717.556.159 1.67.159 1.67",stroke:"#DB836E",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M103.287 72.93s1.83 1.113 4.137.954",stroke:"#5C2552",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M103.685 81.762s2.227 1.193 4.376 1.193M104.64 84.308s.954.398 1.511.318M94.693 81.205s2.308 7.4 10.424 7.639",stroke:"#DB836E",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M81.45 89.384s.45 5.647-4.935 12.787M69 82.654s-.726 9.282-8.204 14.206",stroke:"#E4EBF7",strokeWidth:"1.101",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M129.405 122.865s-5.272 7.403-9.422 10.768",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M119.306 107.329s.452 4.366-2.127 32.062",stroke:"#E4EBF7",strokeWidth:"1.101",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M150.028 151.232h-49.837a1.01 1.01 0 0 1-1.01-1.01v-31.688c0-.557.452-1.01 1.01-1.01h49.837c.558 0 1.01.453 1.01 1.01v31.688a1.01 1.01 0 0 1-1.01 1.01",fill:"#F2D7AD"}),d.createElement("path",{d:"M150.29 151.232h-19.863v-33.707h20.784v32.786a.92.92 0 0 1-.92.92",fill:"#F4D19D"}),d.createElement("path",{d:"M123.554 127.896H92.917a.518.518 0 0 1-.425-.816l6.38-9.113c.193-.277.51-.442.85-.442h31.092l-7.26 10.371z",fill:"#F2D7AD"}),d.createElement("path",{fill:"#CC9B6E",d:"M123.689 128.447H99.25v-.519h24.169l7.183-10.26.424.298z"}),d.createElement("path",{d:"M158.298 127.896h-18.669a2.073 2.073 0 0 1-1.659-.83l-7.156-9.541h19.965c.49 0 .95.23 1.244.622l6.69 8.92a.519.519 0 0 1-.415.83",fill:"#F4D19D"}),d.createElement("path",{fill:"#CC9B6E",d:"M157.847 128.479h-19.384l-7.857-10.475.415-.31 7.7 10.266h19.126zM130.554 150.685l-.032-8.177.519-.002.032 8.177z"}),d.createElement("path",{fill:"#CC9B6E",d:"M130.511 139.783l-.08-21.414.519-.002.08 21.414zM111.876 140.932l-.498-.143 1.479-5.167.498.143zM108.437 141.06l-2.679-2.935 2.665-3.434.41.318-2.397 3.089 2.384 2.612zM116.607 141.06l-.383-.35 2.383-2.612-2.397-3.089.41-.318 2.665 3.434z"}),d.createElement("path",{d:"M154.316 131.892l-3.114-1.96.038 3.514-1.043.092c-1.682.115-3.634.23-4.789.23-1.902 0-2.693 2.258 2.23 2.648l-2.645-.596s-2.168 1.317.504 2.3c0 0-1.58 1.217.561 2.58-.584 3.504 5.247 4.058 7.122 3.59 1.876-.47 4.233-2.359 4.487-5.16.28-3.085-.89-5.432-3.35-7.238",fill:"#FFC6A0"}),d.createElement("path",{d:"M153.686 133.577s-6.522.47-8.36.372c-1.836-.098-1.904 2.19 2.359 2.264 3.739.15 5.451-.044 5.451-.044",stroke:"#DB836E",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M145.16 135.877c-1.85 1.346.561 2.355.561 2.355s3.478.898 6.73.617",stroke:"#DB836E",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M151.89 141.71s-6.28.111-6.73-2.132c-.223-1.346.45-1.402.45-1.402M146.114 140.868s-1.103 3.16 5.44 3.533M151.202 129.932v3.477M52.838 89.286c3.533-.337 8.423-1.248 13.582-7.754",stroke:"#DB836E",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M168.567 248.318a6.647 6.647 0 0 1-6.647-6.647v-66.466a6.647 6.647 0 1 1 13.294 0v66.466a6.647 6.647 0 0 1-6.647 6.647",fill:"#5BA02E"}),d.createElement("path",{d:"M176.543 247.653a6.647 6.647 0 0 1-6.646-6.647v-33.232a6.647 6.647 0 1 1 13.293 0v33.232a6.647 6.647 0 0 1-6.647 6.647",fill:"#92C110"}),d.createElement("path",{d:"M186.443 293.613H158.92a3.187 3.187 0 0 1-3.187-3.187v-46.134a3.187 3.187 0 0 1 3.187-3.187h27.524a3.187 3.187 0 0 1 3.187 3.187v46.134a3.187 3.187 0 0 1-3.187 3.187",fill:"#F2D7AD"}),d.createElement("path",{d:"M88.979 89.48s7.776 5.384 16.6 2.842",stroke:"#E4EBF7",strokeWidth:"1.101",strokeLinecap:"round",strokeLinejoin:"round"}))),Khe=()=>d.createElement("svg",{width:"254",height:"294"},d.createElement("title",null,"Server Error"),d.createElement("defs",null,d.createElement("path",{d:"M0 .335h253.49v253.49H0z"}),d.createElement("path",{d:"M0 293.665h253.49V.401H0z"})),d.createElement("g",{fill:"none",fillRule:"evenodd"},d.createElement("g",{transform:"translate(0 .067)"},d.createElement("mask",{fill:"#fff"}),d.createElement("path",{d:"M0 128.134v-2.11C0 56.608 56.273.334 125.69.334h2.11c69.416 0 125.69 56.274 125.69 125.69v2.11c0 69.417-56.274 125.69-125.69 125.69h-2.11C56.273 253.824 0 197.551 0 128.134",fill:"#E4EBF7",mask:"url(#b)"})),d.createElement("path",{d:"M39.989 132.108a8.332 8.332 0 1 1-16.581-1.671 8.332 8.332 0 0 1 16.58 1.671",fill:"#FFF"}),d.createElement("path",{d:"M37.19 135.59l10.553 5.983M48.665 147.884l-12.734 10.861",stroke:"#FFF",strokeWidth:"2"}),d.createElement("path",{d:"M40.11 160.816a5.706 5.706 0 1 1-11.354-1.145 5.706 5.706 0 0 1 11.354 1.145M57.943 144.6a5.747 5.747 0 1 1-11.436-1.152 5.747 5.747 0 0 1 11.436 1.153M99.656 27.434l30.024-.013a4.619 4.619 0 1 0-.004-9.238l-30.024.013a4.62 4.62 0 0 0 .004 9.238M111.14 45.896l30.023-.013a4.62 4.62 0 1 0-.004-9.238l-30.024.013a4.619 4.619 0 1 0 .004 9.238",fill:"#FFF"}),d.createElement("path",{d:"M113.53 27.421v-.002l15.89-.007a4.619 4.619 0 1 0 .005 9.238l-15.892.007v-.002a4.618 4.618 0 0 0-.004-9.234M150.167 70.091h-3.979a4.789 4.789 0 0 1-4.774-4.775 4.788 4.788 0 0 1 4.774-4.774h3.979a4.789 4.789 0 0 1 4.775 4.774 4.789 4.789 0 0 1-4.775 4.775",fill:"#FFF"}),d.createElement("path",{d:"M171.687 30.234c0-16.392 13.289-29.68 29.681-29.68 16.392 0 29.68 13.288 29.68 29.68 0 16.393-13.288 29.681-29.68 29.681s-29.68-13.288-29.68-29.68",fill:"#FF603B"}),d.createElement("path",{d:"M203.557 19.435l-.676 15.035a1.514 1.514 0 0 1-3.026 0l-.675-15.035a2.19 2.19 0 1 1 4.377 0m-.264 19.378c.513.477.77 1.1.77 1.87s-.257 1.393-.77 1.907c-.55.476-1.21.733-1.943.733a2.545 2.545 0 0 1-1.87-.77c-.55-.514-.806-1.136-.806-1.87 0-.77.256-1.393.806-1.87.513-.513 1.137-.733 1.87-.733.77 0 1.43.22 1.943.733",fill:"#FFF"}),d.createElement("path",{d:"M119.3 133.275c4.426-.598 3.612-1.204 4.079-4.778.675-5.18-3.108-16.935-8.262-25.118-1.088-10.72-12.598-11.24-12.598-11.24s4.312 4.895 4.196 16.199c1.398 5.243.804 14.45.804 14.45s5.255 11.369 11.78 10.487",fill:"#FFB594"}),d.createElement("path",{d:"M100.944 91.61s1.463-.583 3.211.582c8.08 1.398 10.368 6.706 11.3 11.368 1.864 1.282 1.864 2.33 1.864 3.496.365.777 1.515 3.03 1.515 3.03s-7.225 1.748-10.954 6.758c-1.399-6.41-6.936-25.235-6.936-25.235",fill:"#FFF"}),d.createElement("path",{d:"M94.008 90.5l1.019-5.815-9.23-11.874-5.233 5.581-2.593 9.863s8.39 5.128 16.037 2.246",fill:"#FFB594"}),d.createElement("path",{d:"M82.931 78.216s-4.557-2.868-2.445-6.892c1.632-3.107 4.537 1.139 4.537 1.139s.524-3.662 3.139-3.662c.523-1.046 1.569-4.184 1.569-4.184s11.507 2.615 13.6 3.138c-.001 5.23-2.317 19.529-7.884 19.969-8.94.706-12.516-9.508-12.516-9.508",fill:"#FFC6A0"}),d.createElement("path",{d:"M102.971 72.243c2.616-2.093 3.489-9.775 3.489-9.775s-2.492-.492-6.676-2.062c-4.708-2.092-12.867-4.771-17.575.982-9.54 4.41-2.062 19.93-2.062 19.93l2.729-3.037s-3.956-3.304-2.092-6.277c2.183-3.48 3.943 1.08 3.943 1.08s.64-2.4 3.6-3.36c.356-.714 1.04-2.69 1.44-3.872a1.08 1.08 0 0 1 1.27-.707c2.41.56 8.723 2.03 11.417 2.676.524.126.876.619.825 1.156l-.308 3.266z",fill:"#520038"}),d.createElement("path",{d:"M101.22 76.514c-.104.613-.585 1.044-1.076.96-.49-.082-.805-.646-.702-1.26.104-.613.585-1.044 1.076-.961.491.083.805.647.702 1.26M94.26 75.074c-.104.613-.585 1.044-1.076.96-.49-.082-.805-.646-.702-1.26.104-.613.585-1.044 1.076-.96.491.082.805.646.702 1.26",fill:"#552950"}),d.createElement("path",{stroke:"#DB836E",strokeWidth:"1.063",strokeLinecap:"round",strokeLinejoin:"round",d:"M99.206 73.644l-.9 1.62-.3 4.38h-2.24"}),d.createElement("path",{d:"M99.926 73.284s1.8-.72 2.52.54",stroke:"#5C2552",strokeWidth:"1.117",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M81.367 73.084s.48-1.12 1.12-.72c.64.4 1.28 1.44.56 2s.16 1.68.16 1.68",stroke:"#DB836E",strokeWidth:"1.117",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M92.326 71.724s1.84 1.12 4.16.96",stroke:"#5C2552",strokeWidth:"1.117",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M92.726 80.604s2.24 1.2 4.4 1.2M93.686 83.164s.96.4 1.52.32M83.687 80.044s1.786 6.547 9.262 7.954",stroke:"#DB836E",strokeWidth:"1.063",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M95.548 91.663s-1.068 2.821-8.298 2.105c-7.23-.717-10.29-5.044-10.29-5.044",stroke:"#E4EBF7",strokeWidth:"1.136",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M78.126 87.478s6.526 4.972 16.47 2.486c0 0 9.577 1.02 11.536 5.322 5.36 11.77.543 36.835 0 39.962 3.496 4.055-.466 8.483-.466 8.483-15.624-3.548-35.81-.6-35.81-.6-4.849-3.546-1.223-9.044-1.223-9.044L62.38 110.32c-2.485-15.227.833-19.803 3.549-20.743 3.03-1.049 8.04-1.282 8.04-1.282.496-.058 1.08-.076 1.37-.233 2.36-1.282 2.787-.583 2.787-.583",fill:"#FFF"}),d.createElement("path",{d:"M65.828 89.81s-6.875.465-7.59 8.156c-.466 8.857 3.03 10.954 3.03 10.954s6.075 22.102 16.796 22.957c8.39-2.176 4.758-6.702 4.661-11.42-.233-11.304-7.108-16.897-7.108-16.897s-4.212-13.75-9.789-13.75",fill:"#FFC6A0"}),d.createElement("path",{d:"M71.716 124.225s.855 11.264 9.828 6.486c4.765-2.536 7.581-13.828 9.789-22.568 1.456-5.768 2.58-12.197 2.58-12.197l-4.973-1.709s-2.408 5.516-7.769 12.275c-4.335 5.467-9.144 11.11-9.455 17.713",fill:"#FFC6A0"}),d.createElement("path",{d:"M108.463 105.191s1.747 2.724-2.331 30.535c2.376 2.216 1.053 6.012-.233 7.51",stroke:"#E4EBF7",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M123.262 131.527s-.427 2.732-11.77 1.981c-15.187-1.006-25.326-3.25-25.326-3.25l.933-5.8s.723.215 9.71-.068c11.887-.373 18.714-6.07 24.964-1.022 4.039 3.263 1.489 8.16 1.489 8.16",fill:"#FFC6A0"}),d.createElement("path",{d:"M70.24 90.974s-5.593-4.739-11.054 2.68c-3.318 7.223.517 15.284 2.664 19.578-.31 3.729 2.33 4.311 2.33 4.311s.108.895 1.516 2.68c4.078-7.03 6.72-9.166 13.711-12.546-.328-.656-1.877-3.265-1.825-3.767.175-1.69-1.282-2.623-1.282-2.623s-.286-.156-1.165-2.738c-.788-2.313-2.036-5.177-4.895-7.575",fill:"#FFF"}),d.createElement("path",{d:"M90.232 288.027s4.855 2.308 8.313 1.155c3.188-1.063 5.12.755 8.002 1.331 2.881.577 7.769 1.243 13.207-1.424-.117-6.228-7.786-4.499-13.518-7.588-2.895-1.56-4.276-5.336-4.066-9.944H91.544s-1.573 11.89-1.312 16.47",fill:"#CBD1D1"}),d.createElement("path",{d:"M90.207 287.833s2.745 1.437 7.639.738c3.456-.494 3.223.66 7.418 1.282 4.195.621 13.092-.194 14.334-1.126.466 1.242-.388 2.33-.388 2.33s-1.709.682-5.438.932c-2.295.154-8.098.276-10.14-.621-2.02-1.554-4.894-1.515-6.06-.234-4.427 1.075-7.184-.31-7.184-.31l-.181-2.991z",fill:"#2B0849"}),d.createElement("path",{d:"M98.429 272.257h3.496s-.117 7.574 5.127 9.671c-5.244.7-9.672-2.602-8.623-9.671",fill:"#A4AABA"}),d.createElement("path",{d:"M44.425 272.046s-2.208 7.774-4.702 12.899c-1.884 3.874-4.428 7.854 5.729 7.854 6.97 0 9.385-.503 7.782-6.917-1.604-6.415.279-13.836.279-13.836h-9.088z",fill:"#CBD1D1"}),d.createElement("path",{d:"M38.066 290.277s2.198 1.225 6.954 1.225c6.376 0 8.646-1.73 8.646-1.73s.63 1.168-.649 2.27c-1.04.897-3.77 1.668-7.745 1.621-4.347-.05-6.115-.593-7.062-1.224-.864-.577-.72-1.657-.144-2.162",fill:"#2B0849"}),d.createElement("path",{d:"M45.344 274.041s.035 1.592-.329 3.07c-.365 1.49-1.13 3.255-1.184 4.34-.061 1.206 4.755 1.657 5.403.036.65-1.622 1.357-6.737 2.006-7.602.648-.865-5.14-2.222-5.896.156",fill:"#A4AABA"}),d.createElement("path",{d:"M89.476 277.57l13.899.095s1.349-56.643 1.925-66.909c.576-10.267 3.923-45.052 1.042-65.585l-13.037-.669-23.737.81s-.452 4.12-1.243 10.365c-.065.515-.708.874-.777 1.417-.078.608.439 1.407.332 2.044-2.455 14.627-5.797 32.736-8.256 46.837-.121.693-1.282 1.048-1.515 2.796-.042.314.22 1.584.116 1.865-7.14 19.473-12.202 52.601-15.66 67.19l15.176-.015s2.282-10.145 4.185-18.871c2.922-13.389 24.012-88.32 24.012-88.32l3.133-.954-.158 48.568s-.233 1.282.35 2.098c.583.815-.581 1.167-.408 2.331l.408 1.864s-.466 7.458-.932 12.352c-.467 4.895 1.145 40.69 1.145 40.69",fill:"#7BB2F9"}),d.createElement("path",{d:"M64.57 218.881c1.197.099 4.195-2.097 7.225-5.127M96.024 222.534s2.881-1.152 6.34-4.034",stroke:"#648BD8",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M96.973 219.373s2.882-1.153 6.34-4.034",stroke:"#648BD8",strokeWidth:"1.032",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M63.172 222.144s2.724-.614 6.759-3.496M74.903 146.166c-.281 3.226.31 8.856-4.506 9.478M93.182 144.344s.115 14.557-1.344 15.65c-2.305 1.73-3.107 2.02-3.107 2.02M89.197 144.923s.269 13.144-1.01 25.088M83.525 170.71s6.81-1.051 9.116-1.051M46.026 270.045l-.892 4.538M46.937 263.289l-.815 4.157M62.725 202.503c-.33 1.618-.102 1.904-.449 3.438 0 0-2.756 1.903-2.29 3.923.466 2.02-.31 3.424-4.505 17.252-1.762 5.807-4.233 18.922-6.165 28.278-.03.144-.521 2.646-1.14 5.8M64.158 194.136c-.295 1.658-.6 3.31-.917 4.938M71.33 146.787l-1.244 10.877s-1.14.155-.519 2.33c.117 1.399-2.778 16.39-5.382 31.615M44.242 273.727H58.07",stroke:"#648BD8",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M106.18 142.117c-3.028-.489-18.825-2.744-36.219.2a.625.625 0 0 0-.518.644c.063 1.307.044 2.343.015 2.995a.617.617 0 0 0 .716.636c3.303-.534 17.037-2.412 35.664-.266.347.04.66-.214.692-.56.124-1.347.16-2.425.17-3.029a.616.616 0 0 0-.52-.62",fill:"#192064"}),d.createElement("path",{d:"M96.398 145.264l.003-5.102a.843.843 0 0 0-.809-.847 114.104 114.104 0 0 0-8.141-.014.85.85 0 0 0-.82.847l-.003 5.097c0 .476.388.857.864.845 2.478-.064 5.166-.067 8.03.017a.848.848 0 0 0 .876-.843",fill:"#FFF"}),d.createElement("path",{d:"M95.239 144.296l.002-3.195a.667.667 0 0 0-.643-.672c-1.9-.061-3.941-.073-6.094-.01a.675.675 0 0 0-.654.672l-.002 3.192c0 .376.305.677.68.669 1.859-.042 3.874-.043 6.02.012.376.01.69-.291.691-.668",fill:"#192064"}),d.createElement("path",{d:"M90.102 273.522h12.819M91.216 269.761c.006 3.519-.072 5.55 0 6.292M90.923 263.474c-.009 1.599-.016 2.558-.016 4.505M90.44 170.404l.932 46.38s.7 1.631-.233 2.796c-.932 1.166 2.564.7.932 2.33-1.63 1.633.933 1.166 0 3.497-.618 1.546-1.031 21.921-1.138 36.513",stroke:"#648BD8",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M73.736 98.665l2.214 4.312s2.098.816 1.865 2.68l.816 2.214M64.297 116.611c.233-.932 2.176-7.147 12.585-10.488M77.598 90.042s7.691 6.137 16.547 2.72",stroke:"#E4EBF7",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M91.974 86.954s5.476-.816 7.574-4.545c1.297-.345.72 2.212-.33 3.671-.7.971-1.01 1.554-1.01 1.554s.194.31.155.816c-.053.697-.175.653-.272 1.048-.081.335.108.657 0 1.049-.046.17-.198.5-.382.878-.12.249-.072.687-.2.948-.231.469-1.562 1.87-2.622 2.855-3.826 3.554-5.018 1.644-6.001-.408-.894-1.865-.661-5.127-.874-6.875-.35-2.914-2.622-3.03-1.923-4.429.343-.685 2.87.69 3.263 1.748.757 2.04 2.952 1.807 2.622 1.69",fill:"#FFC6A0"}),d.createElement("path",{d:"M99.8 82.429c-.465.077-.35.272-.97 1.243-.622.971-4.817 2.932-6.39 3.224-2.589.48-2.278-1.56-4.254-2.855-1.69-1.107-3.562-.638-1.398 1.398.99.932.932 1.107 1.398 3.205.335 1.506-.64 3.67.7 5.593",stroke:"#DB836E",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M79.543 108.673c-2.1 2.926-4.266 6.175-5.557 8.762",stroke:"#E59788",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M87.72 124.768s-2.098-1.942-5.127-2.719c-3.03-.777-3.574-.155-5.516.078-1.942.233-3.885-.932-3.652.7.233 1.63 5.05 1.01 5.206 2.097.155 1.087-6.37 2.796-8.313 2.175-.777.777.466 1.864 2.02 2.175.233 1.554 2.253 1.554 2.253 1.554s.699 1.01 2.641 1.088c2.486 1.32 8.934-.7 10.954-1.554 2.02-.855-.466-5.594-.466-5.594",fill:"#FFC6A0"}),d.createElement("path",{d:"M73.425 122.826s.66 1.127 3.167 1.418c2.315.27 2.563.583 2.563.583s-2.545 2.894-9.07 2.272M72.416 129.274s3.826.097 4.933-.718M74.98 130.75s1.961.136 3.36-.505M77.232 131.916s1.748.019 2.914-.505M73.328 122.321s-.595-1.032 1.262-.427c1.671.544 2.833.055 5.128.155 1.389.061 3.067-.297 3.982.15 1.606.784 3.632 2.181 3.632 2.181s10.526 1.204 19.033-1.127M78.864 108.104s-8.39 2.758-13.168 12.12",stroke:"#E59788",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M109.278 112.533s3.38-3.613 7.575-4.662",stroke:"#E4EBF7",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M107.375 123.006s9.697-2.745 11.445-.88",stroke:"#E59788",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M194.605 83.656l3.971-3.886M187.166 90.933l3.736-3.655M191.752 84.207l-4.462-4.56M198.453 91.057l-4.133-4.225M129.256 163.074l3.718-3.718M122.291 170.039l3.498-3.498M126.561 163.626l-4.27-4.27M132.975 170.039l-3.955-3.955",stroke:"#BFCDDD",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M190.156 211.779h-1.604a4.023 4.023 0 0 1-4.011-4.011V175.68a4.023 4.023 0 0 1 4.01-4.01h1.605a4.023 4.023 0 0 1 4.011 4.01v32.088a4.023 4.023 0 0 1-4.01 4.01",fill:"#A3B4C6"}),d.createElement("path",{d:"M237.824 212.977a4.813 4.813 0 0 1-4.813 4.813h-86.636a4.813 4.813 0 0 1 0-9.626h86.636a4.813 4.813 0 0 1 4.813 4.813",fill:"#A3B4C6"}),d.createElement("mask",{fill:"#fff"}),d.createElement("path",{fill:"#A3B4C6",mask:"url(#d)",d:"M154.098 190.096h70.513v-84.617h-70.513z"}),d.createElement("path",{d:"M224.928 190.096H153.78a3.219 3.219 0 0 1-3.208-3.209V167.92a3.219 3.219 0 0 1 3.208-3.21h71.148a3.219 3.219 0 0 1 3.209 3.21v18.967a3.219 3.219 0 0 1-3.21 3.209M224.928 130.832H153.78a3.218 3.218 0 0 1-3.208-3.208v-18.968a3.219 3.219 0 0 1 3.208-3.209h71.148a3.219 3.219 0 0 1 3.209 3.21v18.967a3.218 3.218 0 0 1-3.21 3.208",fill:"#BFCDDD",mask:"url(#d)"}),d.createElement("path",{d:"M159.563 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M166.98 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M174.397 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M222.539 120.546h-22.461a.802.802 0 0 1-.802-.802v-3.208c0-.443.359-.803.802-.803h22.46c.444 0 .803.36.803.803v3.208c0 .443-.36.802-.802.802",fill:"#FFF",mask:"url(#d)"}),d.createElement("path",{d:"M224.928 160.464H153.78a3.218 3.218 0 0 1-3.208-3.209v-18.967a3.219 3.219 0 0 1 3.208-3.209h71.148a3.219 3.219 0 0 1 3.209 3.209v18.967a3.218 3.218 0 0 1-3.21 3.209",fill:"#BFCDDD",mask:"url(#d)"}),d.createElement("path",{d:"M173.455 130.832h49.301M164.984 130.832h6.089M155.952 130.832h6.75M173.837 160.613h49.3M165.365 160.613h6.089M155.57 160.613h6.751",stroke:"#7C90A5",strokeWidth:"1.124",strokeLinecap:"round",strokeLinejoin:"round",mask:"url(#d)"}),d.createElement("path",{d:"M159.563 151.038a2.407 2.407 0 1 1 0-4.814 2.407 2.407 0 0 1 0 4.814M166.98 151.038a2.407 2.407 0 1 1 0-4.814 2.407 2.407 0 0 1 0 4.814M174.397 151.038a2.407 2.407 0 1 1 .001-4.814 2.407 2.407 0 0 1 0 4.814M222.539 151.038h-22.461a.802.802 0 0 1-.802-.802v-3.209c0-.443.359-.802.802-.802h22.46c.444 0 .803.36.803.802v3.209c0 .443-.36.802-.802.802M159.563 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M166.98 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M174.397 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M222.539 179.987h-22.461a.802.802 0 0 1-.802-.802v-3.209c0-.443.359-.802.802-.802h22.46c.444 0 .803.36.803.802v3.209c0 .443-.36.802-.802.802",fill:"#FFF",mask:"url(#d)"}),d.createElement("path",{d:"M203.04 221.108h-27.372a2.413 2.413 0 0 1-2.406-2.407v-11.448a2.414 2.414 0 0 1 2.406-2.407h27.372a2.414 2.414 0 0 1 2.407 2.407V218.7a2.413 2.413 0 0 1-2.407 2.407",fill:"#BFCDDD",mask:"url(#d)"}),d.createElement("path",{d:"M177.259 207.217v11.52M201.05 207.217v11.52",stroke:"#A3B4C6",strokeWidth:"1.124",strokeLinecap:"round",strokeLinejoin:"round",mask:"url(#d)"}),d.createElement("path",{d:"M162.873 267.894a9.422 9.422 0 0 1-9.422-9.422v-14.82a9.423 9.423 0 0 1 18.845 0v14.82a9.423 9.423 0 0 1-9.423 9.422",fill:"#5BA02E",mask:"url(#d)"}),d.createElement("path",{d:"M171.22 267.83a9.422 9.422 0 0 1-9.422-9.423v-3.438a9.423 9.423 0 0 1 18.845 0v3.438a9.423 9.423 0 0 1-9.422 9.423",fill:"#92C110",mask:"url(#d)"}),d.createElement("path",{d:"M181.31 293.666h-27.712a3.209 3.209 0 0 1-3.209-3.21V269.79a3.209 3.209 0 0 1 3.209-3.21h27.711a3.209 3.209 0 0 1 3.209 3.21v20.668a3.209 3.209 0 0 1-3.209 3.209",fill:"#F2D7AD",mask:"url(#d)"}))),Vhe=e=>{const{componentCls:t,lineHeightHeading3:n,iconCls:r,padding:i,paddingXL:o,paddingXS:a,paddingLG:l,marginXS:c,lineHeight:u}=e;return{[t]:{padding:`${ie(e.calc(l).mul(2).equal())} ${ie(o)}`,"&-rtl":{direction:"rtl"}},[`${t} ${t}-image`]:{width:e.imageWidth,height:e.imageHeight,margin:"auto"},[`${t} ${t}-icon`]:{marginBottom:l,textAlign:"center",[`& > ${r}`]:{fontSize:e.iconFontSize}},[`${t} ${t}-title`]:{color:e.colorTextHeading,fontSize:e.titleFontSize,lineHeight:n,marginBlock:c,textAlign:"center"},[`${t} ${t}-subtitle`]:{color:e.colorTextDescription,fontSize:e.subtitleFontSize,lineHeight:u,textAlign:"center"},[`${t} ${t}-content`]:{marginTop:l,padding:`${ie(l)} ${ie(e.calc(i).mul(2.5).equal())}`,backgroundColor:e.colorFillAlter},[`${t} ${t}-extra`]:{margin:e.extraMargin,textAlign:"center","& > *":{marginInlineEnd:a,"&:last-child":{marginInlineEnd:0}}}}},Ghe=e=>{const{componentCls:t,iconCls:n}=e;return{[`${t}-success ${t}-icon > ${n}`]:{color:e.resultSuccessIconColor},[`${t}-error ${t}-icon > ${n}`]:{color:e.resultErrorIconColor},[`${t}-info ${t}-icon > ${n}`]:{color:e.resultInfoIconColor},[`${t}-warning ${t}-icon > ${n}`]:{color:e.resultWarningIconColor}}},qhe=e=>[Vhe(e),Ghe(e)],Xhe=e=>qhe(e),Yhe=e=>({titleFontSize:e.fontSizeHeading3,subtitleFontSize:e.fontSize,iconFontSize:e.fontSizeHeading3*3,extraMargin:`${e.paddingLG}px 0 0 0`}),Qhe=Mn("Result",e=>{const t=e.colorInfo,n=e.colorError,r=e.colorSuccess,i=e.colorWarning,o=hn(e,{resultInfoIconColor:t,resultErrorIconColor:n,resultSuccessIconColor:r,resultWarningIconColor:i,imageWidth:250,imageHeight:295});return[Xhe(o)]},Yhe),Zhe=()=>d.createElement("svg",{width:"251",height:"294"},d.createElement("title",null,"Unauthorized"),d.createElement("g",{fill:"none",fillRule:"evenodd"},d.createElement("path",{d:"M0 129.023v-2.084C0 58.364 55.591 2.774 124.165 2.774h2.085c68.574 0 124.165 55.59 124.165 124.165v2.084c0 68.575-55.59 124.166-124.165 124.166h-2.085C55.591 253.189 0 197.598 0 129.023",fill:"#E4EBF7"}),d.createElement("path",{d:"M41.417 132.92a8.231 8.231 0 1 1-16.38-1.65 8.231 8.231 0 0 1 16.38 1.65",fill:"#FFF"}),d.createElement("path",{d:"M38.652 136.36l10.425 5.91M49.989 148.505l-12.58 10.73",stroke:"#FFF",strokeWidth:"2"}),d.createElement("path",{d:"M41.536 161.28a5.636 5.636 0 1 1-11.216-1.13 5.636 5.636 0 0 1 11.216 1.13M59.154 145.261a5.677 5.677 0 1 1-11.297-1.138 5.677 5.677 0 0 1 11.297 1.138M100.36 29.516l29.66-.013a4.562 4.562 0 1 0-.004-9.126l-29.66.013a4.563 4.563 0 0 0 .005 9.126M111.705 47.754l29.659-.013a4.563 4.563 0 1 0-.004-9.126l-29.66.013a4.563 4.563 0 1 0 .005 9.126",fill:"#FFF"}),d.createElement("path",{d:"M114.066 29.503V29.5l15.698-.007a4.563 4.563 0 1 0 .004 9.126l-15.698.007v-.002a4.562 4.562 0 0 0-.004-9.122M185.405 137.723c-.55 5.455-5.418 9.432-10.873 8.882-5.456-.55-9.432-5.418-8.882-10.873.55-5.455 5.418-9.432 10.873-8.882 5.455.55 9.432 5.418 8.882 10.873",fill:"#FFF"}),d.createElement("path",{d:"M180.17 143.772l12.572 7.129M193.841 158.42L178.67 171.36",stroke:"#FFF",strokeWidth:"2"}),d.createElement("path",{d:"M185.55 171.926a6.798 6.798 0 1 1-13.528-1.363 6.798 6.798 0 0 1 13.527 1.363M204.12 155.285a6.848 6.848 0 1 1-13.627-1.375 6.848 6.848 0 0 1 13.626 1.375",fill:"#FFF"}),d.createElement("path",{d:"M152.988 194.074a2.21 2.21 0 1 1-4.42 0 2.21 2.21 0 0 1 4.42 0zM225.931 118.217a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.421 0zM217.09 153.051a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.42 0zM177.84 109.842a2.21 2.21 0 1 1-4.422 0 2.21 2.21 0 0 1 4.421 0zM196.114 94.454a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.421 0zM202.844 182.523a2.21 2.21 0 1 1-4.42 0 2.21 2.21 0 0 1 4.42 0z",stroke:"#FFF",strokeWidth:"2"}),d.createElement("path",{stroke:"#FFF",strokeWidth:"2",d:"M215.125 155.262l-1.902 20.075-10.87 5.958M174.601 176.636l-6.322 9.761H156.98l-4.484 6.449M175.874 127.28V111.56M221.51 119.404l-12.77 7.859-15.228-7.86V96.668"}),d.createElement("path",{d:"M180.68 29.32C180.68 13.128 193.806 0 210 0c16.193 0 29.32 13.127 29.32 29.32 0 16.194-13.127 29.322-29.32 29.322-16.193 0-29.32-13.128-29.32-29.321",fill:"#A26EF4"}),d.createElement("path",{d:"M221.45 41.706l-21.563-.125a1.744 1.744 0 0 1-1.734-1.754l.071-12.23a1.744 1.744 0 0 1 1.754-1.734l21.562.125c.964.006 1.74.791 1.735 1.755l-.071 12.229a1.744 1.744 0 0 1-1.754 1.734",fill:"#FFF"}),d.createElement("path",{d:"M215.106 29.192c-.015 2.577-2.049 4.654-4.543 4.64-2.494-.014-4.504-2.115-4.489-4.693l.04-6.925c.016-2.577 2.05-4.654 4.543-4.64 2.494.015 4.504 2.116 4.49 4.693l-.04 6.925zm-4.53-14.074a6.877 6.877 0 0 0-6.916 6.837l-.043 7.368a6.877 6.877 0 0 0 13.754.08l.042-7.368a6.878 6.878 0 0 0-6.837-6.917zM167.566 68.367h-3.93a4.73 4.73 0 0 1-4.717-4.717 4.73 4.73 0 0 1 4.717-4.717h3.93a4.73 4.73 0 0 1 4.717 4.717 4.73 4.73 0 0 1-4.717 4.717",fill:"#FFF"}),d.createElement("path",{d:"M168.214 248.838a6.611 6.611 0 0 1-6.61-6.611v-66.108a6.611 6.611 0 0 1 13.221 0v66.108a6.611 6.611 0 0 1-6.61 6.61",fill:"#5BA02E"}),d.createElement("path",{d:"M176.147 248.176a6.611 6.611 0 0 1-6.61-6.61v-33.054a6.611 6.611 0 1 1 13.221 0v33.053a6.611 6.611 0 0 1-6.61 6.611",fill:"#92C110"}),d.createElement("path",{d:"M185.994 293.89h-27.376a3.17 3.17 0 0 1-3.17-3.17v-45.887a3.17 3.17 0 0 1 3.17-3.17h27.376a3.17 3.17 0 0 1 3.17 3.17v45.886a3.17 3.17 0 0 1-3.17 3.17",fill:"#F2D7AD"}),d.createElement("path",{d:"M81.972 147.673s6.377-.927 17.566-1.28c11.729-.371 17.57 1.086 17.57 1.086s3.697-3.855.968-8.424c1.278-12.077 5.982-32.827.335-48.273-1.116-1.339-3.743-1.512-7.536-.62-1.337.315-7.147-.149-7.983-.1l-15.311-.347s-3.487-.17-8.035-.508c-1.512-.113-4.227-1.683-5.458-.338-.406.443-2.425 5.669-1.97 16.077l8.635 35.642s-3.141 3.61 1.219 7.085",fill:"#FFF"}),d.createElement("path",{d:"M75.768 73.325l-.9-6.397 11.982-6.52s7.302-.118 8.038 1.205c.737 1.324-5.616.993-5.616.993s-1.836 1.388-2.615 2.5c-1.654 2.363-.986 6.471-8.318 5.986-1.708.284-2.57 2.233-2.57 2.233",fill:"#FFC6A0"}),d.createElement("path",{d:"M52.44 77.672s14.217 9.406 24.973 14.444c1.061.497-2.094 16.183-11.892 11.811-7.436-3.318-20.162-8.44-21.482-14.496-.71-3.258 2.543-7.643 8.401-11.76M141.862 80.113s-6.693 2.999-13.844 6.876c-3.894 2.11-10.137 4.704-12.33 7.988-6.224 9.314 3.536 11.22 12.947 7.503 6.71-2.651 28.999-12.127 13.227-22.367",fill:"#FFB594"}),d.createElement("path",{d:"M76.166 66.36l3.06 3.881s-2.783 2.67-6.31 5.747c-7.103 6.195-12.803 14.296-15.995 16.44-3.966 2.662-9.754 3.314-12.177-.118-3.553-5.032.464-14.628 31.422-25.95",fill:"#FFC6A0"}),d.createElement("path",{d:"M64.674 85.116s-2.34 8.413-8.912 14.447c.652.548 18.586 10.51 22.144 10.056 5.238-.669 6.417-18.968 1.145-20.531-.702-.208-5.901-1.286-8.853-2.167-.87-.26-1.611-1.71-3.545-.936l-1.98-.869zM128.362 85.826s5.318 1.956 7.325 13.734c-.546.274-17.55 12.35-21.829 7.805-6.534-6.94-.766-17.393 4.275-18.61 4.646-1.121 5.03-1.37 10.23-2.929",fill:"#FFF"}),d.createElement("path",{d:"M78.18 94.656s.911 7.41-4.914 13.078",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M87.397 94.68s3.124 2.572 10.263 2.572c7.14 0 9.074-3.437 9.074-3.437",stroke:"#E4EBF7",strokeWidth:".932",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M117.184 68.639l-6.781-6.177s-5.355-4.314-9.223-.893c-3.867 3.422 4.463 2.083 5.653 4.165 1.19 2.082.848 1.143-2.083.446-5.603-1.331-2.082.893 2.975 5.355 2.091 1.845 6.992.955 6.992.955l2.467-3.851z",fill:"#FFC6A0"}),d.createElement("path",{d:"M105.282 91.315l-.297-10.937-15.918-.027-.53 10.45c-.026.403.17.788.515.999 2.049 1.251 9.387 5.093 15.799.424.287-.21.443-.554.431-.91",fill:"#FFB594"}),d.createElement("path",{d:"M107.573 74.24c.817-1.147.982-9.118 1.015-11.928a1.046 1.046 0 0 0-.965-1.055l-4.62-.365c-7.71-1.044-17.071.624-18.253 6.346-5.482 5.813-.421 13.244-.421 13.244s1.963 3.566 4.305 6.791c.756 1.041.398-3.731 3.04-5.929 5.524-4.594 15.899-7.103 15.899-7.103",fill:"#5C2552"}),d.createElement("path",{d:"M88.426 83.206s2.685 6.202 11.602 6.522c7.82.28 8.973-7.008 7.434-17.505l-.909-5.483c-6.118-2.897-15.478.54-15.478.54s-.576 2.044-.19 5.504c-2.276 2.066-1.824 5.618-1.824 5.618s-.905-1.922-1.98-2.321c-.86-.32-1.897.089-2.322 1.98-1.04 4.632 3.667 5.145 3.667 5.145",fill:"#FFC6A0"}),d.createElement("path",{stroke:"#DB836E",strokeWidth:"1.145",strokeLinecap:"round",strokeLinejoin:"round",d:"M100.843 77.099l1.701-.928-1.015-4.324.674-1.406"}),d.createElement("path",{d:"M105.546 74.092c-.022.713-.452 1.279-.96 1.263-.51-.016-.904-.607-.882-1.32.021-.713.452-1.278.96-1.263.51.016.904.607.882 1.32M97.592 74.349c-.022.713-.452 1.278-.961 1.263-.509-.016-.904-.607-.882-1.32.022-.713.452-1.279.961-1.263.51.016.904.606.882 1.32",fill:"#552950"}),d.createElement("path",{d:"M91.132 86.786s5.269 4.957 12.679 2.327",stroke:"#DB836E",strokeWidth:"1.145",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M99.776 81.903s-3.592.232-1.44-2.79c1.59-1.496 4.897-.46 4.897-.46s1.156 3.906-3.457 3.25",fill:"#DB836E"}),d.createElement("path",{d:"M102.88 70.6s2.483.84 3.402.715M93.883 71.975s2.492-1.144 4.778-1.073",stroke:"#5C2552",strokeWidth:"1.526",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M86.32 77.374s.961.879 1.458 2.106c-.377.48-1.033 1.152-.236 1.809M99.337 83.719s1.911.151 2.509-.254",stroke:"#DB836E",strokeWidth:"1.145",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M87.782 115.821l15.73-3.012M100.165 115.821l10.04-2.008",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M66.508 86.763s-1.598 8.83-6.697 14.078",stroke:"#E4EBF7",strokeWidth:"1.114",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M128.31 87.934s3.013 4.121 4.06 11.785",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M64.09 84.816s-6.03 9.912-13.607 9.903",stroke:"#DB836E",strokeWidth:".795",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M112.366 65.909l-.142 5.32s5.993 4.472 11.945 9.202c4.482 3.562 8.888 7.455 10.985 8.662 4.804 2.766 8.9 3.355 11.076 1.808 4.071-2.894 4.373-9.878-8.136-15.263-4.271-1.838-16.144-6.36-25.728-9.73",fill:"#FFC6A0"}),d.createElement("path",{d:"M130.532 85.488s4.588 5.757 11.619 6.214",stroke:"#DB836E",strokeWidth:".75",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M121.708 105.73s-.393 8.564-1.34 13.612",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M115.784 161.512s-3.57-1.488-2.678-7.14",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M101.52 290.246s4.326 2.057 7.408 1.03c2.842-.948 4.564.673 7.132 1.186 2.57.514 6.925 1.108 11.772-1.269-.104-5.551-6.939-4.01-12.048-6.763-2.582-1.39-3.812-4.757-3.625-8.863h-9.471s-1.402 10.596-1.169 14.68",fill:"#CBD1D1"}),d.createElement("path",{d:"M101.496 290.073s2.447 1.281 6.809.658c3.081-.44 3.74.485 7.479 1.039 3.739.554 10.802-.07 11.91-.9.415 1.108-.347 2.077-.347 2.077s-1.523.608-4.847.831c-2.045.137-5.843.293-7.663-.507-1.8-1.385-5.286-1.917-5.77-.243-3.947.958-7.41-.288-7.41-.288l-.16-2.667z",fill:"#2B0849"}),d.createElement("path",{d:"M108.824 276.19h3.116s-.103 6.751 4.57 8.62c-4.673.624-8.62-2.32-7.686-8.62",fill:"#A4AABA"}),d.createElement("path",{d:"M57.65 272.52s-2.122 7.47-4.518 12.396c-1.811 3.724-4.255 7.548 5.505 7.548 6.698 0 9.02-.483 7.479-6.648-1.541-6.164.268-13.296.268-13.296H57.65z",fill:"#CBD1D1"}),d.createElement("path",{d:"M51.54 290.04s2.111 1.178 6.682 1.178c6.128 0 8.31-1.662 8.31-1.662s.605 1.122-.624 2.18c-1 .862-3.624 1.603-7.444 1.559-4.177-.049-5.876-.57-6.786-1.177-.831-.554-.692-1.593-.138-2.078",fill:"#2B0849"}),d.createElement("path",{d:"M58.533 274.438s.034 1.529-.315 2.95c-.352 1.431-1.087 3.127-1.139 4.17-.058 1.16 4.57 1.592 5.194.035.623-1.559 1.303-6.475 1.927-7.306.622-.831-4.94-2.135-5.667.15",fill:"#A4AABA"}),d.createElement("path",{d:"M100.885 277.015l13.306.092s1.291-54.228 1.843-64.056c.552-9.828 3.756-43.13.997-62.788l-12.48-.64-22.725.776s-.433 3.944-1.19 9.921c-.062.493-.677.838-.744 1.358-.075.582.42 1.347.318 1.956-2.35 14.003-6.343 32.926-8.697 46.425-.116.663-1.227 1.004-1.45 2.677-.04.3.21 1.516.112 1.785-6.836 18.643-10.89 47.584-14.2 61.551l14.528-.014s2.185-8.524 4.008-16.878c2.796-12.817 22.987-84.553 22.987-84.553l3-.517 1.037 46.1s-.223 1.228.334 2.008c.558.782-.556 1.117-.39 2.233l.39 1.784s-.446 7.14-.892 11.826c-.446 4.685-.092 38.954-.092 38.954",fill:"#7BB2F9"}),d.createElement("path",{d:"M77.438 220.434c1.146.094 4.016-2.008 6.916-4.91M107.55 223.931s2.758-1.103 6.069-3.862",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M108.459 220.905s2.759-1.104 6.07-3.863",stroke:"#648BD8",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M76.099 223.557s2.608-.587 6.47-3.346M87.33 150.82c-.27 3.088.297 8.478-4.315 9.073M104.829 149.075s.11 13.936-1.286 14.983c-2.207 1.655-2.975 1.934-2.975 1.934M101.014 149.63s.035 12.81-1.19 24.245M94.93 174.965s7.174-1.655 9.38-1.655M75.671 204.754c-.316 1.55-.64 3.067-.973 4.535 0 0-1.45 1.822-1.003 3.756.446 1.934-.943 2.034-4.96 15.273-1.686 5.559-4.464 18.49-6.313 27.447-.078.38-4.018 18.06-4.093 18.423M77.043 196.743a313.269 313.269 0 0 1-.877 4.729M83.908 151.414l-1.19 10.413s-1.091.148-.496 2.23c.111 1.34-2.66 15.692-5.153 30.267M57.58 272.94h13.238",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M117.377 147.423s-16.955-3.087-35.7.199c.157 2.501-.002 4.128-.002 4.128s14.607-2.802 35.476-.31c.251-2.342.226-4.017.226-4.017",fill:"#192064"}),d.createElement("path",{d:"M107.511 150.353l.004-4.885a.807.807 0 0 0-.774-.81c-2.428-.092-5.04-.108-7.795-.014a.814.814 0 0 0-.784.81l-.003 4.88c0 .456.371.82.827.808a140.76 140.76 0 0 1 7.688.017.81.81 0 0 0 .837-.806",fill:"#FFF"}),d.createElement("path",{d:"M106.402 149.426l.002-3.06a.64.64 0 0 0-.616-.643 94.135 94.135 0 0 0-5.834-.009.647.647 0 0 0-.626.643l-.001 3.056c0 .36.291.648.651.64 1.78-.04 3.708-.041 5.762.012.36.009.662-.279.662-.64",fill:"#192064"}),d.createElement("path",{d:"M101.485 273.933h12.272M102.652 269.075c.006 3.368.04 5.759.11 6.47M102.667 263.125c-.009 1.53-.015 2.98-.016 4.313M102.204 174.024l.893 44.402s.669 1.561-.224 2.677c-.892 1.116 2.455.67.893 2.231-1.562 1.562.893 1.116 0 3.347-.592 1.48-.988 20.987-1.09 34.956",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}))),Jhe={success:Em,error:Ku,info:_b,warning:Whe},Fm={404:Uhe,500:Khe,403:Zhe},epe=Object.keys(Fm),tpe=e=>{let{prefixCls:t,icon:n,status:r}=e;const i=le(`${t}-icon`);if(epe.includes(`${r}`)){const a=Fm[r];return d.createElement("div",{className:`${i} ${t}-image`},d.createElement(a,null))}const o=d.createElement(Jhe[r]);return n===null||n===!1?null:d.createElement("div",{className:i},n||o)},npe=e=>{let{prefixCls:t,extra:n}=e;return n?d.createElement("div",{className:`${t}-extra`},n):null},n2=e=>{let{prefixCls:t,className:n,rootClassName:r,subTitle:i,title:o,style:a,children:l,status:c="info",icon:u,extra:f}=e;const{getPrefixCls:p,direction:m,result:g}=d.useContext(At),b=p("result",t),[E,x,C]=Qhe(b),S=le(b,`${b}-${c}`,n,g==null?void 0:g.className,r,{[`${b}-rtl`]:m==="rtl"},x,C),T=Object.assign(Object.assign({},g==null?void 0:g.style),a);return E(d.createElement("div",{className:S,style:T},d.createElement(tpe,{prefixCls:b,status:c,icon:u}),d.createElement("div",{className:`${b}-title`},o),i&&d.createElement("div",{className:`${b}-subtitle`},i),d.createElement(npe,{prefixCls:b,extra:f}),l&&d.createElement("div",{className:`${b}-content`},l)))};n2.PRESENTED_IMAGE_403=Fm[403];n2.PRESENTED_IMAGE_404=Fm[404];n2.PRESENTED_IMAGE_500=Fm[500];var Ys={},Bm="rc-table-internal-hook";function f3(e){var t=d.createContext(void 0),n=function(i){var o=i.value,a=i.children,l=d.useRef(o);l.current=o;var c=d.useState(function(){return{getValue:function(){return l.current},listeners:new Set}}),u=Oe(c,1),f=u[0];return bn(function(){Oa.unstable_batchedUpdates(function(){f.listeners.forEach(function(p){p(o)})})},[o]),d.createElement(t.Provider,{value:f},a)};return{Context:t,Provider:n,defaultValue:e}}function Fi(e,t){var n=Hn(typeof t=="function"?t:function(p){if(t===void 0)return p;if(!Array.isArray(t))return p[t];var m={};return t.forEach(function(g){m[g]=p[g]}),m}),r=d.useContext(e==null?void 0:e.Context),i=r||{},o=i.listeners,a=i.getValue,l=d.useRef();l.current=n(r?a():e==null?void 0:e.defaultValue);var c=d.useState({}),u=Oe(c,2),f=u[1];return bn(function(){if(!r)return;function p(m){var g=n(m);Ml(l.current,g,!0)||f({})}return o.add(p),function(){o.delete(p)}},[r]),l.current}function rpe(){var e=d.createContext(null);function t(){return d.useContext(e)}function n(i,o){var a=ol(i),l=function(u,f){var p=a?{ref:f}:{},m=d.useRef(0),g=d.useRef(u),b=t();return b!==null?d.createElement(i,ze({},u,p)):((!o||o(g.current,u))&&(m.current+=1),g.current=u,d.createElement(e.Provider,{value:m.current},d.createElement(i,ze({},u,p))))};return a?d.forwardRef(l):l}function r(i,o){var a=ol(i),l=function(u,f){var p=a?{ref:f}:{};return t(),d.createElement(i,ze({},u,p))};return a?d.memo(d.forwardRef(l),o):d.memo(l,o)}return{makeImmutable:n,responseImmutable:r,useImmutableMark:t}}var h3=rpe(),KB=h3.makeImmutable,m1=h3.responseImmutable,ipe=h3.useImmutableMark,yo=f3(),VB=d.createContext({renderWithProps:!1}),ope="RC_TABLE_KEY";function ape(e){return e==null?[]:Array.isArray(e)?e:[e]}function r2(e){var t=[],n={};return e.forEach(function(r){for(var i=r||{},o=i.key,a=i.dataIndex,l=o||ape(a).join("-")||ope;n[l];)l="".concat(l,"_next");n[l]=!0,t.push(l)}),t}function dE(e){return e!=null}function lpe(e){return typeof e=="number"&&!Number.isNaN(e)}function spe(e){return e&&$t(e)==="object"&&!Array.isArray(e)&&!d.isValidElement(e)}function cpe(e,t,n,r,i,o){var a=d.useContext(VB),l=ipe(),c=Uu(function(){if(dE(r))return[r];var u=t==null||t===""?[]:Array.isArray(t)?t:[t],f=co(e,u),p=f,m=void 0;if(i){var g=i(f,e,n);spe(g)?(p=g.children,m=g.props,a.renderWithProps=!0):p=g}return[p,m]},[l,e,r,t,i,n],function(u,f){if(o){var p=Oe(u,2),m=p[1],g=Oe(f,2),b=g[1];return o(b,m)}return a.renderWithProps?!0:!Ml(u,f,!0)});return c}function upe(e,t,n,r){var i=e+t-1;return e<=r&&i>=n}function dpe(e,t){return Fi(yo,function(n){var r=upe(e,t||1,n.hoverStartRow,n.hoverEndRow);return[r,n.onHover]})}var fpe=function(t){var n=t.ellipsis,r=t.rowType,i=t.children,o,a=n===!0?{showTitle:!0}:n;return a&&(a.showTitle||r==="header")&&(typeof i=="string"||typeof i=="number"?o=i.toString():d.isValidElement(i)&&typeof i.props.children=="string"&&(o=i.props.children)),o};function hpe(e){var t,n,r,i,o,a,l,c,u=e.component,f=e.children,p=e.ellipsis,m=e.scope,g=e.prefixCls,b=e.className,E=e.align,x=e.record,C=e.render,S=e.dataIndex,T=e.renderIndex,O=e.shouldCellUpdate,I=e.index,_=e.rowType,$=e.colSpan,k=e.rowSpan,R=e.fixLeft,M=e.fixRight,H=e.firstFixLeft,B=e.lastFixLeft,L=e.firstFixRight,D=e.lastFixRight,z=e.appendNode,W=e.additionalProps,j=W===void 0?{}:W,U=e.isSticky,q="".concat(g,"-cell"),A=Fi(yo,["supportSticky","allColumnsFixedLeft","rowHoverable"]),P=A.supportSticky,Z=A.allColumnsFixedLeft,V=A.rowHoverable,Y=cpe(x,S,T,f,C,O),ee=Oe(Y,2),ue=ee[0],ne=ee[1],se={},me=typeof R=="number"&&P,ye=typeof M=="number"&&P;me&&(se.position="sticky",se.left=R),ye&&(se.position="sticky",se.right=M);var de=(t=(n=(r=ne==null?void 0:ne.colSpan)!==null&&r!==void 0?r:j.colSpan)!==null&&n!==void 0?n:$)!==null&&t!==void 0?t:1,ce=(i=(o=(a=ne==null?void 0:ne.rowSpan)!==null&&a!==void 0?a:j.rowSpan)!==null&&o!==void 0?o:k)!==null&&i!==void 0?i:1,oe=dpe(I,ce),pe=Oe(oe,2),ve=pe[0],Te=pe[1],Ge=Hn(function(Fe){var Ke;x&&Te(I,I+ce-1),j==null||(Ke=j.onMouseEnter)===null||Ke===void 0||Ke.call(j,Fe)}),je=Hn(function(Fe){var Ke;x&&Te(-1,-1),j==null||(Ke=j.onMouseLeave)===null||Ke===void 0||Ke.call(j,Fe)});if(de===0||ce===0)return null;var Je=(l=j.title)!==null&&l!==void 0?l:fpe({rowType:_,ellipsis:p,children:ue}),Se=le(q,b,(c={},J(J(J(J(J(J(J(J(J(J(c,"".concat(q,"-fix-left"),me&&P),"".concat(q,"-fix-left-first"),H&&P),"".concat(q,"-fix-left-last"),B&&P),"".concat(q,"-fix-left-all"),B&&Z&&P),"".concat(q,"-fix-right"),ye&&P),"".concat(q,"-fix-right-first"),L&&P),"".concat(q,"-fix-right-last"),D&&P),"".concat(q,"-ellipsis"),p),"".concat(q,"-with-append"),z),"".concat(q,"-fix-sticky"),(me||ye)&&U&&P),J(c,"".concat(q,"-row-hover"),!ne&&ve)),j.className,ne==null?void 0:ne.className),$e={};E&&($e.textAlign=E);var qe=te(te(te(te({},se),j.style),$e),ne==null?void 0:ne.style),Le=ue;return $t(Le)==="object"&&!Array.isArray(Le)&&!d.isValidElement(Le)&&(Le=null),p&&(B||L)&&(Le=d.createElement("span",{className:"".concat(q,"-content")},Le)),d.createElement(u,ze({},ne,j,{className:Se,style:qe,title:Je,scope:m,onMouseEnter:V?Ge:void 0,onMouseLeave:V?je:void 0,colSpan:de!==1?de:null,rowSpan:ce!==1?ce:null}),z,Le)}const g1=d.memo(hpe);function p3(e,t,n,r,i){var o=n[e]||{},a=n[t]||{},l,c;o.fixed==="left"?l=r.left[i==="rtl"?t:e]:a.fixed==="right"&&(c=r.right[i==="rtl"?e:t]);var u=!1,f=!1,p=!1,m=!1,g=n[t+1],b=n[e-1],E=g&&!g.fixed||b&&!b.fixed||n.every(function(O){return O.fixed==="left"});if(i==="rtl"){if(l!==void 0){var x=b&&b.fixed==="left";m=!x&&E}else if(c!==void 0){var C=g&&g.fixed==="right";p=!C&&E}}else if(l!==void 0){var S=g&&g.fixed==="left";u=!S&&E}else if(c!==void 0){var T=b&&b.fixed==="right";f=!T&&E}return{fixLeft:l,fixRight:c,lastFixLeft:u,firstFixRight:f,lastFixRight:p,firstFixLeft:m,isSticky:r.isSticky}}var GB=d.createContext({});function ppe(e){var t=e.className,n=e.index,r=e.children,i=e.colSpan,o=i===void 0?1:i,a=e.rowSpan,l=e.align,c=Fi(yo,["prefixCls","direction"]),u=c.prefixCls,f=c.direction,p=d.useContext(GB),m=p.scrollColumnIndex,g=p.stickyOffsets,b=p.flattenColumns,E=n+o-1,x=E+1===m?o+1:o,C=p3(n,n+x-1,b,g,f);return d.createElement(g1,ze({className:t,index:n,component:"td",prefixCls:u,record:null,dataIndex:null,align:l,colSpan:x,rowSpan:a,render:function(){return r}},C))}var mpe=["children"];function gpe(e){var t=e.children,n=Gt(e,mpe);return d.createElement("tr",n,t)}function i2(e){var t=e.children;return t}i2.Row=gpe;i2.Cell=ppe;function vpe(e){var t=e.children,n=e.stickyOffsets,r=e.flattenColumns,i=Fi(yo,"prefixCls"),o=r.length-1,a=r[o],l=d.useMemo(function(){return{stickyOffsets:n,flattenColumns:r,scrollColumnIndex:a!=null&&a.scrollbar?o:null}},[a,r,o,n]);return d.createElement(GB.Provider,{value:l},d.createElement("tfoot",{className:"".concat(i,"-summary")},t))}const ag=m1(vpe);var qB=i2;function ype(e){return null}function bpe(e){return null}function XB(e,t,n,r,i,o,a){e.push({record:t,indent:n,index:a});var l=o(t),c=i==null?void 0:i.has(l);if(t&&Array.isArray(t[r])&&c)for(var u=0;u<t[r].length;u+=1)XB(e,t[r][u],n+1,r,i,o,u)}function YB(e,t,n,r){var i=d.useMemo(function(){if(n!=null&&n.size){for(var o=[],a=0;a<(e==null?void 0:e.length);a+=1){var l=e[a];XB(o,l,0,t,n,r,a)}return o}return e==null?void 0:e.map(function(c,u){return{record:c,indent:0,index:u}})},[e,t,n,r]);return i}function QB(e,t,n,r){var i=Fi(yo,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex","expandedKeys","childrenColumnName","rowExpandable","onRow"]),o=i.flattenColumns,a=i.expandableType,l=i.expandedKeys,c=i.childrenColumnName,u=i.onTriggerExpand,f=i.rowExpandable,p=i.onRow,m=i.expandRowByClick,g=i.rowClassName,b=a==="nest",E=a==="row"&&(!f||f(e)),x=E||b,C=l&&l.has(t),S=c&&e&&e[c],T=Hn(u),O=p==null?void 0:p(e,n),I=O==null?void 0:O.onClick,_=function(M){m&&x&&u(e,M);for(var H=arguments.length,B=new Array(H>1?H-1:0),L=1;L<H;L++)B[L-1]=arguments[L];I==null||I.apply(void 0,[M].concat(B))},$;typeof g=="string"?$=g:typeof g=="function"&&($=g(e,n,r));var k=r2(o);return te(te({},i),{},{columnsKey:k,nestExpandable:b,expanded:C,hasNestChildren:S,record:e,onTriggerExpand:T,rowSupportExpand:E,expandable:x,rowProps:te(te({},O),{},{className:le($,O==null?void 0:O.className),onClick:_})})}function ZB(e){var t=e.prefixCls,n=e.children,r=e.component,i=e.cellComponent,o=e.className,a=e.expanded,l=e.colSpan,c=e.isEmpty,u=Fi(yo,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),f=u.scrollbarSize,p=u.fixHeader,m=u.fixColumn,g=u.componentWidth,b=u.horizonScroll,E=n;return(c?b&&g:m)&&(E=d.createElement("div",{style:{width:g-(p&&!c?f:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(t,"-expanded-row-fixed")},E)),d.createElement(r,{className:o,style:{display:a?null:"none"}},d.createElement(g1,{component:i,prefixCls:t,colSpan:l},E))}function Cpe(e){var t=e.prefixCls,n=e.record,r=e.onExpand,i=e.expanded,o=e.expandable,a="".concat(t,"-row-expand-icon");if(!o)return d.createElement("span",{className:le(a,"".concat(t,"-row-spaced"))});var l=function(u){r(n,u),u.stopPropagation()};return d.createElement("span",{className:le(a,J(J({},"".concat(t,"-row-expanded"),i),"".concat(t,"-row-collapsed"),!i)),onClick:l})}function Spe(e,t,n){var r=[];function i(o){(o||[]).forEach(function(a,l){r.push(t(a,l)),i(a[n])})}return i(e),r}function JB(e,t,n,r){return typeof e=="string"?e:typeof e=="function"?e(t,n,r):""}function ej(e,t,n,r,i){var o=e.record,a=e.prefixCls,l=e.columnsKey,c=e.fixedInfoList,u=e.expandIconColumnIndex,f=e.nestExpandable,p=e.indentSize,m=e.expandIcon,g=e.expanded,b=e.hasNestChildren,E=e.onTriggerExpand,x=l[n],C=c[n],S;n===(u||0)&&f&&(S=d.createElement(d.Fragment,null,d.createElement("span",{style:{paddingLeft:"".concat(p*r,"px")},className:"".concat(a,"-row-indent indent-level-").concat(r)}),m({prefixCls:a,expanded:g,expandable:b,record:o,onExpand:E})));var T;return t.onCell&&(T=t.onCell(o,i)),{key:x,fixedInfo:C,appendCellNode:S,additionalCellProps:T||{}}}function Epe(e){var t=e.className,n=e.style,r=e.record,i=e.index,o=e.renderIndex,a=e.rowKey,l=e.indent,c=l===void 0?0:l,u=e.rowComponent,f=e.cellComponent,p=e.scopeCellComponent,m=QB(r,a,i,c),g=m.prefixCls,b=m.flattenColumns,E=m.expandedRowClassName,x=m.expandedRowRender,C=m.rowProps,S=m.expanded,T=m.rowSupportExpand,O=d.useRef(!1);O.current||(O.current=S);var I=JB(E,r,i,c),_=d.createElement(u,ze({},C,{"data-row-key":a,className:le(t,"".concat(g,"-row"),"".concat(g,"-row-level-").concat(c),C==null?void 0:C.className,J({},I,c>=1)),style:te(te({},n),C==null?void 0:C.style)}),b.map(function(R,M){var H=R.render,B=R.dataIndex,L=R.className,D=ej(m,R,M,c,i),z=D.key,W=D.fixedInfo,j=D.appendCellNode,U=D.additionalCellProps;return d.createElement(g1,ze({className:L,ellipsis:R.ellipsis,align:R.align,scope:R.rowScope,component:R.rowScope?p:f,prefixCls:g,key:z,record:r,index:i,renderIndex:o,dataIndex:B,render:H,shouldCellUpdate:R.shouldCellUpdate},W,{appendNode:j,additionalProps:U}))})),$;if(T&&(O.current||S)){var k=x(r,i,c+1,S);$=d.createElement(ZB,{expanded:S,className:le("".concat(g,"-expanded-row"),"".concat(g,"-expanded-row-level-").concat(c+1),I),prefixCls:g,component:u,cellComponent:f,colSpan:b.length,isEmpty:!1},k)}return d.createElement(d.Fragment,null,_,$)}const xpe=m1(Epe);function wpe(e){var t=e.columnKey,n=e.onColumnResize,r=d.useRef();return d.useEffect(function(){r.current&&n(t,r.current.offsetWidth)},[]),d.createElement(Yi,{data:t},d.createElement("td",{ref:r,style:{padding:0,border:0,height:0}},d.createElement("div",{style:{height:0,overflow:"hidden"}}," ")))}function Tpe(e){var t=e.prefixCls,n=e.columnsKey,r=e.onColumnResize;return d.createElement("tr",{"aria-hidden":"true",className:"".concat(t,"-measure-row"),style:{height:0,fontSize:0}},d.createElement(Yi.Collection,{onBatchResize:function(o){o.forEach(function(a){var l=a.data,c=a.size;r(l,c.offsetWidth)})}},n.map(function(i){return d.createElement(wpe,{key:i,columnKey:i,onColumnResize:r})})))}function _pe(e){var t=e.data,n=e.measureColumnWidth,r=Fi(yo,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),i=r.prefixCls,o=r.getComponent,a=r.onColumnResize,l=r.flattenColumns,c=r.getRowKey,u=r.expandedKeys,f=r.childrenColumnName,p=r.emptyNode,m=YB(t,f,u,c),g=d.useRef({renderWithProps:!1}),b=o(["body","wrapper"],"tbody"),E=o(["body","row"],"tr"),x=o(["body","cell"],"td"),C=o(["body","cell"],"th"),S;t.length?S=m.map(function(O,I){var _=O.record,$=O.indent,k=O.index,R=c(_,I);return d.createElement(xpe,{key:R,rowKey:R,record:_,index:I,renderIndex:k,rowComponent:E,cellComponent:x,scopeCellComponent:C,getRowKey:c,indent:$})}):S=d.createElement(ZB,{expanded:!0,className:"".concat(i,"-placeholder"),prefixCls:i,component:E,cellComponent:x,colSpan:l.length,isEmpty:!0},p);var T=r2(l);return d.createElement(VB.Provider,{value:g.current},d.createElement(b,{className:"".concat(i,"-tbody")},n&&d.createElement(Tpe,{prefixCls:i,columnsKey:T,onColumnResize:a}),S))}const Ope=m1(_pe);var Ipe=["expandable"],ip="RC_TABLE_INTERNAL_COL_DEFINE";function $pe(e){var t=e.expandable,n=Gt(e,Ipe),r;return"expandable"in e?r=te(te({},n),t):r=n,r.showExpandColumn===!1&&(r.expandIconColumnIndex=-1),r}var Npe=["columnType"];function tj(e){for(var t=e.colWidths,n=e.columns,r=e.columCount,i=Fi(yo,["tableLayout"]),o=i.tableLayout,a=[],l=r||n.length,c=!1,u=l-1;u>=0;u-=1){var f=t[u],p=n&&n[u],m=void 0,g=void 0;if(p&&(m=p[ip],o==="auto"&&(g=p.minWidth)),f||g||m||c){var b=m||{};b.columnType;var E=Gt(b,Npe);a.unshift(d.createElement("col",ze({key:u,style:{width:f,minWidth:g}},E))),c=!0}}return d.createElement("colgroup",null,a)}var Ape=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function kpe(e,t){return d.useMemo(function(){for(var n=[],r=0;r<t;r+=1){var i=e[r];if(i!==void 0)n[r]=i;else return null}return n},[e.join("_"),t])}var Rpe=d.forwardRef(function(e,t){var n=e.className,r=e.noData,i=e.columns,o=e.flattenColumns,a=e.colWidths,l=e.columCount,c=e.stickyOffsets,u=e.direction,f=e.fixHeader,p=e.stickyTopOffset,m=e.stickyBottomOffset,g=e.stickyClassName,b=e.onScroll,E=e.maxContentScroll,x=e.children,C=Gt(e,Ape),S=Fi(yo,["prefixCls","scrollbarSize","isSticky","getComponent"]),T=S.prefixCls,O=S.scrollbarSize,I=S.isSticky,_=S.getComponent,$=_(["header","table"],"table"),k=I&&!f?0:O,R=d.useRef(null),M=d.useCallback(function(U){Fp(t,U),Fp(R,U)},[]);d.useEffect(function(){var U;function q(A){var P=A,Z=P.currentTarget,V=P.deltaX;V&&(b({currentTarget:Z,scrollLeft:Z.scrollLeft+V}),A.preventDefault())}return(U=R.current)===null||U===void 0||U.addEventListener("wheel",q,{passive:!1}),function(){var A;(A=R.current)===null||A===void 0||A.removeEventListener("wheel",q)}},[]);var H=d.useMemo(function(){return o.every(function(U){return U.width})},[o]),B=o[o.length-1],L={fixed:B?B.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(T,"-cell-scrollbar")}}},D=d.useMemo(function(){return k?[].concat(Qe(i),[L]):i},[k,i]),z=d.useMemo(function(){return k?[].concat(Qe(o),[L]):o},[k,o]),W=d.useMemo(function(){var U=c.right,q=c.left;return te(te({},c),{},{left:u==="rtl"?[].concat(Qe(q.map(function(A){return A+k})),[0]):q,right:u==="rtl"?U:[].concat(Qe(U.map(function(A){return A+k})),[0]),isSticky:I})},[k,c,I]),j=kpe(a,l);return d.createElement("div",{style:te({overflow:"hidden"},I?{top:p,bottom:m}:{}),ref:M,className:le(n,J({},g,!!g))},d.createElement($,{style:{tableLayout:"fixed",visibility:r||j?null:"hidden"}},(!r||!E||H)&&d.createElement(tj,{colWidths:j?[].concat(Qe(j),[k]):[],columCount:l+1,columns:z}),x(te(te({},C),{},{stickyOffsets:W,columns:D,flattenColumns:z}))))});const PI=d.memo(Rpe);var Mpe=function(t){var n=t.cells,r=t.stickyOffsets,i=t.flattenColumns,o=t.rowComponent,a=t.cellComponent,l=t.onHeaderRow,c=t.index,u=Fi(yo,["prefixCls","direction"]),f=u.prefixCls,p=u.direction,m;l&&(m=l(n.map(function(b){return b.column}),c));var g=r2(n.map(function(b){return b.column}));return d.createElement(o,m,n.map(function(b,E){var x=b.column,C=p3(b.colStart,b.colEnd,i,r,p),S;return x&&x.onHeaderCell&&(S=b.column.onHeaderCell(x)),d.createElement(g1,ze({},b,{scope:x.title?b.colSpan>1?"colgroup":"col":null,ellipsis:x.ellipsis,align:x.align,component:a,prefixCls:f,key:g[E]},C,{additionalProps:S,rowType:"header"}))}))};function Ppe(e){var t=[];function n(a,l){var c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;t[c]=t[c]||[];var u=l,f=a.filter(Boolean).map(function(p){var m={key:p.key,className:p.className||"",children:p.title,column:p,colStart:u},g=1,b=p.children;return b&&b.length>0&&(g=n(b,u,c+1).reduce(function(E,x){return E+x},0),m.hasSubColumns=!0),"colSpan"in p&&(g=p.colSpan),"rowSpan"in p&&(m.rowSpan=p.rowSpan),m.colSpan=g,m.colEnd=m.colStart+g-1,t[c].push(m),u+=g,g});return f}n(e,0);for(var r=t.length,i=function(l){t[l].forEach(function(c){!("rowSpan"in c)&&!c.hasSubColumns&&(c.rowSpan=r-l)})},o=0;o<r;o+=1)i(o);return t}var Lpe=function(t){var n=t.stickyOffsets,r=t.columns,i=t.flattenColumns,o=t.onHeaderRow,a=Fi(yo,["prefixCls","getComponent"]),l=a.prefixCls,c=a.getComponent,u=d.useMemo(function(){return Ppe(r)},[r]),f=c(["header","wrapper"],"thead"),p=c(["header","row"],"tr"),m=c(["header","cell"],"th");return d.createElement(f,{className:"".concat(l,"-thead")},u.map(function(g,b){var E=d.createElement(Mpe,{key:b,flattenColumns:i,cells:g,stickyOffsets:n,rowComponent:p,cellComponent:m,onHeaderRow:o,index:b});return E}))};const LI=m1(Lpe);function DI(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return typeof t=="number"?t:t.endsWith("%")?e*parseFloat(t)/100:null}function Dpe(e,t,n){return d.useMemo(function(){if(t&&t>0){var r=0,i=0;e.forEach(function(m){var g=DI(t,m.width);g?r+=g:i+=1});var o=Math.max(t,n),a=Math.max(o-r,i),l=i,c=a/i,u=0,f=e.map(function(m){var g=te({},m),b=DI(t,g.width);if(b)g.width=b;else{var E=Math.floor(c);g.width=l===1?a:E,a-=E,l-=1}return u+=g.width,g});if(u<o){var p=o/u;a=o,f.forEach(function(m,g){var b=Math.floor(m.width*p);m.width=g===f.length-1?a:b,a-=b})}return[f,Math.max(u,o)]}return[e,t]},[e,t,n])}var Fpe=["children"],Bpe=["fixed"];function m3(e){return ri(e).filter(function(t){return d.isValidElement(t)}).map(function(t){var n=t.key,r=t.props,i=r.children,o=Gt(r,Fpe),a=te({key:n},o);return i&&(a.children=m3(i)),a})}function nj(e){return e.filter(function(t){return t&&$t(t)==="object"&&!t.hidden}).map(function(t){var n=t.children;return n&&n.length>0?te(te({},t),{},{children:nj(n)}):t})}function fE(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return e.filter(function(n){return n&&$t(n)==="object"}).reduce(function(n,r,i){var o=r.fixed,a=o===!0?"left":o,l="".concat(t,"-").concat(i),c=r.children;return c&&c.length>0?[].concat(Qe(n),Qe(fE(c,l).map(function(u){return te({fixed:a},u)}))):[].concat(Qe(n),[te(te({key:l},r),{},{fixed:a})])},[])}function jpe(e){return e.map(function(t){var n=t.fixed,r=Gt(t,Bpe),i=n;return n==="left"?i="right":n==="right"&&(i="left"),te({fixed:i},r)})}function Hpe(e,t){var n=e.prefixCls,r=e.columns,i=e.children,o=e.expandable,a=e.expandedKeys,l=e.columnTitle,c=e.getRowKey,u=e.onTriggerExpand,f=e.expandIcon,p=e.rowExpandable,m=e.expandIconColumnIndex,g=e.direction,b=e.expandRowByClick,E=e.columnWidth,x=e.fixed,C=e.scrollWidth,S=e.clientWidth,T=d.useMemo(function(){var B=r||m3(i)||[];return nj(B.slice())},[r,i]),O=d.useMemo(function(){if(o){var B=T.slice();if(!B.includes(Ys)){var L=m||0;L>=0&&B.splice(L,0,Ys)}var D=B.indexOf(Ys);B=B.filter(function(U,q){return U!==Ys||q===D});var z=T[D],W;(x==="left"||x)&&!m?W="left":(x==="right"||x)&&m===T.length?W="right":W=z?z.fixed:null;var j=J(J(J(J(J(J({},ip,{className:"".concat(n,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),"title",l),"fixed",W),"className","".concat(n,"-row-expand-icon-cell")),"width",E),"render",function(q,A,P){var Z=c(A,P),V=a.has(Z),Y=p?p(A):!0,ee=f({prefixCls:n,expanded:V,expandable:Y,record:A,onExpand:u});return b?d.createElement("span",{onClick:function(ne){return ne.stopPropagation()}},ee):ee});return B.map(function(U){return U===Ys?j:U})}return T.filter(function(U){return U!==Ys})},[o,T,c,a,f,g]),I=d.useMemo(function(){var B=O;return t&&(B=t(B)),B.length||(B=[{render:function(){return null}}]),B},[t,O,g]),_=d.useMemo(function(){return g==="rtl"?jpe(fE(I)):fE(I)},[I,g,C]),$=d.useMemo(function(){for(var B=-1,L=_.length-1;L>=0;L-=1){var D=_[L].fixed;if(D==="left"||D===!0){B=L;break}}if(B>=0)for(var z=0;z<=B;z+=1){var W=_[z].fixed;if(W!=="left"&&W!==!0)return!0}var j=_.findIndex(function(A){var P=A.fixed;return P==="right"});if(j>=0)for(var U=j;U<_.length;U+=1){var q=_[U].fixed;if(q!=="right")return!0}return!1},[_]),k=Dpe(_,C,S),R=Oe(k,2),M=R[0],H=R[1];return[I,M,H,$]}function zpe(e,t,n){var r=$pe(e),i=r.expandIcon,o=r.expandedRowKeys,a=r.defaultExpandedRowKeys,l=r.defaultExpandAllRows,c=r.expandedRowRender,u=r.onExpand,f=r.onExpandedRowsChange,p=r.childrenColumnName,m=i||Cpe,g=p||"children",b=d.useMemo(function(){return c?"row":e.expandable&&e.internalHooks===Bm&&e.expandable.__PARENT_RENDER_ICON__||t.some(function(I){return I&&$t(I)==="object"&&I[g]})?"nest":!1},[!!c,t]),E=d.useState(function(){return a||(l?Spe(t,n,g):[])}),x=Oe(E,2),C=x[0],S=x[1],T=d.useMemo(function(){return new Set(o||C||[])},[o,C]),O=d.useCallback(function(I){var _=n(I,t.indexOf(I)),$,k=T.has(_);k?(T.delete(_),$=Qe(T)):$=[].concat(Qe(T),[_]),S($),u&&u(!k,I),f&&f($)},[n,T,t,u,f]);return[r,b,T,m,g,O]}function Wpe(e,t,n){var r=e.map(function(i,o){return p3(o,o,e,t,n)});return Uu(function(){return r},[r],function(i,o){return!Ml(i,o)})}function rj(e){var t=d.useRef(e),n=d.useState({}),r=Oe(n,2),i=r[1],o=d.useRef(null),a=d.useRef([]);function l(c){a.current.push(c);var u=Promise.resolve();o.current=u,u.then(function(){if(o.current===u){var f=a.current,p=t.current;a.current=[],f.forEach(function(m){t.current=m(t.current)}),o.current=null,p!==t.current&&i({})}})}return d.useEffect(function(){return function(){o.current=null}},[]),[t.current,l]}function Upe(e){var t=d.useRef(null),n=d.useRef();function r(){window.clearTimeout(n.current)}function i(a){t.current=a,r(),n.current=window.setTimeout(function(){t.current=null,n.current=void 0},100)}function o(){return t.current}return d.useEffect(function(){return r},[]),[i,o]}function Kpe(){var e=d.useState(-1),t=Oe(e,2),n=t[0],r=t[1],i=d.useState(-1),o=Oe(i,2),a=o[0],l=o[1],c=d.useCallback(function(u,f){r(u),l(f)},[]);return[n,a,c]}var FI=Ti()?window:null;function Vpe(e,t){var n=$t(e)==="object"?e:{},r=n.offsetHeader,i=r===void 0?0:r,o=n.offsetSummary,a=o===void 0?0:o,l=n.offsetScroll,c=l===void 0?0:l,u=n.getContainer,f=u===void 0?function(){return FI}:u,p=f()||FI,m=!!e;return d.useMemo(function(){return{isSticky:m,stickyClassName:m?"".concat(t,"-sticky-holder"):"",offsetHeader:i,offsetSummary:a,offsetScroll:c,container:p}},[m,c,i,a,t,p])}function Gpe(e,t,n){var r=d.useMemo(function(){var i=t.length,o=function(u,f,p){for(var m=[],g=0,b=u;b!==f;b+=p)m.push(g),t[b].fixed&&(g+=e[b]||0);return m},a=o(0,i,1),l=o(i-1,-1,-1).reverse();return n==="rtl"?{left:l,right:a}:{left:a,right:l}},[e,t,n]);return r}function BI(e){var t=e.className,n=e.children;return d.createElement("div",{className:t},n)}var qpe=function(t,n){var r,i,o=t.scrollBodyRef,a=t.onScroll,l=t.offsetScroll,c=t.container,u=Fi(yo,"prefixCls"),f=((r=o.current)===null||r===void 0?void 0:r.scrollWidth)||0,p=((i=o.current)===null||i===void 0?void 0:i.clientWidth)||0,m=f&&p*(p/f),g=d.useRef(),b=rj({scrollLeft:0,isHiddenScrollBar:!0}),E=Oe(b,2),x=E[0],C=E[1],S=d.useRef({delta:0,x:0}),T=d.useState(!1),O=Oe(T,2),I=O[0],_=O[1],$=d.useRef(null);d.useEffect(function(){return function(){kn.cancel($.current)}},[]);var k=function(){_(!1)},R=function(D){D.persist(),S.current.delta=D.pageX-x.scrollLeft,S.current.x=0,_(!0),D.preventDefault()},M=function(D){var z,W=D||((z=window)===null||z===void 0?void 0:z.event),j=W.buttons;if(!I||j===0){I&&_(!1);return}var U=S.current.x+D.pageX-S.current.x-S.current.delta;U<=0&&(U=0),U+m>=p&&(U=p-m),a({scrollLeft:U/p*(f+2)}),S.current.x=D.pageX},H=function(){$.current=kn(function(){if(o.current){var D=SI(o.current).top,z=D+o.current.offsetHeight,W=c===window?document.documentElement.scrollTop+window.innerHeight:SI(c).top+c.clientHeight;z-H_()<=W||D>=W-l?C(function(j){return te(te({},j),{},{isHiddenScrollBar:!0})}):C(function(j){return te(te({},j),{},{isHiddenScrollBar:!1})})}})},B=function(D){C(function(z){return te(te({},z),{},{scrollLeft:D/f*p||0})})};return d.useImperativeHandle(n,function(){return{setScrollLeft:B,checkScrollBarVisible:H}}),d.useEffect(function(){var L=og(document.body,"mouseup",k,!1),D=og(document.body,"mousemove",M,!1);return H(),function(){L.remove(),D.remove()}},[m,I]),d.useEffect(function(){var L=og(c,"scroll",H,!1),D=og(window,"resize",H,!1);return function(){L.remove(),D.remove()}},[c]),d.useEffect(function(){x.isHiddenScrollBar||C(function(L){var D=o.current;return D?te(te({},L),{},{scrollLeft:D.scrollLeft/D.scrollWidth*D.clientWidth}):L})},[x.isHiddenScrollBar]),f<=p||!m||x.isHiddenScrollBar?null:d.createElement("div",{style:{height:H_(),width:p,bottom:l},className:"".concat(u,"-sticky-scroll")},d.createElement("div",{onMouseDown:R,ref:g,className:le("".concat(u,"-sticky-scroll-bar"),J({},"".concat(u,"-sticky-scroll-bar-active"),I)),style:{width:"".concat(m,"px"),transform:"translate3d(".concat(x.scrollLeft,"px, 0, 0)")}}))};const Xpe=d.forwardRef(qpe);var ij="rc-table",Ype=[],Qpe={};function Zpe(){return"No Data"}function Jpe(e,t){var n=te({rowKey:"key",prefixCls:ij,emptyText:Zpe},e),r=n.prefixCls,i=n.className,o=n.rowClassName,a=n.style,l=n.data,c=n.rowKey,u=n.scroll,f=n.tableLayout,p=n.direction,m=n.title,g=n.footer,b=n.summary,E=n.caption,x=n.id,C=n.showHeader,S=n.components,T=n.emptyText,O=n.onRow,I=n.onHeaderRow,_=n.onScroll,$=n.internalHooks,k=n.transformColumns,R=n.internalRefs,M=n.tailor,H=n.getContainerWidth,B=n.sticky,L=n.rowHoverable,D=L===void 0?!0:L,z=l||Ype,W=!!z.length,j=$===Bm,U=d.useCallback(function(rn,Yt){return co(S,rn)||Yt},[S]),q=d.useMemo(function(){return typeof c=="function"?c:function(rn){var Yt=rn&&rn[c];return Yt}},[c]),A=U(["body"]),P=Kpe(),Z=Oe(P,3),V=Z[0],Y=Z[1],ee=Z[2],ue=zpe(n,z,q),ne=Oe(ue,6),se=ne[0],me=ne[1],ye=ne[2],de=ne[3],ce=ne[4],oe=ne[5],pe=u==null?void 0:u.x,ve=d.useState(0),Te=Oe(ve,2),Ge=Te[0],je=Te[1],Je=Hpe(te(te(te({},n),se),{},{expandable:!!se.expandedRowRender,columnTitle:se.columnTitle,expandedKeys:ye,getRowKey:q,onTriggerExpand:oe,expandIcon:de,expandIconColumnIndex:se.expandIconColumnIndex,direction:p,scrollWidth:j&&M&&typeof pe=="number"?pe:null,clientWidth:Ge}),j?k:null),Se=Oe(Je,4),$e=Se[0],qe=Se[1],Le=Se[2],Fe=Se[3],Ke=Le??pe,Ve=d.useMemo(function(){return{columns:$e,flattenColumns:qe}},[$e,qe]),Ce=d.useRef(),Pe=d.useRef(),We=d.useRef(),Ze=d.useRef();d.useImperativeHandle(t,function(){return{nativeElement:Ce.current,scrollTo:function(Yt){var Nr;if(We.current instanceof HTMLElement){var nr=Yt.index,rr=Yt.top,ai=Yt.key;if(lpe(rr)){var vi;(vi=We.current)===null||vi===void 0||vi.scrollTo({top:rr})}else{var yi,Fo=ai??q(z[nr]);(yi=We.current.querySelector('[data-row-key="'.concat(Fo,'"]')))===null||yi===void 0||yi.scrollIntoView()}}else(Nr=We.current)!==null&&Nr!==void 0&&Nr.scrollTo&&We.current.scrollTo(Yt)}}});var ut=d.useRef(),Be=d.useState(!1),ot=Oe(Be,2),re=ot[0],Ie=ot[1],Re=d.useState(!1),Ae=Oe(Re,2),Ye=Ae[0],mt=Ae[1],Nt=rj(new Map),qt=Oe(Nt,2),Ft=qt[0],Kt=qt[1],Qt=r2(qe),Zt=Qt.map(function(rn){return Ft.get(rn)}),Mt=d.useMemo(function(){return Zt},[Zt.join("_")]),St=Gpe(Mt,qe,p),yt=u&&dE(u.y),lt=u&&dE(Ke)||!!se.fixed,fe=lt&&qe.some(function(rn){var Yt=rn.fixed;return Yt}),xe=d.useRef(),ge=Vpe(B,r),Ne=ge.isSticky,Xe=ge.offsetHeader,nt=ge.offsetSummary,pt=ge.offsetScroll,st=ge.stickyClassName,rt=ge.container,He=d.useMemo(function(){return b==null?void 0:b(z)},[b,z]),Ue=(yt||Ne)&&d.isValidElement(He)&&He.type===i2&&He.props.fixed,ft,Ct,zt;yt&&(Ct={overflowY:W?"scroll":"auto",maxHeight:u.y}),lt&&(ft={overflowX:"auto"},yt||(Ct={overflowY:"hidden"}),zt={width:Ke===!0?"auto":Ke,minWidth:"100%"});var Tt=d.useCallback(function(rn,Yt){Tm(Ce.current)&&Kt(function(Nr){if(Nr.get(rn)!==Yt){var nr=new Map(Nr);return nr.set(rn,Yt),nr}return Nr})},[]),Pt=Upe(),vt=Oe(Pt,2),gt=vt[0],tt=vt[1];function Xt(rn,Yt){Yt&&(typeof Yt=="function"?Yt(rn):Yt.scrollLeft!==rn&&(Yt.scrollLeft=rn,Yt.scrollLeft!==rn&&setTimeout(function(){Yt.scrollLeft=rn},0)))}var Jt=Hn(function(rn){var Yt=rn.currentTarget,Nr=rn.scrollLeft,nr=p==="rtl",rr=typeof Nr=="number"?Nr:Yt.scrollLeft,ai=Yt||Qpe;if(!tt()||tt()===ai){var vi;gt(ai),Xt(rr,Pe.current),Xt(rr,We.current),Xt(rr,ut.current),Xt(rr,(vi=xe.current)===null||vi===void 0?void 0:vi.setScrollLeft)}var yi=Yt||Pe.current;if(yi){var Fo=j&&M&&typeof Ke=="number"?Ke:yi.scrollWidth,hl=yi.clientWidth;if(Fo===hl){Ie(!1),mt(!1);return}nr?(Ie(-rr<Fo-hl),mt(-rr>0)):(Ie(rr>0),mt(rr<Fo-hl))}}),En=Hn(function(rn){Jt(rn),_==null||_(rn)}),Wt=function(){if(lt&&We.current){var Yt;Jt({currentTarget:Qx(We.current),scrollLeft:(Yt=We.current)===null||Yt===void 0?void 0:Yt.scrollLeft})}else Ie(!1),mt(!1)},In=function(Yt){var Nr,nr=Yt.width;(Nr=xe.current)===null||Nr===void 0||Nr.checkScrollBarVisible();var rr=Ce.current?Ce.current.offsetWidth:nr;j&&H&&Ce.current&&(rr=H(Ce.current,rr)||rr),rr!==Ge&&(Wt(),je(rr))},qn=d.useRef(!1);d.useEffect(function(){qn.current&&Wt()},[lt,l,$e.length]),d.useEffect(function(){qn.current=!0},[]);var vr=d.useState(0),ke=Oe(vr,2),dt=ke[0],cn=ke[1],$n=d.useState(!0),pn=Oe($n,2),yr=pn[0],Ir=pn[1];d.useEffect(function(){(!M||!j)&&(We.current instanceof Element?cn(BS(We.current).width):cn(BS(Ze.current).width)),Ir(YS("position","sticky"))},[]),d.useEffect(function(){j&&R&&(R.body.current=We.current)});var Bt=d.useCallback(function(rn){return d.createElement(d.Fragment,null,d.createElement(LI,rn),Ue==="top"&&d.createElement(ag,rn,He))},[Ue,He]),bo=d.useCallback(function(rn){return d.createElement(ag,rn,He)},[He]),ji=U(["table"],"table"),cr=d.useMemo(function(){return f||(fe?Ke==="max-content"?"auto":"fixed":yt||Ne||qe.some(function(rn){var Yt=rn.ellipsis;return Yt})?"fixed":"auto")},[yt,fe,qe,f,Ne]),br,Dt={colWidths:Mt,columCount:qe.length,stickyOffsets:St,onHeaderRow:I,fixHeader:yt,scroll:u},kt=d.useMemo(function(){return W?null:typeof T=="function"?T():T},[W,T]),an=d.createElement(Ope,{data:z,measureColumnWidth:yt||lt||Ne}),Cn=d.createElement(tj,{colWidths:qe.map(function(rn){var Yt=rn.width;return Yt}),columns:qe}),fn=E!=null?d.createElement("caption",{className:"".concat(r,"-caption")},E):void 0,jn=_i(n,{data:!0}),Cr=_i(n,{aria:!0});if(yt||Ne){var $r;typeof A=="function"?($r=A(z,{scrollbarSize:dt,ref:We,onScroll:Jt}),Dt.colWidths=qe.map(function(rn,Yt){var Nr=rn.width,nr=Yt===qe.length-1?Nr-dt:Nr;return typeof nr=="number"&&!Number.isNaN(nr)?nr:0})):$r=d.createElement("div",{style:te(te({},ft),Ct),onScroll:En,ref:We,className:le("".concat(r,"-body"))},d.createElement(ji,ze({style:te(te({},zt),{},{tableLayout:cr})},Cr),fn,Cn,an,!Ue&&He&&d.createElement(ag,{stickyOffsets:St,flattenColumns:qe},He)));var Vr=te(te(te({noData:!z.length,maxContentScroll:lt&&Ke==="max-content"},Dt),Ve),{},{direction:p,stickyClassName:st,onScroll:Jt});br=d.createElement(d.Fragment,null,C!==!1&&d.createElement(PI,ze({},Vr,{stickyTopOffset:Xe,className:"".concat(r,"-header"),ref:Pe}),Bt),$r,Ue&&Ue!=="top"&&d.createElement(PI,ze({},Vr,{stickyBottomOffset:nt,className:"".concat(r,"-summary"),ref:ut}),bo),Ne&&We.current&&We.current instanceof Element&&d.createElement(Xpe,{ref:xe,offsetScroll:pt,scrollBodyRef:We,onScroll:Jt,container:rt}))}else br=d.createElement("div",{style:te(te({},ft),Ct),className:le("".concat(r,"-content")),onScroll:Jt,ref:We},d.createElement(ji,ze({style:te(te({},zt),{},{tableLayout:cr})},Cr),fn,Cn,C!==!1&&d.createElement(LI,ze({},Dt,Ve)),an,He&&d.createElement(ag,{stickyOffsets:St,flattenColumns:qe},He)));var Br=d.createElement("div",ze({className:le(r,i,J(J(J(J(J(J(J(J(J(J({},"".concat(r,"-rtl"),p==="rtl"),"".concat(r,"-ping-left"),re),"".concat(r,"-ping-right"),Ye),"".concat(r,"-layout-fixed"),f==="fixed"),"".concat(r,"-fixed-header"),yt),"".concat(r,"-fixed-column"),fe),"".concat(r,"-fixed-column-gapped"),fe&&Fe),"".concat(r,"-scroll-horizontal"),lt),"".concat(r,"-has-fix-left"),qe[0]&&qe[0].fixed),"".concat(r,"-has-fix-right"),qe[qe.length-1]&&qe[qe.length-1].fixed==="right")),style:a,id:x,ref:Ce},jn),m&&d.createElement(BI,{className:"".concat(r,"-title")},m(z)),d.createElement("div",{ref:Ze,className:"".concat(r,"-container")},br),g&&d.createElement(BI,{className:"".concat(r,"-footer")},g(z)));lt&&(Br=d.createElement(Yi,{onResize:In},Br));var Pr=Wpe(qe,St,p),Hi=d.useMemo(function(){return{scrollX:Ke,prefixCls:r,getComponent:U,scrollbarSize:dt,direction:p,fixedInfoList:Pr,isSticky:Ne,supportSticky:yr,componentWidth:Ge,fixHeader:yt,fixColumn:fe,horizonScroll:lt,tableLayout:cr,rowClassName:o,expandedRowClassName:se.expandedRowClassName,expandIcon:de,expandableType:me,expandRowByClick:se.expandRowByClick,expandedRowRender:se.expandedRowRender,onTriggerExpand:oe,expandIconColumnIndex:se.expandIconColumnIndex,indentSize:se.indentSize,allColumnsFixedLeft:qe.every(function(rn){return rn.fixed==="left"}),emptyNode:kt,columns:$e,flattenColumns:qe,onColumnResize:Tt,hoverStartRow:V,hoverEndRow:Y,onHover:ee,rowExpandable:se.rowExpandable,onRow:O,getRowKey:q,expandedKeys:ye,childrenColumnName:ce,rowHoverable:D}},[Ke,r,U,dt,p,Pr,Ne,yr,Ge,yt,fe,lt,cr,o,se.expandedRowClassName,de,me,se.expandRowByClick,se.expandedRowRender,oe,se.expandIconColumnIndex,se.indentSize,kt,$e,qe,Tt,V,Y,ee,se.rowExpandable,O,q,ye,ce,D]);return d.createElement(yo.Provider,{value:Hi},Br)}var eme=d.forwardRef(Jpe);function oj(e){return KB(eme,e)}var v1=oj();v1.EXPAND_COLUMN=Ys;v1.INTERNAL_HOOKS=Bm;v1.Column=ype;v1.ColumnGroup=bpe;v1.Summary=qB;var g3=f3(null),aj=f3(null);function tme(e,t,n){var r=t||1;return n[e+r]-(n[e]||0)}function nme(e){var t=e.rowInfo,n=e.column,r=e.colIndex,i=e.indent,o=e.index,a=e.component,l=e.renderIndex,c=e.record,u=e.style,f=e.className,p=e.inverse,m=e.getHeight,g=n.render,b=n.dataIndex,E=n.className,x=n.width,C=Fi(aj,["columnsOffset"]),S=C.columnsOffset,T=ej(t,n,r,i,o),O=T.key,I=T.fixedInfo,_=T.appendCellNode,$=T.additionalCellProps,k=$.style,R=$.colSpan,M=R===void 0?1:R,H=$.rowSpan,B=H===void 0?1:H,L=r-1,D=tme(L,M,S),z=M>1?x-D:0,W=te(te(te({},k),u),{},{flex:"0 0 ".concat(D,"px"),width:"".concat(D,"px"),marginRight:z,pointerEvents:"auto"}),j=d.useMemo(function(){return p?B<=1:M===0||B===0||B>1},[B,M,p]);j?W.visibility="hidden":p&&(W.height=m==null?void 0:m(B));var U=j?function(){return null}:g,q={};return(B===0||M===0)&&(q.rowSpan=1,q.colSpan=1),d.createElement(g1,ze({className:le(E,f),ellipsis:n.ellipsis,align:n.align,scope:n.rowScope,component:a,prefixCls:t.prefixCls,key:O,record:c,index:o,renderIndex:l,dataIndex:b,render:U,shouldCellUpdate:n.shouldCellUpdate},I,{appendNode:_,additionalProps:te(te({},$),{},{style:W},q)}))}var rme=["data","index","className","rowKey","style","extra","getHeight"],ime=d.forwardRef(function(e,t){var n=e.data,r=e.index,i=e.className,o=e.rowKey,a=e.style,l=e.extra,c=e.getHeight,u=Gt(e,rme),f=n.record,p=n.indent,m=n.index,g=Fi(yo,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),b=g.scrollX,E=g.flattenColumns,x=g.prefixCls,C=g.fixColumn,S=g.componentWidth,T=Fi(g3,["getComponent"]),O=T.getComponent,I=QB(f,o,r,p),_=O(["body","row"],"div"),$=O(["body","cell"],"div"),k=I.rowSupportExpand,R=I.expanded,M=I.rowProps,H=I.expandedRowRender,B=I.expandedRowClassName,L;if(k&&R){var D=H(f,r,p+1,R),z=JB(B,f,r,p),W={};C&&(W={style:J({},"--virtual-width","".concat(S,"px"))});var j="".concat(x,"-expanded-row-cell");L=d.createElement(_,{className:le("".concat(x,"-expanded-row"),"".concat(x,"-expanded-row-level-").concat(p+1),z)},d.createElement(g1,{component:$,prefixCls:x,className:le(j,J({},"".concat(j,"-fixed"),C)),additionalProps:W},D))}var U=te(te({},a),{},{width:b});l&&(U.position="absolute",U.pointerEvents="none");var q=d.createElement(_,ze({},M,u,{"data-row-key":o,ref:k?null:t,className:le(i,"".concat(x,"-row"),M==null?void 0:M.className,J({},"".concat(x,"-row-extra"),l)),style:te(te({},U),M==null?void 0:M.style)}),E.map(function(A,P){return d.createElement(nme,{key:P,component:$,rowInfo:I,column:A,colIndex:P,indent:p,index:r,renderIndex:m,record:f,inverse:l,getHeight:c})}));return k?d.createElement("div",{ref:t},q,L):q}),jI=m1(ime),ome=d.forwardRef(function(e,t){var n=e.data,r=e.onScroll,i=Fi(yo,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","scrollX","direction"]),o=i.flattenColumns,a=i.onColumnResize,l=i.getRowKey,c=i.expandedKeys,u=i.prefixCls,f=i.childrenColumnName,p=i.scrollX,m=i.direction,g=Fi(g3),b=g.sticky,E=g.scrollY,x=g.listItemHeight,C=g.getComponent,S=g.onScroll,T=d.useRef(),O=YB(n,f,c,l),I=d.useMemo(function(){var L=0;return o.map(function(D){var z=D.width,W=D.key;return L+=z,[W,z,L]})},[o]),_=d.useMemo(function(){return I.map(function(L){return L[2]})},[I]);d.useEffect(function(){I.forEach(function(L){var D=Oe(L,2),z=D[0],W=D[1];a(z,W)})},[I]),d.useImperativeHandle(t,function(){var L,D={scrollTo:function(W){var j;(j=T.current)===null||j===void 0||j.scrollTo(W)},nativeElement:(L=T.current)===null||L===void 0?void 0:L.nativeElement};return Object.defineProperty(D,"scrollLeft",{get:function(){var W;return((W=T.current)===null||W===void 0?void 0:W.getScrollInfo().x)||0},set:function(W){var j;(j=T.current)===null||j===void 0||j.scrollTo({left:W})}}),D});var $=function(D,z){var W,j=(W=O[z])===null||W===void 0?void 0:W.record,U=D.onCell;if(U){var q,A=U(j,z);return(q=A==null?void 0:A.rowSpan)!==null&&q!==void 0?q:1}return 1},k=function(D){var z=D.start,W=D.end,j=D.getSize,U=D.offsetY;if(W<0)return null;for(var q=o.filter(function(de){return $(de,z)===0}),A=z,P=function(ce){if(q=q.filter(function(oe){return $(oe,ce)===0}),!q.length)return A=ce,1},Z=z;Z>=0&&!P(Z);Z-=1);for(var V=o.filter(function(de){return $(de,W)!==1}),Y=W,ee=function(ce){if(V=V.filter(function(oe){return $(oe,ce)!==1}),!V.length)return Y=Math.max(ce-1,W),1},ue=W;ue<O.length&&!ee(ue);ue+=1);for(var ne=[],se=function(ce){var oe=O[ce];if(!oe)return 1;o.some(function(pe){return $(pe,ce)>1})&&ne.push(ce)},me=A;me<=Y;me+=1)se(me);var ye=ne.map(function(de){var ce=O[de],oe=l(ce.record,de),pe=function(Ge){var je=de+Ge-1,Je=l(O[je].record,je),Se=j(oe,Je);return Se.bottom-Se.top},ve=j(oe);return d.createElement(jI,{key:de,data:ce,rowKey:oe,index:de,style:{top:-U+ve.top},extra:!0,getHeight:pe})});return ye},R=d.useMemo(function(){return{columnsOffset:_}},[_]),M="".concat(u,"-tbody"),H=C(["body","wrapper"]),B={};return b&&(B.position="sticky",B.bottom=0,$t(b)==="object"&&b.offsetScroll&&(B.bottom=b.offsetScroll)),d.createElement(aj.Provider,{value:R},d.createElement(jb,{fullHeight:!1,ref:T,prefixCls:"".concat(M,"-virtual"),styles:{horizontalScrollBar:B},className:M,height:E,itemHeight:x||24,data:O,itemKey:function(D){return l(D.record)},component:H,scrollWidth:p,direction:m,onVirtualScroll:function(D){var z,W=D.x;r({currentTarget:(z=T.current)===null||z===void 0?void 0:z.nativeElement,scrollLeft:W})},onScroll:S,extraRender:k},function(L,D,z){var W=l(L.record,D);return d.createElement(jI,{data:L,rowKey:W,index:D,style:z.style})}))}),ame=m1(ome),lme=function(t,n){var r=n.ref,i=n.onScroll;return d.createElement(ame,{ref:r,data:t,onScroll:i})};function sme(e,t){var n=e.data,r=e.columns,i=e.scroll,o=e.sticky,a=e.prefixCls,l=a===void 0?ij:a,c=e.className,u=e.listItemHeight,f=e.components,p=e.onScroll,m=i||{},g=m.x,b=m.y;typeof g!="number"&&(g=1),typeof b!="number"&&(b=500);var E=Hn(function(S,T){return co(f,S)||T}),x=Hn(p),C=d.useMemo(function(){return{sticky:o,scrollY:b,listItemHeight:u,getComponent:E,onScroll:x}},[o,b,u,E,x]);return d.createElement(g3.Provider,{value:C},d.createElement(v1,ze({},e,{className:le(c,"".concat(l,"-virtual")),scroll:te(te({},i),{},{x:g}),components:te(te({},f),{},{body:n!=null&&n.length?lme:void 0}),columns:r,internalHooks:Bm,tailor:!0,ref:t})))}var cme=d.forwardRef(sme);function lj(e){return KB(cme,e)}lj();const ume=e=>null,dme=e=>null;var v3=d.createContext(null),fme=function(t){for(var n=t.prefixCls,r=t.level,i=t.isStart,o=t.isEnd,a="".concat(n,"-indent-unit"),l=[],c=0;c<r;c+=1)l.push(d.createElement("span",{key:c,className:le(a,J(J({},"".concat(a,"-start"),i[c]),"".concat(a,"-end"),o[c]))}));return d.createElement("span",{"aria-hidden":"true",className:"".concat(n,"-indent")},l)};const hme=d.memo(fme);var pme=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],HI="open",zI="close",mme="---",gme=function(e){la(n,e);var t=sa(n);function n(){var r;_r(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),J(at(r),"state",{dragNodeHighlight:!1}),J(at(r),"selectHandle",void 0),J(at(r),"cacheIndent",void 0),J(at(r),"onSelectorClick",function(l){var c=r.props.context.onNodeClick;c(l,Yr(r.props)),r.isSelectable()?r.onSelect(l):r.onCheck(l)}),J(at(r),"onSelectorDoubleClick",function(l){var c=r.props.context.onNodeDoubleClick;c(l,Yr(r.props))}),J(at(r),"onSelect",function(l){if(!r.isDisabled()){var c=r.props.context.onNodeSelect;c(l,Yr(r.props))}}),J(at(r),"onCheck",function(l){if(!r.isDisabled()){var c=r.props,u=c.disableCheckbox,f=c.checked,p=r.props.context.onNodeCheck;if(!(!r.isCheckable()||u)){var m=!f;p(l,Yr(r.props),m)}}}),J(at(r),"onMouseEnter",function(l){var c=r.props.context.onNodeMouseEnter;c(l,Yr(r.props))}),J(at(r),"onMouseLeave",function(l){var c=r.props.context.onNodeMouseLeave;c(l,Yr(r.props))}),J(at(r),"onContextMenu",function(l){var c=r.props.context.onNodeContextMenu;c(l,Yr(r.props))}),J(at(r),"onDragStart",function(l){var c=r.props.context.onNodeDragStart;l.stopPropagation(),r.setState({dragNodeHighlight:!0}),c(l,at(r));try{l.dataTransfer.setData("text/plain","")}catch{}}),J(at(r),"onDragEnter",function(l){var c=r.props.context.onNodeDragEnter;l.preventDefault(),l.stopPropagation(),c(l,at(r))}),J(at(r),"onDragOver",function(l){var c=r.props.context.onNodeDragOver;l.preventDefault(),l.stopPropagation(),c(l,at(r))}),J(at(r),"onDragLeave",function(l){var c=r.props.context.onNodeDragLeave;l.stopPropagation(),c(l,at(r))}),J(at(r),"onDragEnd",function(l){var c=r.props.context.onNodeDragEnd;l.stopPropagation(),r.setState({dragNodeHighlight:!1}),c(l,at(r))}),J(at(r),"onDrop",function(l){var c=r.props.context.onNodeDrop;l.preventDefault(),l.stopPropagation(),r.setState({dragNodeHighlight:!1}),c(l,at(r))}),J(at(r),"onExpand",function(l){var c=r.props,u=c.loading,f=c.context.onNodeExpand;u||f(l,Yr(r.props))}),J(at(r),"setSelectHandle",function(l){r.selectHandle=l}),J(at(r),"getNodeState",function(){var l=r.props.expanded;return r.isLeaf()?null:l?HI:zI}),J(at(r),"hasChildren",function(){var l=r.props.eventKey,c=r.props.context.keyEntities,u=Oo(c,l)||{},f=u.children;return!!(f||[]).length}),J(at(r),"isLeaf",function(){var l=r.props,c=l.isLeaf,u=l.loaded,f=r.props.context.loadData,p=r.hasChildren();return c===!1?!1:c||!f&&!p||f&&u&&!p}),J(at(r),"isDisabled",function(){var l=r.props.disabled,c=r.props.context.disabled;return!!(c||l)}),J(at(r),"isCheckable",function(){var l=r.props.checkable,c=r.props.context.checkable;return!c||l===!1?!1:c}),J(at(r),"syncLoadData",function(l){var c=l.expanded,u=l.loading,f=l.loaded,p=r.props.context,m=p.loadData,g=p.onNodeLoad;u||m&&c&&!r.isLeaf()&&!f&&g(Yr(r.props))}),J(at(r),"isDraggable",function(){var l=r.props,c=l.data,u=l.context.draggable;return!!(u&&(!u.nodeDraggable||u.nodeDraggable(c)))}),J(at(r),"renderDragHandler",function(){var l=r.props.context,c=l.draggable,u=l.prefixCls;return c!=null&&c.icon?d.createElement("span",{className:"".concat(u,"-draggable-icon")},c.icon):null}),J(at(r),"renderSwitcherIconDom",function(l){var c=r.props.switcherIcon,u=r.props.context.switcherIcon,f=c||u;return typeof f=="function"?f(te(te({},r.props),{},{isLeaf:l})):f}),J(at(r),"renderSwitcher",function(){var l=r.props.expanded,c=r.props.context.prefixCls;if(r.isLeaf()){var u=r.renderSwitcherIconDom(!0);return u!==!1?d.createElement("span",{className:le("".concat(c,"-switcher"),"".concat(c,"-switcher-noop"))},u):null}var f=le("".concat(c,"-switcher"),"".concat(c,"-switcher_").concat(l?HI:zI)),p=r.renderSwitcherIconDom(!1);return p!==!1?d.createElement("span",{onClick:r.onExpand,className:f},p):null}),J(at(r),"renderCheckbox",function(){var l=r.props,c=l.checked,u=l.halfChecked,f=l.disableCheckbox,p=r.props.context.prefixCls,m=r.isDisabled(),g=r.isCheckable();if(!g)return null;var b=typeof g!="boolean"?g:null;return d.createElement("span",{className:le("".concat(p,"-checkbox"),c&&"".concat(p,"-checkbox-checked"),!c&&u&&"".concat(p,"-checkbox-indeterminate"),(m||f)&&"".concat(p,"-checkbox-disabled")),onClick:r.onCheck},b)}),J(at(r),"renderIcon",function(){var l=r.props.loading,c=r.props.context.prefixCls;return d.createElement("span",{className:le("".concat(c,"-iconEle"),"".concat(c,"-icon__").concat(r.getNodeState()||"docu"),l&&"".concat(c,"-icon_loading"))})}),J(at(r),"renderSelector",function(){var l=r.state.dragNodeHighlight,c=r.props,u=c.title,f=u===void 0?mme:u,p=c.selected,m=c.icon,g=c.loading,b=c.data,E=r.props.context,x=E.prefixCls,C=E.showIcon,S=E.icon,T=E.loadData,O=E.titleRender,I=r.isDisabled(),_="".concat(x,"-node-content-wrapper"),$;if(C){var k=m||S;$=k?d.createElement("span",{className:le("".concat(x,"-iconEle"),"".concat(x,"-icon__customize"))},typeof k=="function"?k(r.props):k):r.renderIcon()}else T&&g&&($=r.renderIcon());var R;typeof f=="function"?R=f(b):O?R=O(b):R=f;var M=d.createElement("span",{className:"".concat(x,"-title")},R);return d.createElement("span",{ref:r.setSelectHandle,title:typeof f=="string"?f:"",className:le("".concat(_),"".concat(_,"-").concat(r.getNodeState()||"normal"),!I&&(p||l)&&"".concat(x,"-node-selected")),onMouseEnter:r.onMouseEnter,onMouseLeave:r.onMouseLeave,onContextMenu:r.onContextMenu,onClick:r.onSelectorClick,onDoubleClick:r.onSelectorDoubleClick},$,M,r.renderDropIndicator())}),J(at(r),"renderDropIndicator",function(){var l=r.props,c=l.disabled,u=l.eventKey,f=r.props.context,p=f.draggable,m=f.dropLevelOffset,g=f.dropPosition,b=f.prefixCls,E=f.indent,x=f.dropIndicatorRender,C=f.dragOverNodeKey,S=f.direction,T=!!p,O=!c&&T&&C===u,I=E??r.cacheIndent;return r.cacheIndent=E,O?x({dropPosition:g,dropLevelOffset:m,indent:I,prefixCls:b,direction:S}):null}),r}return Or(n,[{key:"componentDidMount",value:function(){this.syncLoadData(this.props)}},{key:"componentDidUpdate",value:function(){this.syncLoadData(this.props)}},{key:"isSelectable",value:function(){var i=this.props.selectable,o=this.props.context.selectable;return typeof i=="boolean"?i:o}},{key:"render",value:function(){var i,o=this.props,a=o.eventKey,l=o.className,c=o.style,u=o.dragOver,f=o.dragOverGapTop,p=o.dragOverGapBottom,m=o.isLeaf,g=o.isStart,b=o.isEnd,E=o.expanded,x=o.selected,C=o.checked,S=o.halfChecked,T=o.loading,O=o.domRef,I=o.active;o.data;var _=o.onMouseMove,$=o.selectable,k=Gt(o,pme),R=this.props.context,M=R.prefixCls,H=R.filterTreeNode,B=R.keyEntities,L=R.dropContainerKey,D=R.dropTargetKey,z=R.draggingNodeKey,W=this.isDisabled(),j=_i(k,{aria:!0,data:!0}),U=Oo(B,a)||{},q=U.level,A=b[b.length-1],P=this.isDraggable(),Z=!W&&P,V=z===a,Y=$!==void 0?{"aria-selected":!!$}:void 0;return d.createElement("div",ze({ref:O,className:le(l,"".concat(M,"-treenode"),(i={},J(J(J(J(J(J(J(J(J(J(i,"".concat(M,"-treenode-disabled"),W),"".concat(M,"-treenode-switcher-").concat(E?"open":"close"),!m),"".concat(M,"-treenode-checkbox-checked"),C),"".concat(M,"-treenode-checkbox-indeterminate"),S),"".concat(M,"-treenode-selected"),x),"".concat(M,"-treenode-loading"),T),"".concat(M,"-treenode-active"),I),"".concat(M,"-treenode-leaf-last"),A),"".concat(M,"-treenode-draggable"),P),"dragging",V),J(J(J(J(J(J(i,"drop-target",D===a),"drop-container",L===a),"drag-over",!W&&u),"drag-over-gap-top",!W&&f),"drag-over-gap-bottom",!W&&p),"filter-node",H&&H(Yr(this.props))))),style:c,draggable:Z,"aria-grabbed":V,onDragStart:Z?this.onDragStart:void 0,onDragEnter:P?this.onDragEnter:void 0,onDragOver:P?this.onDragOver:void 0,onDragLeave:P?this.onDragLeave:void 0,onDrop:P?this.onDrop:void 0,onDragEnd:P?this.onDragEnd:void 0,onMouseMove:_},Y,j),d.createElement(hme,{prefixCls:M,level:q,isStart:g,isEnd:b}),this.renderDragHandler(),this.renderSwitcher(),this.renderCheckbox(),this.renderSelector())}}]),n}(d.Component),Uf=function(t){return d.createElement(v3.Consumer,null,function(n){return d.createElement(gme,ze({},t,{context:n}))})};Uf.displayName="TreeNode";Uf.isTreeNode=1;function bl(e,t){if(!e)return[];var n=e.slice(),r=n.indexOf(t);return r>=0&&n.splice(r,1),n}function Jl(e,t){var n=(e||[]).slice();return n.indexOf(t)===-1&&n.push(t),n}function y3(e){return e.split("-")}function vme(e,t){var n=[],r=Oo(t,e);function i(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];o.forEach(function(a){var l=a.key,c=a.children;n.push(l),i(c)})}return i(r.children),n}function yme(e){if(e.parent){var t=y3(e.pos);return Number(t[t.length-1])===e.parent.children.length-1}return!1}function bme(e){var t=y3(e.pos);return Number(t[t.length-1])===0}function WI(e,t,n,r,i,o,a,l,c,u){var f,p=e.clientX,m=e.clientY,g=e.target.getBoundingClientRect(),b=g.top,E=g.height,x=(u==="rtl"?-1:1)*(((i==null?void 0:i.x)||0)-p),C=(x-12)/r,S=c.filter(function(W){var j;return(j=l[W])===null||j===void 0||(j=j.children)===null||j===void 0?void 0:j.length}),T=Oo(l,n.props.eventKey);if(m<b+E/2){var O=a.findIndex(function(W){return W.key===T.key}),I=O<=0?0:O-1,_=a[I].key;T=Oo(l,_)}var $=T.key,k=T,R=T.key,M=0,H=0;if(!S.includes($))for(var B=0;B<C&&yme(T);B+=1)T=T.parent,H+=1;var L=t.props.data,D=T.node,z=!0;return bme(T)&&T.level===0&&m<b+E/2&&o({dragNode:L,dropNode:D,dropPosition:-1})&&T.key===n.props.eventKey?M=-1:(k.children||[]).length&&S.includes(R)?o({dragNode:L,dropNode:D,dropPosition:0})?M=0:z=!1:H===0?C>-1.5?o({dragNode:L,dropNode:D,dropPosition:1})?M=1:z=!1:o({dragNode:L,dropNode:D,dropPosition:0})?M=0:o({dragNode:L,dropNode:D,dropPosition:1})?M=1:z=!1:o({dragNode:L,dropNode:D,dropPosition:1})?M=1:z=!1,{dropPosition:M,dropLevelOffset:H,dropTargetKey:T.key,dropTargetPos:T.pos,dragOverNodeKey:R,dropContainerKey:M===0?null:((f=T.parent)===null||f===void 0?void 0:f.key)||null,dropAllowed:z}}function UI(e,t){if(e){var n=t.multiple;return n?e.slice():e.length?[e[0]]:e}}function V4(e){if(!e)return null;var t;if(Array.isArray(e))t={checkedKeys:e,halfCheckedKeys:void 0};else if($t(e)==="object")t={checkedKeys:e.checked||void 0,halfCheckedKeys:e.halfChecked||void 0};else return gr(!1,"`checkedKeys` is not an array or an object"),null;return t}function hE(e,t){var n=new Set;function r(i){if(!n.has(i)){var o=Oo(t,i);if(o){n.add(i);var a=o.parent,l=o.node;l.disabled||a&&r(a.key)}}}return(e||[]).forEach(function(i){r(i)}),Qe(n)}function Cme(e){const[t,n]=d.useState(null);return[d.useCallback((o,a,l)=>{const c=t??o,u=Math.min(c||0,o),f=Math.max(c||0,o),p=a.slice(u,f+1).map(b=>e(b)),m=p.some(b=>!l.has(b)),g=[];return p.forEach(b=>{m?(l.has(b)||g.push(b),l.add(b)):(l.delete(b),g.push(b))}),n(m?f:null),g},[t]),o=>{n(o)}]}const Us={},pE="SELECT_ALL",mE="SELECT_INVERT",gE="SELECT_NONE",KI=[],sj=(e,t)=>{let n=[];return(t||[]).forEach(r=>{n.push(r),r&&typeof r=="object"&&e in r&&(n=[].concat(Qe(n),Qe(sj(e,r[e]))))}),n},Sme=(e,t)=>{const{preserveSelectedRowKeys:n,selectedRowKeys:r,defaultSelectedRowKeys:i,getCheckboxProps:o,onChange:a,onSelect:l,onSelectAll:c,onSelectInvert:u,onSelectNone:f,onSelectMultiple:p,columnWidth:m,type:g,selections:b,fixed:E,renderCell:x,hideSelectAll:C,checkStrictly:S=!0}=t||{},{prefixCls:T,data:O,pageData:I,getRecordByKey:_,getRowKey:$,expandType:k,childrenColumnName:R,locale:M,getPopupContainer:H}=e,B=Mc(),[L,D]=Cme(de=>de),[z,W]=Tr(r||i||KI,{value:r}),j=d.useRef(new Map),U=d.useCallback(de=>{if(n){const ce=new Map;de.forEach(oe=>{let pe=_(oe);!pe&&j.current.has(oe)&&(pe=j.current.get(oe)),ce.set(oe,pe)}),j.current=ce}},[_,n]);d.useEffect(()=>{U(z)},[z]);const q=d.useMemo(()=>sj(R,I),[R,I]),{keyEntities:A}=d.useMemo(()=>{if(S)return{keyEntities:null};let de=O;if(n){const ce=new Set(q.map((pe,ve)=>$(pe,ve))),oe=Array.from(j.current).reduce((pe,ve)=>{let[Te,Ge]=ve;return ce.has(Te)?pe:pe.concat(Ge)},[]);de=[].concat(Qe(de),Qe(oe))}return l3(de,{externalGetKey:$,childrenPropName:R})},[O,$,S,R,n,q]),P=d.useMemo(()=>{const de=new Map;return q.forEach((ce,oe)=>{const pe=$(ce,oe),ve=(o?o(ce):null)||{};de.set(pe,ve)}),de},[q,$,o]),Z=d.useCallback(de=>{var ce;return!!(!((ce=P.get($(de)))===null||ce===void 0)&&ce.disabled)},[P,$]),[V,Y]=d.useMemo(()=>{if(S)return[z||[],[]];const{checkedKeys:de,halfCheckedKeys:ce}=xf(z,!0,A,Z);return[de||[],ce]},[z,S,A,Z]),ee=d.useMemo(()=>{const de=g==="radio"?V.slice(0,1):V;return new Set(de)},[V,g]),ue=d.useMemo(()=>g==="radio"?new Set:new Set(Y),[Y,g]);d.useEffect(()=>{t||W(KI)},[!!t]);const ne=d.useCallback((de,ce)=>{let oe,pe;U(de),n?(oe=de,pe=de.map(ve=>j.current.get(ve))):(oe=[],pe=[],de.forEach(ve=>{const Te=_(ve);Te!==void 0&&(oe.push(ve),pe.push(Te))})),W(oe),a==null||a(oe,pe,{type:ce})},[W,_,a,n]),se=d.useCallback((de,ce,oe,pe)=>{if(l){const ve=oe.map(Te=>_(Te));l(_(de),ce,ve,pe)}ne(oe,"single")},[l,_,ne]),me=d.useMemo(()=>!b||C?null:(b===!0?[pE,mE,gE]:b).map(ce=>ce===pE?{key:"all",text:M.selectionAll,onSelect(){ne(O.map((oe,pe)=>$(oe,pe)).filter(oe=>{const pe=P.get(oe);return!(pe!=null&&pe.disabled)||ee.has(oe)}),"all")}}:ce===mE?{key:"invert",text:M.selectInvert,onSelect(){const oe=new Set(ee);I.forEach((ve,Te)=>{const Ge=$(ve,Te),je=P.get(Ge);je!=null&&je.disabled||(oe.has(Ge)?oe.delete(Ge):oe.add(Ge))});const pe=Array.from(oe);u&&(B.deprecated(!1,"onSelectInvert","onChange"),u(pe)),ne(pe,"invert")}}:ce===gE?{key:"none",text:M.selectNone,onSelect(){f==null||f(),ne(Array.from(ee).filter(oe=>{const pe=P.get(oe);return pe==null?void 0:pe.disabled}),"none")}}:ce).map(ce=>Object.assign(Object.assign({},ce),{onSelect:function(){for(var oe,pe,ve=arguments.length,Te=new Array(ve),Ge=0;Ge<ve;Ge++)Te[Ge]=arguments[Ge];(pe=ce.onSelect)===null||pe===void 0||(oe=pe).call.apply(oe,[ce].concat(Te)),D(null)}})),[b,ee,I,$,u,ne]);return[d.useCallback(de=>{var ce;if(!t)return de.filter(Ze=>Ze!==Us);let oe=Qe(de);const pe=new Set(ee),ve=q.map($).filter(Ze=>!P.get(Ze).disabled),Te=ve.every(Ze=>pe.has(Ze)),Ge=ve.some(Ze=>pe.has(Ze)),je=()=>{const Ze=[];Te?ve.forEach(Be=>{pe.delete(Be),Ze.push(Be)}):ve.forEach(Be=>{pe.has(Be)||(pe.add(Be),Ze.push(Be))});const ut=Array.from(pe);c==null||c(!Te,ut.map(Be=>_(Be)),Ze.map(Be=>_(Be))),ne(ut,"all"),D(null)};let Je,Se;if(g!=="radio"){let Ze;if(me){const Ie={getPopupContainer:H,items:me.map((Re,Ae)=>{const{key:Ye,text:mt,onSelect:Nt}=Re;return{key:Ye??Ae,onClick:()=>{Nt==null||Nt(ve)},label:mt}})};Ze=d.createElement("div",{className:`${T}-selection-extra`},d.createElement(Lm,{menu:Ie,getPopupContainer:H},d.createElement("span",null,d.createElement(B8,null))))}const ut=q.map((Ie,Re)=>{const Ae=$(Ie,Re),Ye=P.get(Ae)||{};return Object.assign({checked:pe.has(Ae)},Ye)}).filter(Ie=>{let{disabled:Re}=Ie;return Re}),Be=!!ut.length&&ut.length===q.length,ot=Be&&ut.every(Ie=>{let{checked:Re}=Ie;return Re}),re=Be&&ut.some(Ie=>{let{checked:Re}=Ie;return Re});Se=d.createElement(Wf,{checked:Be?ot:!!q.length&&Te,indeterminate:Be?!ot&&re:!Te&&Ge,onChange:je,disabled:q.length===0||Be,"aria-label":Ze?"Custom selection":"Select all",skipGroup:!0}),Je=!C&&d.createElement("div",{className:`${T}-selection`},Se,Ze)}let $e;g==="radio"?$e=(Ze,ut,Be)=>{const ot=$(ut,Be),re=pe.has(ot),Ie=P.get(ot);return{node:d.createElement(Ai,Object.assign({},Ie,{checked:re,onClick:Re=>{var Ae;Re.stopPropagation(),(Ae=Ie==null?void 0:Ie.onClick)===null||Ae===void 0||Ae.call(Ie,Re)},onChange:Re=>{var Ae;pe.has(ot)||se(ot,!0,[ot],Re.nativeEvent),(Ae=Ie==null?void 0:Ie.onChange)===null||Ae===void 0||Ae.call(Ie,Re)}})),checked:re}}:$e=(Ze,ut,Be)=>{var ot;const re=$(ut,Be),Ie=pe.has(re),Re=ue.has(re),Ae=P.get(re);let Ye;return k==="nest"?Ye=Re:Ye=(ot=Ae==null?void 0:Ae.indeterminate)!==null&&ot!==void 0?ot:Re,{node:d.createElement(Wf,Object.assign({},Ae,{indeterminate:Ye,checked:Ie,skipGroup:!0,onClick:mt=>{var Nt;mt.stopPropagation(),(Nt=Ae==null?void 0:Ae.onClick)===null||Nt===void 0||Nt.call(Ae,mt)},onChange:mt=>{var Nt;const{nativeEvent:qt}=mt,{shiftKey:Ft}=qt,Kt=ve.findIndex(Zt=>Zt===re),Qt=V.some(Zt=>ve.includes(Zt));if(Ft&&S&&Qt){const Zt=L(Kt,ve,pe),Mt=Array.from(pe);p==null||p(!Ie,Mt.map(St=>_(St)),Zt.map(St=>_(St))),ne(Mt,"multiple")}else{const Zt=V;if(S){const Mt=Ie?bl(Zt,re):Jl(Zt,re);se(re,!Ie,Mt,qt)}else{const Mt=xf([].concat(Qe(Zt),[re]),!0,A,Z),{checkedKeys:St,halfCheckedKeys:yt}=Mt;let lt=St;if(Ie){const fe=new Set(St);fe.delete(re),lt=xf(Array.from(fe),{checked:!1,halfCheckedKeys:yt},A,Z).checkedKeys}se(re,!Ie,lt,qt)}}D(Ie?null:Kt),(Nt=Ae==null?void 0:Ae.onChange)===null||Nt===void 0||Nt.call(Ae,mt)}})),checked:Ie}};const qe=(Ze,ut,Be)=>{const{node:ot,checked:re}=$e(Ze,ut,Be);return x?x(re,ut,Be,ot):ot};if(!oe.includes(Us))if(oe.findIndex(Ze=>{var ut;return((ut=Ze[ip])===null||ut===void 0?void 0:ut.columnType)==="EXPAND_COLUMN"})===0){const[Ze,...ut]=oe;oe=[Ze,Us].concat(Qe(ut))}else oe=[Us].concat(Qe(oe));const Le=oe.indexOf(Us);oe=oe.filter((Ze,ut)=>Ze!==Us||ut===Le);const Fe=oe[Le-1],Ke=oe[Le+1];let Ve=E;Ve===void 0&&((Ke==null?void 0:Ke.fixed)!==void 0?Ve=Ke.fixed:(Fe==null?void 0:Fe.fixed)!==void 0&&(Ve=Fe.fixed)),Ve&&Fe&&((ce=Fe[ip])===null||ce===void 0?void 0:ce.columnType)==="EXPAND_COLUMN"&&Fe.fixed===void 0&&(Fe.fixed=Ve);const Ce=le(`${T}-selection-col`,{[`${T}-selection-col-with-dropdown`]:b&&g==="checkbox"}),Pe=()=>t!=null&&t.columnTitle?typeof t.columnTitle=="function"?t.columnTitle(Se):t.columnTitle:Je,We={fixed:Ve,width:m,className:`${T}-selection-column`,title:Pe(),render:qe,onCell:t.onCell,[ip]:{className:Ce}};return oe.map(Ze=>Ze===Us?We:Ze)},[$,q,t,V,ee,ue,m,me,k,P,p,se,Z]),ee]};function Eme(e,t){return e._antProxy=e._antProxy||{},Object.keys(t).forEach(n=>{if(!(n in e._antProxy)){const r=e[n];e._antProxy[n]=r,e[n]=t[n]}}),e}function xme(e,t){return d.useImperativeHandle(e,()=>{const n=t(),{nativeElement:r}=n;return typeof Proxy<"u"?new Proxy(r,{get(i,o){return n[o]?n[o]:Reflect.get(i,o)}}):Eme(r,n)})}function wme(e){return t=>{const{prefixCls:n,onExpand:r,record:i,expanded:o,expandable:a}=t,l=`${n}-row-expand-icon`;return d.createElement("button",{type:"button",onClick:c=>{r(i,c),c.stopPropagation()},className:le(l,{[`${l}-spaced`]:!a,[`${l}-expanded`]:a&&o,[`${l}-collapsed`]:a&&!o}),"aria-label":o?e.collapse:e.expand,"aria-expanded":o})}}function Tme(e){return(n,r)=>{const i=n.querySelector(`.${e}-container`);let o=r;if(i){const a=getComputedStyle(i),l=parseInt(a.borderLeftWidth,10),c=parseInt(a.borderRightWidth,10);o=r-l-c}return o}}const _c=(e,t)=>"key"in e&&e.key!==void 0&&e.key!==null?e.key:e.dataIndex?Array.isArray(e.dataIndex)?e.dataIndex.join("."):e.dataIndex:t;function y1(e,t){return t?`${t}-${e}`:`${e}`}const o2=(e,t)=>typeof e=="function"?e(t):e,_me=(e,t)=>{const n=o2(e,t);return Object.prototype.toString.call(n)==="[object Object]"?"":n};function Ome(e){const t=d.useRef(e),n=H8();return[()=>t.current,r=>{t.current=r,n()}]}function Ime(e){var t=e.dropPosition,n=e.dropLevelOffset,r=e.indent,i={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(t){case-1:i.top=0,i.left=-n*r;break;case 1:i.bottom=0,i.left=-n*r;break;case 0:i.bottom=0,i.left=r;break}return d.createElement("div",{style:i})}function cj(e){if(e==null)throw new TypeError("Cannot destructure "+e)}function $me(e,t){var n=d.useState(!1),r=Oe(n,2),i=r[0],o=r[1];bn(function(){if(i)return e(),function(){t()}},[i]),bn(function(){return o(!0),function(){o(!1)}},[])}var Nme=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],uj=function(t,n){var r=t.className,i=t.style,o=t.motion,a=t.motionNodes,l=t.motionType,c=t.onMotionStart,u=t.onMotionEnd,f=t.active,p=t.treeNodeRequiredProps,m=Gt(t,Nme),g=d.useState(!0),b=Oe(g,2),E=b[0],x=b[1],C=d.useContext(v3),S=C.prefixCls,T=a&&l!=="hide";bn(function(){a&&T!==E&&x(T)},[a]);var O=function(){a&&c()},I=d.useRef(!1),_=function(){a&&!I.current&&(I.current=!0,u())};$me(O,_);var $=function(R){T===R&&_()};return a?d.createElement(ca,ze({ref:n,visible:E},o,{motionAppear:l==="show",onVisibleChanged:$}),function(k,R){var M=k.className,H=k.style;return d.createElement("div",{ref:R,className:le("".concat(S,"-treenode-motion"),M),style:H},a.map(function(B){var L=Object.assign({},(cj(B.data),B.data)),D=B.title,z=B.key,W=B.isStart,j=B.isEnd;delete L.children;var U=np(z,p);return d.createElement(Uf,ze({},L,U,{title:D,active:f,data:B.data,key:z,isStart:W,isEnd:j}))}))}):d.createElement(Uf,ze({domRef:n,className:r,style:i},m,{active:f}))};uj.displayName="MotionTreeNode";var Ame=d.forwardRef(uj);function kme(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=e.length,r=t.length;if(Math.abs(n-r)!==1)return{add:!1,key:null};function i(o,a){var l=new Map;o.forEach(function(u){l.set(u,!0)});var c=a.filter(function(u){return!l.has(u)});return c.length===1?c[0]:null}return n<r?{add:!0,key:i(e,t)}:{add:!1,key:i(t,e)}}function VI(e,t,n){var r=e.findIndex(function(l){return l.key===n}),i=e[r+1],o=t.findIndex(function(l){return l.key===n});if(i){var a=t.findIndex(function(l){return l.key===i.key});return t.slice(o+1,a)}return t.slice(o+1)}var Rme=["prefixCls","data","selectable","checkable","expandedKeys","selectedKeys","checkedKeys","loadedKeys","loadingKeys","halfCheckedKeys","keyEntities","disabled","dragging","dragOverNodeKey","dropPosition","motion","height","itemHeight","virtual","focusable","activeItem","focused","tabIndex","onKeyDown","onFocus","onBlur","onActiveChange","onListChangeStart","onListChangeEnd"],GI={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},Mme=function(){},Bu="RC_TREE_MOTION_".concat(Math.random()),vE={key:Bu},dj={key:Bu,level:0,index:0,pos:"0",node:vE,nodes:[vE]},qI={parent:null,children:[],pos:dj.pos,data:vE,title:null,key:Bu,isStart:[],isEnd:[]};function XI(e,t,n,r){return t===!1||!n?e:e.slice(0,Math.ceil(n/r)+1)}function YI(e){var t=e.key,n=e.pos;return Pm(t,n)}function Pme(e){for(var t=String(e.data.key),n=e;n.parent;)n=n.parent,t="".concat(n.data.key," > ").concat(t);return t}var fj=d.forwardRef(function(e,t){var n=e.prefixCls,r=e.data;e.selectable,e.checkable;var i=e.expandedKeys,o=e.selectedKeys,a=e.checkedKeys,l=e.loadedKeys,c=e.loadingKeys,u=e.halfCheckedKeys,f=e.keyEntities,p=e.disabled,m=e.dragging,g=e.dragOverNodeKey,b=e.dropPosition,E=e.motion,x=e.height,C=e.itemHeight,S=e.virtual,T=e.focusable,O=e.activeItem,I=e.focused,_=e.tabIndex,$=e.onKeyDown,k=e.onFocus,R=e.onBlur,M=e.onActiveChange,H=e.onListChangeStart,B=e.onListChangeEnd,L=Gt(e,Rme),D=d.useRef(null),z=d.useRef(null);d.useImperativeHandle(t,function(){return{scrollTo:function($e){D.current.scrollTo($e)},getIndentWidth:function(){return z.current.offsetWidth}}});var W=d.useState(i),j=Oe(W,2),U=j[0],q=j[1],A=d.useState(r),P=Oe(A,2),Z=P[0],V=P[1],Y=d.useState(r),ee=Oe(Y,2),ue=ee[0],ne=ee[1],se=d.useState([]),me=Oe(se,2),ye=me[0],de=me[1],ce=d.useState(null),oe=Oe(ce,2),pe=oe[0],ve=oe[1],Te=d.useRef(r);Te.current=r;function Ge(){var Se=Te.current;V(Se),ne(Se),de([]),ve(null),B()}bn(function(){q(i);var Se=kme(U,i);if(Se.key!==null)if(Se.add){var $e=Z.findIndex(function(Ce){var Pe=Ce.key;return Pe===Se.key}),qe=XI(VI(Z,r,Se.key),S,x,C),Le=Z.slice();Le.splice($e+1,0,qI),ne(Le),de(qe),ve("show")}else{var Fe=r.findIndex(function(Ce){var Pe=Ce.key;return Pe===Se.key}),Ke=XI(VI(r,Z,Se.key),S,x,C),Ve=r.slice();Ve.splice(Fe+1,0,qI),ne(Ve),de(Ke),ve("hide")}else Z!==r&&(V(r),ne(r))},[i,r]),d.useEffect(function(){m||Ge()},[m]);var je=E?ue:r,Je={expandedKeys:i,selectedKeys:o,loadedKeys:l,loadingKeys:c,checkedKeys:a,halfCheckedKeys:u,dragOverNodeKey:g,dropPosition:b,keyEntities:f};return d.createElement(d.Fragment,null,I&&O&&d.createElement("span",{style:GI,"aria-live":"assertive"},Pme(O)),d.createElement("div",null,d.createElement("input",{style:GI,disabled:T===!1||p,tabIndex:T!==!1?_:null,onKeyDown:$,onFocus:k,onBlur:R,value:"",onChange:Mme,"aria-label":"for screen reader"})),d.createElement("div",{className:"".concat(n,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},d.createElement("div",{className:"".concat(n,"-indent")},d.createElement("div",{ref:z,className:"".concat(n,"-indent-unit")}))),d.createElement(jb,ze({},L,{data:je,itemKey:YI,height:x,fullHeight:!1,virtual:S,itemHeight:C,prefixCls:"".concat(n,"-list"),ref:D,onVisibleChange:function($e){$e.every(function(qe){return YI(qe)!==Bu})&&Ge()}}),function(Se){var $e=Se.pos,qe=Object.assign({},(cj(Se.data),Se.data)),Le=Se.title,Fe=Se.key,Ke=Se.isStart,Ve=Se.isEnd,Ce=Pm(Fe,$e);delete qe.key,delete qe.children;var Pe=np(Ce,Je);return d.createElement(Ame,ze({},qe,Pe,{title:Le,active:!!O&&Fe===O.key,pos:$e,data:Se.data,isStart:Ke,isEnd:Ve,motion:E,motionNodes:Fe===Bu?ye:null,motionType:pe,onMotionStart:H,onMotionEnd:Ge,treeNodeRequiredProps:Je,onMouseMove:function(){M(null)}}))}))});fj.displayName="NodeList";var Lme=10,b3=function(e){la(n,e);var t=sa(n);function n(){var r;_r(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),J(at(r),"destroyed",!1),J(at(r),"delayedDragEnterLogic",void 0),J(at(r),"loadingRetryTimes",{}),J(at(r),"state",{keyEntities:{},indent:null,selectedKeys:[],checkedKeys:[],halfCheckedKeys:[],loadedKeys:[],loadingKeys:[],expandedKeys:[],draggingNodeKey:null,dragChildrenKeys:[],dropTargetKey:null,dropPosition:null,dropContainerKey:null,dropLevelOffset:null,dropTargetPos:null,dropAllowed:!0,dragOverNodeKey:null,treeData:[],flattenNodes:[],focused:!1,activeKey:null,listChanging:!1,prevProps:null,fieldNames:zf()}),J(at(r),"dragStartMousePosition",null),J(at(r),"dragNode",void 0),J(at(r),"currentMouseOverDroppableNodeKey",null),J(at(r),"listRef",d.createRef()),J(at(r),"onNodeDragStart",function(l,c){var u=r.state,f=u.expandedKeys,p=u.keyEntities,m=r.props.onDragStart,g=c.props.eventKey;r.dragNode=c,r.dragStartMousePosition={x:l.clientX,y:l.clientY};var b=bl(f,g);r.setState({draggingNodeKey:g,dragChildrenKeys:vme(g,p),indent:r.listRef.current.getIndentWidth()}),r.setExpandedKeys(b),window.addEventListener("dragend",r.onWindowDragEnd),m==null||m({event:l,node:Yr(c.props)})}),J(at(r),"onNodeDragEnter",function(l,c){var u=r.state,f=u.expandedKeys,p=u.keyEntities,m=u.dragChildrenKeys,g=u.flattenNodes,b=u.indent,E=r.props,x=E.onDragEnter,C=E.onExpand,S=E.allowDrop,T=E.direction,O=c.props,I=O.pos,_=O.eventKey,$=at(r),k=$.dragNode;if(r.currentMouseOverDroppableNodeKey!==_&&(r.currentMouseOverDroppableNodeKey=_),!k){r.resetDragState();return}var R=WI(l,k,c,b,r.dragStartMousePosition,S,g,p,f,T),M=R.dropPosition,H=R.dropLevelOffset,B=R.dropTargetKey,L=R.dropContainerKey,D=R.dropTargetPos,z=R.dropAllowed,W=R.dragOverNodeKey;if(m.indexOf(B)!==-1||!z){r.resetDragState();return}if(r.delayedDragEnterLogic||(r.delayedDragEnterLogic={}),Object.keys(r.delayedDragEnterLogic).forEach(function(j){clearTimeout(r.delayedDragEnterLogic[j])}),k.props.eventKey!==c.props.eventKey&&(l.persist(),r.delayedDragEnterLogic[I]=window.setTimeout(function(){if(r.state.draggingNodeKey!==null){var j=Qe(f),U=Oo(p,c.props.eventKey);U&&(U.children||[]).length&&(j=Jl(f,c.props.eventKey)),r.props.hasOwnProperty("expandedKeys")||r.setExpandedKeys(j),C==null||C(j,{node:Yr(c.props),expanded:!0,nativeEvent:l.nativeEvent})}},800)),k.props.eventKey===B&&H===0){r.resetDragState();return}r.setState({dragOverNodeKey:W,dropPosition:M,dropLevelOffset:H,dropTargetKey:B,dropContainerKey:L,dropTargetPos:D,dropAllowed:z}),x==null||x({event:l,node:Yr(c.props),expandedKeys:f})}),J(at(r),"onNodeDragOver",function(l,c){var u=r.state,f=u.dragChildrenKeys,p=u.flattenNodes,m=u.keyEntities,g=u.expandedKeys,b=u.indent,E=r.props,x=E.onDragOver,C=E.allowDrop,S=E.direction,T=at(r),O=T.dragNode;if(O){var I=WI(l,O,c,b,r.dragStartMousePosition,C,p,m,g,S),_=I.dropPosition,$=I.dropLevelOffset,k=I.dropTargetKey,R=I.dropContainerKey,M=I.dropAllowed,H=I.dropTargetPos,B=I.dragOverNodeKey;f.indexOf(k)!==-1||!M||(O.props.eventKey===k&&$===0?r.state.dropPosition===null&&r.state.dropLevelOffset===null&&r.state.dropTargetKey===null&&r.state.dropContainerKey===null&&r.state.dropTargetPos===null&&r.state.dropAllowed===!1&&r.state.dragOverNodeKey===null||r.resetDragState():_===r.state.dropPosition&&$===r.state.dropLevelOffset&&k===r.state.dropTargetKey&&R===r.state.dropContainerKey&&H===r.state.dropTargetPos&&M===r.state.dropAllowed&&B===r.state.dragOverNodeKey||r.setState({dropPosition:_,dropLevelOffset:$,dropTargetKey:k,dropContainerKey:R,dropTargetPos:H,dropAllowed:M,dragOverNodeKey:B}),x==null||x({event:l,node:Yr(c.props)}))}}),J(at(r),"onNodeDragLeave",function(l,c){r.currentMouseOverDroppableNodeKey===c.props.eventKey&&!l.currentTarget.contains(l.relatedTarget)&&(r.resetDragState(),r.currentMouseOverDroppableNodeKey=null);var u=r.props.onDragLeave;u==null||u({event:l,node:Yr(c.props)})}),J(at(r),"onWindowDragEnd",function(l){r.onNodeDragEnd(l,null,!0),window.removeEventListener("dragend",r.onWindowDragEnd)}),J(at(r),"onNodeDragEnd",function(l,c){var u=r.props.onDragEnd;r.setState({dragOverNodeKey:null}),r.cleanDragState(),u==null||u({event:l,node:Yr(c.props)}),r.dragNode=null,window.removeEventListener("dragend",r.onWindowDragEnd)}),J(at(r),"onNodeDrop",function(l,c){var u,f=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,p=r.state,m=p.dragChildrenKeys,g=p.dropPosition,b=p.dropTargetKey,E=p.dropTargetPos,x=p.dropAllowed;if(x){var C=r.props.onDrop;if(r.setState({dragOverNodeKey:null}),r.cleanDragState(),b!==null){var S=te(te({},np(b,r.getTreeNodeRequiredProps())),{},{active:((u=r.getActiveItem())===null||u===void 0?void 0:u.key)===b,data:Oo(r.state.keyEntities,b).node}),T=m.indexOf(b)!==-1;gr(!T,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var O=y3(E),I={event:l,node:Yr(S),dragNode:r.dragNode?Yr(r.dragNode.props):null,dragNodesKeys:[r.dragNode.props.eventKey].concat(m),dropToGap:g!==0,dropPosition:g+Number(O[O.length-1])};f||C==null||C(I),r.dragNode=null}}}),J(at(r),"cleanDragState",function(){var l=r.state.draggingNodeKey;l!==null&&r.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),r.dragStartMousePosition=null,r.currentMouseOverDroppableNodeKey=null}),J(at(r),"triggerExpandActionExpand",function(l,c){var u=r.state,f=u.expandedKeys,p=u.flattenNodes,m=c.expanded,g=c.key,b=c.isLeaf;if(!(b||l.shiftKey||l.metaKey||l.ctrlKey)){var E=p.filter(function(C){return C.key===g})[0],x=Yr(te(te({},np(g,r.getTreeNodeRequiredProps())),{},{data:E.data}));r.setExpandedKeys(m?bl(f,g):Jl(f,g)),r.onNodeExpand(l,x)}}),J(at(r),"onNodeClick",function(l,c){var u=r.props,f=u.onClick,p=u.expandAction;p==="click"&&r.triggerExpandActionExpand(l,c),f==null||f(l,c)}),J(at(r),"onNodeDoubleClick",function(l,c){var u=r.props,f=u.onDoubleClick,p=u.expandAction;p==="doubleClick"&&r.triggerExpandActionExpand(l,c),f==null||f(l,c)}),J(at(r),"onNodeSelect",function(l,c){var u=r.state.selectedKeys,f=r.state,p=f.keyEntities,m=f.fieldNames,g=r.props,b=g.onSelect,E=g.multiple,x=c.selected,C=c[m.key],S=!x;S?E?u=Jl(u,C):u=[C]:u=bl(u,C);var T=u.map(function(O){var I=Oo(p,O);return I?I.node:null}).filter(function(O){return O});r.setUncontrolledState({selectedKeys:u}),b==null||b(u,{event:"select",selected:S,node:c,selectedNodes:T,nativeEvent:l.nativeEvent})}),J(at(r),"onNodeCheck",function(l,c,u){var f=r.state,p=f.keyEntities,m=f.checkedKeys,g=f.halfCheckedKeys,b=r.props,E=b.checkStrictly,x=b.onCheck,C=c.key,S,T={event:"check",node:c,checked:u,nativeEvent:l.nativeEvent};if(E){var O=u?Jl(m,C):bl(m,C),I=bl(g,C);S={checked:O,halfChecked:I},T.checkedNodes=O.map(function(H){return Oo(p,H)}).filter(function(H){return H}).map(function(H){return H.node}),r.setUncontrolledState({checkedKeys:O})}else{var _=xf([].concat(Qe(m),[C]),!0,p),$=_.checkedKeys,k=_.halfCheckedKeys;if(!u){var R=new Set($);R.delete(C);var M=xf(Array.from(R),{checked:!1,halfCheckedKeys:k},p);$=M.checkedKeys,k=M.halfCheckedKeys}S=$,T.checkedNodes=[],T.checkedNodesPositions=[],T.halfCheckedKeys=k,$.forEach(function(H){var B=Oo(p,H);if(B){var L=B.node,D=B.pos;T.checkedNodes.push(L),T.checkedNodesPositions.push({node:L,pos:D})}}),r.setUncontrolledState({checkedKeys:$},!1,{halfCheckedKeys:k})}x==null||x(S,T)}),J(at(r),"onNodeLoad",function(l){var c,u=l.key,f=r.state.keyEntities,p=Oo(f,u);if(!(p!=null&&(c=p.children)!==null&&c!==void 0&&c.length)){var m=new Promise(function(g,b){r.setState(function(E){var x=E.loadedKeys,C=x===void 0?[]:x,S=E.loadingKeys,T=S===void 0?[]:S,O=r.props,I=O.loadData,_=O.onLoad;if(!I||C.indexOf(u)!==-1||T.indexOf(u)!==-1)return null;var $=I(l);return $.then(function(){var k=r.state.loadedKeys,R=Jl(k,u);_==null||_(R,{event:"load",node:l}),r.setUncontrolledState({loadedKeys:R}),r.setState(function(M){return{loadingKeys:bl(M.loadingKeys,u)}}),g()}).catch(function(k){if(r.setState(function(M){return{loadingKeys:bl(M.loadingKeys,u)}}),r.loadingRetryTimes[u]=(r.loadingRetryTimes[u]||0)+1,r.loadingRetryTimes[u]>=Lme){var R=r.state.loadedKeys;gr(!1,"Retry for `loadData` many times but still failed. No more retry."),r.setUncontrolledState({loadedKeys:Jl(R,u)}),g()}b(k)}),{loadingKeys:Jl(T,u)}})});return m.catch(function(){}),m}}),J(at(r),"onNodeMouseEnter",function(l,c){var u=r.props.onMouseEnter;u==null||u({event:l,node:c})}),J(at(r),"onNodeMouseLeave",function(l,c){var u=r.props.onMouseLeave;u==null||u({event:l,node:c})}),J(at(r),"onNodeContextMenu",function(l,c){var u=r.props.onRightClick;u&&(l.preventDefault(),u({event:l,node:c}))}),J(at(r),"onFocus",function(){var l=r.props.onFocus;r.setState({focused:!0});for(var c=arguments.length,u=new Array(c),f=0;f<c;f++)u[f]=arguments[f];l==null||l.apply(void 0,u)}),J(at(r),"onBlur",function(){var l=r.props.onBlur;r.setState({focused:!1}),r.onActiveChange(null);for(var c=arguments.length,u=new Array(c),f=0;f<c;f++)u[f]=arguments[f];l==null||l.apply(void 0,u)}),J(at(r),"getTreeNodeRequiredProps",function(){var l=r.state,c=l.expandedKeys,u=l.selectedKeys,f=l.loadedKeys,p=l.loadingKeys,m=l.checkedKeys,g=l.halfCheckedKeys,b=l.dragOverNodeKey,E=l.dropPosition,x=l.keyEntities;return{expandedKeys:c||[],selectedKeys:u||[],loadedKeys:f||[],loadingKeys:p||[],checkedKeys:m||[],halfCheckedKeys:g||[],dragOverNodeKey:b,dropPosition:E,keyEntities:x}}),J(at(r),"setExpandedKeys",function(l){var c=r.state,u=c.treeData,f=c.fieldNames,p=L4(u,l,f);r.setUncontrolledState({expandedKeys:l,flattenNodes:p},!0)}),J(at(r),"onNodeExpand",function(l,c){var u=r.state.expandedKeys,f=r.state,p=f.listChanging,m=f.fieldNames,g=r.props,b=g.onExpand,E=g.loadData,x=c.expanded,C=c[m.key];if(!p){var S=u.indexOf(C),T=!x;if(gr(x&&S!==-1||!x&&S===-1,"Expand state not sync with index check"),T?u=Jl(u,C):u=bl(u,C),r.setExpandedKeys(u),b==null||b(u,{node:c,expanded:T,nativeEvent:l.nativeEvent}),T&&E){var O=r.onNodeLoad(c);O&&O.then(function(){var I=L4(r.state.treeData,u,m);r.setUncontrolledState({flattenNodes:I})}).catch(function(){var I=r.state.expandedKeys,_=bl(I,C);r.setExpandedKeys(_)})}}}),J(at(r),"onListChangeStart",function(){r.setUncontrolledState({listChanging:!0})}),J(at(r),"onListChangeEnd",function(){setTimeout(function(){r.setUncontrolledState({listChanging:!1})})}),J(at(r),"onActiveChange",function(l){var c=r.state.activeKey,u=r.props,f=u.onActiveChange,p=u.itemScrollOffset,m=p===void 0?0:p;c!==l&&(r.setState({activeKey:l}),l!==null&&r.scrollTo({key:l,offset:m}),f==null||f(l))}),J(at(r),"getActiveItem",function(){var l=r.state,c=l.activeKey,u=l.flattenNodes;return c===null?null:u.find(function(f){var p=f.key;return p===c})||null}),J(at(r),"offsetActiveKey",function(l){var c=r.state,u=c.flattenNodes,f=c.activeKey,p=u.findIndex(function(b){var E=b.key;return E===f});p===-1&&l<0&&(p=u.length),p=(p+l+u.length)%u.length;var m=u[p];if(m){var g=m.key;r.onActiveChange(g)}else r.onActiveChange(null)}),J(at(r),"onKeyDown",function(l){var c=r.state,u=c.activeKey,f=c.expandedKeys,p=c.checkedKeys,m=c.fieldNames,g=r.props,b=g.onKeyDown,E=g.checkable,x=g.selectable;switch(l.which){case it.UP:{r.offsetActiveKey(-1),l.preventDefault();break}case it.DOWN:{r.offsetActiveKey(1),l.preventDefault();break}}var C=r.getActiveItem();if(C&&C.data){var S=r.getTreeNodeRequiredProps(),T=C.data.isLeaf===!1||!!(C.data[m.children]||[]).length,O=Yr(te(te({},np(u,S)),{},{data:C.data,active:!0}));switch(l.which){case it.LEFT:{T&&f.includes(u)?r.onNodeExpand({},O):C.parent&&r.onActiveChange(C.parent.key),l.preventDefault();break}case it.RIGHT:{T&&!f.includes(u)?r.onNodeExpand({},O):C.children&&C.children.length&&r.onActiveChange(C.children[0].key),l.preventDefault();break}case it.ENTER:case it.SPACE:{E&&!O.disabled&&O.checkable!==!1&&!O.disableCheckbox?r.onNodeCheck({},O,!p.includes(u)):!E&&x&&!O.disabled&&O.selectable!==!1&&r.onNodeSelect({},O);break}}}b==null||b(l)}),J(at(r),"setUncontrolledState",function(l){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!r.destroyed){var f=!1,p=!0,m={};Object.keys(l).forEach(function(g){if(r.props.hasOwnProperty(g)){p=!1;return}f=!0,m[g]=l[g]}),f&&(!c||p)&&r.setState(te(te({},m),u))}}),J(at(r),"scrollTo",function(l){r.listRef.current.scrollTo(l)}),r}return Or(n,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var i=this.props,o=i.activeKey,a=i.itemScrollOffset,l=a===void 0?0:a;o!==void 0&&o!==this.state.activeKey&&(this.setState({activeKey:o}),o!==null&&this.scrollTo({key:o,offset:l}))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("dragend",this.onWindowDragEnd),this.destroyed=!0}},{key:"resetDragState",value:function(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}},{key:"render",value:function(){var i=this.state,o=i.focused,a=i.flattenNodes,l=i.keyEntities,c=i.draggingNodeKey,u=i.activeKey,f=i.dropLevelOffset,p=i.dropContainerKey,m=i.dropTargetKey,g=i.dropPosition,b=i.dragOverNodeKey,E=i.indent,x=this.props,C=x.prefixCls,S=x.className,T=x.style,O=x.showLine,I=x.focusable,_=x.tabIndex,$=_===void 0?0:_,k=x.selectable,R=x.showIcon,M=x.icon,H=x.switcherIcon,B=x.draggable,L=x.checkable,D=x.checkStrictly,z=x.disabled,W=x.motion,j=x.loadData,U=x.filterTreeNode,q=x.height,A=x.itemHeight,P=x.virtual,Z=x.titleRender,V=x.dropIndicatorRender,Y=x.onContextMenu,ee=x.onScroll,ue=x.direction,ne=x.rootClassName,se=x.rootStyle,me=_i(this.props,{aria:!0,data:!0}),ye;return B&&($t(B)==="object"?ye=B:typeof B=="function"?ye={nodeDraggable:B}:ye={}),d.createElement(v3.Provider,{value:{prefixCls:C,selectable:k,showIcon:R,icon:M,switcherIcon:H,draggable:ye,draggingNodeKey:c,checkable:L,checkStrictly:D,disabled:z,keyEntities:l,dropLevelOffset:f,dropContainerKey:p,dropTargetKey:m,dropPosition:g,dragOverNodeKey:b,indent:E,direction:ue,dropIndicatorRender:V,loadData:j,filterTreeNode:U,titleRender:Z,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop}},d.createElement("div",{role:"tree",className:le(C,S,ne,J(J(J({},"".concat(C,"-show-line"),O),"".concat(C,"-focused"),o),"".concat(C,"-active-focused"),u!==null)),style:se},d.createElement(fj,ze({ref:this.listRef,prefixCls:C,style:T,data:a,disabled:z,selectable:k,checkable:!!L,motion:W,dragging:c!==null,height:q,itemHeight:A,virtual:P,focusable:I,focused:o,tabIndex:$,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:Y,onScroll:ee},this.getTreeNodeRequiredProps(),me))))}}],[{key:"getDerivedStateFromProps",value:function(i,o){var a=o.prevProps,l={prevProps:i};function c($){return!a&&i.hasOwnProperty($)||a&&a[$]!==i[$]}var u,f=o.fieldNames;if(c("fieldNames")&&(f=zf(i.fieldNames),l.fieldNames=f),c("treeData")?u=i.treeData:c("children")&&(gr(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),u=nB(i.children)),u){l.treeData=u;var p=l3(u,{fieldNames:f});l.keyEntities=te(J({},Bu,dj),p.keyEntities)}var m=l.keyEntities||o.keyEntities;if(c("expandedKeys")||a&&c("autoExpandParent"))l.expandedKeys=i.autoExpandParent||!a&&i.defaultExpandParent?hE(i.expandedKeys,m):i.expandedKeys;else if(!a&&i.defaultExpandAll){var g=te({},m);delete g[Bu];var b=[];Object.keys(g).forEach(function($){var k=g[$];k.children&&k.children.length&&b.push(k.key)}),l.expandedKeys=b}else!a&&i.defaultExpandedKeys&&(l.expandedKeys=i.autoExpandParent||i.defaultExpandParent?hE(i.defaultExpandedKeys,m):i.defaultExpandedKeys);if(l.expandedKeys||delete l.expandedKeys,u||l.expandedKeys){var E=L4(u||o.treeData,l.expandedKeys||o.expandedKeys,f);l.flattenNodes=E}if(i.selectable&&(c("selectedKeys")?l.selectedKeys=UI(i.selectedKeys,i):!a&&i.defaultSelectedKeys&&(l.selectedKeys=UI(i.defaultSelectedKeys,i))),i.checkable){var x;if(c("checkedKeys")?x=V4(i.checkedKeys)||{}:!a&&i.defaultCheckedKeys?x=V4(i.defaultCheckedKeys)||{}:u&&(x=V4(i.checkedKeys)||{checkedKeys:o.checkedKeys,halfCheckedKeys:o.halfCheckedKeys}),x){var C=x,S=C.checkedKeys,T=S===void 0?[]:S,O=C.halfCheckedKeys,I=O===void 0?[]:O;if(!i.checkStrictly){var _=xf(T,!0,m);T=_.checkedKeys,I=_.halfCheckedKeys}l.checkedKeys=T,l.halfCheckedKeys=I}}return c("loadedKeys")&&(l.loadedKeys=i.loadedKeys),l}}]),n}(d.Component);J(b3,"defaultProps",{prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:Ime,allowDrop:function(){return!0},expandAction:!1});J(b3,"TreeNode",Uf);const Dme=e=>{let{treeCls:t,treeNodeCls:n,directoryNodeSelectedBg:r,directoryNodeSelectedColor:i,motionDurationMid:o,borderRadius:a,controlItemBgHover:l}=e;return{[`${t}${t}-directory ${n}`]:{[`${t}-node-content-wrapper`]:{position:"static",[`> *:not(${t}-drop-indicator)`]:{position:"relative"},"&:hover":{background:"transparent"},"&:before":{position:"absolute",inset:0,transition:`background-color ${o}`,content:'""',borderRadius:a},"&:hover:before":{background:l}},[`${t}-switcher, ${t}-checkbox, ${t}-draggable-icon`]:{zIndex:1},"&-selected":{[`${t}-switcher, ${t}-draggable-icon`]:{color:i},[`${t}-node-content-wrapper`]:{color:i,background:"transparent","&:before, &:hover:before":{background:r}}}}}},Fme=new Sn("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),Bme=(e,t)=>({[`.${e}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${t.motionDurationSlow}`}}}),jme=(e,t)=>({[`.${e}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:t.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${ie(t.lineWidthBold)} solid ${t.colorPrimary}`,borderRadius:"50%",content:'""'}}}),Hme=(e,t)=>{const{treeCls:n,treeNodeCls:r,treeNodePadding:i,titleHeight:o,indentSize:a,nodeSelectedBg:l,nodeHoverBg:c,colorTextQuaternary:u}=t;return{[n]:Object.assign(Object.assign({},Fn(t)),{background:t.colorBgContainer,borderRadius:t.borderRadius,transition:`background-color ${t.motionDurationSlow}`,"&-rtl":{direction:"rtl"},[`&${n}-rtl ${n}-switcher_close ${n}-switcher-icon svg`]:{transform:"rotate(90deg)"},[`&-focused:not(:hover):not(${n}-active-focused)`]:Object.assign({},Sc(t)),[`${n}-list-holder-inner`]:{alignItems:"flex-start"},[`&${n}-block-node`]:{[`${n}-list-holder-inner`]:{alignItems:"stretch",[`${n}-node-content-wrapper`]:{flex:"auto"},[`${r}.dragging:after`]:{position:"absolute",inset:0,border:`1px solid ${t.colorPrimary}`,opacity:0,animationName:Fme,animationDuration:t.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none",borderRadius:t.borderRadius}}},[r]:{display:"flex",alignItems:"flex-start",marginBottom:i,lineHeight:ie(o),position:"relative","&:before":{content:'""',position:"absolute",zIndex:1,insetInlineStart:0,width:"100%",top:"100%",height:i},[`&-disabled ${n}-node-content-wrapper`]:{color:t.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}},[`&:not(${r}-disabled)`]:{[`${n}-node-content-wrapper`]:{"&:hover":{color:t.nodeHoverColor}}},[`&-active ${n}-node-content-wrapper`]:{background:t.controlItemBgHover},[`&:not(${r}-disabled).filter-node ${n}-title`]:{color:t.colorPrimary,fontWeight:500},"&-draggable":{cursor:"grab",[`${n}-draggable-icon`]:{flexShrink:0,width:o,textAlign:"center",visibility:"visible",color:u},[`&${r}-disabled ${n}-draggable-icon`]:{visibility:"hidden"}}},[`${n}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:a}},[`${n}-draggable-icon`]:{visibility:"hidden"},[`${n}-switcher, ${n}-checkbox`]:{marginInlineEnd:t.calc(t.calc(o).sub(t.controlInteractiveSize)).div(2).equal()},[`${n}-switcher`]:Object.assign(Object.assign({},Bme(e,t)),{position:"relative",flex:"none",alignSelf:"stretch",width:o,textAlign:"center",cursor:"pointer",userSelect:"none",transition:`all ${t.motionDurationSlow}`,"&-noop":{cursor:"unset"},"&:before":{pointerEvents:"none",content:'""',width:o,height:o,position:"absolute",left:{_skip_check_:!0,value:0},top:0,borderRadius:t.borderRadius,transition:`all ${t.motionDurationSlow}`},[`&:not(${n}-switcher-noop):hover:before`]:{backgroundColor:t.colorBgTextHover},[`&_close ${n}-switcher-icon svg`]:{transform:"rotate(-90deg)"},"&-loading-icon":{color:t.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:t.calc(o).div(2).equal(),bottom:t.calc(i).mul(-1).equal(),marginInlineStart:-1,borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:t.calc(t.calc(o).div(2).equal()).mul(.8).equal(),height:t.calc(o).div(2).equal(),borderBottom:`1px solid ${t.colorBorder}`,content:'""'}}}),[`${n}-node-content-wrapper`]:Object.assign(Object.assign({position:"relative",minHeight:o,paddingBlock:0,paddingInline:t.paddingXS,background:"transparent",borderRadius:t.borderRadius,cursor:"pointer",transition:`all ${t.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`},jme(e,t)),{"&:hover":{backgroundColor:c},[`&${n}-node-selected`]:{color:t.nodeSelectedColor,backgroundColor:l},[`${n}-iconEle`]:{display:"inline-block",width:o,height:o,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}}),[`${n}-unselectable ${n}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${r}.drop-container > [draggable]`]:{boxShadow:`0 0 0 2px ${t.colorPrimary}`},"&-show-line":{[`${n}-indent-unit`]:{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:t.calc(o).div(2).equal(),bottom:t.calc(i).mul(-1).equal(),borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&-end:before":{display:"none"}},[`${n}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${r}-leaf-last ${n}-switcher-leaf-line:before`]:{top:"auto !important",bottom:"auto !important",height:`${ie(t.calc(o).div(2).equal())} !important`}})}},zme=(e,t)=>{const n=`.${e}`,r=`${n}-treenode`,i=t.calc(t.paddingXS).div(2).equal(),o=hn(t,{treeCls:n,treeNodeCls:r,treeNodePadding:i});return[Hme(e,o),Dme(o)]},Wme=e=>{const{controlHeightSM:t,controlItemBgHover:n,controlItemBgActive:r}=e,i=t;return{titleHeight:i,indentSize:i,nodeHoverBg:n,nodeHoverColor:e.colorText,nodeSelectedBg:r,nodeSelectedColor:e.colorText}},Ume=e=>{const{colorTextLightSolid:t,colorPrimary:n}=e;return Object.assign(Object.assign({},Wme(e)),{directoryNodeSelectedColor:t,directoryNodeSelectedBg:n})},Kme=Mn("Tree",(e,t)=>{let{prefixCls:n}=t;return[{[e.componentCls]:iB(`${n}-checkbox`,e)},zme(n,e),Rb(e)]},Ume),QI=4;function Vme(e){const{dropPosition:t,dropLevelOffset:n,prefixCls:r,indent:i,direction:o="ltr"}=e,a=o==="ltr"?"left":"right",l=o==="ltr"?"right":"left",c={[a]:-n*i+QI,[l]:0};switch(t){case-1:c.top=-3;break;case 1:c.bottom=-3;break;default:c.bottom=-3,c[a]=i+QI;break}return be.createElement("div",{style:c,className:`${r}-drop-indicator`})}const Gme=e=>{const{prefixCls:t,switcherIcon:n,treeNodeProps:r,showLine:i,switcherLoadingIcon:o}=e,{isLeaf:a,expanded:l,loading:c}=r;if(c)return d.isValidElement(o)?o:d.createElement(Ec,{className:`${t}-switcher-loading-icon`});let u;if(i&&typeof i=="object"&&(u=i.showLeafIcon),a){if(!i)return null;if(typeof u!="boolean"&&u){const m=typeof u=="function"?u(r):u,g=`${t}-switcher-line-custom-icon`;return d.isValidElement(m)?mi(m,{className:le(m.props.className||"",g)}):m}return u?d.createElement(jB,{className:`${t}-switcher-line-icon`}):d.createElement("span",{className:`${t}-switcher-leaf-line`})}const f=`${t}-switcher-icon`,p=typeof n=="function"?n(r):n;return d.isValidElement(p)?mi(p,{className:le(p.props.className||"",f)}):p!==void 0?p:i?l?d.createElement(che,{className:`${t}-switcher-line-icon`}):d.createElement(She,{className:`${t}-switcher-line-icon`}):d.createElement(y1e,{className:f})},hj=be.forwardRef((e,t)=>{var n;const{getPrefixCls:r,direction:i,virtual:o,tree:a}=be.useContext(At),{prefixCls:l,className:c,showIcon:u=!1,showLine:f,switcherIcon:p,switcherLoadingIcon:m,blockNode:g=!1,children:b,checkable:E=!1,selectable:x=!0,draggable:C,motion:S,style:T}=e,O=r("tree",l),I=r(),_=S??Object.assign(Object.assign({},Xp(I)),{motionAppear:!1}),$=Object.assign(Object.assign({},e),{checkable:E,selectable:x,showIcon:u,motion:_,blockNode:g,showLine:!!f,dropIndicatorRender:Vme}),[k,R,M]=Kme(O),[,H]=Bi(),B=H.paddingXS/2+(((n=H.Tree)===null||n===void 0?void 0:n.titleHeight)||H.controlHeightSM),L=be.useMemo(()=>{if(!C)return!1;let z={};switch(typeof C){case"function":z.nodeDraggable=C;break;case"object":z=Object.assign({},C);break}return z.icon!==!1&&(z.icon=z.icon||be.createElement(ehe,null)),z},[C]),D=z=>be.createElement(Gme,{prefixCls:O,switcherIcon:p,switcherLoadingIcon:m,treeNodeProps:z,showLine:f});return k(be.createElement(b3,Object.assign({itemHeight:B,ref:t,virtual:o},$,{style:Object.assign(Object.assign({},a==null?void 0:a.style),T),prefixCls:O,className:le({[`${O}-icon-hide`]:!u,[`${O}-block-node`]:g,[`${O}-unselectable`]:!x,[`${O}-rtl`]:i==="rtl"},a==null?void 0:a.className,c,R,M),direction:i,checkable:E&&be.createElement("span",{className:`${O}-checkbox-inner`}),selectable:x,switcherIcon:D,draggable:L}),b))}),ZI=0,G4=1,JI=2;function C3(e,t,n){const{key:r,children:i}=n;function o(a){const l=a[r],c=a[i];t(l,a)!==!1&&C3(c||[],t,n)}e.forEach(o)}function qme(e){let{treeData:t,expandedKeys:n,startKey:r,endKey:i,fieldNames:o}=e;const a=[];let l=ZI;if(r&&r===i)return[r];if(!r||!i)return[];function c(u){return u===r||u===i}return C3(t,u=>{if(l===JI)return!1;if(c(u)){if(a.push(u),l===ZI)l=G4;else if(l===G4)return l=JI,!1}else l===G4&&a.push(u);return n.includes(u)},zf(o)),a}function q4(e,t,n){const r=Qe(t),i=[];return C3(e,(o,a)=>{const l=r.indexOf(o);return l!==-1&&(i.push(a),r.splice(l,1)),!!r.length},zf(n)),i}var e$=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function Xme(e){const{isLeaf:t,expanded:n}=e;return t?d.createElement(jB,null):n?d.createElement(q1e,null):d.createElement(Q1e,null)}function t$(e){let{treeData:t,children:n}=e;return t||nB(n)}const Yme=(e,t)=>{var{defaultExpandAll:n,defaultExpandParent:r,defaultExpandedKeys:i}=e,o=e$(e,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const a=d.useRef(),l=d.useRef(),c=()=>{const{keyEntities:k}=l3(t$(o));let R;return n?R=Object.keys(k):r?R=hE(o.expandedKeys||i||[],k):R=o.expandedKeys||i||[],R},[u,f]=d.useState(o.selectedKeys||o.defaultSelectedKeys||[]),[p,m]=d.useState(()=>c());d.useEffect(()=>{"selectedKeys"in o&&f(o.selectedKeys)},[o.selectedKeys]),d.useEffect(()=>{"expandedKeys"in o&&m(o.expandedKeys)},[o.expandedKeys]);const g=(k,R)=>{var M;return"expandedKeys"in o||m(k),(M=o.onExpand)===null||M===void 0?void 0:M.call(o,k,R)},b=(k,R)=>{var M;const{multiple:H,fieldNames:B}=o,{node:L,nativeEvent:D}=R,{key:z=""}=L,W=t$(o),j=Object.assign(Object.assign({},R),{selected:!0}),U=(D==null?void 0:D.ctrlKey)||(D==null?void 0:D.metaKey),q=D==null?void 0:D.shiftKey;let A;H&&U?(A=k,a.current=z,l.current=A,j.selectedNodes=q4(W,A,B)):H&&q?(A=Array.from(new Set([].concat(Qe(l.current||[]),Qe(qme({treeData:W,expandedKeys:p,startKey:z,endKey:a.current,fieldNames:B}))))),j.selectedNodes=q4(W,A,B)):(A=[z],a.current=z,l.current=A,j.selectedNodes=q4(W,A,B)),(M=o.onSelect)===null||M===void 0||M.call(o,A,j),"selectedKeys"in o||f(A)},{getPrefixCls:E,direction:x}=d.useContext(At),{prefixCls:C,className:S,showIcon:T=!0,expandAction:O="click"}=o,I=e$(o,["prefixCls","className","showIcon","expandAction"]),_=E("tree",C),$=le(`${_}-directory`,{[`${_}-directory-rtl`]:x==="rtl"},S);return d.createElement(hj,Object.assign({icon:Xme,ref:t,blockNode:!0},I,{showIcon:T,expandAction:O,prefixCls:_,className:$,expandedKeys:p,selectedKeys:u,onSelect:b,onExpand:g}))},Qme=d.forwardRef(Yme),S3=hj;S3.DirectoryTree=Qme;S3.TreeNode=Uf;const n$=e=>{const{value:t,filterSearch:n,tablePrefixCls:r,locale:i,onChange:o}=e;return n?d.createElement("div",{className:`${r}-filter-dropdown-search`},d.createElement(Ji,{prefix:d.createElement(j8,null),placeholder:i.filterSearchPlaceholder,onChange:o,value:t,htmlSize:1,className:`${r}-filter-dropdown-search-input`})):null},Zme=e=>{const{keyCode:t}=e;t===it.ENTER&&e.stopPropagation()},Jme=d.forwardRef((e,t)=>d.createElement("div",{className:e.className,onClick:n=>n.stopPropagation(),onKeyDown:Zme,ref:t},e.children));function wf(e){let t=[];return(e||[]).forEach(n=>{let{value:r,children:i}=n;t.push(r),i&&(t=[].concat(Qe(t),Qe(wf(i))))}),t}function e0e(e){return e.some(t=>{let{children:n}=t;return n})}function pj(e,t){return typeof t=="string"||typeof t=="number"?t==null?void 0:t.toString().toLowerCase().includes(e.trim().toLowerCase()):!1}function mj(e){let{filters:t,prefixCls:n,filteredKeys:r,filterMultiple:i,searchValue:o,filterSearch:a}=e;return t.map((l,c)=>{const u=String(l.value);if(l.children)return{key:u||c,label:l.text,popupClassName:`${n}-dropdown-submenu`,children:mj({filters:l.children,prefixCls:n,filteredKeys:r,filterMultiple:i,searchValue:o,filterSearch:a})};const f=i?Wf:Ai,p={key:l.value!==void 0?u:c,label:d.createElement(d.Fragment,null,d.createElement(f,{checked:r.includes(u)}),d.createElement("span",null,l.text))};return o.trim()?typeof a=="function"?a(o,l)?p:null:pj(o,l.text)?p:null:p})}function X4(e){return e||[]}const t0e=e=>{var t,n,r,i;const{tablePrefixCls:o,prefixCls:a,column:l,dropdownPrefixCls:c,columnKey:u,filterOnClose:f,filterMultiple:p,filterMode:m="menu",filterSearch:g=!1,filterState:b,triggerFilter:E,locale:x,children:C,getPopupContainer:S,rootClassName:T}=e,{filterResetToDefaultFilteredValue:O,defaultFilteredValue:I,filterDropdownProps:_={},filterDropdownOpen:$,filterDropdownVisible:k,onFilterDropdownVisibleChange:R,onFilterDropdownOpenChange:M}=l,[H,B]=d.useState(!1),L=!!(b&&(!((t=b.filteredKeys)===null||t===void 0)&&t.length||b.forceFiltered)),D=$e=>{var qe;B($e),(qe=_.onOpenChange)===null||qe===void 0||qe.call(_,$e),M==null||M($e),R==null||R($e)},z=(i=(r=(n=_.open)!==null&&n!==void 0?n:$)!==null&&r!==void 0?r:k)!==null&&i!==void 0?i:H,W=b==null?void 0:b.filteredKeys,[j,U]=Ome(X4(W)),q=$e=>{let{selectedKeys:qe}=$e;U(qe)},A=($e,qe)=>{let{node:Le,checked:Fe}=qe;q(p?{selectedKeys:$e}:{selectedKeys:Fe&&Le.key?[Le.key]:[]})};d.useEffect(()=>{H&&q({selectedKeys:X4(W)})},[W]);const[P,Z]=d.useState([]),V=$e=>{Z($e)},[Y,ee]=d.useState(""),ue=$e=>{const{value:qe}=$e.target;ee(qe)};d.useEffect(()=>{H||ee("")},[H]);const ne=$e=>{const qe=$e!=null&&$e.length?$e:null;if(qe===null&&(!b||!b.filteredKeys)||Ml(qe,b==null?void 0:b.filteredKeys,!0))return null;E({column:l,key:u,filteredKeys:qe})},se=()=>{D(!1),ne(j())},me=function(){let{confirm:$e,closeDropdown:qe}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{confirm:!1,closeDropdown:!1};$e&&ne([]),qe&&D(!1),ee(""),U(O?(I||[]).map(Le=>String(Le)):[])},ye=function(){let{closeDropdown:$e}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{closeDropdown:!0};$e&&D(!1),ne(j())},de=($e,qe)=>{qe.source==="trigger"&&($e&&W!==void 0&&U(X4(W)),D($e),!$e&&!l.filterDropdown&&f&&se())},ce=le({[`${c}-menu-without-submenu`]:!e0e(l.filters||[])}),oe=$e=>{if($e.target.checked){const qe=wf(l==null?void 0:l.filters).map(Le=>String(Le));U(qe)}else U([])},pe=$e=>{let{filters:qe}=$e;return(qe||[]).map((Le,Fe)=>{const Ke=String(Le.value),Ve={title:Le.text,key:Le.value!==void 0?Ke:String(Fe)};return Le.children&&(Ve.children=pe({filters:Le.children})),Ve})},ve=$e=>{var qe;return Object.assign(Object.assign({},$e),{text:$e.title,value:$e.key,children:((qe=$e.children)===null||qe===void 0?void 0:qe.map(Le=>ve(Le)))||[]})};let Te;const{direction:Ge,renderEmpty:je}=d.useContext(At);if(typeof l.filterDropdown=="function")Te=l.filterDropdown({prefixCls:`${c}-custom`,setSelectedKeys:$e=>q({selectedKeys:$e}),selectedKeys:j(),confirm:ye,clearFilters:me,filters:l.filters,visible:z,close:()=>{D(!1)}});else if(l.filterDropdown)Te=l.filterDropdown;else{const $e=j()||[],qe=()=>{var Fe;const Ke=(Fe=je==null?void 0:je("Table.filter"))!==null&&Fe!==void 0?Fe:d.createElement(os,{image:os.PRESENTED_IMAGE_SIMPLE,description:x.filterEmptyText,imageStyle:{height:24},style:{margin:0,padding:"16px 0"}});if((l.filters||[]).length===0)return Ke;if(m==="tree")return d.createElement(d.Fragment,null,d.createElement(n$,{filterSearch:g,value:Y,onChange:ue,tablePrefixCls:o,locale:x}),d.createElement("div",{className:`${o}-filter-dropdown-tree`},p?d.createElement(Wf,{checked:$e.length===wf(l.filters).length,indeterminate:$e.length>0&&$e.length<wf(l.filters).length,className:`${o}-filter-dropdown-checkall`,onChange:oe},x.filterCheckall):null,d.createElement(S3,{checkable:!0,selectable:!1,blockNode:!0,multiple:p,checkStrictly:!p,className:`${c}-menu`,onCheck:A,checkedKeys:$e,selectedKeys:$e,showIcon:!1,treeData:pe({filters:l.filters}),autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:Y.trim()?Pe=>typeof g=="function"?g(Y,ve(Pe)):pj(Y,Pe.title):void 0})));const Ve=mj({filters:l.filters||[],filterSearch:g,prefixCls:a,filteredKeys:j(),filterMultiple:p,searchValue:Y}),Ce=Ve.every(Pe=>Pe===null);return d.createElement(d.Fragment,null,d.createElement(n$,{filterSearch:g,value:Y,onChange:ue,tablePrefixCls:o,locale:x}),Ce?Ke:d.createElement(qu,{selectable:!0,multiple:p,prefixCls:`${c}-menu`,className:ce,onSelect:q,onDeselect:q,selectedKeys:$e,getPopupContainer:S,openKeys:P,onOpenChange:V,items:Ve}))},Le=()=>O?Ml((I||[]).map(Fe=>String(Fe)),$e,!0):$e.length===0;Te=d.createElement(d.Fragment,null,qe(),d.createElement("div",{className:`${a}-dropdown-btns`},d.createElement(Dn,{type:"link",size:"small",disabled:Le(),onClick:()=>me()},x.filterReset),d.createElement(Dn,{type:"primary",size:"small",onClick:se},x.filterConfirm)))}l.filterDropdown&&(Te=d.createElement(FF,{selectable:void 0},Te)),Te=d.createElement(Jme,{className:`${a}-dropdown`},Te);const Se=$B({trigger:["click"],placement:Ge==="rtl"?"bottomLeft":"bottomRight",children:(()=>{let $e;return typeof l.filterIcon=="function"?$e=l.filterIcon(L):l.filterIcon?$e=l.filterIcon:$e=d.createElement(K1e,null),d.createElement("span",{role:"button",tabIndex:-1,className:le(`${a}-trigger`,{active:L}),onClick:qe=>{qe.stopPropagation()}},$e)})(),getPopupContainer:S},Object.assign(Object.assign({},_),{rootClassName:le(T,_.rootClassName),open:z,onOpenChange:de,dropdownRender:()=>typeof(_==null?void 0:_.dropdownRender)=="function"?_.dropdownRender(Te):Te}));return d.createElement("div",{className:`${a}-column`},d.createElement("span",{className:`${o}-column-title`},C),d.createElement(Lm,Object.assign({},Se)))},yE=(e,t,n)=>{let r=[];return(e||[]).forEach((i,o)=>{var a;const l=y1(o,n);if(i.filters||"filterDropdown"in i||"onFilter"in i)if("filteredValue"in i){let c=i.filteredValue;"filterDropdown"in i||(c=(a=c==null?void 0:c.map(String))!==null&&a!==void 0?a:c),r.push({column:i,key:_c(i,l),filteredKeys:c,forceFiltered:i.filtered})}else r.push({column:i,key:_c(i,l),filteredKeys:t&&i.defaultFilteredValue?i.defaultFilteredValue:void 0,forceFiltered:i.filtered});"children"in i&&(r=[].concat(Qe(r),Qe(yE(i.children,t,l))))}),r};function gj(e,t,n,r,i,o,a,l,c){return n.map((u,f)=>{const p=y1(f,l),{filterOnClose:m=!0,filterMultiple:g=!0,filterMode:b,filterSearch:E}=u;let x=u;if(x.filters||x.filterDropdown){const C=_c(x,p),S=r.find(T=>{let{key:O}=T;return C===O});x=Object.assign(Object.assign({},x),{title:T=>d.createElement(t0e,{tablePrefixCls:e,prefixCls:`${e}-filter`,dropdownPrefixCls:t,column:x,columnKey:C,filterState:S,filterOnClose:m,filterMultiple:g,filterMode:b,filterSearch:E,triggerFilter:o,locale:i,getPopupContainer:a,rootClassName:c},o2(u.title,T))})}return"children"in x&&(x=Object.assign(Object.assign({},x),{children:gj(e,t,x.children,r,i,o,a,p,c)})),x})}const r$=e=>{const t={};return e.forEach(n=>{let{key:r,filteredKeys:i,column:o}=n;const a=r,{filters:l,filterDropdown:c}=o;if(c)t[a]=i||null;else if(Array.isArray(i)){const u=wf(l);t[a]=u.filter(f=>i.includes(String(f)))}else t[a]=null}),t},bE=(e,t,n)=>t.reduce((i,o)=>{const{column:{onFilter:a,filters:l},filteredKeys:c}=o;return a&&c&&c.length?i.map(u=>Object.assign({},u)).filter(u=>c.some(f=>{const p=wf(l),m=p.findIndex(b=>String(b)===String(f)),g=m!==-1?p[m]:f;return u[n]&&(u[n]=bE(u[n],t,n)),a(g,u)})):i},e),vj=e=>e.flatMap(t=>"children"in t?[t].concat(Qe(vj(t.children||[]))):[t]),n0e=e=>{const{prefixCls:t,dropdownPrefixCls:n,mergedColumns:r,onFilterChange:i,getPopupContainer:o,locale:a,rootClassName:l}=e;Mc();const c=d.useMemo(()=>vj(r||[]),[r]),[u,f]=d.useState(()=>yE(c,!0)),p=d.useMemo(()=>{const E=yE(c,!1);if(E.length===0)return E;let x=!0;if(E.forEach(C=>{let{filteredKeys:S}=C;S!==void 0&&(x=!1)}),x){const C=(c||[]).map((S,T)=>_c(S,y1(T)));return u.filter(S=>{let{key:T}=S;return C.includes(T)}).map(S=>{const T=c[C.findIndex(O=>O===S.key)];return Object.assign(Object.assign({},S),{column:Object.assign(Object.assign({},S.column),T),forceFiltered:T.filtered})})}return E},[c,u]),m=d.useMemo(()=>r$(p),[p]),g=E=>{const x=p.filter(C=>{let{key:S}=C;return S!==E.key});x.push(E),f(x),i(r$(x),x)};return[E=>gj(t,n,E,p,a,g,o,void 0,l),p,m]},r0e=(e,t,n)=>{const r=d.useRef({});function i(o){var a;if(!r.current||r.current.data!==e||r.current.childrenColumnName!==t||r.current.getRowKey!==n){let c=function(u){u.forEach((f,p)=>{const m=n(f,p);l.set(m,f),f&&typeof f=="object"&&t in f&&c(f[t]||[])})};const l=new Map;c(e),r.current={data:e,childrenColumnName:t,kvMap:l,getRowKey:n}}return(a=r.current.kvMap)===null||a===void 0?void 0:a.get(o)}return[i]};var i0e=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const yj=10;function o0e(e,t){const n={current:e.current,pageSize:e.pageSize};return Object.keys(t&&typeof t=="object"?t:{}).forEach(i=>{const o=e[i];typeof o!="function"&&(n[i]=o)}),n}function a0e(e,t,n){const r=n&&typeof n=="object"?n:{},{total:i=0}=r,o=i0e(r,["total"]),[a,l]=d.useState(()=>({current:"defaultCurrent"in o?o.defaultCurrent:1,pageSize:"defaultPageSize"in o?o.defaultPageSize:yj})),c=$B(a,o,{total:i>0?i:e}),u=Math.ceil((i||e)/c.pageSize);c.current>u&&(c.current=u||1);const f=(m,g)=>{l({current:m??1,pageSize:g||c.pageSize})},p=(m,g)=>{var b;n&&((b=n.onChange)===null||b===void 0||b.call(n,m,g)),f(m,g),t(m,g||(c==null?void 0:c.pageSize))};return n===!1?[{},()=>{}]:[Object.assign(Object.assign({},c),{onChange:p}),f]}const uv="ascend",Y4="descend",xy=e=>typeof e.sorter=="object"&&typeof e.sorter.multiple=="number"?e.sorter.multiple:!1,i$=e=>typeof e=="function"?e:e&&typeof e=="object"&&e.compare?e.compare:!1,l0e=(e,t)=>t?e[e.indexOf(t)+1]:e[0],CE=(e,t,n)=>{let r=[];const i=(o,a)=>{r.push({column:o,key:_c(o,a),multiplePriority:xy(o),sortOrder:o.sortOrder})};return(e||[]).forEach((o,a)=>{const l=y1(a,n);o.children?("sortOrder"in o&&i(o,l),r=[].concat(Qe(r),Qe(CE(o.children,t,l)))):o.sorter&&("sortOrder"in o?i(o,l):t&&o.defaultSortOrder&&r.push({column:o,key:_c(o,l),multiplePriority:xy(o),sortOrder:o.defaultSortOrder}))}),r},bj=(e,t,n,r,i,o,a,l)=>(t||[]).map((u,f)=>{const p=y1(f,l);let m=u;if(m.sorter){const g=m.sortDirections||i,b=m.showSorterTooltip===void 0?a:m.showSorterTooltip,E=_c(m,p),x=n.find(R=>{let{key:M}=R;return M===E}),C=x?x.sortOrder:null,S=l0e(g,C);let T;if(u.sortIcon)T=u.sortIcon({sortOrder:C});else{const R=g.includes(uv)&&d.createElement(w1e,{className:le(`${e}-column-sorter-up`,{active:C===uv})}),M=g.includes(Y4)&&d.createElement(S1e,{className:le(`${e}-column-sorter-down`,{active:C===Y4})});T=d.createElement("span",{className:le(`${e}-column-sorter`,{[`${e}-column-sorter-full`]:!!(R&&M)})},d.createElement("span",{className:`${e}-column-sorter-inner`,"aria-hidden":"true"},R,M))}const{cancelSort:O,triggerAsc:I,triggerDesc:_}=o||{};let $=O;S===Y4?$=_:S===uv&&($=I);const k=typeof b=="object"?Object.assign({title:$},b):{title:$};m=Object.assign(Object.assign({},m),{className:le(m.className,{[`${e}-column-sort`]:C}),title:R=>{const M=`${e}-column-sorters`,H=d.createElement("span",{className:`${e}-column-title`},o2(u.title,R)),B=d.createElement("div",{className:M},H,T);return b?typeof b!="boolean"&&(b==null?void 0:b.target)==="sorter-icon"?d.createElement("div",{className:`${M} ${e}-column-sorters-tooltip-target-sorter`},H,d.createElement(sl,Object.assign({},k),T)):d.createElement(sl,Object.assign({},k),B):B},onHeaderCell:R=>{var M;const H=((M=u.onHeaderCell)===null||M===void 0?void 0:M.call(u,R))||{},B=H.onClick,L=H.onKeyDown;H.onClick=W=>{r({column:u,key:E,sortOrder:S,multiplePriority:xy(u)}),B==null||B(W)},H.onKeyDown=W=>{W.keyCode===it.ENTER&&(r({column:u,key:E,sortOrder:S,multiplePriority:xy(u)}),L==null||L(W))};const D=_me(u.title,{}),z=D==null?void 0:D.toString();return C?H["aria-sort"]=C==="ascend"?"ascending":"descending":H["aria-label"]=z||"",H.className=le(H.className,`${e}-column-has-sorters`),H.tabIndex=0,u.ellipsis&&(H.title=(D??"").toString()),H}})}return"children"in m&&(m=Object.assign(Object.assign({},m),{children:bj(e,m.children,n,r,i,o,a,p)})),m}),o$=e=>{const{column:t,sortOrder:n}=e;return{column:t,order:n,field:t.dataIndex,columnKey:t.key}},a$=e=>{const t=e.filter(n=>{let{sortOrder:r}=n;return r}).map(o$);if(t.length===0&&e.length){const n=e.length-1;return Object.assign(Object.assign({},o$(e[n])),{column:void 0,order:void 0,field:void 0,columnKey:void 0})}return t.length<=1?t[0]||{}:t},SE=(e,t,n)=>{const r=t.slice().sort((a,l)=>l.multiplePriority-a.multiplePriority),i=e.slice(),o=r.filter(a=>{let{column:{sorter:l},sortOrder:c}=a;return i$(l)&&c});return o.length?i.sort((a,l)=>{for(let c=0;c<o.length;c+=1){const u=o[c],{column:{sorter:f},sortOrder:p}=u,m=i$(f);if(m&&p){const g=m(a,l,p);if(g!==0)return p===uv?g:-g}}return 0}).map(a=>{const l=a[n];return l?Object.assign(Object.assign({},a),{[n]:SE(l,t,n)}):a}):i},s0e=e=>{const{prefixCls:t,mergedColumns:n,sortDirections:r,tableLocale:i,showSorterTooltip:o,onSorterChange:a}=e,[l,c]=d.useState(CE(n,!0)),u=(E,x)=>{const C=[];return E.forEach((S,T)=>{const O=y1(T,x);if(C.push(_c(S,O)),Array.isArray(S.children)){const I=u(S.children,O);C.push.apply(C,Qe(I))}}),C},f=d.useMemo(()=>{let E=!0;const x=CE(n,!1);if(!x.length){const O=u(n);return l.filter(I=>{let{key:_}=I;return O.includes(_)})}const C=[];function S(O){E?C.push(O):C.push(Object.assign(Object.assign({},O),{sortOrder:null}))}let T=null;return x.forEach(O=>{T===null?(S(O),O.sortOrder&&(O.multiplePriority===!1?E=!1:T=!0)):(T&&O.multiplePriority!==!1||(E=!1),S(O))}),C},[n,l]),p=d.useMemo(()=>{var E,x;const C=f.map(S=>{let{column:T,sortOrder:O}=S;return{column:T,order:O}});return{sortColumns:C,sortColumn:(E=C[0])===null||E===void 0?void 0:E.column,sortOrder:(x=C[0])===null||x===void 0?void 0:x.order}},[f]),m=E=>{let x;E.multiplePriority===!1||!f.length||f[0].multiplePriority===!1?x=[E]:x=[].concat(Qe(f.filter(C=>{let{key:S}=C;return S!==E.key})),[E]),c(x),a(a$(x),x)};return[E=>bj(t,E,f,m,r,i,o),f,p,()=>a$(f)]},Cj=(e,t)=>e.map(r=>{const i=Object.assign({},r);return i.title=o2(r.title,t),"children"in i&&(i.children=Cj(i.children,t)),i}),c0e=e=>[d.useCallback(n=>Cj(n,e),[e])],u0e=oj((e,t)=>{const{_renderTimes:n}=e,{_renderTimes:r}=t;return n!==r}),d0e=lj((e,t)=>{const{_renderTimes:n}=e,{_renderTimes:r}=t;return n!==r}),f0e=e=>{const{componentCls:t,lineWidth:n,lineType:r,tableBorderColor:i,tableHeaderBg:o,tablePaddingVertical:a,tablePaddingHorizontal:l,calc:c}=e,u=`${ie(n)} ${r} ${i}`,f=(p,m,g)=>({[`&${t}-${p}`]:{[`> ${t}-container`]:{[`> ${t}-content, > ${t}-body`]:{"\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ":{[`> ${t}-expanded-row-fixed`]:{margin:`${ie(c(m).mul(-1).equal())}
${ie(c(c(g).add(n)).mul(-1).equal())}`}}}}}});return{[`${t}-wrapper`]:{[`${t}${t}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${t}-title`]:{border:u,borderBottom:0},[`> ${t}-container`]:{borderInlineStart:u,borderTop:u,[`
> ${t}-content,
> ${t}-header,
> ${t}-body,
> ${t}-summary
`]:{"> table":{"\n > thead > tr > th,\n > thead > tr > td,\n > tbody > tr > th,\n > tbody > tr > td,\n > tfoot > tr > th,\n > tfoot > tr > td\n ":{borderInlineEnd:u},"> thead":{"> tr:not(:last-child) > th":{borderBottom:u},"> tr > th::before":{backgroundColor:"transparent !important"}},"\n > thead > tr,\n > tbody > tr,\n > tfoot > tr\n ":{[`> ${t}-cell-fix-right-first::after`]:{borderInlineEnd:u}},"\n > tbody > tr > th,\n > tbody > tr > td\n ":{[`> ${t}-expanded-row-fixed`]:{margin:`${ie(c(a).mul(-1).equal())} ${ie(c(c(l).add(n)).mul(-1).equal())}`,"&::after":{position:"absolute",top:0,insetInlineEnd:n,bottom:0,borderInlineEnd:u,content:'""'}}}}}},[`&${t}-scroll-horizontal`]:{[`> ${t}-container > ${t}-body`]:{"> table > tbody":{[`
> tr${t}-expanded-row,
> tr${t}-placeholder
`]:{"> th, > td":{borderInlineEnd:0}}}}}},f("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle)),f("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall)),{[`> ${t}-footer`]:{border:u,borderTop:0}}),[`${t}-cell`]:{[`${t}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${ie(n)} 0 ${ie(n)} ${o}`}},[`${t}-bordered ${t}-cell-scrollbar`]:{borderInlineEnd:u}}}},h0e=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-cell-ellipsis`]:Object.assign(Object.assign({},al),{wordBreak:"keep-all",[`
&${t}-cell-fix-left-last,
&${t}-cell-fix-right-first
`]:{overflow:"visible",[`${t}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${t}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},p0e=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-tbody > tr${t}-placeholder`]:{textAlign:"center",color:e.colorTextDisabled,"\n &:hover > th,\n &:hover > td,\n ":{background:e.colorBgContainer}}}}},m0e=e=>{const{componentCls:t,antCls:n,motionDurationSlow:r,lineWidth:i,paddingXS:o,lineType:a,tableBorderColor:l,tableExpandIconBg:c,tableExpandColumnWidth:u,borderRadius:f,tablePaddingVertical:p,tablePaddingHorizontal:m,tableExpandedRowBg:g,paddingXXS:b,expandIconMarginTop:E,expandIconSize:x,expandIconHalfInner:C,expandIconScale:S,calc:T}=e,O=`${ie(i)} ${a} ${l}`,I=T(b).sub(i).equal();return{[`${t}-wrapper`]:{[`${t}-expand-icon-col`]:{width:u},[`${t}-row-expand-icon-cell`]:{textAlign:"center",[`${t}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${t}-row-indent`]:{height:1,float:"left"},[`${t}-row-expand-icon`]:Object.assign(Object.assign({},u8(e)),{position:"relative",float:"left",width:x,height:x,color:"inherit",lineHeight:ie(x),background:c,border:O,borderRadius:f,transform:`scale(${S})`,"&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${r} ease-out`,content:'""'},"&::before":{top:C,insetInlineEnd:I,insetInlineStart:I,height:i},"&::after":{top:I,bottom:I,insetInlineStart:C,width:i,transform:"rotate(90deg)"},"&-collapsed::before":{transform:"rotate(-180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"},"&-spaced":{"&::before, &::after":{display:"none",content:"none"},background:"transparent",border:0,visibility:"hidden"}}),[`${t}-row-indent + ${t}-row-expand-icon`]:{marginTop:E,marginInlineEnd:o},[`tr${t}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:g}},[`${n}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"100%"}}},[`${t}-expanded-row-fixed`]:{position:"relative",margin:`${ie(T(p).mul(-1).equal())} ${ie(T(m).mul(-1).equal())}`,padding:`${ie(p)} ${ie(m)}`}}}},g0e=e=>{const{componentCls:t,antCls:n,iconCls:r,tableFilterDropdownWidth:i,tableFilterDropdownSearchWidth:o,paddingXXS:a,paddingXS:l,colorText:c,lineWidth:u,lineType:f,tableBorderColor:p,headerIconColor:m,fontSizeSM:g,tablePaddingHorizontal:b,borderRadius:E,motionDurationSlow:x,colorTextDescription:C,colorPrimary:S,tableHeaderFilterActiveBg:T,colorTextDisabled:O,tableFilterDropdownBg:I,tableFilterDropdownHeight:_,controlItemBgHover:$,controlItemBgActive:k,boxShadowSecondary:R,filterDropdownMenuBg:M,calc:H}=e,B=`${n}-dropdown`,L=`${t}-filter-dropdown`,D=`${n}-tree`,z=`${ie(u)} ${f} ${p}`;return[{[`${t}-wrapper`]:{[`${t}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${t}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:H(a).mul(-1).equal(),marginInline:`${ie(a)} ${ie(H(b).div(2).mul(-1).equal())}`,padding:`0 ${ie(a)}`,color:m,fontSize:g,borderRadius:E,cursor:"pointer",transition:`all ${x}`,"&:hover":{color:C,background:T},"&.active":{color:S}}}},{[`${n}-dropdown`]:{[L]:Object.assign(Object.assign({},Fn(e)),{minWidth:i,backgroundColor:I,borderRadius:E,boxShadow:R,overflow:"hidden",[`${B}-menu`]:{maxHeight:_,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:M,"&:empty::after":{display:"block",padding:`${ie(l)} 0`,color:O,fontSize:g,textAlign:"center",content:'"Not Found"'}},[`${L}-tree`]:{paddingBlock:`${ie(l)} 0`,paddingInline:l,[D]:{padding:0},[`${D}-treenode ${D}-node-content-wrapper:hover`]:{backgroundColor:$},[`${D}-treenode-checkbox-checked ${D}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:k}}},[`${L}-search`]:{padding:l,borderBottom:z,"&-input":{input:{minWidth:o},[r]:{color:O}}},[`${L}-checkall`]:{width:"100%",marginBottom:a,marginInlineStart:a},[`${L}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${ie(H(l).sub(u).equal())} ${ie(l)}`,overflow:"hidden",borderTop:z}})}},{[`${n}-dropdown ${L}, ${L}-submenu`]:{[`${n}-checkbox-wrapper + span`]:{paddingInlineStart:l,color:c},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},v0e=e=>{const{componentCls:t,lineWidth:n,colorSplit:r,motionDurationSlow:i,zIndexTableFixed:o,tableBg:a,zIndexTableSticky:l,calc:c}=e,u=r;return{[`${t}-wrapper`]:{[`
${t}-cell-fix-left,
${t}-cell-fix-right
`]:{position:"sticky !important",zIndex:o,background:a},[`
${t}-cell-fix-left-first::after,
${t}-cell-fix-left-last::after
`]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:c(n).mul(-1).equal(),width:30,transform:"translateX(100%)",transition:`box-shadow ${i}`,content:'""',pointerEvents:"none"},[`${t}-cell-fix-left-all::after`]:{display:"none"},[`
${t}-cell-fix-right-first::after,
${t}-cell-fix-right-last::after
`]:{position:"absolute",top:0,bottom:c(n).mul(-1).equal(),left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${i}`,content:'""',pointerEvents:"none"},[`${t}-container`]:{position:"relative","&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:c(l).add(1).equal({unit:!1}),width:30,transition:`box-shadow ${i}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${t}-ping-left`]:{[`&:not(${t}-has-fix-left) ${t}-container::before`]:{boxShadow:`inset 10px 0 8px -8px ${u}`},[`
${t}-cell-fix-left-first::after,
${t}-cell-fix-left-last::after
`]:{boxShadow:`inset 10px 0 8px -8px ${u}`},[`${t}-cell-fix-left-last::before`]:{backgroundColor:"transparent !important"}},[`${t}-ping-right`]:{[`&:not(${t}-has-fix-right) ${t}-container::after`]:{boxShadow:`inset -10px 0 8px -8px ${u}`},[`
${t}-cell-fix-right-first::after,
${t}-cell-fix-right-last::after
`]:{boxShadow:`inset -10px 0 8px -8px ${u}`}},[`${t}-fixed-column-gapped`]:{[`
${t}-cell-fix-left-first::after,
${t}-cell-fix-left-last::after,
${t}-cell-fix-right-first::after,
${t}-cell-fix-right-last::after
`]:{boxShadow:"none"}}}}},y0e=e=>{const{componentCls:t,antCls:n,margin:r}=e;return{[`${t}-wrapper`]:{[`${t}-pagination${n}-pagination`]:{margin:`${ie(r)} 0`},[`${t}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:e.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}},b0e=e=>{const{componentCls:t,tableRadius:n}=e;return{[`${t}-wrapper`]:{[t]:{[`${t}-title, ${t}-header`]:{borderRadius:`${ie(n)} ${ie(n)} 0 0`},[`${t}-title + ${t}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${t}-header, table`]:{borderRadius:0},"table > thead > tr:first-child":{"th:first-child, th:last-child, td:first-child, td:last-child":{borderRadius:0}}},"&-container":{borderStartStartRadius:n,borderStartEndRadius:n,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:n},"> *:last-child":{borderStartEndRadius:n}}},"&-footer":{borderRadius:`0 0 ${ie(n)} ${ie(n)}`}}}}},C0e=e=>{const{componentCls:t}=e;return{[`${t}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${t}-pagination-left`]:{justifyContent:"flex-end"},[`${t}-pagination-right`]:{justifyContent:"flex-start"},[`${t}-row-expand-icon`]:{float:"right","&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},[`${t}-container`]:{"&::before":{insetInlineStart:"unset",insetInlineEnd:0},"&::after":{insetInlineStart:0,insetInlineEnd:"unset"},[`${t}-row-indent`]:{float:"right"}}}}},S0e=e=>{const{componentCls:t,antCls:n,iconCls:r,fontSizeIcon:i,padding:o,paddingXS:a,headerIconColor:l,headerIconHoverColor:c,tableSelectionColumnWidth:u,tableSelectedRowBg:f,tableSelectedRowHoverBg:p,tableRowHoverBg:m,tablePaddingHorizontal:g,calc:b}=e;return{[`${t}-wrapper`]:{[`${t}-selection-col`]:{width:u,[`&${t}-selection-col-with-dropdown`]:{width:b(u).add(i).add(b(o).div(4)).equal()}},[`${t}-bordered ${t}-selection-col`]:{width:b(u).add(b(a).mul(2)).equal(),[`&${t}-selection-col-with-dropdown`]:{width:b(u).add(i).add(b(o).div(4)).add(b(a).mul(2)).equal()}},[`
table tr th${t}-selection-column,
table tr td${t}-selection-column,
${t}-selection-column
`]:{paddingInlineEnd:e.paddingXS,paddingInlineStart:e.paddingXS,textAlign:"center",[`${n}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${t}-selection-column${t}-cell-fix-left`]:{zIndex:b(e.zIndexTableFixed).add(1).equal({unit:!1})},[`table tr th${t}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${t}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${t}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:ie(b(g).div(4).equal()),[r]:{color:l,fontSize:i,verticalAlign:"baseline","&:hover":{color:c}}},[`${t}-tbody`]:{[`${t}-row`]:{[`&${t}-row-selected`]:{[`> ${t}-cell`]:{background:f,"&-row-hover":{background:p}}},[`> ${t}-cell-row-hover`]:{background:m}}}}}},E0e=e=>{const{componentCls:t,tableExpandColumnWidth:n,calc:r}=e,i=(o,a,l,c)=>({[`${t}${t}-${o}`]:{fontSize:c,[`
${t}-title,
${t}-footer,
${t}-cell,
${t}-thead > tr > th,
${t}-tbody > tr > th,
${t}-tbody > tr > td,
tfoot > tr > th,
tfoot > tr > td
`]:{padding:`${ie(a)} ${ie(l)}`},[`${t}-filter-trigger`]:{marginInlineEnd:ie(r(l).div(2).mul(-1).equal())},[`${t}-expanded-row-fixed`]:{margin:`${ie(r(a).mul(-1).equal())} ${ie(r(l).mul(-1).equal())}`},[`${t}-tbody`]:{[`${t}-wrapper:only-child ${t}`]:{marginBlock:ie(r(a).mul(-1).equal()),marginInline:`${ie(r(n).sub(l).equal())} ${ie(r(l).mul(-1).equal())}`}},[`${t}-selection-extra`]:{paddingInlineStart:ie(r(l).div(4).equal())}}});return{[`${t}-wrapper`]:Object.assign(Object.assign({},i("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle,e.tableFontSizeMiddle)),i("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall,e.tableFontSizeSmall))}},x0e=e=>{const{componentCls:t,marginXXS:n,fontSizeIcon:r,headerIconColor:i,headerIconHoverColor:o}=e;return{[`${t}-wrapper`]:{[`${t}-thead th${t}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}, left 0s`,"&:hover":{background:e.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:e.colorPrimary},[`
&${t}-cell-fix-left:hover,
&${t}-cell-fix-right:hover
`]:{background:e.tableFixedHeaderSortActiveBg}},[`${t}-thead th${t}-column-sort`]:{background:e.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${t}-column-sort`]:{background:e.tableBodySortBg},[`${t}-column-title`]:{position:"relative",zIndex:1,flex:1},[`${t}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${t}-column-sorters-tooltip-target-sorter`]:{"&::after":{content:"none"}},[`${t}-column-sorter`]:{marginInlineStart:n,color:i,fontSize:0,transition:`color ${e.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:r,"&.active":{color:e.colorPrimary}},[`${t}-column-sorter-up + ${t}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${t}-column-sorters:hover ${t}-column-sorter`]:{color:o}}}},w0e=e=>{const{componentCls:t,opacityLoading:n,tableScrollThumbBg:r,tableScrollThumbBgHover:i,tableScrollThumbSize:o,tableScrollBg:a,zIndexTableSticky:l,stickyScrollBarBorderRadius:c,lineWidth:u,lineType:f,tableBorderColor:p}=e,m=`${ie(u)} ${f} ${p}`;return{[`${t}-wrapper`]:{[`${t}-sticky`]:{"&-holder":{position:"sticky",zIndex:l,background:e.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${ie(o)} !important`,zIndex:l,display:"flex",alignItems:"center",background:a,borderTop:m,opacity:n,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:o,backgroundColor:r,borderRadius:c,transition:`all ${e.motionDurationSlow}, transform none`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:i}}}}}}},l$=e=>{const{componentCls:t,lineWidth:n,tableBorderColor:r,calc:i}=e,o=`${ie(n)} ${e.lineType} ${r}`;return{[`${t}-wrapper`]:{[`${t}-summary`]:{position:"relative",zIndex:e.zIndexTableFixed,background:e.tableBg,"> tr":{"> th, > td":{borderBottom:o}}},[`div${t}-summary`]:{boxShadow:`0 ${ie(i(n).mul(-1).equal())} 0 ${r}`}}}},T0e=e=>{const{componentCls:t,motionDurationMid:n,lineWidth:r,lineType:i,tableBorderColor:o,calc:a}=e,l=`${ie(r)} ${i} ${o}`,c=`${t}-expanded-row-cell`;return{[`${t}-wrapper`]:{[`${t}-tbody-virtual`]:{[`${t}-tbody-virtual-holder-inner`]:{[`
& > ${t}-row,
& > div:not(${t}-row) > ${t}-row
`]:{display:"flex",boxSizing:"border-box",width:"100%"}},[`${t}-cell`]:{borderBottom:l,transition:`background ${n}`},[`${t}-expanded-row`]:{[`${c}${c}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${ie(r)})`,borderInlineEnd:"none"}}},[`${t}-bordered`]:{[`${t}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:l,position:"absolute"},[`${t}-cell`]:{borderInlineEnd:l,[`&${t}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:a(r).mul(-1).equal(),borderInlineStart:l}}},[`&${t}-virtual`]:{[`${t}-placeholder ${t}-cell`]:{borderInlineEnd:l,borderBottom:l}}}}}},_0e=e=>{const{componentCls:t,fontWeightStrong:n,tablePaddingVertical:r,tablePaddingHorizontal:i,tableExpandColumnWidth:o,lineWidth:a,lineType:l,tableBorderColor:c,tableFontSize:u,tableBg:f,tableRadius:p,tableHeaderTextColor:m,motionDurationMid:g,tableHeaderBg:b,tableHeaderCellSplitColor:E,tableFooterTextColor:x,tableFooterBg:C,calc:S}=e,T=`${ie(a)} ${l} ${c}`;return{[`${t}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},ll()),{[t]:Object.assign(Object.assign({},Fn(e)),{fontSize:u,background:f,borderRadius:`${ie(p)} ${ie(p)} 0 0`,scrollbarColor:`${e.tableScrollThumbBg} ${e.tableScrollBg}`}),table:{width:"100%",textAlign:"start",borderRadius:`${ie(p)} ${ie(p)} 0 0`,borderCollapse:"separate",borderSpacing:0},[`
${t}-cell,
${t}-thead > tr > th,
${t}-tbody > tr > th,
${t}-tbody > tr > td,
tfoot > tr > th,
tfoot > tr > td
`]:{position:"relative",padding:`${ie(r)} ${ie(i)}`,overflowWrap:"break-word"},[`${t}-title`]:{padding:`${ie(r)} ${ie(i)}`},[`${t}-thead`]:{"\n > tr > th,\n > tr > td\n ":{position:"relative",color:m,fontWeight:n,textAlign:"start",background:b,borderBottom:T,transition:`background ${g} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${t}-selection-column):not(${t}-row-expand-icon-cell):not([colspan])::before`]:{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:E,transform:"translateY(-50%)",transition:`background-color ${g}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${t}-tbody`]:{"> tr":{"> th, > td":{transition:`background ${g}, border-color ${g}`,borderBottom:T,[`
> ${t}-wrapper:only-child,
> ${t}-expanded-row-fixed > ${t}-wrapper:only-child
`]:{[t]:{marginBlock:ie(S(r).mul(-1).equal()),marginInline:`${ie(S(o).sub(i).equal())}
${ie(S(i).mul(-1).equal())}`,[`${t}-tbody > tr:last-child > td`]:{borderBottom:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:m,fontWeight:n,textAlign:"start",background:b,borderBottom:T,transition:`background ${g} ease`}}},[`${t}-footer`]:{padding:`${ie(r)} ${ie(i)}`,color:x,background:C}})}},O0e=e=>{const{colorFillAlter:t,colorBgContainer:n,colorTextHeading:r,colorFillSecondary:i,colorFillContent:o,controlItemBgActive:a,controlItemBgActiveHover:l,padding:c,paddingSM:u,paddingXS:f,colorBorderSecondary:p,borderRadiusLG:m,controlHeight:g,colorTextPlaceholder:b,fontSize:E,fontSizeSM:x,lineHeight:C,lineWidth:S,colorIcon:T,colorIconHover:O,opacityLoading:I,controlInteractiveSize:_}=e,$=new er(i).onBackground(n).toHexShortString(),k=new er(o).onBackground(n).toHexShortString(),R=new er(t).onBackground(n).toHexShortString(),M=new er(T),H=new er(O),B=_/2-S,L=B*2+S*3;return{headerBg:R,headerColor:r,headerSortActiveBg:$,headerSortHoverBg:k,bodySortBg:R,rowHoverBg:R,rowSelectedBg:a,rowSelectedHoverBg:l,rowExpandedBg:t,cellPaddingBlock:c,cellPaddingInline:c,cellPaddingBlockMD:u,cellPaddingInlineMD:f,cellPaddingBlockSM:f,cellPaddingInlineSM:f,borderColor:p,headerBorderRadius:m,footerBg:R,footerColor:r,cellFontSize:E,cellFontSizeMD:E,cellFontSizeSM:E,headerSplitColor:p,fixedHeaderSortActiveBg:$,headerFilterHoverBg:o,filterDropdownMenuBg:n,filterDropdownBg:n,expandIconBg:n,selectionColumnWidth:g,stickyScrollBarBg:b,stickyScrollBarBorderRadius:100,expandIconMarginTop:(E*C-S*3)/2-Math.ceil((x*1.4-S*3)/2),headerIconColor:M.clone().setAlpha(M.getAlpha()*I).toRgbString(),headerIconHoverColor:H.clone().setAlpha(H.getAlpha()*I).toRgbString(),expandIconHalfInner:B,expandIconSize:L,expandIconScale:_/L}},s$=2,I0e=Mn("Table",e=>{const{colorTextHeading:t,colorSplit:n,colorBgContainer:r,controlInteractiveSize:i,headerBg:o,headerColor:a,headerSortActiveBg:l,headerSortHoverBg:c,bodySortBg:u,rowHoverBg:f,rowSelectedBg:p,rowSelectedHoverBg:m,rowExpandedBg:g,cellPaddingBlock:b,cellPaddingInline:E,cellPaddingBlockMD:x,cellPaddingInlineMD:C,cellPaddingBlockSM:S,cellPaddingInlineSM:T,borderColor:O,footerBg:I,footerColor:_,headerBorderRadius:$,cellFontSize:k,cellFontSizeMD:R,cellFontSizeSM:M,headerSplitColor:H,fixedHeaderSortActiveBg:B,headerFilterHoverBg:L,filterDropdownBg:D,expandIconBg:z,selectionColumnWidth:W,stickyScrollBarBg:j,calc:U}=e,q=hn(e,{tableFontSize:k,tableBg:r,tableRadius:$,tablePaddingVertical:b,tablePaddingHorizontal:E,tablePaddingVerticalMiddle:x,tablePaddingHorizontalMiddle:C,tablePaddingVerticalSmall:S,tablePaddingHorizontalSmall:T,tableBorderColor:O,tableHeaderTextColor:a,tableHeaderBg:o,tableFooterTextColor:_,tableFooterBg:I,tableHeaderCellSplitColor:H,tableHeaderSortBg:l,tableHeaderSortHoverBg:c,tableBodySortBg:u,tableFixedHeaderSortActiveBg:B,tableHeaderFilterActiveBg:L,tableFilterDropdownBg:D,tableRowHoverBg:f,tableSelectedRowBg:p,tableSelectedRowHoverBg:m,zIndexTableFixed:s$,zIndexTableSticky:U(s$).add(1).equal({unit:!1}),tableFontSizeMiddle:R,tableFontSizeSmall:M,tableSelectionColumnWidth:W,tableExpandIconBg:z,tableExpandColumnWidth:U(i).add(U(e.padding).mul(2)).equal(),tableExpandedRowBg:g,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:j,tableScrollThumbBgHover:t,tableScrollBg:n});return[_0e(q),y0e(q),l$(q),x0e(q),g0e(q),f0e(q),b0e(q),m0e(q),l$(q),p0e(q),S0e(q),v0e(q),w0e(q),h0e(q),E0e(q),C0e(q),T0e(q)]},O0e,{unitless:{expandIconScale:!0}}),$0e=[],N0e=(e,t)=>{var n,r;const{prefixCls:i,className:o,rootClassName:a,style:l,size:c,bordered:u,dropdownPrefixCls:f,dataSource:p,pagination:m,rowSelection:g,rowKey:b="key",rowClassName:E,columns:x,children:C,childrenColumnName:S,onChange:T,getPopupContainer:O,loading:I,expandIcon:_,expandable:$,expandedRowRender:k,expandIconColumnIndex:R,indentSize:M,scroll:H,sortDirections:B,locale:L,showSorterTooltip:D={target:"full-header"},virtual:z}=e;Mc();const W=d.useMemo(()=>x||m3(C),[x,C]),j=d.useMemo(()=>W.some(rt=>rt.responsive),[W]),U=zb(j),q=d.useMemo(()=>{const rt=new Set(Object.keys(U).filter(He=>U[He]));return W.filter(He=>!He.responsive||He.responsive.some(Ue=>rt.has(Ue)))},[W,U]),A=tr(e,["className","style","columns"]),{locale:P=Pl,direction:Z,table:V,renderEmpty:Y,getPrefixCls:ee,getPopupContainer:ue}=d.useContext(At),ne=vo(c),se=Object.assign(Object.assign({},P.Table),L),me=p||$0e,ye=ee("table",i),de=ee("dropdown",f),[,ce]=Bi(),oe=Kr(ye),[pe,ve,Te]=I0e(ye,oe),Ge=Object.assign(Object.assign({childrenColumnName:S,expandIconColumnIndex:R},$),{expandIcon:(n=$==null?void 0:$.expandIcon)!==null&&n!==void 0?n:(r=V==null?void 0:V.expandable)===null||r===void 0?void 0:r.expandIcon}),{childrenColumnName:je="children"}=Ge,Je=d.useMemo(()=>me.some(rt=>rt==null?void 0:rt[je])?"nest":k||$!=null&&$.expandedRowRender?"row":null,[me]),Se={body:d.useRef()},$e=Tme(ye),qe=d.useRef(null),Le=d.useRef(null);xme(t,()=>Object.assign(Object.assign({},Le.current),{nativeElement:qe.current}));const Fe=d.useMemo(()=>typeof b=="function"?b:rt=>rt==null?void 0:rt[b],[b]),[Ke]=r0e(me,je,Fe),Ve={},Ce=function(rt,He){let Ue=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;var ft,Ct,zt,Tt;const Pt=Object.assign(Object.assign({},Ve),rt);Ue&&((ft=Ve.resetPagination)===null||ft===void 0||ft.call(Ve),!((Ct=Pt.pagination)===null||Ct===void 0)&&Ct.current&&(Pt.pagination.current=1),m&&((zt=m.onChange)===null||zt===void 0||zt.call(m,1,(Tt=Pt.pagination)===null||Tt===void 0?void 0:Tt.pageSize))),H&&H.scrollToFirstRowOnChange!==!1&&Se.body.current&&LJ(0,{getContainer:()=>Se.body.current}),T==null||T(Pt.pagination,Pt.filters,Pt.sorter,{currentDataSource:bE(SE(me,Pt.sorterStates,je),Pt.filterStates,je),action:He})},Pe=(rt,He)=>{Ce({sorter:rt,sorterStates:He},"sort",!1)},[We,Ze,ut,Be]=s0e({prefixCls:ye,mergedColumns:q,onSorterChange:Pe,sortDirections:B||["ascend","descend"],tableLocale:se,showSorterTooltip:D}),ot=d.useMemo(()=>SE(me,Ze,je),[me,Ze]);Ve.sorter=Be(),Ve.sorterStates=Ze;const re=(rt,He)=>{Ce({filters:rt,filterStates:He},"filter",!0)},[Ie,Re,Ae]=n0e({prefixCls:ye,locale:se,dropdownPrefixCls:de,mergedColumns:q,onFilterChange:re,getPopupContainer:O||ue,rootClassName:le(a,oe)}),Ye=bE(ot,Re,je);Ve.filters=Ae,Ve.filterStates=Re;const mt=d.useMemo(()=>{const rt={};return Object.keys(Ae).forEach(He=>{Ae[He]!==null&&(rt[He]=Ae[He])}),Object.assign(Object.assign({},ut),{filters:rt})},[ut,Ae]),[Nt]=c0e(mt),qt=(rt,He)=>{Ce({pagination:Object.assign(Object.assign({},Ve.pagination),{current:rt,pageSize:He})},"paginate")},[Ft,Kt]=a0e(Ye.length,qt,m);Ve.pagination=m===!1?{}:o0e(Ft,m),Ve.resetPagination=Kt;const Qt=d.useMemo(()=>{if(m===!1||!Ft.pageSize)return Ye;const{current:rt=1,total:He,pageSize:Ue=yj}=Ft;return Ye.length<He?Ye.length>Ue?Ye.slice((rt-1)*Ue,rt*Ue):Ye:Ye.slice((rt-1)*Ue,rt*Ue)},[!!m,Ye,Ft==null?void 0:Ft.current,Ft==null?void 0:Ft.pageSize,Ft==null?void 0:Ft.total]),[Zt,Mt]=Sme({prefixCls:ye,data:Ye,pageData:Qt,getRowKey:Fe,getRecordByKey:Ke,expandType:Je,childrenColumnName:je,locale:se,getPopupContainer:O||ue},g),St=(rt,He,Ue)=>{let ft;return typeof E=="function"?ft=le(E(rt,He,Ue)):ft=le(E),le({[`${ye}-row-selected`]:Mt.has(Fe(rt,He))},ft)};Ge.__PARENT_RENDER_ICON__=Ge.expandIcon,Ge.expandIcon=Ge.expandIcon||_||wme(se),Je==="nest"&&Ge.expandIconColumnIndex===void 0?Ge.expandIconColumnIndex=g?1:0:Ge.expandIconColumnIndex>0&&g&&(Ge.expandIconColumnIndex-=1),typeof Ge.indentSize!="number"&&(Ge.indentSize=typeof M=="number"?M:15);const yt=d.useCallback(rt=>Nt(Zt(Ie(We(rt)))),[We,Ie,Zt]);let lt,fe;if(m!==!1&&(Ft!=null&&Ft.total)){let rt;Ft.size?rt=Ft.size:rt=ne==="small"||ne==="middle"?"small":void 0;const He=Ct=>d.createElement(hfe,Object.assign({},Ft,{className:le(`${ye}-pagination ${ye}-pagination-${Ct}`,Ft.className),size:rt})),Ue=Z==="rtl"?"left":"right",{position:ft}=Ft;if(ft!==null&&Array.isArray(ft)){const Ct=ft.find(Pt=>Pt.includes("top")),zt=ft.find(Pt=>Pt.includes("bottom")),Tt=ft.every(Pt=>`${Pt}`=="none");!Ct&&!zt&&!Tt&&(fe=He(Ue)),Ct&&(lt=He(Ct.toLowerCase().replace("top",""))),zt&&(fe=He(zt.toLowerCase().replace("bottom","")))}else fe=He(Ue)}let xe;typeof I=="boolean"?xe={spinning:I}:typeof I=="object"&&(xe=Object.assign({spinning:!0},I));const ge=le(Te,oe,`${ye}-wrapper`,V==null?void 0:V.className,{[`${ye}-wrapper-rtl`]:Z==="rtl"},o,a,ve),Ne=Object.assign(Object.assign({},V==null?void 0:V.style),l),Xe=typeof(L==null?void 0:L.emptyText)<"u"?L.emptyText:(Y==null?void 0:Y("Table"))||d.createElement(tF,{componentName:"Table"}),nt=z?d0e:u0e,pt={},st=d.useMemo(()=>{const{fontSize:rt,lineHeight:He,padding:Ue,paddingXS:ft,paddingSM:Ct}=ce,zt=Math.floor(rt*He);switch(ne){case"large":return Ue*2+zt;case"small":return ft*2+zt;default:return Ct*2+zt}},[ce,ne]);return z&&(pt.listItemHeight=st),pe(d.createElement("div",{ref:qe,className:ge,style:Ne},d.createElement(Dm,Object.assign({spinning:!1},xe),lt,d.createElement(nt,Object.assign({},pt,A,{ref:Le,columns:q,direction:Z,expandable:Ge,prefixCls:ye,className:le({[`${ye}-middle`]:ne==="middle",[`${ye}-small`]:ne==="small",[`${ye}-bordered`]:u,[`${ye}-empty`]:me.length===0},Te,oe,ve),data:Qt,rowKey:Fe,rowClassName:St,emptyText:Xe,internalHooks:Bm,internalRefs:Se,transformColumns:yt,getContainerWidth:$e})),fe)))},A0e=d.forwardRef(N0e),k0e=(e,t)=>{const n=d.useRef(0);return n.current+=1,d.createElement(A0e,Object.assign({},e,{ref:t,_renderTimes:n.current}))},Bl=d.forwardRef(k0e);Bl.SELECTION_COLUMN=Us;Bl.EXPAND_COLUMN=Ys;Bl.SELECTION_ALL=pE;Bl.SELECTION_INVERT=mE;Bl.SELECTION_NONE=gE;Bl.Column=ume;Bl.ColumnGroup=dme;Bl.Summary=qB;const R0e=e=>{const{paddingXXS:t,lineWidth:n,tagPaddingHorizontal:r,componentCls:i,calc:o}=e,a=o(r).sub(n).equal(),l=o(t).sub(n).equal();return{[i]:Object.assign(Object.assign({},Fn(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:a,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",background:e.defaultBg,border:`${ie(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:"start",position:"relative",[`&${i}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.defaultColor},[`${i}-close-icon`]:{marginInlineStart:l,fontSize:e.tagIconSize,color:e.colorTextDescription,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},[`&${i}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${e.iconCls}-close, ${e.iconCls}-close:hover`]:{color:e.colorTextLightSolid}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${i}-checkable-checked):hover`]:{color:e.colorPrimary,backgroundColor:e.colorFillSecondary},"&:active, &-checked":{color:e.colorTextLightSolid},"&-checked":{backgroundColor:e.colorPrimary,"&:hover":{backgroundColor:e.colorPrimaryHover}},"&:active":{backgroundColor:e.colorPrimaryActive}},"&-hidden":{display:"none"},[`> ${e.iconCls} + span, > span + ${e.iconCls}`]:{marginInlineStart:a}}),[`${i}-borderless`]:{borderColor:"transparent",background:e.tagBorderlessBg}}},E3=e=>{const{lineWidth:t,fontSizeIcon:n,calc:r}=e,i=e.fontSizeSM;return hn(e,{tagFontSize:i,tagLineHeight:ie(r(e.lineHeightSM).mul(i).equal()),tagIconSize:r(n).sub(r(t).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:e.defaultBg})},x3=e=>({defaultBg:new er(e.colorFillQuaternary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText}),Sj=Mn("Tag",e=>{const t=E3(e);return R0e(t)},x3);var M0e=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const P0e=d.forwardRef((e,t)=>{const{prefixCls:n,style:r,className:i,checked:o,onChange:a,onClick:l}=e,c=M0e(e,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:u,tag:f}=d.useContext(At),p=C=>{a==null||a(!o),l==null||l(C)},m=u("tag",n),[g,b,E]=Sj(m),x=le(m,`${m}-checkable`,{[`${m}-checkable-checked`]:o},f==null?void 0:f.className,i,b,E);return g(d.createElement("span",Object.assign({},c,{ref:t,style:Object.assign(Object.assign({},r),f==null?void 0:f.style),className:x,onClick:p})))}),L0e=e=>yL(e,(t,n)=>{let{textColor:r,lightBorderColor:i,lightColor:o,darkColor:a}=n;return{[`${e.componentCls}${e.componentCls}-${t}`]:{color:r,background:o,borderColor:i,"&-inverse":{color:e.colorTextLightSolid,background:a,borderColor:a},[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}}),D0e=s1(["Tag","preset"],e=>{const t=E3(e);return L0e(t)},x3);function F0e(e){return typeof e!="string"?e:e.charAt(0).toUpperCase()+e.slice(1)}const lg=(e,t,n)=>{const r=F0e(n);return{[`${e.componentCls}${e.componentCls}-${t}`]:{color:e[`color${n}`],background:e[`color${r}Bg`],borderColor:e[`color${r}Border`],[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}},B0e=s1(["Tag","status"],e=>{const t=E3(e);return[lg(t,"success","Success"),lg(t,"processing","Info"),lg(t,"error","Error"),lg(t,"warning","Warning")]},x3);var j0e=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const H0e=d.forwardRef((e,t)=>{const{prefixCls:n,className:r,rootClassName:i,style:o,children:a,icon:l,color:c,onClose:u,bordered:f=!0,visible:p}=e,m=j0e(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","bordered","visible"]),{getPrefixCls:g,direction:b,tag:E}=d.useContext(At),[x,C]=d.useState(!0),S=tr(m,["closeIcon","closable"]);d.useEffect(()=>{p!==void 0&&C(p)},[p]);const T=fF(c),O=vae(c),I=T||O,_=Object.assign(Object.assign({backgroundColor:c&&!I?c:void 0},E==null?void 0:E.style),o),$=g("tag",n),[k,R,M]=Sj($),H=le($,E==null?void 0:E.className,{[`${$}-${c}`]:I,[`${$}-has-color`]:c&&!I,[`${$}-hidden`]:!x,[`${$}-rtl`]:b==="rtl",[`${$}-borderless`]:!f},r,i,R,M),B=U=>{U.stopPropagation(),u==null||u(U),!U.defaultPrevented&&C(!1)},[,L]=ED(cy(e),cy(E),{closable:!1,closeIconRender:U=>{const q=d.createElement("span",{className:`${$}-close-icon`,onClick:B},U);return BL(U,q,A=>({onClick:P=>{var Z;(Z=A==null?void 0:A.onClick)===null||Z===void 0||Z.call(A,P),B(P)},className:le(A==null?void 0:A.className,`${$}-close-icon`)}))}}),D=typeof m.onClick=="function"||a&&a.type==="a",z=l||null,W=z?d.createElement(d.Fragment,null,z,a&&d.createElement("span",null,a)):a,j=d.createElement("span",Object.assign({},S,{ref:t,className:H,style:_}),W,L,T&&d.createElement(D0e,{key:"preset",prefixCls:$}),O&&d.createElement(B0e,{key:"status",prefixCls:$}));return k(D?d.createElement(Nb,{component:"Tag"},j):j)}),w3=H0e;w3.CheckableTag=P0e;const z0e=(e,t,n,r)=>{const{titleMarginBottom:i,fontWeightStrong:o}=r;return{marginBottom:i,color:n,fontWeight:o,fontSize:e,lineHeight:t}},W0e=e=>{const t=[1,2,3,4,5],n={};return t.forEach(r=>{n[`
h${r}&,
div&-h${r},
div&-h${r} > textarea,
h${r}
`]=z0e(e[`fontSizeHeading${r}`],e[`lineHeightHeading${r}`],e.colorTextHeading,e)}),n},U0e=e=>{const{componentCls:t}=e;return{"a&, a":Object.assign(Object.assign({},u8(e)),{userSelect:"text",[`&[disabled], &${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:active, &:hover":{color:e.colorTextDisabled},"&:active":{pointerEvents:"none"}}})}},K0e=e=>({code:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.2em 0.1em",fontSize:"85%",fontFamily:e.fontFamilyCode,background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3},kbd:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.15em 0.1em",fontSize:"90%",fontFamily:e.fontFamilyCode,background:"rgba(150, 150, 150, 0.06)",border:"1px solid rgba(100, 100, 100, 0.2)",borderBottomWidth:2,borderRadius:3},mark:{padding:0,backgroundColor:iy[2]},"u, ins":{textDecoration:"underline",textDecorationSkipInk:"auto"},"s, del":{textDecoration:"line-through"},strong:{fontWeight:600},"ul, ol":{marginInline:0,marginBlock:"0 1em",padding:0,li:{marginInline:"20px 0",marginBlock:0,paddingInline:"4px 0",paddingBlock:0}},ul:{listStyleType:"circle",ul:{listStyleType:"disc"}},ol:{listStyleType:"decimal"},"pre, blockquote":{margin:"1em 0"},pre:{padding:"0.4em 0.6em",whiteSpace:"pre-wrap",wordWrap:"break-word",background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3,fontFamily:e.fontFamilyCode,code:{display:"inline",margin:0,padding:0,fontSize:"inherit",fontFamily:"inherit",background:"transparent",border:0}},blockquote:{paddingInline:"0.6em 0",paddingBlock:0,borderInlineStart:"4px solid rgba(100, 100, 100, 0.2)",opacity:.85}}),V0e=e=>{const{componentCls:t,paddingSM:n}=e,r=n;return{"&-edit-content":{position:"relative","div&":{insetInlineStart:e.calc(e.paddingSM).mul(-1).equal(),marginTop:e.calc(r).mul(-1).equal(),marginBottom:`calc(1em - ${ie(r)})`},[`${t}-edit-content-confirm`]:{position:"absolute",insetInlineEnd:e.calc(e.marginXS).add(2).equal(),insetBlockEnd:e.marginXS,color:e.colorTextDescription,fontWeight:"normal",fontSize:e.fontSize,fontStyle:"normal",pointerEvents:"none"},textarea:{margin:"0!important",MozTransition:"none",height:"1em"}}}},G0e=e=>({[`${e.componentCls}-copy-success`]:{"\n &,\n &:hover,\n &:focus":{color:e.colorSuccess}},[`${e.componentCls}-copy-icon-only`]:{marginInlineStart:0}}),q0e=()=>({"\n a&-ellipsis,\n span&-ellipsis\n ":{display:"inline-block",maxWidth:"100%"},"&-ellipsis-single-line":{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis","a&, span&":{verticalAlign:"bottom"},"> code":{paddingBlock:0,maxWidth:"calc(100% - 1.2em)",display:"inline-block",overflow:"hidden",textOverflow:"ellipsis",verticalAlign:"bottom",boxSizing:"content-box"}},"&-ellipsis-multiple-line":{display:"-webkit-box",overflow:"hidden",WebkitLineClamp:3,WebkitBoxOrient:"vertical"}}),X0e=e=>{const{componentCls:t,titleMarginTop:n}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorText,wordBreak:"break-word",lineHeight:e.lineHeight,[`&${t}-secondary`]:{color:e.colorTextDescription},[`&${t}-success`]:{color:e.colorSuccess},[`&${t}-warning`]:{color:e.colorWarning},[`&${t}-danger`]:{color:e.colorError,"a&:active, a&:focus":{color:e.colorErrorActive},"a&:hover":{color:e.colorErrorHover}},[`&${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed",userSelect:"none"},"\n div&,\n p\n ":{marginBottom:"1em"}},W0e(e)),{[`
& + h1${t},
& + h2${t},
& + h3${t},
& + h4${t},
& + h5${t}
`]:{marginTop:n},"\n div,\n ul,\n li,\n p,\n h1,\n h2,\n h3,\n h4,\n h5":{"\n + h1,\n + h2,\n + h3,\n + h4,\n + h5\n ":{marginTop:n}}}),K0e(e)),U0e(e)),{[`
${t}-expand,
${t}-collapse,
${t}-edit,
${t}-copy
`]:Object.assign(Object.assign({},u8(e)),{marginInlineStart:e.marginXXS})}),V0e(e)),G0e(e)),q0e()),{"&-rtl":{direction:"rtl"}})}},Y0e=()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"}),Ej=Mn("Typography",e=>[X0e(e)],Y0e),Q0e=e=>{const{prefixCls:t,"aria-label":n,className:r,style:i,direction:o,maxLength:a,autoSize:l=!0,value:c,onSave:u,onCancel:f,onEnd:p,component:m,enterIcon:g=d.createElement(D1e,null)}=e,b=d.useRef(null),E=d.useRef(!1),x=d.useRef(),[C,S]=d.useState(c);d.useEffect(()=>{S(c)},[c]),d.useEffect(()=>{var D;if(!((D=b.current)===null||D===void 0)&&D.resizableTextArea){const{textArea:z}=b.current.resizableTextArea;z.focus();const{length:W}=z.value;z.setSelectionRange(W,W)}},[]);const T=D=>{let{target:z}=D;S(z.value.replace(/[\n\r]/g,""))},O=()=>{E.current=!0},I=()=>{E.current=!1},_=D=>{let{keyCode:z}=D;E.current||(x.current=z)},$=()=>{u(C.trim())},k=D=>{let{keyCode:z,ctrlKey:W,altKey:j,metaKey:U,shiftKey:q}=D;x.current!==z||E.current||W||j||U||q||(z===it.ENTER?($(),p==null||p()):z===it.ESC&&f())},R=()=>{$()},[M,H,B]=Ej(t),L=le(t,`${t}-edit-content`,{[`${t}-rtl`]:o==="rtl",[`${t}-${m}`]:!!m},r,H,B);return M(d.createElement("div",{className:L,style:i},d.createElement(mB,{ref:b,maxLength:a,value:C,onChange:T,onKeyDown:_,onKeyUp:k,onCompositionStart:O,onCompositionEnd:I,onBlur:R,"aria-label":n,rows:1,autoSize:l}),g!==null?mi(g,{className:`${t}-edit-content-confirm`}):null))};var Z0e=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r<e.rangeCount;r++)n.push(e.getRangeAt(r));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null;break}return e.removeAllRanges(),function(){e.type==="Caret"&&e.removeAllRanges(),e.rangeCount||n.forEach(function(i){e.addRange(i)}),t&&t.focus()}},J0e=Z0e,c$={"text/plain":"Text","text/html":"Url",default:"Text"},ege="Copy to clipboard: #{key}, Enter";function tge(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}function nge(e,t){var n,r,i,o,a,l,c=!1;t||(t={}),n=t.debug||!1;try{i=J0e(),o=document.createRange(),a=document.getSelection(),l=document.createElement("span"),l.textContent=e,l.ariaHidden="true",l.style.all="unset",l.style.position="fixed",l.style.top=0,l.style.clip="rect(0, 0, 0, 0)",l.style.whiteSpace="pre",l.style.webkitUserSelect="text",l.style.MozUserSelect="text",l.style.msUserSelect="text",l.style.userSelect="text",l.addEventListener("copy",function(f){if(f.stopPropagation(),t.format)if(f.preventDefault(),typeof f.clipboardData>"u"){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var p=c$[t.format]||c$.default;window.clipboardData.setData(p,e)}else f.clipboardData.clearData(),f.clipboardData.setData(t.format,e);t.onCopy&&(f.preventDefault(),t.onCopy(f.clipboardData))}),document.body.appendChild(l),o.selectNodeContents(l),a.addRange(o);var u=document.execCommand("copy");if(!u)throw new Error("copy command was unsuccessful");c=!0}catch(f){n&&console.error("unable to copy using execCommand: ",f),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),c=!0}catch(p){n&&console.error("unable to copy using clipboardData: ",p),n&&console.error("falling back to prompt"),r=tge("message"in t?t.message:ege),window.prompt(r,e)}}finally{a&&(typeof a.removeRange=="function"?a.removeRange(o):a.removeAllRanges()),l&&document.body.removeChild(l),i()}return c}var rge=nge;const ige=ul(rge);var oge=function(e,t,n,r){function i(o){return o instanceof n?o:new n(function(a){a(o)})}return new(n||(n=Promise))(function(o,a){function l(f){try{u(r.next(f))}catch(p){a(p)}}function c(f){try{u(r.throw(f))}catch(p){a(p)}}function u(f){f.done?o(f.value):i(f.value).then(l,c)}u((r=r.apply(e,t||[])).next())})};const age=e=>{let{copyConfig:t,children:n}=e;const[r,i]=d.useState(!1),[o,a]=d.useState(!1),l=d.useRef(null),c=()=>{l.current&&clearTimeout(l.current)},u={};t.format&&(u.format=t.format),d.useEffect(()=>c,[]);const f=Hn(p=>oge(void 0,void 0,void 0,function*(){var m;p==null||p.preventDefault(),p==null||p.stopPropagation(),a(!0);try{const g=typeof t.text=="function"?yield t.text():t.text;ige(g||_fe(n,!0).join("")||"",u),a(!1),i(!0),c(),l.current=setTimeout(()=>{i(!1)},3e3),(m=t.onCopy)===null||m===void 0||m.call(t,p)}catch(g){throw a(!1),g}}));return{copied:r,copyLoading:o,onClick:f}};function Q4(e,t){return d.useMemo(()=>{const n=!!e;return[n,Object.assign(Object.assign({},t),n&&typeof e=="object"?e:null)]},[e])}const lge=e=>{const t=d.useRef();return d.useEffect(()=>{t.current=e}),t.current},sge=(e,t,n)=>d.useMemo(()=>e===!0?{title:t??n}:d.isValidElement(e)?{title:e}:typeof e=="object"?Object.assign({title:t??n},e):{title:e},[e,t,n]);var cge=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const xj=d.forwardRef((e,t)=>{const{prefixCls:n,component:r="article",className:i,rootClassName:o,setContentRef:a,children:l,direction:c,style:u}=e,f=cge(e,["prefixCls","component","className","rootClassName","setContentRef","children","direction","style"]),{getPrefixCls:p,direction:m,typography:g}=d.useContext(At),b=c??m,E=a?eo(t,a):t,x=p("typography",n),[C,S,T]=Ej(x),O=le(x,g==null?void 0:g.className,{[`${x}-rtl`]:b==="rtl"},i,o,S,T),I=Object.assign(Object.assign({},g==null?void 0:g.style),u);return C(d.createElement(r,Object.assign({className:O,style:I,ref:E},f),l))});function u$(e){return e===!1?[!1,!1]:Array.isArray(e)?e:[e]}function Z4(e,t,n){return e===!0||e===void 0?t:e||n&&t}function uge(e){const t=document.createElement("em");e.appendChild(t);const n=e.getBoundingClientRect(),r=t.getBoundingClientRect();return e.removeChild(t),n.left>r.left||r.right>n.right||n.top>r.top||r.bottom>n.bottom}const T3=e=>["string","number"].includes(typeof e),dge=e=>{let{prefixCls:t,copied:n,locale:r,iconOnly:i,tooltips:o,icon:a,tabIndex:l,onCopy:c,loading:u}=e;const f=u$(o),p=u$(a),{copied:m,copy:g}=r??{},b=n?m:g,E=Z4(f[n?1:0],b),x=typeof E=="string"?E:b;return d.createElement(sl,{title:E},d.createElement("button",{type:"button",className:le(`${t}-copy`,{[`${t}-copy-success`]:n,[`${t}-copy-icon-only`]:i}),onClick:c,"aria-label":x,tabIndex:l},n?Z4(p[1],d.createElement(F8,null),!0):Z4(p[0],u?d.createElement(Ec,null):d.createElement(O1e,null),!0)))},sg=d.forwardRef((e,t)=>{let{style:n,children:r}=e;const i=d.useRef(null);return d.useImperativeHandle(t,()=>({isExceed:()=>{const o=i.current;return o.scrollHeight>o.clientHeight},getHeight:()=>i.current.clientHeight})),d.createElement("span",{"aria-hidden":!0,ref:i,style:Object.assign({position:"fixed",display:"block",left:0,top:0,pointerEvents:"none",backgroundColor:"rgba(255, 0, 0, 0.65)"},n)},r)}),fge=e=>e.reduce((t,n)=>t+(T3(n)?String(n).length:1),0);function d$(e,t){let n=0;const r=[];for(let i=0;i<e.length;i+=1){if(n===t)return r;const o=e[i],l=T3(o)?String(o).length:1,c=n+l;if(c>t){const u=t-n;return r.push(String(o).slice(0,u)),r}r.push(o),n=c}return e}const J4=0,e9=1,t9=2,n9=3,f$=4,cg={display:"-webkit-box",overflow:"hidden",WebkitBoxOrient:"vertical"};function hge(e){const{enableMeasure:t,width:n,text:r,children:i,rows:o,expanded:a,miscDeps:l,onEllipsis:c}=e,u=d.useMemo(()=>ri(r),[r]),f=d.useMemo(()=>fge(u),[r]),p=d.useMemo(()=>i(u,!1),[r]),[m,g]=d.useState(null),b=d.useRef(null),E=d.useRef(null),x=d.useRef(null),C=d.useRef(null),S=d.useRef(null),[T,O]=d.useState(!1),[I,_]=d.useState(J4),[$,k]=d.useState(0),[R,M]=d.useState(null);bn(()=>{_(t&&n&&f?e9:J4)},[n,r,o,t,u]),bn(()=>{var D,z,W,j;if(I===e9){_(t9);const U=E.current&&getComputedStyle(E.current).whiteSpace;M(U)}else if(I===t9){const U=!!(!((D=x.current)===null||D===void 0)&&D.isExceed());_(U?n9:f$),g(U?[0,f]:null),O(U);const q=((z=x.current)===null||z===void 0?void 0:z.getHeight())||0,A=o===1?0:((W=C.current)===null||W===void 0?void 0:W.getHeight())||0,P=((j=S.current)===null||j===void 0?void 0:j.getHeight())||0,Z=Math.max(q,A+P);k(Z+1),c(U)}},[I]);const H=m?Math.ceil((m[0]+m[1])/2):0;bn(()=>{var D;const[z,W]=m||[0,0];if(z!==W){const U=(((D=b.current)===null||D===void 0?void 0:D.getHeight())||0)>$;let q=H;W-z===1&&(q=U?z:W),g(U?[z,q]:[q,W])}},[m,H]);const B=d.useMemo(()=>{if(!t)return i(u,!1);if(I!==n9||!m||m[0]!==m[1]){const D=i(u,!1);return[f$,J4].includes(I)?D:d.createElement("span",{style:Object.assign(Object.assign({},cg),{WebkitLineClamp:o})},D)}return i(a?u:d$(u,m[0]),T)},[a,I,m,u].concat(Qe(l))),L={width:n,margin:0,padding:0,whiteSpace:R==="nowrap"?"normal":"inherit"};return d.createElement(d.Fragment,null,B,I===t9&&d.createElement(d.Fragment,null,d.createElement(sg,{style:Object.assign(Object.assign(Object.assign({},L),cg),{WebkitLineClamp:o}),ref:x},p),d.createElement(sg,{style:Object.assign(Object.assign(Object.assign({},L),cg),{WebkitLineClamp:o-1}),ref:C},p),d.createElement(sg,{style:Object.assign(Object.assign(Object.assign({},L),cg),{WebkitLineClamp:1}),ref:S},i([],!0))),I===n9&&m&&m[0]!==m[1]&&d.createElement(sg,{style:Object.assign(Object.assign({},L),{top:400}),ref:b},i(d$(u,H),!0)),I===e9&&d.createElement("span",{style:{whiteSpace:"inherit"},ref:E}))}const pge=e=>{let{enableEllipsis:t,isEllipsis:n,children:r,tooltipProps:i}=e;return!(i!=null&&i.title)||!t?r:d.createElement(sl,Object.assign({open:n?void 0:!1},i),r)};var mge=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function gge(e,t){let{mark:n,code:r,underline:i,delete:o,strong:a,keyboard:l,italic:c}=e,u=t;function f(p,m){m&&(u=d.createElement(p,{},u))}return f("strong",a),f("u",i),f("del",o),f("code",r),f("mark",n),f("kbd",l),f("i",c),u}const vge="...",a2=d.forwardRef((e,t)=>{var n;const{prefixCls:r,className:i,style:o,type:a,disabled:l,children:c,ellipsis:u,editable:f,copyable:p,component:m,title:g}=e,b=mge(e,["prefixCls","className","style","type","disabled","children","ellipsis","editable","copyable","component","title"]),{getPrefixCls:E,direction:x}=d.useContext(At),[C]=Dl("Text"),S=d.useRef(null),T=d.useRef(null),O=E("typography",r),I=tr(b,["mark","code","delete","underline","strong","keyboard","italic"]),[_,$]=Q4(f),[k,R]=Tr(!1,{value:$.editing}),{triggerType:M=["icon"]}=$,H=Re=>{var Ae;Re&&((Ae=$.onStart)===null||Ae===void 0||Ae.call($)),R(Re)},B=lge(k);bn(()=>{var Re;!k&&B&&((Re=T.current)===null||Re===void 0||Re.focus())},[k]);const L=Re=>{Re==null||Re.preventDefault(),H(!0)},D=Re=>{var Ae;(Ae=$.onChange)===null||Ae===void 0||Ae.call($,Re),H(!1)},z=()=>{var Re;(Re=$.onCancel)===null||Re===void 0||Re.call($),H(!1)},[W,j]=Q4(p),{copied:U,copyLoading:q,onClick:A}=age({copyConfig:j,children:c}),[P,Z]=d.useState(!1),[V,Y]=d.useState(!1),[ee,ue]=d.useState(!1),[ne,se]=d.useState(!1),[me,ye]=d.useState(!0),[de,ce]=Q4(u,{expandable:!1,symbol:Re=>Re?C==null?void 0:C.collapse:C==null?void 0:C.expand}),[oe,pe]=Tr(ce.defaultExpanded||!1,{value:ce.expanded}),ve=de&&(!oe||ce.expandable==="collapsible"),{rows:Te=1}=ce,Ge=d.useMemo(()=>ve&&(ce.suffix!==void 0||ce.onEllipsis||ce.expandable||_||W),[ve,ce,_,W]);bn(()=>{de&&!Ge&&(Z(YS("webkitLineClamp")),Y(YS("textOverflow")))},[Ge,de]);const[je,Je]=d.useState(ve),Se=d.useMemo(()=>Ge?!1:Te===1?V:P,[Ge,V,P]);bn(()=>{Je(Se&&ve)},[Se,ve]);const $e=ve&&(je?ne:ee),qe=ve&&Te===1&&je,Le=ve&&Te>1&&je,Fe=(Re,Ae)=>{var Ye;pe(Ae.expanded),(Ye=ce.onExpand)===null||Ye===void 0||Ye.call(ce,Re,Ae)},[Ke,Ve]=d.useState(0),Ce=Re=>{let{offsetWidth:Ae}=Re;Ve(Ae)},Pe=Re=>{var Ae;ue(Re),ee!==Re&&((Ae=ce.onEllipsis)===null||Ae===void 0||Ae.call(ce,Re))};d.useEffect(()=>{const Re=S.current;if(de&&je&&Re){const Ae=uge(Re);ne!==Ae&&se(Ae)}},[de,je,c,Le,me,Ke]),d.useEffect(()=>{const Re=S.current;if(typeof IntersectionObserver>"u"||!Re||!je||!ve)return;const Ae=new IntersectionObserver(()=>{ye(!!Re.offsetParent)});return Ae.observe(Re),()=>{Ae.disconnect()}},[je,ve]);const We=sge(ce.tooltip,$.text,c),Ze=d.useMemo(()=>{if(!(!de||je))return[$.text,c,g,We.title].find(T3)},[de,je,g,We.title,$e]);if(k)return d.createElement(Q0e,{value:(n=$.text)!==null&&n!==void 0?n:typeof c=="string"?c:"",onSave:D,onCancel:z,onEnd:$.onEnd,prefixCls:O,className:i,style:o,direction:x,component:m,maxLength:$.maxLength,autoSize:$.autoSize,enterIcon:$.enterIcon});const ut=()=>{const{expandable:Re,symbol:Ae}=ce;return Re?d.createElement("button",{type:"button",key:"expand",className:`${O}-${oe?"collapse":"expand"}`,onClick:Ye=>Fe(Ye,{expanded:!oe}),"aria-label":oe?C.collapse:C==null?void 0:C.expand},typeof Ae=="function"?Ae(oe):Ae):null},Be=()=>{if(!_)return;const{icon:Re,tooltip:Ae,tabIndex:Ye}=$,mt=ri(Ae)[0]||(C==null?void 0:C.edit),Nt=typeof mt=="string"?mt:"";return M.includes("icon")?d.createElement(sl,{key:"edit",title:Ae===!1?"":mt},d.createElement("button",{type:"button",ref:T,className:`${O}-edit`,onClick:L,"aria-label":Nt,tabIndex:Ye},Re||d.createElement(im,{role:"button"}))):null},ot=()=>W?d.createElement(dge,Object.assign({key:"copy"},j,{prefixCls:O,copied:U,locale:C,onCopy:A,loading:q,iconOnly:c==null})):null,re=Re=>[Re&&ut(),Be(),ot()],Ie=Re=>[Re&&!oe&&d.createElement("span",{"aria-hidden":!0,key:"ellipsis"},vge),ce.suffix,re(Re)];return d.createElement(Yi,{onResize:Ce,disabled:!ve},Re=>d.createElement(pge,{tooltipProps:We,enableEllipsis:ve,isEllipsis:$e},d.createElement(xj,Object.assign({className:le({[`${O}-${a}`]:a,[`${O}-disabled`]:l,[`${O}-ellipsis`]:de,[`${O}-ellipsis-single-line`]:qe,[`${O}-ellipsis-multiple-line`]:Le},i),prefixCls:r,style:Object.assign(Object.assign({},o),{WebkitLineClamp:Le?Te:void 0}),component:m,ref:eo(Re,S,t),direction:x,onClick:M.includes("text")?L:void 0,"aria-label":Ze==null?void 0:Ze.toString(),title:g},I),d.createElement(hge,{enableMeasure:ve&&!je,text:c,rows:Te,width:Ke,onEllipsis:Pe,expanded:oe,miscDeps:[U,oe,q,_,W,C]},(Ae,Ye)=>gge(e,d.createElement(d.Fragment,null,Ae.length>0&&Ye&&!oe&&Ze?d.createElement("span",{key:"show-content","aria-hidden":!0},Ae):Ae,Ie(Ye)))))))});var yge=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const bge=d.forwardRef((e,t)=>{var{ellipsis:n,rel:r}=e,i=yge(e,["ellipsis","rel"]);const o=Object.assign(Object.assign({},i),{rel:r===void 0&&i.target==="_blank"?"noopener noreferrer":r});return delete o.navigate,d.createElement(a2,Object.assign({},o,{ref:t,ellipsis:!!n,component:"a"}))}),Cge=d.forwardRef((e,t)=>d.createElement(a2,Object.assign({ref:t},e,{component:"div"})));var Sge=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const Ege=(e,t)=>{var{ellipsis:n}=e,r=Sge(e,["ellipsis"]);const i=d.useMemo(()=>n&&typeof n=="object"?tr(n,["expandable","rows"]):n,[n]);return d.createElement(a2,Object.assign({ref:t},r,{ellipsis:i,component:"span"}))},xge=d.forwardRef(Ege);var wge=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const Tge=[1,2,3,4,5],_ge=d.forwardRef((e,t)=>{const{level:n=1}=e,r=wge(e,["level"]),i=Tge.includes(n)?`h${n}`:"h1";return d.createElement(a2,Object.assign({ref:t},r,{component:i}))}),jm=xj;jm.Text=xge;jm.Link=bge;jm.Title=_ge;jm.Paragraph=Cge;const r9=function(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(","),r=e.name||"",i=e.type||"",o=i.replace(/\/.*$/,"");return n.some(function(a){var l=a.trim();if(/^\*(\/\*)?$/.test(a))return!0;if(l.charAt(0)==="."){var c=r.toLowerCase(),u=l.toLowerCase(),f=[u];return(u===".jpg"||u===".jpeg")&&(f=[".jpg",".jpeg"]),f.some(function(p){return c.endsWith(p)})}return/\/\*$/.test(l)?o===l.replace(/\/.*$/,""):i===l?!0:/^\w+$/.test(l)?(gr(!1,"Upload takes an invalidate 'accept' type '".concat(l,"'.Skip for check.")),!0):!1})}return!0};function Oge(e,t){var n="cannot ".concat(e.method," ").concat(e.action," ").concat(t.status,"'"),r=new Error(n);return r.status=t.status,r.method=e.method,r.url=e.action,r}function h$(e){var t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch{return t}}function Ige(e){var t=new XMLHttpRequest;e.onProgress&&t.upload&&(t.upload.onprogress=function(o){o.total>0&&(o.percent=o.loaded/o.total*100),e.onProgress(o)});var n=new FormData;e.data&&Object.keys(e.data).forEach(function(i){var o=e.data[i];if(Array.isArray(o)){o.forEach(function(a){n.append("".concat(i,"[]"),a)});return}n.append(i,o)}),e.file instanceof Blob?n.append(e.filename,e.file,e.file.name):n.append(e.filename,e.file),t.onerror=function(o){e.onError(o)},t.onload=function(){return t.status<200||t.status>=300?e.onError(Oge(e,t),h$(t)):e.onSuccess(h$(t),t)},t.open(e.method,e.action,!0),e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);var r=e.headers||{};return r["X-Requested-With"]!==null&&t.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(r).forEach(function(i){r[i]!==null&&t.setRequestHeader(i,r[i])}),t.send(n),{abort:function(){t.abort()}}}var $ge=function(){var e=Yo(ir().mark(function t(n,r){var i,o,a,l,c,u,f,p;return ir().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:u=function(){return u=Yo(ir().mark(function E(x){return ir().wrap(function(S){for(;;)switch(S.prev=S.next){case 0:return S.abrupt("return",new Promise(function(T){x.file(function(O){r(O)?(x.fullPath&&!O.webkitRelativePath&&(Object.defineProperties(O,{webkitRelativePath:{writable:!0}}),O.webkitRelativePath=x.fullPath.replace(/^\//,""),Object.defineProperties(O,{webkitRelativePath:{writable:!1}})),T(O)):T(null)})}));case 1:case"end":return S.stop()}},E)})),u.apply(this,arguments)},c=function(E){return u.apply(this,arguments)},l=function(){return l=Yo(ir().mark(function E(x){var C,S,T,O,I;return ir().wrap(function($){for(;;)switch($.prev=$.next){case 0:C=x.createReader(),S=[];case 2:return $.next=5,new Promise(function(k){C.readEntries(k,function(){return k([])})});case 5:if(T=$.sent,O=T.length,O){$.next=9;break}return $.abrupt("break",12);case 9:for(I=0;I<O;I++)S.push(T[I]);$.next=2;break;case 12:return $.abrupt("return",S);case 13:case"end":return $.stop()}},E)})),l.apply(this,arguments)},a=function(E){return l.apply(this,arguments)},i=[],o=[],n.forEach(function(b){return o.push(b.webkitGetAsEntry())}),f=function(){var b=Yo(ir().mark(function E(x,C){var S,T;return ir().wrap(function(I){for(;;)switch(I.prev=I.next){case 0:if(x){I.next=2;break}return I.abrupt("return");case 2:if(x.path=C||"",!x.isFile){I.next=10;break}return I.next=6,c(x);case 6:S=I.sent,S&&i.push(S),I.next=15;break;case 10:if(!x.isDirectory){I.next=15;break}return I.next=13,a(x);case 13:T=I.sent,o.push.apply(o,Qe(T));case 15:case"end":return I.stop()}},E)}));return function(x,C){return b.apply(this,arguments)}}(),p=0;case 9:if(!(p<o.length)){g.next=15;break}return g.next=12,f(o[p]);case 12:p++,g.next=9;break;case 15:return g.abrupt("return",i);case 16:case"end":return g.stop()}},t)}));return function(n,r){return e.apply(this,arguments)}}(),Nge=+new Date,Age=0;function i9(){return"rc-upload-".concat(Nge,"-").concat(++Age)}var kge=["component","prefixCls","className","classNames","disabled","id","name","style","styles","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave","hasControlInside"],Rge=function(e){la(n,e);var t=sa(n);function n(){var r;_r(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),J(at(r),"state",{uid:i9()}),J(at(r),"reqs",{}),J(at(r),"fileInput",void 0),J(at(r),"_isMounted",void 0),J(at(r),"onChange",function(l){var c=r.props,u=c.accept,f=c.directory,p=l.target.files,m=Qe(p).filter(function(g){return!f||r9(g,u)});r.uploadFiles(m),r.reset()}),J(at(r),"onClick",function(l){var c=r.fileInput;if(c){var u=l.target,f=r.props.onClick;if(u&&u.tagName==="BUTTON"){var p=c.parentNode;p.focus(),u.blur()}c.click(),f&&f(l)}}),J(at(r),"onKeyDown",function(l){l.key==="Enter"&&r.onClick(l)}),J(at(r),"onFileDrop",function(){var l=Yo(ir().mark(function c(u){var f,p,m;return ir().wrap(function(b){for(;;)switch(b.prev=b.next){case 0:if(f=r.props.multiple,u.preventDefault(),u.type!=="dragover"){b.next=4;break}return b.abrupt("return");case 4:if(!r.props.directory){b.next=11;break}return b.next=7,$ge(Array.prototype.slice.call(u.dataTransfer.items),function(E){return r9(E,r.props.accept)});case 7:p=b.sent,r.uploadFiles(p),b.next=14;break;case 11:m=Qe(u.dataTransfer.files).filter(function(E){return r9(E,r.props.accept)}),f===!1&&(m=m.slice(0,1)),r.uploadFiles(m);case 14:case"end":return b.stop()}},c)}));return function(c){return l.apply(this,arguments)}}()),J(at(r),"uploadFiles",function(l){var c=Qe(l),u=c.map(function(f){return f.uid=i9(),r.processFile(f,c)});Promise.all(u).then(function(f){var p=r.props.onBatchStart;p==null||p(f.map(function(m){var g=m.origin,b=m.parsedFile;return{file:g,parsedFile:b}})),f.filter(function(m){return m.parsedFile!==null}).forEach(function(m){r.post(m)})})}),J(at(r),"processFile",function(){var l=Yo(ir().mark(function c(u,f){var p,m,g,b,E,x,C,S,T;return ir().wrap(function(I){for(;;)switch(I.prev=I.next){case 0:if(p=r.props.beforeUpload,m=u,!p){I.next=14;break}return I.prev=3,I.next=6,p(u,f);case 6:m=I.sent,I.next=12;break;case 9:I.prev=9,I.t0=I.catch(3),m=!1;case 12:if(m!==!1){I.next=14;break}return I.abrupt("return",{origin:u,parsedFile:null,action:null,data:null});case 14:if(g=r.props.action,typeof g!="function"){I.next=21;break}return I.next=18,g(u);case 18:b=I.sent,I.next=22;break;case 21:b=g;case 22:if(E=r.props.data,typeof E!="function"){I.next=29;break}return I.next=26,E(u);case 26:x=I.sent,I.next=30;break;case 29:x=E;case 30:return C=($t(m)==="object"||typeof m=="string")&&m?m:u,C instanceof File?S=C:S=new File([C],u.name,{type:u.type}),T=S,T.uid=u.uid,I.abrupt("return",{origin:u,data:x,parsedFile:T,action:b});case 35:case"end":return I.stop()}},c,null,[[3,9]])}));return function(c,u){return l.apply(this,arguments)}}()),J(at(r),"saveFileInput",function(l){r.fileInput=l}),r}return Or(n,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"post",value:function(i){var o=this,a=i.data,l=i.origin,c=i.action,u=i.parsedFile;if(this._isMounted){var f=this.props,p=f.onStart,m=f.customRequest,g=f.name,b=f.headers,E=f.withCredentials,x=f.method,C=l.uid,S=m||Ige,T={action:c,filename:g,data:a,file:u,headers:b,withCredentials:E,method:x||"post",onProgress:function(I){var _=o.props.onProgress;_==null||_(I,u)},onSuccess:function(I,_){var $=o.props.onSuccess;$==null||$(I,u,_),delete o.reqs[C]},onError:function(I,_){var $=o.props.onError;$==null||$(I,_,u),delete o.reqs[C]}};p(l),this.reqs[C]=S(T)}}},{key:"reset",value:function(){this.setState({uid:i9()})}},{key:"abort",value:function(i){var o=this.reqs;if(i){var a=i.uid?i.uid:i;o[a]&&o[a].abort&&o[a].abort(),delete o[a]}else Object.keys(o).forEach(function(l){o[l]&&o[l].abort&&o[l].abort(),delete o[l]})}},{key:"render",value:function(){var i=this.props,o=i.component,a=i.prefixCls,l=i.className,c=i.classNames,u=c===void 0?{}:c,f=i.disabled,p=i.id,m=i.name,g=i.style,b=i.styles,E=b===void 0?{}:b,x=i.multiple,C=i.accept,S=i.capture,T=i.children,O=i.directory,I=i.openFileDialogOnClick,_=i.onMouseEnter,$=i.onMouseLeave,k=i.hasControlInside,R=Gt(i,kge),M=le(J(J(J({},a,!0),"".concat(a,"-disabled"),f),l,l)),H=O?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},B=f?{}:{onClick:I?this.onClick:function(){},onKeyDown:I?this.onKeyDown:function(){},onMouseEnter:_,onMouseLeave:$,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:k?void 0:"0"};return be.createElement(o,ze({},B,{className:M,role:k?void 0:"button",style:g}),be.createElement("input",ze({},_i(R,{aria:!0,data:!0}),{id:p,name:m,disabled:f,type:"file",ref:this.saveFileInput,onClick:function(D){return D.stopPropagation()},key:this.state.uid,style:te({display:"none"},E.input),className:u.input,accept:C},H,{multiple:x,onChange:this.onChange},S!=null?{capture:S}:{})),T)}}]),n}(d.Component);function o9(){}var EE=function(e){la(n,e);var t=sa(n);function n(){var r;_r(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),J(at(r),"uploader",void 0),J(at(r),"saveUploader",function(l){r.uploader=l}),r}return Or(n,[{key:"abort",value:function(i){this.uploader.abort(i)}},{key:"render",value:function(){return be.createElement(Rge,ze({},this.props,{ref:this.saveUploader}))}}]),n}(d.Component);J(EE,"defaultProps",{component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:o9,onError:o9,onSuccess:o9,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0,hasControlInside:!1});const Mge=e=>{const{componentCls:t,iconCls:n}=e;return{[`${t}-wrapper`]:{[`${t}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:e.colorFillAlter,border:`${ie(e.lineWidth)} dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[t]:{padding:e.padding},[`${t}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none",borderRadius:e.borderRadiusLG,"&:focus-visible":{outline:`${ie(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`}},[`${t}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`
&:not(${t}-disabled):hover,
&-hover:not(${t}-disabled)
`]:{borderColor:e.colorPrimaryHover},[`p${t}-drag-icon`]:{marginBottom:e.margin,[n]:{color:e.colorPrimary,fontSize:e.uploadThumbnailSize}},[`p${t}-text`]:{margin:`0 0 ${ie(e.marginXXS)}`,color:e.colorTextHeading,fontSize:e.fontSizeLG},[`p${t}-hint`]:{color:e.colorTextDescription,fontSize:e.fontSize},[`&${t}-disabled`]:{[`p${t}-drag-icon ${n},
p${t}-text,
p${t}-hint
`]:{color:e.colorTextDisabled}}}}}},Pge=e=>{const{componentCls:t,iconCls:n,fontSize:r,lineHeight:i,calc:o}=e,a=`${t}-list-item`,l=`${a}-actions`,c=`${a}-action`;return{[`${t}-wrapper`]:{[`${t}-list`]:Object.assign(Object.assign({},ll()),{lineHeight:e.lineHeight,[a]:{position:"relative",height:o(e.lineHeight).mul(r).equal(),marginTop:e.marginXS,fontSize:r,display:"flex",alignItems:"center",transition:`background-color ${e.motionDurationSlow}`,borderRadius:e.borderRadiusSM,"&:hover":{backgroundColor:e.controlItemBgHover},[`${a}-name`]:Object.assign(Object.assign({},al),{padding:`0 ${ie(e.paddingXS)}`,lineHeight:i,flex:"auto",transition:`all ${e.motionDurationSlow}`}),[l]:{whiteSpace:"nowrap",[c]:{opacity:0},[n]:{color:e.actionsColor,transition:`all ${e.motionDurationSlow}`},[`
${c}:focus-visible,
&.picture ${c}
`]:{opacity:1}},[`${t}-icon ${n}`]:{color:e.colorTextDescription,fontSize:r},[`${a}-progress`]:{position:"absolute",bottom:e.calc(e.uploadProgressOffset).mul(-1).equal(),width:"100%",paddingInlineStart:o(r).add(e.paddingXS).equal(),fontSize:r,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${a}:hover ${c}`]:{opacity:1},[`${a}-error`]:{color:e.colorError,[`${a}-name, ${t}-icon ${n}`]:{color:e.colorError},[l]:{[`${n}, ${n}:hover`]:{color:e.colorError},[c]:{opacity:1}}},[`${t}-list-item-container`]:{transition:`opacity ${e.motionDurationSlow}, height ${e.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},Lge=e=>{const{componentCls:t}=e,n=new Sn("uploadAnimateInlineIn",{from:{width:0,height:0,padding:0,opacity:0,margin:e.calc(e.marginXS).div(-2).equal()}}),r=new Sn("uploadAnimateInlineOut",{to:{width:0,height:0,padding:0,opacity:0,margin:e.calc(e.marginXS).div(-2).equal()}}),i=`${t}-animate-inline`;return[{[`${t}-wrapper`]:{[`${i}-appear, ${i}-enter, ${i}-leave`]:{animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseInOutCirc,animationFillMode:"forwards"},[`${i}-appear, ${i}-enter`]:{animationName:n},[`${i}-leave`]:{animationName:r}}},{[`${t}-wrapper`]:JL(e)},n,r]},Dge=e=>{const{componentCls:t,iconCls:n,uploadThumbnailSize:r,uploadProgressOffset:i,calc:o}=e,a=`${t}-list`,l=`${a}-item`;return{[`${t}-wrapper`]:{[`
${a}${a}-picture,
${a}${a}-picture-card,
${a}${a}-picture-circle
`]:{[l]:{position:"relative",height:o(r).add(o(e.lineWidth).mul(2)).add(o(e.paddingXS).mul(2)).equal(),padding:e.paddingXS,border:`${ie(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusLG,"&:hover":{background:"transparent"},[`${l}-thumbnail`]:Object.assign(Object.assign({},al),{width:r,height:r,lineHeight:ie(o(r).add(e.paddingSM).equal()),textAlign:"center",flex:"none",[n]:{fontSize:e.fontSizeHeading2,color:e.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${l}-progress`]:{bottom:i,width:`calc(100% - ${ie(o(e.paddingSM).mul(2).equal())})`,marginTop:0,paddingInlineStart:o(r).add(e.paddingXS).equal()}},[`${l}-error`]:{borderColor:e.colorError,[`${l}-thumbnail ${n}`]:{[`svg path[fill='${jf[0]}']`]:{fill:e.colorErrorBg},[`svg path[fill='${jf.primary}']`]:{fill:e.colorError}}},[`${l}-uploading`]:{borderStyle:"dashed",[`${l}-name`]:{marginBottom:i}}},[`${a}${a}-picture-circle ${l}`]:{[`&, &::before, ${l}-thumbnail`]:{borderRadius:"50%"}}}}},Fge=e=>{const{componentCls:t,iconCls:n,fontSizeLG:r,colorTextLightSolid:i,calc:o}=e,a=`${t}-list`,l=`${a}-item`,c=e.uploadPicCardSize;return{[`
${t}-wrapper${t}-picture-card-wrapper,
${t}-wrapper${t}-picture-circle-wrapper
`]:Object.assign(Object.assign({},ll()),{display:"block",[`${t}${t}-select`]:{width:c,height:c,textAlign:"center",verticalAlign:"top",backgroundColor:e.colorFillAlter,border:`${ie(e.lineWidth)} dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[`> ${t}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${t}-disabled):hover`]:{borderColor:e.colorPrimary}},[`${a}${a}-picture-card, ${a}${a}-picture-circle`]:{display:"flex",flexWrap:"wrap","@supports not (gap: 1px)":{"& > *":{marginBlockEnd:e.marginXS,marginInlineEnd:e.marginXS}},"@supports (gap: 1px)":{gap:e.marginXS},[`${a}-item-container`]:{display:"inline-block",width:c,height:c,verticalAlign:"top"},"&::after":{display:"none"},"&::before":{display:"none"},[l]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${ie(o(e.paddingXS).mul(2).equal())})`,height:`calc(100% - ${ie(o(e.paddingXS).mul(2).equal())})`,backgroundColor:e.colorBgMask,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'" "'}},[`${l}:hover`]:{[`&::before, ${l}-actions`]:{opacity:1}},[`${l}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${e.motionDurationSlow}`,[`
${n}-eye,
${n}-download,
${n}-delete
`]:{zIndex:10,width:r,margin:`0 ${ie(e.marginXXS)}`,fontSize:r,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,color:i,"&:hover":{color:i},svg:{verticalAlign:"baseline"}}},[`${l}-thumbnail, ${l}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${l}-name`]:{display:"none",textAlign:"center"},[`${l}-file + ${l}-name`]:{position:"absolute",bottom:e.margin,display:"block",width:`calc(100% - ${ie(o(e.paddingXS).mul(2).equal())})`},[`${l}-uploading`]:{[`&${l}`]:{backgroundColor:e.colorFillAlter},[`&::before, ${n}-eye, ${n}-download, ${n}-delete`]:{display:"none"}},[`${l}-progress`]:{bottom:e.marginXL,width:`calc(100% - ${ie(o(e.paddingXS).mul(2).equal())})`,paddingInlineStart:0}}}),[`${t}-wrapper${t}-picture-circle-wrapper`]:{[`${t}${t}-select`]:{borderRadius:"50%"}}}},Bge=e=>{const{componentCls:t}=e;return{[`${t}-rtl`]:{direction:"rtl"}}},jge=e=>{const{componentCls:t,colorTextDisabled:n}=e;return{[`${t}-wrapper`]:Object.assign(Object.assign({},Fn(e)),{[t]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${t}-select`]:{display:"inline-block"},[`${t}-disabled`]:{color:n,cursor:"not-allowed"}})}},Hge=e=>({actionsColor:e.colorTextDescription}),zge=Mn("Upload",e=>{const{fontSizeHeading3:t,fontHeight:n,lineWidth:r,controlHeightLG:i,calc:o}=e,a=hn(e,{uploadThumbnailSize:o(t).mul(2).equal(),uploadProgressOffset:o(o(n).div(2)).add(r).equal(),uploadPicCardSize:o(i).mul(2.55).equal()});return[jge(a),Mge(a),Dge(a),Fge(a),Pge(a),Lge(a),Bge(a),Rb(a)]},Hge);function ug(e){return Object.assign(Object.assign({},e),{lastModified:e.lastModified,lastModifiedDate:e.lastModifiedDate,name:e.name,size:e.size,type:e.type,uid:e.uid,percent:0,originFileObj:e})}function dg(e,t){const n=Qe(t),r=n.findIndex(i=>{let{uid:o}=i;return o===e.uid});return r===-1?n.push(e):n[r]=e,n}function a9(e,t){const n=e.uid!==void 0?"uid":"name";return t.filter(r=>r[n]===e[n])[0]}function Wge(e,t){const n=e.uid!==void 0?"uid":"name",r=t.filter(i=>i[n]!==e[n]);return r.length===t.length?null:r}const Uge=function(){const t=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),r=t[t.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(r)||[""])[0]},wj=e=>e.indexOf("image/")===0,Kge=e=>{if(e.type&&!e.thumbUrl)return wj(e.type);const t=e.thumbUrl||e.url||"",n=Uge(t);return/^data:image\//.test(t)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(n)?!0:!(/^data:/.test(t)||n)},Ms=200;function Vge(e){return new Promise(t=>{if(!e.type||!wj(e.type)){t("");return}const n=document.createElement("canvas");n.width=Ms,n.height=Ms,n.style.cssText=`position: fixed; left: 0; top: 0; width: ${Ms}px; height: ${Ms}px; z-index: 9999; display: none;`,document.body.appendChild(n);const r=n.getContext("2d"),i=new Image;if(i.onload=()=>{const{width:o,height:a}=i;let l=Ms,c=Ms,u=0,f=0;o>a?(c=a*(Ms/o),f=-(c-l)/2):(l=o*(Ms/a),u=-(l-c)/2),r.drawImage(i,u,f,l,c);const p=n.toDataURL();document.body.removeChild(n),window.URL.revokeObjectURL(i.src),t(p)},i.crossOrigin="anonymous",e.type.startsWith("image/svg+xml")){const o=new FileReader;o.onload=()=>{o.result&&typeof o.result=="string"&&(i.src=o.result)},o.readAsDataURL(e)}else if(e.type.startsWith("image/gif")){const o=new FileReader;o.onload=()=>{o.result&&t(o.result)},o.readAsDataURL(e)}else i.src=window.URL.createObjectURL(e)})}const Gge=d.forwardRef((e,t)=>{let{prefixCls:n,className:r,style:i,locale:o,listType:a,file:l,items:c,progress:u,iconRender:f,actionIconRender:p,itemRender:m,isImgUrl:g,showPreviewIcon:b,showRemoveIcon:E,showDownloadIcon:x,previewIcon:C,removeIcon:S,downloadIcon:T,extra:O,onPreview:I,onDownload:_,onClose:$}=e;var k,R;const{status:M}=l,[H,B]=d.useState(M);d.useEffect(()=>{M!=="removed"&&B(M)},[M]);const[L,D]=d.useState(!1);d.useEffect(()=>{const oe=setTimeout(()=>{D(!0)},300);return()=>{clearTimeout(oe)}},[]);const z=f(l);let W=d.createElement("div",{className:`${n}-icon`},z);if(a==="picture"||a==="picture-card"||a==="picture-circle")if(H==="uploading"||!l.thumbUrl&&!l.url){const oe=le(`${n}-list-item-thumbnail`,{[`${n}-list-item-file`]:H!=="uploading"});W=d.createElement("div",{className:oe},z)}else{const oe=g!=null&&g(l)?d.createElement("img",{src:l.thumbUrl||l.url,alt:l.name,className:`${n}-list-item-image`,crossOrigin:l.crossOrigin}):z,pe=le(`${n}-list-item-thumbnail`,{[`${n}-list-item-file`]:g&&!g(l)});W=d.createElement("a",{className:pe,onClick:ve=>I(l,ve),href:l.url||l.thumbUrl,target:"_blank",rel:"noopener noreferrer"},oe)}const j=le(`${n}-list-item`,`${n}-list-item-${H}`),U=typeof l.linkProps=="string"?JSON.parse(l.linkProps):l.linkProps,q=(typeof E=="function"?E(l):E)?p((typeof S=="function"?S(l):S)||d.createElement(t2,null),()=>$(l),n,o.removeFile,!0):null,A=(typeof x=="function"?x(l):x)&&H==="done"?p((typeof T=="function"?T(l):T)||d.createElement(k1e,null),()=>_(l),n,o.downloadFile):null,P=a!=="picture-card"&&a!=="picture-circle"&&d.createElement("span",{key:"download-delete",className:le(`${n}-list-item-actions`,{picture:a==="picture"})},A,q),Z=typeof O=="function"?O(l):O,V=Z&&d.createElement("span",{className:`${n}-list-item-extra`},Z),Y=le(`${n}-list-item-name`),ee=l.url?d.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:Y,title:l.name},U,{href:l.url,onClick:oe=>I(l,oe)}),l.name,V):d.createElement("span",{key:"view",className:Y,onClick:oe=>I(l,oe),title:l.name},l.name,V),ue=(typeof b=="function"?b(l):b)&&(l.url||l.thumbUrl)?d.createElement("a",{href:l.url||l.thumbUrl,target:"_blank",rel:"noopener noreferrer",onClick:oe=>I(l,oe),title:o.previewFile},typeof C=="function"?C(l):C||d.createElement(Qb,null)):null,ne=(a==="picture-card"||a==="picture-circle")&&H!=="uploading"&&d.createElement("span",{className:`${n}-list-item-actions`},ue,H==="done"&&A,q),{getPrefixCls:se}=d.useContext(At),me=se(),ye=d.createElement("div",{className:j},W,ee,P,ne,L&&d.createElement(ca,{motionName:`${me}-fade`,visible:H==="uploading",motionDeadline:2e3},oe=>{let{className:pe}=oe;const ve="percent"in l?d.createElement(u1e,Object.assign({},u,{type:"line",percent:l.percent,"aria-label":l["aria-label"],"aria-labelledby":l["aria-labelledby"]})):null;return d.createElement("div",{className:le(`${n}-list-item-progress`,pe)},ve)})),de=l.response&&typeof l.response=="string"?l.response:((k=l.error)===null||k===void 0?void 0:k.statusText)||((R=l.error)===null||R===void 0?void 0:R.message)||o.uploadError,ce=H==="error"?d.createElement(sl,{title:de,getPopupContainer:oe=>oe.parentNode},ye):ye;return d.createElement("div",{className:le(`${n}-list-item-container`,r),style:i,ref:t},m?m(ce,l,c,{download:_.bind(null,l),preview:I.bind(null,l),remove:$.bind(null,l)}):ce)}),qge=(e,t)=>{const{listType:n="text",previewFile:r=Vge,onPreview:i,onDownload:o,onRemove:a,locale:l,iconRender:c,isImageUrl:u=Kge,prefixCls:f,items:p=[],showPreviewIcon:m=!0,showRemoveIcon:g=!0,showDownloadIcon:b=!1,removeIcon:E,previewIcon:x,downloadIcon:C,extra:S,progress:T={size:[-1,2],showInfo:!1},appendAction:O,appendActionVisible:I=!0,itemRender:_,disabled:$}=e,k=H8(),[R,M]=d.useState(!1),H=["picture-card","picture-circle"].includes(n);d.useEffect(()=>{n.startsWith("picture")&&(p||[]).forEach(V=>{!(V.originFileObj instanceof File||V.originFileObj instanceof Blob)||V.thumbUrl!==void 0||(V.thumbUrl="",r==null||r(V.originFileObj).then(Y=>{V.thumbUrl=Y||"",k()}))})},[n,p,r]),d.useEffect(()=>{M(!0)},[]);const B=(V,Y)=>{if(i)return Y==null||Y.preventDefault(),i(V)},L=V=>{typeof o=="function"?o(V):V.url&&window.open(V.url)},D=V=>{a==null||a(V)},z=V=>{if(c)return c(V,n);const Y=V.status==="uploading";if(n.startsWith("picture")){const ee=n==="picture"?d.createElement(Ec,null):l.uploading,ue=u!=null&&u(V)?d.createElement(yhe,null):d.createElement(z1e,null);return Y?ee:ue}return Y?d.createElement(Ec,null):d.createElement(mhe,null)},W=(V,Y,ee,ue,ne)=>{const se={type:"text",size:"small",title:ue,onClick:me=>{var ye,de;Y(),d.isValidElement(V)&&((de=(ye=V.props).onClick)===null||de===void 0||de.call(ye,me))},className:`${ee}-list-item-action`};return ne&&(se.disabled=$),d.isValidElement(V)?d.createElement(Dn,Object.assign({},se,{icon:mi(V,Object.assign(Object.assign({},V.props),{onClick:()=>{}}))})):d.createElement(Dn,Object.assign({},se),d.createElement("span",null,V))};d.useImperativeHandle(t,()=>({handlePreview:B,handleDownload:L}));const{getPrefixCls:j}=d.useContext(At),U=j("upload",f),q=j(),A=le(`${U}-list`,`${U}-list-${n}`),P=d.useMemo(()=>tr(Xp(q),["onAppearEnd","onEnterEnd","onLeaveEnd"]),[q]),Z=Object.assign(Object.assign({},H?{}:P),{motionDeadline:2e3,motionName:`${U}-${H?"animate-inline":"animate"}`,keys:Qe(p.map(V=>({key:V.uid,file:V}))),motionAppear:R});return d.createElement("div",{className:A},d.createElement(f8,Object.assign({},Z,{component:!1}),V=>{let{key:Y,file:ee,className:ue,style:ne}=V;return d.createElement(Gge,{key:Y,locale:l,prefixCls:U,className:ue,style:ne,file:ee,items:p,progress:T,listType:n,isImgUrl:u,showPreviewIcon:m,showRemoveIcon:g,showDownloadIcon:b,removeIcon:E,previewIcon:x,downloadIcon:C,extra:S,iconRender:z,actionIconRender:W,itemRender:_,onPreview:B,onDownload:L,onClose:D})}),O&&d.createElement(ca,Object.assign({},Z,{visible:I,forceRender:!0}),V=>{let{className:Y,style:ee}=V;return mi(O,ue=>({className:le(ue.className,Y),style:Object.assign(Object.assign(Object.assign({},ee),{pointerEvents:Y?"none":void 0}),ue.style)}))}))},Xge=d.forwardRef(qge);var Yge=function(e,t,n,r){function i(o){return o instanceof n?o:new n(function(a){a(o)})}return new(n||(n=Promise))(function(o,a){function l(f){try{u(r.next(f))}catch(p){a(p)}}function c(f){try{u(r.throw(f))}catch(p){a(p)}}function u(f){f.done?o(f.value):i(f.value).then(l,c)}u((r=r.apply(e,[])).next())})};const Dh=`__LIST_IGNORE_${Date.now()}__`,Qge=(e,t)=>{const{fileList:n,defaultFileList:r,onRemove:i,showUploadList:o=!0,listType:a="text",onPreview:l,onDownload:c,onChange:u,onDrop:f,previewFile:p,disabled:m,locale:g,iconRender:b,isImageUrl:E,progress:x,prefixCls:C,className:S,type:T="select",children:O,style:I,itemRender:_,maxCount:$,data:k={},multiple:R=!1,hasControlInside:M=!0,action:H="",accept:B="",supportServerRender:L=!0,rootClassName:D}=e,z=d.useContext($a),W=m??z,[j,U]=Tr(r||[],{value:n,postState:re=>re??[]}),[q,A]=d.useState("drop"),P=d.useRef(null),Z=d.useRef(null);d.useMemo(()=>{const re=Date.now();(n||[]).forEach((Ie,Re)=>{!Ie.uid&&!Object.isFrozen(Ie)&&(Ie.uid=`__AUTO__${re}_${Re}__`)})},[n]);const V=(re,Ie,Re)=>{let Ae=Qe(Ie),Ye=!1;$===1?Ae=Ae.slice(-1):$&&(Ye=Ae.length>$,Ae=Ae.slice(0,$)),Oa.flushSync(()=>{U(Ae)});const mt={file:re,fileList:Ae};Re&&(mt.event=Re),(!Ye||re.status==="removed"||Ae.some(Nt=>Nt.uid===re.uid))&&Oa.flushSync(()=>{u==null||u(mt)})},Y=(re,Ie)=>Yge(void 0,void 0,void 0,function*(){const{beforeUpload:Re,transformFile:Ae}=e;let Ye=re;if(Re){const mt=yield Re(re,Ie);if(mt===!1)return!1;if(delete re[Dh],mt===Dh)return Object.defineProperty(re,Dh,{value:!0,configurable:!0}),!1;typeof mt=="object"&&mt&&(Ye=mt)}return Ae&&(Ye=yield Ae(Ye)),Ye}),ee=re=>{const Ie=re.filter(Ye=>!Ye.file[Dh]);if(!Ie.length)return;const Re=Ie.map(Ye=>ug(Ye.file));let Ae=Qe(j);Re.forEach(Ye=>{Ae=dg(Ye,Ae)}),Re.forEach((Ye,mt)=>{let Nt=Ye;if(Ie[mt].parsedFile)Ye.status="uploading";else{const{originFileObj:qt}=Ye;let Ft;try{Ft=new File([qt],qt.name,{type:qt.type})}catch{Ft=new Blob([qt],{type:qt.type}),Ft.name=qt.name,Ft.lastModifiedDate=new Date,Ft.lastModified=new Date().getTime()}Ft.uid=Ye.uid,Nt=Ft}V(Nt,Ae)})},ue=(re,Ie,Re)=>{try{typeof re=="string"&&(re=JSON.parse(re))}catch{}if(!a9(Ie,j))return;const Ae=ug(Ie);Ae.status="done",Ae.percent=100,Ae.response=re,Ae.xhr=Re;const Ye=dg(Ae,j);V(Ae,Ye)},ne=(re,Ie)=>{if(!a9(Ie,j))return;const Re=ug(Ie);Re.status="uploading",Re.percent=re.percent;const Ae=dg(Re,j);V(Re,Ae,re)},se=(re,Ie,Re)=>{if(!a9(Re,j))return;const Ae=ug(Re);Ae.error=re,Ae.response=Ie,Ae.status="error";const Ye=dg(Ae,j);V(Ae,Ye)},me=re=>{let Ie;Promise.resolve(typeof i=="function"?i(re):i).then(Re=>{var Ae;if(Re===!1)return;const Ye=Wge(re,j);Ye&&(Ie=Object.assign(Object.assign({},re),{status:"removed"}),j==null||j.forEach(mt=>{const Nt=Ie.uid!==void 0?"uid":"name";mt[Nt]===Ie[Nt]&&!Object.isFrozen(mt)&&(mt.status="removed")}),(Ae=P.current)===null||Ae===void 0||Ae.abort(Ie),V(Ie,Ye))})},ye=re=>{A(re.type),re.type==="drop"&&(f==null||f(re))};d.useImperativeHandle(t,()=>({onBatchStart:ee,onSuccess:ue,onProgress:ne,onError:se,fileList:j,upload:P.current,nativeElement:Z.current}));const{getPrefixCls:de,direction:ce,upload:oe}=d.useContext(At),pe=de("upload",C),ve=Object.assign(Object.assign({onBatchStart:ee,onError:se,onProgress:ne,onSuccess:ue},e),{data:k,multiple:R,action:H,accept:B,supportServerRender:L,prefixCls:pe,disabled:W,beforeUpload:Y,onChange:void 0,hasControlInside:M});delete ve.className,delete ve.style,(!O||W)&&delete ve.id;const Te=`${pe}-wrapper`,[Ge,je,Je]=zge(pe,Te),[Se]=Dl("Upload",Pl.Upload),{showRemoveIcon:$e,showPreviewIcon:qe,showDownloadIcon:Le,removeIcon:Fe,previewIcon:Ke,downloadIcon:Ve,extra:Ce}=typeof o=="boolean"?{}:o,Pe=typeof $e>"u"?!W:$e,We=(re,Ie)=>o?d.createElement(Xge,{prefixCls:pe,listType:a,items:j,previewFile:p,onPreview:l,onDownload:c,onRemove:me,showRemoveIcon:Pe,showPreviewIcon:qe,showDownloadIcon:Le,removeIcon:Fe,previewIcon:Ke,downloadIcon:Ve,iconRender:b,extra:Ce,locale:Object.assign(Object.assign({},Se),g),isImageUrl:E,progress:x,appendAction:re,appendActionVisible:Ie,itemRender:_,disabled:W}):re,Ze=le(Te,S,D,je,Je,oe==null?void 0:oe.className,{[`${pe}-rtl`]:ce==="rtl",[`${pe}-picture-card-wrapper`]:a==="picture-card",[`${pe}-picture-circle-wrapper`]:a==="picture-circle"}),ut=Object.assign(Object.assign({},oe==null?void 0:oe.style),I);if(T==="drag"){const re=le(je,pe,`${pe}-drag`,{[`${pe}-drag-uploading`]:j.some(Ie=>Ie.status==="uploading"),[`${pe}-drag-hover`]:q==="dragover",[`${pe}-disabled`]:W,[`${pe}-rtl`]:ce==="rtl"});return Ge(d.createElement("span",{className:Ze,ref:Z},d.createElement("div",{className:re,style:ut,onDrop:ye,onDragOver:ye,onDragLeave:ye},d.createElement(EE,Object.assign({},ve,{ref:P,className:`${pe}-btn`}),d.createElement("div",{className:`${pe}-drag-container`},O))),We()))}const Be=le(pe,`${pe}-select`,{[`${pe}-disabled`]:W}),ot=d.createElement("div",{className:Be,style:O?void 0:{display:"none"}},d.createElement(EE,Object.assign({},ve,{ref:P})));return Ge(a==="picture-card"||a==="picture-circle"?d.createElement("span",{className:Ze,ref:Z},We(ot,!!O)):d.createElement("span",{className:Ze,ref:Z},ot,We()))},Tj=d.forwardRef(Qge);var Zge=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const Jge=d.forwardRef((e,t)=>{var{style:n,height:r,hasControlInside:i=!1}=e,o=Zge(e,["style","height","hasControlInside"]);return d.createElement(Tj,Object.assign({ref:t,hasControlInside:i},o,{type:"drag",style:Object.assign(Object.assign({},n),{height:r})}))}),_3=Tj;_3.Dragger=Jge;_3.LIST_IGNORE=Dh;var l2={},_j={exports:{}};(function(e){function t(n){return n&&n.__esModule?n:{default:n}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(_j);var s2=_j.exports,c2={};Object.defineProperty(c2,"__esModule",{value:!0});c2.default=void 0;var eve={items_per_page:"条/页",jump_to:"跳至",jump_to_confirm:"确定",page:"页",prev_page:"上一页",next_page:"下一页",prev_5:"向前 5 页",next_5:"向后 5 页",prev_3:"向前 3 页",next_3:"向后 3 页",page_size:"页码"};c2.default=eve;var u2={},Hm={},d2={},Oj={exports:{}},Ij={exports:{}},$j={exports:{}},Nj={exports:{}};(function(e){function t(n){"@babel/helpers - typeof";return e.exports=t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(Nj);var Aj=Nj.exports,kj={exports:{}};(function(e){var t=Aj.default;function n(r,i){if(t(r)!="object"||!r)return r;var o=r[Symbol.toPrimitive];if(o!==void 0){var a=o.call(r,i||"default");if(t(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(i==="string"?String:Number)(r)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports})(kj);var tve=kj.exports;(function(e){var t=Aj.default,n=tve;function r(i){var o=n(i,"string");return t(o)=="symbol"?o:o+""}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports})($j);var nve=$j.exports;(function(e){var t=nve;function n(r,i,o){return(i=t(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o,r}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports})(Ij);var rve=Ij.exports;(function(e){var t=rve;function n(i,o){var a=Object.keys(i);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(i);o&&(l=l.filter(function(c){return Object.getOwnPropertyDescriptor(i,c).enumerable})),a.push.apply(a,l)}return a}function r(i){for(var o=1;o<arguments.length;o++){var a=arguments[o]!=null?arguments[o]:{};o%2?n(Object(a),!0).forEach(function(l){t(i,l,a[l])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(a)):n(Object(a)).forEach(function(l){Object.defineProperty(i,l,Object.getOwnPropertyDescriptor(a,l))})}return i}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports})(Oj);var ive=Oj.exports,f2={};Object.defineProperty(f2,"__esModule",{value:!0});f2.commonLocale=void 0;f2.commonLocale={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0};var ove=s2.default;Object.defineProperty(d2,"__esModule",{value:!0});d2.default=void 0;var p$=ove(ive),ave=f2,lve=(0,p$.default)((0,p$.default)({},ave.commonLocale),{},{locale:"zh_CN",today:"今天",now:"此刻",backToToday:"返回今天",ok:"确定",timeSelect:"选择时间",dateSelect:"选择日期",weekSelect:"选择周",clear:"清除",month:"月",year:"年",previousMonth:"上个月 (翻页上键)",nextMonth:"下个月 (翻页下键)",monthSelect:"选择月份",yearSelect:"选择年份",decadeSelect:"选择年代",previousYear:"上一年 (Control键加左方向键)",nextYear:"下一年 (Control键加右方向键)",previousDecade:"上一年代",nextDecade:"下一年代",previousCentury:"上一世纪",nextCentury:"下一世纪",yearFormat:"YYYY年",cellDateFormat:"D",monthBeforeYear:!1});d2.default=lve;var zm={};Object.defineProperty(zm,"__esModule",{value:!0});zm.default=void 0;const sve={placeholder:"请选择时间",rangePlaceholder:["开始时间","结束时间"]};zm.default=sve;var Rj=s2.default;Object.defineProperty(Hm,"__esModule",{value:!0});Hm.default=void 0;var cve=Rj(d2),uve=Rj(zm);const Mj={lang:Object.assign({placeholder:"请选择日期",yearPlaceholder:"请选择年份",quarterPlaceholder:"请选择季度",monthPlaceholder:"请选择月份",weekPlaceholder:"请选择周",rangePlaceholder:["开始日期","结束日期"],rangeYearPlaceholder:["开始年份","结束年份"],rangeMonthPlaceholder:["开始月份","结束月份"],rangeQuarterPlaceholder:["开始季度","结束季度"],rangeWeekPlaceholder:["开始周","结束周"]},cve.default),timePickerLocale:Object.assign({},uve.default)};Mj.lang.ok="确定";Hm.default=Mj;var dve=s2.default;Object.defineProperty(u2,"__esModule",{value:!0});u2.default=void 0;var fve=dve(Hm);u2.default=fve.default;var h2=s2.default;Object.defineProperty(l2,"__esModule",{value:!0});l2.default=void 0;var hve=h2(c2),pve=h2(u2),mve=h2(Hm),gve=h2(zm);const Wo="${label}不是一个有效的${type}",vve={locale:"zh-cn",Pagination:hve.default,DatePicker:mve.default,TimePicker:gve.default,Calendar:pve.default,global:{placeholder:"请选择"},Table:{filterTitle:"筛选",filterConfirm:"确定",filterReset:"重置",filterEmptyText:"无筛选项",filterCheckall:"全选",filterSearchPlaceholder:"在筛选项中搜索",emptyText:"暂无数据",selectAll:"全选当页",selectInvert:"反选当页",selectNone:"清空所有",selectionAll:"全选所有",sortTitle:"排序",expand:"展开行",collapse:"关闭行",triggerDesc:"点击降序",triggerAsc:"点击升序",cancelSort:"取消排序"},Modal:{okText:"确定",cancelText:"取消",justOkText:"知道了"},Tour:{Next:"下一步",Previous:"上一步",Finish:"结束导览"},Popconfirm:{cancelText:"取消",okText:"确定"},Transfer:{titles:["",""],searchPlaceholder:"请输入搜索内容",itemUnit:"项",itemsUnit:"项",remove:"删除",selectCurrent:"全选当页",removeCurrent:"删除当页",selectAll:"全选所有",deselectAll:"取消全选",removeAll:"删除全部",selectInvert:"反选当页"},Upload:{uploading:"文件上传中",removeFile:"删除文件",uploadError:"上传错误",previewFile:"预览文件",downloadFile:"下载文件"},Empty:{description:"暂无数据"},Icon:{icon:"图标"},Text:{edit:"编辑",copy:"复制",copied:"复制成功",expand:"展开",collapse:"收起"},Form:{optional:"(可选)",defaultValidateMessages:{default:"字段验证错误${label}",required:"请输入${label}",enum:"${label}必须是其中一个[${enum}]",whitespace:"${label}不能为空字符",date:{format:"${label}日期格式无效",parse:"${label}不能转换为日期",invalid:"${label}是一个无效日期"},types:{string:Wo,method:Wo,array:Wo,object:Wo,number:Wo,date:Wo,boolean:Wo,integer:Wo,float:Wo,regexp:Wo,email:Wo,url:Wo,hex:Wo},string:{len:"${label}须为${len}个字符",min:"${label}最少${min}个字符",max:"${label}最多${max}个字符",range:"${label}须在${min}-${max}字符之间"},number:{len:"${label}必须等于${len}",min:"${label}最小值为${min}",max:"${label}最大值为${max}",range:"${label}须在${min}-${max}之间"},array:{len:"须为${len}个${label}",min:"最少${min}个${label}",max:"最多${max}个${label}",range:"${label}数量须在${min}-${max}之间"},pattern:{mismatch:"${label}与模式不匹配${pattern}"}}},Image:{preview:"预览"},QRCode:{expired:"二维码过期",refresh:"点击刷新",scanned:"已扫描"},ColorPicker:{presetEmpty:"暂无",transparent:"无色",singleColor:"单色",gradientColor:"渐变色"}};l2.default=vve;var yve=l2;const bve=ul(yve),Cve={BASE_URL:"/",DEV:!1,MODE:"production",PROD:!0,SSR:!1},m$=e=>{let t;const n=new Set,r=(f,p)=>{const m=typeof f=="function"?f(t):f;if(!Object.is(m,t)){const g=t;t=p??(typeof m!="object"||m===null)?m:Object.assign({},t,m),n.forEach(b=>b(t,g))}},i=()=>t,c={setState:r,getState:i,getInitialState:()=>u,subscribe:f=>(n.add(f),()=>n.delete(f)),destroy:()=>{(Cve?"production":void 0)!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}},u=t=e(r,i,c);return c},Sve=e=>e?m$(e):m$;var Pj={exports:{}},Lj={},Dj={exports:{}},Fj={};/**
* @license React
* use-sync-external-store-shim.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 Kf=d;function Eve(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var xve=typeof Object.is=="function"?Object.is:Eve,wve=Kf.useState,Tve=Kf.useEffect,_ve=Kf.useLayoutEffect,Ove=Kf.useDebugValue;function Ive(e,t){var n=t(),r=wve({inst:{value:n,getSnapshot:t}}),i=r[0].inst,o=r[1];return _ve(function(){i.value=n,i.getSnapshot=t,l9(i)&&o({inst:i})},[e,n,t]),Tve(function(){return l9(i)&&o({inst:i}),e(function(){l9(i)&&o({inst:i})})},[e]),Ove(n),n}function l9(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!xve(e,n)}catch{return!0}}function $ve(e,t){return t()}var Nve=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?$ve:Ive;Fj.useSyncExternalStore=Kf.useSyncExternalStore!==void 0?Kf.useSyncExternalStore:Nve;Dj.exports=Fj;var Ave=Dj.exports;/**
* @license React
* use-sync-external-store-shim/with-selector.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 p2=d,kve=Ave;function Rve(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Mve=typeof Object.is=="function"?Object.is:Rve,Pve=kve.useSyncExternalStore,Lve=p2.useRef,Dve=p2.useEffect,Fve=p2.useMemo,Bve=p2.useDebugValue;Lj.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var o=Lve(null);if(o.current===null){var a={hasValue:!1,value:null};o.current=a}else a=o.current;o=Fve(function(){function c(g){if(!u){if(u=!0,f=g,g=r(g),i!==void 0&&a.hasValue){var b=a.value;if(i(b,g))return p=b}return p=g}if(b=p,Mve(f,g))return b;var E=r(g);return i!==void 0&&i(b,E)?b:(f=g,p=E)}var u=!1,f,p,m=n===void 0?null:n;return[function(){return c(t())},m===null?void 0:function(){return c(m())}]},[t,n,r,i]);var l=Pve(e,o[0],o[1]);return Dve(function(){a.hasValue=!0,a.value=l},[l]),Bve(l),l};Pj.exports=Lj;var jve=Pj.exports;const Hve=ul(jve),Bj={BASE_URL:"/",DEV:!1,MODE:"production",PROD:!0,SSR:!1},{useDebugValue:zve}=be,{useSyncExternalStoreWithSelector:Wve}=Hve;let g$=!1;const Uve=e=>e;function Kve(e,t=Uve,n){(Bj?"production":void 0)!=="production"&&n&&!g$&&(console.warn("[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"),g$=!0);const r=Wve(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,n);return zve(r),r}const v$=e=>{(Bj?"production":void 0)!=="production"&&typeof e!="function"&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");const t=typeof e=="function"?Sve(e):e,n=(r,i)=>Kve(t,r,i);return Object.assign(n,t),n},O3=e=>e?v$(e):v$,Vve={BASE_URL:"/",DEV:!1,MODE:"production",PROD:!0,SSR:!1};function Gve(e,t){let n;try{n=e()}catch{return}return{getItem:i=>{var o;const a=c=>c===null?null:JSON.parse(c,void 0),l=(o=n.getItem(i))!=null?o:null;return l instanceof Promise?l.then(a):a(l)},setItem:(i,o)=>n.setItem(i,JSON.stringify(o,void 0)),removeItem:i=>n.removeItem(i)}}const om=e=>t=>{try{const n=e(t);return n instanceof Promise?n:{then(r){return om(r)(n)},catch(r){return this}}}catch(n){return{then(r){return this},catch(r){return om(r)(n)}}}},qve=(e,t)=>(n,r,i)=>{let o={getStorage:()=>localStorage,serialize:JSON.stringify,deserialize:JSON.parse,partialize:x=>x,version:0,merge:(x,C)=>({...C,...x}),...t},a=!1;const l=new Set,c=new Set;let u;try{u=o.getStorage()}catch{}if(!u)return e((...x)=>{console.warn(`[zustand persist middleware] Unable to update item '${o.name}', the given storage is currently unavailable.`),n(...x)},r,i);const f=om(o.serialize),p=()=>{const x=o.partialize({...r()});let C;const S=f({state:x,version:o.version}).then(T=>u.setItem(o.name,T)).catch(T=>{C=T});if(C)throw C;return S},m=i.setState;i.setState=(x,C)=>{m(x,C),p()};const g=e((...x)=>{n(...x),p()},r,i);let b;const E=()=>{var x;if(!u)return;a=!1,l.forEach(S=>S(r()));const C=((x=o.onRehydrateStorage)==null?void 0:x.call(o,r()))||void 0;return om(u.getItem.bind(u))(o.name).then(S=>{if(S)return o.deserialize(S)}).then(S=>{if(S)if(typeof S.version=="number"&&S.version!==o.version){if(o.migrate)return o.migrate(S.state,S.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return S.state}).then(S=>{var T;return b=o.merge(S,(T=r())!=null?T:g),n(b,!0),p()}).then(()=>{C==null||C(b,void 0),a=!0,c.forEach(S=>S(b))}).catch(S=>{C==null||C(void 0,S)})};return i.persist={setOptions:x=>{o={...o,...x},x.getStorage&&(u=x.getStorage())},clearStorage:()=>{u==null||u.removeItem(o.name)},getOptions:()=>o,rehydrate:()=>E(),hasHydrated:()=>a,onHydrate:x=>(l.add(x),()=>{l.delete(x)}),onFinishHydration:x=>(c.add(x),()=>{c.delete(x)})},E(),b||g},Xve=(e,t)=>(n,r,i)=>{let o={storage:Gve(()=>localStorage),partialize:E=>E,version:0,merge:(E,x)=>({...x,...E}),...t},a=!1;const l=new Set,c=new Set;let u=o.storage;if(!u)return e((...E)=>{console.warn(`[zustand persist middleware] Unable to update item '${o.name}', the given storage is currently unavailable.`),n(...E)},r,i);const f=()=>{const E=o.partialize({...r()});return u.setItem(o.name,{state:E,version:o.version})},p=i.setState;i.setState=(E,x)=>{p(E,x),f()};const m=e((...E)=>{n(...E),f()},r,i);i.getInitialState=()=>m;let g;const b=()=>{var E,x;if(!u)return;a=!1,l.forEach(S=>{var T;return S((T=r())!=null?T:m)});const C=((x=o.onRehydrateStorage)==null?void 0:x.call(o,(E=r())!=null?E:m))||void 0;return om(u.getItem.bind(u))(o.name).then(S=>{if(S)if(typeof S.version=="number"&&S.version!==o.version){if(o.migrate)return[!0,o.migrate(S.state,S.version)];console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return[!1,S.state];return[!1,void 0]}).then(S=>{var T;const[O,I]=S;if(g=o.merge(I,(T=r())!=null?T:m),n(g,!0),O)return f()}).then(()=>{C==null||C(g,void 0),g=r(),a=!0,c.forEach(S=>S(g))}).catch(S=>{C==null||C(void 0,S)})};return i.persist={setOptions:E=>{o={...o,...E},E.storage&&(u=E.storage)},clearStorage:()=>{u==null||u.removeItem(o.name)},getOptions:()=>o,rehydrate:()=>b(),hasHydrated:()=>a,onHydrate:E=>(l.add(E),()=>{l.delete(E)}),onFinishHydration:E=>(c.add(E),()=>{c.delete(E)})},o.skipHydration||b(),g||m},Yve=(e,t)=>"getStorage"in t||"serialize"in t||"deserialize"in t?((Vve?"production":void 0)!=="production"&&console.warn("[DEPRECATED] `getStorage`, `serialize` and `deserialize` options are deprecated. Use `storage` option instead."),qve(e,t)):Xve(e,t),Qve=Yve,I3=O3()(Qve(e=>({user:null,token:null,setUser:t=>e({user:t}),setToken:t=>e({token:t}),logout:()=>e({user:null,token:null})}),{name:"auth-storage"}));var $o=function(){return $o=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},$o.apply(this,arguments)};function wy(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,o;r<i;r++)(o||!(r in t))&&(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))}var hr="-ms-",op="-moz-",Wn="-webkit-",jj="comm",m2="rule",$3="decl",Zve="@import",Hj="@keyframes",Jve="@layer",zj=Math.abs,N3=String.fromCharCode,xE=Object.assign;function eye(e,t){return Ei(e,0)^45?(((t<<2^Ei(e,0))<<2^Ei(e,1))<<2^Ei(e,2))<<2^Ei(e,3):0}function Wj(e){return e.trim()}function ns(e,t){return(e=t.exec(e))?e[0]:e}function yn(e,t,n){return e.replace(t,n)}function dv(e,t,n){return e.indexOf(t,n)}function Ei(e,t){return e.charCodeAt(t)|0}function Vf(e,t,n){return e.slice(t,n)}function xl(e){return e.length}function Uj(e){return e.length}function Fh(e,t){return t.push(e),e}function tye(e,t){return e.map(t).join("")}function y$(e,t){return e.filter(function(n){return!ns(n,t)})}var g2=1,Gf=1,Kj=0,Na=0,Jr=0,b1="";function v2(e,t,n,r,i,o,a,l){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:g2,column:Gf,length:a,return:"",siblings:l}}function Ks(e,t){return xE(v2("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function Rd(e){for(;e.root;)e=Ks(e.root,{children:[e]});Fh(e,e.siblings)}function nye(){return Jr}function rye(){return Jr=Na>0?Ei(b1,--Na):0,Gf--,Jr===10&&(Gf=1,g2--),Jr}function nl(){return Jr=Na<Kj?Ei(b1,Na++):0,Gf++,Jr===10&&(Gf=1,g2++),Jr}function _u(){return Ei(b1,Na)}function fv(){return Na}function y2(e,t){return Vf(b1,e,t)}function wE(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function iye(e){return g2=Gf=1,Kj=xl(b1=e),Na=0,[]}function oye(e){return b1="",e}function s9(e){return Wj(y2(Na-1,TE(e===91?e+2:e===40?e+1:e)))}function aye(e){for(;(Jr=_u())&&Jr<33;)nl();return wE(e)>2||wE(Jr)>3?"":" "}function lye(e,t){for(;--t&&nl()&&!(Jr<48||Jr>102||Jr>57&&Jr<65||Jr>70&&Jr<97););return y2(e,fv()+(t<6&&_u()==32&&nl()==32))}function TE(e){for(;nl();)switch(Jr){case e:return Na;case 34:case 39:e!==34&&e!==39&&TE(Jr);break;case 40:e===41&&TE(e);break;case 92:nl();break}return Na}function sye(e,t){for(;nl()&&e+Jr!==57;)if(e+Jr===84&&_u()===47)break;return"/*"+y2(t,Na-1)+"*"+N3(e===47?e:nl())}function cye(e){for(;!wE(_u());)nl();return y2(e,Na)}function uye(e){return oye(hv("",null,null,null,[""],e=iye(e),0,[0],e))}function hv(e,t,n,r,i,o,a,l,c){for(var u=0,f=0,p=a,m=0,g=0,b=0,E=1,x=1,C=1,S=0,T="",O=i,I=o,_=r,$=T;x;)switch(b=S,S=nl()){case 40:if(b!=108&&Ei($,p-1)==58){dv($+=yn(s9(S),"&","&\f"),"&\f",zj(u?l[u-1]:0))!=-1&&(C=-1);break}case 34:case 39:case 91:$+=s9(S);break;case 9:case 10:case 13:case 32:$+=aye(b);break;case 92:$+=lye(fv()-1,7);continue;case 47:switch(_u()){case 42:case 47:Fh(dye(sye(nl(),fv()),t,n,c),c);break;default:$+="/"}break;case 123*E:l[u++]=xl($)*C;case 125*E:case 59:case 0:switch(S){case 0:case 125:x=0;case 59+f:C==-1&&($=yn($,/\f/g,"")),g>0&&xl($)-p&&Fh(g>32?C$($+";",r,n,p-1,c):C$(yn($," ","")+";",r,n,p-2,c),c);break;case 59:$+=";";default:if(Fh(_=b$($,t,n,u,f,i,l,T,O=[],I=[],p,o),o),S===123)if(f===0)hv($,t,_,_,O,o,p,l,I);else switch(m===99&&Ei($,3)===110?100:m){case 100:case 108:case 109:case 115:hv(e,_,_,r&&Fh(b$(e,_,_,0,0,i,l,T,i,O=[],p,I),I),i,I,p,l,r?O:I);break;default:hv($,_,_,_,[""],I,0,l,I)}}u=f=g=0,E=C=1,T=$="",p=a;break;case 58:p=1+xl($),g=b;default:if(E<1){if(S==123)--E;else if(S==125&&E++==0&&rye()==125)continue}switch($+=N3(S),S*E){case 38:C=f>0?1:($+="\f",-1);break;case 44:l[u++]=(xl($)-1)*C,C=1;break;case 64:_u()===45&&($+=s9(nl())),m=_u(),f=p=xl(T=$+=cye(fv())),S++;break;case 45:b===45&&xl($)==2&&(E=0)}}return o}function b$(e,t,n,r,i,o,a,l,c,u,f,p){for(var m=i-1,g=i===0?o:[""],b=Uj(g),E=0,x=0,C=0;E<r;++E)for(var S=0,T=Vf(e,m+1,m=zj(x=a[E])),O=e;S<b;++S)(O=Wj(x>0?g[S]+" "+T:yn(T,/&\f/g,g[S])))&&(c[C++]=O);return v2(e,t,n,i===0?m2:l,c,u,f,p)}function dye(e,t,n,r){return v2(e,t,n,jj,N3(nye()),Vf(e,2,-2),0,r)}function C$(e,t,n,r,i){return v2(e,t,n,$3,Vf(e,0,r),Vf(e,r+1,-1),r,i)}function Vj(e,t,n){switch(eye(e,t)){case 5103:return Wn+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Wn+e+e;case 4789:return op+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Wn+e+op+e+hr+e+e;case 5936:switch(Ei(e,t+11)){case 114:return Wn+e+hr+yn(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Wn+e+hr+yn(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Wn+e+hr+yn(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return Wn+e+hr+e+e;case 6165:return Wn+e+hr+"flex-"+e+e;case 5187:return Wn+e+yn(e,/(\w+).+(:[^]+)/,Wn+"box-$1$2"+hr+"flex-$1$2")+e;case 5443:return Wn+e+hr+"flex-item-"+yn(e,/flex-|-self/g,"")+(ns(e,/flex-|baseline/)?"":hr+"grid-row-"+yn(e,/flex-|-self/g,""))+e;case 4675:return Wn+e+hr+"flex-line-pack"+yn(e,/align-content|flex-|-self/g,"")+e;case 5548:return Wn+e+hr+yn(e,"shrink","negative")+e;case 5292:return Wn+e+hr+yn(e,"basis","preferred-size")+e;case 6060:return Wn+"box-"+yn(e,"-grow","")+Wn+e+hr+yn(e,"grow","positive")+e;case 4554:return Wn+yn(e,/([^-])(transform)/g,"$1"+Wn+"$2")+e;case 6187:return yn(yn(yn(e,/(zoom-|grab)/,Wn+"$1"),/(image-set)/,Wn+"$1"),e,"")+e;case 5495:case 3959:return yn(e,/(image-set\([^]*)/,Wn+"$1$`$1");case 4968:return yn(yn(e,/(.+:)(flex-)?(.*)/,Wn+"box-pack:$3"+hr+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Wn+e+e;case 4200:if(!ns(e,/flex-|baseline/))return hr+"grid-column-align"+Vf(e,t)+e;break;case 2592:case 3360:return hr+yn(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(r,i){return t=i,ns(r.props,/grid-\w+-end/)})?~dv(e+(n=n[t].value),"span",0)?e:hr+yn(e,"-start","")+e+hr+"grid-row-span:"+(~dv(n,"span",0)?ns(n,/\d+/):+ns(n,/\d+/)-+ns(e,/\d+/))+";":hr+yn(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(r){return ns(r.props,/grid-\w+-start/)})?e:hr+yn(yn(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return yn(e,/(.+)-inline(.+)/,Wn+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(xl(e)-1-t>6)switch(Ei(e,t+1)){case 109:if(Ei(e,t+4)!==45)break;case 102:return yn(e,/(.+:)(.+)-([^]+)/,"$1"+Wn+"$2-$3$1"+op+(Ei(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~dv(e,"stretch",0)?Vj(yn(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return yn(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(r,i,o,a,l,c,u){return hr+i+":"+o+u+(a?hr+i+"-span:"+(l?c:+c-+o)+u:"")+e});case 4949:if(Ei(e,t+6)===121)return yn(e,":",":"+Wn)+e;break;case 6444:switch(Ei(e,Ei(e,14)===45?18:11)){case 120:return yn(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+Wn+(Ei(e,14)===45?"inline-":"")+"box$3$1"+Wn+"$2$3$1"+hr+"$2box$3")+e;case 100:return yn(e,":",":"+hr)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return yn(e,"scroll-","scroll-snap-")+e}return e}function Ty(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function fye(e,t,n,r){switch(e.type){case Jve:if(e.children.length)break;case Zve:case $3:return e.return=e.return||e.value;case jj:return"";case Hj:return e.return=e.value+"{"+Ty(e.children,r)+"}";case m2:if(!xl(e.value=e.props.join(",")))return""}return xl(n=Ty(e.children,r))?e.return=e.value+"{"+n+"}":""}function hye(e){var t=Uj(e);return function(n,r,i,o){for(var a="",l=0;l<t;l++)a+=e[l](n,r,i,o)||"";return a}}function pye(e){return function(t){t.root||(t=t.return)&&e(t)}}function mye(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case $3:e.return=Vj(e.value,e.length,n);return;case Hj:return Ty([Ks(e,{value:yn(e.value,"@","@"+Wn)})],r);case m2:if(e.length)return tye(n=e.props,function(i){switch(ns(i,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":Rd(Ks(e,{props:[yn(i,/:(read-\w+)/,":"+op+"$1")]})),Rd(Ks(e,{props:[i]})),xE(e,{props:y$(n,r)});break;case"::placeholder":Rd(Ks(e,{props:[yn(i,/:(plac\w+)/,":"+Wn+"input-$1")]})),Rd(Ks(e,{props:[yn(i,/:(plac\w+)/,":"+op+"$1")]})),Rd(Ks(e,{props:[yn(i,/:(plac\w+)/,hr+"input-$1")]})),Rd(Ks(e,{props:[i]})),xE(e,{props:y$(n,r)});break}return""})}}var gye={animationIterationCount:1,aspectRatio: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},Vo={},qf=typeof process<"u"&&Vo!==void 0&&(Vo.REACT_APP_SC_ATTR||Vo.SC_ATTR)||"data-styled",Gj="active",qj="data-styled-version",b2="6.1.13",A3=`/*!sc*/
`,_y=typeof window<"u"&&"HTMLElement"in window,vye=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:typeof process<"u"&&Vo!==void 0&&Vo.REACT_APP_SC_DISABLE_SPEEDY!==void 0&&Vo.REACT_APP_SC_DISABLE_SPEEDY!==""?Vo.REACT_APP_SC_DISABLE_SPEEDY!=="false"&&Vo.REACT_APP_SC_DISABLE_SPEEDY:typeof process<"u"&&Vo!==void 0&&Vo.SC_DISABLE_SPEEDY!==void 0&&Vo.SC_DISABLE_SPEEDY!==""&&Vo.SC_DISABLE_SPEEDY!=="false"&&Vo.SC_DISABLE_SPEEDY),C2=Object.freeze([]),Xf=Object.freeze({});function yye(e,t,n){return n===void 0&&(n=Xf),e.theme!==n.theme&&e.theme||t||n.theme}var Xj=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),bye=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Cye=/(^-|-$)/g;function S$(e){return e.replace(bye,"-").replace(Cye,"")}var Sye=/(a)(d)/gi,fg=52,E$=function(e){return String.fromCharCode(e+(e>25?39:97))};function _E(e){var t,n="";for(t=Math.abs(e);t>fg;t=t/fg|0)n=E$(t%fg)+n;return(E$(t%fg)+n).replace(Sye,"$1-$2")}var c9,Yj=5381,lf=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},Qj=function(e){return lf(Yj,e)};function Eye(e){return _E(Qj(e)>>>0)}function xye(e){return e.displayName||e.name||"Component"}function u9(e){return typeof e=="string"&&!0}var Zj=typeof Symbol=="function"&&Symbol.for,Jj=Zj?Symbol.for("react.memo"):60115,wye=Zj?Symbol.for("react.forward_ref"):60112,Tye={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},_ye={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},eH={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Oye=((c9={})[wye]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},c9[Jj]=eH,c9);function x$(e){return("type"in(t=e)&&t.type.$$typeof)===Jj?eH:"$$typeof"in e?Oye[e.$$typeof]:Tye;var t}var Iye=Object.defineProperty,$ye=Object.getOwnPropertyNames,w$=Object.getOwnPropertySymbols,Nye=Object.getOwnPropertyDescriptor,Aye=Object.getPrototypeOf,T$=Object.prototype;function tH(e,t,n){if(typeof t!="string"){if(T$){var r=Aye(t);r&&r!==T$&&tH(e,r,n)}var i=$ye(t);w$&&(i=i.concat(w$(t)));for(var o=x$(e),a=x$(t),l=0;l<i.length;++l){var c=i[l];if(!(c in _ye||n&&n[c]||a&&c in a||o&&c in o)){var u=Nye(t,c);try{Iye(e,c,u)}catch{}}}}return e}function Yf(e){return typeof e=="function"}function k3(e){return typeof e=="object"&&"styledComponentId"in e}function Cu(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function _$(e,t){if(e.length===0)return"";for(var n=e[0],r=1;r<e.length;r++)n+=e[r];return n}function am(e){return e!==null&&typeof e=="object"&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function OE(e,t,n){if(n===void 0&&(n=!1),!n&&!am(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)e[r]=OE(e[r],t[r]);else if(am(t))for(var r in t)e[r]=OE(e[r],t[r]);return e}function R3(e,t){Object.defineProperty(e,"toString",{value:t})}function Wm(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e," for more information.").concat(t.length>0?" Args: ".concat(t.join(", ")):""))}var kye=function(){function e(t){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=t}return e.prototype.indexOfGroup=function(t){for(var n=0,r=0;r<t;r++)n+=this.groupSizes[r];return n},e.prototype.insertRules=function(t,n){if(t>=this.groupSizes.length){for(var r=this.groupSizes,i=r.length,o=i;t>=o;)if((o<<=1)<0)throw Wm(16,"".concat(t));this.groupSizes=new Uint32Array(o),this.groupSizes.set(r),this.length=o;for(var a=i;a<o;a++)this.groupSizes[a]=0}for(var l=this.indexOfGroup(t+1),c=(a=0,n.length);a<c;a++)this.tag.insertRule(l,n[a])&&(this.groupSizes[t]++,l++)},e.prototype.clearGroup=function(t){if(t<this.length){var n=this.groupSizes[t],r=this.indexOfGroup(t),i=r+n;this.groupSizes[t]=0;for(var o=r;o<i;o++)this.tag.deleteRule(r)}},e.prototype.getGroup=function(t){var n="";if(t>=this.length||this.groupSizes[t]===0)return n;for(var r=this.groupSizes[t],i=this.indexOfGroup(t),o=i+r,a=i;a<o;a++)n+="".concat(this.tag.getRule(a)).concat(A3);return n},e}(),pv=new Map,Oy=new Map,mv=1,hg=function(e){if(pv.has(e))return pv.get(e);for(;Oy.has(mv);)mv++;var t=mv++;return pv.set(e,t),Oy.set(t,e),t},Rye=function(e,t){mv=t+1,pv.set(e,t),Oy.set(t,e)},Mye="style[".concat(qf,"][").concat(qj,'="').concat(b2,'"]'),Pye=new RegExp("^".concat(qf,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),Lye=function(e,t,n){for(var r,i=n.split(","),o=0,a=i.length;o<a;o++)(r=i[o])&&e.registerName(t,r)},Dye=function(e,t){for(var n,r=((n=t.textContent)!==null&&n!==void 0?n:"").split(A3),i=[],o=0,a=r.length;o<a;o++){var l=r[o].trim();if(l){var c=l.match(Pye);if(c){var u=0|parseInt(c[1],10),f=c[2];u!==0&&(Rye(f,u),Lye(e,f,c[3]),e.getTag().insertRules(u,i)),i.length=0}else i.push(l)}}},O$=function(e){for(var t=document.querySelectorAll(Mye),n=0,r=t.length;n<r;n++){var i=t[n];i&&i.getAttribute(qf)!==Gj&&(Dye(e,i),i.parentNode&&i.parentNode.removeChild(i))}};function Fye(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null}var nH=function(e){var t=document.head,n=e||t,r=document.createElement("style"),i=function(l){var c=Array.from(l.querySelectorAll("style[".concat(qf,"]")));return c[c.length-1]}(n),o=i!==void 0?i.nextSibling:null;r.setAttribute(qf,Gj),r.setAttribute(qj,b2);var a=Fye();return a&&r.setAttribute("nonce",a),n.insertBefore(r,o),r},Bye=function(){function e(t){this.element=nH(t),this.element.appendChild(document.createTextNode("")),this.sheet=function(n){if(n.sheet)return n.sheet;for(var r=document.styleSheets,i=0,o=r.length;i<o;i++){var a=r[i];if(a.ownerNode===n)return a}throw Wm(17)}(this.element),this.length=0}return e.prototype.insertRule=function(t,n){try{return this.sheet.insertRule(n,t),this.length++,!0}catch{return!1}},e.prototype.deleteRule=function(t){this.sheet.deleteRule(t),this.length--},e.prototype.getRule=function(t){var n=this.sheet.cssRules[t];return n&&n.cssText?n.cssText:""},e}(),jye=function(){function e(t){this.element=nH(t),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(t,n){if(t<=this.length&&t>=0){var r=document.createTextNode(n);return this.element.insertBefore(r,this.nodes[t]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(t){this.element.removeChild(this.nodes[t]),this.length--},e.prototype.getRule=function(t){return t<this.length?this.nodes[t].textContent:""},e}(),Hye=function(){function e(t){this.rules=[],this.length=0}return e.prototype.insertRule=function(t,n){return t<=this.length&&(this.rules.splice(t,0,n),this.length++,!0)},e.prototype.deleteRule=function(t){this.rules.splice(t,1),this.length--},e.prototype.getRule=function(t){return t<this.length?this.rules[t]:""},e}(),I$=_y,zye={isServer:!_y,useCSSOMInjection:!vye},rH=function(){function e(t,n,r){t===void 0&&(t=Xf),n===void 0&&(n={});var i=this;this.options=$o($o({},zye),t),this.gs=n,this.names=new Map(r),this.server=!!t.isServer,!this.server&&_y&&I$&&(I$=!1,O$(this)),R3(this,function(){return function(o){for(var a=o.getTag(),l=a.length,c="",u=function(p){var m=function(C){return Oy.get(C)}(p);if(m===void 0)return"continue";var g=o.names.get(m),b=a.getGroup(p);if(g===void 0||!g.size||b.length===0)return"continue";var E="".concat(qf,".g").concat(p,'[id="').concat(m,'"]'),x="";g!==void 0&&g.forEach(function(C){C.length>0&&(x+="".concat(C,","))}),c+="".concat(b).concat(E,'{content:"').concat(x,'"}').concat(A3)},f=0;f<l;f++)u(f);return c}(i)})}return e.registerId=function(t){return hg(t)},e.prototype.rehydrate=function(){!this.server&&_y&&O$(this)},e.prototype.reconstructWithOptions=function(t,n){return n===void 0&&(n=!0),new e($o($o({},this.options),t),this.gs,n&&this.names||void 0)},e.prototype.allocateGSInstance=function(t){return this.gs[t]=(this.gs[t]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(t=function(n){var r=n.useCSSOMInjection,i=n.target;return n.isServer?new Hye(i):r?new Bye(i):new jye(i)}(this.options),new kye(t)));var t},e.prototype.hasNameForId=function(t,n){return this.names.has(t)&&this.names.get(t).has(n)},e.prototype.registerName=function(t,n){if(hg(t),this.names.has(t))this.names.get(t).add(n);else{var r=new Set;r.add(n),this.names.set(t,r)}},e.prototype.insertRules=function(t,n,r){this.registerName(t,n),this.getTag().insertRules(hg(t),r)},e.prototype.clearNames=function(t){this.names.has(t)&&this.names.get(t).clear()},e.prototype.clearRules=function(t){this.getTag().clearGroup(hg(t)),this.clearNames(t)},e.prototype.clearTag=function(){this.tag=void 0},e}(),Wye=/&/g,Uye=/^\s*\/\/.*$/gm;function iH(e,t){return e.map(function(n){return n.type==="rule"&&(n.value="".concat(t," ").concat(n.value),n.value=n.value.replaceAll(",",",".concat(t," ")),n.props=n.props.map(function(r){return"".concat(t," ").concat(r)})),Array.isArray(n.children)&&n.type!=="@keyframes"&&(n.children=iH(n.children,t)),n})}function Kye(e){var t,n,r,i=Xf,o=i.options,a=o===void 0?Xf:o,l=i.plugins,c=l===void 0?C2:l,u=function(m,g,b){return b.startsWith(n)&&b.endsWith(n)&&b.replaceAll(n,"").length>0?".".concat(t):m},f=c.slice();f.push(function(m){m.type===m2&&m.value.includes("&")&&(m.props[0]=m.props[0].replace(Wye,n).replace(r,u))}),a.prefix&&f.push(mye),f.push(fye);var p=function(m,g,b,E){g===void 0&&(g=""),b===void 0&&(b=""),E===void 0&&(E="&"),t=E,n=g,r=new RegExp("\\".concat(n,"\\b"),"g");var x=m.replace(Uye,""),C=uye(b||g?"".concat(b," ").concat(g," { ").concat(x," }"):x);a.namespace&&(C=iH(C,a.namespace));var S=[];return Ty(C,hye(f.concat(pye(function(T){return S.push(T)})))),S};return p.hash=c.length?c.reduce(function(m,g){return g.name||Wm(15),lf(m,g.name)},Yj).toString():"",p}var Vye=new rH,IE=Kye(),oH=be.createContext({shouldForwardProp:void 0,styleSheet:Vye,stylis:IE});oH.Consumer;be.createContext(void 0);function $$(){return d.useContext(oH)}var Gye=function(){function e(t,n){var r=this;this.inject=function(i,o){o===void 0&&(o=IE);var a=r.name+o.hash;i.hasNameForId(r.id,a)||i.insertRules(r.id,a,o(r.rules,a,"@keyframes"))},this.name=t,this.id="sc-keyframes-".concat(t),this.rules=n,R3(this,function(){throw Wm(12,String(r.name))})}return e.prototype.getName=function(t){return t===void 0&&(t=IE),this.name+t.hash},e}(),qye=function(e){return e>="A"&&e<="Z"};function N$(e){for(var t="",n=0;n<e.length;n++){var r=e[n];if(n===1&&r==="-"&&e[0]==="-")return e;qye(r)?t+="-"+r.toLowerCase():t+=r}return t.startsWith("ms-")?"-"+t:t}var aH=function(e){return e==null||e===!1||e===""},lH=function(e){var t,n,r=[];for(var i in e){var o=e[i];e.hasOwnProperty(i)&&!aH(o)&&(Array.isArray(o)&&o.isCss||Yf(o)?r.push("".concat(N$(i),":"),o,";"):am(o)?r.push.apply(r,wy(wy(["".concat(i," {")],lH(o),!1),["}"],!1)):r.push("".concat(N$(i),": ").concat((t=i,(n=o)==null||typeof n=="boolean"||n===""?"":typeof n!="number"||n===0||t in gye||t.startsWith("--")?String(n).trim():"".concat(n,"px")),";")))}return r};function Ou(e,t,n,r){if(aH(e))return[];if(k3(e))return[".".concat(e.styledComponentId)];if(Yf(e)){if(!Yf(o=e)||o.prototype&&o.prototype.isReactComponent||!t)return[e];var i=e(t);return Ou(i,t,n,r)}var o;return e instanceof Gye?n?(e.inject(n,r),[e.getName(r)]):[e]:am(e)?lH(e):Array.isArray(e)?Array.prototype.concat.apply(C2,e.map(function(a){return Ou(a,t,n,r)})):[e.toString()]}function Xye(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(Yf(n)&&!k3(n))return!1}return!0}var Yye=Qj(b2),Qye=function(){function e(t,n,r){this.rules=t,this.staticRulesId="",this.isStatic=(r===void 0||r.isStatic)&&Xye(t),this.componentId=n,this.baseHash=lf(Yye,n),this.baseStyle=r,rH.registerId(n)}return e.prototype.generateAndInjectStyles=function(t,n,r){var i=this.baseStyle?this.baseStyle.generateAndInjectStyles(t,n,r):"";if(this.isStatic&&!r.hash)if(this.staticRulesId&&n.hasNameForId(this.componentId,this.staticRulesId))i=Cu(i,this.staticRulesId);else{var o=_$(Ou(this.rules,t,n,r)),a=_E(lf(this.baseHash,o)>>>0);if(!n.hasNameForId(this.componentId,a)){var l=r(o,".".concat(a),void 0,this.componentId);n.insertRules(this.componentId,a,l)}i=Cu(i,a),this.staticRulesId=a}else{for(var c=lf(this.baseHash,r.hash),u="",f=0;f<this.rules.length;f++){var p=this.rules[f];if(typeof p=="string")u+=p;else if(p){var m=_$(Ou(p,t,n,r));c=lf(c,m+f),u+=m}}if(u){var g=_E(c>>>0);n.hasNameForId(this.componentId,g)||n.insertRules(this.componentId,g,r(u,".".concat(g),void 0,this.componentId)),i=Cu(i,g)}}return i},e}(),sH=be.createContext(void 0);sH.Consumer;var d9={};function Zye(e,t,n){var r=k3(e),i=e,o=!u9(e),a=t.attrs,l=a===void 0?C2:a,c=t.componentId,u=c===void 0?function(O,I){var _=typeof O!="string"?"sc":S$(O);d9[_]=(d9[_]||0)+1;var $="".concat(_,"-").concat(Eye(b2+_+d9[_]));return I?"".concat(I,"-").concat($):$}(t.displayName,t.parentComponentId):c,f=t.displayName,p=f===void 0?function(O){return u9(O)?"styled.".concat(O):"Styled(".concat(xye(O),")")}(e):f,m=t.displayName&&t.componentId?"".concat(S$(t.displayName),"-").concat(t.componentId):t.componentId||u,g=r&&i.attrs?i.attrs.concat(l).filter(Boolean):l,b=t.shouldForwardProp;if(r&&i.shouldForwardProp){var E=i.shouldForwardProp;if(t.shouldForwardProp){var x=t.shouldForwardProp;b=function(O,I){return E(O,I)&&x(O,I)}}else b=E}var C=new Qye(n,m,r?i.componentStyle:void 0);function S(O,I){return function(_,$,k){var R=_.attrs,M=_.componentStyle,H=_.defaultProps,B=_.foldedComponentIds,L=_.styledComponentId,D=_.target,z=be.useContext(sH),W=$$(),j=_.shouldForwardProp||W.shouldForwardProp,U=yye($,z,H)||Xf,q=function(ee,ue,ne){for(var se,me=$o($o({},ue),{className:void 0,theme:ne}),ye=0;ye<ee.length;ye+=1){var de=Yf(se=ee[ye])?se(me):se;for(var ce in de)me[ce]=ce==="className"?Cu(me[ce],de[ce]):ce==="style"?$o($o({},me[ce]),de[ce]):de[ce]}return ue.className&&(me.className=Cu(me.className,ue.className)),me}(R,$,U),A=q.as||D,P={};for(var Z in q)q[Z]===void 0||Z[0]==="$"||Z==="as"||Z==="theme"&&q.theme===U||(Z==="forwardedAs"?P.as=q.forwardedAs:j&&!j(Z,A)||(P[Z]=q[Z]));var V=function(ee,ue){var ne=$$(),se=ee.generateAndInjectStyles(ue,ne.styleSheet,ne.stylis);return se}(M,q),Y=Cu(B,L);return V&&(Y+=" "+V),q.className&&(Y+=" "+q.className),P[u9(A)&&!Xj.has(A)?"class":"className"]=Y,P.ref=k,d.createElement(A,P)}(T,O,I)}S.displayName=p;var T=be.forwardRef(S);return T.attrs=g,T.componentStyle=C,T.displayName=p,T.shouldForwardProp=b,T.foldedComponentIds=r?Cu(i.foldedComponentIds,i.styledComponentId):"",T.styledComponentId=m,T.target=r?i.target:e,Object.defineProperty(T,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(O){this._foldedDefaultProps=r?function(I){for(var _=[],$=1;$<arguments.length;$++)_[$-1]=arguments[$];for(var k=0,R=_;k<R.length;k++)OE(I,R[k],!0);return I}({},i.defaultProps,O):O}}),R3(T,function(){return".".concat(T.styledComponentId)}),o&&tH(T,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),T}function A$(e,t){for(var n=[e[0]],r=0,i=t.length;r<i;r+=1)n.push(t[r],e[r+1]);return n}var k$=function(e){return Object.assign(e,{isCss:!0})};function Jye(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(Yf(e)||am(e))return k$(Ou(A$(C2,wy([e],t,!0))));var r=e;return t.length===0&&r.length===1&&typeof r[0]=="string"?Ou(r):k$(Ou(A$(r,t)))}function $E(e,t,n){if(n===void 0&&(n=Xf),!t)throw Wm(1,t);var r=function(i){for(var o=[],a=1;a<arguments.length;a++)o[a-1]=arguments[a];return e(t,n,Jye.apply(void 0,wy([i],o,!1)))};return r.attrs=function(i){return $E(e,t,$o($o({},n),{attrs:Array.prototype.concat(n.attrs,i).filter(Boolean)}))},r.withConfig=function(i){return $E(e,t,$o($o({},n),i))},r}var cH=function(e){return $E(Zye,e)},Un=cH;Xj.forEach(function(e){Un[e]=cH(e)});const ebe=Un.div`
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
background: #f0f2f5;
`,tbe=Un(p1)`
width: 400px;
`,nbe=()=>{const e=Rc(),{setUser:t,setToken:n}=I3(),[r,i]=be.useState(!1),o=async a=>{try{i(!0);const l={id:"1",name:"测试用户",email:a.email,role:"admin"},c="mock-token";t(l),n(c),po.success("登录成功"),e("/")}catch{po.error("登录失败")}finally{i(!1)}};return we.jsx(ebe,{children:we.jsx(tbe,{title:"登录",children:we.jsxs(Nn,{name:"login",onFinish:o,autoComplete:"off",layout:"vertical",children:[we.jsx(Nn.Item,{label:"邮箱",name:"email",rules:[{required:!0,message:"请输入邮箱"},{type:"email",message:"请输入有效的邮箱地址"}],children:we.jsx(Ji,{})}),we.jsx(Nn.Item,{label:"密码",name:"password",rules:[{required:!0,message:"请输入密码"}],children:we.jsx(Ji.Password,{})}),we.jsx(Nn.Item,{children:we.jsx(Dn,{type:"primary",htmlType:"submit",block:!0,loading:r,children:"登录"})})]})})})},rbe=[{id:"1",name:"开源版文档",description:"notebase-doc开源版文档",type:"public",coverImage:"/images/spaces/opensource.jpg",starred:!0,parentId:null,createdAt:"2024-01-01",updatedAt:"2024-01-24",createdBy:"1",memberCount:10,documentCount:25},{id:"2",name:"商业版文档",description:"notebase-doc商业版文档",type:"public",coverImage:"/images/spaces/commercial.jpg",starred:!1,parentId:null,createdAt:"2024-01-01",updatedAt:"2024-01-24",createdBy:"1",memberCount:5,documentCount:15},{id:"3",name:"使用帮助",description:"notebase-doc使用帮助",type:"public",coverImage:"/images/spaces/help.jpg",starred:!1,parentId:null,createdAt:"2024-01-01",updatedAt:"2024-01-24",createdBy:"1",memberCount:3,documentCount:10},{id:"4",name:"付费知识库",description:"演示知识库付费阅读功能",type:"private",coverImage:"/images/spaces/paid.jpg",starred:!1,parentId:null,createdAt:"2024-01-01",updatedAt:"2024-01-24",createdBy:"1",memberCount:2,documentCount:5}],M3=O3((e,t)=>({spaces:[],currentSpace:null,setSpaces:n=>e({spaces:n}),setCurrentSpace:n=>e({currentSpace:n}),fetchSpaces:async()=>{await new Promise(n=>setTimeout(n,1e3)),e({spaces:rbe})},toggleStarSpace:n=>e(r=>({spaces:r.spaces.map(i=>i.id===n?{...i,starred:!i.starred}:i)})),createSpace:async n=>{await new Promise(i=>setTimeout(i,1e3));const r={id:String(Date.now()),name:n.name,description:n.description,type:n.type,coverImage:n.coverImage,starred:!1,parentId:null,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),createdBy:"1",memberCount:1,documentCount:0};e(i=>({spaces:[...i.spaces,r]}))},fetchSpaceDetail:async n=>{await new Promise(i=>setTimeout(i,1e3));const r=t().spaces.find(i=>i.id===n);if(r)e({currentSpace:r});else throw new Error("Space not found")}})),{Title:ibe,Paragraph:obe}=jm,abe=Un(p1)`
.ant-card-body {
height: 200px;
}
`,lbe=({space:e,onClick:t})=>we.jsxs(abe,{hoverable:!0,onClick:t,children:[we.jsx(ibe,{level:4,style:{marginBottom:8},children:e.name}),we.jsx(obe,{ellipsis:{rows:2},children:e.description})]}),sbe=({visible:e,onClose:t})=>{const[n]=Nn.useForm(),{createSpace:r}=M3(),[i,o]=be.useState(!1),a=async l=>{try{o(!0),await r(l),po.success("创建成功"),t(),n.resetFields()}catch{po.error("创建失败")}finally{o(!1)}};return we.jsx(ua,{title:"创建空间",open:e,onCancel:t,onOk:()=>n.submit(),confirmLoading:i,children:we.jsxs(Nn,{form:n,layout:"vertical",onFinish:a,children:[we.jsx(Nn.Item,{name:"name",label:"空间名称",rules:[{required:!0,message:"请输入空间名称"}],children:we.jsx(Ji,{placeholder:"请输入空间名称"})}),we.jsx(Nn.Item,{name:"description",label:"空间描述",rules:[{required:!0,message:"请输入空间描述"}],children:we.jsx(Ji.TextArea,{placeholder:"请输入空间描述"})}),we.jsx(Nn.Item,{name:"type",label:"空间类型",initialValue:"private",rules:[{required:!0}],children:we.jsxs(Pi,{children:[we.jsx(Pi.Option,{value:"private",children:"私有"}),we.jsx(Pi.Option,{value:"public",children:"公开"})]})})]})})},cbe=Un.div`
padding: 24px;
`,ube=Un.div`
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 24px;
`,dbe=Un.h2`
margin: 0;
`,R$=()=>{const e=Rc(),{spaces:t,fetchSpaces:n}=M3(),[r,i]=be.useState("grid"),[o,a]=be.useState(!0),[l,c]=be.useState(!1);console.log("spaces",t,o),be.useEffect(()=>{(async()=>{try{await n()}finally{a(!1)}})()},[n]);const u=f=>{e(`/spaces/${f}`)};return we.jsxs(cbe,{children:[we.jsxs(ube,{children:[we.jsx(dbe,{children:"知识空间"}),we.jsxs(ho,{children:[we.jsxs(Ai.Group,{value:r,onChange:f=>i(f.target.value),buttonStyle:"solid",children:[we.jsxs(Ai.Button,{value:"grid",children:[we.jsx(BB,{})," 网格"]}),we.jsxs(Ai.Button,{value:"list",children:[we.jsx(NF,{})," 列表"]})]}),we.jsx(Dn,{type:"primary",icon:we.jsx(Mm,{}),onClick:()=>c(!0),children:"创建空间"})]})]}),we.jsx(cB,{gutter:[16,16],children:t.map(f=>we.jsx(s3,{xs:24,sm:12,md:8,lg:6,children:we.jsx(lbe,{space:f,onClick:()=>u(f.id)})},f.id))}),we.jsx(sbe,{visible:l,onClose:()=>c(!1)})]})},f9=Un(Dn)`
padding: 0 4px;
height: 24px;
line-height: 24px;
`,fbe=({spaceId:e})=>{const[t,n]=be.useState(!0),[r,i]=be.useState([]),o=Rc();be.useEffect(()=>{const l=[{id:"1",title:"快速开始",content:`# 快速开始
欢迎使用...`,spaceId:e,type:"markdown",parentId:null,createdAt:"2024-01-24T10:00:00Z",updatedAt:"2024-01-24T10:00:00Z",createdBy:"1"}];setTimeout(()=>{i(l),n(!1)},1e3)},[e]);const a=[{title:"标题",dataIndex:"title",key:"title",render:(l,c)=>we.jsxs(ho,{children:[we.jsx(rde,{}),we.jsx("a",{onClick:()=>o(`/documents/${c.id}`),children:l}),c.type==="markdown"&&we.jsx(w3,{color:"blue",children:"Markdown"})]})},{title:"更新时间",dataIndex:"updatedAt",key:"updatedAt",render:l=>new Date(l).toLocaleString()},{title:"操作",key:"action",render:(l,c)=>we.jsxs(ho,{size:"small",children:[we.jsx(f9,{type:"link",icon:we.jsx(Qb,{}),onClick:()=>o(`/documents/${c.id}`),children:"预览"}),we.jsx(f9,{type:"link",icon:we.jsx(im,{}),onClick:()=>o(`/documents/${c.id}/edit`),children:"编辑"}),we.jsx(f9,{type:"link",icon:we.jsx(t2,{}),danger:!0,children:"删除"})]})}];return we.jsx(Bl,{columns:a,dataSource:r,loading:t,rowKey:"id",pagination:!1})},M$=Un(p1)`
margin-bottom: 24px;
`,hbe=Un.div`
max-width: 600px;
`,pbe=({space:e})=>{const[t]=Nn.useForm(),[n,r]=be.useState(!1),[i,o]=be.useState([{uid:"-1",name:"cover",status:"done",url:e.coverImage}]),a=async l=>{var c,u,f;try{r(!0),console.log("Updating space:",{...l,coverImage:((c=i[0])==null?void 0:c.url)||((f=(u=i[0])==null?void 0:u.response)==null?void 0:f.url)}),po.success("更新成功")}catch(p){console.error("Update space failed:",p),po.error("更新失败")}finally{r(!1)}};return we.jsx(hbe,{children:we.jsxs(Nn,{form:t,layout:"vertical",initialValues:{name:e.name,description:e.description,type:e.type},onFinish:a,children:[we.jsxs(M$,{title:"基本信息",children:[we.jsx(Nn.Item,{name:"name",label:"空间名称",rules:[{required:!0,message:"请输入空间名称"}],children:we.jsx(Ji,{placeholder:"请输入空间名称"})}),we.jsx(Nn.Item,{name:"description",label:"空间描述",rules:[{required:!0,message:"请输入空间描述"}],children:we.jsx(Ji.TextArea,{placeholder:"请输入空间描述",rows:4})}),we.jsx(Nn.Item,{name:"type",label:"空间类型",rules:[{required:!0,message:"请选择空间类型"}],children:we.jsxs(Ai.Group,{children:[we.jsx(Ai,{value:"public",children:"公开空间"}),we.jsx(Ai,{value:"private",children:"私有空间"})]})}),we.jsx(Nn.Item,{label:"封面图片",children:we.jsx(_3,{listType:"picture-card",maxCount:1,fileList:i,onChange:({fileList:l})=>o(l),action:"/api/upload",accept:"image/*",children:i.length===0&&we.jsxs("div",{children:[we.jsx(Mm,{}),we.jsx("div",{style:{marginTop:8},children:"上传图片"})]})})})]}),we.jsxs(M$,{title:"高级设置",children:[we.jsx(Nn.Item,{name:"allowComment",valuePropName:"checked",children:we.jsxs(Ai.Group,{children:[we.jsx(Ai,{value:!0,children:"允许评论"}),we.jsx(Ai,{value:!1,children:"禁止评论"})]})}),we.jsx(Nn.Item,{name:"allowShare",valuePropName:"checked",children:we.jsxs(Ai.Group,{children:[we.jsx(Ai,{value:!0,children:"允许分享"}),we.jsx(Ai,{value:!1,children:"禁止分享"})]})})]}),we.jsx(Nn.Item,{children:we.jsx(Dn,{type:"primary",htmlType:"submit",loading:n,children:"保存更改"})})]})})},{Option:yh}=Pi,mbe=Un(Dn)`
padding: 0 4px;
height: 24px;
line-height: 24px;
`,gbe=Un.div`
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 16px;
`,vbe=({spaceId:e})=>{const[t,n]=be.useState(!0),[r,i]=be.useState([]),[o,a]=be.useState(!1),[l]=Nn.useForm();be.useEffect(()=>{const f=[{id:"1",name:"管理员",email:"admin@example.com",role:"admin"},{id:"2",name:"测试用户",email:"test@example.com",role:"member"}];setTimeout(()=>{i(f),n(!1)},1e3)},[e]);const c=async f=>{try{console.log("Inviting member:",f),po.success("邀请已发送"),a(!1),l.resetFields()}catch(p){console.error("Invite member failed:",p),po.error("邀请失败")}},u=[{title:"成员",dataIndex:"name",key:"name",render:(f,p)=>we.jsxs(ho,{children:[we.jsx(UB,{}),f,we.jsxs("span",{style:{color:"#999"},children:["(",p.email,")"]})]})},{title:"角色",dataIndex:"role",key:"role",render:f=>we.jsx(w3,{color:f==="admin"?"blue":"default",children:f==="admin"?"管理员":"成员"})},{title:"操作",key:"action",render:f=>we.jsxs(ho,{size:"small",children:[we.jsxs(Pi,{defaultValue:f.role,style:{width:100},bordered:!1,disabled:f.role==="admin",children:[we.jsx(yh,{value:"admin",children:"管理员"}),we.jsx(yh,{value:"member",children:"成员"}),we.jsx(yh,{value:"readonly",children:"只读"})]}),we.jsx(mbe,{type:"link",icon:we.jsx(t2,{}),danger:!0,disabled:f.role==="admin",children:"移除"})]})}];return we.jsxs("div",{children:[we.jsxs(gbe,{children:[we.jsxs("span",{children:["共 ",r.length," 名成员"]}),we.jsx(Dn,{type:"primary",icon:we.jsx(Mm,{}),onClick:()=>a(!0),children:"邀请成员"})]}),we.jsx(Bl,{columns:u,dataSource:r,loading:t,rowKey:"id",pagination:!1}),we.jsx(ua,{title:"邀请成员",open:o,onCancel:()=>a(!1),onOk:()=>l.submit(),children:we.jsxs(Nn,{form:l,layout:"vertical",onFinish:c,children:[we.jsx(Nn.Item,{name:"email",label:"邮箱地址",rules:[{required:!0,message:"请输入邮箱地址"},{type:"email",message:"请输入有效的邮箱地址"}],children:we.jsx(Ji,{prefix:we.jsx(ahe,{}),placeholder:"请输入邮箱地址"})}),we.jsx(Nn.Item,{name:"role",label:"角色",initialValue:"member",rules:[{required:!0,message:"请选择角色"}],children:we.jsxs(Pi,{children:[we.jsx(yh,{value:"member",children:"成员"}),we.jsx(yh,{value:"readonly",children:"只读"})]})}),we.jsx(Nn.Item,{name:"message",label:"邀请消息",children:we.jsx(Ji.TextArea,{placeholder:"可选:添加一条邀请消息",rows:3})})]})})]})},ybe=Un.div`
margin-bottom: 24px;
padding: 16px 24px;
background: #fff;
border-radius: 2px;
box-shadow: 0 1px 4px rgba(0, 21, 41, 0.08);
`,bbe=Un(J8)`
margin-bottom: 16px;
`,Cbe=Un.div`
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 16px;
h1 {
margin: 0;
font-size: 20px;
line-height: 32px;
}
`,Sbe=Un.div`
color: rgba(0, 0, 0, 0.45);
`,Ebe=()=>{const{spaceId:e}=qx(),{currentSpace:t,fetchSpaceDetail:n,toggleStarSpace:r}=M3(),[i,o]=be.useState(!0),[a,l]=be.useState("documents"),c=Rc();if(be.useEffect(()=>{(async()=>{if(e)try{await n(e)}finally{o(!1)}})()},[e,n]),i||!t)return we.jsx("div",{style:{textAlign:"center",padding:"50px"},children:we.jsx(Dm,{size:"large"})});const u={items:[{key:"edit",icon:we.jsx(im,{}),label:"编辑空间"},{key:"settings",icon:we.jsx(d3,{}),label:"空间设置"},{type:"divider"},{key:"delete",icon:we.jsx(t2,{}),label:"删除空间",danger:!0}]},f=[{key:"documents",label:"文档",children:we.jsx(fbe,{spaceId:e||""})},{key:"settings",label:"设置",children:we.jsx(pbe,{space:t})},{key:"members",label:"成员",children:we.jsx(vbe,{spaceId:e||""})}],p=()=>{const m=String(Date.now());c(`/documents/${m}/edit`)};return we.jsxs("div",{children:[we.jsxs(ybe,{children:[we.jsx(bbe,{items:[{title:"所有空间",onClick:m=>{m.preventDefault(),c("/")}},{title:we.jsx(we.Fragment,{children:t==null?void 0:t.name})}]}),we.jsxs(Cbe,{children:[we.jsxs(ho,{size:"middle",align:"center",children:[we.jsx("h1",{children:t.name}),we.jsx(Dn,{type:"text",icon:t.starred?we.jsx(zB,{}):we.jsx(WB,{}),onClick:()=>r(t.id)}),we.jsx(Dn,{type:"primary",icon:we.jsx(im,{}),onClick:p,children:"新建文档"})]}),we.jsxs(ho,{children:[we.jsx(Dn,{icon:we.jsx(Fhe,{}),children:"邀请成员"}),we.jsx(Lm,{menu:u,placement:"bottomRight",children:we.jsx(Dn,{icon:we.jsx(fhe,{})})})]})]}),we.jsx(Sbe,{children:t.description})]}),we.jsx(a3,{activeKey:a,onChange:l,items:f,size:"large"})]})},xbe=function(){var e=navigator.userAgent,t=navigator.platform,n=/gecko\/\d/i.test(e),r=/MSIE \d/.test(e),i=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(e),o=/Edge\/(\d+)/.exec(e),a=r||i||o,l=a&&(r?document.documentMode||6:+(o||i)[1]),c=!o&&/WebKit\//.test(e),u=c&&/Qt\/\d+\.\d+/.test(e),f=!o&&/Chrome\//.test(e),p=/Opera\//.test(e),m=/Apple Computer/.test(navigator.vendor),g=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(e),b=/PhantomJS/.test(e),E=m&&(/Mobile\/\w+/.test(e)||navigator.maxTouchPoints>2),x=/Android/.test(e),C=E||x||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(e),S=E||/Mac/.test(t),T=/\bCrOS\b/.test(e),O=/win/i.test(t),I=p&&e.match(/Version\/(\d*\.\d*)/);I&&(I=Number(I[1])),I&&I>=15&&(p=!1,c=!0);var _=S&&(u||p&&(I==null||I<12.11)),$=n||a&&l>=9;function k(s){return new RegExp("(^|\\s)"+s+"(?:$|\\s)\\s*")}var R=function(s,h){var y=s.className,v=k(h).exec(y);if(v){var w=y.slice(v.index+v[0].length);s.className=y.slice(0,v.index)+(w?v[1]+w:"")}};function M(s){for(var h=s.childNodes.length;h>0;--h)s.removeChild(s.firstChild);return s}function H(s,h){return M(s).appendChild(h)}function B(s,h,y,v){var w=document.createElement(s);if(y&&(w.className=y),v&&(w.style.cssText=v),typeof h=="string")w.appendChild(document.createTextNode(h));else if(h)for(var N=0;N<h.length;++N)w.appendChild(h[N]);return w}function L(s,h,y,v){var w=B(s,h,y,v);return w.setAttribute("role","presentation"),w}var D;document.createRange?D=function(s,h,y,v){var w=document.createRange();return w.setEnd(v||s,y),w.setStart(s,h),w}:D=function(s,h,y){var v=document.body.createTextRange();try{v.moveToElementText(s.parentNode)}catch{return v}return v.collapse(!0),v.moveEnd("character",y),v.moveStart("character",h),v};function z(s,h){if(h.nodeType==3&&(h=h.parentNode),s.contains)return s.contains(h);do if(h.nodeType==11&&(h=h.host),h==s)return!0;while(h=h.parentNode)}function W(){var s;try{s=document.activeElement}catch{s=document.body||null}for(;s&&s.shadowRoot&&s.shadowRoot.activeElement;)s=s.shadowRoot.activeElement;return s}function j(s,h){var y=s.className;k(h).test(y)||(s.className+=(y?" ":"")+h)}function U(s,h){for(var y=s.split(" "),v=0;v<y.length;v++)y[v]&&!k(y[v]).test(h)&&(h+=" "+y[v]);return h}var q=function(s){s.select()};E?q=function(s){s.selectionStart=0,s.selectionEnd=s.value.length}:a&&(q=function(s){try{s.select()}catch{}});function A(s){var h=Array.prototype.slice.call(arguments,1);return function(){return s.apply(null,h)}}function P(s,h,y){h||(h={});for(var v in s)s.hasOwnProperty(v)&&(y!==!1||!h.hasOwnProperty(v))&&(h[v]=s[v]);return h}function Z(s,h,y,v,w){h==null&&(h=s.search(/[^\s\u00a0]/),h==-1&&(h=s.length));for(var N=v||0,F=w||0;;){var K=s.indexOf(" ",N);if(K<0||K>=h)return F+(h-N);F+=K-N,F+=y-F%y,N=K+1}}var V=function(){this.id=null,this.f=null,this.time=0,this.handler=A(this.onTimeout,this)};V.prototype.onTimeout=function(s){s.id=0,s.time<=+new Date?s.f():setTimeout(s.handler,s.time-+new Date)},V.prototype.set=function(s,h){this.f=h;var y=+new Date+s;(!this.id||y<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,s),this.time=y)};function Y(s,h){for(var y=0;y<s.length;++y)if(s[y]==h)return y;return-1}var ee=50,ue={toString:function(){return"CodeMirror.Pass"}},ne={scroll:!1},se={origin:"*mouse"},me={origin:"+move"};function ye(s,h,y){for(var v=0,w=0;;){var N=s.indexOf(" ",v);N==-1&&(N=s.length);var F=N-v;if(N==s.length||w+F>=h)return v+Math.min(F,h-w);if(w+=N-v,w+=y-w%y,v=N+1,w>=h)return v}}var de=[""];function ce(s){for(;de.length<=s;)de.push(oe(de)+" ");return de[s]}function oe(s){return s[s.length-1]}function pe(s,h){for(var y=[],v=0;v<s.length;v++)y[v]=h(s[v],v);return y}function ve(s,h,y){for(var v=0,w=y(h);v<s.length&&y(s[v])<=w;)v++;s.splice(v,0,h)}function Te(){}function Ge(s,h){var y;return Object.create?y=Object.create(s):(Te.prototype=s,y=new Te),h&&P(h,y),y}var je=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function Je(s){return/\w/.test(s)||s>"€"&&(s.toUpperCase()!=s.toLowerCase()||je.test(s))}function Se(s,h){return h?h.source.indexOf("\\w")>-1&&Je(s)?!0:h.test(s):Je(s)}function $e(s){for(var h in s)if(s.hasOwnProperty(h)&&s[h])return!1;return!0}var qe=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function Le(s){return s.charCodeAt(0)>=768&&qe.test(s)}function Fe(s,h,y){for(;(y<0?h>0:h<s.length)&&Le(s.charAt(h));)h+=y;return h}function Ke(s,h,y){for(var v=h>y?-1:1;;){if(h==y)return h;var w=(h+y)/2,N=v<0?Math.ceil(w):Math.floor(w);if(N==h)return s(N)?h:y;s(N)?y=N:h=N+v}}function Ve(s,h,y,v){if(!s)return v(h,y,"ltr",0);for(var w=!1,N=0;N<s.length;++N){var F=s[N];(F.from<y&&F.to>h||h==y&&F.to==h)&&(v(Math.max(F.from,h),Math.min(F.to,y),F.level==1?"rtl":"ltr",N),w=!0)}w||v(h,y,"ltr")}var Ce=null;function Pe(s,h,y){var v;Ce=null;for(var w=0;w<s.length;++w){var N=s[w];if(N.from<h&&N.to>h)return w;N.to==h&&(N.from!=N.to&&y=="before"?v=w:Ce=w),N.from==h&&(N.from!=N.to&&y!="before"?v=w:Ce=w)}return v??Ce}var We=function(){var s="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",h="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function y(Q){return Q<=247?s.charAt(Q):1424<=Q&&Q<=1524?"R":1536<=Q&&Q<=1785?h.charAt(Q-1536):1774<=Q&&Q<=2220?"r":8192<=Q&&Q<=8203?"w":Q==8204?"b":"L"}var v=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,w=/[stwN]/,N=/[LRr]/,F=/[Lb1n]/,K=/[1n]/;function X(Q,ae,he){this.level=Q,this.from=ae,this.to=he}return function(Q,ae){var he=ae=="ltr"?"L":"R";if(Q.length==0||ae=="ltr"&&!v.test(Q))return!1;for(var De=Q.length,Me=[],et=0;et<De;++et)Me.push(y(Q.charCodeAt(et)));for(var ct=0,bt=he;ct<De;++ct){var Ot=Me[ct];Ot=="m"?Me[ct]=bt:bt=Ot}for(var Rt=0,It=he;Rt<De;++Rt){var Lt=Me[Rt];Lt=="1"&&It=="r"?Me[Rt]="n":N.test(Lt)&&(It=Lt,Lt=="r"&&(Me[Rt]="R"))}for(var en=1,Vt=Me[0];en<De-1;++en){var mn=Me[en];mn=="+"&&Vt=="1"&&Me[en+1]=="1"?Me[en]="1":mn==","&&Vt==Me[en+1]&&(Vt=="1"||Vt=="n")&&(Me[en]=Vt),Vt=mn}for(var Xn=0;Xn<De;++Xn){var ui=Me[Xn];if(ui==",")Me[Xn]="N";else if(ui=="%"){var Er=void 0;for(Er=Xn+1;Er<De&&Me[Er]=="%";++Er);for(var So=Xn&&Me[Xn-1]=="!"||Er<De&&Me[Er]=="1"?"1":"N",ro=Xn;ro<Er;++ro)Me[ro]=So;Xn=Er-1}}for(var jr=0,io=he;jr<De;++jr){var bi=Me[jr];io=="L"&&bi=="1"?Me[jr]="L":N.test(bi)&&(io=bi)}for(var Gr=0;Gr<De;++Gr)if(w.test(Me[Gr])){var Hr=void 0;for(Hr=Gr+1;Hr<De&&w.test(Me[Hr]);++Hr);for(var Ar=(Gr?Me[Gr-1]:he)=="L",oo=(Hr<De?Me[Hr]:he)=="L",yd=Ar==oo?Ar?"L":"R":he,As=Gr;As<Hr;++As)Me[As]=yd;Gr=Hr-1}for(var Ii=[],gl,di=0;di<De;)if(F.test(Me[di])){var T5=di;for(++di;di<De&&F.test(Me[di]);++di);Ii.push(new X(0,T5,di))}else{var Vl=di,Xc=Ii.length,Yc=ae=="rtl"?1:0;for(++di;di<De&&Me[di]!="L";++di);for(var Wi=Vl;Wi<di;)if(K.test(Me[Wi])){Vl<Wi&&(Ii.splice(Xc,0,new X(1,Vl,Wi)),Xc+=Yc);var bd=Wi;for(++Wi;Wi<di&&K.test(Me[Wi]);++Wi);Ii.splice(Xc,0,new X(2,bd,Wi)),Xc+=Yc,Vl=Wi}else++Wi;Vl<di&&Ii.splice(Xc,0,new X(1,Vl,di))}return ae=="ltr"&&(Ii[0].level==1&&(gl=Q.match(/^\s+/))&&(Ii[0].from=gl[0].length,Ii.unshift(new X(0,0,gl[0].length))),oe(Ii).level==1&&(gl=Q.match(/\s+$/))&&(oe(Ii).to-=gl[0].length,Ii.push(new X(0,De-gl[0].length,De)))),ae=="rtl"?Ii.reverse():Ii}}();function Ze(s,h){var y=s.order;return y==null&&(y=s.order=We(s.text,h)),y}var ut=[],Be=function(s,h,y){if(s.addEventListener)s.addEventListener(h,y,!1);else if(s.attachEvent)s.attachEvent("on"+h,y);else{var v=s._handlers||(s._handlers={});v[h]=(v[h]||ut).concat(y)}};function ot(s,h){return s._handlers&&s._handlers[h]||ut}function re(s,h,y){if(s.removeEventListener)s.removeEventListener(h,y,!1);else if(s.detachEvent)s.detachEvent("on"+h,y);else{var v=s._handlers,w=v&&v[h];if(w){var N=Y(w,y);N>-1&&(v[h]=w.slice(0,N).concat(w.slice(N+1)))}}}function Ie(s,h){var y=ot(s,h);if(y.length)for(var v=Array.prototype.slice.call(arguments,2),w=0;w<y.length;++w)y[w].apply(null,v)}function Re(s,h,y){return typeof h=="string"&&(h={type:h,preventDefault:function(){this.defaultPrevented=!0}}),Ie(s,y||h.type,s,h),Ft(h)||h.codemirrorIgnore}function Ae(s){var h=s._handlers&&s._handlers.cursorActivity;if(h)for(var y=s.curOp.cursorActivityHandlers||(s.curOp.cursorActivityHandlers=[]),v=0;v<h.length;++v)Y(y,h[v])==-1&&y.push(h[v])}function Ye(s,h){return ot(s,h).length>0}function mt(s){s.prototype.on=function(h,y){Be(this,h,y)},s.prototype.off=function(h,y){re(this,h,y)}}function Nt(s){s.preventDefault?s.preventDefault():s.returnValue=!1}function qt(s){s.stopPropagation?s.stopPropagation():s.cancelBubble=!0}function Ft(s){return s.defaultPrevented!=null?s.defaultPrevented:s.returnValue==!1}function Kt(s){Nt(s),qt(s)}function Qt(s){return s.target||s.srcElement}function Zt(s){var h=s.which;return h==null&&(s.button&1?h=1:s.button&2?h=3:s.button&4&&(h=2)),S&&s.ctrlKey&&h==1&&(h=3),h}var Mt=function(){if(a&&l<9)return!1;var s=B("div");return"draggable"in s||"dragDrop"in s}(),St;function yt(s){if(St==null){var h=B("span","");H(s,B("span",[h,document.createTextNode("x")])),s.firstChild.offsetHeight!=0&&(St=h.offsetWidth<=1&&h.offsetHeight>2&&!(a&&l<8))}var y=St?B("span",""):B("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return y.setAttribute("cm-text",""),y}var lt;function fe(s){if(lt!=null)return lt;var h=H(s,document.createTextNode("AخA")),y=D(h,0,1).getBoundingClientRect(),v=D(h,1,2).getBoundingClientRect();return M(s),!y||y.left==y.right?!1:lt=v.right-y.right<3}var xe=`
b`.split(/\n/).length!=3?function(s){for(var h=0,y=[],v=s.length;h<=v;){var w=s.indexOf(`
`,h);w==-1&&(w=s.length);var N=s.slice(h,s.charAt(w-1)=="\r"?w-1:w),F=N.indexOf("\r");F!=-1?(y.push(N.slice(0,F)),h+=F+1):(y.push(N),h=w+1)}return y}:function(s){return s.split(/\r\n?|\n/)},ge=window.getSelection?function(s){try{return s.selectionStart!=s.selectionEnd}catch{return!1}}:function(s){var h;try{h=s.ownerDocument.selection.createRange()}catch{}return!h||h.parentElement()!=s?!1:h.compareEndPoints("StartToEnd",h)!=0},Ne=function(){var s=B("div");return"oncopy"in s?!0:(s.setAttribute("oncopy","return;"),typeof s.oncopy=="function")}(),Xe=null;function nt(s){if(Xe!=null)return Xe;var h=H(s,B("span","x")),y=h.getBoundingClientRect(),v=D(h,0,1).getBoundingClientRect();return Xe=Math.abs(y.left-v.left)>1}var pt={},st={};function rt(s,h){arguments.length>2&&(h.dependencies=Array.prototype.slice.call(arguments,2)),pt[s]=h}function He(s,h){st[s]=h}function Ue(s){if(typeof s=="string"&&st.hasOwnProperty(s))s=st[s];else if(s&&typeof s.name=="string"&&st.hasOwnProperty(s.name)){var h=st[s.name];typeof h=="string"&&(h={name:h}),s=Ge(h,s),s.name=h.name}else{if(typeof s=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(s))return Ue("application/xml");if(typeof s=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(s))return Ue("application/json")}return typeof s=="string"?{name:s}:s||{name:"null"}}function ft(s,h){h=Ue(h);var y=pt[h.name];if(!y)return ft(s,"text/plain");var v=y(s,h);if(Ct.hasOwnProperty(h.name)){var w=Ct[h.name];for(var N in w)w.hasOwnProperty(N)&&(v.hasOwnProperty(N)&&(v["_"+N]=v[N]),v[N]=w[N])}if(v.name=h.name,h.helperType&&(v.helperType=h.helperType),h.modeProps)for(var F in h.modeProps)v[F]=h.modeProps[F];return v}var Ct={};function zt(s,h){var y=Ct.hasOwnProperty(s)?Ct[s]:Ct[s]={};P(h,y)}function Tt(s,h){if(h===!0)return h;if(s.copyState)return s.copyState(h);var y={};for(var v in h){var w=h[v];w instanceof Array&&(w=w.concat([])),y[v]=w}return y}function Pt(s,h){for(var y;s.innerMode&&(y=s.innerMode(h),!(!y||y.mode==s));)h=y.state,s=y.mode;return y||{mode:s,state:h}}function vt(s,h,y){return s.startState?s.startState(h,y):!0}var gt=function(s,h,y){this.pos=this.start=0,this.string=s,this.tabSize=h||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=y};gt.prototype.eol=function(){return this.pos>=this.string.length},gt.prototype.sol=function(){return this.pos==this.lineStart},gt.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},gt.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},gt.prototype.eat=function(s){var h=this.string.charAt(this.pos),y;if(typeof s=="string"?y=h==s:y=h&&(s.test?s.test(h):s(h)),y)return++this.pos,h},gt.prototype.eatWhile=function(s){for(var h=this.pos;this.eat(s););return this.pos>h},gt.prototype.eatSpace=function(){for(var s=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>s},gt.prototype.skipToEnd=function(){this.pos=this.string.length},gt.prototype.skipTo=function(s){var h=this.string.indexOf(s,this.pos);if(h>-1)return this.pos=h,!0},gt.prototype.backUp=function(s){this.pos-=s},gt.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=Z(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?Z(this.string,this.lineStart,this.tabSize):0)},gt.prototype.indentation=function(){return Z(this.string,null,this.tabSize)-(this.lineStart?Z(this.string,this.lineStart,this.tabSize):0)},gt.prototype.match=function(s,h,y){if(typeof s=="string"){var v=function(F){return y?F.toLowerCase():F},w=this.string.substr(this.pos,s.length);if(v(w)==v(s))return h!==!1&&(this.pos+=s.length),!0}else{var N=this.string.slice(this.pos).match(s);return N&&N.index>0?null:(N&&h!==!1&&(this.pos+=N[0].length),N)}},gt.prototype.current=function(){return this.string.slice(this.start,this.pos)},gt.prototype.hideFirstChars=function(s,h){this.lineStart+=s;try{return h()}finally{this.lineStart-=s}},gt.prototype.lookAhead=function(s){var h=this.lineOracle;return h&&h.lookAhead(s)},gt.prototype.baseToken=function(){var s=this.lineOracle;return s&&s.baseToken(this.pos)};function tt(s,h){if(h-=s.first,h<0||h>=s.size)throw new Error("There is no line "+(h+s.first)+" in the document.");for(var y=s;!y.lines;)for(var v=0;;++v){var w=y.children[v],N=w.chunkSize();if(h<N){y=w;break}h-=N}return y.lines[h]}function Xt(s,h,y){var v=[],w=h.line;return s.iter(h.line,y.line+1,function(N){var F=N.text;w==y.line&&(F=F.slice(0,y.ch)),w==h.line&&(F=F.slice(h.ch)),v.push(F),++w}),v}function Jt(s,h,y){var v=[];return s.iter(h,y,function(w){v.push(w.text)}),v}function En(s,h){var y=h-s.height;if(y)for(var v=s;v;v=v.parent)v.height+=y}function Wt(s){if(s.parent==null)return null;for(var h=s.parent,y=Y(h.lines,s),v=h.parent;v;h=v,v=v.parent)for(var w=0;v.children[w]!=h;++w)y+=v.children[w].chunkSize();return y+h.first}function In(s,h){var y=s.first;e:do{for(var v=0;v<s.children.length;++v){var w=s.children[v],N=w.height;if(h<N){s=w;continue e}h-=N,y+=w.chunkSize()}return y}while(!s.lines);for(var F=0;F<s.lines.length;++F){var K=s.lines[F],X=K.height;if(h<X)break;h-=X}return y+F}function qn(s,h){return h>=s.first&&h<s.first+s.size}function vr(s,h){return String(s.lineNumberFormatter(h+s.firstLineNumber))}function ke(s,h,y){if(y===void 0&&(y=null),!(this instanceof ke))return new ke(s,h,y);this.line=s,this.ch=h,this.sticky=y}function dt(s,h){return s.line-h.line||s.ch-h.ch}function cn(s,h){return s.sticky==h.sticky&&dt(s,h)==0}function $n(s){return ke(s.line,s.ch)}function pn(s,h){return dt(s,h)<0?h:s}function yr(s,h){return dt(s,h)<0?s:h}function Ir(s,h){return Math.max(s.first,Math.min(h,s.first+s.size-1))}function Bt(s,h){if(h.line<s.first)return ke(s.first,0);var y=s.first+s.size-1;return h.line>y?ke(y,tt(s,y).text.length):bo(h,tt(s,h.line).text.length)}function bo(s,h){var y=s.ch;return y==null||y>h?ke(s.line,h):y<0?ke(s.line,0):s}function ji(s,h){for(var y=[],v=0;v<h.length;v++)y[v]=Bt(s,h[v]);return y}var cr=function(s,h){this.state=s,this.lookAhead=h},br=function(s,h,y,v){this.state=h,this.doc=s,this.line=y,this.maxLookAhead=v||0,this.baseTokens=null,this.baseTokenPos=1};br.prototype.lookAhead=function(s){var h=this.doc.getLine(this.line+s);return h!=null&&s>this.maxLookAhead&&(this.maxLookAhead=s),h},br.prototype.baseToken=function(s){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=s;)this.baseTokenPos+=2;var h=this.baseTokens[this.baseTokenPos+1];return{type:h&&h.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-s}},br.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},br.fromSaved=function(s,h,y){return h instanceof cr?new br(s,Tt(s.mode,h.state),y,h.lookAhead):new br(s,Tt(s.mode,h),y)},br.prototype.save=function(s){var h=s!==!1?Tt(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new cr(h,this.maxLookAhead):h};function Dt(s,h,y,v){var w=[s.state.modeGen],N={};Br(s,h.text,s.doc.mode,y,function(Q,ae){return w.push(Q,ae)},N,v);for(var F=y.state,K=function(Q){y.baseTokens=w;var ae=s.state.overlays[Q],he=1,De=0;y.state=!0,Br(s,h.text,ae.mode,y,function(Me,et){for(var ct=he;De<Me;){var bt=w[he];bt>Me&&w.splice(he,1,Me,w[he+1],bt),he+=2,De=Math.min(Me,bt)}if(et)if(ae.opaque)w.splice(ct,he-ct,Me,"overlay "+et),he=ct+2;else for(;ct<he;ct+=2){var Ot=w[ct+1];w[ct+1]=(Ot?Ot+" ":"")+"overlay "+et}},N),y.state=F,y.baseTokens=null,y.baseTokenPos=1},X=0;X<s.state.overlays.length;++X)K(X);return{styles:w,classes:N.bgClass||N.textClass?N:null}}function kt(s,h,y){if(!h.styles||h.styles[0]!=s.state.modeGen){var v=an(s,Wt(h)),w=h.text.length>s.options.maxHighlightLength&&Tt(s.doc.mode,v.state),N=Dt(s,h,v);w&&(v.state=w),h.stateAfter=v.save(!w),h.styles=N.styles,N.classes?h.styleClasses=N.classes:h.styleClasses&&(h.styleClasses=null),y===s.doc.highlightFrontier&&(s.doc.modeFrontier=Math.max(s.doc.modeFrontier,++s.doc.highlightFrontier))}return h.styles}function an(s,h,y){var v=s.doc,w=s.display;if(!v.mode.startState)return new br(v,!0,h);var N=Pr(s,h,y),F=N>v.first&&tt(v,N-1).stateAfter,K=F?br.fromSaved(v,F,N):new br(v,vt(v.mode),N);return v.iter(N,h,function(X){Cn(s,X.text,K);var Q=K.line;X.stateAfter=Q==h-1||Q%5==0||Q>=w.viewFrom&&Q<w.viewTo?K.save():null,K.nextLine()}),y&&(v.modeFrontier=K.line),K}function Cn(s,h,y,v){var w=s.doc.mode,N=new gt(h,s.options.tabSize,y);for(N.start=N.pos=v||0,h==""&&fn(w,y.state);!N.eol();)jn(w,N,y.state),N.start=N.pos}function fn(s,h){if(s.blankLine)return s.blankLine(h);if(s.innerMode){var y=Pt(s,h);if(y.mode.blankLine)return y.mode.blankLine(y.state)}}function jn(s,h,y,v){for(var w=0;w<10;w++){v&&(v[0]=Pt(s,y).mode);var N=s.token(h,y);if(h.pos>h.start)return N}throw new Error("Mode "+s.name+" failed to advance stream.")}var Cr=function(s,h,y){this.start=s.start,this.end=s.pos,this.string=s.current(),this.type=h||null,this.state=y};function $r(s,h,y,v){var w=s.doc,N=w.mode,F;h=Bt(w,h);var K=tt(w,h.line),X=an(s,h.line,y),Q=new gt(K.text,s.options.tabSize,X),ae;for(v&&(ae=[]);(v||Q.pos<h.ch)&&!Q.eol();)Q.start=Q.pos,F=jn(N,Q,X.state),v&&ae.push(new Cr(Q,F,Tt(w.mode,X.state)));return v?ae:new Cr(Q,F,X.state)}function Vr(s,h){if(s)for(;;){var y=s.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!y)break;s=s.slice(0,y.index)+s.slice(y.index+y[0].length);var v=y[1]?"bgClass":"textClass";h[v]==null?h[v]=y[2]:new RegExp("(?:^|\\s)"+y[2]+"(?:$|\\s)").test(h[v])||(h[v]+=" "+y[2])}return s}function Br(s,h,y,v,w,N,F){var K=y.flattenSpans;K==null&&(K=s.options.flattenSpans);var X=0,Q=null,ae=new gt(h,s.options.tabSize,v),he,De=s.options.addModeClass&&[null];for(h==""&&Vr(fn(y,v.state),N);!ae.eol();){if(ae.pos>s.options.maxHighlightLength?(K=!1,F&&Cn(s,h,v,ae.pos),ae.pos=h.length,he=null):he=Vr(jn(y,ae,v.state,De),N),De){var Me=De[0].name;Me&&(he="m-"+(he?Me+" "+he:Me))}if(!K||Q!=he){for(;X<ae.start;)X=Math.min(ae.start,X+5e3),w(X,Q);Q=he}ae.start=ae.pos}for(;X<ae.pos;){var et=Math.min(ae.pos,X+5e3);w(et,Q),X=et}}function Pr(s,h,y){for(var v,w,N=s.doc,F=y?-1:h-(s.doc.mode.innerMode?1e3:100),K=h;K>F;--K){if(K<=N.first)return N.first;var X=tt(N,K-1),Q=X.stateAfter;if(Q&&(!y||K+(Q instanceof cr?Q.lookAhead:0)<=N.modeFrontier))return K;var ae=Z(X.text,null,s.options.tabSize);(w==null||v>ae)&&(w=K-1,v=ae)}return w}function Hi(s,h){if(s.modeFrontier=Math.min(s.modeFrontier,h),!(s.highlightFrontier<h-10)){for(var y=s.first,v=h-1;v>y;v--){var w=tt(s,v).stateAfter;if(w&&(!(w instanceof cr)||v+w.lookAhead<h)){y=v+1;break}}s.highlightFrontier=Math.min(s.highlightFrontier,y)}}var rn=!1,Yt=!1;function Nr(){rn=!0}function nr(){Yt=!0}function rr(s,h,y){this.marker=s,this.from=h,this.to=y}function ai(s,h){if(s)for(var y=0;y<s.length;++y){var v=s[y];if(v.marker==h)return v}}function vi(s,h){for(var y,v=0;v<s.length;++v)s[v]!=h&&(y||(y=[])).push(s[v]);return y}function yi(s,h,y){var v=y&&window.WeakSet&&(y.markedSpans||(y.markedSpans=new WeakSet));v&&s.markedSpans&&v.has(s.markedSpans)?s.markedSpans.push(h):(s.markedSpans=s.markedSpans?s.markedSpans.concat([h]):[h],v&&v.add(s.markedSpans)),h.marker.attachLine(s)}function Fo(s,h,y){var v;if(s)for(var w=0;w<s.length;++w){var N=s[w],F=N.marker,K=N.from==null||(F.inclusiveLeft?N.from<=h:N.from<h);if(K||N.from==h&&F.type=="bookmark"&&(!y||!N.marker.insertLeft)){var X=N.to==null||(F.inclusiveRight?N.to>=h:N.to>h);(v||(v=[])).push(new rr(F,N.from,X?null:N.to))}}return v}function hl(s,h,y){var v;if(s)for(var w=0;w<s.length;++w){var N=s[w],F=N.marker,K=N.to==null||(F.inclusiveRight?N.to>=h:N.to>h);if(K||N.from==h&&F.type=="bookmark"&&(!y||N.marker.insertLeft)){var X=N.from==null||(F.inclusiveLeft?N.from<=h:N.from<h);(v||(v=[])).push(new rr(F,X?null:N.from-h,N.to==null?null:N.to-h))}}return v}function Fc(s,h){if(h.full)return null;var y=qn(s,h.from.line)&&tt(s,h.from.line).markedSpans,v=qn(s,h.to.line)&&tt(s,h.to.line).markedSpans;if(!y&&!v)return null;var w=h.from.ch,N=h.to.ch,F=dt(h.from,h.to)==0,K=Fo(y,w,F),X=hl(v,N,F),Q=h.text.length==1,ae=oe(h.text).length+(Q?w:0);if(K)for(var he=0;he<K.length;++he){var De=K[he];if(De.to==null){var Me=ai(X,De.marker);Me?Q&&(De.to=Me.to==null?null:Me.to+ae):De.to=w}}if(X)for(var et=0;et<X.length;++et){var ct=X[et];if(ct.to!=null&&(ct.to+=ae),ct.from==null){var bt=ai(K,ct.marker);bt||(ct.from=ae,Q&&(K||(K=[])).push(ct))}else ct.from+=ae,Q&&(K||(K=[])).push(ct)}K&&(K=Zu(K)),X&&X!=K&&(X=Zu(X));var Ot=[K];if(!Q){var Rt=h.text.length-2,It;if(Rt>0&&K)for(var Lt=0;Lt<K.length;++Lt)K[Lt].to==null&&(It||(It=[])).push(new rr(K[Lt].marker,null,null));for(var en=0;en<Rt;++en)Ot.push(It);Ot.push(X)}return Ot}function Zu(s){for(var h=0;h<s.length;++h){var y=s[h];y.from!=null&&y.from==y.to&&y.marker.clearWhenEmpty!==!1&&s.splice(h--,1)}return s.length?s:null}function O1(s,h,y){var v=null;if(s.iter(h.line,y.line+1,function(Me){if(Me.markedSpans)for(var et=0;et<Me.markedSpans.length;++et){var ct=Me.markedSpans[et].marker;ct.readOnly&&(!v||Y(v,ct)==-1)&&(v||(v=[])).push(ct)}}),!v)return null;for(var w=[{from:h,to:y}],N=0;N<v.length;++N)for(var F=v[N],K=F.find(0),X=0;X<w.length;++X){var Q=w[X];if(!(dt(Q.to,K.from)<0||dt(Q.from,K.to)>0)){var ae=[X,1],he=dt(Q.from,K.from),De=dt(Q.to,K.to);(he<0||!F.inclusiveLeft&&!he)&&ae.push({from:Q.from,to:K.from}),(De>0||!F.inclusiveRight&&!De)&&ae.push({from:K.to,to:Q.to}),w.splice.apply(w,ae),X+=ae.length-3}}return w}function jt(s){var h=s.markedSpans;if(h){for(var y=0;y<h.length;++y)h[y].marker.detachLine(s);s.markedSpans=null}}function sn(s,h){if(h){for(var y=0;y<h.length;++y)h[y].marker.attachLine(s);s.markedSpans=h}}function Kn(s){return s.inclusiveLeft?-1:0}function Sr(s){return s.inclusiveRight?1:0}function ar(s,h){var y=s.lines.length-h.lines.length;if(y!=0)return y;var v=s.find(),w=h.find(),N=dt(v.from,w.from)||Kn(s)-Kn(h);if(N)return-N;var F=dt(v.to,w.to)||Sr(s)-Sr(h);return F||h.id-s.id}function Bc(s,h){var y=Yt&&s.markedSpans,v;if(y)for(var w=void 0,N=0;N<y.length;++N)w=y[N],w.marker.collapsed&&(h?w.from:w.to)==null&&(!v||ar(v,w.marker)<0)&&(v=w.marker);return v}function Ju(s){return Bc(s,!0)}function jc(s){return Bc(s,!1)}function ed(s,h){var y=Yt&&s.markedSpans,v;if(y)for(var w=0;w<y.length;++w){var N=y[w];N.marker.collapsed&&(N.from==null||N.from<h)&&(N.to==null||N.to>h)&&(!v||ar(v,N.marker)<0)&&(v=N.marker)}return v}function v6(s,h,y,v,w){var N=tt(s,h),F=Yt&&N.markedSpans;if(F)for(var K=0;K<F.length;++K){var X=F[K];if(X.marker.collapsed){var Q=X.marker.find(0),ae=dt(Q.from,y)||Kn(X.marker)-Kn(w),he=dt(Q.to,v)||Sr(X.marker)-Sr(w);if(!(ae>=0&&he<=0||ae<=0&&he>=0)&&(ae<=0&&(X.marker.inclusiveRight&&w.inclusiveLeft?dt(Q.to,y)>=0:dt(Q.to,y)>0)||ae>=0&&(X.marker.inclusiveRight&&w.inclusiveLeft?dt(Q.from,v)<=0:dt(Q.from,v)<0)))return!0}}}function Da(s){for(var h;h=Ju(s);)s=h.find(-1,!0).line;return s}function UW(s){for(var h;h=jc(s);)s=h.find(1,!0).line;return s}function KW(s){for(var h,y;h=jc(s);)s=h.find(1,!0).line,(y||(y=[])).push(s);return y}function B2(s,h){var y=tt(s,h),v=Da(y);return y==v?h:Wt(v)}function y6(s,h){if(h>s.lastLine())return h;var y=tt(s,h),v;if(!xs(s,y))return h;for(;v=jc(y);)y=v.find(1,!0).line;return Wt(y)+1}function xs(s,h){var y=Yt&&h.markedSpans;if(y){for(var v=void 0,w=0;w<y.length;++w)if(v=y[w],!!v.marker.collapsed){if(v.from==null)return!0;if(!v.marker.widgetNode&&v.from==0&&v.marker.inclusiveLeft&&j2(s,h,v))return!0}}}function j2(s,h,y){if(y.to==null){var v=y.marker.find(1,!0);return j2(s,v.line,ai(v.line.markedSpans,y.marker))}if(y.marker.inclusiveRight&&y.to==h.text.length)return!0;for(var w=void 0,N=0;N<h.markedSpans.length;++N)if(w=h.markedSpans[N],w.marker.collapsed&&!w.marker.widgetNode&&w.from==y.to&&(w.to==null||w.to!=y.from)&&(w.marker.inclusiveLeft||y.marker.inclusiveRight)&&j2(s,h,w))return!0}function zl(s){s=Da(s);for(var h=0,y=s.parent,v=0;v<y.lines.length;++v){var w=y.lines[v];if(w==s)break;h+=w.height}for(var N=y.parent;N;y=N,N=y.parent)for(var F=0;F<N.children.length;++F){var K=N.children[F];if(K==y)break;h+=K.height}return h}function t0(s){if(s.height==0)return 0;for(var h=s.text.length,y,v=s;y=Ju(v);){var w=y.find(0,!0);v=w.from.line,h+=w.from.ch-w.to.ch}for(v=s;y=jc(v);){var N=y.find(0,!0);h-=v.text.length-N.from.ch,v=N.to.line,h+=v.text.length-N.to.ch}return h}function H2(s){var h=s.display,y=s.doc;h.maxLine=tt(y,y.first),h.maxLineLength=t0(h.maxLine),h.maxLineChanged=!0,y.iter(function(v){var w=t0(v);w>h.maxLineLength&&(h.maxLineLength=w,h.maxLine=v)})}var td=function(s,h,y){this.text=s,sn(this,h),this.height=y?y(this):1};td.prototype.lineNo=function(){return Wt(this)},mt(td);function VW(s,h,y,v){s.text=h,s.stateAfter&&(s.stateAfter=null),s.styles&&(s.styles=null),s.order!=null&&(s.order=null),jt(s),sn(s,y);var w=v?v(s):1;w!=s.height&&En(s,w)}function GW(s){s.parent=null,jt(s)}var qW={},XW={};function b6(s,h){if(!s||/^\s*$/.test(s))return null;var y=h.addModeClass?XW:qW;return y[s]||(y[s]=s.replace(/\S+/g,"cm-$&"))}function C6(s,h){var y=L("span",null,null,c?"padding-right: .1px":null),v={pre:L("pre",[y],"CodeMirror-line"),content:y,col:0,pos:0,cm:s,trailingSpace:!1,splitSpaces:s.getOption("lineWrapping")};h.measure={};for(var w=0;w<=(h.rest?h.rest.length:0);w++){var N=w?h.rest[w-1]:h.line,F=void 0;v.pos=0,v.addToken=QW,fe(s.display.measure)&&(F=Ze(N,s.doc.direction))&&(v.addToken=JW(v.addToken,F)),v.map=[];var K=h!=s.display.externalMeasured&&Wt(N);eU(N,v,kt(s,N,K)),N.styleClasses&&(N.styleClasses.bgClass&&(v.bgClass=U(N.styleClasses.bgClass,v.bgClass||"")),N.styleClasses.textClass&&(v.textClass=U(N.styleClasses.textClass,v.textClass||""))),v.map.length==0&&v.map.push(0,0,v.content.appendChild(yt(s.display.measure))),w==0?(h.measure.map=v.map,h.measure.cache={}):((h.measure.maps||(h.measure.maps=[])).push(v.map),(h.measure.caches||(h.measure.caches=[])).push({}))}if(c){var X=v.content.lastChild;(/\bcm-tab\b/.test(X.className)||X.querySelector&&X.querySelector(".cm-tab"))&&(v.content.className="cm-tab-wrap-hack")}return Ie(s,"renderLine",s,h.line,v.pre),v.pre.className&&(v.textClass=U(v.pre.className,v.textClass||"")),v}function YW(s){var h=B("span","•","cm-invalidchar");return h.title="\\u"+s.charCodeAt(0).toString(16),h.setAttribute("aria-label",h.title),h}function QW(s,h,y,v,w,N,F){if(h){var K=s.splitSpaces?ZW(h,s.trailingSpace):h,X=s.cm.state.specialChars,Q=!1,ae;if(!X.test(h))s.col+=h.length,ae=document.createTextNode(K),s.map.push(s.pos,s.pos+h.length,ae),a&&l<9&&(Q=!0),s.pos+=h.length;else{ae=document.createDocumentFragment();for(var he=0;;){X.lastIndex=he;var De=X.exec(h),Me=De?De.index-he:h.length-he;if(Me){var et=document.createTextNode(K.slice(he,he+Me));a&&l<9?ae.appendChild(B("span",[et])):ae.appendChild(et),s.map.push(s.pos,s.pos+Me,et),s.col+=Me,s.pos+=Me}if(!De)break;he+=Me+1;var ct=void 0;if(De[0]==" "){var bt=s.cm.options.tabSize,Ot=bt-s.col%bt;ct=ae.appendChild(B("span",ce(Ot),"cm-tab")),ct.setAttribute("role","presentation"),ct.setAttribute("cm-text"," "),s.col+=Ot}else De[0]=="\r"||De[0]==`
`?(ct=ae.appendChild(B("span",De[0]=="\r"?"␍":"␤","cm-invalidchar")),ct.setAttribute("cm-text",De[0]),s.col+=1):(ct=s.cm.options.specialCharPlaceholder(De[0]),ct.setAttribute("cm-text",De[0]),a&&l<9?ae.appendChild(B("span",[ct])):ae.appendChild(ct),s.col+=1);s.map.push(s.pos,s.pos+1,ct),s.pos++}}if(s.trailingSpace=K.charCodeAt(h.length-1)==32,y||v||w||Q||N||F){var Rt=y||"";v&&(Rt+=v),w&&(Rt+=w);var It=B("span",[ae],Rt,N);if(F)for(var Lt in F)F.hasOwnProperty(Lt)&&Lt!="style"&&Lt!="class"&&It.setAttribute(Lt,F[Lt]);return s.content.appendChild(It)}s.content.appendChild(ae)}}function ZW(s,h){if(s.length>1&&!/ /.test(s))return s;for(var y=h,v="",w=0;w<s.length;w++){var N=s.charAt(w);N==" "&&y&&(w==s.length-1||s.charCodeAt(w+1)==32)&&(N=" "),v+=N,y=N==" "}return v}function JW(s,h){return function(y,v,w,N,F,K,X){w=w?w+" cm-force-border":"cm-force-border";for(var Q=y.pos,ae=Q+v.length;;){for(var he=void 0,De=0;De<h.length&&(he=h[De],!(he.to>Q&&he.from<=Q));De++);if(he.to>=ae)return s(y,v,w,N,F,K,X);s(y,v.slice(0,he.to-Q),w,N,null,K,X),N=null,v=v.slice(he.to-Q),Q=he.to}}}function S6(s,h,y,v){var w=!v&&y.widgetNode;w&&s.map.push(s.pos,s.pos+h,w),!v&&s.cm.display.input.needsContentAttribute&&(w||(w=s.content.appendChild(document.createElement("span"))),w.setAttribute("cm-marker",y.id)),w&&(s.cm.display.input.setUneditable(w),s.content.appendChild(w)),s.pos+=h,s.trailingSpace=!1}function eU(s,h,y){var v=s.markedSpans,w=s.text,N=0;if(!v){for(var F=1;F<y.length;F+=2)h.addToken(h,w.slice(N,N=y[F]),b6(y[F+1],h.cm.options));return}for(var K=w.length,X=0,Q=1,ae="",he,De,Me=0,et,ct,bt,Ot,Rt;;){if(Me==X){et=ct=bt=De="",Rt=null,Ot=null,Me=1/0;for(var It=[],Lt=void 0,en=0;en<v.length;++en){var Vt=v[en],mn=Vt.marker;if(mn.type=="bookmark"&&Vt.from==X&&mn.widgetNode)It.push(mn);else if(Vt.from<=X&&(Vt.to==null||Vt.to>X||mn.collapsed&&Vt.to==X&&Vt.from==X)){if(Vt.to!=null&&Vt.to!=X&&Me>Vt.to&&(Me=Vt.to,ct=""),mn.className&&(et+=" "+mn.className),mn.css&&(De=(De?De+";":"")+mn.css),mn.startStyle&&Vt.from==X&&(bt+=" "+mn.startStyle),mn.endStyle&&Vt.to==Me&&(Lt||(Lt=[])).push(mn.endStyle,Vt.to),mn.title&&((Rt||(Rt={})).title=mn.title),mn.attributes)for(var Xn in mn.attributes)(Rt||(Rt={}))[Xn]=mn.attributes[Xn];mn.collapsed&&(!Ot||ar(Ot.marker,mn)<0)&&(Ot=Vt)}else Vt.from>X&&Me>Vt.from&&(Me=Vt.from)}if(Lt)for(var ui=0;ui<Lt.length;ui+=2)Lt[ui+1]==Me&&(ct+=" "+Lt[ui]);if(!Ot||Ot.from==X)for(var Er=0;Er<It.length;++Er)S6(h,0,It[Er]);if(Ot&&(Ot.from||0)==X){if(S6(h,(Ot.to==null?K+1:Ot.to)-X,Ot.marker,Ot.from==null),Ot.to==null)return;Ot.to==X&&(Ot=!1)}}if(X>=K)break;for(var So=Math.min(K,Me);;){if(ae){var ro=X+ae.length;if(!Ot){var jr=ro>So?ae.slice(0,So-X):ae;h.addToken(h,jr,he?he+et:et,bt,X+jr.length==Me?ct:"",De,Rt)}if(ro>=So){ae=ae.slice(So-X),X=So;break}X=ro,bt=""}ae=w.slice(N,N=y[Q++]),he=b6(y[Q++],h.cm.options)}}}function E6(s,h,y){this.line=h,this.rest=KW(h),this.size=this.rest?Wt(oe(this.rest))-y+1:1,this.node=this.text=null,this.hidden=xs(s,h)}function n0(s,h,y){for(var v=[],w,N=h;N<y;N=w){var F=new E6(s.doc,tt(s.doc,N),N);w=N+F.size,v.push(F)}return v}var nd=null;function tU(s){nd?nd.ops.push(s):s.ownsGroup=nd={ops:[s],delayedCallbacks:[]}}function nU(s){var h=s.delayedCallbacks,y=0;do{for(;y<h.length;y++)h[y].call(null);for(var v=0;v<s.ops.length;v++){var w=s.ops[v];if(w.cursorActivityHandlers)for(;w.cursorActivityCalled<w.cursorActivityHandlers.length;)w.cursorActivityHandlers[w.cursorActivityCalled++].call(null,w.cm)}}while(y<h.length)}function rU(s,h){var y=s.ownsGroup;if(y)try{nU(y)}finally{nd=null,h(y)}}var I1=null;function li(s,h){var y=ot(s,h);if(y.length){var v=Array.prototype.slice.call(arguments,2),w;nd?w=nd.delayedCallbacks:I1?w=I1:(w=I1=[],setTimeout(iU,0));for(var N=function(K){w.push(function(){return y[K].apply(null,v)})},F=0;F<y.length;++F)N(F)}}function iU(){var s=I1;I1=null;for(var h=0;h<s.length;++h)s[h]()}function x6(s,h,y,v){for(var w=0;w<h.changes.length;w++){var N=h.changes[w];N=="text"?aU(s,h):N=="gutter"?T6(s,h,y,v):N=="class"?z2(s,h):N=="widget"&&lU(s,h,v)}h.changes=null}function $1(s){return s.node==s.text&&(s.node=B("div",null,null,"position: relative"),s.text.parentNode&&s.text.parentNode.replaceChild(s.node,s.text),s.node.appendChild(s.text),a&&l<8&&(s.node.style.zIndex=2)),s.node}function oU(s,h){var y=h.bgClass?h.bgClass+" "+(h.line.bgClass||""):h.line.bgClass;if(y&&(y+=" CodeMirror-linebackground"),h.background)y?h.background.className=y:(h.background.parentNode.removeChild(h.background),h.background=null);else if(y){var v=$1(h);h.background=v.insertBefore(B("div",null,y),v.firstChild),s.display.input.setUneditable(h.background)}}function w6(s,h){var y=s.display.externalMeasured;return y&&y.line==h.line?(s.display.externalMeasured=null,h.measure=y.measure,y.built):C6(s,h)}function aU(s,h){var y=h.text.className,v=w6(s,h);h.text==h.node&&(h.node=v.pre),h.text.parentNode.replaceChild(v.pre,h.text),h.text=v.pre,v.bgClass!=h.bgClass||v.textClass!=h.textClass?(h.bgClass=v.bgClass,h.textClass=v.textClass,z2(s,h)):y&&(h.text.className=y)}function z2(s,h){oU(s,h),h.line.wrapClass?$1(h).className=h.line.wrapClass:h.node!=h.text&&(h.node.className="");var y=h.textClass?h.textClass+" "+(h.line.textClass||""):h.line.textClass;h.text.className=y||""}function T6(s,h,y,v){if(h.gutter&&(h.node.removeChild(h.gutter),h.gutter=null),h.gutterBackground&&(h.node.removeChild(h.gutterBackground),h.gutterBackground=null),h.line.gutterClass){var w=$1(h);h.gutterBackground=B("div",null,"CodeMirror-gutter-background "+h.line.gutterClass,"left: "+(s.options.fixedGutter?v.fixedPos:-v.gutterTotalWidth)+"px; width: "+v.gutterTotalWidth+"px"),s.display.input.setUneditable(h.gutterBackground),w.insertBefore(h.gutterBackground,h.text)}var N=h.line.gutterMarkers;if(s.options.lineNumbers||N){var F=$1(h),K=h.gutter=B("div",null,"CodeMirror-gutter-wrapper","left: "+(s.options.fixedGutter?v.fixedPos:-v.gutterTotalWidth)+"px");if(K.setAttribute("aria-hidden","true"),s.display.input.setUneditable(K),F.insertBefore(K,h.text),h.line.gutterClass&&(K.className+=" "+h.line.gutterClass),s.options.lineNumbers&&(!N||!N["CodeMirror-linenumbers"])&&(h.lineNumber=K.appendChild(B("div",vr(s.options,y),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+v.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+s.display.lineNumInnerWidth+"px"))),N)for(var X=0;X<s.display.gutterSpecs.length;++X){var Q=s.display.gutterSpecs[X].className,ae=N.hasOwnProperty(Q)&&N[Q];ae&&K.appendChild(B("div",[ae],"CodeMirror-gutter-elt","left: "+v.gutterLeft[Q]+"px; width: "+v.gutterWidth[Q]+"px"))}}}function lU(s,h,y){h.alignable&&(h.alignable=null);for(var v=k("CodeMirror-linewidget"),w=h.node.firstChild,N=void 0;w;w=N)N=w.nextSibling,v.test(w.className)&&h.node.removeChild(w);_6(s,h,y)}function sU(s,h,y,v){var w=w6(s,h);return h.text=h.node=w.pre,w.bgClass&&(h.bgClass=w.bgClass),w.textClass&&(h.textClass=w.textClass),z2(s,h),T6(s,h,y,v),_6(s,h,v),h.node}function _6(s,h,y){if(O6(s,h.line,h,y,!0),h.rest)for(var v=0;v<h.rest.length;v++)O6(s,h.rest[v],h,y,!1)}function O6(s,h,y,v,w){if(h.widgets)for(var N=$1(y),F=0,K=h.widgets;F<K.length;++F){var X=K[F],Q=B("div",[X.node],"CodeMirror-linewidget"+(X.className?" "+X.className:""));X.handleMouseEvents||Q.setAttribute("cm-ignore-events","true"),cU(X,Q,y,v),s.display.input.setUneditable(Q),w&&X.above?N.insertBefore(Q,y.gutter||y.text):N.appendChild(Q),li(X,"redraw")}}function cU(s,h,y,v){if(s.noHScroll){(y.alignable||(y.alignable=[])).push(h);var w=v.wrapperWidth;h.style.left=v.fixedPos+"px",s.coverGutter||(w-=v.gutterTotalWidth,h.style.paddingLeft=v.gutterTotalWidth+"px"),h.style.width=w+"px"}s.coverGutter&&(h.style.zIndex=5,h.style.position="relative",s.noHScroll||(h.style.marginLeft=-v.gutterTotalWidth+"px"))}function N1(s){if(s.height!=null)return s.height;var h=s.doc.cm;if(!h)return 0;if(!z(document.body,s.node)){var y="position: relative;";s.coverGutter&&(y+="margin-left: -"+h.display.gutters.offsetWidth+"px;"),s.noHScroll&&(y+="width: "+h.display.wrapper.clientWidth+"px;"),H(h.display.measure,B("div",[s.node],null,y))}return s.height=s.node.parentNode.offsetHeight}function Wl(s,h){for(var y=Qt(h);y!=s.wrapper;y=y.parentNode)if(!y||y.nodeType==1&&y.getAttribute("cm-ignore-events")=="true"||y.parentNode==s.sizer&&y!=s.mover)return!0}function r0(s){return s.lineSpace.offsetTop}function W2(s){return s.mover.offsetHeight-s.lineSpace.offsetHeight}function I6(s){if(s.cachedPaddingH)return s.cachedPaddingH;var h=H(s.measure,B("pre","x","CodeMirror-line-like")),y=window.getComputedStyle?window.getComputedStyle(h):h.currentStyle,v={left:parseInt(y.paddingLeft),right:parseInt(y.paddingRight)};return!isNaN(v.left)&&!isNaN(v.right)&&(s.cachedPaddingH=v),v}function pl(s){return ee-s.display.nativeBarWidth}function Hc(s){return s.display.scroller.clientWidth-pl(s)-s.display.barWidth}function U2(s){return s.display.scroller.clientHeight-pl(s)-s.display.barHeight}function uU(s,h,y){var v=s.options.lineWrapping,w=v&&Hc(s);if(!h.measure.heights||v&&h.measure.width!=w){var N=h.measure.heights=[];if(v){h.measure.width=w;for(var F=h.text.firstChild.getClientRects(),K=0;K<F.length-1;K++){var X=F[K],Q=F[K+1];Math.abs(X.bottom-Q.bottom)>2&&N.push((X.bottom+Q.top)/2-y.top)}}N.push(y.bottom-y.top)}}function $6(s,h,y){if(s.line==h)return{map:s.measure.map,cache:s.measure.cache};if(s.rest){for(var v=0;v<s.rest.length;v++)if(s.rest[v]==h)return{map:s.measure.maps[v],cache:s.measure.caches[v]};for(var w=0;w<s.rest.length;w++)if(Wt(s.rest[w])>y)return{map:s.measure.maps[w],cache:s.measure.caches[w],before:!0}}}function dU(s,h){h=Da(h);var y=Wt(h),v=s.display.externalMeasured=new E6(s.doc,h,y);v.lineN=y;var w=v.built=C6(s,v);return v.text=w.pre,H(s.display.lineMeasure,w.pre),v}function N6(s,h,y,v){return ml(s,rd(s,h),y,v)}function K2(s,h){if(h>=s.display.viewFrom&&h<s.display.viewTo)return s.display.view[Uc(s,h)];var y=s.display.externalMeasured;if(y&&h>=y.lineN&&h<y.lineN+y.size)return y}function rd(s,h){var y=Wt(h),v=K2(s,y);v&&!v.text?v=null:v&&v.changes&&(x6(s,v,y,Y2(s)),s.curOp.forceUpdate=!0),v||(v=dU(s,h));var w=$6(v,h,y);return{line:h,view:v,rect:null,map:w.map,cache:w.cache,before:w.before,hasHeights:!1}}function ml(s,h,y,v,w){h.before&&(y=-1);var N=y+(v||""),F;return h.cache.hasOwnProperty(N)?F=h.cache[N]:(h.rect||(h.rect=h.view.text.getBoundingClientRect()),h.hasHeights||(uU(s,h.view,h.rect),h.hasHeights=!0),F=hU(s,h,y,v),F.bogus||(h.cache[N]=F)),{left:F.left,right:F.right,top:w?F.rtop:F.top,bottom:w?F.rbottom:F.bottom}}var A6={left:0,right:0,top:0,bottom:0};function k6(s,h,y){for(var v,w,N,F,K,X,Q=0;Q<s.length;Q+=3)if(K=s[Q],X=s[Q+1],h<K?(w=0,N=1,F="left"):h<X?(w=h-K,N=w+1):(Q==s.length-3||h==X&&s[Q+3]>h)&&(N=X-K,w=N-1,h>=X&&(F="right")),w!=null){if(v=s[Q+2],K==X&&y==(v.insertLeft?"left":"right")&&(F=y),y=="left"&&w==0)for(;Q&&s[Q-2]==s[Q-3]&&s[Q-1].insertLeft;)v=s[(Q-=3)+2],F="left";if(y=="right"&&w==X-K)for(;Q<s.length-3&&s[Q+3]==s[Q+4]&&!s[Q+5].insertLeft;)v=s[(Q+=3)+2],F="right";break}return{node:v,start:w,end:N,collapse:F,coverStart:K,coverEnd:X}}function fU(s,h){var y=A6;if(h=="left")for(var v=0;v<s.length&&(y=s[v]).left==y.right;v++);else for(var w=s.length-1;w>=0&&(y=s[w]).left==y.right;w--);return y}function hU(s,h,y,v){var w=k6(h.map,y,v),N=w.node,F=w.start,K=w.end,X=w.collapse,Q;if(N.nodeType==3){for(var ae=0;ae<4;ae++){for(;F&&Le(h.line.text.charAt(w.coverStart+F));)--F;for(;w.coverStart+K<w.coverEnd&&Le(h.line.text.charAt(w.coverStart+K));)++K;if(a&&l<9&&F==0&&K==w.coverEnd-w.coverStart?Q=N.parentNode.getBoundingClientRect():Q=fU(D(N,F,K).getClientRects(),v),Q.left||Q.right||F==0)break;K=F,F=F-1,X="right"}a&&l<11&&(Q=pU(s.display.measure,Q))}else{F>0&&(X=v="right");var he;s.options.lineWrapping&&(he=N.getClientRects()).length>1?Q=he[v=="right"?he.length-1:0]:Q=N.getBoundingClientRect()}if(a&&l<9&&!F&&(!Q||!Q.left&&!Q.right)){var De=N.parentNode.getClientRects()[0];De?Q={left:De.left,right:De.left+od(s.display),top:De.top,bottom:De.bottom}:Q=A6}for(var Me=Q.top-h.rect.top,et=Q.bottom-h.rect.top,ct=(Me+et)/2,bt=h.view.measure.heights,Ot=0;Ot<bt.length-1&&!(ct<bt[Ot]);Ot++);var Rt=Ot?bt[Ot-1]:0,It=bt[Ot],Lt={left:(X=="right"?Q.right:Q.left)-h.rect.left,right:(X=="left"?Q.left:Q.right)-h.rect.left,top:Rt,bottom:It};return!Q.left&&!Q.right&&(Lt.bogus=!0),s.options.singleCursorHeightPerLine||(Lt.rtop=Me,Lt.rbottom=et),Lt}function pU(s,h){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!nt(s))return h;var y=screen.logicalXDPI/screen.deviceXDPI,v=screen.logicalYDPI/screen.deviceYDPI;return{left:h.left*y,right:h.right*y,top:h.top*v,bottom:h.bottom*v}}function R6(s){if(s.measure&&(s.measure.cache={},s.measure.heights=null,s.rest))for(var h=0;h<s.rest.length;h++)s.measure.caches[h]={}}function M6(s){s.display.externalMeasure=null,M(s.display.lineMeasure);for(var h=0;h<s.display.view.length;h++)R6(s.display.view[h])}function A1(s){M6(s),s.display.cachedCharWidth=s.display.cachedTextHeight=s.display.cachedPaddingH=null,s.options.lineWrapping||(s.display.maxLineChanged=!0),s.display.lineNumChars=null}function P6(){return f&&x?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function L6(){return f&&x?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function V2(s){var h=Da(s),y=h.widgets,v=0;if(y)for(var w=0;w<y.length;++w)y[w].above&&(v+=N1(y[w]));return v}function i0(s,h,y,v,w){if(!w){var N=V2(h);y.top+=N,y.bottom+=N}if(v=="line")return y;v||(v="local");var F=zl(h);if(v=="local"?F+=r0(s.display):F-=s.display.viewOffset,v=="page"||v=="window"){var K=s.display.lineSpace.getBoundingClientRect();F+=K.top+(v=="window"?0:L6());var X=K.left+(v=="window"?0:P6());y.left+=X,y.right+=X}return y.top+=F,y.bottom+=F,y}function D6(s,h,y){if(y=="div")return h;var v=h.left,w=h.top;if(y=="page")v-=P6(),w-=L6();else if(y=="local"||!y){var N=s.display.sizer.getBoundingClientRect();v+=N.left,w+=N.top}var F=s.display.lineSpace.getBoundingClientRect();return{left:v-F.left,top:w-F.top}}function o0(s,h,y,v,w){return v||(v=tt(s.doc,h.line)),i0(s,v,N6(s,v,h.ch,w),y)}function Fa(s,h,y,v,w,N){v=v||tt(s.doc,h.line),w||(w=rd(s,v));function F(et,ct){var bt=ml(s,w,et,ct?"right":"left",N);return ct?bt.left=bt.right:bt.right=bt.left,i0(s,v,bt,y)}var K=Ze(v,s.doc.direction),X=h.ch,Q=h.sticky;if(X>=v.text.length?(X=v.text.length,Q="before"):X<=0&&(X=0,Q="after"),!K)return F(Q=="before"?X-1:X,Q=="before");function ae(et,ct,bt){var Ot=K[ct],Rt=Ot.level==1;return F(bt?et-1:et,Rt!=bt)}var he=Pe(K,X,Q),De=Ce,Me=ae(X,he,Q=="before");return De!=null&&(Me.other=ae(X,De,Q!="before")),Me}function F6(s,h){var y=0;h=Bt(s.doc,h),s.options.lineWrapping||(y=od(s.display)*h.ch);var v=tt(s.doc,h.line),w=zl(v)+r0(s.display);return{left:y,right:y,top:w,bottom:w+v.height}}function G2(s,h,y,v,w){var N=ke(s,h,y);return N.xRel=w,v&&(N.outside=v),N}function q2(s,h,y){var v=s.doc;if(y+=s.display.viewOffset,y<0)return G2(v.first,0,null,-1,-1);var w=In(v,y),N=v.first+v.size-1;if(w>N)return G2(v.first+v.size-1,tt(v,N).text.length,null,1,1);h<0&&(h=0);for(var F=tt(v,w);;){var K=mU(s,F,w,h,y),X=ed(F,K.ch+(K.xRel>0||K.outside>0?1:0));if(!X)return K;var Q=X.find(1);if(Q.line==w)return Q;F=tt(v,w=Q.line)}}function B6(s,h,y,v){v-=V2(h);var w=h.text.length,N=Ke(function(F){return ml(s,y,F-1).bottom<=v},w,0);return w=Ke(function(F){return ml(s,y,F).top>v},N,w),{begin:N,end:w}}function j6(s,h,y,v){y||(y=rd(s,h));var w=i0(s,h,ml(s,y,v),"line").top;return B6(s,h,y,w)}function X2(s,h,y,v){return s.bottom<=y?!1:s.top>y?!0:(v?s.left:s.right)>h}function mU(s,h,y,v,w){w-=zl(h);var N=rd(s,h),F=V2(h),K=0,X=h.text.length,Q=!0,ae=Ze(h,s.doc.direction);if(ae){var he=(s.options.lineWrapping?vU:gU)(s,h,y,N,ae,v,w);Q=he.level!=1,K=Q?he.from:he.to-1,X=Q?he.to:he.from-1}var De=null,Me=null,et=Ke(function(en){var Vt=ml(s,N,en);return Vt.top+=F,Vt.bottom+=F,X2(Vt,v,w,!1)?(Vt.top<=w&&Vt.left<=v&&(De=en,Me=Vt),!0):!1},K,X),ct,bt,Ot=!1;if(Me){var Rt=v-Me.left<Me.right-v,It=Rt==Q;et=De+(It?0:1),bt=It?"after":"before",ct=Rt?Me.left:Me.right}else{!Q&&(et==X||et==K)&&et++,bt=et==0?"after":et==h.text.length?"before":ml(s,N,et-(Q?1:0)).bottom+F<=w==Q?"after":"before";var Lt=Fa(s,ke(y,et,bt),"line",h,N);ct=Lt.left,Ot=w<Lt.top?-1:w>=Lt.bottom?1:0}return et=Fe(h.text,et,1),G2(y,et,bt,Ot,v-ct)}function gU(s,h,y,v,w,N,F){var K=Ke(function(he){var De=w[he],Me=De.level!=1;return X2(Fa(s,ke(y,Me?De.to:De.from,Me?"before":"after"),"line",h,v),N,F,!0)},0,w.length-1),X=w[K];if(K>0){var Q=X.level!=1,ae=Fa(s,ke(y,Q?X.from:X.to,Q?"after":"before"),"line",h,v);X2(ae,N,F,!0)&&ae.top>F&&(X=w[K-1])}return X}function vU(s,h,y,v,w,N,F){var K=B6(s,h,v,F),X=K.begin,Q=K.end;/\s/.test(h.text.charAt(Q-1))&&Q--;for(var ae=null,he=null,De=0;De<w.length;De++){var Me=w[De];if(!(Me.from>=Q||Me.to<=X)){var et=Me.level!=1,ct=ml(s,v,et?Math.min(Q,Me.to)-1:Math.max(X,Me.from)).right,bt=ct<N?N-ct+1e9:ct-N;(!ae||he>bt)&&(ae=Me,he=bt)}}return ae||(ae=w[w.length-1]),ae.from<X&&(ae={from:X,to:ae.to,level:ae.level}),ae.to>Q&&(ae={from:ae.from,to:Q,level:ae.level}),ae}var zc;function id(s){if(s.cachedTextHeight!=null)return s.cachedTextHeight;if(zc==null){zc=B("pre",null,"CodeMirror-line-like");for(var h=0;h<49;++h)zc.appendChild(document.createTextNode("x")),zc.appendChild(B("br"));zc.appendChild(document.createTextNode("x"))}H(s.measure,zc);var y=zc.offsetHeight/50;return y>3&&(s.cachedTextHeight=y),M(s.measure),y||1}function od(s){if(s.cachedCharWidth!=null)return s.cachedCharWidth;var h=B("span","xxxxxxxxxx"),y=B("pre",[h],"CodeMirror-line-like");H(s.measure,y);var v=h.getBoundingClientRect(),w=(v.right-v.left)/10;return w>2&&(s.cachedCharWidth=w),w||10}function Y2(s){for(var h=s.display,y={},v={},w=h.gutters.clientLeft,N=h.gutters.firstChild,F=0;N;N=N.nextSibling,++F){var K=s.display.gutterSpecs[F].className;y[K]=N.offsetLeft+N.clientLeft+w,v[K]=N.clientWidth}return{fixedPos:Q2(h),gutterTotalWidth:h.gutters.offsetWidth,gutterLeft:y,gutterWidth:v,wrapperWidth:h.wrapper.clientWidth}}function Q2(s){return s.scroller.getBoundingClientRect().left-s.sizer.getBoundingClientRect().left}function H6(s){var h=id(s.display),y=s.options.lineWrapping,v=y&&Math.max(5,s.display.scroller.clientWidth/od(s.display)-3);return function(w){if(xs(s.doc,w))return 0;var N=0;if(w.widgets)for(var F=0;F<w.widgets.length;F++)w.widgets[F].height&&(N+=w.widgets[F].height);return y?N+(Math.ceil(w.text.length/v)||1)*h:N+h}}function Z2(s){var h=s.doc,y=H6(s);h.iter(function(v){var w=y(v);w!=v.height&&En(v,w)})}function Wc(s,h,y,v){var w=s.display;if(!y&&Qt(h).getAttribute("cm-not-content")=="true")return null;var N,F,K=w.lineSpace.getBoundingClientRect();try{N=h.clientX-K.left,F=h.clientY-K.top}catch{return null}var X=q2(s,N,F),Q;if(v&&X.xRel>0&&(Q=tt(s.doc,X.line).text).length==X.ch){var ae=Z(Q,Q.length,s.options.tabSize)-Q.length;X=ke(X.line,Math.max(0,Math.round((N-I6(s.display).left)/od(s.display))-ae))}return X}function Uc(s,h){if(h>=s.display.viewTo||(h-=s.display.viewFrom,h<0))return null;for(var y=s.display.view,v=0;v<y.length;v++)if(h-=y[v].size,h<0)return v}function to(s,h,y,v){h==null&&(h=s.doc.first),y==null&&(y=s.doc.first+s.doc.size),v||(v=0);var w=s.display;if(v&&y<w.viewTo&&(w.updateLineNumbers==null||w.updateLineNumbers>h)&&(w.updateLineNumbers=h),s.curOp.viewChanged=!0,h>=w.viewTo)Yt&&B2(s.doc,h)<w.viewTo&&Ts(s);else if(y<=w.viewFrom)Yt&&y6(s.doc,y+v)>w.viewFrom?Ts(s):(w.viewFrom+=v,w.viewTo+=v);else if(h<=w.viewFrom&&y>=w.viewTo)Ts(s);else if(h<=w.viewFrom){var N=a0(s,y,y+v,1);N?(w.view=w.view.slice(N.index),w.viewFrom=N.lineN,w.viewTo+=v):Ts(s)}else if(y>=w.viewTo){var F=a0(s,h,h,-1);F?(w.view=w.view.slice(0,F.index),w.viewTo=F.lineN):Ts(s)}else{var K=a0(s,h,h,-1),X=a0(s,y,y+v,1);K&&X?(w.view=w.view.slice(0,K.index).concat(n0(s,K.lineN,X.lineN)).concat(w.view.slice(X.index)),w.viewTo+=v):Ts(s)}var Q=w.externalMeasured;Q&&(y<Q.lineN?Q.lineN+=v:h<Q.lineN+Q.size&&(w.externalMeasured=null))}function ws(s,h,y){s.curOp.viewChanged=!0;var v=s.display,w=s.display.externalMeasured;if(w&&h>=w.lineN&&h<w.lineN+w.size&&(v.externalMeasured=null),!(h<v.viewFrom||h>=v.viewTo)){var N=v.view[Uc(s,h)];if(N.node!=null){var F=N.changes||(N.changes=[]);Y(F,y)==-1&&F.push(y)}}}function Ts(s){s.display.viewFrom=s.display.viewTo=s.doc.first,s.display.view=[],s.display.viewOffset=0}function a0(s,h,y,v){var w=Uc(s,h),N,F=s.display.view;if(!Yt||y==s.doc.first+s.doc.size)return{index:w,lineN:y};for(var K=s.display.viewFrom,X=0;X<w;X++)K+=F[X].size;if(K!=h){if(v>0){if(w==F.length-1)return null;N=K+F[w].size-h,w++}else N=K-h;h+=N,y+=N}for(;B2(s.doc,y)!=y;){if(w==(v<0?0:F.length-1))return null;y+=v*F[w-(v<0?1:0)].size,w+=v}return{index:w,lineN:y}}function yU(s,h,y){var v=s.display,w=v.view;w.length==0||h>=v.viewTo||y<=v.viewFrom?(v.view=n0(s,h,y),v.viewFrom=h):(v.viewFrom>h?v.view=n0(s,h,v.viewFrom).concat(v.view):v.viewFrom<h&&(v.view=v.view.slice(Uc(s,h))),v.viewFrom=h,v.viewTo<y?v.view=v.view.concat(n0(s,v.viewTo,y)):v.viewTo>y&&(v.view=v.view.slice(0,Uc(s,y)))),v.viewTo=y}function z6(s){for(var h=s.display.view,y=0,v=0;v<h.length;v++){var w=h[v];!w.hidden&&(!w.node||w.changes)&&++y}return y}function k1(s){s.display.input.showSelection(s.display.input.prepareSelection())}function W6(s,h){h===void 0&&(h=!0);var y=s.doc,v={},w=v.cursors=document.createDocumentFragment(),N=v.selection=document.createDocumentFragment(),F=s.options.$customCursor;F&&(h=!0);for(var K=0;K<y.sel.ranges.length;K++)if(!(!h&&K==y.sel.primIndex)){var X=y.sel.ranges[K];if(!(X.from().line>=s.display.viewTo||X.to().line<s.display.viewFrom)){var Q=X.empty();if(F){var ae=F(s,X);ae&&J2(s,ae,w)}else(Q||s.options.showCursorWhenSelecting)&&J2(s,X.head,w);Q||bU(s,X,N)}}return v}function J2(s,h,y){var v=Fa(s,h,"div",null,null,!s.options.singleCursorHeightPerLine),w=y.appendChild(B("div"," ","CodeMirror-cursor"));if(w.style.left=v.left+"px",w.style.top=v.top+"px",w.style.height=Math.max(0,v.bottom-v.top)*s.options.cursorHeight+"px",/\bcm-fat-cursor\b/.test(s.getWrapperElement().className)){var N=o0(s,h,"div",null,null),F=N.right-N.left;w.style.width=(F>0?F:s.defaultCharWidth())+"px"}if(v.other){var K=y.appendChild(B("div"," ","CodeMirror-cursor CodeMirror-secondarycursor"));K.style.display="",K.style.left=v.other.left+"px",K.style.top=v.other.top+"px",K.style.height=(v.other.bottom-v.other.top)*.85+"px"}}function l0(s,h){return s.top-h.top||s.left-h.left}function bU(s,h,y){var v=s.display,w=s.doc,N=document.createDocumentFragment(),F=I6(s.display),K=F.left,X=Math.max(v.sizerWidth,Hc(s)-v.sizer.offsetLeft)-F.right,Q=w.direction=="ltr";function ae(It,Lt,en,Vt){Lt<0&&(Lt=0),Lt=Math.round(Lt),Vt=Math.round(Vt),N.appendChild(B("div",null,"CodeMirror-selected","position: absolute; left: "+It+`px;
top: `+Lt+"px; width: "+(en??X-It)+`px;
height: `+(Vt-Lt)+"px"))}function he(It,Lt,en){var Vt=tt(w,It),mn=Vt.text.length,Xn,ui;function Er(jr,io){return o0(s,ke(It,jr),"div",Vt,io)}function So(jr,io,bi){var Gr=j6(s,Vt,null,jr),Hr=io=="ltr"==(bi=="after")?"left":"right",Ar=bi=="after"?Gr.begin:Gr.end-(/\s/.test(Vt.text.charAt(Gr.end-1))?2:1);return Er(Ar,Hr)[Hr]}var ro=Ze(Vt,w.direction);return Ve(ro,Lt||0,en??mn,function(jr,io,bi,Gr){var Hr=bi=="ltr",Ar=Er(jr,Hr?"left":"right"),oo=Er(io-1,Hr?"right":"left"),yd=Lt==null&&jr==0,As=en==null&&io==mn,Ii=Gr==0,gl=!ro||Gr==ro.length-1;if(oo.top-Ar.top<=3){var di=(Q?yd:As)&&Ii,T5=(Q?As:yd)&&gl,Vl=di?K:(Hr?Ar:oo).left,Xc=T5?X:(Hr?oo:Ar).right;ae(Vl,Ar.top,Xc-Vl,Ar.bottom)}else{var Yc,Wi,bd,_5;Hr?(Yc=Q&&yd&&Ii?K:Ar.left,Wi=Q?X:So(jr,bi,"before"),bd=Q?K:So(io,bi,"after"),_5=Q&&As&&gl?X:oo.right):(Yc=Q?So(jr,bi,"before"):K,Wi=!Q&&yd&&Ii?X:Ar.right,bd=!Q&&As&&gl?K:oo.left,_5=Q?So(io,bi,"after"):X),ae(Yc,Ar.top,Wi-Yc,Ar.bottom),Ar.bottom<oo.top&&ae(K,Ar.bottom,null,oo.top),ae(bd,oo.top,_5-bd,oo.bottom)}(!Xn||l0(Ar,Xn)<0)&&(Xn=Ar),l0(oo,Xn)<0&&(Xn=oo),(!ui||l0(Ar,ui)<0)&&(ui=Ar),l0(oo,ui)<0&&(ui=oo)}),{start:Xn,end:ui}}var De=h.from(),Me=h.to();if(De.line==Me.line)he(De.line,De.ch,Me.ch);else{var et=tt(w,De.line),ct=tt(w,Me.line),bt=Da(et)==Da(ct),Ot=he(De.line,De.ch,bt?et.text.length+1:null).end,Rt=he(Me.line,bt?0:null,Me.ch).start;bt&&(Ot.top<Rt.top-2?(ae(Ot.right,Ot.top,null,Ot.bottom),ae(K,Rt.top,Rt.left,Rt.bottom)):ae(Ot.right,Ot.top,Rt.left-Ot.right,Ot.bottom)),Ot.bottom<Rt.top&&ae(K,Ot.bottom,null,Rt.top)}y.appendChild(N)}function e5(s){if(s.state.focused){var h=s.display;clearInterval(h.blinker);var y=!0;h.cursorDiv.style.visibility="",s.options.cursorBlinkRate>0?h.blinker=setInterval(function(){s.hasFocus()||ad(s),h.cursorDiv.style.visibility=(y=!y)?"":"hidden"},s.options.cursorBlinkRate):s.options.cursorBlinkRate<0&&(h.cursorDiv.style.visibility="hidden")}}function U6(s){s.hasFocus()||(s.display.input.focus(),s.state.focused||n5(s))}function t5(s){s.state.delayingBlurEvent=!0,setTimeout(function(){s.state.delayingBlurEvent&&(s.state.delayingBlurEvent=!1,s.state.focused&&ad(s))},100)}function n5(s,h){s.state.delayingBlurEvent&&!s.state.draggingText&&(s.state.delayingBlurEvent=!1),s.options.readOnly!="nocursor"&&(s.state.focused||(Ie(s,"focus",s,h),s.state.focused=!0,j(s.display.wrapper,"CodeMirror-focused"),!s.curOp&&s.display.selForContextMenu!=s.doc.sel&&(s.display.input.reset(),c&&setTimeout(function(){return s.display.input.reset(!0)},20)),s.display.input.receivedFocus()),e5(s))}function ad(s,h){s.state.delayingBlurEvent||(s.state.focused&&(Ie(s,"blur",s,h),s.state.focused=!1,R(s.display.wrapper,"CodeMirror-focused")),clearInterval(s.display.blinker),setTimeout(function(){s.state.focused||(s.display.shift=!1)},150))}function s0(s){for(var h=s.display,y=h.lineDiv.offsetTop,v=Math.max(0,h.scroller.getBoundingClientRect().top),w=h.lineDiv.getBoundingClientRect().top,N=0,F=0;F<h.view.length;F++){var K=h.view[F],X=s.options.lineWrapping,Q=void 0,ae=0;if(!K.hidden){if(w+=K.line.height,a&&l<8){var he=K.node.offsetTop+K.node.offsetHeight;Q=he-y,y=he}else{var De=K.node.getBoundingClientRect();Q=De.bottom-De.top,!X&&K.text.firstChild&&(ae=K.text.firstChild.getBoundingClientRect().right-De.left-1)}var Me=K.line.height-Q;if((Me>.005||Me<-.005)&&(w<v&&(N-=Me),En(K.line,Q),K6(K.line),K.rest))for(var et=0;et<K.rest.length;et++)K6(K.rest[et]);if(ae>s.display.sizerWidth){var ct=Math.ceil(ae/od(s.display));ct>s.display.maxLineLength&&(s.display.maxLineLength=ct,s.display.maxLine=K.line,s.display.maxLineChanged=!0)}}}Math.abs(N)>2&&(h.scroller.scrollTop+=N)}function K6(s){if(s.widgets)for(var h=0;h<s.widgets.length;++h){var y=s.widgets[h],v=y.node.parentNode;v&&(y.height=v.offsetHeight)}}function c0(s,h,y){var v=y&&y.top!=null?Math.max(0,y.top):s.scroller.scrollTop;v=Math.floor(v-r0(s));var w=y&&y.bottom!=null?y.bottom:v+s.wrapper.clientHeight,N=In(h,v),F=In(h,w);if(y&&y.ensure){var K=y.ensure.from.line,X=y.ensure.to.line;K<N?(N=K,F=In(h,zl(tt(h,K))+s.wrapper.clientHeight)):Math.min(X,h.lastLine())>=F&&(N=In(h,zl(tt(h,X))-s.wrapper.clientHeight),F=X)}return{from:N,to:Math.max(F,N+1)}}function CU(s,h){if(!Re(s,"scrollCursorIntoView")){var y=s.display,v=y.sizer.getBoundingClientRect(),w=null;if(h.top+v.top<0?w=!0:h.bottom+v.top>(window.innerHeight||document.documentElement.clientHeight)&&(w=!1),w!=null&&!b){var N=B("div","",null,`position: absolute;
top: `+(h.top-y.viewOffset-r0(s.display))+`px;
height: `+(h.bottom-h.top+pl(s)+y.barHeight)+`px;
left: `+h.left+"px; width: "+Math.max(2,h.right-h.left)+"px;");s.display.lineSpace.appendChild(N),N.scrollIntoView(w),s.display.lineSpace.removeChild(N)}}}function SU(s,h,y,v){v==null&&(v=0);var w;!s.options.lineWrapping&&h==y&&(y=h.sticky=="before"?ke(h.line,h.ch+1,"before"):h,h=h.ch?ke(h.line,h.sticky=="before"?h.ch-1:h.ch,"after"):h);for(var N=0;N<5;N++){var F=!1,K=Fa(s,h),X=!y||y==h?K:Fa(s,y);w={left:Math.min(K.left,X.left),top:Math.min(K.top,X.top)-v,right:Math.max(K.left,X.left),bottom:Math.max(K.bottom,X.bottom)+v};var Q=r5(s,w),ae=s.doc.scrollTop,he=s.doc.scrollLeft;if(Q.scrollTop!=null&&(M1(s,Q.scrollTop),Math.abs(s.doc.scrollTop-ae)>1&&(F=!0)),Q.scrollLeft!=null&&(Kc(s,Q.scrollLeft),Math.abs(s.doc.scrollLeft-he)>1&&(F=!0)),!F)break}return w}function EU(s,h){var y=r5(s,h);y.scrollTop!=null&&M1(s,y.scrollTop),y.scrollLeft!=null&&Kc(s,y.scrollLeft)}function r5(s,h){var y=s.display,v=id(s.display);h.top<0&&(h.top=0);var w=s.curOp&&s.curOp.scrollTop!=null?s.curOp.scrollTop:y.scroller.scrollTop,N=U2(s),F={};h.bottom-h.top>N&&(h.bottom=h.top+N);var K=s.doc.height+W2(y),X=h.top<v,Q=h.bottom>K-v;if(h.top<w)F.scrollTop=X?0:h.top;else if(h.bottom>w+N){var ae=Math.min(h.top,(Q?K:h.bottom)-N);ae!=w&&(F.scrollTop=ae)}var he=s.options.fixedGutter?0:y.gutters.offsetWidth,De=s.curOp&&s.curOp.scrollLeft!=null?s.curOp.scrollLeft:y.scroller.scrollLeft-he,Me=Hc(s)-y.gutters.offsetWidth,et=h.right-h.left>Me;return et&&(h.right=h.left+Me),h.left<10?F.scrollLeft=0:h.left<De?F.scrollLeft=Math.max(0,h.left+he-(et?0:10)):h.right>Me+De-3&&(F.scrollLeft=h.right+(et?0:10)-Me),F}function i5(s,h){h!=null&&(u0(s),s.curOp.scrollTop=(s.curOp.scrollTop==null?s.doc.scrollTop:s.curOp.scrollTop)+h)}function ld(s){u0(s);var h=s.getCursor();s.curOp.scrollToPos={from:h,to:h,margin:s.options.cursorScrollMargin}}function R1(s,h,y){(h!=null||y!=null)&&u0(s),h!=null&&(s.curOp.scrollLeft=h),y!=null&&(s.curOp.scrollTop=y)}function xU(s,h){u0(s),s.curOp.scrollToPos=h}function u0(s){var h=s.curOp.scrollToPos;if(h){s.curOp.scrollToPos=null;var y=F6(s,h.from),v=F6(s,h.to);V6(s,y,v,h.margin)}}function V6(s,h,y,v){var w=r5(s,{left:Math.min(h.left,y.left),top:Math.min(h.top,y.top)-v,right:Math.max(h.right,y.right),bottom:Math.max(h.bottom,y.bottom)+v});R1(s,w.scrollLeft,w.scrollTop)}function M1(s,h){Math.abs(s.doc.scrollTop-h)<2||(n||a5(s,{top:h}),G6(s,h,!0),n&&a5(s),D1(s,100))}function G6(s,h,y){h=Math.max(0,Math.min(s.display.scroller.scrollHeight-s.display.scroller.clientHeight,h)),!(s.display.scroller.scrollTop==h&&!y)&&(s.doc.scrollTop=h,s.display.scrollbars.setScrollTop(h),s.display.scroller.scrollTop!=h&&(s.display.scroller.scrollTop=h))}function Kc(s,h,y,v){h=Math.max(0,Math.min(h,s.display.scroller.scrollWidth-s.display.scroller.clientWidth)),!((y?h==s.doc.scrollLeft:Math.abs(s.doc.scrollLeft-h)<2)&&!v)&&(s.doc.scrollLeft=h,Z6(s),s.display.scroller.scrollLeft!=h&&(s.display.scroller.scrollLeft=h),s.display.scrollbars.setScrollLeft(h))}function P1(s){var h=s.display,y=h.gutters.offsetWidth,v=Math.round(s.doc.height+W2(s.display));return{clientHeight:h.scroller.clientHeight,viewHeight:h.wrapper.clientHeight,scrollWidth:h.scroller.scrollWidth,clientWidth:h.scroller.clientWidth,viewWidth:h.wrapper.clientWidth,barLeft:s.options.fixedGutter?y:0,docHeight:v,scrollHeight:v+pl(s)+h.barHeight,nativeBarWidth:h.nativeBarWidth,gutterWidth:y}}var Vc=function(s,h,y){this.cm=y;var v=this.vert=B("div",[B("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),w=this.horiz=B("div",[B("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");v.tabIndex=w.tabIndex=-1,s(v),s(w),Be(v,"scroll",function(){v.clientHeight&&h(v.scrollTop,"vertical")}),Be(w,"scroll",function(){w.clientWidth&&h(w.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,a&&l<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Vc.prototype.update=function(s){var h=s.scrollWidth>s.clientWidth+1,y=s.scrollHeight>s.clientHeight+1,v=s.nativeBarWidth;if(y){this.vert.style.display="block",this.vert.style.bottom=h?v+"px":"0";var w=s.viewHeight-(h?v:0);this.vert.firstChild.style.height=Math.max(0,s.scrollHeight-s.clientHeight+w)+"px"}else this.vert.scrollTop=0,this.vert.style.display="",this.vert.firstChild.style.height="0";if(h){this.horiz.style.display="block",this.horiz.style.right=y?v+"px":"0",this.horiz.style.left=s.barLeft+"px";var N=s.viewWidth-s.barLeft-(y?v:0);this.horiz.firstChild.style.width=Math.max(0,s.scrollWidth-s.clientWidth+N)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&s.clientHeight>0&&(v==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:y?v:0,bottom:h?v:0}},Vc.prototype.setScrollLeft=function(s){this.horiz.scrollLeft!=s&&(this.horiz.scrollLeft=s),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Vc.prototype.setScrollTop=function(s){this.vert.scrollTop!=s&&(this.vert.scrollTop=s),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Vc.prototype.zeroWidthHack=function(){var s=S&&!g?"12px":"18px";this.horiz.style.height=this.vert.style.width=s,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new V,this.disableVert=new V},Vc.prototype.enableZeroWidthBar=function(s,h,y){s.style.pointerEvents="auto";function v(){var w=s.getBoundingClientRect(),N=y=="vert"?document.elementFromPoint(w.right-1,(w.top+w.bottom)/2):document.elementFromPoint((w.right+w.left)/2,w.bottom-1);N!=s?s.style.pointerEvents="none":h.set(1e3,v)}h.set(1e3,v)},Vc.prototype.clear=function(){var s=this.horiz.parentNode;s.removeChild(this.horiz),s.removeChild(this.vert)};var L1=function(){};L1.prototype.update=function(){return{bottom:0,right:0}},L1.prototype.setScrollLeft=function(){},L1.prototype.setScrollTop=function(){},L1.prototype.clear=function(){};function sd(s,h){h||(h=P1(s));var y=s.display.barWidth,v=s.display.barHeight;q6(s,h);for(var w=0;w<4&&y!=s.display.barWidth||v!=s.display.barHeight;w++)y!=s.display.barWidth&&s.options.lineWrapping&&s0(s),q6(s,P1(s)),y=s.display.barWidth,v=s.display.barHeight}function q6(s,h){var y=s.display,v=y.scrollbars.update(h);y.sizer.style.paddingRight=(y.barWidth=v.right)+"px",y.sizer.style.paddingBottom=(y.barHeight=v.bottom)+"px",y.heightForcer.style.borderBottom=v.bottom+"px solid transparent",v.right&&v.bottom?(y.scrollbarFiller.style.display="block",y.scrollbarFiller.style.height=v.bottom+"px",y.scrollbarFiller.style.width=v.right+"px"):y.scrollbarFiller.style.display="",v.bottom&&s.options.coverGutterNextToScrollbar&&s.options.fixedGutter?(y.gutterFiller.style.display="block",y.gutterFiller.style.height=v.bottom+"px",y.gutterFiller.style.width=h.gutterWidth+"px"):y.gutterFiller.style.display=""}var X6={native:Vc,null:L1};function Y6(s){s.display.scrollbars&&(s.display.scrollbars.clear(),s.display.scrollbars.addClass&&R(s.display.wrapper,s.display.scrollbars.addClass)),s.display.scrollbars=new X6[s.options.scrollbarStyle](function(h){s.display.wrapper.insertBefore(h,s.display.scrollbarFiller),Be(h,"mousedown",function(){s.state.focused&&setTimeout(function(){return s.display.input.focus()},0)}),h.setAttribute("cm-not-content","true")},function(h,y){y=="horizontal"?Kc(s,h):M1(s,h)},s),s.display.scrollbars.addClass&&j(s.display.wrapper,s.display.scrollbars.addClass)}var wU=0;function Gc(s){s.curOp={cm:s,viewChanged:!1,startHeight:s.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++wU,markArrays:null},tU(s.curOp)}function qc(s){var h=s.curOp;h&&rU(h,function(y){for(var v=0;v<y.ops.length;v++)y.ops[v].cm.curOp=null;TU(y)})}function TU(s){for(var h=s.ops,y=0;y<h.length;y++)_U(h[y]);for(var v=0;v<h.length;v++)OU(h[v]);for(var w=0;w<h.length;w++)IU(h[w]);for(var N=0;N<h.length;N++)$U(h[N]);for(var F=0;F<h.length;F++)NU(h[F])}function _U(s){var h=s.cm,y=h.display;kU(h),s.updateMaxLine&&H2(h),s.mustUpdate=s.viewChanged||s.forceUpdate||s.scrollTop!=null||s.scrollToPos&&(s.scrollToPos.from.line<y.viewFrom||s.scrollToPos.to.line>=y.viewTo)||y.maxLineChanged&&h.options.lineWrapping,s.update=s.mustUpdate&&new d0(h,s.mustUpdate&&{top:s.scrollTop,ensure:s.scrollToPos},s.forceUpdate)}function OU(s){s.updatedDisplay=s.mustUpdate&&o5(s.cm,s.update)}function IU(s){var h=s.cm,y=h.display;s.updatedDisplay&&s0(h),s.barMeasure=P1(h),y.maxLineChanged&&!h.options.lineWrapping&&(s.adjustWidthTo=N6(h,y.maxLine,y.maxLine.text.length).left+3,h.display.sizerWidth=s.adjustWidthTo,s.barMeasure.scrollWidth=Math.max(y.scroller.clientWidth,y.sizer.offsetLeft+s.adjustWidthTo+pl(h)+h.display.barWidth),s.maxScrollLeft=Math.max(0,y.sizer.offsetLeft+s.adjustWidthTo-Hc(h))),(s.updatedDisplay||s.selectionChanged)&&(s.preparedSelection=y.input.prepareSelection())}function $U(s){var h=s.cm;s.adjustWidthTo!=null&&(h.display.sizer.style.minWidth=s.adjustWidthTo+"px",s.maxScrollLeft<h.doc.scrollLeft&&Kc(h,Math.min(h.display.scroller.scrollLeft,s.maxScrollLeft),!0),h.display.maxLineChanged=!1);var y=s.focus&&s.focus==W();s.preparedSelection&&h.display.input.showSelection(s.preparedSelection,y),(s.updatedDisplay||s.startHeight!=h.doc.height)&&sd(h,s.barMeasure),s.updatedDisplay&&s5(h,s.barMeasure),s.selectionChanged&&e5(h),h.state.focused&&s.updateInput&&h.display.input.reset(s.typing),y&&U6(s.cm)}function NU(s){var h=s.cm,y=h.display,v=h.doc;if(s.updatedDisplay&&Q6(h,s.update),y.wheelStartX!=null&&(s.scrollTop!=null||s.scrollLeft!=null||s.scrollToPos)&&(y.wheelStartX=y.wheelStartY=null),s.scrollTop!=null&&G6(h,s.scrollTop,s.forceScroll),s.scrollLeft!=null&&Kc(h,s.scrollLeft,!0,!0),s.scrollToPos){var w=SU(h,Bt(v,s.scrollToPos.from),Bt(v,s.scrollToPos.to),s.scrollToPos.margin);CU(h,w)}var N=s.maybeHiddenMarkers,F=s.maybeUnhiddenMarkers;if(N)for(var K=0;K<N.length;++K)N[K].lines.length||Ie(N[K],"hide");if(F)for(var X=0;X<F.length;++X)F[X].lines.length&&Ie(F[X],"unhide");y.wrapper.offsetHeight&&(v.scrollTop=h.display.scroller.scrollTop),s.changeObjs&&Ie(h,"changes",h,s.changeObjs),s.update&&s.update.finish()}function Co(s,h){if(s.curOp)return h();Gc(s);try{return h()}finally{qc(s)}}function si(s,h){return function(){if(s.curOp)return h.apply(s,arguments);Gc(s);try{return h.apply(s,arguments)}finally{qc(s)}}}function zi(s){return function(){if(this.curOp)return s.apply(this,arguments);Gc(this);try{return s.apply(this,arguments)}finally{qc(this)}}}function ci(s){return function(){var h=this.cm;if(!h||h.curOp)return s.apply(this,arguments);Gc(h);try{return s.apply(this,arguments)}finally{qc(h)}}}function D1(s,h){s.doc.highlightFrontier<s.display.viewTo&&s.state.highlight.set(h,A(AU,s))}function AU(s){var h=s.doc;if(!(h.highlightFrontier>=s.display.viewTo)){var y=+new Date+s.options.workTime,v=an(s,h.highlightFrontier),w=[];h.iter(v.line,Math.min(h.first+h.size,s.display.viewTo+500),function(N){if(v.line>=s.display.viewFrom){var F=N.styles,K=N.text.length>s.options.maxHighlightLength?Tt(h.mode,v.state):null,X=Dt(s,N,v,!0);K&&(v.state=K),N.styles=X.styles;var Q=N.styleClasses,ae=X.classes;ae?N.styleClasses=ae:Q&&(N.styleClasses=null);for(var he=!F||F.length!=N.styles.length||Q!=ae&&(!Q||!ae||Q.bgClass!=ae.bgClass||Q.textClass!=ae.textClass),De=0;!he&&De<F.length;++De)he=F[De]!=N.styles[De];he&&w.push(v.line),N.stateAfter=v.save(),v.nextLine()}else N.text.length<=s.options.maxHighlightLength&&Cn(s,N.text,v),N.stateAfter=v.line%5==0?v.save():null,v.nextLine();if(+new Date>y)return D1(s,s.options.workDelay),!0}),h.highlightFrontier=v.line,h.modeFrontier=Math.max(h.modeFrontier,v.line),w.length&&Co(s,function(){for(var N=0;N<w.length;N++)ws(s,w[N],"text")})}}var d0=function(s,h,y){var v=s.display;this.viewport=h,this.visible=c0(v,s.doc,h),this.editorIsHidden=!v.wrapper.offsetWidth,this.wrapperHeight=v.wrapper.clientHeight,this.wrapperWidth=v.wrapper.clientWidth,this.oldDisplayWidth=Hc(s),this.force=y,this.dims=Y2(s),this.events=[]};d0.prototype.signal=function(s,h){Ye(s,h)&&this.events.push(arguments)},d0.prototype.finish=function(){for(var s=0;s<this.events.length;s++)Ie.apply(null,this.events[s])};function kU(s){var h=s.display;!h.scrollbarsClipped&&h.scroller.offsetWidth&&(h.nativeBarWidth=h.scroller.offsetWidth-h.scroller.clientWidth,h.heightForcer.style.height=pl(s)+"px",h.sizer.style.marginBottom=-h.nativeBarWidth+"px",h.sizer.style.borderRightWidth=pl(s)+"px",h.scrollbarsClipped=!0)}function RU(s){if(s.hasFocus())return null;var h=W();if(!h||!z(s.display.lineDiv,h))return null;var y={activeElt:h};if(window.getSelection){var v=window.getSelection();v.anchorNode&&v.extend&&z(s.display.lineDiv,v.anchorNode)&&(y.anchorNode=v.anchorNode,y.anchorOffset=v.anchorOffset,y.focusNode=v.focusNode,y.focusOffset=v.focusOffset)}return y}function MU(s){if(!(!s||!s.activeElt||s.activeElt==W())&&(s.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(s.activeElt.nodeName)&&s.anchorNode&&z(document.body,s.anchorNode)&&z(document.body,s.focusNode))){var h=window.getSelection(),y=document.createRange();y.setEnd(s.anchorNode,s.anchorOffset),y.collapse(!1),h.removeAllRanges(),h.addRange(y),h.extend(s.focusNode,s.focusOffset)}}function o5(s,h){var y=s.display,v=s.doc;if(h.editorIsHidden)return Ts(s),!1;if(!h.force&&h.visible.from>=y.viewFrom&&h.visible.to<=y.viewTo&&(y.updateLineNumbers==null||y.updateLineNumbers>=y.viewTo)&&y.renderedView==y.view&&z6(s)==0)return!1;J6(s)&&(Ts(s),h.dims=Y2(s));var w=v.first+v.size,N=Math.max(h.visible.from-s.options.viewportMargin,v.first),F=Math.min(w,h.visible.to+s.options.viewportMargin);y.viewFrom<N&&N-y.viewFrom<20&&(N=Math.max(v.first,y.viewFrom)),y.viewTo>F&&y.viewTo-F<20&&(F=Math.min(w,y.viewTo)),Yt&&(N=B2(s.doc,N),F=y6(s.doc,F));var K=N!=y.viewFrom||F!=y.viewTo||y.lastWrapHeight!=h.wrapperHeight||y.lastWrapWidth!=h.wrapperWidth;yU(s,N,F),y.viewOffset=zl(tt(s.doc,y.viewFrom)),s.display.mover.style.top=y.viewOffset+"px";var X=z6(s);if(!K&&X==0&&!h.force&&y.renderedView==y.view&&(y.updateLineNumbers==null||y.updateLineNumbers>=y.viewTo))return!1;var Q=RU(s);return X>4&&(y.lineDiv.style.display="none"),PU(s,y.updateLineNumbers,h.dims),X>4&&(y.lineDiv.style.display=""),y.renderedView=y.view,MU(Q),M(y.cursorDiv),M(y.selectionDiv),y.gutters.style.height=y.sizer.style.minHeight=0,K&&(y.lastWrapHeight=h.wrapperHeight,y.lastWrapWidth=h.wrapperWidth,D1(s,400)),y.updateLineNumbers=null,!0}function Q6(s,h){for(var y=h.viewport,v=!0;;v=!1){if(!v||!s.options.lineWrapping||h.oldDisplayWidth==Hc(s)){if(y&&y.top!=null&&(y={top:Math.min(s.doc.height+W2(s.display)-U2(s),y.top)}),h.visible=c0(s.display,s.doc,y),h.visible.from>=s.display.viewFrom&&h.visible.to<=s.display.viewTo)break}else v&&(h.visible=c0(s.display,s.doc,y));if(!o5(s,h))break;s0(s);var w=P1(s);k1(s),sd(s,w),s5(s,w),h.force=!1}h.signal(s,"update",s),(s.display.viewFrom!=s.display.reportedViewFrom||s.display.viewTo!=s.display.reportedViewTo)&&(h.signal(s,"viewportChange",s,s.display.viewFrom,s.display.viewTo),s.display.reportedViewFrom=s.display.viewFrom,s.display.reportedViewTo=s.display.viewTo)}function a5(s,h){var y=new d0(s,h);if(o5(s,y)){s0(s),Q6(s,y);var v=P1(s);k1(s),sd(s,v),s5(s,v),y.finish()}}function PU(s,h,y){var v=s.display,w=s.options.lineNumbers,N=v.lineDiv,F=N.firstChild;function K(et){var ct=et.nextSibling;return c&&S&&s.display.currentWheelTarget==et?et.style.display="none":et.parentNode.removeChild(et),ct}for(var X=v.view,Q=v.viewFrom,ae=0;ae<X.length;ae++){var he=X[ae];if(!he.hidden)if(!he.node||he.node.parentNode!=N){var De=sU(s,he,Q,y);N.insertBefore(De,F)}else{for(;F!=he.node;)F=K(F);var Me=w&&h!=null&&h<=Q&&he.lineNumber;he.changes&&(Y(he.changes,"gutter")>-1&&(Me=!1),x6(s,he,Q,y)),Me&&(M(he.lineNumber),he.lineNumber.appendChild(document.createTextNode(vr(s.options,Q)))),F=he.node.nextSibling}Q+=he.size}for(;F;)F=K(F)}function l5(s){var h=s.gutters.offsetWidth;s.sizer.style.marginLeft=h+"px",li(s,"gutterChanged",s)}function s5(s,h){s.display.sizer.style.minHeight=h.docHeight+"px",s.display.heightForcer.style.top=h.docHeight+"px",s.display.gutters.style.height=h.docHeight+s.display.barHeight+pl(s)+"px"}function Z6(s){var h=s.display,y=h.view;if(!(!h.alignWidgets&&(!h.gutters.firstChild||!s.options.fixedGutter))){for(var v=Q2(h)-h.scroller.scrollLeft+s.doc.scrollLeft,w=h.gutters.offsetWidth,N=v+"px",F=0;F<y.length;F++)if(!y[F].hidden){s.options.fixedGutter&&(y[F].gutter&&(y[F].gutter.style.left=N),y[F].gutterBackground&&(y[F].gutterBackground.style.left=N));var K=y[F].alignable;if(K)for(var X=0;X<K.length;X++)K[X].style.left=N}s.options.fixedGutter&&(h.gutters.style.left=v+w+"px")}}function J6(s){if(!s.options.lineNumbers)return!1;var h=s.doc,y=vr(s.options,h.first+h.size-1),v=s.display;if(y.length!=v.lineNumChars){var w=v.measure.appendChild(B("div",[B("div",y)],"CodeMirror-linenumber CodeMirror-gutter-elt")),N=w.firstChild.offsetWidth,F=w.offsetWidth-N;return v.lineGutter.style.width="",v.lineNumInnerWidth=Math.max(N,v.lineGutter.offsetWidth-F)+1,v.lineNumWidth=v.lineNumInnerWidth+F,v.lineNumChars=v.lineNumInnerWidth?y.length:-1,v.lineGutter.style.width=v.lineNumWidth+"px",l5(s.display),!0}return!1}function c5(s,h){for(var y=[],v=!1,w=0;w<s.length;w++){var N=s[w],F=null;if(typeof N!="string"&&(F=N.style,N=N.className),N=="CodeMirror-linenumbers")if(h)v=!0;else continue;y.push({className:N,style:F})}return h&&!v&&y.push({className:"CodeMirror-linenumbers",style:null}),y}function ew(s){var h=s.gutters,y=s.gutterSpecs;M(h),s.lineGutter=null;for(var v=0;v<y.length;++v){var w=y[v],N=w.className,F=w.style,K=h.appendChild(B("div",null,"CodeMirror-gutter "+N));F&&(K.style.cssText=F),N=="CodeMirror-linenumbers"&&(s.lineGutter=K,K.style.width=(s.lineNumWidth||1)+"px")}h.style.display=y.length?"":"none",l5(s)}function F1(s){ew(s.display),to(s),Z6(s)}function LU(s,h,y,v){var w=this;this.input=y,w.scrollbarFiller=B("div",null,"CodeMirror-scrollbar-filler"),w.scrollbarFiller.setAttribute("cm-not-content","true"),w.gutterFiller=B("div",null,"CodeMirror-gutter-filler"),w.gutterFiller.setAttribute("cm-not-content","true"),w.lineDiv=L("div",null,"CodeMirror-code"),w.selectionDiv=B("div",null,null,"position: relative; z-index: 1"),w.cursorDiv=B("div",null,"CodeMirror-cursors"),w.measure=B("div",null,"CodeMirror-measure"),w.lineMeasure=B("div",null,"CodeMirror-measure"),w.lineSpace=L("div",[w.measure,w.lineMeasure,w.selectionDiv,w.cursorDiv,w.lineDiv],null,"position: relative; outline: none");var N=L("div",[w.lineSpace],"CodeMirror-lines");w.mover=B("div",[N],null,"position: relative"),w.sizer=B("div",[w.mover],"CodeMirror-sizer"),w.sizerWidth=null,w.heightForcer=B("div",null,null,"position: absolute; height: "+ee+"px; width: 1px;"),w.gutters=B("div",null,"CodeMirror-gutters"),w.lineGutter=null,w.scroller=B("div",[w.sizer,w.heightForcer,w.gutters],"CodeMirror-scroll"),w.scroller.setAttribute("tabIndex","-1"),w.wrapper=B("div",[w.scrollbarFiller,w.gutterFiller,w.scroller],"CodeMirror"),w.wrapper.setAttribute("translate","no"),a&&l<8&&(w.gutters.style.zIndex=-1,w.scroller.style.paddingRight=0),!c&&!(n&&C)&&(w.scroller.draggable=!0),s&&(s.appendChild?s.appendChild(w.wrapper):s(w.wrapper)),w.viewFrom=w.viewTo=h.first,w.reportedViewFrom=w.reportedViewTo=h.first,w.view=[],w.renderedView=null,w.externalMeasured=null,w.viewOffset=0,w.lastWrapHeight=w.lastWrapWidth=0,w.updateLineNumbers=null,w.nativeBarWidth=w.barHeight=w.barWidth=0,w.scrollbarsClipped=!1,w.lineNumWidth=w.lineNumInnerWidth=w.lineNumChars=null,w.alignWidgets=!1,w.cachedCharWidth=w.cachedTextHeight=w.cachedPaddingH=null,w.maxLine=null,w.maxLineLength=0,w.maxLineChanged=!1,w.wheelDX=w.wheelDY=w.wheelStartX=w.wheelStartY=null,w.shift=!1,w.selForContextMenu=null,w.activeTouch=null,w.gutterSpecs=c5(v.gutters,v.lineNumbers),ew(w),y.init(w)}var f0=0,Ul=null;a?Ul=-.53:n?Ul=15:f?Ul=-.7:m&&(Ul=-1/3);function tw(s){var h=s.wheelDeltaX,y=s.wheelDeltaY;return h==null&&s.detail&&s.axis==s.HORIZONTAL_AXIS&&(h=s.detail),y==null&&s.detail&&s.axis==s.VERTICAL_AXIS?y=s.detail:y==null&&(y=s.wheelDelta),{x:h,y}}function DU(s){var h=tw(s);return h.x*=Ul,h.y*=Ul,h}function nw(s,h){var y=tw(h),v=y.x,w=y.y,N=Ul;h.deltaMode===0&&(v=h.deltaX,w=h.deltaY,N=1);var F=s.display,K=F.scroller,X=K.scrollWidth>K.clientWidth,Q=K.scrollHeight>K.clientHeight;if(v&&X||w&&Q){if(w&&S&&c){e:for(var ae=h.target,he=F.view;ae!=K;ae=ae.parentNode)for(var De=0;De<he.length;De++)if(he[De].node==ae){s.display.currentWheelTarget=ae;break e}}if(v&&!n&&!p&&N!=null){w&&Q&&M1(s,Math.max(0,K.scrollTop+w*N)),Kc(s,Math.max(0,K.scrollLeft+v*N)),(!w||w&&Q)&&Nt(h),F.wheelStartX=null;return}if(w&&N!=null){var Me=w*N,et=s.doc.scrollTop,ct=et+F.wrapper.clientHeight;Me<0?et=Math.max(0,et+Me-50):ct=Math.min(s.doc.height,ct+Me+50),a5(s,{top:et,bottom:ct})}f0<20&&h.deltaMode!==0&&(F.wheelStartX==null?(F.wheelStartX=K.scrollLeft,F.wheelStartY=K.scrollTop,F.wheelDX=v,F.wheelDY=w,setTimeout(function(){if(F.wheelStartX!=null){var bt=K.scrollLeft-F.wheelStartX,Ot=K.scrollTop-F.wheelStartY,Rt=Ot&&F.wheelDY&&Ot/F.wheelDY||bt&&F.wheelDX&&bt/F.wheelDX;F.wheelStartX=F.wheelStartY=null,Rt&&(Ul=(Ul*f0+Rt)/(f0+1),++f0)}},200)):(F.wheelDX+=v,F.wheelDY+=w))}}var Bo=function(s,h){this.ranges=s,this.primIndex=h};Bo.prototype.primary=function(){return this.ranges[this.primIndex]},Bo.prototype.equals=function(s){if(s==this)return!0;if(s.primIndex!=this.primIndex||s.ranges.length!=this.ranges.length)return!1;for(var h=0;h<this.ranges.length;h++){var y=this.ranges[h],v=s.ranges[h];if(!cn(y.anchor,v.anchor)||!cn(y.head,v.head))return!1}return!0},Bo.prototype.deepCopy=function(){for(var s=[],h=0;h<this.ranges.length;h++)s[h]=new Bn($n(this.ranges[h].anchor),$n(this.ranges[h].head));return new Bo(s,this.primIndex)},Bo.prototype.somethingSelected=function(){for(var s=0;s<this.ranges.length;s++)if(!this.ranges[s].empty())return!0;return!1},Bo.prototype.contains=function(s,h){h||(h=s);for(var y=0;y<this.ranges.length;y++){var v=this.ranges[y];if(dt(h,v.from())>=0&&dt(s,v.to())<=0)return y}return-1};var Bn=function(s,h){this.anchor=s,this.head=h};Bn.prototype.from=function(){return yr(this.anchor,this.head)},Bn.prototype.to=function(){return pn(this.anchor,this.head)},Bn.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function Ba(s,h,y){var v=s&&s.options.selectionsMayTouch,w=h[y];h.sort(function(De,Me){return dt(De.from(),Me.from())}),y=Y(h,w);for(var N=1;N<h.length;N++){var F=h[N],K=h[N-1],X=dt(K.to(),F.from());if(v&&!F.empty()?X>0:X>=0){var Q=yr(K.from(),F.from()),ae=pn(K.to(),F.to()),he=K.empty()?F.from()==F.head:K.from()==K.head;N<=y&&--y,h.splice(--N,2,new Bn(he?ae:Q,he?Q:ae))}}return new Bo(h,y)}function _s(s,h){return new Bo([new Bn(s,h||s)],0)}function Os(s){return s.text?ke(s.from.line+s.text.length-1,oe(s.text).length+(s.text.length==1?s.from.ch:0)):s.to}function rw(s,h){if(dt(s,h.from)<0)return s;if(dt(s,h.to)<=0)return Os(h);var y=s.line+h.text.length-(h.to.line-h.from.line)-1,v=s.ch;return s.line==h.to.line&&(v+=Os(h).ch-h.to.ch),ke(y,v)}function u5(s,h){for(var y=[],v=0;v<s.sel.ranges.length;v++){var w=s.sel.ranges[v];y.push(new Bn(rw(w.anchor,h),rw(w.head,h)))}return Ba(s.cm,y,s.sel.primIndex)}function iw(s,h,y){return s.line==h.line?ke(y.line,s.ch-h.ch+y.ch):ke(y.line+(s.line-h.line),s.ch)}function FU(s,h,y){for(var v=[],w=ke(s.first,0),N=w,F=0;F<h.length;F++){var K=h[F],X=iw(K.from,w,N),Q=iw(Os(K),w,N);if(w=K.to,N=Q,y=="around"){var ae=s.sel.ranges[F],he=dt(ae.head,ae.anchor)<0;v[F]=new Bn(he?Q:X,he?X:Q)}else v[F]=new Bn(X,X)}return new Bo(v,s.sel.primIndex)}function d5(s){s.doc.mode=ft(s.options,s.doc.modeOption),B1(s)}function B1(s){s.doc.iter(function(h){h.stateAfter&&(h.stateAfter=null),h.styles&&(h.styles=null)}),s.doc.modeFrontier=s.doc.highlightFrontier=s.doc.first,D1(s,100),s.state.modeGen++,s.curOp&&to(s)}function ow(s,h){return h.from.ch==0&&h.to.ch==0&&oe(h.text)==""&&(!s.cm||s.cm.options.wholeLineUpdateBefore)}function f5(s,h,y,v){function w(Rt){return y?y[Rt]:null}function N(Rt,It,Lt){VW(Rt,It,Lt,v),li(Rt,"change",Rt,h)}function F(Rt,It){for(var Lt=[],en=Rt;en<It;++en)Lt.push(new td(Q[en],w(en),v));return Lt}var K=h.from,X=h.to,Q=h.text,ae=tt(s,K.line),he=tt(s,X.line),De=oe(Q),Me=w(Q.length-1),et=X.line-K.line;if(h.full)s.insert(0,F(0,Q.length)),s.remove(Q.length,s.size-Q.length);else if(ow(s,h)){var ct=F(0,Q.length-1);N(he,he.text,Me),et&&s.remove(K.line,et),ct.length&&s.insert(K.line,ct)}else if(ae==he)if(Q.length==1)N(ae,ae.text.slice(0,K.ch)+De+ae.text.slice(X.ch),Me);else{var bt=F(1,Q.length-1);bt.push(new td(De+ae.text.slice(X.ch),Me,v)),N(ae,ae.text.slice(0,K.ch)+Q[0],w(0)),s.insert(K.line+1,bt)}else if(Q.length==1)N(ae,ae.text.slice(0,K.ch)+Q[0]+he.text.slice(X.ch),w(0)),s.remove(K.line+1,et);else{N(ae,ae.text.slice(0,K.ch)+Q[0],w(0)),N(he,De+he.text.slice(X.ch),Me);var Ot=F(1,Q.length-1);et>1&&s.remove(K.line+1,et-1),s.insert(K.line+1,Ot)}li(s,"change",s,h)}function Is(s,h,y){function v(w,N,F){if(w.linked)for(var K=0;K<w.linked.length;++K){var X=w.linked[K];if(X.doc!=N){var Q=F&&X.sharedHist;y&&!Q||(h(X.doc,Q),v(X.doc,w,Q))}}}v(s,null,!0)}function aw(s,h){if(h.cm)throw new Error("This document is already in use.");s.doc=h,h.cm=s,Z2(s),d5(s),lw(s),s.options.direction=h.direction,s.options.lineWrapping||H2(s),s.options.mode=h.modeOption,to(s)}function lw(s){(s.doc.direction=="rtl"?j:R)(s.display.lineDiv,"CodeMirror-rtl")}function BU(s){Co(s,function(){lw(s),to(s)})}function h0(s){this.done=[],this.undone=[],this.undoDepth=s?s.undoDepth:1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=s?s.maxGeneration:1}function h5(s,h){var y={from:$n(h.from),to:Os(h),text:Xt(s,h.from,h.to)};return uw(s,y,h.from.line,h.to.line+1),Is(s,function(v){return uw(v,y,h.from.line,h.to.line+1)},!0),y}function sw(s){for(;s.length;){var h=oe(s);if(h.ranges)s.pop();else break}}function jU(s,h){if(h)return sw(s.done),oe(s.done);if(s.done.length&&!oe(s.done).ranges)return oe(s.done);if(s.done.length>1&&!s.done[s.done.length-2].ranges)return s.done.pop(),oe(s.done)}function cw(s,h,y,v){var w=s.history;w.undone.length=0;var N=+new Date,F,K;if((w.lastOp==v||w.lastOrigin==h.origin&&h.origin&&(h.origin.charAt(0)=="+"&&w.lastModTime>N-(s.cm?s.cm.options.historyEventDelay:500)||h.origin.charAt(0)=="*"))&&(F=jU(w,w.lastOp==v)))K=oe(F.changes),dt(h.from,h.to)==0&&dt(h.from,K.to)==0?K.to=Os(h):F.changes.push(h5(s,h));else{var X=oe(w.done);for((!X||!X.ranges)&&p0(s.sel,w.done),F={changes:[h5(s,h)],generation:w.generation},w.done.push(F);w.done.length>w.undoDepth;)w.done.shift(),w.done[0].ranges||w.done.shift()}w.done.push(y),w.generation=++w.maxGeneration,w.lastModTime=w.lastSelTime=N,w.lastOp=w.lastSelOp=v,w.lastOrigin=w.lastSelOrigin=h.origin,K||Ie(s,"historyAdded")}function HU(s,h,y,v){var w=h.charAt(0);return w=="*"||w=="+"&&y.ranges.length==v.ranges.length&&y.somethingSelected()==v.somethingSelected()&&new Date-s.history.lastSelTime<=(s.cm?s.cm.options.historyEventDelay:500)}function zU(s,h,y,v){var w=s.history,N=v&&v.origin;y==w.lastSelOp||N&&w.lastSelOrigin==N&&(w.lastModTime==w.lastSelTime&&w.lastOrigin==N||HU(s,N,oe(w.done),h))?w.done[w.done.length-1]=h:p0(h,w.done),w.lastSelTime=+new Date,w.lastSelOrigin=N,w.lastSelOp=y,v&&v.clearRedo!==!1&&sw(w.undone)}function p0(s,h){var y=oe(h);y&&y.ranges&&y.equals(s)||h.push(s)}function uw(s,h,y,v){var w=h["spans_"+s.id],N=0;s.iter(Math.max(s.first,y),Math.min(s.first+s.size,v),function(F){F.markedSpans&&((w||(w=h["spans_"+s.id]={}))[N]=F.markedSpans),++N})}function WU(s){if(!s)return null;for(var h,y=0;y<s.length;++y)s[y].marker.explicitlyCleared?h||(h=s.slice(0,y)):h&&h.push(s[y]);return h?h.length?h:null:s}function UU(s,h){var y=h["spans_"+s.id];if(!y)return null;for(var v=[],w=0;w<h.text.length;++w)v.push(WU(y[w]));return v}function dw(s,h){var y=UU(s,h),v=Fc(s,h);if(!y)return v;if(!v)return y;for(var w=0;w<y.length;++w){var N=y[w],F=v[w];if(N&&F)e:for(var K=0;K<F.length;++K){for(var X=F[K],Q=0;Q<N.length;++Q)if(N[Q].marker==X.marker)continue e;N.push(X)}else F&&(y[w]=F)}return y}function cd(s,h,y){for(var v=[],w=0;w<s.length;++w){var N=s[w];if(N.ranges){v.push(y?Bo.prototype.deepCopy.call(N):N);continue}var F=N.changes,K=[];v.push({changes:K});for(var X=0;X<F.length;++X){var Q=F[X],ae=void 0;if(K.push({from:Q.from,to:Q.to,text:Q.text}),h)for(var he in Q)(ae=he.match(/^spans_(\d+)$/))&&Y(h,Number(ae[1]))>-1&&(oe(K)[he]=Q[he],delete Q[he])}}return v}function p5(s,h,y,v){if(v){var w=s.anchor;if(y){var N=dt(h,w)<0;N!=dt(y,w)<0?(w=h,h=y):N!=dt(h,y)<0&&(h=y)}return new Bn(w,h)}else return new Bn(y||h,h)}function m0(s,h,y,v,w){w==null&&(w=s.cm&&(s.cm.display.shift||s.extend)),Oi(s,new Bo([p5(s.sel.primary(),h,y,w)],0),v)}function fw(s,h,y){for(var v=[],w=s.cm&&(s.cm.display.shift||s.extend),N=0;N<s.sel.ranges.length;N++)v[N]=p5(s.sel.ranges[N],h[N],null,w);var F=Ba(s.cm,v,s.sel.primIndex);Oi(s,F,y)}function m5(s,h,y,v){var w=s.sel.ranges.slice(0);w[h]=y,Oi(s,Ba(s.cm,w,s.sel.primIndex),v)}function hw(s,h,y,v){Oi(s,_s(h,y),v)}function KU(s,h,y){var v={ranges:h.ranges,update:function(w){this.ranges=[];for(var N=0;N<w.length;N++)this.ranges[N]=new Bn(Bt(s,w[N].anchor),Bt(s,w[N].head))},origin:y&&y.origin};return Ie(s,"beforeSelectionChange",s,v),s.cm&&Ie(s.cm,"beforeSelectionChange",s.cm,v),v.ranges!=h.ranges?Ba(s.cm,v.ranges,v.ranges.length-1):h}function pw(s,h,y){var v=s.history.done,w=oe(v);w&&w.ranges?(v[v.length-1]=h,g0(s,h,y)):Oi(s,h,y)}function Oi(s,h,y){g0(s,h,y),zU(s,s.sel,s.cm?s.cm.curOp.id:NaN,y)}function g0(s,h,y){(Ye(s,"beforeSelectionChange")||s.cm&&Ye(s.cm,"beforeSelectionChange"))&&(h=KU(s,h,y));var v=y&&y.bias||(dt(h.primary().head,s.sel.primary().head)<0?-1:1);mw(s,vw(s,h,v,!0)),!(y&&y.scroll===!1)&&s.cm&&s.cm.getOption("readOnly")!="nocursor"&&ld(s.cm)}function mw(s,h){h.equals(s.sel)||(s.sel=h,s.cm&&(s.cm.curOp.updateInput=1,s.cm.curOp.selectionChanged=!0,Ae(s.cm)),li(s,"cursorActivity",s))}function gw(s){mw(s,vw(s,s.sel,null,!1))}function vw(s,h,y,v){for(var w,N=0;N<h.ranges.length;N++){var F=h.ranges[N],K=h.ranges.length==s.sel.ranges.length&&s.sel.ranges[N],X=v0(s,F.anchor,K&&K.anchor,y,v),Q=v0(s,F.head,K&&K.head,y,v);(w||X!=F.anchor||Q!=F.head)&&(w||(w=h.ranges.slice(0,N)),w[N]=new Bn(X,Q))}return w?Ba(s.cm,w,h.primIndex):h}function ud(s,h,y,v,w){var N=tt(s,h.line);if(N.markedSpans)for(var F=0;F<N.markedSpans.length;++F){var K=N.markedSpans[F],X=K.marker,Q="selectLeft"in X?!X.selectLeft:X.inclusiveLeft,ae="selectRight"in X?!X.selectRight:X.inclusiveRight;if((K.from==null||(Q?K.from<=h.ch:K.from<h.ch))&&(K.to==null||(ae?K.to>=h.ch:K.to>h.ch))){if(w&&(Ie(X,"beforeCursorEnter"),X.explicitlyCleared))if(N.markedSpans){--F;continue}else break;if(!X.atomic)continue;if(y){var he=X.find(v<0?1:-1),De=void 0;if((v<0?ae:Q)&&(he=yw(s,he,-v,he&&he.line==h.line?N:null)),he&&he.line==h.line&&(De=dt(he,y))&&(v<0?De<0:De>0))return ud(s,he,h,v,w)}var Me=X.find(v<0?-1:1);return(v<0?Q:ae)&&(Me=yw(s,Me,v,Me.line==h.line?N:null)),Me?ud(s,Me,h,v,w):null}}return h}function v0(s,h,y,v,w){var N=v||1,F=ud(s,h,y,N,w)||!w&&ud(s,h,y,N,!0)||ud(s,h,y,-N,w)||!w&&ud(s,h,y,-N,!0);return F||(s.cantEdit=!0,ke(s.first,0))}function yw(s,h,y,v){return y<0&&h.ch==0?h.line>s.first?Bt(s,ke(h.line-1)):null:y>0&&h.ch==(v||tt(s,h.line)).text.length?h.line<s.first+s.size-1?ke(h.line+1,0):null:new ke(h.line,h.ch+y)}function bw(s){s.setSelection(ke(s.firstLine(),0),ke(s.lastLine()),ne)}function Cw(s,h,y){var v={canceled:!1,from:h.from,to:h.to,text:h.text,origin:h.origin,cancel:function(){return v.canceled=!0}};return y&&(v.update=function(w,N,F,K){w&&(v.from=Bt(s,w)),N&&(v.to=Bt(s,N)),F&&(v.text=F),K!==void 0&&(v.origin=K)}),Ie(s,"beforeChange",s,v),s.cm&&Ie(s.cm,"beforeChange",s.cm,v),v.canceled?(s.cm&&(s.cm.curOp.updateInput=2),null):{from:v.from,to:v.to,text:v.text,origin:v.origin}}function dd(s,h,y){if(s.cm){if(!s.cm.curOp)return si(s.cm,dd)(s,h,y);if(s.cm.state.suppressEdits)return}if(!((Ye(s,"beforeChange")||s.cm&&Ye(s.cm,"beforeChange"))&&(h=Cw(s,h,!0),!h))){var v=rn&&!y&&O1(s,h.from,h.to);if(v)for(var w=v.length-1;w>=0;--w)Sw(s,{from:v[w].from,to:v[w].to,text:w?[""]:h.text,origin:h.origin});else Sw(s,h)}}function Sw(s,h){if(!(h.text.length==1&&h.text[0]==""&&dt(h.from,h.to)==0)){var y=u5(s,h);cw(s,h,y,s.cm?s.cm.curOp.id:NaN),j1(s,h,y,Fc(s,h));var v=[];Is(s,function(w,N){!N&&Y(v,w.history)==-1&&(Tw(w.history,h),v.push(w.history)),j1(w,h,null,Fc(w,h))})}}function y0(s,h,y){var v=s.cm&&s.cm.state.suppressEdits;if(!(v&&!y)){for(var w=s.history,N,F=s.sel,K=h=="undo"?w.done:w.undone,X=h=="undo"?w.undone:w.done,Q=0;Q<K.length&&(N=K[Q],!(y?N.ranges&&!N.equals(s.sel):!N.ranges));Q++);if(Q!=K.length){for(w.lastOrigin=w.lastSelOrigin=null;;)if(N=K.pop(),N.ranges){if(p0(N,X),y&&!N.equals(s.sel)){Oi(s,N,{clearRedo:!1});return}F=N}else if(v){K.push(N);return}else break;var ae=[];p0(F,X),X.push({changes:ae,generation:w.generation}),w.generation=N.generation||++w.maxGeneration;for(var he=Ye(s,"beforeChange")||s.cm&&Ye(s.cm,"beforeChange"),De=function(ct){var bt=N.changes[ct];if(bt.origin=h,he&&!Cw(s,bt,!1))return K.length=0,{};ae.push(h5(s,bt));var Ot=ct?u5(s,bt):oe(K);j1(s,bt,Ot,dw(s,bt)),!ct&&s.cm&&s.cm.scrollIntoView({from:bt.from,to:Os(bt)});var Rt=[];Is(s,function(It,Lt){!Lt&&Y(Rt,It.history)==-1&&(Tw(It.history,bt),Rt.push(It.history)),j1(It,bt,null,dw(It,bt))})},Me=N.changes.length-1;Me>=0;--Me){var et=De(Me);if(et)return et.v}}}}function Ew(s,h){if(h!=0&&(s.first+=h,s.sel=new Bo(pe(s.sel.ranges,function(w){return new Bn(ke(w.anchor.line+h,w.anchor.ch),ke(w.head.line+h,w.head.ch))}),s.sel.primIndex),s.cm)){to(s.cm,s.first,s.first-h,h);for(var y=s.cm.display,v=y.viewFrom;v<y.viewTo;v++)ws(s.cm,v,"gutter")}}function j1(s,h,y,v){if(s.cm&&!s.cm.curOp)return si(s.cm,j1)(s,h,y,v);if(h.to.line<s.first){Ew(s,h.text.length-1-(h.to.line-h.from.line));return}if(!(h.from.line>s.lastLine())){if(h.from.line<s.first){var w=h.text.length-1-(s.first-h.from.line);Ew(s,w),h={from:ke(s.first,0),to:ke(h.to.line+w,h.to.ch),text:[oe(h.text)],origin:h.origin}}var N=s.lastLine();h.to.line>N&&(h={from:h.from,to:ke(N,tt(s,N).text.length),text:[h.text[0]],origin:h.origin}),h.removed=Xt(s,h.from,h.to),y||(y=u5(s,h)),s.cm?VU(s.cm,h,v):f5(s,h,v),g0(s,y,ne),s.cantEdit&&v0(s,ke(s.firstLine(),0))&&(s.cantEdit=!1)}}function VU(s,h,y){var v=s.doc,w=s.display,N=h.from,F=h.to,K=!1,X=N.line;s.options.lineWrapping||(X=Wt(Da(tt(v,N.line))),v.iter(X,F.line+1,function(Me){if(Me==w.maxLine)return K=!0,!0})),v.sel.contains(h.from,h.to)>-1&&Ae(s),f5(v,h,y,H6(s)),s.options.lineWrapping||(v.iter(X,N.line+h.text.length,function(Me){var et=t0(Me);et>w.maxLineLength&&(w.maxLine=Me,w.maxLineLength=et,w.maxLineChanged=!0,K=!1)}),K&&(s.curOp.updateMaxLine=!0)),Hi(v,N.line),D1(s,400);var Q=h.text.length-(F.line-N.line)-1;h.full?to(s):N.line==F.line&&h.text.length==1&&!ow(s.doc,h)?ws(s,N.line,"text"):to(s,N.line,F.line+1,Q);var ae=Ye(s,"changes"),he=Ye(s,"change");if(he||ae){var De={from:N,to:F,text:h.text,removed:h.removed,origin:h.origin};he&&li(s,"change",s,De),ae&&(s.curOp.changeObjs||(s.curOp.changeObjs=[])).push(De)}s.display.selForContextMenu=null}function fd(s,h,y,v,w){var N;v||(v=y),dt(v,y)<0&&(N=[v,y],y=N[0],v=N[1]),typeof h=="string"&&(h=s.splitLines(h)),dd(s,{from:y,to:v,text:h,origin:w})}function xw(s,h,y,v){y<s.line?s.line+=v:h<s.line&&(s.line=h,s.ch=0)}function ww(s,h,y,v){for(var w=0;w<s.length;++w){var N=s[w],F=!0;if(N.ranges){N.copied||(N=s[w]=N.deepCopy(),N.copied=!0);for(var K=0;K<N.ranges.length;K++)xw(N.ranges[K].anchor,h,y,v),xw(N.ranges[K].head,h,y,v);continue}for(var X=0;X<N.changes.length;++X){var Q=N.changes[X];if(y<Q.from.line)Q.from=ke(Q.from.line+v,Q.from.ch),Q.to=ke(Q.to.line+v,Q.to.ch);else if(h<=Q.to.line){F=!1;break}}F||(s.splice(0,w+1),w=0)}}function Tw(s,h){var y=h.from.line,v=h.to.line,w=h.text.length-(v-y)-1;ww(s.done,y,v,w),ww(s.undone,y,v,w)}function H1(s,h,y,v){var w=h,N=h;return typeof h=="number"?N=tt(s,Ir(s,h)):w=Wt(h),w==null?null:(v(N,w)&&s.cm&&ws(s.cm,w,y),N)}function z1(s){this.lines=s,this.parent=null;for(var h=0,y=0;y<s.length;++y)s[y].parent=this,h+=s[y].height;this.height=h}z1.prototype={chunkSize:function(){return this.lines.length},removeInner:function(s,h){for(var y=s,v=s+h;y<v;++y){var w=this.lines[y];this.height-=w.height,GW(w),li(w,"delete")}this.lines.splice(s,h)},collapse:function(s){s.push.apply(s,this.lines)},insertInner:function(s,h,y){this.height+=y,this.lines=this.lines.slice(0,s).concat(h).concat(this.lines.slice(s));for(var v=0;v<h.length;++v)h[v].parent=this},iterN:function(s,h,y){for(var v=s+h;s<v;++s)if(y(this.lines[s]))return!0}};function W1(s){this.children=s;for(var h=0,y=0,v=0;v<s.length;++v){var w=s[v];h+=w.chunkSize(),y+=w.height,w.parent=this}this.size=h,this.height=y,this.parent=null}W1.prototype={chunkSize:function(){return this.size},removeInner:function(s,h){this.size-=h;for(var y=0;y<this.children.length;++y){var v=this.children[y],w=v.chunkSize();if(s<w){var N=Math.min(h,w-s),F=v.height;if(v.removeInner(s,N),this.height-=F-v.height,w==N&&(this.children.splice(y--,1),v.parent=null),(h-=N)==0)break;s=0}else s-=w}if(this.size-h<25&&(this.children.length>1||!(this.children[0]instanceof z1))){var K=[];this.collapse(K),this.children=[new z1(K)],this.children[0].parent=this}},collapse:function(s){for(var h=0;h<this.children.length;++h)this.children[h].collapse(s)},insertInner:function(s,h,y){this.size+=h.length,this.height+=y;for(var v=0;v<this.children.length;++v){var w=this.children[v],N=w.chunkSize();if(s<=N){if(w.insertInner(s,h,y),w.lines&&w.lines.length>50){for(var F=w.lines.length%25+25,K=F;K<w.lines.length;){var X=new z1(w.lines.slice(K,K+=25));w.height-=X.height,this.children.splice(++v,0,X),X.parent=this}w.lines=w.lines.slice(0,F),this.maybeSpill()}break}s-=N}},maybeSpill:function(){if(!(this.children.length<=10)){var s=this;do{var h=s.children.splice(s.children.length-5,5),y=new W1(h);if(s.parent){s.size-=y.size,s.height-=y.height;var w=Y(s.parent.children,s);s.parent.children.splice(w+1,0,y)}else{var v=new W1(s.children);v.parent=s,s.children=[v,y],s=v}y.parent=s.parent}while(s.children.length>10);s.parent.maybeSpill()}},iterN:function(s,h,y){for(var v=0;v<this.children.length;++v){var w=this.children[v],N=w.chunkSize();if(s<N){var F=Math.min(h,N-s);if(w.iterN(s,F,y))return!0;if((h-=F)==0)break;s=0}else s-=N}}};var U1=function(s,h,y){if(y)for(var v in y)y.hasOwnProperty(v)&&(this[v]=y[v]);this.doc=s,this.node=h};U1.prototype.clear=function(){var s=this.doc.cm,h=this.line.widgets,y=this.line,v=Wt(y);if(!(v==null||!h)){for(var w=0;w<h.length;++w)h[w]==this&&h.splice(w--,1);h.length||(y.widgets=null);var N=N1(this);En(y,Math.max(0,y.height-N)),s&&(Co(s,function(){_w(s,y,-N),ws(s,v,"widget")}),li(s,"lineWidgetCleared",s,this,v))}},U1.prototype.changed=function(){var s=this,h=this.height,y=this.doc.cm,v=this.line;this.height=null;var w=N1(this)-h;w&&(xs(this.doc,v)||En(v,v.height+w),y&&Co(y,function(){y.curOp.forceUpdate=!0,_w(y,v,w),li(y,"lineWidgetChanged",y,s,Wt(v))}))},mt(U1);function _w(s,h,y){zl(h)<(s.curOp&&s.curOp.scrollTop||s.doc.scrollTop)&&i5(s,y)}function GU(s,h,y,v){var w=new U1(s,y,v),N=s.cm;return N&&w.noHScroll&&(N.display.alignWidgets=!0),H1(s,h,"widget",function(F){var K=F.widgets||(F.widgets=[]);if(w.insertAt==null?K.push(w):K.splice(Math.min(K.length,Math.max(0,w.insertAt)),0,w),w.line=F,N&&!xs(s,F)){var X=zl(F)<s.scrollTop;En(F,F.height+N1(w)),X&&i5(N,w.height),N.curOp.forceUpdate=!0}return!0}),N&&li(N,"lineWidgetAdded",N,w,typeof h=="number"?h:Wt(h)),w}var Ow=0,$s=function(s,h){this.lines=[],this.type=h,this.doc=s,this.id=++Ow};$s.prototype.clear=function(){if(!this.explicitlyCleared){var s=this.doc.cm,h=s&&!s.curOp;if(h&&Gc(s),Ye(this,"clear")){var y=this.find();y&&li(this,"clear",y.from,y.to)}for(var v=null,w=null,N=0;N<this.lines.length;++N){var F=this.lines[N],K=ai(F.markedSpans,this);s&&!this.collapsed?ws(s,Wt(F),"text"):s&&(K.to!=null&&(w=Wt(F)),K.from!=null&&(v=Wt(F))),F.markedSpans=vi(F.markedSpans,K),K.from==null&&this.collapsed&&!xs(this.doc,F)&&s&&En(F,id(s.display))}if(s&&this.collapsed&&!s.options.lineWrapping)for(var X=0;X<this.lines.length;++X){var Q=Da(this.lines[X]),ae=t0(Q);ae>s.display.maxLineLength&&(s.display.maxLine=Q,s.display.maxLineLength=ae,s.display.maxLineChanged=!0)}v!=null&&s&&this.collapsed&&to(s,v,w+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,s&&gw(s.doc)),s&&li(s,"markerCleared",s,this,v,w),h&&qc(s),this.parent&&this.parent.clear()}},$s.prototype.find=function(s,h){s==null&&this.type=="bookmark"&&(s=1);for(var y,v,w=0;w<this.lines.length;++w){var N=this.lines[w],F=ai(N.markedSpans,this);if(F.from!=null&&(y=ke(h?N:Wt(N),F.from),s==-1))return y;if(F.to!=null&&(v=ke(h?N:Wt(N),F.to),s==1))return v}return y&&{from:y,to:v}},$s.prototype.changed=function(){var s=this,h=this.find(-1,!0),y=this,v=this.doc.cm;!h||!v||Co(v,function(){var w=h.line,N=Wt(h.line),F=K2(v,N);if(F&&(R6(F),v.curOp.selectionChanged=v.curOp.forceUpdate=!0),v.curOp.updateMaxLine=!0,!xs(y.doc,w)&&y.height!=null){var K=y.height;y.height=null;var X=N1(y)-K;X&&En(w,w.height+X)}li(v,"markerChanged",v,s)})},$s.prototype.attachLine=function(s){if(!this.lines.length&&this.doc.cm){var h=this.doc.cm.curOp;(!h.maybeHiddenMarkers||Y(h.maybeHiddenMarkers,this)==-1)&&(h.maybeUnhiddenMarkers||(h.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(s)},$s.prototype.detachLine=function(s){if(this.lines.splice(Y(this.lines,s),1),!this.lines.length&&this.doc.cm){var h=this.doc.cm.curOp;(h.maybeHiddenMarkers||(h.maybeHiddenMarkers=[])).push(this)}},mt($s);function hd(s,h,y,v,w){if(v&&v.shared)return qU(s,h,y,v,w);if(s.cm&&!s.cm.curOp)return si(s.cm,hd)(s,h,y,v,w);var N=new $s(s,w),F=dt(h,y);if(v&&P(v,N,!1),F>0||F==0&&N.clearWhenEmpty!==!1)return N;if(N.replacedWith&&(N.collapsed=!0,N.widgetNode=L("span",[N.replacedWith],"CodeMirror-widget"),v.handleMouseEvents||N.widgetNode.setAttribute("cm-ignore-events","true"),v.insertLeft&&(N.widgetNode.insertLeft=!0)),N.collapsed){if(v6(s,h.line,h,y,N)||h.line!=y.line&&v6(s,y.line,h,y,N))throw new Error("Inserting collapsed marker partially overlapping an existing one");nr()}N.addToHistory&&cw(s,{from:h,to:y,origin:"markText"},s.sel,NaN);var K=h.line,X=s.cm,Q;if(s.iter(K,y.line+1,function(he){X&&N.collapsed&&!X.options.lineWrapping&&Da(he)==X.display.maxLine&&(Q=!0),N.collapsed&&K!=h.line&&En(he,0),yi(he,new rr(N,K==h.line?h.ch:null,K==y.line?y.ch:null),s.cm&&s.cm.curOp),++K}),N.collapsed&&s.iter(h.line,y.line+1,function(he){xs(s,he)&&En(he,0)}),N.clearOnEnter&&Be(N,"beforeCursorEnter",function(){return N.clear()}),N.readOnly&&(Nr(),(s.history.done.length||s.history.undone.length)&&s.clearHistory()),N.collapsed&&(N.id=++Ow,N.atomic=!0),X){if(Q&&(X.curOp.updateMaxLine=!0),N.collapsed)to(X,h.line,y.line+1);else if(N.className||N.startStyle||N.endStyle||N.css||N.attributes||N.title)for(var ae=h.line;ae<=y.line;ae++)ws(X,ae,"text");N.atomic&&gw(X.doc),li(X,"markerAdded",X,N)}return N}var K1=function(s,h){this.markers=s,this.primary=h;for(var y=0;y<s.length;++y)s[y].parent=this};K1.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var s=0;s<this.markers.length;++s)this.markers[s].clear();li(this,"clear")}},K1.prototype.find=function(s,h){return this.primary.find(s,h)},mt(K1);function qU(s,h,y,v,w){v=P(v),v.shared=!1;var N=[hd(s,h,y,v,w)],F=N[0],K=v.widgetNode;return Is(s,function(X){K&&(v.widgetNode=K.cloneNode(!0)),N.push(hd(X,Bt(X,h),Bt(X,y),v,w));for(var Q=0;Q<X.linked.length;++Q)if(X.linked[Q].isParent)return;F=oe(N)}),new K1(N,F)}function Iw(s){return s.findMarks(ke(s.first,0),s.clipPos(ke(s.lastLine())),function(h){return h.parent})}function XU(s,h){for(var y=0;y<h.length;y++){var v=h[y],w=v.find(),N=s.clipPos(w.from),F=s.clipPos(w.to);if(dt(N,F)){var K=hd(s,N,F,v.primary,v.primary.type);v.markers.push(K),K.parent=v}}}function YU(s){for(var h=function(v){var w=s[v],N=[w.primary.doc];Is(w.primary.doc,function(X){return N.push(X)});for(var F=0;F<w.markers.length;F++){var K=w.markers[F];Y(N,K.doc)==-1&&(K.parent=null,w.markers.splice(F--,1))}},y=0;y<s.length;y++)h(y)}var QU=0,no=function(s,h,y,v,w){if(!(this instanceof no))return new no(s,h,y,v,w);y==null&&(y=0),W1.call(this,[new z1([new td("",null)])]),this.first=y,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=y;var N=ke(y,0);this.sel=_s(N),this.history=new h0(null),this.id=++QU,this.modeOption=h,this.lineSep=v,this.direction=w=="rtl"?"rtl":"ltr",this.extend=!1,typeof s=="string"&&(s=this.splitLines(s)),f5(this,{from:N,to:N,text:s}),Oi(this,_s(N),ne)};no.prototype=Ge(W1.prototype,{constructor:no,iter:function(s,h,y){y?this.iterN(s-this.first,h-s,y):this.iterN(this.first,this.first+this.size,s)},insert:function(s,h){for(var y=0,v=0;v<h.length;++v)y+=h[v].height;this.insertInner(s-this.first,h,y)},remove:function(s,h){this.removeInner(s-this.first,h)},getValue:function(s){var h=Jt(this,this.first,this.first+this.size);return s===!1?h:h.join(s||this.lineSeparator())},setValue:ci(function(s){var h=ke(this.first,0),y=this.first+this.size-1;dd(this,{from:h,to:ke(y,tt(this,y).text.length),text:this.splitLines(s),origin:"setValue",full:!0},!0),this.cm&&R1(this.cm,0,0),Oi(this,_s(h),ne)}),replaceRange:function(s,h,y,v){h=Bt(this,h),y=y?Bt(this,y):h,fd(this,s,h,y,v)},getRange:function(s,h,y){var v=Xt(this,Bt(this,s),Bt(this,h));return y===!1?v:y===""?v.join(""):v.join(y||this.lineSeparator())},getLine:function(s){var h=this.getLineHandle(s);return h&&h.text},getLineHandle:function(s){if(qn(this,s))return tt(this,s)},getLineNumber:function(s){return Wt(s)},getLineHandleVisualStart:function(s){return typeof s=="number"&&(s=tt(this,s)),Da(s)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(s){return Bt(this,s)},getCursor:function(s){var h=this.sel.primary(),y;return s==null||s=="head"?y=h.head:s=="anchor"?y=h.anchor:s=="end"||s=="to"||s===!1?y=h.to():y=h.from(),y},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:ci(function(s,h,y){hw(this,Bt(this,typeof s=="number"?ke(s,h||0):s),null,y)}),setSelection:ci(function(s,h,y){hw(this,Bt(this,s),Bt(this,h||s),y)}),extendSelection:ci(function(s,h,y){m0(this,Bt(this,s),h&&Bt(this,h),y)}),extendSelections:ci(function(s,h){fw(this,ji(this,s),h)}),extendSelectionsBy:ci(function(s,h){var y=pe(this.sel.ranges,s);fw(this,ji(this,y),h)}),setSelections:ci(function(s,h,y){if(s.length){for(var v=[],w=0;w<s.length;w++)v[w]=new Bn(Bt(this,s[w].anchor),Bt(this,s[w].head||s[w].anchor));h==null&&(h=Math.min(s.length-1,this.sel.primIndex)),Oi(this,Ba(this.cm,v,h),y)}}),addSelection:ci(function(s,h,y){var v=this.sel.ranges.slice(0);v.push(new Bn(Bt(this,s),Bt(this,h||s))),Oi(this,Ba(this.cm,v,v.length-1),y)}),getSelection:function(s){for(var h=this.sel.ranges,y,v=0;v<h.length;v++){var w=Xt(this,h[v].from(),h[v].to());y=y?y.concat(w):w}return s===!1?y:y.join(s||this.lineSeparator())},getSelections:function(s){for(var h=[],y=this.sel.ranges,v=0;v<y.length;v++){var w=Xt(this,y[v].from(),y[v].to());s!==!1&&(w=w.join(s||this.lineSeparator())),h[v]=w}return h},replaceSelection:function(s,h,y){for(var v=[],w=0;w<this.sel.ranges.length;w++)v[w]=s;this.replaceSelections(v,h,y||"+input")},replaceSelections:ci(function(s,h,y){for(var v=[],w=this.sel,N=0;N<w.ranges.length;N++){var F=w.ranges[N];v[N]={from:F.from(),to:F.to(),text:this.splitLines(s[N]),origin:y}}for(var K=h&&h!="end"&&FU(this,v,h),X=v.length-1;X>=0;X--)dd(this,v[X]);K?pw(this,K):this.cm&&ld(this.cm)}),undo:ci(function(){y0(this,"undo")}),redo:ci(function(){y0(this,"redo")}),undoSelection:ci(function(){y0(this,"undo",!0)}),redoSelection:ci(function(){y0(this,"redo",!0)}),setExtending:function(s){this.extend=s},getExtending:function(){return this.extend},historySize:function(){for(var s=this.history,h=0,y=0,v=0;v<s.done.length;v++)s.done[v].ranges||++h;for(var w=0;w<s.undone.length;w++)s.undone[w].ranges||++y;return{undo:h,redo:y}},clearHistory:function(){var s=this;this.history=new h0(this.history),Is(this,function(h){return h.history=s.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(s){return s&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(s){return this.history.generation==(s||this.cleanGeneration)},getHistory:function(){return{done:cd(this.history.done),undone:cd(this.history.undone)}},setHistory:function(s){var h=this.history=new h0(this.history);h.done=cd(s.done.slice(0),null,!0),h.undone=cd(s.undone.slice(0),null,!0)},setGutterMarker:ci(function(s,h,y){return H1(this,s,"gutter",function(v){var w=v.gutterMarkers||(v.gutterMarkers={});return w[h]=y,!y&&$e(w)&&(v.gutterMarkers=null),!0})}),clearGutter:ci(function(s){var h=this;this.iter(function(y){y.gutterMarkers&&y.gutterMarkers[s]&&H1(h,y,"gutter",function(){return y.gutterMarkers[s]=null,$e(y.gutterMarkers)&&(y.gutterMarkers=null),!0})})}),lineInfo:function(s){var h;if(typeof s=="number"){if(!qn(this,s)||(h=s,s=tt(this,s),!s))return null}else if(h=Wt(s),h==null)return null;return{line:h,handle:s,text:s.text,gutterMarkers:s.gutterMarkers,textClass:s.textClass,bgClass:s.bgClass,wrapClass:s.wrapClass,widgets:s.widgets}},addLineClass:ci(function(s,h,y){return H1(this,s,h=="gutter"?"gutter":"class",function(v){var w=h=="text"?"textClass":h=="background"?"bgClass":h=="gutter"?"gutterClass":"wrapClass";if(!v[w])v[w]=y;else{if(k(y).test(v[w]))return!1;v[w]+=" "+y}return!0})}),removeLineClass:ci(function(s,h,y){return H1(this,s,h=="gutter"?"gutter":"class",function(v){var w=h=="text"?"textClass":h=="background"?"bgClass":h=="gutter"?"gutterClass":"wrapClass",N=v[w];if(N)if(y==null)v[w]=null;else{var F=N.match(k(y));if(!F)return!1;var K=F.index+F[0].length;v[w]=N.slice(0,F.index)+(!F.index||K==N.length?"":" ")+N.slice(K)||null}else return!1;return!0})}),addLineWidget:ci(function(s,h,y){return GU(this,s,h,y)}),removeLineWidget:function(s){s.clear()},markText:function(s,h,y){return hd(this,Bt(this,s),Bt(this,h),y,y&&y.type||"range")},setBookmark:function(s,h){var y={replacedWith:h&&(h.nodeType==null?h.widget:h),insertLeft:h&&h.insertLeft,clearWhenEmpty:!1,shared:h&&h.shared,handleMouseEvents:h&&h.handleMouseEvents};return s=Bt(this,s),hd(this,s,s,y,"bookmark")},findMarksAt:function(s){s=Bt(this,s);var h=[],y=tt(this,s.line).markedSpans;if(y)for(var v=0;v<y.length;++v){var w=y[v];(w.from==null||w.from<=s.ch)&&(w.to==null||w.to>=s.ch)&&h.push(w.marker.parent||w.marker)}return h},findMarks:function(s,h,y){s=Bt(this,s),h=Bt(this,h);var v=[],w=s.line;return this.iter(s.line,h.line+1,function(N){var F=N.markedSpans;if(F)for(var K=0;K<F.length;K++){var X=F[K];!(X.to!=null&&w==s.line&&s.ch>=X.to||X.from==null&&w!=s.line||X.from!=null&&w==h.line&&X.from>=h.ch)&&(!y||y(X.marker))&&v.push(X.marker.parent||X.marker)}++w}),v},getAllMarks:function(){var s=[];return this.iter(function(h){var y=h.markedSpans;if(y)for(var v=0;v<y.length;++v)y[v].from!=null&&s.push(y[v].marker)}),s},posFromIndex:function(s){var h,y=this.first,v=this.lineSeparator().length;return this.iter(function(w){var N=w.text.length+v;if(N>s)return h=s,!0;s-=N,++y}),Bt(this,ke(y,h))},indexFromPos:function(s){s=Bt(this,s);var h=s.ch;if(s.line<this.first||s.ch<0)return 0;var y=this.lineSeparator().length;return this.iter(this.first,s.line,function(v){h+=v.text.length+y}),h},copy:function(s){var h=new no(Jt(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return h.scrollTop=this.scrollTop,h.scrollLeft=this.scrollLeft,h.sel=this.sel,h.extend=!1,s&&(h.history.undoDepth=this.history.undoDepth,h.setHistory(this.getHistory())),h},linkedDoc:function(s){s||(s={});var h=this.first,y=this.first+this.size;s.from!=null&&s.from>h&&(h=s.from),s.to!=null&&s.to<y&&(y=s.to);var v=new no(Jt(this,h,y),s.mode||this.modeOption,h,this.lineSep,this.direction);return s.sharedHist&&(v.history=this.history),(this.linked||(this.linked=[])).push({doc:v,sharedHist:s.sharedHist}),v.linked=[{doc:this,isParent:!0,sharedHist:s.sharedHist}],XU(v,Iw(this)),v},unlinkDoc:function(s){if(s instanceof ur&&(s=s.doc),this.linked)for(var h=0;h<this.linked.length;++h){var y=this.linked[h];if(y.doc==s){this.linked.splice(h,1),s.unlinkDoc(this),YU(Iw(this));break}}if(s.history==this.history){var v=[s.id];Is(s,function(w){return v.push(w.id)},!0),s.history=new h0(null),s.history.done=cd(this.history.done,v),s.history.undone=cd(this.history.undone,v)}},iterLinkedDocs:function(s){Is(this,s)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(s){return this.lineSep?s.split(this.lineSep):xe(s)},lineSeparator:function(){return this.lineSep||`
`},setDirection:ci(function(s){s!="rtl"&&(s="ltr"),s!=this.direction&&(this.direction=s,this.iter(function(h){return h.order=null}),this.cm&&BU(this.cm))})}),no.prototype.eachLine=no.prototype.iter;var $w=0;function ZU(s){var h=this;if(Nw(h),!(Re(h,s)||Wl(h.display,s))){Nt(s),a&&($w=+new Date);var y=Wc(h,s,!0),v=s.dataTransfer.files;if(!(!y||h.isReadOnly()))if(v&&v.length&&window.FileReader&&window.File)for(var w=v.length,N=Array(w),F=0,K=function(){++F==w&&si(h,function(){y=Bt(h.doc,y);var Me={from:y,to:y,text:h.doc.splitLines(N.filter(function(et){return et!=null}).join(h.doc.lineSeparator())),origin:"paste"};dd(h.doc,Me),pw(h.doc,_s(Bt(h.doc,y),Bt(h.doc,Os(Me))))})()},X=function(Me,et){if(h.options.allowDropFileTypes&&Y(h.options.allowDropFileTypes,Me.type)==-1){K();return}var ct=new FileReader;ct.onerror=function(){return K()},ct.onload=function(){var bt=ct.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(bt)){K();return}N[et]=bt,K()},ct.readAsText(Me)},Q=0;Q<v.length;Q++)X(v[Q],Q);else{if(h.state.draggingText&&h.doc.sel.contains(y)>-1){h.state.draggingText(s),setTimeout(function(){return h.display.input.focus()},20);return}try{var ae=s.dataTransfer.getData("Text");if(ae){var he;if(h.state.draggingText&&!h.state.draggingText.copy&&(he=h.listSelections()),g0(h.doc,_s(y,y)),he)for(var De=0;De<he.length;++De)fd(h.doc,"",he[De].anchor,he[De].head,"drag");h.replaceSelection(ae,"around","paste"),h.display.input.focus()}}catch{}}}}function JU(s,h){if(a&&(!s.state.draggingText||+new Date-$w<100)){Kt(h);return}if(!(Re(s,h)||Wl(s.display,h))&&(h.dataTransfer.setData("Text",s.getSelection()),h.dataTransfer.effectAllowed="copyMove",h.dataTransfer.setDragImage&&!m)){var y=B("img",null,null,"position: fixed; left: 0; top: 0;");y.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",p&&(y.width=y.height=1,s.display.wrapper.appendChild(y),y._top=y.offsetTop),h.dataTransfer.setDragImage(y,0,0),p&&y.parentNode.removeChild(y)}}function eK(s,h){var y=Wc(s,h);if(y){var v=document.createDocumentFragment();J2(s,y,v),s.display.dragCursor||(s.display.dragCursor=B("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),s.display.lineSpace.insertBefore(s.display.dragCursor,s.display.cursorDiv)),H(s.display.dragCursor,v)}}function Nw(s){s.display.dragCursor&&(s.display.lineSpace.removeChild(s.display.dragCursor),s.display.dragCursor=null)}function Aw(s){if(document.getElementsByClassName){for(var h=document.getElementsByClassName("CodeMirror"),y=[],v=0;v<h.length;v++){var w=h[v].CodeMirror;w&&y.push(w)}y.length&&y[0].operation(function(){for(var N=0;N<y.length;N++)s(y[N])})}}var kw=!1;function tK(){kw||(nK(),kw=!0)}function nK(){var s;Be(window,"resize",function(){s==null&&(s=setTimeout(function(){s=null,Aw(rK)},100))}),Be(window,"blur",function(){return Aw(ad)})}function rK(s){var h=s.display;h.cachedCharWidth=h.cachedTextHeight=h.cachedPaddingH=null,h.scrollbarsClipped=!1,s.setSize()}for(var Ns={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",224:"Mod",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},V1=0;V1<10;V1++)Ns[V1+48]=Ns[V1+96]=String(V1);for(var b0=65;b0<=90;b0++)Ns[b0]=String.fromCharCode(b0);for(var G1=1;G1<=12;G1++)Ns[G1+111]=Ns[G1+63235]="F"+G1;var Kl={};Kl.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},Kl.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},Kl.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},Kl.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},Kl.default=S?Kl.macDefault:Kl.pcDefault;function iK(s){var h=s.split(/-(?!$)/);s=h[h.length-1];for(var y,v,w,N,F=0;F<h.length-1;F++){var K=h[F];if(/^(cmd|meta|m)$/i.test(K))N=!0;else if(/^a(lt)?$/i.test(K))y=!0;else if(/^(c|ctrl|control)$/i.test(K))v=!0;else if(/^s(hift)?$/i.test(K))w=!0;else throw new Error("Unrecognized modifier name: "+K)}return y&&(s="Alt-"+s),v&&(s="Ctrl-"+s),N&&(s="Cmd-"+s),w&&(s="Shift-"+s),s}function oK(s){var h={};for(var y in s)if(s.hasOwnProperty(y)){var v=s[y];if(/^(name|fallthrough|(de|at)tach)$/.test(y))continue;if(v=="..."){delete s[y];continue}for(var w=pe(y.split(" "),iK),N=0;N<w.length;N++){var F=void 0,K=void 0;N==w.length-1?(K=w.join(" "),F=v):(K=w.slice(0,N+1).join(" "),F="...");var X=h[K];if(!X)h[K]=F;else if(X!=F)throw new Error("Inconsistent bindings for "+K)}delete s[y]}for(var Q in h)s[Q]=h[Q];return s}function pd(s,h,y,v){h=C0(h);var w=h.call?h.call(s,v):h[s];if(w===!1)return"nothing";if(w==="...")return"multi";if(w!=null&&y(w))return"handled";if(h.fallthrough){if(Object.prototype.toString.call(h.fallthrough)!="[object Array]")return pd(s,h.fallthrough,y,v);for(var N=0;N<h.fallthrough.length;N++){var F=pd(s,h.fallthrough[N],y,v);if(F)return F}}}function Rw(s){var h=typeof s=="string"?s:Ns[s.keyCode];return h=="Ctrl"||h=="Alt"||h=="Shift"||h=="Mod"}function Mw(s,h,y){var v=s;return h.altKey&&v!="Alt"&&(s="Alt-"+s),(_?h.metaKey:h.ctrlKey)&&v!="Ctrl"&&(s="Ctrl-"+s),(_?h.ctrlKey:h.metaKey)&&v!="Mod"&&(s="Cmd-"+s),!y&&h.shiftKey&&v!="Shift"&&(s="Shift-"+s),s}function Pw(s,h){if(p&&s.keyCode==34&&s.char)return!1;var y=Ns[s.keyCode];return y==null||s.altGraphKey?!1:(s.keyCode==3&&s.code&&(y=s.code),Mw(y,s,h))}function C0(s){return typeof s=="string"?Kl[s]:s}function md(s,h){for(var y=s.doc.sel.ranges,v=[],w=0;w<y.length;w++){for(var N=h(y[w]);v.length&&dt(N.from,oe(v).to)<=0;){var F=v.pop();if(dt(F.from,N.from)<0){N.from=F.from;break}}v.push(N)}Co(s,function(){for(var K=v.length-1;K>=0;K--)fd(s.doc,"",v[K].from,v[K].to,"+delete");ld(s)})}function g5(s,h,y){var v=Fe(s.text,h+y,y);return v<0||v>s.text.length?null:v}function v5(s,h,y){var v=g5(s,h.ch,y);return v==null?null:new ke(h.line,v,y<0?"after":"before")}function y5(s,h,y,v,w){if(s){h.doc.direction=="rtl"&&(w=-w);var N=Ze(y,h.doc.direction);if(N){var F=w<0?oe(N):N[0],K=w<0==(F.level==1),X=K?"after":"before",Q;if(F.level>0||h.doc.direction=="rtl"){var ae=rd(h,y);Q=w<0?y.text.length-1:0;var he=ml(h,ae,Q).top;Q=Ke(function(De){return ml(h,ae,De).top==he},w<0==(F.level==1)?F.from:F.to-1,Q),X=="before"&&(Q=g5(y,Q,1))}else Q=w<0?F.to:F.from;return new ke(v,Q,X)}}return new ke(v,w<0?y.text.length:0,w<0?"before":"after")}function aK(s,h,y,v){var w=Ze(h,s.doc.direction);if(!w)return v5(h,y,v);y.ch>=h.text.length?(y.ch=h.text.length,y.sticky="before"):y.ch<=0&&(y.ch=0,y.sticky="after");var N=Pe(w,y.ch,y.sticky),F=w[N];if(s.doc.direction=="ltr"&&F.level%2==0&&(v>0?F.to>y.ch:F.from<y.ch))return v5(h,y,v);var K=function(Ot,Rt){return g5(h,Ot instanceof ke?Ot.ch:Ot,Rt)},X,Q=function(Ot){return s.options.lineWrapping?(X=X||rd(s,h),j6(s,h,X,Ot)):{begin:0,end:h.text.length}},ae=Q(y.sticky=="before"?K(y,-1):y.ch);if(s.doc.direction=="rtl"||F.level==1){var he=F.level==1==v<0,De=K(y,he?1:-1);if(De!=null&&(he?De<=F.to&&De<=ae.end:De>=F.from&&De>=ae.begin)){var Me=he?"before":"after";return new ke(y.line,De,Me)}}var et=function(Ot,Rt,It){for(var Lt=function(Xn,ui){return ui?new ke(y.line,K(Xn,1),"before"):new ke(y.line,Xn,"after")};Ot>=0&&Ot<w.length;Ot+=Rt){var en=w[Ot],Vt=Rt>0==(en.level!=1),mn=Vt?It.begin:K(It.end,-1);if(en.from<=mn&&mn<en.to||(mn=Vt?en.from:K(en.to,-1),It.begin<=mn&&mn<It.end))return Lt(mn,Vt)}},ct=et(N+v,v,ae);if(ct)return ct;var bt=v>0?ae.end:K(ae.begin,-1);return bt!=null&&!(v>0&&bt==h.text.length)&&(ct=et(v>0?0:w.length-1,v,Q(bt)),ct)?ct:null}var q1={selectAll:bw,singleSelection:function(s){return s.setSelection(s.getCursor("anchor"),s.getCursor("head"),ne)},killLine:function(s){return md(s,function(h){if(h.empty()){var y=tt(s.doc,h.head.line).text.length;return h.head.ch==y&&h.head.line<s.lastLine()?{from:h.head,to:ke(h.head.line+1,0)}:{from:h.head,to:ke(h.head.line,y)}}else return{from:h.from(),to:h.to()}})},deleteLine:function(s){return md(s,function(h){return{from:ke(h.from().line,0),to:Bt(s.doc,ke(h.to().line+1,0))}})},delLineLeft:function(s){return md(s,function(h){return{from:ke(h.from().line,0),to:h.from()}})},delWrappedLineLeft:function(s){return md(s,function(h){var y=s.charCoords(h.head,"div").top+5,v=s.coordsChar({left:0,top:y},"div");return{from:v,to:h.from()}})},delWrappedLineRight:function(s){return md(s,function(h){var y=s.charCoords(h.head,"div").top+5,v=s.coordsChar({left:s.display.lineDiv.offsetWidth+100,top:y},"div");return{from:h.from(),to:v}})},undo:function(s){return s.undo()},redo:function(s){return s.redo()},undoSelection:function(s){return s.undoSelection()},redoSelection:function(s){return s.redoSelection()},goDocStart:function(s){return s.extendSelection(ke(s.firstLine(),0))},goDocEnd:function(s){return s.extendSelection(ke(s.lastLine()))},goLineStart:function(s){return s.extendSelectionsBy(function(h){return Lw(s,h.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(s){return s.extendSelectionsBy(function(h){return Dw(s,h.head)},{origin:"+move",bias:1})},goLineEnd:function(s){return s.extendSelectionsBy(function(h){return lK(s,h.head.line)},{origin:"+move",bias:-1})},goLineRight:function(s){return s.extendSelectionsBy(function(h){var y=s.cursorCoords(h.head,"div").top+5;return s.coordsChar({left:s.display.lineDiv.offsetWidth+100,top:y},"div")},me)},goLineLeft:function(s){return s.extendSelectionsBy(function(h){var y=s.cursorCoords(h.head,"div").top+5;return s.coordsChar({left:0,top:y},"div")},me)},goLineLeftSmart:function(s){return s.extendSelectionsBy(function(h){var y=s.cursorCoords(h.head,"div").top+5,v=s.coordsChar({left:0,top:y},"div");return v.ch<s.getLine(v.line).search(/\S/)?Dw(s,h.head):v},me)},goLineUp:function(s){return s.moveV(-1,"line")},goLineDown:function(s){return s.moveV(1,"line")},goPageUp:function(s){return s.moveV(-1,"page")},goPageDown:function(s){return s.moveV(1,"page")},goCharLeft:function(s){return s.moveH(-1,"char")},goCharRight:function(s){return s.moveH(1,"char")},goColumnLeft:function(s){return s.moveH(-1,"column")},goColumnRight:function(s){return s.moveH(1,"column")},goWordLeft:function(s){return s.moveH(-1,"word")},goGroupRight:function(s){return s.moveH(1,"group")},goGroupLeft:function(s){return s.moveH(-1,"group")},goWordRight:function(s){return s.moveH(1,"word")},delCharBefore:function(s){return s.deleteH(-1,"codepoint")},delCharAfter:function(s){return s.deleteH(1,"char")},delWordBefore:function(s){return s.deleteH(-1,"word")},delWordAfter:function(s){return s.deleteH(1,"word")},delGroupBefore:function(s){return s.deleteH(-1,"group")},delGroupAfter:function(s){return s.deleteH(1,"group")},indentAuto:function(s){return s.indentSelection("smart")},indentMore:function(s){return s.indentSelection("add")},indentLess:function(s){return s.indentSelection("subtract")},insertTab:function(s){return s.replaceSelection(" ")},insertSoftTab:function(s){for(var h=[],y=s.listSelections(),v=s.options.tabSize,w=0;w<y.length;w++){var N=y[w].from(),F=Z(s.getLine(N.line),N.ch,v);h.push(ce(v-F%v))}s.replaceSelections(h)},defaultTab:function(s){s.somethingSelected()?s.indentSelection("add"):s.execCommand("insertTab")},transposeChars:function(s){return Co(s,function(){for(var h=s.listSelections(),y=[],v=0;v<h.length;v++)if(h[v].empty()){var w=h[v].head,N=tt(s.doc,w.line).text;if(N){if(w.ch==N.length&&(w=new ke(w.line,w.ch-1)),w.ch>0)w=new ke(w.line,w.ch+1),s.replaceRange(N.charAt(w.ch-1)+N.charAt(w.ch-2),ke(w.line,w.ch-2),w,"+transpose");else if(w.line>s.doc.first){var F=tt(s.doc,w.line-1).text;F&&(w=new ke(w.line,1),s.replaceRange(N.charAt(0)+s.doc.lineSeparator()+F.charAt(F.length-1),ke(w.line-1,F.length-1),w,"+transpose"))}}y.push(new Bn(w,w))}s.setSelections(y)})},newlineAndIndent:function(s){return Co(s,function(){for(var h=s.listSelections(),y=h.length-1;y>=0;y--)s.replaceRange(s.doc.lineSeparator(),h[y].anchor,h[y].head,"+input");h=s.listSelections();for(var v=0;v<h.length;v++)s.indentLine(h[v].from().line,null,!0);ld(s)})},openLine:function(s){return s.replaceSelection(`
`,"start")},toggleOverwrite:function(s){return s.toggleOverwrite()}};function Lw(s,h){var y=tt(s.doc,h),v=Da(y);return v!=y&&(h=Wt(v)),y5(!0,s,v,h,1)}function lK(s,h){var y=tt(s.doc,h),v=UW(y);return v!=y&&(h=Wt(v)),y5(!0,s,y,h,-1)}function Dw(s,h){var y=Lw(s,h.line),v=tt(s.doc,y.line),w=Ze(v,s.doc.direction);if(!w||w[0].level==0){var N=Math.max(y.ch,v.text.search(/\S/)),F=h.line==y.line&&h.ch<=N&&h.ch;return ke(y.line,F?0:N,y.sticky)}return y}function S0(s,h,y){if(typeof h=="string"&&(h=q1[h],!h))return!1;s.display.input.ensurePolled();var v=s.display.shift,w=!1;try{s.isReadOnly()&&(s.state.suppressEdits=!0),y&&(s.display.shift=!1),w=h(s)!=ue}finally{s.display.shift=v,s.state.suppressEdits=!1}return w}function sK(s,h,y){for(var v=0;v<s.state.keyMaps.length;v++){var w=pd(h,s.state.keyMaps[v],y,s);if(w)return w}return s.options.extraKeys&&pd(h,s.options.extraKeys,y,s)||pd(h,s.options.keyMap,y,s)}var cK=new V;function X1(s,h,y,v){var w=s.state.keySeq;if(w){if(Rw(h))return"handled";if(/\'$/.test(h)?s.state.keySeq=null:cK.set(50,function(){s.state.keySeq==w&&(s.state.keySeq=null,s.display.input.reset())}),Fw(s,w+" "+h,y,v))return!0}return Fw(s,h,y,v)}function Fw(s,h,y,v){var w=sK(s,h,v);return w=="multi"&&(s.state.keySeq=h),w=="handled"&&li(s,"keyHandled",s,h,y),(w=="handled"||w=="multi")&&(Nt(y),e5(s)),!!w}function Bw(s,h){var y=Pw(h,!0);return y?h.shiftKey&&!s.state.keySeq?X1(s,"Shift-"+y,h,function(v){return S0(s,v,!0)})||X1(s,y,h,function(v){if(typeof v=="string"?/^go[A-Z]/.test(v):v.motion)return S0(s,v)}):X1(s,y,h,function(v){return S0(s,v)}):!1}function uK(s,h,y){return X1(s,"'"+y+"'",h,function(v){return S0(s,v,!0)})}var b5=null;function jw(s){var h=this;if(!(s.target&&s.target!=h.display.input.getField())&&(h.curOp.focus=W(),!Re(h,s))){a&&l<11&&s.keyCode==27&&(s.returnValue=!1);var y=s.keyCode;h.display.shift=y==16||s.shiftKey;var v=Bw(h,s);p&&(b5=v?y:null,!v&&y==88&&!Ne&&(S?s.metaKey:s.ctrlKey)&&h.replaceSelection("",null,"cut")),n&&!S&&!v&&y==46&&s.shiftKey&&!s.ctrlKey&&document.execCommand&&document.execCommand("cut"),y==18&&!/\bCodeMirror-crosshair\b/.test(h.display.lineDiv.className)&&dK(h)}}function dK(s){var h=s.display.lineDiv;j(h,"CodeMirror-crosshair");function y(v){(v.keyCode==18||!v.altKey)&&(R(h,"CodeMirror-crosshair"),re(document,"keyup",y),re(document,"mouseover",y))}Be(document,"keyup",y),Be(document,"mouseover",y)}function Hw(s){s.keyCode==16&&(this.doc.sel.shift=!1),Re(this,s)}function zw(s){var h=this;if(!(s.target&&s.target!=h.display.input.getField())&&!(Wl(h.display,s)||Re(h,s)||s.ctrlKey&&!s.altKey||S&&s.metaKey)){var y=s.keyCode,v=s.charCode;if(p&&y==b5){b5=null,Nt(s);return}if(!(p&&(!s.which||s.which<10)&&Bw(h,s))){var w=String.fromCharCode(v??y);w!="\b"&&(uK(h,s,w)||h.display.input.onKeyPress(s))}}}var fK=400,C5=function(s,h,y){this.time=s,this.pos=h,this.button=y};C5.prototype.compare=function(s,h,y){return this.time+fK>s&&dt(h,this.pos)==0&&y==this.button};var Y1,Q1;function hK(s,h){var y=+new Date;return Q1&&Q1.compare(y,s,h)?(Y1=Q1=null,"triple"):Y1&&Y1.compare(y,s,h)?(Q1=new C5(y,s,h),Y1=null,"double"):(Y1=new C5(y,s,h),Q1=null,"single")}function Ww(s){var h=this,y=h.display;if(!(Re(h,s)||y.activeTouch&&y.input.supportsTouch())){if(y.input.ensurePolled(),y.shift=s.shiftKey,Wl(y,s)){c||(y.scroller.draggable=!1,setTimeout(function(){return y.scroller.draggable=!0},100));return}if(!S5(h,s)){var v=Wc(h,s),w=Zt(s),N=v?hK(v,w):"single";window.focus(),w==1&&h.state.selectingText&&h.state.selectingText(s),!(v&&pK(h,w,v,N,s))&&(w==1?v?gK(h,v,N,s):Qt(s)==y.scroller&&Nt(s):w==2?(v&&m0(h.doc,v),setTimeout(function(){return y.input.focus()},20)):w==3&&($?h.display.input.onContextMenu(s):t5(h)))}}}function pK(s,h,y,v,w){var N="Click";return v=="double"?N="Double"+N:v=="triple"&&(N="Triple"+N),N=(h==1?"Left":h==2?"Middle":"Right")+N,X1(s,Mw(N,w),w,function(F){if(typeof F=="string"&&(F=q1[F]),!F)return!1;var K=!1;try{s.isReadOnly()&&(s.state.suppressEdits=!0),K=F(s,y)!=ue}finally{s.state.suppressEdits=!1}return K})}function mK(s,h,y){var v=s.getOption("configureMouse"),w=v?v(s,h,y):{};if(w.unit==null){var N=T?y.shiftKey&&y.metaKey:y.altKey;w.unit=N?"rectangle":h=="single"?"char":h=="double"?"word":"line"}return(w.extend==null||s.doc.extend)&&(w.extend=s.doc.extend||y.shiftKey),w.addNew==null&&(w.addNew=S?y.metaKey:y.ctrlKey),w.moveOnDrag==null&&(w.moveOnDrag=!(S?y.altKey:y.ctrlKey)),w}function gK(s,h,y,v){a?setTimeout(A(U6,s),0):s.curOp.focus=W();var w=mK(s,y,v),N=s.doc.sel,F;s.options.dragDrop&&Mt&&!s.isReadOnly()&&y=="single"&&(F=N.contains(h))>-1&&(dt((F=N.ranges[F]).from(),h)<0||h.xRel>0)&&(dt(F.to(),h)>0||h.xRel<0)?vK(s,v,h,w):yK(s,v,h,w)}function vK(s,h,y,v){var w=s.display,N=!1,F=si(s,function(Q){c&&(w.scroller.draggable=!1),s.state.draggingText=!1,s.state.delayingBlurEvent&&(s.hasFocus()?s.state.delayingBlurEvent=!1:t5(s)),re(w.wrapper.ownerDocument,"mouseup",F),re(w.wrapper.ownerDocument,"mousemove",K),re(w.scroller,"dragstart",X),re(w.scroller,"drop",F),N||(Nt(Q),v.addNew||m0(s.doc,y,null,null,v.extend),c&&!m||a&&l==9?setTimeout(function(){w.wrapper.ownerDocument.body.focus({preventScroll:!0}),w.input.focus()},20):w.input.focus())}),K=function(Q){N=N||Math.abs(h.clientX-Q.clientX)+Math.abs(h.clientY-Q.clientY)>=10},X=function(){return N=!0};c&&(w.scroller.draggable=!0),s.state.draggingText=F,F.copy=!v.moveOnDrag,Be(w.wrapper.ownerDocument,"mouseup",F),Be(w.wrapper.ownerDocument,"mousemove",K),Be(w.scroller,"dragstart",X),Be(w.scroller,"drop",F),s.state.delayingBlurEvent=!0,setTimeout(function(){return w.input.focus()},20),w.scroller.dragDrop&&w.scroller.dragDrop()}function Uw(s,h,y){if(y=="char")return new Bn(h,h);if(y=="word")return s.findWordAt(h);if(y=="line")return new Bn(ke(h.line,0),Bt(s.doc,ke(h.line+1,0)));var v=y(s,h);return new Bn(v.from,v.to)}function yK(s,h,y,v){a&&t5(s);var w=s.display,N=s.doc;Nt(h);var F,K,X=N.sel,Q=X.ranges;if(v.addNew&&!v.extend?(K=N.sel.contains(y),K>-1?F=Q[K]:F=new Bn(y,y)):(F=N.sel.primary(),K=N.sel.primIndex),v.unit=="rectangle")v.addNew||(F=new Bn(y,y)),y=Wc(s,h,!0,!0),K=-1;else{var ae=Uw(s,y,v.unit);v.extend?F=p5(F,ae.anchor,ae.head,v.extend):F=ae}v.addNew?K==-1?(K=Q.length,Oi(N,Ba(s,Q.concat([F]),K),{scroll:!1,origin:"*mouse"})):Q.length>1&&Q[K].empty()&&v.unit=="char"&&!v.extend?(Oi(N,Ba(s,Q.slice(0,K).concat(Q.slice(K+1)),0),{scroll:!1,origin:"*mouse"}),X=N.sel):m5(N,K,F,se):(K=0,Oi(N,new Bo([F],0),se),X=N.sel);var he=y;function De(It){if(dt(he,It)!=0)if(he=It,v.unit=="rectangle"){for(var Lt=[],en=s.options.tabSize,Vt=Z(tt(N,y.line).text,y.ch,en),mn=Z(tt(N,It.line).text,It.ch,en),Xn=Math.min(Vt,mn),ui=Math.max(Vt,mn),Er=Math.min(y.line,It.line),So=Math.min(s.lastLine(),Math.max(y.line,It.line));Er<=So;Er++){var ro=tt(N,Er).text,jr=ye(ro,Xn,en);Xn==ui?Lt.push(new Bn(ke(Er,jr),ke(Er,jr))):ro.length>jr&&Lt.push(new Bn(ke(Er,jr),ke(Er,ye(ro,ui,en))))}Lt.length||Lt.push(new Bn(y,y)),Oi(N,Ba(s,X.ranges.slice(0,K).concat(Lt),K),{origin:"*mouse",scroll:!1}),s.scrollIntoView(It)}else{var io=F,bi=Uw(s,It,v.unit),Gr=io.anchor,Hr;dt(bi.anchor,Gr)>0?(Hr=bi.head,Gr=yr(io.from(),bi.anchor)):(Hr=bi.anchor,Gr=pn(io.to(),bi.head));var Ar=X.ranges.slice(0);Ar[K]=bK(s,new Bn(Bt(N,Gr),Hr)),Oi(N,Ba(s,Ar,K),se)}}var Me=w.wrapper.getBoundingClientRect(),et=0;function ct(It){var Lt=++et,en=Wc(s,It,!0,v.unit=="rectangle");if(en)if(dt(en,he)!=0){s.curOp.focus=W(),De(en);var Vt=c0(w,N);(en.line>=Vt.to||en.line<Vt.from)&&setTimeout(si(s,function(){et==Lt&&ct(It)}),150)}else{var mn=It.clientY<Me.top?-20:It.clientY>Me.bottom?20:0;mn&&setTimeout(si(s,function(){et==Lt&&(w.scroller.scrollTop+=mn,ct(It))}),50)}}function bt(It){s.state.selectingText=!1,et=1/0,It&&(Nt(It),w.input.focus()),re(w.wrapper.ownerDocument,"mousemove",Ot),re(w.wrapper.ownerDocument,"mouseup",Rt),N.history.lastSelOrigin=null}var Ot=si(s,function(It){It.buttons===0||!Zt(It)?bt(It):ct(It)}),Rt=si(s,bt);s.state.selectingText=Rt,Be(w.wrapper.ownerDocument,"mousemove",Ot),Be(w.wrapper.ownerDocument,"mouseup",Rt)}function bK(s,h){var y=h.anchor,v=h.head,w=tt(s.doc,y.line);if(dt(y,v)==0&&y.sticky==v.sticky)return h;var N=Ze(w);if(!N)return h;var F=Pe(N,y.ch,y.sticky),K=N[F];if(K.from!=y.ch&&K.to!=y.ch)return h;var X=F+(K.from==y.ch==(K.level!=1)?0:1);if(X==0||X==N.length)return h;var Q;if(v.line!=y.line)Q=(v.line-y.line)*(s.doc.direction=="ltr"?1:-1)>0;else{var ae=Pe(N,v.ch,v.sticky),he=ae-F||(v.ch-y.ch)*(K.level==1?-1:1);ae==X-1||ae==X?Q=he<0:Q=he>0}var De=N[X+(Q?-1:0)],Me=Q==(De.level==1),et=Me?De.from:De.to,ct=Me?"after":"before";return y.ch==et&&y.sticky==ct?h:new Bn(new ke(y.line,et,ct),v)}function Kw(s,h,y,v){var w,N;if(h.touches)w=h.touches[0].clientX,N=h.touches[0].clientY;else try{w=h.clientX,N=h.clientY}catch{return!1}if(w>=Math.floor(s.display.gutters.getBoundingClientRect().right))return!1;v&&Nt(h);var F=s.display,K=F.lineDiv.getBoundingClientRect();if(N>K.bottom||!Ye(s,y))return Ft(h);N-=K.top-F.viewOffset;for(var X=0;X<s.display.gutterSpecs.length;++X){var Q=F.gutters.childNodes[X];if(Q&&Q.getBoundingClientRect().right>=w){var ae=In(s.doc,N),he=s.display.gutterSpecs[X];return Ie(s,y,s,ae,he.className,h),Ft(h)}}}function S5(s,h){return Kw(s,h,"gutterClick",!0)}function Vw(s,h){Wl(s.display,h)||CK(s,h)||Re(s,h,"contextmenu")||$||s.display.input.onContextMenu(h)}function CK(s,h){return Ye(s,"gutterContextMenu")?Kw(s,h,"gutterContextMenu",!1):!1}function Gw(s){s.display.wrapper.className=s.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+s.options.theme.replace(/(^|\s)\s*/g," cm-s-"),A1(s)}var gd={toString:function(){return"CodeMirror.Init"}},qw={},E0={};function SK(s){var h=s.optionHandlers;function y(v,w,N,F){s.defaults[v]=w,N&&(h[v]=F?function(K,X,Q){Q!=gd&&N(K,X,Q)}:N)}s.defineOption=y,s.Init=gd,y("value","",function(v,w){return v.setValue(w)},!0),y("mode",null,function(v,w){v.doc.modeOption=w,d5(v)},!0),y("indentUnit",2,d5,!0),y("indentWithTabs",!1),y("smartIndent",!0),y("tabSize",4,function(v){B1(v),A1(v),to(v)},!0),y("lineSeparator",null,function(v,w){if(v.doc.lineSep=w,!!w){var N=[],F=v.doc.first;v.doc.iter(function(X){for(var Q=0;;){var ae=X.text.indexOf(w,Q);if(ae==-1)break;Q=ae+w.length,N.push(ke(F,ae))}F++});for(var K=N.length-1;K>=0;K--)fd(v.doc,w,N[K],ke(N[K].line,N[K].ch+w.length))}}),y("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(v,w,N){v.state.specialChars=new RegExp(w.source+(w.test(" ")?"":"| "),"g"),N!=gd&&v.refresh()}),y("specialCharPlaceholder",YW,function(v){return v.refresh()},!0),y("electricChars",!0),y("inputStyle",C?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),y("spellcheck",!1,function(v,w){return v.getInputField().spellcheck=w},!0),y("autocorrect",!1,function(v,w){return v.getInputField().autocorrect=w},!0),y("autocapitalize",!1,function(v,w){return v.getInputField().autocapitalize=w},!0),y("rtlMoveVisually",!O),y("wholeLineUpdateBefore",!0),y("theme","default",function(v){Gw(v),F1(v)},!0),y("keyMap","default",function(v,w,N){var F=C0(w),K=N!=gd&&C0(N);K&&K.detach&&K.detach(v,F),F.attach&&F.attach(v,K||null)}),y("extraKeys",null),y("configureMouse",null),y("lineWrapping",!1,xK,!0),y("gutters",[],function(v,w){v.display.gutterSpecs=c5(w,v.options.lineNumbers),F1(v)},!0),y("fixedGutter",!0,function(v,w){v.display.gutters.style.left=w?Q2(v.display)+"px":"0",v.refresh()},!0),y("coverGutterNextToScrollbar",!1,function(v){return sd(v)},!0),y("scrollbarStyle","native",function(v){Y6(v),sd(v),v.display.scrollbars.setScrollTop(v.doc.scrollTop),v.display.scrollbars.setScrollLeft(v.doc.scrollLeft)},!0),y("lineNumbers",!1,function(v,w){v.display.gutterSpecs=c5(v.options.gutters,w),F1(v)},!0),y("firstLineNumber",1,F1,!0),y("lineNumberFormatter",function(v){return v},F1,!0),y("showCursorWhenSelecting",!1,k1,!0),y("resetSelectionOnContextMenu",!0),y("lineWiseCopyCut",!0),y("pasteLinesPerSelection",!0),y("selectionsMayTouch",!1),y("readOnly",!1,function(v,w){w=="nocursor"&&(ad(v),v.display.input.blur()),v.display.input.readOnlyChanged(w)}),y("screenReaderLabel",null,function(v,w){w=w===""?null:w,v.display.input.screenReaderLabelChanged(w)}),y("disableInput",!1,function(v,w){w||v.display.input.reset()},!0),y("dragDrop",!0,EK),y("allowDropFileTypes",null),y("cursorBlinkRate",530),y("cursorScrollMargin",0),y("cursorHeight",1,k1,!0),y("singleCursorHeightPerLine",!0,k1,!0),y("workTime",100),y("workDelay",100),y("flattenSpans",!0,B1,!0),y("addModeClass",!1,B1,!0),y("pollInterval",100),y("undoDepth",200,function(v,w){return v.doc.history.undoDepth=w}),y("historyEventDelay",1250),y("viewportMargin",10,function(v){return v.refresh()},!0),y("maxHighlightLength",1e4,B1,!0),y("moveInputWithCursor",!0,function(v,w){w||v.display.input.resetPosition()}),y("tabindex",null,function(v,w){return v.display.input.getField().tabIndex=w||""}),y("autofocus",null),y("direction","ltr",function(v,w){return v.doc.setDirection(w)},!0),y("phrases",null)}function EK(s,h,y){var v=y&&y!=gd;if(!h!=!v){var w=s.display.dragFunctions,N=h?Be:re;N(s.display.scroller,"dragstart",w.start),N(s.display.scroller,"dragenter",w.enter),N(s.display.scroller,"dragover",w.over),N(s.display.scroller,"dragleave",w.leave),N(s.display.scroller,"drop",w.drop)}}function xK(s){s.options.lineWrapping?(j(s.display.wrapper,"CodeMirror-wrap"),s.display.sizer.style.minWidth="",s.display.sizerWidth=null):(R(s.display.wrapper,"CodeMirror-wrap"),H2(s)),Z2(s),to(s),A1(s),setTimeout(function(){return sd(s)},100)}function ur(s,h){var y=this;if(!(this instanceof ur))return new ur(s,h);this.options=h=h?P(h):{},P(qw,h,!1);var v=h.value;typeof v=="string"?v=new no(v,h.mode,null,h.lineSeparator,h.direction):h.mode&&(v.modeOption=h.mode),this.doc=v;var w=new ur.inputStyles[h.inputStyle](this),N=this.display=new LU(s,v,w,h);N.wrapper.CodeMirror=this,Gw(this),h.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Y6(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new V,keySeq:null,specialChars:null},h.autofocus&&!C&&N.input.focus(),a&&l<11&&setTimeout(function(){return y.display.input.reset(!0)},20),wK(this),tK(),Gc(this),this.curOp.forceUpdate=!0,aw(this,v),h.autofocus&&!C||this.hasFocus()?setTimeout(function(){y.hasFocus()&&!y.state.focused&&n5(y)},20):ad(this);for(var F in E0)E0.hasOwnProperty(F)&&E0[F](this,h[F],gd);J6(this),h.finishInit&&h.finishInit(this);for(var K=0;K<E5.length;++K)E5[K](this);qc(this),c&&h.lineWrapping&&getComputedStyle(N.lineDiv).textRendering=="optimizelegibility"&&(N.lineDiv.style.textRendering="auto")}ur.defaults=qw,ur.optionHandlers=E0;function wK(s){var h=s.display;Be(h.scroller,"mousedown",si(s,Ww)),a&&l<11?Be(h.scroller,"dblclick",si(s,function(X){if(!Re(s,X)){var Q=Wc(s,X);if(!(!Q||S5(s,X)||Wl(s.display,X))){Nt(X);var ae=s.findWordAt(Q);m0(s.doc,ae.anchor,ae.head)}}})):Be(h.scroller,"dblclick",function(X){return Re(s,X)||Nt(X)}),Be(h.scroller,"contextmenu",function(X){return Vw(s,X)}),Be(h.input.getField(),"contextmenu",function(X){h.scroller.contains(X.target)||Vw(s,X)});var y,v={end:0};function w(){h.activeTouch&&(y=setTimeout(function(){return h.activeTouch=null},1e3),v=h.activeTouch,v.end=+new Date)}function N(X){if(X.touches.length!=1)return!1;var Q=X.touches[0];return Q.radiusX<=1&&Q.radiusY<=1}function F(X,Q){if(Q.left==null)return!0;var ae=Q.left-X.left,he=Q.top-X.top;return ae*ae+he*he>20*20}Be(h.scroller,"touchstart",function(X){if(!Re(s,X)&&!N(X)&&!S5(s,X)){h.input.ensurePolled(),clearTimeout(y);var Q=+new Date;h.activeTouch={start:Q,moved:!1,prev:Q-v.end<=300?v:null},X.touches.length==1&&(h.activeTouch.left=X.touches[0].pageX,h.activeTouch.top=X.touches[0].pageY)}}),Be(h.scroller,"touchmove",function(){h.activeTouch&&(h.activeTouch.moved=!0)}),Be(h.scroller,"touchend",function(X){var Q=h.activeTouch;if(Q&&!Wl(h,X)&&Q.left!=null&&!Q.moved&&new Date-Q.start<300){var ae=s.coordsChar(h.activeTouch,"page"),he;!Q.prev||F(Q,Q.prev)?he=new Bn(ae,ae):!Q.prev.prev||F(Q,Q.prev.prev)?he=s.findWordAt(ae):he=new Bn(ke(ae.line,0),Bt(s.doc,ke(ae.line+1,0))),s.setSelection(he.anchor,he.head),s.focus(),Nt(X)}w()}),Be(h.scroller,"touchcancel",w),Be(h.scroller,"scroll",function(){h.scroller.clientHeight&&(M1(s,h.scroller.scrollTop),Kc(s,h.scroller.scrollLeft,!0),Ie(s,"scroll",s))}),Be(h.scroller,"mousewheel",function(X){return nw(s,X)}),Be(h.scroller,"DOMMouseScroll",function(X){return nw(s,X)}),Be(h.wrapper,"scroll",function(){return h.wrapper.scrollTop=h.wrapper.scrollLeft=0}),h.dragFunctions={enter:function(X){Re(s,X)||Kt(X)},over:function(X){Re(s,X)||(eK(s,X),Kt(X))},start:function(X){return JU(s,X)},drop:si(s,ZU),leave:function(X){Re(s,X)||Nw(s)}};var K=h.input.getField();Be(K,"keyup",function(X){return Hw.call(s,X)}),Be(K,"keydown",si(s,jw)),Be(K,"keypress",si(s,zw)),Be(K,"focus",function(X){return n5(s,X)}),Be(K,"blur",function(X){return ad(s,X)})}var E5=[];ur.defineInitHook=function(s){return E5.push(s)};function Z1(s,h,y,v){var w=s.doc,N;y==null&&(y="add"),y=="smart"&&(w.mode.indent?N=an(s,h).state:y="prev");var F=s.options.tabSize,K=tt(w,h),X=Z(K.text,null,F);K.stateAfter&&(K.stateAfter=null);var Q=K.text.match(/^\s*/)[0],ae;if(!v&&!/\S/.test(K.text))ae=0,y="not";else if(y=="smart"&&(ae=w.mode.indent(N,K.text.slice(Q.length),K.text),ae==ue||ae>150)){if(!v)return;y="prev"}y=="prev"?h>w.first?ae=Z(tt(w,h-1).text,null,F):ae=0:y=="add"?ae=X+s.options.indentUnit:y=="subtract"?ae=X-s.options.indentUnit:typeof y=="number"&&(ae=X+y),ae=Math.max(0,ae);var he="",De=0;if(s.options.indentWithTabs)for(var Me=Math.floor(ae/F);Me;--Me)De+=F,he+=" ";if(De<ae&&(he+=ce(ae-De)),he!=Q)return fd(w,he,ke(h,0),ke(h,Q.length),"+input"),K.stateAfter=null,!0;for(var et=0;et<w.sel.ranges.length;et++){var ct=w.sel.ranges[et];if(ct.head.line==h&&ct.head.ch<Q.length){var bt=ke(h,Q.length);m5(w,et,new Bn(bt,bt));break}}}var ja=null;function x0(s){ja=s}function x5(s,h,y,v,w){var N=s.doc;s.display.shift=!1,v||(v=N.sel);var F=+new Date-200,K=w=="paste"||s.state.pasteIncoming>F,X=xe(h),Q=null;if(K&&v.ranges.length>1)if(ja&&ja.text.join(`
`)==h){if(v.ranges.length%ja.text.length==0){Q=[];for(var ae=0;ae<ja.text.length;ae++)Q.push(N.splitLines(ja.text[ae]))}}else X.length==v.ranges.length&&s.options.pasteLinesPerSelection&&(Q=pe(X,function(Ot){return[Ot]}));for(var he=s.curOp.updateInput,De=v.ranges.length-1;De>=0;De--){var Me=v.ranges[De],et=Me.from(),ct=Me.to();Me.empty()&&(y&&y>0?et=ke(et.line,et.ch-y):s.state.overwrite&&!K?ct=ke(ct.line,Math.min(tt(N,ct.line).text.length,ct.ch+oe(X).length)):K&&ja&&ja.lineWise&&ja.text.join(`
`)==X.join(`
`)&&(et=ct=ke(et.line,0)));var bt={from:et,to:ct,text:Q?Q[De%Q.length]:X,origin:w||(K?"paste":s.state.cutIncoming>F?"cut":"+input")};dd(s.doc,bt),li(s,"inputRead",s,bt)}h&&!K&&Yw(s,h),ld(s),s.curOp.updateInput<2&&(s.curOp.updateInput=he),s.curOp.typing=!0,s.state.pasteIncoming=s.state.cutIncoming=-1}function Xw(s,h){var y=s.clipboardData&&s.clipboardData.getData("Text");if(y)return s.preventDefault(),!h.isReadOnly()&&!h.options.disableInput&&Co(h,function(){return x5(h,y,0,null,"paste")}),!0}function Yw(s,h){if(!(!s.options.electricChars||!s.options.smartIndent))for(var y=s.doc.sel,v=y.ranges.length-1;v>=0;v--){var w=y.ranges[v];if(!(w.head.ch>100||v&&y.ranges[v-1].head.line==w.head.line)){var N=s.getModeAt(w.head),F=!1;if(N.electricChars){for(var K=0;K<N.electricChars.length;K++)if(h.indexOf(N.electricChars.charAt(K))>-1){F=Z1(s,w.head.line,"smart");break}}else N.electricInput&&N.electricInput.test(tt(s.doc,w.head.line).text.slice(0,w.head.ch))&&(F=Z1(s,w.head.line,"smart"));F&&li(s,"electricInput",s,w.head.line)}}}function Qw(s){for(var h=[],y=[],v=0;v<s.doc.sel.ranges.length;v++){var w=s.doc.sel.ranges[v].head.line,N={anchor:ke(w,0),head:ke(w+1,0)};y.push(N),h.push(s.getRange(N.anchor,N.head))}return{text:h,ranges:y}}function Zw(s,h,y,v){s.setAttribute("autocorrect",y?"":"off"),s.setAttribute("autocapitalize",v?"":"off"),s.setAttribute("spellcheck",!!h)}function Jw(){var s=B("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; min-height: 1em; outline: none"),h=B("div",[s],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return c?s.style.width="1000px":s.setAttribute("wrap","off"),E&&(s.style.border="1px solid black"),Zw(s),h}function TK(s){var h=s.optionHandlers,y=s.helpers={};s.prototype={constructor:s,focus:function(){window.focus(),this.display.input.focus()},setOption:function(v,w){var N=this.options,F=N[v];N[v]==w&&v!="mode"||(N[v]=w,h.hasOwnProperty(v)&&si(this,h[v])(this,w,F),Ie(this,"optionChange",this,v))},getOption:function(v){return this.options[v]},getDoc:function(){return this.doc},addKeyMap:function(v,w){this.state.keyMaps[w?"push":"unshift"](C0(v))},removeKeyMap:function(v){for(var w=this.state.keyMaps,N=0;N<w.length;++N)if(w[N]==v||w[N].name==v)return w.splice(N,1),!0},addOverlay:zi(function(v,w){var N=v.token?v:s.getMode(this.options,v);if(N.startState)throw new Error("Overlays may not be stateful.");ve(this.state.overlays,{mode:N,modeSpec:v,opaque:w&&w.opaque,priority:w&&w.priority||0},function(F){return F.priority}),this.state.modeGen++,to(this)}),removeOverlay:zi(function(v){for(var w=this.state.overlays,N=0;N<w.length;++N){var F=w[N].modeSpec;if(F==v||typeof v=="string"&&F.name==v){w.splice(N,1),this.state.modeGen++,to(this);return}}}),indentLine:zi(function(v,w,N){typeof w!="string"&&typeof w!="number"&&(w==null?w=this.options.smartIndent?"smart":"prev":w=w?"add":"subtract"),qn(this.doc,v)&&Z1(this,v,w,N)}),indentSelection:zi(function(v){for(var w=this.doc.sel.ranges,N=-1,F=0;F<w.length;F++){var K=w[F];if(K.empty())K.head.line>N&&(Z1(this,K.head.line,v,!0),N=K.head.line,F==this.doc.sel.primIndex&&ld(this));else{var X=K.from(),Q=K.to(),ae=Math.max(N,X.line);N=Math.min(this.lastLine(),Q.line-(Q.ch?0:1))+1;for(var he=ae;he<N;++he)Z1(this,he,v);var De=this.doc.sel.ranges;X.ch==0&&w.length==De.length&&De[F].from().ch>0&&m5(this.doc,F,new Bn(X,De[F].to()),ne)}}}),getTokenAt:function(v,w){return $r(this,v,w)},getLineTokens:function(v,w){return $r(this,ke(v),w,!0)},getTokenTypeAt:function(v){v=Bt(this.doc,v);var w=kt(this,tt(this.doc,v.line)),N=0,F=(w.length-1)/2,K=v.ch,X;if(K==0)X=w[2];else for(;;){var Q=N+F>>1;if((Q?w[Q*2-1]:0)>=K)F=Q;else if(w[Q*2+1]<K)N=Q+1;else{X=w[Q*2+2];break}}var ae=X?X.indexOf("overlay "):-1;return ae<0?X:ae==0?null:X.slice(0,ae-1)},getModeAt:function(v){var w=this.doc.mode;return w.innerMode?s.innerMode(w,this.getTokenAt(v).state).mode:w},getHelper:function(v,w){return this.getHelpers(v,w)[0]},getHelpers:function(v,w){var N=[];if(!y.hasOwnProperty(w))return N;var F=y[w],K=this.getModeAt(v);if(typeof K[w]=="string")F[K[w]]&&N.push(F[K[w]]);else if(K[w])for(var X=0;X<K[w].length;X++){var Q=F[K[w][X]];Q&&N.push(Q)}else K.helperType&&F[K.helperType]?N.push(F[K.helperType]):F[K.name]&&N.push(F[K.name]);for(var ae=0;ae<F._global.length;ae++){var he=F._global[ae];he.pred(K,this)&&Y(N,he.val)==-1&&N.push(he.val)}return N},getStateAfter:function(v,w){var N=this.doc;return v=Ir(N,v??N.first+N.size-1),an(this,v+1,w).state},cursorCoords:function(v,w){var N,F=this.doc.sel.primary();return v==null?N=F.head:typeof v=="object"?N=Bt(this.doc,v):N=v?F.from():F.to(),Fa(this,N,w||"page")},charCoords:function(v,w){return o0(this,Bt(this.doc,v),w||"page")},coordsChar:function(v,w){return v=D6(this,v,w||"page"),q2(this,v.left,v.top)},lineAtHeight:function(v,w){return v=D6(this,{top:v,left:0},w||"page").top,In(this.doc,v+this.display.viewOffset)},heightAtLine:function(v,w,N){var F=!1,K;if(typeof v=="number"){var X=this.doc.first+this.doc.size-1;v<this.doc.first?v=this.doc.first:v>X&&(v=X,F=!0),K=tt(this.doc,v)}else K=v;return i0(this,K,{top:0,left:0},w||"page",N||F).top+(F?this.doc.height-zl(K):0)},defaultTextHeight:function(){return id(this.display)},defaultCharWidth:function(){return od(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(v,w,N,F,K){var X=this.display;v=Fa(this,Bt(this.doc,v));var Q=v.bottom,ae=v.left;if(w.style.position="absolute",w.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(w),X.sizer.appendChild(w),F=="over")Q=v.top;else if(F=="above"||F=="near"){var he=Math.max(X.wrapper.clientHeight,this.doc.height),De=Math.max(X.sizer.clientWidth,X.lineSpace.clientWidth);(F=="above"||v.bottom+w.offsetHeight>he)&&v.top>w.offsetHeight?Q=v.top-w.offsetHeight:v.bottom+w.offsetHeight<=he&&(Q=v.bottom),ae+w.offsetWidth>De&&(ae=De-w.offsetWidth)}w.style.top=Q+"px",w.style.left=w.style.right="",K=="right"?(ae=X.sizer.clientWidth-w.offsetWidth,w.style.right="0px"):(K=="left"?ae=0:K=="middle"&&(ae=(X.sizer.clientWidth-w.offsetWidth)/2),w.style.left=ae+"px"),N&&EU(this,{left:ae,top:Q,right:ae+w.offsetWidth,bottom:Q+w.offsetHeight})},triggerOnKeyDown:zi(jw),triggerOnKeyPress:zi(zw),triggerOnKeyUp:Hw,triggerOnMouseDown:zi(Ww),execCommand:function(v){if(q1.hasOwnProperty(v))return q1[v].call(null,this)},triggerElectric:zi(function(v){Yw(this,v)}),findPosH:function(v,w,N,F){var K=1;w<0&&(K=-1,w=-w);for(var X=Bt(this.doc,v),Q=0;Q<w&&(X=w5(this.doc,X,K,N,F),!X.hitSide);++Q);return X},moveH:zi(function(v,w){var N=this;this.extendSelectionsBy(function(F){return N.display.shift||N.doc.extend||F.empty()?w5(N.doc,F.head,v,w,N.options.rtlMoveVisually):v<0?F.from():F.to()},me)}),deleteH:zi(function(v,w){var N=this.doc.sel,F=this.doc;N.somethingSelected()?F.replaceSelection("",null,"+delete"):md(this,function(K){var X=w5(F,K.head,v,w,!1);return v<0?{from:X,to:K.head}:{from:K.head,to:X}})}),findPosV:function(v,w,N,F){var K=1,X=F;w<0&&(K=-1,w=-w);for(var Q=Bt(this.doc,v),ae=0;ae<w;++ae){var he=Fa(this,Q,"div");if(X==null?X=he.left:he.left=X,Q=eT(this,he,K,N),Q.hitSide)break}return Q},moveV:zi(function(v,w){var N=this,F=this.doc,K=[],X=!this.display.shift&&!F.extend&&F.sel.somethingSelected();if(F.extendSelectionsBy(function(ae){if(X)return v<0?ae.from():ae.to();var he=Fa(N,ae.head,"div");ae.goalColumn!=null&&(he.left=ae.goalColumn),K.push(he.left);var De=eT(N,he,v,w);return w=="page"&&ae==F.sel.primary()&&i5(N,o0(N,De,"div").top-he.top),De},me),K.length)for(var Q=0;Q<F.sel.ranges.length;Q++)F.sel.ranges[Q].goalColumn=K[Q]}),findWordAt:function(v){var w=this.doc,N=tt(w,v.line).text,F=v.ch,K=v.ch;if(N){var X=this.getHelper(v,"wordChars");(v.sticky=="before"||K==N.length)&&F?--F:++K;for(var Q=N.charAt(F),ae=Se(Q,X)?function(he){return Se(he,X)}:/\s/.test(Q)?function(he){return/\s/.test(he)}:function(he){return!/\s/.test(he)&&!Se(he)};F>0&&ae(N.charAt(F-1));)--F;for(;K<N.length&&ae(N.charAt(K));)++K}return new Bn(ke(v.line,F),ke(v.line,K))},toggleOverwrite:function(v){v!=null&&v==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?j(this.display.cursorDiv,"CodeMirror-overwrite"):R(this.display.cursorDiv,"CodeMirror-overwrite"),Ie(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==W()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:zi(function(v,w){R1(this,v,w)}),getScrollInfo:function(){var v=this.display.scroller;return{left:v.scrollLeft,top:v.scrollTop,height:v.scrollHeight-pl(this)-this.display.barHeight,width:v.scrollWidth-pl(this)-this.display.barWidth,clientHeight:U2(this),clientWidth:Hc(this)}},scrollIntoView:zi(function(v,w){v==null?(v={from:this.doc.sel.primary().head,to:null},w==null&&(w=this.options.cursorScrollMargin)):typeof v=="number"?v={from:ke(v,0),to:null}:v.from==null&&(v={from:v,to:null}),v.to||(v.to=v.from),v.margin=w||0,v.from.line!=null?xU(this,v):V6(this,v.from,v.to,v.margin)}),setSize:zi(function(v,w){var N=this,F=function(X){return typeof X=="number"||/^\d+$/.test(String(X))?X+"px":X};v!=null&&(this.display.wrapper.style.width=F(v)),w!=null&&(this.display.wrapper.style.height=F(w)),this.options.lineWrapping&&M6(this);var K=this.display.viewFrom;this.doc.iter(K,this.display.viewTo,function(X){if(X.widgets){for(var Q=0;Q<X.widgets.length;Q++)if(X.widgets[Q].noHScroll){ws(N,K,"widget");break}}++K}),this.curOp.forceUpdate=!0,Ie(this,"refresh",this)}),operation:function(v){return Co(this,v)},startOperation:function(){return Gc(this)},endOperation:function(){return qc(this)},refresh:zi(function(){var v=this.display.cachedTextHeight;to(this),this.curOp.forceUpdate=!0,A1(this),R1(this,this.doc.scrollLeft,this.doc.scrollTop),l5(this.display),(v==null||Math.abs(v-id(this.display))>.5||this.options.lineWrapping)&&Z2(this),Ie(this,"refresh",this)}),swapDoc:zi(function(v){var w=this.doc;return w.cm=null,this.state.selectingText&&this.state.selectingText(),aw(this,v),A1(this),this.display.input.reset(),R1(this,v.scrollLeft,v.scrollTop),this.curOp.forceScroll=!0,li(this,"swapDoc",this,w),w}),phrase:function(v){var w=this.options.phrases;return w&&Object.prototype.hasOwnProperty.call(w,v)?w[v]:v},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},mt(s),s.registerHelper=function(v,w,N){y.hasOwnProperty(v)||(y[v]=s[v]={_global:[]}),y[v][w]=N},s.registerGlobalHelper=function(v,w,N,F){s.registerHelper(v,w,F),y[v]._global.push({pred:N,val:F})}}function w5(s,h,y,v,w){var N=h,F=y,K=tt(s,h.line),X=w&&s.direction=="rtl"?-y:y;function Q(){var Rt=h.line+X;return Rt<s.first||Rt>=s.first+s.size?!1:(h=new ke(Rt,h.ch,h.sticky),K=tt(s,Rt))}function ae(Rt){var It;if(v=="codepoint"){var Lt=K.text.charCodeAt(h.ch+(y>0?0:-1));if(isNaN(Lt))It=null;else{var en=y>0?Lt>=55296&&Lt<56320:Lt>=56320&&Lt<57343;It=new ke(h.line,Math.max(0,Math.min(K.text.length,h.ch+y*(en?2:1))),-y)}}else w?It=aK(s.cm,K,h,y):It=v5(K,h,y);if(It==null)if(!Rt&&Q())h=y5(w,s.cm,K,h.line,X);else return!1;else h=It;return!0}if(v=="char"||v=="codepoint")ae();else if(v=="column")ae(!0);else if(v=="word"||v=="group")for(var he=null,De=v=="group",Me=s.cm&&s.cm.getHelper(h,"wordChars"),et=!0;!(y<0&&!ae(!et));et=!1){var ct=K.text.charAt(h.ch)||`
`,bt=Se(ct,Me)?"w":De&&ct==`
`?"n":!De||/\s/.test(ct)?null:"p";if(De&&!et&&!bt&&(bt="s"),he&&he!=bt){y<0&&(y=1,ae(),h.sticky="after");break}if(bt&&(he=bt),y>0&&!ae(!et))break}var Ot=v0(s,h,N,F,!0);return cn(N,Ot)&&(Ot.hitSide=!0),Ot}function eT(s,h,y,v){var w=s.doc,N=h.left,F;if(v=="page"){var K=Math.min(s.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),X=Math.max(K-.5*id(s.display),3);F=(y>0?h.bottom:h.top)+y*X}else v=="line"&&(F=y>0?h.bottom+3:h.top-3);for(var Q;Q=q2(s,N,F),!!Q.outside;){if(y<0?F<=0:F>=w.height){Q.hitSide=!0;break}F+=y*5}return Q}var zn=function(s){this.cm=s,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new V,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};zn.prototype.init=function(s){var h=this,y=this,v=y.cm,w=y.div=s.lineDiv;w.contentEditable=!0,Zw(w,v.options.spellcheck,v.options.autocorrect,v.options.autocapitalize);function N(K){for(var X=K.target;X;X=X.parentNode){if(X==w)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(X.className))break}return!1}Be(w,"paste",function(K){!N(K)||Re(v,K)||Xw(K,v)||l<=11&&setTimeout(si(v,function(){return h.updateFromDOM()}),20)}),Be(w,"compositionstart",function(K){h.composing={data:K.data,done:!1}}),Be(w,"compositionupdate",function(K){h.composing||(h.composing={data:K.data,done:!1})}),Be(w,"compositionend",function(K){h.composing&&(K.data!=h.composing.data&&h.readFromDOMSoon(),h.composing.done=!0)}),Be(w,"touchstart",function(){return y.forceCompositionEnd()}),Be(w,"input",function(){h.composing||h.readFromDOMSoon()});function F(K){if(!(!N(K)||Re(v,K))){if(v.somethingSelected())x0({lineWise:!1,text:v.getSelections()}),K.type=="cut"&&v.replaceSelection("",null,"cut");else if(v.options.lineWiseCopyCut){var X=Qw(v);x0({lineWise:!0,text:X.text}),K.type=="cut"&&v.operation(function(){v.setSelections(X.ranges,0,ne),v.replaceSelection("",null,"cut")})}else return;if(K.clipboardData){K.clipboardData.clearData();var Q=ja.text.join(`
`);if(K.clipboardData.setData("Text",Q),K.clipboardData.getData("Text")==Q){K.preventDefault();return}}var ae=Jw(),he=ae.firstChild;v.display.lineSpace.insertBefore(ae,v.display.lineSpace.firstChild),he.value=ja.text.join(`
`);var De=W();q(he),setTimeout(function(){v.display.lineSpace.removeChild(ae),De.focus(),De==w&&y.showPrimarySelection()},50)}}Be(w,"copy",F),Be(w,"cut",F)},zn.prototype.screenReaderLabelChanged=function(s){s?this.div.setAttribute("aria-label",s):this.div.removeAttribute("aria-label")},zn.prototype.prepareSelection=function(){var s=W6(this.cm,!1);return s.focus=W()==this.div,s},zn.prototype.showSelection=function(s,h){!s||!this.cm.display.view.length||((s.focus||h)&&this.showPrimarySelection(),this.showMultipleSelections(s))},zn.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},zn.prototype.showPrimarySelection=function(){var s=this.getSelection(),h=this.cm,y=h.doc.sel.primary(),v=y.from(),w=y.to();if(h.display.viewTo==h.display.viewFrom||v.line>=h.display.viewTo||w.line<h.display.viewFrom){s.removeAllRanges();return}var N=w0(h,s.anchorNode,s.anchorOffset),F=w0(h,s.focusNode,s.focusOffset);if(!(N&&!N.bad&&F&&!F.bad&&dt(yr(N,F),v)==0&&dt(pn(N,F),w)==0)){var K=h.display.view,X=v.line>=h.display.viewFrom&&tT(h,v)||{node:K[0].measure.map[2],offset:0},Q=w.line<h.display.viewTo&&tT(h,w);if(!Q){var ae=K[K.length-1].measure,he=ae.maps?ae.maps[ae.maps.length-1]:ae.map;Q={node:he[he.length-1],offset:he[he.length-2]-he[he.length-3]}}if(!X||!Q){s.removeAllRanges();return}var De=s.rangeCount&&s.getRangeAt(0),Me;try{Me=D(X.node,X.offset,Q.offset,Q.node)}catch{}Me&&(!n&&h.state.focused?(s.collapse(X.node,X.offset),Me.collapsed||(s.removeAllRanges(),s.addRange(Me))):(s.removeAllRanges(),s.addRange(Me)),De&&s.anchorNode==null?s.addRange(De):n&&this.startGracePeriod()),this.rememberSelection()}},zn.prototype.startGracePeriod=function(){var s=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){s.gracePeriod=!1,s.selectionChanged()&&s.cm.operation(function(){return s.cm.curOp.selectionChanged=!0})},20)},zn.prototype.showMultipleSelections=function(s){H(this.cm.display.cursorDiv,s.cursors),H(this.cm.display.selectionDiv,s.selection)},zn.prototype.rememberSelection=function(){var s=this.getSelection();this.lastAnchorNode=s.anchorNode,this.lastAnchorOffset=s.anchorOffset,this.lastFocusNode=s.focusNode,this.lastFocusOffset=s.focusOffset},zn.prototype.selectionInEditor=function(){var s=this.getSelection();if(!s.rangeCount)return!1;var h=s.getRangeAt(0).commonAncestorContainer;return z(this.div,h)},zn.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||W()!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},zn.prototype.blur=function(){this.div.blur()},zn.prototype.getField=function(){return this.div},zn.prototype.supportsTouch=function(){return!0},zn.prototype.receivedFocus=function(){var s=this,h=this;this.selectionInEditor()?setTimeout(function(){return s.pollSelection()},20):Co(this.cm,function(){return h.cm.curOp.selectionChanged=!0});function y(){h.cm.state.focused&&(h.pollSelection(),h.polling.set(h.cm.options.pollInterval,y))}this.polling.set(this.cm.options.pollInterval,y)},zn.prototype.selectionChanged=function(){var s=this.getSelection();return s.anchorNode!=this.lastAnchorNode||s.anchorOffset!=this.lastAnchorOffset||s.focusNode!=this.lastFocusNode||s.focusOffset!=this.lastFocusOffset},zn.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var s=this.getSelection(),h=this.cm;if(x&&f&&this.cm.display.gutterSpecs.length&&_K(s.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var y=w0(h,s.anchorNode,s.anchorOffset),v=w0(h,s.focusNode,s.focusOffset);y&&v&&Co(h,function(){Oi(h.doc,_s(y,v),ne),(y.bad||v.bad)&&(h.curOp.selectionChanged=!0)})}}},zn.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var s=this.cm,h=s.display,y=s.doc.sel.primary(),v=y.from(),w=y.to();if(v.ch==0&&v.line>s.firstLine()&&(v=ke(v.line-1,tt(s.doc,v.line-1).length)),w.ch==tt(s.doc,w.line).text.length&&w.line<s.lastLine()&&(w=ke(w.line+1,0)),v.line<h.viewFrom||w.line>h.viewTo-1)return!1;var N,F,K;v.line==h.viewFrom||(N=Uc(s,v.line))==0?(F=Wt(h.view[0].line),K=h.view[0].node):(F=Wt(h.view[N].line),K=h.view[N-1].node.nextSibling);var X=Uc(s,w.line),Q,ae;if(X==h.view.length-1?(Q=h.viewTo-1,ae=h.lineDiv.lastChild):(Q=Wt(h.view[X+1].line)-1,ae=h.view[X+1].node.previousSibling),!K)return!1;for(var he=s.doc.splitLines(OK(s,K,ae,F,Q)),De=Xt(s.doc,ke(F,0),ke(Q,tt(s.doc,Q).text.length));he.length>1&&De.length>1;)if(oe(he)==oe(De))he.pop(),De.pop(),Q--;else if(he[0]==De[0])he.shift(),De.shift(),F++;else break;for(var Me=0,et=0,ct=he[0],bt=De[0],Ot=Math.min(ct.length,bt.length);Me<Ot&&ct.charCodeAt(Me)==bt.charCodeAt(Me);)++Me;for(var Rt=oe(he),It=oe(De),Lt=Math.min(Rt.length-(he.length==1?Me:0),It.length-(De.length==1?Me:0));et<Lt&&Rt.charCodeAt(Rt.length-et-1)==It.charCodeAt(It.length-et-1);)++et;if(he.length==1&&De.length==1&&F==v.line)for(;Me&&Me>v.ch&&Rt.charCodeAt(Rt.length-et-1)==It.charCodeAt(It.length-et-1);)Me--,et++;he[he.length-1]=Rt.slice(0,Rt.length-et).replace(/^\u200b+/,""),he[0]=he[0].slice(Me).replace(/\u200b+$/,"");var en=ke(F,Me),Vt=ke(Q,De.length?oe(De).length-et:0);if(he.length>1||he[0]||dt(en,Vt))return fd(s.doc,he,en,Vt,"+input"),!0},zn.prototype.ensurePolled=function(){this.forceCompositionEnd()},zn.prototype.reset=function(){this.forceCompositionEnd()},zn.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},zn.prototype.readFromDOMSoon=function(){var s=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(s.readDOMTimeout=null,s.composing)if(s.composing.done)s.composing=null;else return;s.updateFromDOM()},80))},zn.prototype.updateFromDOM=function(){var s=this;(this.cm.isReadOnly()||!this.pollContent())&&Co(this.cm,function(){return to(s.cm)})},zn.prototype.setUneditable=function(s){s.contentEditable="false"},zn.prototype.onKeyPress=function(s){s.charCode==0||this.composing||(s.preventDefault(),this.cm.isReadOnly()||si(this.cm,x5)(this.cm,String.fromCharCode(s.charCode==null?s.keyCode:s.charCode),0))},zn.prototype.readOnlyChanged=function(s){this.div.contentEditable=String(s!="nocursor")},zn.prototype.onContextMenu=function(){},zn.prototype.resetPosition=function(){},zn.prototype.needsContentAttribute=!0;function tT(s,h){var y=K2(s,h.line);if(!y||y.hidden)return null;var v=tt(s.doc,h.line),w=$6(y,v,h.line),N=Ze(v,s.doc.direction),F="left";if(N){var K=Pe(N,h.ch);F=K%2?"right":"left"}var X=k6(w.map,h.ch,F);return X.offset=X.collapse=="right"?X.end:X.start,X}function _K(s){for(var h=s;h;h=h.parentNode)if(/CodeMirror-gutter-wrapper/.test(h.className))return!0;return!1}function vd(s,h){return h&&(s.bad=!0),s}function OK(s,h,y,v,w){var N="",F=!1,K=s.doc.lineSeparator(),X=!1;function Q(Me){return function(et){return et.id==Me}}function ae(){F&&(N+=K,X&&(N+=K),F=X=!1)}function he(Me){Me&&(ae(),N+=Me)}function De(Me){if(Me.nodeType==1){var et=Me.getAttribute("cm-text");if(et){he(et);return}var ct=Me.getAttribute("cm-marker"),bt;if(ct){var Ot=s.findMarks(ke(v,0),ke(w+1,0),Q(+ct));Ot.length&&(bt=Ot[0].find(0))&&he(Xt(s.doc,bt.from,bt.to).join(K));return}if(Me.getAttribute("contenteditable")=="false")return;var Rt=/^(pre|div|p|li|table|br)$/i.test(Me.nodeName);if(!/^br$/i.test(Me.nodeName)&&Me.textContent.length==0)return;Rt&&ae();for(var It=0;It<Me.childNodes.length;It++)De(Me.childNodes[It]);/^(pre|p)$/i.test(Me.nodeName)&&(X=!0),Rt&&(F=!0)}else Me.nodeType==3&&he(Me.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;De(h),h!=y;)h=h.nextSibling,X=!1;return N}function w0(s,h,y){var v;if(h==s.display.lineDiv){if(v=s.display.lineDiv.childNodes[y],!v)return vd(s.clipPos(ke(s.display.viewTo-1)),!0);h=null,y=0}else for(v=h;;v=v.parentNode){if(!v||v==s.display.lineDiv)return null;if(v.parentNode&&v.parentNode==s.display.lineDiv)break}for(var w=0;w<s.display.view.length;w++){var N=s.display.view[w];if(N.node==v)return IK(N,h,y)}}function IK(s,h,y){var v=s.text.firstChild,w=!1;if(!h||!z(v,h))return vd(ke(Wt(s.line),0),!0);if(h==v&&(w=!0,h=v.childNodes[y],y=0,!h)){var N=s.rest?oe(s.rest):s.line;return vd(ke(Wt(N),N.text.length),w)}var F=h.nodeType==3?h:null,K=h;for(!F&&h.childNodes.length==1&&h.firstChild.nodeType==3&&(F=h.firstChild,y&&(y=F.nodeValue.length));K.parentNode!=v;)K=K.parentNode;var X=s.measure,Q=X.maps;function ae(bt,Ot,Rt){for(var It=-1;It<(Q?Q.length:0);It++)for(var Lt=It<0?X.map:Q[It],en=0;en<Lt.length;en+=3){var Vt=Lt[en+2];if(Vt==bt||Vt==Ot){var mn=Wt(It<0?s.line:s.rest[It]),Xn=Lt[en]+Rt;return(Rt<0||Vt!=bt)&&(Xn=Lt[en+(Rt?1:0)]),ke(mn,Xn)}}}var he=ae(F,K,y);if(he)return vd(he,w);for(var De=K.nextSibling,Me=F?F.nodeValue.length-y:0;De;De=De.nextSibling){if(he=ae(De,De.firstChild,0),he)return vd(ke(he.line,he.ch-Me),w);Me+=De.textContent.length}for(var et=K.previousSibling,ct=y;et;et=et.previousSibling){if(he=ae(et,et.firstChild,-1),he)return vd(ke(he.line,he.ch+ct),w);ct+=et.textContent.length}}var Lr=function(s){this.cm=s,this.prevInput="",this.pollingFast=!1,this.polling=new V,this.hasSelection=!1,this.composing=null};Lr.prototype.init=function(s){var h=this,y=this,v=this.cm;this.createField(s);var w=this.textarea;s.wrapper.insertBefore(this.wrapper,s.wrapper.firstChild),E&&(w.style.width="0px"),Be(w,"input",function(){a&&l>=9&&h.hasSelection&&(h.hasSelection=null),y.poll()}),Be(w,"paste",function(F){Re(v,F)||Xw(F,v)||(v.state.pasteIncoming=+new Date,y.fastPoll())});function N(F){if(!Re(v,F)){if(v.somethingSelected())x0({lineWise:!1,text:v.getSelections()});else if(v.options.lineWiseCopyCut){var K=Qw(v);x0({lineWise:!0,text:K.text}),F.type=="cut"?v.setSelections(K.ranges,null,ne):(y.prevInput="",w.value=K.text.join(`
`),q(w))}else return;F.type=="cut"&&(v.state.cutIncoming=+new Date)}}Be(w,"cut",N),Be(w,"copy",N),Be(s.scroller,"paste",function(F){if(!(Wl(s,F)||Re(v,F))){if(!w.dispatchEvent){v.state.pasteIncoming=+new Date,y.focus();return}var K=new Event("paste");K.clipboardData=F.clipboardData,w.dispatchEvent(K)}}),Be(s.lineSpace,"selectstart",function(F){Wl(s,F)||Nt(F)}),Be(w,"compositionstart",function(){var F=v.getCursor("from");y.composing&&y.composing.range.clear(),y.composing={start:F,range:v.markText(F,v.getCursor("to"),{className:"CodeMirror-composing"})}}),Be(w,"compositionend",function(){y.composing&&(y.poll(),y.composing.range.clear(),y.composing=null)})},Lr.prototype.createField=function(s){this.wrapper=Jw(),this.textarea=this.wrapper.firstChild},Lr.prototype.screenReaderLabelChanged=function(s){s?this.textarea.setAttribute("aria-label",s):this.textarea.removeAttribute("aria-label")},Lr.prototype.prepareSelection=function(){var s=this.cm,h=s.display,y=s.doc,v=W6(s);if(s.options.moveInputWithCursor){var w=Fa(s,y.sel.primary().head,"div"),N=h.wrapper.getBoundingClientRect(),F=h.lineDiv.getBoundingClientRect();v.teTop=Math.max(0,Math.min(h.wrapper.clientHeight-10,w.top+F.top-N.top)),v.teLeft=Math.max(0,Math.min(h.wrapper.clientWidth-10,w.left+F.left-N.left))}return v},Lr.prototype.showSelection=function(s){var h=this.cm,y=h.display;H(y.cursorDiv,s.cursors),H(y.selectionDiv,s.selection),s.teTop!=null&&(this.wrapper.style.top=s.teTop+"px",this.wrapper.style.left=s.teLeft+"px")},Lr.prototype.reset=function(s){if(!(this.contextMenuPending||this.composing)){var h=this.cm;if(h.somethingSelected()){this.prevInput="";var y=h.getSelection();this.textarea.value=y,h.state.focused&&q(this.textarea),a&&l>=9&&(this.hasSelection=y)}else s||(this.prevInput=this.textarea.value="",a&&l>=9&&(this.hasSelection=null))}},Lr.prototype.getField=function(){return this.textarea},Lr.prototype.supportsTouch=function(){return!1},Lr.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!C||W()!=this.textarea))try{this.textarea.focus()}catch{}},Lr.prototype.blur=function(){this.textarea.blur()},Lr.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Lr.prototype.receivedFocus=function(){this.slowPoll()},Lr.prototype.slowPoll=function(){var s=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){s.poll(),s.cm.state.focused&&s.slowPoll()})},Lr.prototype.fastPoll=function(){var s=!1,h=this;h.pollingFast=!0;function y(){var v=h.poll();!v&&!s?(s=!0,h.polling.set(60,y)):(h.pollingFast=!1,h.slowPoll())}h.polling.set(20,y)},Lr.prototype.poll=function(){var s=this,h=this.cm,y=this.textarea,v=this.prevInput;if(this.contextMenuPending||!h.state.focused||ge(y)&&!v&&!this.composing||h.isReadOnly()||h.options.disableInput||h.state.keySeq)return!1;var w=y.value;if(w==v&&!h.somethingSelected())return!1;if(a&&l>=9&&this.hasSelection===w||S&&/[\uf700-\uf7ff]/.test(w))return h.display.input.reset(),!1;if(h.doc.sel==h.display.selForContextMenu){var N=w.charCodeAt(0);if(N==8203&&!v&&(v=""),N==8666)return this.reset(),this.cm.execCommand("undo")}for(var F=0,K=Math.min(v.length,w.length);F<K&&v.charCodeAt(F)==w.charCodeAt(F);)++F;return Co(h,function(){x5(h,w.slice(F),v.length-F,null,s.composing?"*compose":null),w.length>1e3||w.indexOf(`
`)>-1?y.value=s.prevInput="":s.prevInput=w,s.composing&&(s.composing.range.clear(),s.composing.range=h.markText(s.composing.start,h.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Lr.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Lr.prototype.onKeyPress=function(){a&&l>=9&&(this.hasSelection=null),this.fastPoll()},Lr.prototype.onContextMenu=function(s){var h=this,y=h.cm,v=y.display,w=h.textarea;h.contextMenuPending&&h.contextMenuPending();var N=Wc(y,s),F=v.scroller.scrollTop;if(!N||p)return;var K=y.options.resetSelectionOnContextMenu;K&&y.doc.sel.contains(N)==-1&&si(y,Oi)(y.doc,_s(N),ne);var X=w.style.cssText,Q=h.wrapper.style.cssText,ae=h.wrapper.offsetParent.getBoundingClientRect();h.wrapper.style.cssText="position: static",w.style.cssText=`position: absolute; width: 30px; height: 30px;
top: `+(s.clientY-ae.top-5)+"px; left: "+(s.clientX-ae.left-5)+`px;
z-index: 1000; background: `+(a?"rgba(255, 255, 255, .05)":"transparent")+`;
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var he;c&&(he=window.scrollY),v.input.focus(),c&&window.scrollTo(null,he),v.input.reset(),y.somethingSelected()||(w.value=h.prevInput=" "),h.contextMenuPending=Me,v.selForContextMenu=y.doc.sel,clearTimeout(v.detectingSelectAll);function De(){if(w.selectionStart!=null){var ct=y.somethingSelected(),bt=""+(ct?w.value:"");w.value="⇚",w.value=bt,h.prevInput=ct?"":"",w.selectionStart=1,w.selectionEnd=bt.length,v.selForContextMenu=y.doc.sel}}function Me(){if(h.contextMenuPending==Me&&(h.contextMenuPending=!1,h.wrapper.style.cssText=Q,w.style.cssText=X,a&&l<9&&v.scrollbars.setScrollTop(v.scroller.scrollTop=F),w.selectionStart!=null)){(!a||a&&l<9)&&De();var ct=0,bt=function(){v.selForContextMenu==y.doc.sel&&w.selectionStart==0&&w.selectionEnd>0&&h.prevInput==""?si(y,bw)(y):ct++<10?v.detectingSelectAll=setTimeout(bt,500):(v.selForContextMenu=null,v.input.reset())};v.detectingSelectAll=setTimeout(bt,200)}}if(a&&l>=9&&De(),$){Kt(s);var et=function(){re(window,"mouseup",et),setTimeout(Me,20)};Be(window,"mouseup",et)}else setTimeout(Me,50)},Lr.prototype.readOnlyChanged=function(s){s||this.reset(),this.textarea.disabled=s=="nocursor",this.textarea.readOnly=!!s},Lr.prototype.setUneditable=function(){},Lr.prototype.needsContentAttribute=!1;function $K(s,h){if(h=h?P(h):{},h.value=s.value,!h.tabindex&&s.tabIndex&&(h.tabindex=s.tabIndex),!h.placeholder&&s.placeholder&&(h.placeholder=s.placeholder),h.autofocus==null){var y=W();h.autofocus=y==s||s.getAttribute("autofocus")!=null&&y==document.body}function v(){s.value=K.getValue()}var w;if(s.form&&(Be(s.form,"submit",v),!h.leaveSubmitMethodAlone)){var N=s.form;w=N.submit;try{var F=N.submit=function(){v(),N.submit=w,N.submit(),N.submit=F}}catch{}}h.finishInit=function(X){X.save=v,X.getTextArea=function(){return s},X.toTextArea=function(){X.toTextArea=isNaN,v(),s.parentNode.removeChild(X.getWrapperElement()),s.style.display="",s.form&&(re(s.form,"submit",v),!h.leaveSubmitMethodAlone&&typeof s.form.submit=="function"&&(s.form.submit=w))}},s.style.display="none";var K=ur(function(X){return s.parentNode.insertBefore(X,s.nextSibling)},h);return K}function NK(s){s.off=re,s.on=Be,s.wheelEventPixels=DU,s.Doc=no,s.splitLines=xe,s.countColumn=Z,s.findColumn=ye,s.isWordChar=Je,s.Pass=ue,s.signal=Ie,s.Line=td,s.changeEnd=Os,s.scrollbarModel=X6,s.Pos=ke,s.cmpPos=dt,s.modes=pt,s.mimeModes=st,s.resolveMode=Ue,s.getMode=ft,s.modeExtensions=Ct,s.extendMode=zt,s.copyState=Tt,s.startState=vt,s.innerMode=Pt,s.commands=q1,s.keyMap=Kl,s.keyName=Pw,s.isModifierKey=Rw,s.lookupKey=pd,s.normalizeKeyMap=oK,s.StringStream=gt,s.SharedTextMarker=K1,s.TextMarker=$s,s.LineWidget=U1,s.e_preventDefault=Nt,s.e_stopPropagation=qt,s.e_stop=Kt,s.addClass=j,s.contains=z,s.rmClass=R,s.keyNames=Ns}SK(ur),TK(ur);var AK="iter insert remove copy getEditor constructor".split(" ");for(var T0 in no.prototype)no.prototype.hasOwnProperty(T0)&&Y(AK,T0)<0&&(ur.prototype[T0]=function(s){return function(){return s.apply(this.doc,arguments)}}(no.prototype[T0]));return mt(no),ur.inputStyles={textarea:Lr,contenteditable:zn},ur.defineMode=function(s){!ur.defaults.mode&&s!="null"&&(ur.defaults.mode=s),rt.apply(this,arguments)},ur.defineMIME=He,ur.defineMode("null",function(){return{token:function(s){return s.skipToEnd()}}}),ur.defineMIME("text/plain","null"),ur.defineExtension=function(s,h){ur.prototype[s]=h},ur.defineDocExtension=function(s,h){no.prototype[s]=h},ur.fromTextArea=$K,NK(ur),ur.version="5.65.3",ur},wbe=function(e){e.defineOption("placeholder","",function(l,c,u){var f=u&&u!=e.Init;if(c&&!f)l.on("blur",i),l.on("change",o),l.on("swapDoc",o),e.on(l.getInputField(),"compositionupdate",l.state.placeholderCompose=function(){r(l)}),o(l);else if(!c&&f){l.off("blur",i),l.off("change",o),l.off("swapDoc",o),e.off(l.getInputField(),"compositionupdate",l.state.placeholderCompose),t(l);var p=l.getWrapperElement();p.className=p.className.replace(" CodeMirror-empty","")}c&&!l.hasFocus()&&i(l)});function t(l){l.state.placeholder&&(l.state.placeholder.parentNode.removeChild(l.state.placeholder),l.state.placeholder=null)}function n(l){t(l);var c=l.state.placeholder=document.createElement("pre");c.style.cssText="height: 0; overflow: visible",c.style.direction=l.getOption("direction"),c.className="CodeMirror-placeholder CodeMirror-line-like";var u=l.getOption("placeholder");typeof u=="string"&&(u=document.createTextNode(u)),c.appendChild(u),l.display.lineSpace.insertBefore(c,l.display.lineSpace.firstChild)}function r(l){setTimeout(function(){var c=!1;if(l.lineCount()==1){var u=l.getInputField();c=u.nodeName=="TEXTAREA"?!l.getLine(0).length:!/[^\u200b]/.test(u.querySelector(".CodeMirror-line").textContent)}c?n(l):t(l)},20)}function i(l){a(l)&&n(l)}function o(l){var c=l.getWrapperElement(),u=a(l);c.className=c.className.replace(" CodeMirror-empty","")+(u?" CodeMirror-empty":""),u?n(l):t(l)}function a(l){return l.lineCount()===1&&l.getLine(0)===""}},Tbe=function(e){var t=/^(\s*)(>[> ]*|[*+-] \[[x ]\]\s|[*+-]\s|(\d+)([.)]))(\s*)/,n=/^(\s*)(>[> ]*|[*+-] \[[x ]\]|[*+-]|(\d+)[.)])(\s*)$/,r=/[*+-]\s/;e.commands.newlineAndIndentContinueMarkdownList=function(o){if(o.getOption("disableInput"))return e.Pass;for(var a=o.listSelections(),l=[],c=0;c<a.length;c++){var u=a[c].head,f=o.getStateAfter(u.line),p=e.innerMode(o.getMode(),f);if(p.mode.name!=="markdown"&&p.mode.helperType!=="markdown"){o.execCommand("newlineAndIndent");return}else f=p.state;var m=f.list!==!1,g=f.quote!==0,b=o.getLine(u.line),E=t.exec(b),x=/^\s*$/.test(b.slice(0,u.ch));if(!a[c].empty()||!m&&!g||!E||x){o.execCommand("newlineAndIndent");return}if(n.test(b)){var C=g&&/>\s*$/.test(b),S=!/>\s*$/.test(b);(C||S)&&o.replaceRange("",{line:u.line,ch:0},{line:u.line,ch:u.ch+1}),l[c]=`
`}else{var T=E[1],O=E[5],I=!(r.test(E[2])||E[2].indexOf(">")>=0),_=I?parseInt(E[3],10)+1+E[4]:E[2].replace("x"," ");l[c]=`
`+T+_+O,I&&i(o,u)}}o.replaceSelections(l)};function i(o,a){var l=a.line,c=0,u=0,f=t.exec(o.getLine(l)),p=f[1];do{c+=1;var m=l+c,g=o.getLine(m),b=t.exec(g);if(b){var E=b[1],x=parseInt(f[3],10)+c-u,C=parseInt(b[3],10),S=C;if(p===E&&!isNaN(C))x===C&&(S=C+1),x>C&&(S=x+1),o.replaceRange(g.replace(t,E+S+b[4]+b[5]),{line:m,ch:0},{line:m,ch:g.length});else{if(p.length>E.length||p.length<E.length&&c===1)return;u+=1}}}while(b)}},_be=function(e){e.overlayMode=function(t,n,r){return{startState:function(){return{base:e.startState(t),overlay:e.startState(n),basePos:0,baseCur:null,overlayPos:0,overlayCur:null,streamSeen:null}},copyState:function(i){return{base:e.copyState(t,i.base),overlay:e.copyState(n,i.overlay),basePos:i.basePos,baseCur:null,overlayPos:i.overlayPos,overlayCur:null}},token:function(i,o){return(i!=o.streamSeen||Math.min(o.basePos,o.overlayPos)<i.start)&&(o.streamSeen=i,o.basePos=o.overlayPos=i.start),i.start==o.basePos&&(o.baseCur=t.token(i,o.base),o.basePos=i.pos),i.start==o.overlayPos&&(i.pos=i.start,o.overlayCur=n.token(i,o.overlay),o.overlayPos=i.pos),i.pos=Math.min(o.basePos,o.overlayPos),o.overlayCur==null?o.baseCur:o.baseCur!=null&&o.overlay.combineTokens||r&&o.overlay.combineTokens==null?o.baseCur+" "+o.overlayCur:o.overlayCur},indent:t.indent&&function(i,o,a){return t.indent(i.base,o,a)},electricChars:t.electricChars,innerMode:function(i){return{state:i.base,mode:t}},blankLine:function(i){var o,a;return t.blankLine&&(o=t.blankLine(i.base)),n.blankLine&&(a=n.blankLine(i.overlay)),a==null?o:r&&o!=null?o+" "+a:a}}}},Obe=function(e){var t=/^((?:(?:aaas?|about|acap|adiumxtra|af[ps]|aim|apt|attachment|aw|beshare|bitcoin|bolo|callto|cap|chrome(?:-extension)?|cid|coap|com-eventbrite-attendee|content|crid|cvs|data|dav|dict|dlna-(?:playcontainer|playsingle)|dns|doi|dtn|dvb|ed2k|facetime|feed|file|finger|fish|ftp|geo|gg|git|gizmoproject|go|gopher|gtalk|h323|hcp|https?|iax|icap|icon|im|imap|info|ipn|ipp|irc[6s]?|iris(?:\.beep|\.lwz|\.xpc|\.xpcs)?|itms|jar|javascript|jms|keyparc|lastfm|ldaps?|magnet|mailto|maps|market|message|mid|mms|ms-help|msnim|msrps?|mtqp|mumble|mupdate|mvn|news|nfs|nih?|nntp|notes|oid|opaquelocktoken|palm|paparazzi|platform|pop|pres|proxy|psyc|query|res(?:ource)?|rmi|rsync|rtmp|rtsp|secondlife|service|session|sftp|sgn|shttp|sieve|sips?|skype|sm[bs]|snmp|soap\.beeps?|soldat|spotify|ssh|steam|svn|tag|teamspeak|tel(?:net)?|tftp|things|thismessage|tip|tn3270|tv|udp|unreal|urn|ut2004|vemmi|ventrilo|view-source|webcal|wss?|wtai|wyciwyg|xcon(?:-userid)?|xfire|xmlrpc\.beeps?|xmpp|xri|ymsgr|z39\.50[rs]?):(?:\/{1,3}|[a-z0-9%])|www\d{0,3}[.]|[a-z0-9.\-]+[.][a-z]{2,4}\/)(?:[^\s()<>]|\([^\s()<>]*\))+(?:\([^\s()<>]*\)|[^\s`*!()\[\]{};:'".,<>?«»“”‘’]))/i;e.defineMode("gfm",function(n,r){var i=0;function o(u){return u.code=!1,null}var a={startState:function(){return{code:!1,codeBlock:!1,ateSpace:!1}},copyState:function(u){return{code:u.code,codeBlock:u.codeBlock,ateSpace:u.ateSpace}},token:function(u,f){if(f.combineTokens=null,f.codeBlock)return u.match(/^```+/)?(f.codeBlock=!1,null):(u.skipToEnd(),null);if(u.sol()&&(f.code=!1),u.sol()&&u.match(/^```+/))return u.skipToEnd(),f.codeBlock=!0,null;if(u.peek()==="`"){u.next();var p=u.pos;u.eatWhile("`");var m=1+u.pos-p;return f.code?m===i&&(f.code=!1):(i=m,f.code=!0),null}else if(f.code)return u.next(),null;if(u.eatSpace())return f.ateSpace=!0,null;if((u.sol()||f.ateSpace)&&(f.ateSpace=!1,r.gitHubSpice!==!1)){if(u.match(/^(?:[a-zA-Z0-9\-_]+\/)?(?:[a-zA-Z0-9\-_]+@)?(?=.{0,6}\d)(?:[a-f0-9]{7,40}\b)/))return f.combineTokens=!0,"link";if(u.match(/^(?:[a-zA-Z0-9\-_]+\/)?(?:[a-zA-Z0-9\-_]+)?#[0-9]+\b/))return f.combineTokens=!0,"link"}return u.match(t)&&u.string.slice(u.start-2,u.start)!="]("&&(u.start==0||/\W/.test(u.string.charAt(u.start-1)))?(f.combineTokens=!0,"link"):(u.next(),null)},blankLine:o},l={taskLists:!0,strikethrough:!0,emoji:!0};for(var c in r)l[c]=r[c];return l.name="markdown",e.overlayMode(e.getMode(n,l),a)},"markdown"),e.defineMIME("text/x-gfm","gfm")},Ibe=function(e){e.defineMode("markdown",function(t,n){var r=e.getMode(t,"text/html"),i=r.name=="null";function o(A){if(e.findModeByName){var P=e.findModeByName(A);P&&(A=P.mime||P.mimes[0])}var Z=e.getMode(t,A);return Z.name=="null"?null:Z}n.highlightFormatting===void 0&&(n.highlightFormatting=!1),n.maxBlockquoteDepth===void 0&&(n.maxBlockquoteDepth=0),n.taskLists===void 0&&(n.taskLists=!1),n.strikethrough===void 0&&(n.strikethrough=!1),n.emoji===void 0&&(n.emoji=!1),n.fencedCodeBlockHighlighting===void 0&&(n.fencedCodeBlockHighlighting=!0),n.fencedCodeBlockDefaultMode===void 0&&(n.fencedCodeBlockDefaultMode="text/plain"),n.xml===void 0&&(n.xml=!0),n.tokenTypeOverrides===void 0&&(n.tokenTypeOverrides={});var a={header:"header",code:"comment",quote:"quote",list1:"variable-2",list2:"variable-3",list3:"keyword",hr:"hr",image:"image",imageAltText:"image-alt-text",imageMarker:"image-marker",formatting:"formatting",linkInline:"link",linkEmail:"link",linkText:"link",linkHref:"string",em:"em",strong:"strong",strikethrough:"strikethrough",emoji:"builtin"};for(var l in a)a.hasOwnProperty(l)&&n.tokenTypeOverrides[l]&&(a[l]=n.tokenTypeOverrides[l]);var c=/^([*\-_])(?:\s*\1){2,}\s*$/,u=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,f=/^\[(x| )\](?=\s)/i,p=n.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,m=/^ {0,3}(?:\={1,}|-{2,})\s*$/,g=/^[^#!\[\]*_\\<>` "'(~:]+/,b=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,E=/^\s*\[[^\]]+?\]:.*$/,x=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E42\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC9\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDF3C-\uDF3E]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]/,C=" ";function S(A,P,Z){return P.f=P.inline=Z,Z(A,P)}function T(A,P,Z){return P.f=P.block=Z,Z(A,P)}function O(A){return!A||!/\S/.test(A.string)}function I(A){if(A.linkTitle=!1,A.linkHref=!1,A.linkText=!1,A.em=!1,A.strong=!1,A.strikethrough=!1,A.quote=0,A.indentedCode=!1,A.f==$){var P=i;if(!P){var Z=e.innerMode(r,A.htmlState);P=Z.mode.name=="xml"&&Z.state.tagStart===null&&!Z.state.context&&Z.state.tokenize.isInText}P&&(A.f=H,A.block=_,A.htmlState=null)}return A.trailingSpace=0,A.trailingSpaceNewLine=!1,A.prevLine=A.thisLine,A.thisLine={stream:null},null}function _(A,P){var Z=A.column()===P.indentation,V=O(P.prevLine.stream),Y=P.indentedCode,ee=P.prevLine.hr,ue=P.list!==!1,ne=(P.listStack[P.listStack.length-1]||0)+3;P.indentedCode=!1;var se=P.indentation;if(P.indentationDiff===null&&(P.indentationDiff=P.indentation,ue)){for(P.list=null;se<P.listStack[P.listStack.length-1];)P.listStack.pop(),P.listStack.length?P.indentation=P.listStack[P.listStack.length-1]:P.list=!1;P.list!==!1&&(P.indentationDiff=se-P.listStack[P.listStack.length-1])}var me=!V&&!ee&&!P.prevLine.header&&(!ue||!Y)&&!P.prevLine.fencedCodeEnd,ye=(P.list===!1||ee||V)&&P.indentation<=ne&&A.match(c),de=null;if(P.indentationDiff>=4&&(Y||P.prevLine.fencedCodeEnd||P.prevLine.header||V))return A.skipToEnd(),P.indentedCode=!0,a.code;if(A.eatSpace())return null;if(Z&&P.indentation<=ne&&(de=A.match(p))&&de[1].length<=6)return P.quote=0,P.header=de[1].length,P.thisLine.header=!0,n.highlightFormatting&&(P.formatting="header"),P.f=P.inline,R(P);if(P.indentation<=ne&&A.eat(">"))return P.quote=Z?1:P.quote+1,n.highlightFormatting&&(P.formatting="quote"),A.eatSpace(),R(P);if(!ye&&!P.setext&&Z&&P.indentation<=ne&&(de=A.match(u))){var ce=de[1]?"ol":"ul";return P.indentation=se+A.current().length,P.list=!0,P.quote=0,P.listStack.push(P.indentation),P.em=!1,P.strong=!1,P.code=!1,P.strikethrough=!1,n.taskLists&&A.match(f,!1)&&(P.taskList=!0),P.f=P.inline,n.highlightFormatting&&(P.formatting=["list","list-"+ce]),R(P)}else{if(Z&&P.indentation<=ne&&(de=A.match(b,!0)))return P.quote=0,P.fencedEndRE=new RegExp(de[1]+"+ *$"),P.localMode=n.fencedCodeBlockHighlighting&&o(de[2]||n.fencedCodeBlockDefaultMode),P.localMode&&(P.localState=e.startState(P.localMode)),P.f=P.block=k,n.highlightFormatting&&(P.formatting="code-block"),P.code=-1,R(P);if(P.setext||(!me||!ue)&&!P.quote&&P.list===!1&&!P.code&&!ye&&!E.test(A.string)&&(de=A.lookAhead(1))&&(de=de.match(m)))return P.setext?(P.header=P.setext,P.setext=0,A.skipToEnd(),n.highlightFormatting&&(P.formatting="header")):(P.header=de[0].charAt(0)=="="?1:2,P.setext=P.header),P.thisLine.header=!0,P.f=P.inline,R(P);if(ye)return A.skipToEnd(),P.hr=!0,P.thisLine.hr=!0,a.hr;if(A.peek()==="[")return S(A,P,W)}return S(A,P,P.inline)}function $(A,P){var Z=r.token(A,P.htmlState);if(!i){var V=e.innerMode(r,P.htmlState);(V.mode.name=="xml"&&V.state.tagStart===null&&!V.state.context&&V.state.tokenize.isInText||P.md_inside&&A.current().indexOf(">")>-1)&&(P.f=H,P.block=_,P.htmlState=null)}return Z}function k(A,P){var Z=P.listStack[P.listStack.length-1]||0,V=P.indentation<Z,Y=Z+3;if(P.fencedEndRE&&P.indentation<=Y&&(V||A.match(P.fencedEndRE))){n.highlightFormatting&&(P.formatting="code-block");var ee;return V||(ee=R(P)),P.localMode=P.localState=null,P.block=_,P.f=H,P.fencedEndRE=null,P.code=0,P.thisLine.fencedCodeEnd=!0,V?T(A,P,P.block):ee}else return P.localMode?P.localMode.token(A,P.localState):(A.skipToEnd(),a.code)}function R(A){var P=[];if(A.formatting){P.push(a.formatting),typeof A.formatting=="string"&&(A.formatting=[A.formatting]);for(var Z=0;Z<A.formatting.length;Z++)P.push(a.formatting+"-"+A.formatting[Z]),A.formatting[Z]==="header"&&P.push(a.formatting+"-"+A.formatting[Z]+"-"+A.header),A.formatting[Z]==="quote"&&(!n.maxBlockquoteDepth||n.maxBlockquoteDepth>=A.quote?P.push(a.formatting+"-"+A.formatting[Z]+"-"+A.quote):P.push("error"))}if(A.taskOpen)return P.push("meta"),P.length?P.join(" "):null;if(A.taskClosed)return P.push("property"),P.length?P.join(" "):null;if(A.linkHref?P.push(a.linkHref,"url"):(A.strong&&P.push(a.strong),A.em&&P.push(a.em),A.strikethrough&&P.push(a.strikethrough),A.emoji&&P.push(a.emoji),A.linkText&&P.push(a.linkText),A.code&&P.push(a.code),A.image&&P.push(a.image),A.imageAltText&&P.push(a.imageAltText,"link"),A.imageMarker&&P.push(a.imageMarker)),A.header&&P.push(a.header,a.header+"-"+A.header),A.quote&&(P.push(a.quote),!n.maxBlockquoteDepth||n.maxBlockquoteDepth>=A.quote?P.push(a.quote+"-"+A.quote):P.push(a.quote+"-"+n.maxBlockquoteDepth)),A.list!==!1){var V=(A.listStack.length-1)%3;V?V===1?P.push(a.list2):P.push(a.list3):P.push(a.list1)}return A.trailingSpaceNewLine?P.push("trailing-space-new-line"):A.trailingSpace&&P.push("trailing-space-"+(A.trailingSpace%2?"a":"b")),P.length?P.join(" "):null}function M(A,P){if(A.match(g,!0))return R(P)}function H(A,P){var Z=P.text(A,P);if(typeof Z<"u")return Z;if(P.list)return P.list=null,R(P);if(P.taskList){var V=A.match(f,!0)[1]===" ";return V?P.taskOpen=!0:P.taskClosed=!0,n.highlightFormatting&&(P.formatting="task"),P.taskList=!1,R(P)}if(P.taskOpen=!1,P.taskClosed=!1,P.header&&A.match(/^#+$/,!0))return n.highlightFormatting&&(P.formatting="header"),R(P);var Y=A.next();if(P.linkTitle){P.linkTitle=!1;var ee=Y;Y==="("&&(ee=")"),ee=(ee+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var ue="^\\s*(?:[^"+ee+"\\\\]+|\\\\\\\\|\\\\.)"+ee;if(A.match(new RegExp(ue),!0))return a.linkHref}if(Y==="`"){var ne=P.formatting;n.highlightFormatting&&(P.formatting="code"),A.eatWhile("`");var se=A.current().length;if(P.code==0&&(!P.quote||se==1))return P.code=se,R(P);if(se==P.code){var me=R(P);return P.code=0,me}else return P.formatting=ne,R(P)}else if(P.code)return R(P);if(Y==="\\"&&(A.next(),n.highlightFormatting)){var ye=R(P),de=a.formatting+"-escape";return ye?ye+" "+de:de}if(Y==="!"&&A.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return P.imageMarker=!0,P.image=!0,n.highlightFormatting&&(P.formatting="image"),R(P);if(Y==="["&&P.imageMarker&&A.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return P.imageMarker=!1,P.imageAltText=!0,n.highlightFormatting&&(P.formatting="image"),R(P);if(Y==="]"&&P.imageAltText){n.highlightFormatting&&(P.formatting="image");var ye=R(P);return P.imageAltText=!1,P.image=!1,P.inline=P.f=L,ye}if(Y==="["&&!P.image)return P.linkText&&A.match(/^.*?\]/)||(P.linkText=!0,n.highlightFormatting&&(P.formatting="link")),R(P);if(Y==="]"&&P.linkText){n.highlightFormatting&&(P.formatting="link");var ye=R(P);return P.linkText=!1,P.inline=P.f=A.match(/\(.*?\)| ?\[.*?\]/,!1)?L:H,ye}if(Y==="<"&&A.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){P.f=P.inline=B,n.highlightFormatting&&(P.formatting="link");var ye=R(P);return ye?ye+=" ":ye="",ye+a.linkInline}if(Y==="<"&&A.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){P.f=P.inline=B,n.highlightFormatting&&(P.formatting="link");var ye=R(P);return ye?ye+=" ":ye="",ye+a.linkEmail}if(n.xml&&Y==="<"&&A.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var ce=A.string.indexOf(">",A.pos);if(ce!=-1){var oe=A.string.substring(A.start,ce);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(oe)&&(P.md_inside=!0)}return A.backUp(1),P.htmlState=e.startState(r),T(A,P,$)}if(n.xml&&Y==="<"&&A.match(/^\/\w*?>/))return P.md_inside=!1,"tag";if(Y==="*"||Y==="_"){for(var pe=1,ve=A.pos==1?" ":A.string.charAt(A.pos-2);pe<3&&A.eat(Y);)pe++;var Te=A.peek()||" ",Ge=!/\s/.test(Te)&&(!x.test(Te)||/\s/.test(ve)||x.test(ve)),je=!/\s/.test(ve)&&(!x.test(ve)||/\s/.test(Te)||x.test(Te)),Je=null,Se=null;if(pe%2&&(!P.em&&Ge&&(Y==="*"||!je||x.test(ve))?Je=!0:P.em==Y&&je&&(Y==="*"||!Ge||x.test(Te))&&(Je=!1)),pe>1&&(!P.strong&&Ge&&(Y==="*"||!je||x.test(ve))?Se=!0:P.strong==Y&&je&&(Y==="*"||!Ge||x.test(Te))&&(Se=!1)),Se!=null||Je!=null){n.highlightFormatting&&(P.formatting=Je==null?"strong":Se==null?"em":"strong em"),Je===!0&&(P.em=Y),Se===!0&&(P.strong=Y);var me=R(P);return Je===!1&&(P.em=!1),Se===!1&&(P.strong=!1),me}}else if(Y===" "&&(A.eat("*")||A.eat("_"))){if(A.peek()===" ")return R(P);A.backUp(1)}if(n.strikethrough){if(Y==="~"&&A.eatWhile(Y)){if(P.strikethrough){n.highlightFormatting&&(P.formatting="strikethrough");var me=R(P);return P.strikethrough=!1,me}else if(A.match(/^[^\s]/,!1))return P.strikethrough=!0,n.highlightFormatting&&(P.formatting="strikethrough"),R(P)}else if(Y===" "&&A.match("~~",!0)){if(A.peek()===" ")return R(P);A.backUp(2)}}if(n.emoji&&Y===":"&&A.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){P.emoji=!0,n.highlightFormatting&&(P.formatting="emoji");var $e=R(P);return P.emoji=!1,$e}return Y===" "&&(A.match(/^ +$/,!1)?P.trailingSpace++:P.trailingSpace&&(P.trailingSpaceNewLine=!0)),R(P)}function B(A,P){var Z=A.next();if(Z===">"){P.f=P.inline=H,n.highlightFormatting&&(P.formatting="link");var V=R(P);return V?V+=" ":V="",V+a.linkInline}return A.match(/^[^>]+/,!0),a.linkInline}function L(A,P){if(A.eatSpace())return null;var Z=A.next();return Z==="("||Z==="["?(P.f=P.inline=z(Z==="("?")":"]"),n.highlightFormatting&&(P.formatting="link-string"),P.linkHref=!0,R(P)):"error"}var D={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function z(A){return function(P,Z){var V=P.next();if(V===A){Z.f=Z.inline=H,n.highlightFormatting&&(Z.formatting="link-string");var Y=R(Z);return Z.linkHref=!1,Y}return P.match(D[A]),Z.linkHref=!0,R(Z)}}function W(A,P){return A.match(/^([^\]\\]|\\.)*\]:/,!1)?(P.f=j,A.next(),n.highlightFormatting&&(P.formatting="link"),P.linkText=!0,R(P)):S(A,P,H)}function j(A,P){if(A.match("]:",!0)){P.f=P.inline=U,n.highlightFormatting&&(P.formatting="link");var Z=R(P);return P.linkText=!1,Z}return A.match(/^([^\]\\]|\\.)+/,!0),a.linkText}function U(A,P){return A.eatSpace()?null:(A.match(/^[^\s]+/,!0),A.peek()===void 0?P.linkTitle=!0:A.match(/^(?:\s+(?:"(?:[^"\\]|\\.)+"|'(?:[^'\\]|\\.)+'|\((?:[^)\\]|\\.)+\)))?/,!0),P.f=P.inline=H,a.linkHref+" url")}var q={startState:function(){return{f:_,prevLine:{stream:null},thisLine:{stream:null},block:_,htmlState:null,indentation:0,inline:H,text:M,formatting:!1,linkText:!1,linkHref:!1,linkTitle:!1,code:0,em:!1,strong:!1,header:0,setext:0,hr:!1,taskList:!1,list:!1,listStack:[],quote:0,trailingSpace:0,trailingSpaceNewLine:!1,strikethrough:!1,emoji:!1,fencedEndRE:null}},copyState:function(A){return{f:A.f,prevLine:A.prevLine,thisLine:A.thisLine,block:A.block,htmlState:A.htmlState&&e.copyState(r,A.htmlState),indentation:A.indentation,localMode:A.localMode,localState:A.localMode?e.copyState(A.localMode,A.localState):null,inline:A.inline,text:A.text,formatting:!1,linkText:A.linkText,linkTitle:A.linkTitle,linkHref:A.linkHref,code:A.code,em:A.em,strong:A.strong,strikethrough:A.strikethrough,emoji:A.emoji,header:A.header,setext:A.setext,hr:A.hr,taskList:A.taskList,list:A.list,listStack:A.listStack.slice(0),quote:A.quote,indentedCode:A.indentedCode,trailingSpace:A.trailingSpace,trailingSpaceNewLine:A.trailingSpaceNewLine,md_inside:A.md_inside,fencedEndRE:A.fencedEndRE}},token:function(A,P){if(P.formatting=!1,A!=P.thisLine.stream){if(P.header=0,P.hr=!1,A.match(/^\s*$/,!0))return I(P),null;if(P.prevLine=P.thisLine,P.thisLine={stream:A},P.taskList=!1,P.trailingSpace=0,P.trailingSpaceNewLine=!1,!P.localState&&(P.f=P.block,P.f!=$)){var Z=A.match(/^\s*/,!0)[0].replace(/\t/g,C).length;if(P.indentation=Z,P.indentationDiff=null,Z>0)return null}}return P.f(A,P)},innerMode:function(A){return A.block==$?{state:A.htmlState,mode:r}:A.localState?{state:A.localState,mode:A.localMode}:{state:A,mode:q}},indent:function(A,P,Z){return A.block==$&&r.indent?r.indent(A.htmlState,P,Z):A.localState&&A.localMode.indent?A.localMode.indent(A.localState,P,Z):e.Pass},blankLine:I,getType:R,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return q},"xml"),e.defineMIME("text/markdown","markdown"),e.defineMIME("text/x-markdown","markdown")},$be=function(e){var t={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},n={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};e.defineMode("xml",function(r,i){var o=r.indentUnit,a={},l=i.htmlMode?t:n;for(var c in l)a[c]=l[c];for(var c in i)a[c]=i[c];var u,f;function p(L,D){function z(U){return D.tokenize=U,U(L,D)}var W=L.next();if(W=="<")return L.eat("!")?L.eat("[")?L.match("CDATA[")?z(b("atom","]]>")):null:L.match("--")?z(b("comment","-->")):L.match("DOCTYPE",!0,!0)?(L.eatWhile(/[\w\._\-]/),z(E(1))):null:L.eat("?")?(L.eatWhile(/[\w\._\-]/),D.tokenize=b("meta","?>"),"meta"):(u=L.eat("/")?"closeTag":"openTag",D.tokenize=m,"tag bracket");if(W=="&"){var j;return L.eat("#")?L.eat("x")?j=L.eatWhile(/[a-fA-F\d]/)&&L.eat(";"):j=L.eatWhile(/[\d]/)&&L.eat(";"):j=L.eatWhile(/[\w\.\-:]/)&&L.eat(";"),j?"atom":"error"}else return L.eatWhile(/[^&<]/),null}p.isInText=!0;function m(L,D){var z=L.next();if(z==">"||z=="/"&&L.eat(">"))return D.tokenize=p,u=z==">"?"endTag":"selfcloseTag","tag bracket";if(z=="=")return u="equals",null;if(z=="<"){D.tokenize=p,D.state=O,D.tagName=D.tagStart=null;var W=D.tokenize(L,D);return W?W+" tag error":"tag error"}else return/[\'\"]/.test(z)?(D.tokenize=g(z),D.stringStartCol=L.column(),D.tokenize(L,D)):(L.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function g(L){var D=function(z,W){for(;!z.eol();)if(z.next()==L){W.tokenize=m;break}return"string"};return D.isInAttribute=!0,D}function b(L,D){return function(z,W){for(;!z.eol();){if(z.match(D)){W.tokenize=p;break}z.next()}return L}}function E(L){return function(D,z){for(var W;(W=D.next())!=null;){if(W=="<")return z.tokenize=E(L+1),z.tokenize(D,z);if(W==">")if(L==1){z.tokenize=p;break}else return z.tokenize=E(L-1),z.tokenize(D,z)}return"meta"}}function x(L){return L&&L.toLowerCase()}function C(L,D,z){this.prev=L.context,this.tagName=D||"",this.indent=L.indented,this.startOfLine=z,(a.doNotIndent.hasOwnProperty(D)||L.context&&L.context.noIndent)&&(this.noIndent=!0)}function S(L){L.context&&(L.context=L.context.prev)}function T(L,D){for(var z;;){if(!L.context||(z=L.context.tagName,!a.contextGrabbers.hasOwnProperty(x(z))||!a.contextGrabbers[x(z)].hasOwnProperty(x(D))))return;S(L)}}function O(L,D,z){return L=="openTag"?(z.tagStart=D.column(),I):L=="closeTag"?_:O}function I(L,D,z){return L=="word"?(z.tagName=D.current(),f="tag",R):a.allowMissingTagName&&L=="endTag"?(f="tag bracket",R(L,D,z)):(f="error",I)}function _(L,D,z){if(L=="word"){var W=D.current();return z.context&&z.context.tagName!=W&&a.implicitlyClosed.hasOwnProperty(x(z.context.tagName))&&S(z),z.context&&z.context.tagName==W||a.matchClosing===!1?(f="tag",$):(f="tag error",k)}else return a.allowMissingTagName&&L=="endTag"?(f="tag bracket",$(L,D,z)):(f="error",k)}function $(L,D,z){return L!="endTag"?(f="error",$):(S(z),O)}function k(L,D,z){return f="error",$(L,D,z)}function R(L,D,z){if(L=="word")return f="attribute",M;if(L=="endTag"||L=="selfcloseTag"){var W=z.tagName,j=z.tagStart;return z.tagName=z.tagStart=null,L=="selfcloseTag"||a.autoSelfClosers.hasOwnProperty(x(W))?T(z,W):(T(z,W),z.context=new C(z,W,j==z.indented)),O}return f="error",R}function M(L,D,z){return L=="equals"?H:(a.allowMissing||(f="error"),R(L,D,z))}function H(L,D,z){return L=="string"?B:L=="word"&&a.allowUnquoted?(f="string",R):(f="error",R(L,D,z))}function B(L,D,z){return L=="string"?B:R(L,D,z)}return{startState:function(L){var D={tokenize:p,state:O,indented:L||0,tagName:null,tagStart:null,context:null};return L!=null&&(D.baseIndent=L),D},token:function(L,D){if(!D.tagName&&L.sol()&&(D.indented=L.indentation()),L.eatSpace())return null;u=null;var z=D.tokenize(L,D);return(z||u)&&z!="comment"&&(f=null,D.state=D.state(u||z,L,D),f&&(z=f=="error"?z+" error":f)),z},indent:function(L,D,z){var W=L.context;if(L.tokenize.isInAttribute)return L.tagStart==L.indented?L.stringStartCol+1:L.indented+o;if(W&&W.noIndent)return e.Pass;if(L.tokenize!=m&&L.tokenize!=p)return z?z.match(/^(\s*)/)[0].length:0;if(L.tagName)return a.multilineTagIndentPastTag!==!1?L.tagStart+L.tagName.length+2:L.tagStart+o*(a.multilineTagIndentFactor||1);if(a.alignCDATA&&/<!\[CDATA\[/.test(D))return 0;var j=D&&/^<(\/)?([\w_:\.-]*)/.exec(D);if(j&&j[1])for(;W;)if(W.tagName==j[2]){W=W.prev;break}else if(a.implicitlyClosed.hasOwnProperty(x(W.tagName)))W=W.prev;else break;else if(j)for(;W;){var U=a.contextGrabbers[x(W.tagName)];if(U&&U.hasOwnProperty(x(j[2])))W=W.prev;else break}for(;W&&W.prev&&!W.startOfLine;)W=W.prev;return W?W.indent+o:L.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:a.htmlMode?"html":"xml",helperType:a.htmlMode?"html":"xml",skipAttribute:function(L){L.state==H&&(L.state=R)},xmlCurrentTag:function(L){return L.tagName?{name:L.tagName,close:L.type=="closeTag"}:null},xmlCurrentContext:function(L){for(var D=[],z=L.context;z;z=z.prev)D.push(z.tagName);return D.reverse()}}}),e.defineMIME("text/xml","xml"),e.defineMIME("application/xml","xml"),e.mimeModes.hasOwnProperty("text/html")||e.defineMIME("text/html",{name:"xml",htmlMode:!0})},Nbe=function(e){var t=0,n=1,r=2;e.defineMode("yaml-frontmatter",function(i,o){var a=e.getMode(i,"yaml"),l=e.getMode(i,o&&o.base||"gfm");function c(u){return u.state==n?{mode:a,state:u.yaml}:{mode:l,state:u.inner}}return{startState:function(){return{state:t,yaml:null,inner:e.startState(l)}},copyState:function(u){return{state:u.state,yaml:u.yaml&&e.copyState(a,u.yaml),inner:e.copyState(l,u.inner)}},token:function(u,f){if(f.state==t)return u.match("---",!1)?(f.state=n,f.yaml=e.startState(a),a.token(u,f.yaml)):(f.state=r,l.token(u,f.inner));if(f.state==n){var p=u.sol()&&u.match(/(---|\.\.\.)/,!1),m=a.token(u,f.yaml);return p&&(f.state=r,f.yaml=null),m}else return l.token(u,f.inner)},innerMode:c,indent:function(u,f,p){var m=c(u);return m.mode.indent?m.mode.indent(m.state,f,p):e.Pass},blankLine:function(u){var f=c(u);if(f.mode.blankLine)return f.mode.blankLine(f.state)}}})},Abe=function(e){e.defineMode("yaml",function(){var t=["true","false","on","off","yes","no"],n=new RegExp("\\b(("+t.join(")|(")+"))$","i");return{token:function(r,i){var o=r.peek(),a=i.escaped;if(i.escaped=!1,o=="#"&&(r.pos==0||/\s/.test(r.string.charAt(r.pos-1))))return r.skipToEnd(),"comment";if(r.match(/^('([^']|\\.)*'?|"([^"]|\\.)*"?)/))return"string";if(i.literal&&r.indentation()>i.keyCol)return r.skipToEnd(),"string";if(i.literal&&(i.literal=!1),r.sol()){if(i.keyCol=0,i.pair=!1,i.pairStart=!1,r.match("---")||r.match("..."))return"def";if(r.match(/\s*-\s+/))return"meta"}if(r.match(/^(\{|\}|\[|\])/))return o=="{"?i.inlinePairs++:o=="}"?i.inlinePairs--:o=="["?i.inlineList++:i.inlineList--,"meta";if(i.inlineList>0&&!a&&o==",")return r.next(),"meta";if(i.inlinePairs>0&&!a&&o==",")return i.keyCol=0,i.pair=!1,i.pairStart=!1,r.next(),"meta";if(i.pairStart){if(r.match(/^\s*(\||\>)\s*/))return i.literal=!0,"meta";if(r.match(/^\s*(\&|\*)[a-z0-9\._-]+\b/i))return"variable-2";if(i.inlinePairs==0&&r.match(/^\s*-?[0-9\.\,]+\s?$/)||i.inlinePairs>0&&r.match(/^\s*-?[0-9\.\,]+\s?(?=(,|}))/))return"number";if(r.match(n))return"keyword"}return!i.pair&&r.match(/^\s*(?:[,\[\]{}&*!|>'"%@`][^\s'":]|[^,\[\]{}#&*!|>'"%@`])[^#]*?(?=\s*:($|\s))/)?(i.pair=!0,i.keyCol=r.indentation(),"atom"):i.pair&&r.match(/^:\s*/)?(i.pairStart=!0,"meta"):(i.pairStart=!1,i.escaped=o=="\\",r.next(),null)},startState:function(){return{pair:!1,pairStart:!1,keyCol:0,inlinePairs:0,inlineList:0,literal:!1,escaped:!1}},lineComment:"#",fold:"indent"}}),e.defineMIME("text/x-yaml","yaml"),e.defineMIME("text/yaml","yaml")};var kbe=function(e){e===void 0&&(e={});var t=e.accept;t===void 0&&(t="");var n=e.capture;n===void 0&&(n=!1);var r=e.multiple;r===void 0&&(r=!1);var i=document.createElement("input");return i.type="file",i.accept=t,i.capture=n,i.multiple=r,i},uH=function(e){return new Promise(function(t){var n=kbe(e);n.addEventListener("change",function(){return t(n.files||null)}),setTimeout(function(){var r=new MouseEvent("click");n.dispatchEvent(r)},0)})},Rbe=/[a-zA-Z0-9_\u0392-\u03c9\u00c0-\u00ff\u0600-\u06ff]+|[\u4e00-\u9fff\u3400-\u4dbf\uf900-\ufaff\u3040-\u309f\uac00-\ud7af]+/g,Mbe=function(e){var t=e.match(Rbe),n=0;if(!t)return 0;for(var r=0;r<t.length;r++)t[r].charCodeAt(0)>=19968?n+=t[r].length:n+=1;return n};const Pbe=ul(Mbe),P3=function(e){if(e==null)return Bbe;if(typeof e=="string")return Fbe(e);if(typeof e=="object")return Array.isArray(e)?Lbe(e):Dbe(e);if(typeof e=="function")return S2(e);throw new Error("Expected function, string, or object as test")};function Lbe(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=P3(e[n]);return S2(r);function r(...i){let o=-1;for(;++o<t.length;)if(t[o].call(this,...i))return!0;return!1}}function Dbe(e){return S2(t);function t(n){let r;for(r in e)if(n[r]!==e[r])return!1;return!0}}function Fbe(e){return S2(t);function t(n){return n&&n.type===e}}function S2(e){return t;function t(n,...r){return!!(n&&typeof n=="object"&&"type"in n&&e.call(this,n,...r))}}function Bbe(){return!0}const jbe=!0,P$=!1,Hbe="skip",dH=function(e,t,n,r){typeof t=="function"&&typeof n!="function"&&(r=n,n=t,t=null);const i=P3(t),o=r?-1:1;a(e,void 0,[])();function a(l,c,u){const f=l&&typeof l=="object"?l:{};if(typeof f.type=="string"){const m=typeof f.tagName=="string"?f.tagName:typeof f.name=="string"?f.name:void 0;Object.defineProperty(p,"name",{value:"node ("+(l.type+(m?"<"+m+">":""))+")"})}return p;function p(){let m=[],g,b,E;if((!t||i(l,c,u[u.length-1]||null))&&(m=zbe(n(l,u)),m[0]===P$))return m;if(l.children&&m[0]!==Hbe)for(b=(r?l.children.length:-1)+o,E=u.concat(l);b>-1&&b<l.children.length;){if(g=a(l.children[b],b,E)(),g[0]===P$)return g;b=typeof g[1]=="number"?g[1]:b+o}return m}}};function zbe(e){return Array.isArray(e)?e:typeof e=="number"?[jbe,e]:[e]}const Um=function(e,t,n,r){typeof t=="function"&&typeof n!="function"&&(r=n,n=t,t=null),dH(e,t,i,r);function i(o,a){const l=a[a.length-1];return n(o,l?l.children.indexOf(o):null,l)}};var Mo="top",Aa="bottom",ka="right",Po="left",L3="auto",Km=[Mo,Aa,ka,Po],Qf="start",lm="end",Wbe="clippingParents",fH="viewport",bh="popper",Ube="reference",L$=Km.reduce(function(e,t){return e.concat([t+"-"+Qf,t+"-"+lm])},[]),hH=[].concat(Km,[L3]).reduce(function(e,t){return e.concat([t,t+"-"+Qf,t+"-"+lm])},[]),Kbe="beforeRead",Vbe="read",Gbe="afterRead",qbe="beforeMain",Xbe="main",Ybe="afterMain",Qbe="beforeWrite",Zbe="write",Jbe="afterWrite",e2e=[Kbe,Vbe,Gbe,qbe,Xbe,Ybe,Qbe,Zbe,Jbe];function Ll(e){return e?(e.nodeName||"").toLowerCase():null}function ra(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function ju(e){var t=ra(e).Element;return e instanceof t||e instanceof Element}function xa(e){var t=ra(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function D3(e){if(typeof ShadowRoot>"u")return!1;var t=ra(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function t2e(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},i=t.attributes[n]||{},o=t.elements[n];!xa(o)||!Ll(o)||(Object.assign(o.style,r),Object.keys(i).forEach(function(a){var l=i[a];l===!1?o.removeAttribute(a):o.setAttribute(a,l===!0?"":l)}))})}function n2e(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var i=t.elements[r],o=t.attributes[r]||{},a=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),l=a.reduce(function(c,u){return c[u]="",c},{});!xa(i)||!Ll(i)||(Object.assign(i.style,l),Object.keys(o).forEach(function(c){i.removeAttribute(c)}))})}}const pH={name:"applyStyles",enabled:!0,phase:"write",fn:t2e,effect:n2e,requires:["computeStyles"]};function Al(e){return e.split("-")[0]}var Iu=Math.max,Iy=Math.min,Zf=Math.round;function NE(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function mH(){return!/^((?!chrome|android).)*safari/i.test(NE())}function Jf(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,o=1;t&&xa(e)&&(i=e.offsetWidth>0&&Zf(r.width)/e.offsetWidth||1,o=e.offsetHeight>0&&Zf(r.height)/e.offsetHeight||1);var a=ju(e)?ra(e):window,l=a.visualViewport,c=!mH()&&n,u=(r.left+(c&&l?l.offsetLeft:0))/i,f=(r.top+(c&&l?l.offsetTop:0))/o,p=r.width/i,m=r.height/o;return{width:p,height:m,top:f,right:u+p,bottom:f+m,left:u,x:u,y:f}}function F3(e){var t=Jf(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function gH(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&D3(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function vs(e){return ra(e).getComputedStyle(e)}function r2e(e){return["table","td","th"].indexOf(Ll(e))>=0}function Pc(e){return((ju(e)?e.ownerDocument:e.document)||window.document).documentElement}function E2(e){return Ll(e)==="html"?e:e.assignedSlot||e.parentNode||(D3(e)?e.host:null)||Pc(e)}function D$(e){return!xa(e)||vs(e).position==="fixed"?null:e.offsetParent}function i2e(e){var t=/firefox/i.test(NE()),n=/Trident/i.test(NE());if(n&&xa(e)){var r=vs(e);if(r.position==="fixed")return null}var i=E2(e);for(D3(i)&&(i=i.host);xa(i)&&["html","body"].indexOf(Ll(i))<0;){var o=vs(i);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||t&&o.willChange==="filter"||t&&o.filter&&o.filter!=="none")return i;i=i.parentNode}return null}function Vm(e){for(var t=ra(e),n=D$(e);n&&r2e(n)&&vs(n).position==="static";)n=D$(n);return n&&(Ll(n)==="html"||Ll(n)==="body"&&vs(n).position==="static")?t:n||i2e(e)||t}function B3(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function ap(e,t,n){return Iu(e,Iy(t,n))}function o2e(e,t,n){var r=ap(e,t,n);return r>n?n:r}function vH(){return{top:0,right:0,bottom:0,left:0}}function yH(e){return Object.assign({},vH(),e)}function bH(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var a2e=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,yH(typeof t!="number"?t:bH(t,Km))};function l2e(e){var t,n=e.state,r=e.name,i=e.options,o=n.elements.arrow,a=n.modifiersData.popperOffsets,l=Al(n.placement),c=B3(l),u=[Po,ka].indexOf(l)>=0,f=u?"height":"width";if(!(!o||!a)){var p=a2e(i.padding,n),m=F3(o),g=c==="y"?Mo:Po,b=c==="y"?Aa:ka,E=n.rects.reference[f]+n.rects.reference[c]-a[c]-n.rects.popper[f],x=a[c]-n.rects.reference[c],C=Vm(o),S=C?c==="y"?C.clientHeight||0:C.clientWidth||0:0,T=E/2-x/2,O=p[g],I=S-m[f]-p[b],_=S/2-m[f]/2+T,$=ap(O,_,I),k=c;n.modifiersData[r]=(t={},t[k]=$,t.centerOffset=$-_,t)}}function s2e(e){var t=e.state,n=e.options,r=n.element,i=r===void 0?"[data-popper-arrow]":r;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||gH(t.elements.popper,i)&&(t.elements.arrow=i))}const c2e={name:"arrow",enabled:!0,phase:"main",fn:l2e,effect:s2e,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function e1(e){return e.split("-")[1]}var u2e={top:"auto",right:"auto",bottom:"auto",left:"auto"};function d2e(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:Zf(n*i)/i||0,y:Zf(r*i)/i||0}}function F$(e){var t,n=e.popper,r=e.popperRect,i=e.placement,o=e.variation,a=e.offsets,l=e.position,c=e.gpuAcceleration,u=e.adaptive,f=e.roundOffsets,p=e.isFixed,m=a.x,g=m===void 0?0:m,b=a.y,E=b===void 0?0:b,x=typeof f=="function"?f({x:g,y:E}):{x:g,y:E};g=x.x,E=x.y;var C=a.hasOwnProperty("x"),S=a.hasOwnProperty("y"),T=Po,O=Mo,I=window;if(u){var _=Vm(n),$="clientHeight",k="clientWidth";if(_===ra(n)&&(_=Pc(n),vs(_).position!=="static"&&l==="absolute"&&($="scrollHeight",k="scrollWidth")),_=_,i===Mo||(i===Po||i===ka)&&o===lm){O=Aa;var R=p&&_===I&&I.visualViewport?I.visualViewport.height:_[$];E-=R-r.height,E*=c?1:-1}if(i===Po||(i===Mo||i===Aa)&&o===lm){T=ka;var M=p&&_===I&&I.visualViewport?I.visualViewport.width:_[k];g-=M-r.width,g*=c?1:-1}}var H=Object.assign({position:l},u&&u2e),B=f===!0?d2e({x:g,y:E},ra(n)):{x:g,y:E};if(g=B.x,E=B.y,c){var L;return Object.assign({},H,(L={},L[O]=S?"0":"",L[T]=C?"0":"",L.transform=(I.devicePixelRatio||1)<=1?"translate("+g+"px, "+E+"px)":"translate3d("+g+"px, "+E+"px, 0)",L))}return Object.assign({},H,(t={},t[O]=S?E+"px":"",t[T]=C?g+"px":"",t.transform="",t))}function f2e(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0?!0:r,o=n.adaptive,a=o===void 0?!0:o,l=n.roundOffsets,c=l===void 0?!0:l,u={placement:Al(t.placement),variation:e1(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,F$(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,F$(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const h2e={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:f2e,data:{}};var pg={passive:!0};function p2e(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,o=i===void 0?!0:i,a=r.resize,l=a===void 0?!0:a,c=ra(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&u.forEach(function(f){f.addEventListener("scroll",n.update,pg)}),l&&c.addEventListener("resize",n.update,pg),function(){o&&u.forEach(function(f){f.removeEventListener("scroll",n.update,pg)}),l&&c.removeEventListener("resize",n.update,pg)}}const m2e={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:p2e,data:{}};var g2e={left:"right",right:"left",bottom:"top",top:"bottom"};function gv(e){return e.replace(/left|right|bottom|top/g,function(t){return g2e[t]})}var v2e={start:"end",end:"start"};function B$(e){return e.replace(/start|end/g,function(t){return v2e[t]})}function j3(e){var t=ra(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function H3(e){return Jf(Pc(e)).left+j3(e).scrollLeft}function y2e(e,t){var n=ra(e),r=Pc(e),i=n.visualViewport,o=r.clientWidth,a=r.clientHeight,l=0,c=0;if(i){o=i.width,a=i.height;var u=mH();(u||!u&&t==="fixed")&&(l=i.offsetLeft,c=i.offsetTop)}return{width:o,height:a,x:l+H3(e),y:c}}function b2e(e){var t,n=Pc(e),r=j3(e),i=(t=e.ownerDocument)==null?void 0:t.body,o=Iu(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=Iu(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),l=-r.scrollLeft+H3(e),c=-r.scrollTop;return vs(i||n).direction==="rtl"&&(l+=Iu(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:l,y:c}}function z3(e){var t=vs(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function CH(e){return["html","body","#document"].indexOf(Ll(e))>=0?e.ownerDocument.body:xa(e)&&z3(e)?e:CH(E2(e))}function lp(e,t){var n;t===void 0&&(t=[]);var r=CH(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),o=ra(r),a=i?[o].concat(o.visualViewport||[],z3(r)?r:[]):r,l=t.concat(a);return i?l:l.concat(lp(E2(a)))}function AE(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function C2e(e,t){var n=Jf(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function j$(e,t,n){return t===fH?AE(y2e(e,n)):ju(t)?C2e(t,n):AE(b2e(Pc(e)))}function S2e(e){var t=lp(E2(e)),n=["absolute","fixed"].indexOf(vs(e).position)>=0,r=n&&xa(e)?Vm(e):e;return ju(r)?t.filter(function(i){return ju(i)&&gH(i,r)&&Ll(i)!=="body"}):[]}function E2e(e,t,n,r){var i=t==="clippingParents"?S2e(e):[].concat(t),o=[].concat(i,[n]),a=o[0],l=o.reduce(function(c,u){var f=j$(e,u,r);return c.top=Iu(f.top,c.top),c.right=Iy(f.right,c.right),c.bottom=Iy(f.bottom,c.bottom),c.left=Iu(f.left,c.left),c},j$(e,a,r));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function SH(e){var t=e.reference,n=e.element,r=e.placement,i=r?Al(r):null,o=r?e1(r):null,a=t.x+t.width/2-n.width/2,l=t.y+t.height/2-n.height/2,c;switch(i){case Mo:c={x:a,y:t.y-n.height};break;case Aa:c={x:a,y:t.y+t.height};break;case ka:c={x:t.x+t.width,y:l};break;case Po:c={x:t.x-n.width,y:l};break;default:c={x:t.x,y:t.y}}var u=i?B3(i):null;if(u!=null){var f=u==="y"?"height":"width";switch(o){case Qf:c[u]=c[u]-(t[f]/2-n[f]/2);break;case lm:c[u]=c[u]+(t[f]/2-n[f]/2);break}}return c}function sm(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,o=n.strategy,a=o===void 0?e.strategy:o,l=n.boundary,c=l===void 0?Wbe:l,u=n.rootBoundary,f=u===void 0?fH:u,p=n.elementContext,m=p===void 0?bh:p,g=n.altBoundary,b=g===void 0?!1:g,E=n.padding,x=E===void 0?0:E,C=yH(typeof x!="number"?x:bH(x,Km)),S=m===bh?Ube:bh,T=e.rects.popper,O=e.elements[b?S:m],I=E2e(ju(O)?O:O.contextElement||Pc(e.elements.popper),c,f,a),_=Jf(e.elements.reference),$=SH({reference:_,element:T,strategy:"absolute",placement:i}),k=AE(Object.assign({},T,$)),R=m===bh?k:_,M={top:I.top-R.top+C.top,bottom:R.bottom-I.bottom+C.bottom,left:I.left-R.left+C.left,right:R.right-I.right+C.right},H=e.modifiersData.offset;if(m===bh&&H){var B=H[i];Object.keys(M).forEach(function(L){var D=[ka,Aa].indexOf(L)>=0?1:-1,z=[Mo,Aa].indexOf(L)>=0?"y":"x";M[L]+=B[z]*D})}return M}function x2e(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,o=n.rootBoundary,a=n.padding,l=n.flipVariations,c=n.allowedAutoPlacements,u=c===void 0?hH:c,f=e1(r),p=f?l?L$:L$.filter(function(b){return e1(b)===f}):Km,m=p.filter(function(b){return u.indexOf(b)>=0});m.length===0&&(m=p);var g=m.reduce(function(b,E){return b[E]=sm(e,{placement:E,boundary:i,rootBoundary:o,padding:a})[Al(E)],b},{});return Object.keys(g).sort(function(b,E){return g[b]-g[E]})}function w2e(e){if(Al(e)===L3)return[];var t=gv(e);return[B$(e),t,B$(t)]}function T2e(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,o=i===void 0?!0:i,a=n.altAxis,l=a===void 0?!0:a,c=n.fallbackPlacements,u=n.padding,f=n.boundary,p=n.rootBoundary,m=n.altBoundary,g=n.flipVariations,b=g===void 0?!0:g,E=n.allowedAutoPlacements,x=t.options.placement,C=Al(x),S=C===x,T=c||(S||!b?[gv(x)]:w2e(x)),O=[x].concat(T).reduce(function(Y,ee){return Y.concat(Al(ee)===L3?x2e(t,{placement:ee,boundary:f,rootBoundary:p,padding:u,flipVariations:b,allowedAutoPlacements:E}):ee)},[]),I=t.rects.reference,_=t.rects.popper,$=new Map,k=!0,R=O[0],M=0;M<O.length;M++){var H=O[M],B=Al(H),L=e1(H)===Qf,D=[Mo,Aa].indexOf(B)>=0,z=D?"width":"height",W=sm(t,{placement:H,boundary:f,rootBoundary:p,altBoundary:m,padding:u}),j=D?L?ka:Po:L?Aa:Mo;I[z]>_[z]&&(j=gv(j));var U=gv(j),q=[];if(o&&q.push(W[B]<=0),l&&q.push(W[j]<=0,W[U]<=0),q.every(function(Y){return Y})){R=H,k=!1;break}$.set(H,q)}if(k)for(var A=b?3:1,P=function(ee){var ue=O.find(function(ne){var se=$.get(ne);if(se)return se.slice(0,ee).every(function(me){return me})});if(ue)return R=ue,"break"},Z=A;Z>0;Z--){var V=P(Z);if(V==="break")break}t.placement!==R&&(t.modifiersData[r]._skip=!0,t.placement=R,t.reset=!0)}}const _2e={name:"flip",enabled:!0,phase:"main",fn:T2e,requiresIfExists:["offset"],data:{_skip:!1}};function H$(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function z$(e){return[Mo,ka,Aa,Po].some(function(t){return e[t]>=0})}function O2e(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,a=sm(t,{elementContext:"reference"}),l=sm(t,{altBoundary:!0}),c=H$(a,r),u=H$(l,i,o),f=z$(c),p=z$(u);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:u,isReferenceHidden:f,hasPopperEscaped:p},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":f,"data-popper-escaped":p})}const I2e={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:O2e};function $2e(e,t,n){var r=Al(e),i=[Po,Mo].indexOf(r)>=0?-1:1,o=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,a=o[0],l=o[1];return a=a||0,l=(l||0)*i,[Po,ka].indexOf(r)>=0?{x:l,y:a}:{x:a,y:l}}function N2e(e){var t=e.state,n=e.options,r=e.name,i=n.offset,o=i===void 0?[0,0]:i,a=hH.reduce(function(f,p){return f[p]=$2e(p,t.rects,o),f},{}),l=a[t.placement],c=l.x,u=l.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=a}const A2e={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:N2e};function k2e(e){var t=e.state,n=e.name;t.modifiersData[n]=SH({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const R2e={name:"popperOffsets",enabled:!0,phase:"read",fn:k2e,data:{}};function M2e(e){return e==="x"?"y":"x"}function P2e(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,o=i===void 0?!0:i,a=n.altAxis,l=a===void 0?!1:a,c=n.boundary,u=n.rootBoundary,f=n.altBoundary,p=n.padding,m=n.tether,g=m===void 0?!0:m,b=n.tetherOffset,E=b===void 0?0:b,x=sm(t,{boundary:c,rootBoundary:u,padding:p,altBoundary:f}),C=Al(t.placement),S=e1(t.placement),T=!S,O=B3(C),I=M2e(O),_=t.modifiersData.popperOffsets,$=t.rects.reference,k=t.rects.popper,R=typeof E=="function"?E(Object.assign({},t.rects,{placement:t.placement})):E,M=typeof R=="number"?{mainAxis:R,altAxis:R}:Object.assign({mainAxis:0,altAxis:0},R),H=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,B={x:0,y:0};if(_){if(o){var L,D=O==="y"?Mo:Po,z=O==="y"?Aa:ka,W=O==="y"?"height":"width",j=_[O],U=j+x[D],q=j-x[z],A=g?-k[W]/2:0,P=S===Qf?$[W]:k[W],Z=S===Qf?-k[W]:-$[W],V=t.elements.arrow,Y=g&&V?F3(V):{width:0,height:0},ee=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:vH(),ue=ee[D],ne=ee[z],se=ap(0,$[W],Y[W]),me=T?$[W]/2-A-se-ue-M.mainAxis:P-se-ue-M.mainAxis,ye=T?-$[W]/2+A+se+ne+M.mainAxis:Z+se+ne+M.mainAxis,de=t.elements.arrow&&Vm(t.elements.arrow),ce=de?O==="y"?de.clientTop||0:de.clientLeft||0:0,oe=(L=H==null?void 0:H[O])!=null?L:0,pe=j+me-oe-ce,ve=j+ye-oe,Te=ap(g?Iy(U,pe):U,j,g?Iu(q,ve):q);_[O]=Te,B[O]=Te-j}if(l){var Ge,je=O==="x"?Mo:Po,Je=O==="x"?Aa:ka,Se=_[I],$e=I==="y"?"height":"width",qe=Se+x[je],Le=Se-x[Je],Fe=[Mo,Po].indexOf(C)!==-1,Ke=(Ge=H==null?void 0:H[I])!=null?Ge:0,Ve=Fe?qe:Se-$[$e]-k[$e]-Ke+M.altAxis,Ce=Fe?Se+$[$e]+k[$e]-Ke-M.altAxis:Le,Pe=g&&Fe?o2e(Ve,Se,Ce):ap(g?Ve:qe,Se,g?Ce:Le);_[I]=Pe,B[I]=Pe-Se}t.modifiersData[r]=B}}const L2e={name:"preventOverflow",enabled:!0,phase:"main",fn:P2e,requiresIfExists:["offset"]};function D2e(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function F2e(e){return e===ra(e)||!xa(e)?j3(e):D2e(e)}function B2e(e){var t=e.getBoundingClientRect(),n=Zf(t.width)/e.offsetWidth||1,r=Zf(t.height)/e.offsetHeight||1;return n!==1||r!==1}function j2e(e,t,n){n===void 0&&(n=!1);var r=xa(t),i=xa(t)&&B2e(t),o=Pc(t),a=Jf(e,i,n),l={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&((Ll(t)!=="body"||z3(o))&&(l=F2e(t)),xa(t)?(c=Jf(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):o&&(c.x=H3(o))),{x:a.left+l.scrollLeft-c.x,y:a.top+l.scrollTop-c.y,width:a.width,height:a.height}}function H2e(e){var t=new Map,n=new Set,r=[];e.forEach(function(o){t.set(o.name,o)});function i(o){n.add(o.name);var a=[].concat(o.requires||[],o.requiresIfExists||[]);a.forEach(function(l){if(!n.has(l)){var c=t.get(l);c&&i(c)}}),r.push(o)}return e.forEach(function(o){n.has(o.name)||i(o)}),r}function z2e(e){var t=H2e(e);return e2e.reduce(function(n,r){return n.concat(t.filter(function(i){return i.phase===r}))},[])}function W2e(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function U2e(e){var t=e.reduce(function(n,r){var i=n[r.name];return n[r.name]=i?Object.assign({},i,r,{options:Object.assign({},i.options,r.options),data:Object.assign({},i.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var W$={placement:"bottom",modifiers:[],strategy:"absolute"};function U$(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function K2e(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,i=t.defaultOptions,o=i===void 0?W$:i;return function(l,c,u){u===void 0&&(u=o);var f={placement:"bottom",orderedModifiers:[],options:Object.assign({},W$,o),modifiersData:{},elements:{reference:l,popper:c},attributes:{},styles:{}},p=[],m=!1,g={state:f,setOptions:function(C){var S=typeof C=="function"?C(f.options):C;E(),f.options=Object.assign({},o,f.options,S),f.scrollParents={reference:ju(l)?lp(l):l.contextElement?lp(l.contextElement):[],popper:lp(c)};var T=z2e(U2e([].concat(r,f.options.modifiers)));return f.orderedModifiers=T.filter(function(O){return O.enabled}),b(),g.update()},forceUpdate:function(){if(!m){var C=f.elements,S=C.reference,T=C.popper;if(U$(S,T)){f.rects={reference:j2e(S,Vm(T),f.options.strategy==="fixed"),popper:F3(T)},f.reset=!1,f.placement=f.options.placement,f.orderedModifiers.forEach(function(M){return f.modifiersData[M.name]=Object.assign({},M.data)});for(var O=0;O<f.orderedModifiers.length;O++){if(f.reset===!0){f.reset=!1,O=-1;continue}var I=f.orderedModifiers[O],_=I.fn,$=I.options,k=$===void 0?{}:$,R=I.name;typeof _=="function"&&(f=_({state:f,options:k,name:R,instance:g})||f)}}}},update:W2e(function(){return new Promise(function(x){g.forceUpdate(),x(f)})}),destroy:function(){E(),m=!0}};if(!U$(l,c))return g;g.setOptions(u).then(function(x){!m&&u.onFirstUpdate&&u.onFirstUpdate(x)});function b(){f.orderedModifiers.forEach(function(x){var C=x.name,S=x.options,T=S===void 0?{}:S,O=x.effect;if(typeof O=="function"){var I=O({state:f,name:C,instance:g,options:T}),_=function(){};p.push(I||_)}})}function E(){p.forEach(function(x){return x()}),p=[]}return g}}var V2e=[m2e,R2e,h2e,pH,A2e,_2e,L2e,c2e,I2e],G2e=K2e({defaultModifiers:V2e}),q2e="tippy-box",EH="tippy-content",X2e="tippy-backdrop",xH="tippy-arrow",wH="tippy-svg-arrow",Qs={passive:!0,capture:!0},TH=function(){return document.body};function h9(e,t,n){if(Array.isArray(e)){var r=e[t];return r??(Array.isArray(n)?n[t]:n)}return e}function W3(e,t){var n={}.toString.call(e);return n.indexOf("[object")===0&&n.indexOf(t+"]")>-1}function _H(e,t){return typeof e=="function"?e.apply(void 0,t):e}function K$(e,t){if(t===0)return e;var n;return function(r){clearTimeout(n),n=setTimeout(function(){e(r)},t)}}function Y2e(e,t){var n=Object.assign({},e);return t.forEach(function(r){delete n[r]}),n}function Q2e(e){return e.split(/\s+/).filter(Boolean)}function du(e){return[].concat(e)}function V$(e,t){e.indexOf(t)===-1&&e.push(t)}function Z2e(e){return e.filter(function(t,n){return e.indexOf(t)===n})}function J2e(e){return e.split("-")[0]}function $y(e){return[].slice.call(e)}function G$(e){return Object.keys(e).reduce(function(t,n){return e[n]!==void 0&&(t[n]=e[n]),t},{})}function sp(){return document.createElement("div")}function x2(e){return["Element","Fragment"].some(function(t){return W3(e,t)})}function e5e(e){return W3(e,"NodeList")}function t5e(e){return W3(e,"MouseEvent")}function n5e(e){return!!(e&&e._tippy&&e._tippy.reference===e)}function r5e(e){return x2(e)?[e]:e5e(e)?$y(e):Array.isArray(e)?e:$y(document.querySelectorAll(e))}function p9(e,t){e.forEach(function(n){n&&(n.style.transitionDuration=t+"ms")})}function q$(e,t){e.forEach(function(n){n&&n.setAttribute("data-state",t)})}function i5e(e){var t,n=du(e),r=n[0];return r!=null&&(t=r.ownerDocument)!=null&&t.body?r.ownerDocument:document}function o5e(e,t){var n=t.clientX,r=t.clientY;return e.every(function(i){var o=i.popperRect,a=i.popperState,l=i.props,c=l.interactiveBorder,u=J2e(a.placement),f=a.modifiersData.offset;if(!f)return!0;var p=u==="bottom"?f.top.y:0,m=u==="top"?f.bottom.y:0,g=u==="right"?f.left.x:0,b=u==="left"?f.right.x:0,E=o.top-r+p>c,x=r-o.bottom-m>c,C=o.left-n+g>c,S=n-o.right-b>c;return E||x||C||S})}function m9(e,t,n){var r=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(i){e[r](i,n)})}function X$(e,t){for(var n=t;n;){var r;if(e.contains(n))return!0;n=n.getRootNode==null||(r=n.getRootNode())==null?void 0:r.host}return!1}var wl={isTouch:!1},Y$=0;function a5e(){wl.isTouch||(wl.isTouch=!0,window.performance&&document.addEventListener("mousemove",OH))}function OH(){var e=performance.now();e-Y$<20&&(wl.isTouch=!1,document.removeEventListener("mousemove",OH)),Y$=e}function l5e(){var e=document.activeElement;if(n5e(e)){var t=e._tippy;e.blur&&!t.state.isVisible&&e.blur()}}function s5e(){document.addEventListener("touchstart",a5e,Qs),window.addEventListener("blur",l5e)}var c5e=typeof window<"u"&&typeof document<"u",u5e=c5e?!!window.msCrypto:!1,d5e={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},f5e={allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999},Zo=Object.assign({appendTo:TH,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},d5e,f5e),h5e=Object.keys(Zo),p5e=function(t){var n=Object.keys(t);n.forEach(function(r){Zo[r]=t[r]})};function IH(e){var t=e.plugins||[],n=t.reduce(function(r,i){var o=i.name,a=i.defaultValue;if(o){var l;r[o]=e[o]!==void 0?e[o]:(l=Zo[o])!=null?l:a}return r},{});return Object.assign({},e,n)}function m5e(e,t){var n=t?Object.keys(IH(Object.assign({},Zo,{plugins:t}))):h5e,r=n.reduce(function(i,o){var a=(e.getAttribute("data-tippy-"+o)||"").trim();if(!a)return i;if(o==="content")i[o]=a;else try{i[o]=JSON.parse(a)}catch{i[o]=a}return i},{});return r}function Q$(e,t){var n=Object.assign({},t,{content:_H(t.content,[e])},t.ignoreAttributes?{}:m5e(e,t.plugins));return n.aria=Object.assign({},Zo.aria,n.aria),n.aria={expanded:n.aria.expanded==="auto"?t.interactive:n.aria.expanded,content:n.aria.content==="auto"?t.interactive?null:"describedby":n.aria.content},n}var g5e=function(){return"innerHTML"};function kE(e,t){e[g5e()]=t}function Z$(e){var t=sp();return e===!0?t.className=xH:(t.className=wH,x2(e)?t.appendChild(e):kE(t,e)),t}function J$(e,t){x2(t.content)?(kE(e,""),e.appendChild(t.content)):typeof t.content!="function"&&(t.allowHTML?kE(e,t.content):e.textContent=t.content)}function RE(e){var t=e.firstElementChild,n=$y(t.children);return{box:t,content:n.find(function(r){return r.classList.contains(EH)}),arrow:n.find(function(r){return r.classList.contains(xH)||r.classList.contains(wH)}),backdrop:n.find(function(r){return r.classList.contains(X2e)})}}function $H(e){var t=sp(),n=sp();n.className=q2e,n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var r=sp();r.className=EH,r.setAttribute("data-state","hidden"),J$(r,e.props),t.appendChild(n),n.appendChild(r),i(e.props,e.props);function i(o,a){var l=RE(t),c=l.box,u=l.content,f=l.arrow;a.theme?c.setAttribute("data-theme",a.theme):c.removeAttribute("data-theme"),typeof a.animation=="string"?c.setAttribute("data-animation",a.animation):c.removeAttribute("data-animation"),a.inertia?c.setAttribute("data-inertia",""):c.removeAttribute("data-inertia"),c.style.maxWidth=typeof a.maxWidth=="number"?a.maxWidth+"px":a.maxWidth,a.role?c.setAttribute("role",a.role):c.removeAttribute("role"),(o.content!==a.content||o.allowHTML!==a.allowHTML)&&J$(u,e.props),a.arrow?f?o.arrow!==a.arrow&&(c.removeChild(f),c.appendChild(Z$(a.arrow))):c.appendChild(Z$(a.arrow)):f&&c.removeChild(f)}return{popper:t,onUpdate:i}}$H.$$tippy=!0;var v5e=1,mg=[],g9=[];function y5e(e,t){var n=Q$(e,Object.assign({},Zo,IH(G$(t)))),r,i,o,a=!1,l=!1,c=!1,u=!1,f,p,m,g=[],b=K$(pe,n.interactiveDebounce),E,x=v5e++,C=null,S=Z2e(n.plugins),T={isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},O={id:x,reference:e,popper:sp(),popperInstance:C,props:n,state:T,plugins:S,clearDelayTimeouts:Ve,setProps:Ce,setContent:Pe,show:We,hide:Ze,hideWithInteractivity:ut,enable:Fe,disable:Ke,unmount:Be,destroy:ot};if(!n.render)return O;var I=n.render(O),_=I.popper,$=I.onUpdate;_.setAttribute("data-tippy-root",""),_.id="tippy-"+O.id,O.popper=_,e._tippy=O,_._tippy=O;var k=S.map(function(re){return re.fn(O)}),R=e.hasAttribute("aria-expanded");return de(),A(),j(),U("onCreate",[O]),n.showOnCreate&&qe(),_.addEventListener("mouseenter",function(){O.props.interactive&&O.state.isVisible&&O.clearDelayTimeouts()}),_.addEventListener("mouseleave",function(){O.props.interactive&&O.props.trigger.indexOf("mouseenter")>=0&&D().addEventListener("mousemove",b)}),O;function M(){var re=O.props.touch;return Array.isArray(re)?re:[re,0]}function H(){return M()[0]==="hold"}function B(){var re;return!!((re=O.props.render)!=null&&re.$$tippy)}function L(){return E||e}function D(){var re=L().parentNode;return re?i5e(re):document}function z(){return RE(_)}function W(re){return O.state.isMounted&&!O.state.isVisible||wl.isTouch||f&&f.type==="focus"?0:h9(O.props.delay,re?0:1,Zo.delay)}function j(re){re===void 0&&(re=!1),_.style.pointerEvents=O.props.interactive&&!re?"":"none",_.style.zIndex=""+O.props.zIndex}function U(re,Ie,Re){if(Re===void 0&&(Re=!0),k.forEach(function(Ye){Ye[re]&&Ye[re].apply(Ye,Ie)}),Re){var Ae;(Ae=O.props)[re].apply(Ae,Ie)}}function q(){var re=O.props.aria;if(re.content){var Ie="aria-"+re.content,Re=_.id,Ae=du(O.props.triggerTarget||e);Ae.forEach(function(Ye){var mt=Ye.getAttribute(Ie);if(O.state.isVisible)Ye.setAttribute(Ie,mt?mt+" "+Re:Re);else{var Nt=mt&&mt.replace(Re,"").trim();Nt?Ye.setAttribute(Ie,Nt):Ye.removeAttribute(Ie)}})}}function A(){if(!(R||!O.props.aria.expanded)){var re=du(O.props.triggerTarget||e);re.forEach(function(Ie){O.props.interactive?Ie.setAttribute("aria-expanded",O.state.isVisible&&Ie===L()?"true":"false"):Ie.removeAttribute("aria-expanded")})}}function P(){D().removeEventListener("mousemove",b),mg=mg.filter(function(re){return re!==b})}function Z(re){if(!(wl.isTouch&&(c||re.type==="mousedown"))){var Ie=re.composedPath&&re.composedPath()[0]||re.target;if(!(O.props.interactive&&X$(_,Ie))){if(du(O.props.triggerTarget||e).some(function(Re){return X$(Re,Ie)})){if(wl.isTouch||O.state.isVisible&&O.props.trigger.indexOf("click")>=0)return}else U("onClickOutside",[O,re]);O.props.hideOnClick===!0&&(O.clearDelayTimeouts(),O.hide(),l=!0,setTimeout(function(){l=!1}),O.state.isMounted||ue())}}}function V(){c=!0}function Y(){c=!1}function ee(){var re=D();re.addEventListener("mousedown",Z,!0),re.addEventListener("touchend",Z,Qs),re.addEventListener("touchstart",Y,Qs),re.addEventListener("touchmove",V,Qs)}function ue(){var re=D();re.removeEventListener("mousedown",Z,!0),re.removeEventListener("touchend",Z,Qs),re.removeEventListener("touchstart",Y,Qs),re.removeEventListener("touchmove",V,Qs)}function ne(re,Ie){me(re,function(){!O.state.isVisible&&_.parentNode&&_.parentNode.contains(_)&&Ie()})}function se(re,Ie){me(re,Ie)}function me(re,Ie){var Re=z().box;function Ae(Ye){Ye.target===Re&&(m9(Re,"remove",Ae),Ie())}if(re===0)return Ie();m9(Re,"remove",p),m9(Re,"add",Ae),p=Ae}function ye(re,Ie,Re){Re===void 0&&(Re=!1);var Ae=du(O.props.triggerTarget||e);Ae.forEach(function(Ye){Ye.addEventListener(re,Ie,Re),g.push({node:Ye,eventType:re,handler:Ie,options:Re})})}function de(){H()&&(ye("touchstart",oe,{passive:!0}),ye("touchend",ve,{passive:!0})),Q2e(O.props.trigger).forEach(function(re){if(re!=="manual")switch(ye(re,oe),re){case"mouseenter":ye("mouseleave",ve);break;case"focus":ye(u5e?"focusout":"blur",Te);break;case"focusin":ye("focusout",Te);break}})}function ce(){g.forEach(function(re){var Ie=re.node,Re=re.eventType,Ae=re.handler,Ye=re.options;Ie.removeEventListener(Re,Ae,Ye)}),g=[]}function oe(re){var Ie,Re=!1;if(!(!O.state.isEnabled||Ge(re)||l)){var Ae=((Ie=f)==null?void 0:Ie.type)==="focus";f=re,E=re.currentTarget,A(),!O.state.isVisible&&t5e(re)&&mg.forEach(function(Ye){return Ye(re)}),re.type==="click"&&(O.props.trigger.indexOf("mouseenter")<0||a)&&O.props.hideOnClick!==!1&&O.state.isVisible?Re=!0:qe(re),re.type==="click"&&(a=!Re),Re&&!Ae&&Le(re)}}function pe(re){var Ie=re.target,Re=L().contains(Ie)||_.contains(Ie);if(!(re.type==="mousemove"&&Re)){var Ae=$e().concat(_).map(function(Ye){var mt,Nt=Ye._tippy,qt=(mt=Nt.popperInstance)==null?void 0:mt.state;return qt?{popperRect:Ye.getBoundingClientRect(),popperState:qt,props:n}:null}).filter(Boolean);o5e(Ae,re)&&(P(),Le(re))}}function ve(re){var Ie=Ge(re)||O.props.trigger.indexOf("click")>=0&&a;if(!Ie){if(O.props.interactive){O.hideWithInteractivity(re);return}Le(re)}}function Te(re){O.props.trigger.indexOf("focusin")<0&&re.target!==L()||O.props.interactive&&re.relatedTarget&&_.contains(re.relatedTarget)||Le(re)}function Ge(re){return wl.isTouch?H()!==re.type.indexOf("touch")>=0:!1}function je(){Je();var re=O.props,Ie=re.popperOptions,Re=re.placement,Ae=re.offset,Ye=re.getReferenceClientRect,mt=re.moveTransition,Nt=B()?RE(_).arrow:null,qt=Ye?{getBoundingClientRect:Ye,contextElement:Ye.contextElement||L()}:e,Ft={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(Zt){var Mt=Zt.state;if(B()){var St=z(),yt=St.box;["placement","reference-hidden","escaped"].forEach(function(lt){lt==="placement"?yt.setAttribute("data-placement",Mt.placement):Mt.attributes.popper["data-popper-"+lt]?yt.setAttribute("data-"+lt,""):yt.removeAttribute("data-"+lt)}),Mt.attributes.popper={}}}},Kt=[{name:"offset",options:{offset:Ae}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!mt}},Ft];B()&&Nt&&Kt.push({name:"arrow",options:{element:Nt,padding:3}}),Kt.push.apply(Kt,(Ie==null?void 0:Ie.modifiers)||[]),O.popperInstance=G2e(qt,_,Object.assign({},Ie,{placement:Re,onFirstUpdate:m,modifiers:Kt}))}function Je(){O.popperInstance&&(O.popperInstance.destroy(),O.popperInstance=null)}function Se(){var re=O.props.appendTo,Ie,Re=L();O.props.interactive&&re===TH||re==="parent"?Ie=Re.parentNode:Ie=_H(re,[Re]),Ie.contains(_)||Ie.appendChild(_),O.state.isMounted=!0,je()}function $e(){return $y(_.querySelectorAll("[data-tippy-root]"))}function qe(re){O.clearDelayTimeouts(),re&&U("onTrigger",[O,re]),ee();var Ie=W(!0),Re=M(),Ae=Re[0],Ye=Re[1];wl.isTouch&&Ae==="hold"&&Ye&&(Ie=Ye),Ie?r=setTimeout(function(){O.show()},Ie):O.show()}function Le(re){if(O.clearDelayTimeouts(),U("onUntrigger",[O,re]),!O.state.isVisible){ue();return}if(!(O.props.trigger.indexOf("mouseenter")>=0&&O.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(re.type)>=0&&a)){var Ie=W(!1);Ie?i=setTimeout(function(){O.state.isVisible&&O.hide()},Ie):o=requestAnimationFrame(function(){O.hide()})}}function Fe(){O.state.isEnabled=!0}function Ke(){O.hide(),O.state.isEnabled=!1}function Ve(){clearTimeout(r),clearTimeout(i),cancelAnimationFrame(o)}function Ce(re){if(!O.state.isDestroyed){U("onBeforeUpdate",[O,re]),ce();var Ie=O.props,Re=Q$(e,Object.assign({},Ie,G$(re),{ignoreAttributes:!0}));O.props=Re,de(),Ie.interactiveDebounce!==Re.interactiveDebounce&&(P(),b=K$(pe,Re.interactiveDebounce)),Ie.triggerTarget&&!Re.triggerTarget?du(Ie.triggerTarget).forEach(function(Ae){Ae.removeAttribute("aria-expanded")}):Re.triggerTarget&&e.removeAttribute("aria-expanded"),A(),j(),$&&$(Ie,Re),O.popperInstance&&(je(),$e().forEach(function(Ae){requestAnimationFrame(Ae._tippy.popperInstance.forceUpdate)})),U("onAfterUpdate",[O,re])}}function Pe(re){O.setProps({content:re})}function We(){var re=O.state.isVisible,Ie=O.state.isDestroyed,Re=!O.state.isEnabled,Ae=wl.isTouch&&!O.props.touch,Ye=h9(O.props.duration,0,Zo.duration);if(!(re||Ie||Re||Ae)&&!L().hasAttribute("disabled")&&(U("onShow",[O],!1),O.props.onShow(O)!==!1)){if(O.state.isVisible=!0,B()&&(_.style.visibility="visible"),j(),ee(),O.state.isMounted||(_.style.transition="none"),B()){var mt=z(),Nt=mt.box,qt=mt.content;p9([Nt,qt],0)}m=function(){var Kt;if(!(!O.state.isVisible||u)){if(u=!0,_.offsetHeight,_.style.transition=O.props.moveTransition,B()&&O.props.animation){var Qt=z(),Zt=Qt.box,Mt=Qt.content;p9([Zt,Mt],Ye),q$([Zt,Mt],"visible")}q(),A(),V$(g9,O),(Kt=O.popperInstance)==null||Kt.forceUpdate(),U("onMount",[O]),O.props.animation&&B()&&se(Ye,function(){O.state.isShown=!0,U("onShown",[O])})}},Se()}}function Ze(){var re=!O.state.isVisible,Ie=O.state.isDestroyed,Re=!O.state.isEnabled,Ae=h9(O.props.duration,1,Zo.duration);if(!(re||Ie||Re)&&(U("onHide",[O],!1),O.props.onHide(O)!==!1)){if(O.state.isVisible=!1,O.state.isShown=!1,u=!1,a=!1,B()&&(_.style.visibility="hidden"),P(),ue(),j(!0),B()){var Ye=z(),mt=Ye.box,Nt=Ye.content;O.props.animation&&(p9([mt,Nt],Ae),q$([mt,Nt],"hidden"))}q(),A(),O.props.animation?B()&&ne(Ae,O.unmount):O.unmount()}}function ut(re){D().addEventListener("mousemove",b),V$(mg,b),b(re)}function Be(){O.state.isVisible&&O.hide(),O.state.isMounted&&(Je(),$e().forEach(function(re){re._tippy.unmount()}),_.parentNode&&_.parentNode.removeChild(_),g9=g9.filter(function(re){return re!==O}),O.state.isMounted=!1,U("onHidden",[O]))}function ot(){O.state.isDestroyed||(O.clearDelayTimeouts(),O.unmount(),ce(),delete e._tippy,O.state.isDestroyed=!0,U("onDestroy",[O]))}}function t1(e,t){t===void 0&&(t={});var n=Zo.plugins.concat(t.plugins||[]);s5e();var r=Object.assign({},t,{plugins:n}),i=r5e(e),o=i.reduce(function(a,l){var c=l&&y5e(l,r);return c&&a.push(c),a},[]);return x2(e)?o[0]:o}t1.defaultProps=Zo;t1.setDefaultProps=p5e;t1.currentInput=wl;Object.assign({},pH,{effect:function(t){var n=t.state,r={popper:{position:n.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(n.elements.popper.style,r.popper),n.styles=r,n.elements.arrow&&Object.assign(n.elements.arrow.style,r.arrow)}});var b5e={mouseover:"mouseenter",focusin:"focus",click:"click"};function C5e(e,t){var n=[],r=[],i=!1,o=t.target,a=Y2e(t,["target"]),l=Object.assign({},a,{trigger:"manual",touch:!1}),c=Object.assign({touch:Zo.touch},a,{showOnCreate:!0}),u=t1(e,l),f=du(u);function p(x){if(!(!x.target||i)){var C=x.target.closest(o);if(C){var S=C.getAttribute("data-tippy-trigger")||t.trigger||Zo.trigger;if(!C._tippy&&!(x.type==="touchstart"&&typeof c.touch=="boolean")&&!(x.type!=="touchstart"&&S.indexOf(b5e[x.type])<0)){var T=t1(C,c);T&&(r=r.concat(T))}}}}function m(x,C,S,T){T===void 0&&(T=!1),x.addEventListener(C,S,T),n.push({node:x,eventType:C,handler:S,options:T})}function g(x){var C=x.reference;m(C,"touchstart",p,Qs),m(C,"mouseover",p),m(C,"focusin",p),m(C,"click",p)}function b(){n.forEach(function(x){var C=x.node,S=x.eventType,T=x.handler,O=x.options;C.removeEventListener(S,T,O)}),n=[]}function E(x){var C=x.destroy,S=x.enable,T=x.disable;x.destroy=function(O){O===void 0&&(O=!0),O&&r.forEach(function(I){I.destroy()}),r=[],b(),C()},x.enable=function(){S(),r.forEach(function(O){return O.enable()}),i=!1},x.disable=function(){T(),r.forEach(function(O){return O.disable()}),i=!0},g(x)}return f.forEach(E),u}t1.setDefaultProps({render:$H});const U3={strip:["script"],clobberPrefix:"user-content-",clobber:["name","id"],ancestors:{tbody:["table"],tfoot:["table"],thead:["table"],td:["table"],th:["table"],tr:["table"]},protocols:{href:["http","https","mailto","xmpp","irc","ircs"],cite:["http","https"],src:["http","https"],longDesc:["http","https"]},tagNames:["h1","h2","h3","h4","h5","h6","br","b","i","strong","em","a","pre","code","img","tt","div","ins","del","sup","sub","p","ol","ul","table","thead","tbody","tfoot","blockquote","dl","dt","dd","kbd","q","samp","var","hr","ruby","rt","rp","li","tr","td","th","s","strike","summary","details","caption","figure","figcaption","abbr","bdo","cite","dfn","mark","small","span","time","wbr","input"],attributes:{a:["href"],img:["src","longDesc"],input:[["type","checkbox"],["disabled",!0]],li:[["className","task-list-item"]],div:["itemScope","itemType"],blockquote:["cite"],del:["cite"],ins:["cite"],q:["cite"],"*":["abbr","accept","acceptCharset","accessKey","action","align","alt","ariaDescribedBy","ariaHidden","ariaLabel","ariaLabelledBy","axis","border","cellPadding","cellSpacing","char","charOff","charSet","checked","clear","cols","colSpan","color","compact","coords","dateTime","dir","disabled","encType","htmlFor","frame","headers","height","hrefLang","hSpace","isMap","id","label","lang","maxLength","media","method","multiple","name","noHref","noShade","noWrap","open","prompt","readOnly","rel","rev","rows","rowSpan","rules","scope","selected","shape","size","span","start","summary","tabIndex","target","title","type","useMap","vAlign","value","vSpace","width","itemProp"]},required:{input:{type:"checkbox",disabled:!0}}},Tl={}.hasOwnProperty,v9={root:{children:eN},doctype:E5e,comment:x5e,element:{tagName:AH,properties:w5e,children:eN},text:{value:O5e},"*":{data:tN,position:tN}};function S5e(e,t){let n={type:"root",children:[]};if(e&&typeof e=="object"&&e.type){const r=NH(Object.assign({},U3,t||{}),e,[]);r&&(Array.isArray(r)?r.length===1?n=r[0]:n.children=r:n=r)}return n}function NH(e,t,n){const r=t&&t.type,i={type:t.type};let o;if(Tl.call(v9,r)){let a=v9[r];if(typeof a=="function"&&(a=a(e,t)),a){const l=Object.assign({},a,v9["*"]);let c;o=!0;for(c in l)if(Tl.call(l,c)){const u=l[c](e,t[c],t,n);u===!1?(o=void 0,i[c]=t[c]):u!=null&&(i[c]=u)}}}return o?i:i.type==="element"&&e.strip&&!e.strip.includes(i.tagName)?i.children:void 0}function eN(e,t,n,r){const i=[];if(Array.isArray(t)){let o=-1;for(n.type==="element"&&r.push(n.tagName);++o<t.length;){const a=NH(e,t[o],r);a&&(Array.isArray(a)?i.push(...a):i.push(a))}n.type==="element"&&r.pop()}return i}function E5e(e){return e.allowDoctypes?{name:T5e}:void 0}function x5e(e){return e.allowComments?{value:_5e}:void 0}function w5e(e,t,n,r){const i=AH(e,n.tagName,n,r),o=e.attributes||{},a=e.required||{},l=t||{},c=Object.assign({},nN(o["*"]),nN(i&&Tl.call(o,i)?o[i]:[])),u={};let f;for(f in l)if(Tl.call(l,f)){let p=l[f],m;if(Tl.call(c,f))m=c[f];else if(N5e(f)&&Tl.call(c,"data*"))m=c["data*"];else continue;p=Array.isArray(p)?I5e(e,p,f,m):kH(e,p,f,m),p!=null&&(u[f]=p)}if(i&&Tl.call(a,i))for(f in a[i])Tl.call(u,f)||(u[f]=a[i][f]);return u}function T5e(){return"html"}function AH(e,t,n,r){const i=typeof t=="string"?t:"";let o=-1;if(!i||i==="*"||e.tagNames&&!e.tagNames.includes(i))return!1;if(e.ancestors&&Tl.call(e.ancestors,i)){for(;++o<e.ancestors[i].length;)if(r.includes(e.ancestors[i][o]))return i;return!1}return i}function _5e(e,t){const n=typeof t=="string"?t:"",r=n.indexOf("-->");return r<0?n:n.slice(0,r)}function O5e(e,t){return typeof t=="string"?t:""}function tN(e,t){return t}function I5e(e,t,n,r){let i=-1;const o=[];for(;++i<t.length;){const a=kH(e,t[i],n,r);a!=null&&o.push(a)}return o}function kH(e,t,n,r){if((typeof t=="boolean"||typeof t=="number"||typeof t=="string")&&$5e(e,t,n)&&(r.length===0||r.some(i=>i&&typeof i=="object"&&"flags"in i?i.test(String(t)):i===t)))return e.clobberPrefix&&e.clobber&&e.clobber.includes(n)?e.clobberPrefix+t:t}function $5e(e,t,n){const r=String(t),i=r.indexOf(":"),o=r.indexOf("?"),a=r.indexOf("#"),l=r.indexOf("/"),c=e.protocols&&Tl.call(e.protocols,n)?e.protocols[n].concat():[];let u=-1;if(c.length===0||i<0||l>-1&&i>l||o>-1&&i>o||a>-1&&i>a)return!0;for(;++u<c.length;)if(i===c[u].length&&r.slice(0,c[u].length)===c[u])return!0;return!1}function nN(e){const t={};let n=-1;for(;++n<e.length;){const r=e[n];Array.isArray(r)?t[r[0]]=r.slice(1):t[r]=[]}return t}function N5e(e){return e.length>4&&e.slice(0,4).toLowerCase()==="data"}var dl={};const A5e=[65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111];dl.REPLACEMENT_CHARACTER="<22>";dl.CODE_POINTS={EOF:-1,NULL:0,TABULATION:9,CARRIAGE_RETURN:13,LINE_FEED:10,FORM_FEED:12,SPACE:32,EXCLAMATION_MARK:33,QUOTATION_MARK:34,NUMBER_SIGN:35,AMPERSAND:38,APOSTROPHE:39,HYPHEN_MINUS:45,SOLIDUS:47,DIGIT_0:48,DIGIT_9:57,SEMICOLON:59,LESS_THAN_SIGN:60,EQUALS_SIGN:61,GREATER_THAN_SIGN:62,QUESTION_MARK:63,LATIN_CAPITAL_A:65,LATIN_CAPITAL_F:70,LATIN_CAPITAL_X:88,LATIN_CAPITAL_Z:90,RIGHT_SQUARE_BRACKET:93,GRAVE_ACCENT:96,LATIN_SMALL_A:97,LATIN_SMALL_F:102,LATIN_SMALL_X:120,LATIN_SMALL_Z:122,REPLACEMENT_CHARACTER:65533};dl.CODE_POINT_SEQUENCES={DASH_DASH_STRING:[45,45],DOCTYPE_STRING:[68,79,67,84,89,80,69],CDATA_START_STRING:[91,67,68,65,84,65,91],SCRIPT_STRING:[115,99,114,105,112,116],PUBLIC_STRING:[80,85,66,76,73,67],SYSTEM_STRING:[83,89,83,84,69,77]};dl.isSurrogate=function(e){return e>=55296&&e<=57343};dl.isSurrogatePair=function(e){return e>=56320&&e<=57343};dl.getSurrogatePairCodePoint=function(e,t){return(e-55296)*1024+9216+t};dl.isControlCodePoint=function(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159};dl.isUndefinedCodePoint=function(e){return e>=64976&&e<=65007||A5e.indexOf(e)>-1};var K3={controlCharacterInInputStream:"control-character-in-input-stream",noncharacterInInputStream:"noncharacter-in-input-stream",surrogateInInputStream:"surrogate-in-input-stream",nonVoidHtmlElementStartTagWithTrailingSolidus:"non-void-html-element-start-tag-with-trailing-solidus",endTagWithAttributes:"end-tag-with-attributes",endTagWithTrailingSolidus:"end-tag-with-trailing-solidus",unexpectedSolidusInTag:"unexpected-solidus-in-tag",unexpectedNullCharacter:"unexpected-null-character",unexpectedQuestionMarkInsteadOfTagName:"unexpected-question-mark-instead-of-tag-name",invalidFirstCharacterOfTagName:"invalid-first-character-of-tag-name",unexpectedEqualsSignBeforeAttributeName:"unexpected-equals-sign-before-attribute-name",missingEndTagName:"missing-end-tag-name",unexpectedCharacterInAttributeName:"unexpected-character-in-attribute-name",unknownNamedCharacterReference:"unknown-named-character-reference",missingSemicolonAfterCharacterReference:"missing-semicolon-after-character-reference",unexpectedCharacterAfterDoctypeSystemIdentifier:"unexpected-character-after-doctype-system-identifier",unexpectedCharacterInUnquotedAttributeValue:"unexpected-character-in-unquoted-attribute-value",eofBeforeTagName:"eof-before-tag-name",eofInTag:"eof-in-tag",missingAttributeValue:"missing-attribute-value",missingWhitespaceBetweenAttributes:"missing-whitespace-between-attributes",missingWhitespaceAfterDoctypePublicKeyword:"missing-whitespace-after-doctype-public-keyword",missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers:"missing-whitespace-between-doctype-public-and-system-identifiers",missingWhitespaceAfterDoctypeSystemKeyword:"missing-whitespace-after-doctype-system-keyword",missingQuoteBeforeDoctypePublicIdentifier:"missing-quote-before-doctype-public-identifier",missingQuoteBeforeDoctypeSystemIdentifier:"missing-quote-before-doctype-system-identifier",missingDoctypePublicIdentifier:"missing-doctype-public-identifier",missingDoctypeSystemIdentifier:"missing-doctype-system-identifier",abruptDoctypePublicIdentifier:"abrupt-doctype-public-identifier",abruptDoctypeSystemIdentifier:"abrupt-doctype-system-identifier",cdataInHtmlContent:"cdata-in-html-content",incorrectlyOpenedComment:"incorrectly-opened-comment",eofInScriptHtmlCommentLikeText:"eof-in-script-html-comment-like-text",eofInDoctype:"eof-in-doctype",nestedComment:"nested-comment",abruptClosingOfEmptyComment:"abrupt-closing-of-empty-comment",eofInComment:"eof-in-comment",incorrectlyClosedComment:"incorrectly-closed-comment",eofInCdata:"eof-in-cdata",absenceOfDigitsInNumericCharacterReference:"absence-of-digits-in-numeric-character-reference",nullCharacterReference:"null-character-reference",surrogateCharacterReference:"surrogate-character-reference",characterReferenceOutsideUnicodeRange:"character-reference-outside-unicode-range",controlCharacterReference:"control-character-reference",noncharacterCharacterReference:"noncharacter-character-reference",missingWhitespaceBeforeDoctypeName:"missing-whitespace-before-doctype-name",missingDoctypeName:"missing-doctype-name",invalidCharacterSequenceAfterDoctypeName:"invalid-character-sequence-after-doctype-name",duplicateAttribute:"duplicate-attribute",nonConformingDoctype:"non-conforming-doctype",missingDoctype:"missing-doctype",misplacedDoctype:"misplaced-doctype",endTagWithoutMatchingOpenElement:"end-tag-without-matching-open-element",closingOfElementWithOpenChildElements:"closing-of-element-with-open-child-elements",disallowedContentInNoscriptInHead:"disallowed-content-in-noscript-in-head",openElementsLeftAfterEof:"open-elements-left-after-eof",abandonedHeadElementChild:"abandoned-head-element-child",misplacedStartTagForHeadElement:"misplaced-start-tag-for-head-element",nestedNoscriptInHead:"nested-noscript-in-head",eofInElementThatCanContainOnlyText:"eof-in-element-that-can-contain-only-text"};const jd=dl,y9=K3,Jc=jd.CODE_POINTS,k5e=65536;let R5e=class{constructor(){this.html=null,this.pos=-1,this.lastGapPos=-1,this.lastCharPos=-1,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=k5e}_err(){}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(t){if(this.pos!==this.lastCharPos){const n=this.html.charCodeAt(this.pos+1);if(jd.isSurrogatePair(n))return this.pos++,this._addGap(),jd.getSurrogatePairCodePoint(t,n)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,Jc.EOF;return this._err(y9.surrogateInInputStream),t}dropParsedChunk(){this.pos>this.bufferWaterline&&(this.lastCharPos-=this.pos,this.html=this.html.substring(this.pos),this.pos=0,this.lastGapPos=-1,this.gapStack=[])}write(t,n){this.html?this.html+=t:this.html=t,this.lastCharPos=this.html.length-1,this.endOfChunkHit=!1,this.lastChunkWritten=n}insertHtmlAtCurrentPos(t){this.html=this.html.substring(0,this.pos+1)+t+this.html.substring(this.pos+1,this.html.length),this.lastCharPos=this.html.length-1,this.endOfChunkHit=!1}advance(){if(this.pos++,this.pos>this.lastCharPos)return this.endOfChunkHit=!this.lastChunkWritten,Jc.EOF;let t=this.html.charCodeAt(this.pos);return this.skipNextNewLine&&t===Jc.LINE_FEED?(this.skipNextNewLine=!1,this._addGap(),this.advance()):t===Jc.CARRIAGE_RETURN?(this.skipNextNewLine=!0,Jc.LINE_FEED):(this.skipNextNewLine=!1,jd.isSurrogate(t)&&(t=this._processSurrogate(t)),t>31&&t<127||t===Jc.LINE_FEED||t===Jc.CARRIAGE_RETURN||t>159&&t<64976||this._checkForProblematicCharacters(t),t)}_checkForProblematicCharacters(t){jd.isControlCodePoint(t)?this._err(y9.controlCharacterInInputStream):jd.isUndefinedCodePoint(t)&&this._err(y9.noncharacterInInputStream)}retreat(){this.pos===this.lastGapPos&&(this.lastGapPos=this.gapStack.pop(),this.pos--),this.pos--}};var M5e=R5e,P5e=new Uint16Array([4,52,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,106,303,412,810,1432,1701,1796,1987,2114,2360,2420,2484,3170,3251,4140,4393,4575,4610,5106,5512,5728,6117,6274,6315,6345,6427,6516,7002,7910,8733,9323,9870,10170,10631,10893,11318,11386,11467,12773,13092,14474,14922,15448,15542,16419,17666,18166,18611,19004,19095,19298,19397,4,16,69,77,97,98,99,102,103,108,109,110,111,112,114,115,116,117,140,150,158,169,176,194,199,210,216,222,226,242,256,266,283,294,108,105,103,5,198,1,59,148,1,198,80,5,38,1,59,156,1,38,99,117,116,101,5,193,1,59,167,1,193,114,101,118,101,59,1,258,4,2,105,121,182,191,114,99,5,194,1,59,189,1,194,59,1,1040,114,59,3,55349,56580,114,97,118,101,5,192,1,59,208,1,192,112,104,97,59,1,913,97,99,114,59,1,256,100,59,1,10835,4,2,103,112,232,237,111,110,59,1,260,102,59,3,55349,56632,112,108,121,70,117,110,99,116,105,111,110,59,1,8289,105,110,103,5,197,1,59,264,1,197,4,2,99,115,272,277,114,59,3,55349,56476,105,103,110,59,1,8788,105,108,100,101,5,195,1,59,292,1,195,109,108,5,196,1,59,301,1,196,4,8,97,99,101,102,111,114,115,117,321,350,354,383,388,394,400,405,4,2,99,114,327,336,107,115,108,97,115,104,59,1,8726,4,2,118,119,342,345,59,1,10983,101,100,59,1,8966,121,59,1,1041,4,3,99,114,116,362,369,379,97,117,115,101,59,1,8757,110,111,117,108,108,105,115,59,1,8492,97,59,1,914,114,59,3,55349,56581,112,102,59,3,55349,56633,101,118,101,59,1,728,99,114,59,1,8492,109,112,101,113,59,1,8782,4,14,72,79,97,99,100,101,102,104,105,108,111,114,115,117,442,447,456,504,542,547,569,573,577,616,678,784,790,796,99,121,59,1,1063,80,89,5,169,1,59,454,1,169,4,3,99,112,121,464,470,497,117,116,101,59,1,262,4,2,59,105,476,478,1,8914,116,97,108,68,105,102,102,101,114,101,110,116,105,97,108,68,59,1,8517,108,101,121,115,59,1,8493,4,4,97,101,105,111,514,520,530,535,114,111,110,59,1,268,100,105,108,5,199,1,59,528,1,199,114,99,59,1,264,110,105,110,116,59,1,8752,111,116,59,1,266,4,2,100,110,553,560,105,108,108,97,59,1,184,116,101,114,68,111,116,59,1,183,114,59,1,8493,105,59,1,935,114,99,108,101,4,4,68,77,80,84,591,596,603,609,111,116,59,1,8857,105,110,117,115,59,1,8854,108,117,115,59,1,8853,105,109,101,115,59,1,8855,111,4,2,99,115,623,646,107,119,105,115,101,67,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59,1,8754,101,67,117,114,108,121,4,2,68,81,658,671,111,117,98,108,101,81,117,111,116,101,59,1,8221,117,111,116,101,59,1,8217,4,4,108,110,112,117,688,701,736,753,111,110,4,2,59,101,696,698,1,8759,59,1,10868,4,3,103,105,116,709,717,722,114,117,101,110,116,59,1,8801,110,116,59,1,8751,111,117,114,73,110,116,101,103,114,97,108,59,1,8750,4,2,102,114,742,745,59,1,8450,111,100,117,99,116,59,1,8720,110,116,101,114,67,108,111,99,107,119,105,115,101,67,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59,1,8755,111,115,115,59,1,10799,99,114,59,3,55349,56478,112,4,2,59,67,803,805,1,8915,97,112,59,1,8781,4,11,68,74,83,90,97,99,101,102,105,111,115,834,850,855,860,865,888,903,916,921,1011,1415,4,2,59,111,840,842,1,8517,116,114,97,104,100,59,1,10513,99,121,59,1,1026,99,121,59,1,1029,99,121,59,1,1039,4,3,103,114,115,873,879,883,103,101,114,59,1,8225,114,59,1,8609,104,118,59,1,10980,4,2,97,121,894,900,114,111,110,59,1,270,59,1,1044,108,4,2,59,116,910,912,1,8711,97,59,1,916,114,59,3,55349,56583,4,2,97,102,927,998,4,2,99,109,933,992,114,105,116,105,99,97,108,4,4,65,68,71,84,950,957,978,985,99,117,116,101,59,1,180,111,4,2,116,117,964,967,59,1,729,98,108,101,65,99,117,116,101,59,1,733,114,97,118,101,59,1,96,105,108,100,101,59,1,732,111,110,100,59,1,8900,102,101,114,101,110,116,105,97,108,68,59,1,8518,4,4,112,116,117,119,1021,1026,1048,1249,102,59,3,55349,56635,4,3,59,68,69,1034,1036,1041,1,168,111,116,59,1,8412,113,117,97,108,59,1,8784,98,108,101,4,6,67,68,76,82,85,86,1065,1082,1101,1189,1211,1236,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59,1,8751,111,4,2,116,119,1089,1092,59,1,168,110,65,114,114,111,119,59,1,8659,4,2,101,111,1107,1141,102,116,4,3,65,82,84,1117,1124,1136,114,114,111,119,59,1,8656,105,103,104,116,65,114,114,111,119,59,1,8660,101,101,59,1,10980,110,103,4,2,76,82,1149,1177,101,102,116,4,2,65,82,1158,1165,114,114,111,119,59,1,10232,105,103,104,116,65,114,114,111,119,59,1,10234,105,103,104,116,65,114,114,111,119,59,1,10233,105,103,104,116,4,2,65,84,1199,1206,114,114,111,119,59,1,8658,101,101,59,1,8872,112,4,2,65,68,1218,1225,114,114,111,119,59,1,8657,111,119,110,65,114,114,111,119,59,1,8661,101,114,116,105,99,97,108,66,97,114,59,1,8741,110,4,6,65,66,76,82,84,97,1264,1292,1299,1352,1391,1408,114,114,111,119,4,3,59,66,85,1276,1278,1283,1,8595,97,114,59,1,10515,112,65,114,114,111,119,59,1,8693,114,101,118,101,59,1,785,101,102,116,4,3,82,84,86,1310,1323,1334,105,103,104,116,86,101,99,116,111,114,59,1,10576,101,101,86,101,99,116,111,114,59,1,10590,101,99,116,111,114,4,2,59,66,1345,1347,1,8637,97,114,59,1,10582,105,103,104,116,4,2,84,86,1362,1373,101,101,86,101,99,116,111,114,59,1,10591,101,99,116,111,114,4,2,59,66,1384,1386,1,8641,97,114,59,1,10583,101,101,4,2,59,65,1399,1401,1,8868,114,114,111,119,59,1,8615,114,114,111,119,59,1,8659,4,2,99,116,1421,1426,114,59,3,55349,56479,114,111,107,59,1,272,4,16,78,84,97,99,100,102,103,108,109,111,112,113,115,116,117,120,1466,1470,1478,1489,1515,1520,1525,1536,1544,1593,1609,1617,1650,1664,1668,1677,71,59,1,330,72,5,208,1,59,1476,1,208,99,117,116,101,5,201,1,59,1487,1,201,4,3,97,105,121,1497,1503,1512,114,111,110,59,1,282,114,99,5,202,1,59,1510,1,202,59,1,1069,111,116,59,1,278,114,59,3,55349,56584,114,97,118,101,5,200,1,59,1534,1,200,101,109,101,110,116,59,1,8712,4,2,97,112,1550,1555,99,114,59,1,274,116,121,4,2,83,86,1563,1576,109,97,108,108,83,113,117,97,114,101,59,1,9723,101,114,121,83,109,97,108,108,83,113,117,97,114,101,59,1,9643,4,2,103,112,1599,1604,111,110,59,1,280,102,59,3,55349,56636,115,105,108,111,110,59,1,917,117,4,2,97,105,1624,1640,108,4,2,59,84,1631,1633,1,10869,105,108,100,101,59,1,8770,108,105,98,114,105,117,109,59,1,8652,4,2,99,105,1656,1660,114,59,1,8496,109,59,1,10867,97,59,1,919,109,108,5,203,1,59,1675,1,203,4,2,105,112,1683,1689,115,116,115,59,1,8707,111,110,101,110,116,105,97,108,69,59,1,8519,4,5,99,102,105,111,115,1713,1717,1722,1762,1791,121,59,1,1060,114,59,3,55349,56585,108,108,101,100,4,2,83,86,1732,1745,109,97,108,108,83,113,117,97,114,101,59,1,9724,101,114,121,83,109,97,108,108,83,113,117,97,114,101,59,1,9642,4,3,112,114,117,1770,1775,1781,102,59,3,55349,56637,65,108,108,59,1,8704,114,105,101,114,116,114,102,59,1,8497,99,114,59,1,8497,4,12,74,84,97,98,99,100,102,103,111,114,115,116,1822,1827,1834,1848,1855,1877,1882,1887,1890,1896,1978,1984,99,121,59,1,1027,5,62,1,59,1832,1,62,109,109,97,4,2,59,100,1843,1845,1,915,59,1,988,114,101,118,101,59,1,286,4,3,101,105,121,1863,1869,1874,100,105,108,59,1,290,114,99,59,1,284,59,1,1043,111,116,59,1,288,114,59,3,55349,56586,59,1,8921,112,102,59,3,55349,56638,101,97,116,101,114,4,6,69,70,71,76,83,84,1915,1933,1944,1953,1959,1971,113,117,97,108,4,2,59,76,1925,1927,1,8805,101,115,115,59,1,8923,117,108,108,69,113,117,97,108,59,1,8807,114,101,97,116,101,114,59,1,10914,101,115,115,59,1,8823,108,97,110,116,69,113,117,97,108,59,1,10878,105,108,100,101,59,1,8819,99,114,59,3,55349,56482,59,1,8811,4,8,65,97,99,102,105,111,115,117,2005,2012,2026,2032,2036,2049,2073,2089,82,68,99,121,59,1,1066,4,2,99,116,2018,2023,101,107,59,1,711,59,1,94,105,114,99,59,1,292,114,59,1,8460,108,98,101,114,116,83,112,97,99,101,59,1,8459,4,2,112,114,2055,2059,102,59,1,8461,105,122,111,110,116,97,108,76,105,110,101,59,1,9472,4,2,99,116,2079,2083,114,59,1,8459,114,111,107,59,1,294,109,112,4,2,68,69,2097,2107,111,119,110,72,117,109,112,59,1,8782,113,117,97,108,59,1,8783,4,14,69,74,79,97,99,100,102,103,109,110,111,115,116,117,2144,2149,2155,2160,2171,2189,2194,2198,2209,2245,2307,2329,2334,2341,99,121,59,1,1045,108,105,103,59,1,306,99,121,59,1,1025,99,117,116,101,5,205,1,59,2169,1,205,4,2,105,121,2177,2186,114,99,5,206,1,59,2184,1,206,59,1,1048,111,116,59,1,304,114,59,1,8465,114,97,118,101,5,204,1,59,2207,1,204,4,3,59,97,112,2217,2219,2238,1,8465,4,2,99,103,2225,2229,114,59,1,298,105,110,97,114,121,73,59,1,8520,108,105,101,115,59,1,8658,4,2,116,118,2251,2281,4,2,59,101,2257,2259,1,8748,4,2,103,114,2265,2271,114,97,108,59,1,8747,115,101,99,116,105,111,110,59,1,8898,105,115,105,98,108,101,4,2,67,84,2293,2300,111,109,109,97,59,1,8291,105,109,101,115,59,1,8290,4,3,103,112,116,2315,2320,2325,111,110,59,1,302,102,59,3,55349,56640,97,59,1,921,99,114,59,1,8464,105,108,100,101,59,1,296,4,2,107,109,2347,2352,99,121,59,1,1030,108,5,207,1,59,2358,1,207,4,5,99,102,111,115,117,2372,2386,2391,2397,2414,4,2,105,121,2378,2383,114,99,59,1,308,59,1,1049,114,59,3,55349,56589,112,102,59,3,55349,56641,4,2,99,101,2403,2408,114,59,3,55349,56485,114,99,121,59,1,1032,107,99,121,59,1,1028,4,7,72,74,97,99,102,111,115,2436,2441,2446,2452,2467,2472,2478,99,121,59,1,1061,99,121,59,1,1036,112,112,97,59,1,922,4,2,101,121,2458,2464,100,105,108,59,1,310,59,1,1050,114,59,3,55349,56590,112,102,59,3,55349,56642,99,114,59,3,55349,56486,4,11,74,84,97,99,101,102,108,109,111,115,116,2508,2513,2520,2562,2585,2981,2986,3004,3011,3146,3167,99,121,59,1,1033,5,60,1,59,2518,1,60,4,5,99,109,110,112,114,2532,2538,2544,2548,2558,117,116,101,59,1,313,98,100,97,59,1,923,103,59,1,10218,108,97,99,101,116,114,102,59,1,8466,114,59,1,8606,4,3,97,101,121,2570,2576,2582,114,111,110,59,1,317,100,105,108,59,1,315,59,1,1051,4,2,102,115,2591,2907,116,4,10,65,67,68,70,82,84,85,86,97,114,2614,2663,2672,2728,2735,2760,2820,2870,2888,2895,4,2,110,114,2620,2633,103,108,101,66,114,97,99,107,101,116,59,1,10216,114,111,119,4,3,59,66,82,2644,2646,2651,1,8592,97,114,59,1,8676,105,103,104,116,65,114,114,111,119,59,1,8646,101,105,108,105,110,103,59,1,8968,111,4,2,117,119,2679,2692,98,108,101,66,114,97,99,107,101,116,59,1,10214,110,4,2,84,86,2699,2710,101,101,86,101,99,116,111,114,59,1,10593,101,99,116,111,114,4,2,59,66,2721,2723,1,8643,97,114,59,1,10585,108,111,111,114,59,1,8970,105,103,104,116,4,2,65,86,2745,2752,114,114,111,119,59,1,8596,101,99,116,111,114,59,1,10574,4,2,101,114,2766,2792,101,4,3,59,65,86,2775,2777,2784,1,8867,114,114,111,119,59,1,8612,101,99,116,111,114,59,1,10586,105,97,110,103,108,101,4,3,59,66,69,2806,2808,2813,1,8882,97,114,59,1,10703,113,117,97,108,59,1,8884,112,4,3,68,84,86,2829,2841,2852,111,119,110,86,101,99,116,111,114,59,1,10577,101,101,86,101,99,116,111,114,59,1,10592,101,99,116,111,114,4,2,59,66,2863,2865,1,8639,97,114,59,1,10584,101,99,116,111,114,4,2,59,66,2881,2883,1,8636,97,114,59,1,10578,114,114,111,119,59,1,8656,105,103,104,116,97,114,114,111,119,59,1,8660,115,4,6,69,70,71,76,83,84,2922,2936,2947,2956,2962,2974,113,117,97,108,71,114,101,97,116,101,114,59,1,8922,117,108,108,69,113,117,97,108,59,1,8806,114,101,97,116,101,114,59,1,8822,101,115,115,59,1,10913,108,97,110,116,69,113,117,97,108,59,1,10877,105,108,100,101,59,1,8818,114,59,3,55349,56591,4,2,59,101,2992,2994,1,8920,102,116,97,114,114,111,119,59,1,8666,105,100,111,116,59,1,319,4,3,110,112,119,3019,3110,3115,103,4,4,76,82,108,114,3030,3058,3070,3098,101,102,116,4,2,65,82,3039,3046,114,114,111,119,59,1,10229,105,103,104,116,65,114,114,111,119,59,1,10231,105,103,104,116,65,114,114,111,119,59,1,10230,101,102,116,4,2,97,114,3079,3086,114,114,111,119,59,1,10232,105,103,104,116,97,114,114,111,119,59,1,10234,105,103,104,116,97,114,114,111,119,59,1,10233,102,59,3,55349,56643,101,114,4,2,76,82,3123,3134,101,102,116,65,114,114,111,119,59,1,8601,105,103,104,116,65,114,114,111,119,59,1,8600,4,3,99,104,116,3154,3158,3161,114,59,1,8466,59,1,8624,114,111,107,59,1,321,59,1,8810,4,8,97,99,101,102,105,111,115,117,3188,3192,3196,3222,3227,3237,3243,3248,112,59,1,10501,121,59,1,1052,4,2,100,108,3202,3213,105,117,109,83,112,97,99,101,59,1,8287,108,105,110,116,114,102,59,1,8499,114,59,3,55349,56592,110,117,115,80,108,117,115,59,1,8723,112,102,59,3,55349,56644,99,114,59,1,8499,59,1,924,4,9,74,97,99,101,102,111,115,116,117,3271,3276,3283,3306,3422,3427,4120,4126,4137,99,121,59,1,1034,99,117,116,101,59,1,323,4,3,97,101,121,3291,3297,3303,114,111,110,59,1,327,100,105,108,59,1,325,59,1,1053,4,3,103,115,119,3314,3380,3415,97,116,105,118,101,4,3,77,84,86,3327,3340,3365,101,100,105,117,109,83,112,97,99,101,59,1,8203,104,105,4,2,99,110,3348,3357,107,83,112,97,99,101,59,1,8203,83,112,97,99,101,59,1,8203,101,114,121,84,104,105,110,83,112,97,99,101,59,1,8203,116,101,100,4,2,71,76,3389,3405,114,101,97,116,101,114,71,114,101,97,116,101,114,59,1,8811,101,115,115,76,101,115,115,59,1,8810,76,105,110,101,59,1,10,114,59,3,55349,56593,4,4,66,110,112,116,3437,3444,3460,3464,114,101,97,107,59,1,8288,66,114,101,97,107,105,110,103,83,112,97,99,101,59,1,160,102,59,1,8469,4,13,59,67,68,69,71,72,76,78,80,82,83,84,86,3492,3494,3517,3536,3578,3657,3685,3784,3823,3860,3915,4066,4107,1,10988,4,2,111,117,3500,3510,110,103,114,117,101,110,116,59,1,8802,112,67,97,112,59,1,8813,111,117,98,108,101,86,101,114,116,105,99,97,108,66,97,114,59,1,8742,4,3,108,113,120,3544,3552,3571,101,109,101,110,116,59,1,8713,117,97,108,4,2,59,84,3561,3563,1,8800,105,108,100,101,59,3,8770,824,105,115,116,115,59,1,8708,114,101,97,116,101,114,4,7,59,69,70,71,76,83,84,3600,3602,3609,3621,3631,3637,3650,1,8815,113,117,97,108,59,1,8817,117,108,108,69,113,117,97,108,59,3,8807,824,114,101,97,116,101,114,59,3,8811,824,101,115,115,59,1,8825,108,97,110,116,69,113,117,97,108,59,3,10878,824,105,108,100,101,59,1,8821,117,109,112,4,2,68,69,3666,3677,111,119,110,72,117,109,112,59,3,8782,824,113,117,97,108,59,3,8783,824,101,4,2,102,115,3692,3724,116,84,114,105,97,110,103,108,101,4,3,59,66,69,3709,3711,3717,1,8938,97,114,59,3,10703,824,113,117,97,108,59,1,8940,115,4,6,59,69,71,76,83,84,3739,3741,3748,3757,3764,3777,1,8814,113,117,97,108,59,1,8816,114,101,97,116,101,114,59,1,8824,101,115,115,59,3,8810,824,108,97,110,116,69,113,117,97,108,59,3,10877,824,105,108,100,101,59,1,8820,101,115,116,101,100,4,2,71,76,3795,3812,114,101,97,116,101,114,71,114,101,97,116,101,114,59,3,10914,824,101,115,115,76,101,115,115,59,3,10913,824,114,101,99,101,100,101,115,4,3,59,69,83,3838,3840,3848,1,8832,113,117,97,108,59,3,10927,824,108,97,110,116,69,113,117,97,108,59,1,8928,4,2,101,105,3866,3881,118,101,114,115,101,69,108,101,109,101,110,116,59,1,8716,103,104,116,84,114,105,97,110,103,108,101,4,3,59,66,69,3900,3902,3908,1,8939,97,114,59,3,10704,824,113,117,97,108,59,1,8941,4,2,113,117,3921,3973,117,97,114,101,83,117,4,2,98,112,3933,3952,115,101,116,4,2,59,69,3942,3945,3,8847,824,113,117,97,108,59,1,8930,101,114,115,101,116,4,2,59,69,3963,3966,3,8848,824,113,117,97,108,59,1,8931,4,3,98,99,112,3981,4e3,4045,115,101,116,4,2,59,69,3990,3993,3,8834,8402,113,117,97,108,59,1,8840,99,101,101,100,115,4,4,59,69,83,84,4015,4017,4025,4037,1,8833,113,117,97,108,59,3,10928,824,108,97,110,116,69,113,117,97,108,59,1,8929,105,108,100,101,59,3,8831,824,101,114,115,101,116,4,2,59,69,4056,4059,3,8835,8402,113,117,97,108,59,1,8841,105,108,100,101,4,4,59,69,70,84,4080,4082,4089,4100,1,8769,113,117,97,108,59,1,8772,117,108,108,69,113,117,97,108,59,1,8775,105,108,100,101,59,1,8777,101,114,116,105,99,97,108,66,97,114,59,1,8740,99,114,59,3,55349,56489,105,108,100,101,5,209,1,59,4135,1,209,59,1,925,4,14,69,97,99,100,102,103,109,111,112,114,115,116,117,118,4170,4176,4187,4205,4212,4217,4228,4253,4259,4292,4295,4316,4337,4346,108,105,103,59,1,338,99,117,116,101,5,211,1,59,4185,1,211,4,2,105,121,4193,4202,114,99,5,212,1,59,4200,1,212,59,1,1054,98,108,97,99,59,1,336,114,59,3,55349,56594,114,97,118,101,5,210,1,59,4226,1,210,4,3,97,101,105,4236,4241,4246,99,114,59,1,332,103,97,59,1,937,99,114,111,110,59,1,927,112,102,59,3,55349,56646,101,110,67,117,114,108,121,4,2,68,81,4272,4285,111,117,98,108,101,81,117,111,116,101,59,1,8220,117,111,116,101,59,1,8216,59,1,10836,4,2,99,108,4301,4306,114,59,3,55349,56490,97,115,104,5,216,1,59,4314,1,216,105,4,2,108,109,4323,4332,100,101,5,213,1,59,4330,1,213,101,115,59,1,10807,109,108,5,214,1,59,4344,1,214,101,114,4,2,66,80,4354,4380,4,2,97,114,4360,4364,114,59,1,8254,97,99,4,2,101,107,4372,4375,59,1,9182,101,116,59,1,9140,97,114,101,110,116,104,101,115,105,115,59,1,9180,4,9,97,99,102,104,105,108,111,114,115,4413,4422,4426,4431,4435,4438,4448,4471,4561,114,116,105,97,108,68,59,1,8706,121,59,1,1055,114,59,3,55349,56595,105,59,1,934,59,1,928,117,115,77,105,110,117,115,59,1,177,4,2,105,112,4454,4467,110,99,97,114,101,112,108,97,110,101,59,1,8460,102,59,1,8473,4,4,59,101,105,111,4481,4483,4526,4531,1,10939,99,101,100,101,115,4,4,59,69,83,84,4498,4500,4507,4519,1,8826,113,117,97,108,59,1,10927,108,97,110,116,69,113,117,97,108,59,1,8828,105,108,100,101,59,1,8830,109,101,59,1,8243,4,2,100,112,4537,4543,117,99,116,59,1,8719,111,114,116,105,111,110,4,2,59,97,4555,4557,1,8759,108,59,1,8733,4,2,99,105,4567,4572,114,59,3,55349,56491,59,1,936,4,4,85,102,111,115,4585,4594,4599,4604,79,84,5,34,1,59,4592,1,34,114,59,3,55349,56596,112,102,59,1,8474,99,114,59,3,55349,56492,4,12,66,69,97,99,101,102,104,105,111,114,115,117,4636,4642,4650,4681,4704,4763,4767,4771,5047,5069,5081,5094,97,114,114,59,1,10512,71,5,174,1,59,4648,1,174,4,3,99,110,114,4658,4664,4668,117,116,101,59,1,340,103,59,1,10219,114,4,2,59,116,4675,4677,1,8608,108,59,1,10518,4,3,97,101,121,4689,4695,4701,114,111,110,59,1,344,100,105,108,59,1,342,59,1,1056,4,2,59,118,4710,4712,1,8476,101,114,115,101,4,2,69,85,4722,4748,4,2,108,113,4728,4736,101,109,101,110,116,59,1,8715,117,105,108,105,98,114,105,117,109,59,1,8651,112,69,113,117,105,108,105,98,114,105,117,109,59,1,10607,114,59,1,8476,111,59,1,929,103,104,116,4,8,65,67,68,70,84,85,86,97,4792,4840,4849,4905,4912,4972,5022,5040,4,2,110,114,4798,4811,103,108,101,66,114,97,99,107,101,116,59,1,10217,114,111,119,4,3,59,66,76,4822,4824,4829,1,8594,97,114,59,1,8677,101,102,116,65,114,114,111,119,59,1,8644,101,105,108,105,110,103,59,1,8969,111,4,2,117,119,4856,4869,98,108,101,66,114,97,99,107,101,116,59,1,10215,110,4,2,84,86,4876,4887,101,101,86,101,99,116,111,114,59,1,10589,101,99,116,111,114,4,2,59,66,4898,4900,1,8642,97,114,59,1,10581,108,111,111,114,59,1,8971,4,2,101,114,4918,4944,101,4,3,59,65,86,4927,4929,4936,1,8866,114,114,111,119,59,1,8614,101,99,116,111,114,59,1,10587,105,97,110,103,108,101,4,3,59,66,69,4958,4960,4965,1,8883,97,114,59,1,10704,113,117,97,108,59,1,8885,112,4,3,68,84,86,4981,4993,5004,111,119,110,86,101,99,116,111,114,59,1,10575,101,101,86,101,99,116,111,114,59,1,10588,101,99,116,111,114,4,2,59,66,5015,5017,1,8638,97,114,59,1,10580,101,99,116,111,114,4,2,59,66,5033,5035,1,8640,97,114,59,1,10579,114,114,111,119,59,1,8658,4,2,112,117,5053,5057,102,59,1,8477,110,100,73,109,112,108,105,101,115,59,1,10608,105,103,104,116,97,114,114,111,119,59,1,8667,4,2,99,104,5087,5091,114,59,1,8475,59,1,8625,108,101,68,101,108,97,121,101,100,59,1,10740,4,13,72,79,97,99,102,104,105,109,111,113,115,116,117,5134,5150,5157,5164,5198,5203,5259,5265,5277,5283,5374,5380,5385,4,2,67,99,5140,5146,72,99,121,59,1,1065,121,59,1,1064,70,84,99,121,59,1,1068,99,117,116,101,59,1,346,4,5,59,97,101,105,121,5176,5178,5184,5190,5195,1,10940,114,111,110,59,1,352,100,105,108,59,1,350,114,99,59,1,348,59,1,1057,114,59,3,55349,56598,111,114,116,4,4,68,76,82,85,5216,5227,5238,5250,111,119,110,65,114,114,111,119,59,1,8595,101,102,116,65,114,114,111,119,59,1,8592,105,103,104,116,65,114,114,111,119,59,1,8594,112,65,114,114,111,119,59,1,8593,103,109,97,59,1,931,97,108,108,67,105,114,99,108,101,59,1,8728,112,102,59,3,55349,56650,4,2,114,117,5289,5293,116,59,1,8730,97,114,101,4,4,59,73,83,85,5306,5308,5322,5367,1,9633,110,116,101,114,115,101,99,116,105,111,110,59,1,8851,117,4,2,98,112,5329,5347,115,101,116,4,2,59,69,5338,5340,1,8847,113,117,97,108,59,1,8849,101,114,115,101,116,4,2,59,69,5358,5360,1,8848,113,117,97,108,59,1,8850,110,105,111,110,59,1,8852,99,114,59,3,55349,56494,97,114,59,1,8902,4,4,98,99,109,112,5395,5420,5475,5478,4,2,59,115,5401,5403,1,8912,101,116,4,2,59,69,5411,5413,1,8912,113,117,97,108,59,1,8838,4,2,99,104,5426,5468,101,101,100,115,4,4,59,69,83,84,5440,5442,5449,5461,1,8827,113,117,97,108,59,1,10928,108,97,110,116,69,113,117,97,108,59,1,8829,105,108,100,101,59,1,8831,84,104,97,116,59,1,8715,59,1,8721,4,3,59,101,115,5486,5488,5507,1,8913,114,115,101,116,4,2,59,69,5498,5500,1,8835,113,117,97,108,59,1,8839,101,116,59,1,8913,4,11,72,82,83,97,99,102,104,105,111,114,115,5536,5546,5552,5567,5579,5602,5607,5655,5695,5701,5711,79,82,78,5,222,1,59,5544,1,222,65,68,69,59,1,8482,4,2,72,99,5558,5563,99,121,59,1,1035,121,59,1,1062,4,2,98,117,5573,5576,59,1,9,59,1,932,4,3,97,101,121,5587,5593,5599,114,111,110,59,1,356,100,105,108,59,1,354,59,1,1058,114,59,3,55349,56599,4,2,101,105,5613,5631,4,2,114,116,5619,5627,101,102,111,114,101,59,1,8756,97,59,1,920,4,2,99,110,5637,5647,107,83,112,97,99,101,59,3,8287,8202,83,112,97,99,101,59,1,8201,108,100,101,4,4,59,69,70,84,5668,5670,5677,5688,1,8764,113,117,97,108,59,1,8771,117,108,108,69,113,117,97,108,59,1,8773,105,108,100,101,59,1,8776,112,102,59,3,55349,56651,105,112,108,101,68,111,116,59,1,8411,4,2,99,116,5717,5722,114,59,3,55349,56495,114,111,107,59,1,358,4,14,97,98,99,100,102,103,109,110,111,112,114,115,116,117,5758,5789,5805,5823,5830,5835,5846,5852,5921,5937,6089,6095,6101,6108,4,2,99,114,5764,5774,117,116,101,5,218,1,59,5772,1,218,114,4,2,59,111,5781,5783,1,8607,99,105,114,59,1,10569,114,4,2,99,101,5796,5800,121,59,1,1038,118,101,59,1,364,4,2,105,121,5811,5820,114,99,5,219,1,59,5818,1,219,59,1,1059,98,108,97,99,59,1,368,114,59,3,55349,56600,114,97,118,101,5,217,1,59,5844,1,217,97,99,114,59,1,362,4,2,100,105,5858,5905,101,114,4,2,66,80,5866,5892,4,2,97,114,5872,5876,114,59,1,95,97,99,4,2,101,107,5884,5887,59,1,9183,101,116,59,1,9141,97,114,101,110,116,104,101,115,105,115,59,1,9181,111,110,4,2,59,80,5913,5915,1,8899,108,117,115,59,1,8846,4,2,103,112,5927,5932,111,110,59,1,370,102,59,3,55349,56652,4,8,65,68,69,84,97,100,112,115,5955,5985,5996,6009,6026,6033,6044,6075,114,114,111,119,4,3,59,66,68,5967,5969,5974,1,8593,97,114,59,1,10514,111,119,110,65,114,114,111,119,59,1,8645,111,119,110,65,114,114,111,119,59,1,8597,113,117,105,108,105,98,114,105,117,109,59,1,10606,101,101,4,2,59,65,6017,6019,1,8869,114,114,111,119,59,1,8613,114,114,111,119,59,1,8657,111,119,110,97,114,114,111,119,59,1,8661,101,114,4,2,76,82,6052,6063,101,102,116,65,114,114,111,119,59,1,8598,105,103,104,116,65,114,114,111,119,59,1,8599,105,4,2,59,108,6082,6084,1,978,111,110,59,1,933,105,110,103,59,1,366,99,114,59,3,55349,56496,105,108,100,101,59,1,360,109,108,5,220,1,59,6115,1,220,4,9,68,98,99,100,101,102,111,115,118,6137,6143,6148,6152,6166,6250,6255,6261,6267,97,115,104,59,1,8875,97,114,59,1,10987,121,59,1,1042,97,115,104,4,2,59,108,6161,6163,1,8873,59,1,10982,4,2,101,114,6172,6175,59,1,8897,4,3,98,116,121,6183,6188,6238,97,114,59,1,8214,4,2,59,105,6194,6196,1,8214,99,97,108,4,4,66,76,83,84,6209,6214,6220,6231,97,114,59,1,8739,105,110,101,59,1,124,101,112,97,114,97,116,111,114,59,1,10072,105,108,100,101,59,1,8768,84,104,105,110,83,112,97,99,101,59,1,8202,114,59,3,55349,56601,112,102,59,3,55349,56653,99,114,59,3,55349,56497,100,97,115,104,59,1,8874,4,5,99,101,102,111,115,6286,6292,6298,6303,6309,105,114,99,59,1,372,100,103,101,59,1,8896,114,59,3,55349,56602,112,102,59,3,55349,56654,99,114,59,3,55349,56498,4,4,102,105,111,115,6325,6330,6333,6339,114,59,3,55349,56603,59,1,926,112,102,59,3,55349,56655,99,114,59,3,55349,56499,4,9,65,73,85,97,99,102,111,115,117,6365,6370,6375,6380,6391,6405,6410,6416,6422,99,121,59,1,1071,99,121,59,1,1031,99,121,59,1,1070,99,117,116,101,5,221,1,59,6389,1,221,4,2,105,121,6397,6402,114,99,59,1,374,59,1,1067,114,59,3,55349,56604,112,102,59,3,55349,56656,99,114,59,3,55349,56500,109,108,59,1,376,4,8,72,97,99,100,101,102,111,115,6445,6450,6457,6472,6477,6501,6505,6510,99,121,59,1,1046,99,117,116,101,59,1,377,4,2,97,121,6463,6469,114,111,110,59,1,381,59,1,1047,111,116,59,1,379,4,2,114,116,6483,6497,111,87,105,100,116,104,83,112,97,99,101,59,1,8203,97,59,1,918,114,59,1,8488,112,102,59,1,8484,99,114,59,3,55349,56501,4,16,97,98,99,101,102,103,108,109,110,111,112,114,115,116,117,119,6550,6561,6568,6612,6622,6634,6645,6672,6699,6854,6870,6923,6933,6963,6974,6983,99,117,116,101,5,225,1,59,6559,1,225,114,101,118,101,59,1,259,4,6,59,69,100,105,117,121,6582,6584,6588,6591,6600,6609,1,8766,59,3,8766,819,59,1,8767,114,99,5,226,1,59,6598,1,226,116,101,5,180,1,59,6607,1,180,59,1,1072,108,105,103,5,230,1,59,6620,1,230,4,2,59,114,6628,6630,1,8289,59,3,55349,56606,114,97,118,101,5,224,1,59,6643,1,224,4,2,101,112,6651,6667,4,2,102,112,6657,6663,115,121,109,59,1,8501,104,59,1,8501,104,97,59,1,945,4,2,97,112,6678,6692,4,2,99,108,6684,6688,114,59,1,257,103,59,1,10815,5,38,1,59,6697,1,38,4,2,100,103,6705,6737,4,5,59,97,100,115,118,6717,6719,6724,6727,6734,1,8743,110,100,59,1,10837,59,1,10844,108,111,112,101,59,1,10840,59,1,10842,4,7,59,101,108,109,114,115,122,6753,6755,6758,6762,6814,6835,6848,1,8736,59,1,10660,101,59,1,8736,115,100,4,2,59,97,6770,6772,1,8737,4,8,97,98,99,100,101,102,103,104,6790,6793,6796,6799,6802,6805,6808,6811,59,1,10664,59,1,10665,59,1,10666,59,1,10667,59,1,10668,59,1,10669,59,1,10670,59,1,10671,116,4,2,59,118,6821,6823,1,8735,98,4,2,59,100,6830,6832,1,8894,59,1,10653,4,2,112,116,6841,6845,104,59,1,8738,59,1,197,97,114,114,59,1,9084,4,2,103,112,6860,6865,111,110,59,1,261,102,59,3,55349,56658,4,7,59,69,97,101,105,111,112,6886,6888,6891,6897,6900,6904,6908,1,8776,59,1,10864,99,105,114,59,1,10863,59,1,8778,100,59,1,8779,115,59,1,39,114,111,120,4,2,59,101,6917,6919,1,8776,113,59,1,8778,105,110,103,5,229,1,59,6931,1,229,4,3,99,116,121,6941,6946,6949,114,59,3,55349,56502,59,1,42,109,112,4,2,59,101,6957,6959,1,8776,113,59,1,8781,105,108,100,101,5,227,1,59,6972,1,227,109,108,5,228,1,59,6981,1,228,4,2,99,105,6989,6997,111,110,105,110,116,59,1,8755,110,116,59,1,10769,4,16,78,97,98,99,100,101,102,105,107,108,110,111,112,114,115,117,7036,7041,7119,7135,7149,7155,7219,7224,7347,7354,7463,7489,7786,7793,7814,7866,111,116,59,1,10989,4,2,99,114,7047,7094,107,4,4,99,101,112,115,7058,7064,7073,7080,111,110,103,59,1,8780,112,115,105,108,111,110,59,1,1014,114,105,109,101,59,1,8245,105,109,4,2,59,101,7088,7090,1,8765,113,59,1,8909,4,2,118,119,7100,7105,101,101,59,1,8893,101,100,4,2,59,103,7113,7115,1,8965,101,59,1,8965,114,107,4,2,59,116,7127,7129,1,9141,98,114,107,59,1,9142,4,2,111,121,7141,7146,110,103,59,1,8780,59,1,1073,113,117,111,59,1,8222,4,5,99,109,112,114,116,7167,7181,7188,7193,7199,97,117,115,4,2,59,101,7176,7178,1,8757,59,1,8757,112,116,121,118,59,1,10672,115,105,59,1,1014,110,111,117,59,1,8492,4,3,97,104,119,7207,7210,7213,59,1,946,59,1,8502,101,101,110,59,1,8812,114,59,3,55349,56607,103,4,7,99,111,115,116,117,118,119,7241,7262,7288,7305,7328,7335,7340,4,3,97,105,117,7249,7253,7258,112,59,1,8898,114,99,59,1,9711,112,59,1,8899,4,3,100,112,116,7270,7275,7281,111,116,59,1,10752,108,117,115,59,1,10753,105,109,101,115,59,1,10754,4,2,113,116,7294,7300,99,117,112,59,1,10758,97,114,59,1,9733,114,105,97,110,103,108,101,4,2,100,117,7318,7324,111,119,110,59,1,9661,112,59,1,9651,112,108,117,115,59,1,10756,101,101,59,1,8897,101,100,103,101,59,1,8896,97,114,111,119,59,1,10509,4,3,97,107,111,7362,7436,7458,4,2,99,110,7368,7432,107,4,3,108,115,116,7377,7386,7394,111,122,101,110,103,101,59,1,10731,113,117,97,114,101,59,1,9642,114,105,97,110,103,108,101,4,4,59,100,108,114,7411,7413,7419,7425,1,9652,111,119,110,59,1,9662,101,102,116,59,1,9666,105,103,104,116,59,1,9656,107,59,1,9251,4,2,49,51,7442,7454,4,2,50,52,7448,7451,59,1,9618,59,1,9617,52,59,1,9619,99,107,59,1,9608,4,2,101,111,7469,7485,4,2,59,113,7475,7478,3,61,8421,117,105,118,59,3,8801,8421,116,59,1,8976,4,4,112,116,119,120,7499,7504,7517,7523,102,59,3,55349,56659,4,2,59,116,7510,7512,1,8869,111,109,59,1,8869,116,105,101,59,1,8904,4,12,68,72,85,86,98,100,104,109,112,116,117,118,7549,7571,7597,7619,7655,7660,7682,7708,7715,7721,7728,7750,4,4,76,82,108,114,7559,7562,7565,7568,59,1,9559,59,1,9556,59,1,9558,59,1,9555,4,5,59,68,85,100,117,7583,7585,7588,7591,7594,1,9552,59,1,9574,59,1,9577,59,1,9572,59,1,9575,4,4,76,82,108,114,7607,7610,7613,7616,59,1,9565,59,1,9562,59,1,9564,59,1,9561,4,7,59,72,76,82,104,108,114,7635,7637,7640,7643,7646,7649,7652,1,9553,59,1,9580,59,1,9571,59,1,9568,59,1,9579,59,1,9570,59,1,9567,111,120,59,1,10697,4,4,76,82,108,114,7670,7673,7676,7679,59,1,9557,59,1,9554,59,1,9488,59,1,9484,4,5,59,68,85,100,117,7694,7696,7699,7702,7705,1,9472,59,1,9573,59,1,9576,59,1,9516,59,1,9524,105,110,117,115,59,1,8863,108,117,115,59,1,8862,105,109,101,115,59,1,8864,4,4,76,82,108,114,7738,7741,7744,7747,59,1,9563,59,1,9560,59,1,9496,59,1,9492,4,7,59,72,76,82,104,108,114,7766,7768,7771,7774,7777,7780,7783,1,9474,59,1,9578,59,1,9569,59,1,9566,59,1,9532,59,1,9508,59,1,9500,114,105,109,101,59,1,8245,4,2,101,118,7799,7804,118,101,59,1,728,98,97,114,5,166,1,59,7812,1,166,4,4,99,101,105,111,7824,7829,7834,7846,114,59,3,55349,56503,109,105,59,1,8271,109,4,2,59,101,7841,7843,1,8765,59,1,8909,108,4,3,59,98,104,7855,7857,7860,1,92,59,1,10693,115,117,98,59,1,10184,4,2,108,109,7872,7885,108,4,2,59,101,7879,7881,1,8226,116,59,1,8226,112,4,3,59,69,101,7894,7896,7899,1,8782,59,1,10926,4,2,59,113,7905,7907,1,8783,59,1,8783,4,15,97,99,100,101,102,104,105,108,111,114,115,116,117,119,121,7942,8021,8075,8080,8121,8126,8157,8279,8295,8430,8446,8485,8491,8707,8726,4,3,99,112,114,7950,7956,8007,117,116,101,59,1,263,4,6,59,97,98,99,100,115,7970,7972,7977,7984,7998,8003,1,8745,110,100,59,1,10820,114,99,117,112,59,1,10825,4,2,97,117,7990,7994,112,59,1,10827,112,59,1,10823,111,116,59,1,10816,59,3,8745,65024,4,2,101,111,8013,8017,116,59,1,8257,110,59,1,711,4,4,97,101,105,117,8031,8046,8056,8061,4,2,112,114,8037,8041,115,59,1,10829,111,110,59,1,269,100,105,108,5,231,1,59,8054,1,231,114,99,59,1,265,112,115,4,2,59,115,8069,8071,1,10828,109,59,1,10832,111,116,59,1,267,4,3,100,109,110,8088,8097,8104,105,108,5,184,1,59,8095,1,184,112,116,121,118,59,1,10674,116,5,162,2,59,101,8112,8114,1,162,114,100,111,116,59,1,183,114,59,3,55349,56608,4,3,99,101,105,8134,8138,8154,121,59,1,1095,99,107,4,2,59,109,8146,8148,1,10003,97,114,107,59,1,10003,59,1,967,114,4,7,59,69,99,101,102,109,115,8174,8176,8179,8258,8261,8268,8273,1,9675,59,1,10691,4,3,59,101,108,8187,8189,8193,1,710,113,59,1,8791,101,4,2,97,100,8200,8223,114,114,111,119,4,2,108,114,8210,8216,101,102,116,59,1,8634,105,103,104,116,59,1,8635,4,5,82,83,97,99,100,8235,8238,8241,8246,8252,59,1,174,59,1,9416,115,116,59,1,8859,105,114,99,59,1,8858,97,115,104,59,1,8861,59,1,8791,110,105,110,116,59,1,10768,105,100,59,1,10991,99,105,114,59,1,10690,117,98,115,4,2,59,117,8288,8290,1,9827,105,116,59,1,9827,4,4,108,109,110,112,8305,8326,8376,8400,111,110,4,2,59,101,8313,8315,1,58,4,2,59,113,8321,8323,1,8788,59,1,8788,4,2,109,112,8332,8344,97,4,2,59,116,8339,8341,1,44,59,1,64,4,3,59,102,108,8352,8354,8358,1,8705,110,59,1,8728,101,4,2,109,120,8365,8371,101,110,116,59,1,8705,101,115,59,1,8450,4,2,103,105,8382,8395,4,2,59,100,8388,8390,1,8773,111,116,59,1,10861,110,116,59,1,8750,4,3,102,114,121,8408,8412,8417,59,3,55349,56660,111,100,59,1,8720,5,169,2,59,115,8424,8426,1,169,114,59,1,8471,4,2,97,111,8436,8441,114,114,59,1,8629,115,115,59,1,10007,4,2,99,117,8452,8457,114,59,3,55349,56504,4,2,98,112,8463,8474,4,2,59,101,8469,8471,1,10959,59,1,10961,4,2,59,101,8480,8482,1,10960,59,1,10962,100,111,116,59,1,8943,4,7,100,101,108,112,114,118,119,8507,8522,8536,8550,8600,8697,8702,97,114,114,4,2,108,114,8516,8519,59,1,10552,59,1,10549,4,2,112,115,8528,8532,114,59,1,8926,99,59,1,8927,97,114,114,4,2,59,112,8545,8547,1,8630,59,1,10557,4,6,59,98,99,100,111,115,8564,8566,8573,8587,8592,8596,1,8746,114,99,97,112,59,1,10824,4,2,97,117,8579,8583,112,59,1,10822,112,59,1,10826,111,116,59,1,8845,114,59,1,10821,59,3,8746,65024,4,4,97,108,114,118,8610,8623,8663,8672,114,114,4,2,59,109,8618,8620,1,8631,59,1,10556,121,4,3,101,118,119,8632,8651,8656,113,4,2,112,115,8639,8645,114,101,99,59,1,8926,117,99,99,59,1,8927,101,101,59,1,8910,101,100,103,101,59,1,8911,101,110,5,164,1,59,8670,1,164,101,97,114,114,111,119,4,2,108,114,8684,8690,101,102,116,59,1,8630,105,103,104,116,59,1,8631,101,101,59,1,8910,101,100,59,1,8911,4,2,99,105,8713,8721,111,110,105,110,116,59,1,8754,110,116,59,1,8753,108,99,116,121,59,1,9005,4,19,65,72,97,98,99,100,101,102,104,105,106,108,111,114,115,116,117,119,122,8773,8778,8783,8821,8839,8854,8887,8914,8930,8944,9036,9041,9058,9197,9227,9258,9281,9297,9305,114,114,59,1,8659,97,114,59,1,10597,4,4,103,108,114,115,8793,8799,8805,8809,103,101,114,59,1,8224,101,116,104,59,1,8504,114,59,1,8595,104,4,2,59,118,8816,8818,1,8208,59,1,8867,4,2,107,108,8827,8834,97,114,111,119,59,1,10511,97,99,59,1,733,4,2,97,121,8845,8851,114,111,110,59,1,271,59,1,1076,4,3,59,97,111,8862,8864,8880,1,8518,4,2,103,114,8870,8876,103,101,114,59,1,8225,114,59,1,8650,116,115,101,113,59,1,10871,4,3,103,108,109,8895,8902,8907,5,176,1,59,8900,1,176,116,97,59,1,948,112,116,121,118,59,1,10673,4,2,105,114,8920,8926,115,104,116,59,1,10623,59,3,55349,56609,97,114,4,2,108,114,8938,8941,59,1,8643,59,1,8642,4,5,97,101,103,115,118,8956,8986,8989,8996,9001,109,4,3,59,111,115,8965,8967,8983,1,8900,110,100,4,2,59,115,8975,8977,1,8900,117,105,116,59,1,9830,59,1,9830,59,1,168,97,109,109,97,59,1,989,105,110,59,1,8946,4,3,59,105,111,9009,9011,9031,1,247,100,101,5,247,2,59,111,9020,9022,1,247,110,116,105,109,101,115,59,1,8903,110,120,59,1,8903,99,121,59,1,1106,99,4,2,111,114,9048,9053,114,110,59,1,8990,111,112,59,1,8973,4,5,108,112,116,117,119,9070,9076,9081,9130,9144,108,97,114,59,1,36,102,59,3,55349,56661,4,5,59,101,109,112,115,9093,9095,9109,9116,9122,1,729,113,4,2,59,100,9102,9104,1,8784,111,116,59,1,8785,105,110,117,115,59,1,8760,108,117,115,59,1,8724,113,117,97,114,101,59,1,8865,98,108,101,98,97,114,119,101,100,103,101,59,1,8966,110,4,3,97,100,104,9153,9160,9172,114,114,111,119,59,1,8595,111,119,110,97,114,114,111,119,115,59,1,8650,97,114,112,111,111,110,4,2,108,114,9184,9190,101,102,116,59,1,8643,105,103,104,116,59,1,8642,4,2,98,99,9203,9211,107,97,114,111,119,59,1,10512,4,2,111,114,9217,9222,114,110,59,1,8991,111,112,59,1,8972,4,3,99,111,116,9235,9248,9252,4,2,114,121,9241,9245,59,3,55349,56505,59,1,1109,108,59,1,10742,114,111,107,59,1,273,4,2,100,114,9264,9269,111,116,59,1,8945,105,4,2,59,102,9276,9278,1,9663,59,1,9662,4,2,97,104,9287,9292,114,114,59,1,8693,97,114,59,1,10607,97,110,103,108,101,59,1,10662,4,2,99,105,9311,9315,121,59,1,1119,103,114,97,114,114,59,1,10239,4,18,68,97,99,100,101,102,103,108,109,110,111,112,113,114,115,116,117,120,9361,9376,9398,9439,9444,9447,9462,9495,9531,9585,9598,9614,9659,9755,9771,9792,9808,9826,4,2,68,111,9367,9372,111,116,59,1,10871,116,59,1,8785,4,2,99,115,9382,9392,117,116,101,5,233,1,59,9390,1,233,116,101,114,59,1,10862,4,4,97,105,111,121,9408,9414,9430,9436,114,111,110,59,1,283,114,4,2,59,99,9421,9423,1,8790,5,234,1,59,9428,1,234,108,111,110,59,1,8789,59,1,1101,111,116,59,1,279,59,1,8519,4,2,68,114,9453,9458,111,116,59,1,8786,59,3,55349,56610,4,3,59,114,115,9470,9472,9482,1,10906,97,118,101,5,232,1,59,9480,1,232,4,2,59,100,9488,9490,1,10902,111,116,59,1,10904,4,4,59,105,108,115,9505,9507,9515,9518,1,10905,110,116,101,114,115,59,1,9191,59,1,8467,4,2,59,100,9524,9526,1,10901,111,116,59,1,10903,4,3,97,112,115,9539,9544,9564,99,114,59,1,275,116,121,4,3,59,115,118,9554,9556,9561,1,8709,101,116,59,1,8709,59,1,8709,112,4,2,49,59,9571,9583,4,2,51,52,9577,9580,59,1,8196,59,1,8197,1,8195,4,2,103,115,9591,9594,59,1,331,112,59,1,8194,4,2,103,112,9604,9609,111,110,59,1,281,102,59,3,55349,56662,4,3,97,108,115,9622,9635,9640,114,4,2,59,115,9629,9631,1,8917,108,59,1,10723,117,115,59,1,10865,105,4,3,59,108,118,9649,9651,9656,1,949,111,110,59,1,949,59,1,1013,4,4,99,115,117,118,9669,9686,9716,9747,4,2,105,111,9675,9680,114,99,59,1,8790,108,111,110,59,1,8789,4,2,105,108,9692,9696,109,59,1,8770,97,110,116,4,2,103,108,9705,9710,116,114,59,1,10902,101,115,115,59,1,10901,4,3,97,101,105,9724,9729,9734,108,115,59,1,61,115,116,59,1,8799,118,4,2,59,68,9741,9743,1,8801,68,59,1,10872,112,97,114,115,108,59,1,10725,4,2,68,97,9761,9766,111,116,59,1,8787,114,114,59,1,10609,4,3,99,100,105,9779,9783,9788,114,59,1,8495,111,116,59,1,8784,109,59,1,8770,4,2,97,104,9798,9801,59,1,951,5,240,1,59,9806,1,240,4,2,109,114,9814,9822,108,5,235,1,59,9820,1,235,111,59,1,8364,4,3,99,105,112,9834,9838,9843,108,59,1,33,115,116,59,1,8707,4,2,101,111,9849,9859,99,116,97,116,105,111,110,59,1,8496,110,101,110,116,105,97,108,101,59,1,8519,4,12,97,99,101,102,105,106,108,110,111,112,114,115,9896,9910,9914,9921,9954,9960,9967,9989,9994,10027,10036,10164,108,108,105,110,103,100,111,116,115,101,113,59,1,8786,121,59,1,1092,109,97,108,101,59,1,9792,4,3,105,108,114,9929,9935,9950,108,105,103,59,1,64259,4,2,105,108,9941,9945,103,59,1,64256,105,103,59,1,64260,59,3,55349,56611,108,105,103,59,1,64257,108,105,103,59,3,102,106,4,3,97,108,116,9975,9979,9984,116,59,1,9837,105,103,59,1,64258,110,115,59,1,9649,111,102,59,1,402,4,2,112,114,1e4,10005,102,59,3,55349,56663,4,2,97,107,10011,10016,108,108,59,1,8704,4,2,59,118,10022,10024,1,8916,59,1,10969,97,114,116,105,110,116,59,1,10765,4,2,97,111,10042,10159,4,2,99,115,10048,10155,4,6,49,50,51,52,53,55,10062,10102,10114,10135,10139,10151,4,6,50,51,52,53,54,56,10076,10083,10086,10093,10096,10099,5,189,1,59,10081,1,189,59,1,8531,5,188,1,59,10091,1,188,59,1,8533,59,1,8537,59,1,8539,4,2,51,53,10108,10111,59,1,8532,59,1,8534,4,3,52,53,56,10122,10129,10132,5,190,1,59,10127,1,190,59,1,8535,59,1,8540,53,59,1,8536,4,2,54,56,10145,10148,59,1,8538,59,1,8541,56,59,1,8542,108,59,1,8260,119,110,59,1,8994,99,114,59,3,55349,56507,4,17,69,97,98,99,100,101,102,103,105,106,108,110,111,114,115,116,118,10206,10217,10247,10254,10268,10273,10358,10363,10374,10380,10385,10406,10458,10464,10470,10497,10610,4,2,59,108,10212,10214,1,8807,59,1,10892,4,3,99,109,112,10225,10231,10244,117,116,101,59,1,501,109,97,4,2,59,100,10239,10241,1,947,59,1,989,59,1,10886,114,101,118,101,59,1,287,4,2,105,121,10260,10265,114,99,59,1,285,59,1,1075,111,116,59,1,289,4,4,59,108,113,115,10283,10285,10288,10308,1,8805,59,1,8923,4,3,59,113,115,10296,10298,10301,1,8805,59,1,8807,108,97,110,116,59,1,10878,4,4,59,99,100,108,10318,10320,10324,10345,1,10878,99,59,1,10921,111,116,4,2,59,111,10332,10334,1,10880,4,2,59,108,10340,10342,1,10882,59,1,10884,4,2,59,101,10351,10354,3,8923,65024,115,59,1,10900,114,59,3,55349,56612,4,2,59,103,10369,10371,1,8811,59,1,8921,109,101,108,59,1,8503,99,121,59,1,1107,4,4,59,69,97,106,10395,10397,10400,10403,1,8823,59,1,10898,59,1,10917,59,1,10916,4,4,69,97,101,115,10416,10419,10434,10453,59,1,8809,112,4,2,59,112,10426,10428,1,10890,114,111,120,59,1,10890,4,2,59,113,10440,10442,1,10888,4,2,59,113,10448,10450,1,10888,59,1,8809,105,109,59,1,8935,112,102,59,3,55349,56664,97,118,101,59,1,96,4,2,99,105,10476,10480,114,59,1,8458,109,4,3,59,101,108,10489,10491,10494,1,8819,59,1,10894,59,1,10896,5,62,6,59,99,100,108,113,114,10512,10514,10527,10532,10538,10545,1,62,4,2,99,105,10520,10523,59,1,10919,114,59,1,10874,111,116,59,1,8919,80,97,114,59,1,10645,117,101,115,116,59,1,10876,4,5,97,100,101,108,115,10557,10574,10579,10599,10605,4,2,112,114,10563,10570,112,114,111,120,59,1,10886,114,59,1,10616,111,116,59,1,8919,113,4,2,108,113,10586,10592,101,115,115,59,1,8923,108,101,115,115,59,1,10892,101,115,115,59,1,8823,105,109,59,1,8819,4,2,101,110,10616,10626,114,116,110,101,113,113,59,3,8809,65024,69,59,3,8809,65024,4,10,65,97,98,99,101,102,107,111,115,121,10653,10658,10713,10718,10724,10760,10765,10786,10850,10875,114,114,59,1,8660,4,4,105,108,109,114,10668,10674,10678,10684,114,115,112,59,1,8202,102,59,1,189,105,108,116,59,1,8459,4,2,100,114,10690,10695,99,121,59,1,1098,4,3,59,99,119,10703,10705,10710,1,8596,105,114,59,1,10568,59,1,8621,97,114,59,1,8463,105,114,99,59,1,293,4,3,97,108,114,10732,10748,10754,114,116,115,4,2,59,117,10741,10743,1,9829,105,116,59,1,9829,108,105,112,59,1,8230,99,111,110,59,1,8889,114,59,3,55349,56613,115,4,2,101,119,10772,10779,97,114,111,119,59,1,10533,97,114,111,119,59,1,10534,4,5,97,109,111,112,114,10798,10803,10809,10839,10844,114,114,59,1,8703,116,104,116,59,1,8763,107,4,2,108,114,10816,10827,101,102,116,97,114,114,111,119,59,1,8617,105,103,104,116,97,114,114,111,119,59,1,8618,102,59,3,55349,56665,98,97,114,59,1,8213,4,3,99,108,116,10858,10863,10869,114,59,3,55349,56509,97,115,104,59,1,8463,114,111,107,59,1,295,4,2,98,112,10881,10887,117,108,108,59,1,8259,104,101,110,59,1,8208,4,15,97,99,101,102,103,105,106,109,110,111,112,113,115,116,117,10925,10936,10958,10977,10990,11001,11039,11045,11101,11192,11220,11226,11237,11285,11299,99,117,116,101,5,237,1,59,10934,1,237,4,3,59,105,121,10944,10946,10955,1,8291,114,99,5,238,1,59,10953,1,238,59,1,1080,4,2,99,120,10964,10968,121,59,1,1077,99,108,5,161,1,59,10975,1,161,4,2,102,114,10983,10986,59,1,8660,59,3,55349,56614,114,97,118,101,5,236,1,59,10999,1,236,4,4,59,105,110,111,11011,11013,11028,11034,1,8520,4,2,105,110,11019,11024,110,116,59,1,10764,116,59,1,8749,102,105,110,59,1,10716,116,97,59,1,8489,108,105,103,59,1,307,4,3,97,111,112,11053,11092,11096,4,3,99,103,116,11061,11065,11088,114,59,1,299,4,3,101,108,112,11073,11076,11082,59,1,8465,105,110,101,59,1,8464,97,114,116,59,1,8465,104,59,1,305,102,59,1,8887,101,100,59,1,437,4,5,59,99,102,111,116,11113,11115,11121,11136,11142,1,8712,97,114,101,59,1,8453,105,110,4,2,59,116,11129,11131,1,8734,105,101,59,1,10717,100,111,116,59,1,305,4,5,59,99,101,108,112,11154,11156,11161,11179,11186,1,8747,97,108,59,1,8890,4,2,103,114,11167,11173,101,114,115,59,1,8484,99,97,108,59,1,8890,97,114,104,107,59,1,10775,114,111,100,59,1,10812,4,4,99,103,112,116,11202,11206,11211,11216,121,59,1,1105,111,110,59,1,303,102,59,3,55349,56666,97,59,1,953,114,111,100,59,1,10812,117,101,115,116,5,191,1,59,11235,1,191,4,2,99,105,11243,11248,114,59,3,55349,56510,110,4,5,59,69,100,115,118,11261,11263,11266,11271,11282,1,8712,59,1,8953,111,116,59,1,8949,4,2,59,118,11277,11279,1,8948,59,1,8947,59,1,8712,4,2,59,105,11291,11293,1,8290,108,100,101,59,1,297,4,2,107,109,11305,11310,99,121,59,1,1110,108,5,239,1,59,11316,1,239,4,6,99,102,109,111,115,117,11332,11346,11351,11357,11363,11380,4,2,105,121,11338,11343,114,99,59,1,309,59,1,1081,114,59,3,55349,56615,97,116,104,59,1,567,112,102,59,3,55349,56667,4,2,99,101,11369,11374,114,59,3,55349,56511,114,99,121,59,1,1112,107,99,121,59,1,1108,4,8,97,99,102,103,104,106,111,115,11404,11418,11433,11438,11445,11450,11455,11461,112,112,97,4,2,59,118,11413,11415,1,954,59,1,1008,4,2,101,121,11424,11430,100,105,108,59,1,311,59,1,1082,114,59,3,55349,56616,114,101,101,110,59,1,312,99,121,59,1,1093,99,121,59,1,1116,112,102,59,3,55349,56668,99,114,59,3,55349,56512,4,23,65,66,69,72,97,98,99,100,101,102,103,104,106,108,109,110,111,112,114,115,116,117,118,11515,11538,11544,11555,11560,11721,11780,11818,11868,12136,12160,12171,12203,12208,12246,12275,12327,12509,12523,12569,12641,12732,12752,4,3,97,114,116,11523,11528,11532,114,114,59,1,8666,114,59,1,8656,97,105,108,59,1,10523,97,114,114,59,1,10510,4,2,59,103,11550,11552,1,8806,59,1,10891,97,114,59,1,10594,4,9,99,101,103,109,110,112,113,114,116,11580,11586,11594,11600,11606,11624,11627,11636,11694,117,116,101,59,1,314,109,112,116,121,118,59,1,10676,114,97,110,59,1,8466,98,100,97,59,1,955,103,4,3,59,100,108,11615,11617,11620,1,10216,59,1,10641,101,59,1,10216,59,1,10885,117,111,5,171,1,59,11634,1,171,114,4,8,59,98,102,104,108,112,115,116,11655,11657,11669,11673,11677,11681,11685,11690,1,8592,4,2,59,102,11663,11665,1,8676,115,59,1,10527,115,59,1,10525,107,59,1,8617,112,59,1,8619,108,59,1,10553,105,109,59,1,10611,108,59,1,8610,4,3,59,97,101,11702,11704,11709,1,10923,105,108,59,1,10521,4,2,59,115,11715,11717,1,10925,59,3,10925,65024,4,3,97,98,114,11729,11734,11739,114,114,59,1,10508,114,107,59,1,10098,4,2,97,107,11745,11758,99,4,2,101,107,11752,11755,59,1,123,59,1,91,4,2,101,115,11764,11767,59,1,10635,108,4,2,100,117,11774,11777,59,1,10639,59,1,10637,4,4,97,101,117,121,11790,11796,11811,11815,114,111,110,59,1,318,4,2,100,105,11802,11807,105,108,59,1,316,108,59,1,8968,98,59,1,123,59,1,1083,4,4,99,113,114,115,11828,11832,11845,11864,97,59,1,10550,117,111,4,2,59,114,11840,11842,1,8220,59,1,8222,4,2,100,117,11851,11857,104,97,114,59,1,10599,115,104,97,114,59,1,10571,104,59,1,8626,4,5,59,102,103,113,115,11880,11882,12008,12011,12031,1,8804,116,4,5,97,104,108,114,116,11895,11913,11935,11947,11996,114,114,111,119,4,2,59,116,11905,11907,1,8592,97,105,108,59,1,8610,97,114,112,111,111,110,4,2,100,117,11925,11931,111,119,110,59,1,8637,112,59,1,8636,101,102,116,97,114,114,111,119,115,59,1,8647,105,103,104,116,4,3,97,104,115,11959,11974,11984,114,114,111,119,4,2,59,115,11969,11971,1,8596,59,1,8646,97,114,112,111,111,110,115,59,1,8651,113,117,105,103,97,114,114,111,119,59,1,8621,104,114,101,101,116,105,109,101,115,59,1,8907,59,1,8922,4,3,59,113,115,12019,12021,12024,1,8804,59,1,8806,108,97,110,116,59,1,10877,4,5,59,99,100,103,115,12043,12045,12049,12070,12083,1,10877,99,59,1,10920,111,116,4,2,59,111,12057,12059,1,10879,4,2,59,114,12065,12067,1,10881,59,1,10883,4,2,59,101,12076,12079,3,8922,65024,115,59,1,10899,4,5,97,100,101,103,115,12095,12103,12108,12126,12131,112,112,114,111,120,59,1,10885,111,116,59,1,8918,113,4,2,103,113,12115,12120,116,114,59,1,8922,103,116,114,59,1,10891,116,114,59,1,8822,105,109,59,1,8818,4,3,105,108,114,12144,12150,12156,115,104,116,59,1,10620,111,111,114,59,1,8970,59,3,55349,56617,4,2,59,69,12166,12168,1,8822,59,1,10897,4,2,97,98,12177,12198,114,4,2,100,117,12184,12187,59,1,8637,4,2,59,108,12193,12195,1,8636,59,1,10602,108,107,59,1,9604,99,121,59,1,1113,4,5,59,97,99,104,116,12220,12222,12227,12235,12241,1,8810,114,114,59,1,8647,111,114,110,101,114,59,1,8990,97,114,100,59,1,10603,114,105,59,1,9722,4,2,105,111,12252,12258,100,111,116,59,1,320,117,115,116,4,2,59,97,12267,12269,1,9136,99,104,101,59,1,9136,4,4,69,97,101,115,12285,12288,12303,12322,59,1,8808,112,4,2,59,112,12295,12297,1,10889,114,111,120,59,1,10889,4,2,59,113,12309,12311,1,10887,4,2,59,113,12317,12319,1,10887,59,1,8808,105,109,59,1,8934,4,8,97,98,110,111,112,116,119,122,12345,12359,12364,12421,12446,12467,12474,12490,4,2,110,114,12351,12355,103,59,1,10220,114,59,1,8701,114,107,59,1,10214,103,4,3,108,109,114,12373,12401,12409,101,102,116,4,2,97,114,12382,12389,114,114,111,119,59,1,10229,105,103,104,116,97,114,114,111,119,59,1,10231,97,112,115,116,111,59,1,10236,105,103,104,116,97,114,114,111,119,59,1,10230,112,97,114,114,111,119,4,2,108,114,12433,12439,101,102,116,59,1,8619,105,103,104,116,59,1,8620,4,3,97,102,108,12454,12458,12462,114,59,1,10629,59,3,55349,56669,117,115,59,1,10797,105,109,101,115,59,1,10804,4,2,97,98,12480,12485,115,116,59,1,8727,97,114,59,1,95,4,3,59,101,102,12498,12500,12506,1,9674,110,103,101,59,1,9674,59,1,10731,97,114,4,2,59,108,12517,12519,1,40,116,59,1,10643,4,5,97,99,104,109,116,12535,12540,12548,12561,12564,114,114,59,1,8646,111,114,110,101,114,59,1,8991,97,114,4,2,59,100,12556,12558,1,8651,59,1,10605,59,1,8206,114,105,59,1,8895,4,6,97,99,104,105,113,116,12583,12589,12594,12597,12614,12635,113,117,111,59,1,8249,114,59,3,55349,56513,59,1,8624,109,4,3,59,101,103,12606,12608,12611,1,8818,59,1,10893,59,1,10895,4,2,98,117,12620,12623,59,1,91,111,4,2,59,114,12630,12632,1,8216,59,1,8218,114,111,107,59,1,322,5,60,8,59,99,100,104,105,108,113,114,12660,12662,12675,12680,12686,12692,12698,12705,1,60,4,2,99,105,12668,12671,59,1,10918,114,59,1,10873,111,116,59,1,8918,114,101,101,59,1,8907,109,101,115,59,1,8905,97,114,114,59,1,10614,117,101,115,116,59,1,10875,4,2,80,105,12711,12716,97,114,59,1,10646,4,3,59,101,102,12724,12726,12729,1,9667,59,1,8884,59,1,9666,114,4,2,100,117,12739,12746,115,104,97,114,59,1,10570,104,97,114,59,1,10598,4,2,101,110,12758,12768,114,116,110,101,113,113,59,3,8808,65024,69,59,3,8808,65024,4,14,68,97,99,100,101,102,104,105,108,110,111,112,115,117,12803,12809,12893,12908,12914,12928,12933,12937,13011,13025,13032,13049,13052,13069,68,111,116,59,1,8762,4,4,99,108,112,114,12819,12827,12849,12887,114,5,175,1,59,12825,1,175,4,2,101,116,12833,12836,59,1,9794,4,2,59,101,12842,12844,1,10016,115,101,59,1,10016,4,2,59,115,12855,12857,1,8614,116,111,4,4,59,100,108,117,12869,12871,12877,12883,1,8614,111,119,110,59,1,8615,101,102,116,59,1,8612,112,59,1,8613,107,101,114,59,1,9646,4,2,111,121,12899,12905,109,109,97,59,1,10793,59,1,1084,97,115,104,59,1,8212,97,115,117,114,101,100,97,110,103,108,101,59,1,8737,114,59,3,55349,56618,111,59,1,8487,4,3,99,100,110,12945,12954,12985,114,111,5,181,1,59,12952,1,181,4,4,59,97,99,100,12964,12966,12971,12976,1,8739,115,116,59,1,42,105,114,59,1,10992,111,116,5,183,1,59,12983,1,183,117,115,4,3,59,98,100,12995,12997,13e3,1,8722,59,1,8863,4,2,59,117,13006,13008,1,8760,59,1,10794,4,2,99,100,13017,13021,112,59,1,10971,114,59,1,8230,112,108,117,115,59,1,8723,4,2,100,112,13038,13044,101,108,115,59,1,8871,102,59,3,55349,56670,59,1,8723,4,2,99,116,13058,13063,114,59,3,55349,56514,112,111,115,59,1,8766,4,3,59,108,109,13077,13079,13087,1,956,116,105,109,97,112,59,1,8888,97,112,59,1,8888,4,24,71,76,82,86,97,98,99,100,101,102,103,104,105,106,108,109,111,112,114,115,116,117,118,119,13142,13165,13217,13229,13247,13330,13359,13414,13420,13508,13513,13579,13602,13626,13631,13762,13767,13855,13936,13995,14214,14285,14312,14432,4,2,103,116,13148,13152,59,3,8921,824,4,2,59,118,13158,13161,3,8811,8402,59,3,8811,824,4,3,101,108,116,13173,13200,13204,102,116,4,2,97,114,13181,13188,114,114,111,119,59,1,8653,105,103,104,116,97,114,114,111,119,59,1,8654,59,3,8920,824,4,2,59,118,13210,13213,3,8810,8402,59,3,8810,824,105,103,104,116,97,114,114,111,119,59,1,8655,4,2,68,100,13235,13241,97,115,104,59,1,8879,97,115,104,59,1,8878,4,5,98,99,110,112,116,13259,13264,13270,13275,13308,108,97,59,1,8711,117,116,101,59,1,324,103,59,3,8736,8402,4,5,59,69,105,111,112,13287,13289,13293,13298,13302,1,8777,59,3,10864,824,100,59,3,8779,824,115,59,1,329,114,111,120,59,1,8777,117,114,4,2,59,97,13316,13318,1,9838,108,4,2,59,115,13325,13327,1,9838,59,1,8469,4,2,115,117,13336,13344,112,5,160,1,59,13342,1,160,109,112,4,2,59,101,13352,13355,3,8782,824,59,3,8783,824,4,5,97,101,111,117,121,13371,13385,13391,13407,13411,4,2,112,114,13377,13380,59,1,10819,111,110,59,1,328,100,105,108,59,1,326,110,103,4,2,59,100,13399,13401,1,8775,111,116,59,3,10861,824,112,59,1,10818,59,1,1085,97,115,104,59,1,8211,4,7,59,65,97,100,113,115,120,13436,13438,13443,13466,13472,13478,13494,1,8800,114,114,59,1,8663,114,4,2,104,114,13450,13454,107,59,1,10532,4,2,59,111,13460,13462,1,8599,119,59,1,8599,111,116,59,3,8784,824,117,105,118,59,1,8802,4,2,101,105,13484,13489,97,114,59,1,10536,109,59,3,8770,824,105,115,116,4,2,59,115,13503,13505,1,8708,59,1,8708,114,59,3,55349,56619,4,4,69,101,115,116,13523,13527,13563,13568,59,3,8807,824,4,3,59,113,115,13535,13537,13559,1,8817,4,3,59,113,115,13545,13547,13551,1,8817,59,3,8807,824,108,97,110,116,59,3,10878,824,59,3,10878,824,105,109,59,1,8821,4,2,59,114,13574,13576,1,8815,59,1,8815,4,3,65,97,112,13587,13592,13597,114,114,59,1,8654,114,114,59,1,8622,97,114,59,1,10994,4,3,59,115,118,13610,13612,13623,1,8715,4,2,59,100,13618,13620,1,8956,59,1,8954,59,1,8715,99,121,59,1,1114,4,7,65,69,97,100,101,115,116,13647,13652,13656,13661,13665,13737,13742,114,114,59,1,8653,59,3,8806,824,114,114,59,1,8602,114,59,1,8229,4,4,59,102,113,115,13675,13677,13703,13725,1,8816,116,4,2,97,114,13684,13691,114,114,111,119,59,1,8602,105,103,104,116,97,114,114,111,119,59,1,8622,4,3,59,113,115,13711,13713,13717,1,8816,59,3,8806,824,108,97,110,116,59,3,10877,824,4,2,59,115,13731,13734,3,10877,824,59,1,8814,105,109,59,1,8820,4,2,59,114,13748,13750,1,8814,105,4,2,59,101,13757,13759,1,8938,59,1,8940,105,100,59,1,8740,4,2,112,116,13773,13778,102,59,3,55349,56671,5,172,3,59,105,110,13787,13789,13829,1,172,110,4,4,59,69,100,118,13800,13802,13806,13812,1,8713,59,3,8953,824,111,116,59,3,8949,824,4,3,97,98,99,13820,13823,13826,59,1,8713,59,1,8951,59,1,8950,105,4,2,59,118,13836,13838,1,8716,4,3,97,98,99,13846,13849,13852,59,1,8716,59,1,8958,59,1,8957,4,3,97,111,114,13863,13892,13899,114,4,4,59,97,115,116,13874,13876,13883,13888,1,8742,108,108,101,108,59,1,8742,108,59,3,11005,8421,59,3,8706,824,108,105,110,116,59,1,10772,4,3,59,99,101,13907,13909,13914,1,8832,117,101,59,1,8928,4,2,59,99,13920,13923,3,10927,824,4,2,59,101,13929,13931,1,8832,113,59,3,10927,824,4,4,65,97,105,116,13946,13951,13971,13982,114,114,59,1,8655,114,114,4,3,59,99,119,13961,13963,13967,1,8603,59,3,10547,824,59,3,8605,824,103,104,116,97,114,114,111,119,59,1,8603,114,105,4,2,59,101,13990,13992,1,8939,59,1,8941,4,7,99,104,105,109,112,113,117,14011,14036,14060,14080,14085,14090,14106,4,4,59,99,101,114,14021,14023,14028,14032,1,8833,117,101,59,1,8929,59,3,10928,824,59,3,55349,56515,111,114,116,4,2,109,112,14045,14050,105,100,59,1,8740,97,114,97,108,108,101,108,59,1,8742,109,4,2,59,101,14067,14069,1,8769,4,2,59,113,14075,14077,1,8772,59,1,8772,105,100,59,1,8740,97,114,59,1,8742,115,117,4,2,98,112,14098,14102,101,59,1,8930,101,59,1,8931,4,3,98,99,112,14114,14157,14171,4,4,59,69,101,115,14124,14126,14130,14133,1,8836,59,3,10949,824,59,1,8840,101,116,4,2,59,101,14141,14144,3,8834,8402,113,4,2,59,113,14151,14153,1,8840,59,3,10949,824,99,4,2,59,101,14164,14166,1,8833,113,59,3,10928,824,4,4,59,69,101,115,14181,14183,14187,14190,1,8837,59,3,10950,824,59,1,8841,101,116,4,2,59,101,14198,14201,3,8835,8402,113,4,2,59,113,14208,14210,1,8841,59,3,10950,824,4,4,103,105,108,114,14224,14228,14238,14242,108,59,1,8825,108,100,101,5,241,1,59,14236,1,241,103,59,1,8824,105,97,110,103,108,101,4,2,108,114,14254,14269,101,102,116,4,2,59,101,14263,14265,1,8938,113,59,1,8940,105,103,104,116,4,2,59,101,14279,14281,1,8939,113,59,1,8941,4,2,59,109,14291,14293,1,957,4,3,59,101,115,14301,14303,14308,1,35,114,111,59,1,8470,112,59,1,8199,4,9,68,72,97,100,103,105,108,114,115,14332,14338,14344,14349,14355,14369,14376,14408,14426,97,115,104,59,1,8877,97,114,114,59,1,10500,112,59,3,8781,8402,97,115,104,59,1,8876,4,2,101,116,14361,14365,59,3,8805,8402,59,3,62,8402,110,102,105,110,59,1,10718,4,3,65,101,116,14384,14389,14393,114,114,59,1,10498,59,3,8804,8402,4,2,59,114,14399,14402,3,60,8402,105,101,59,3,8884,8402,4,2,65,116,14414,14419,114,114,59,1,10499,114,105,101,59,3,8885,8402,105,109,59,3,8764,8402,4,3,65,97,110,14440,14445,14468,114,114,59,1,8662,114,4,2,104,114,14452,14456,107,59,1,10531,4,2,59,111,14462,14464,1,8598,119,59,1,8598,101,97,114,59,1,10535,4,18,83,97,99,100,101,102,103,104,105,108,109,111,112,114,115,116,117,118,14512,14515,14535,14560,14597,14603,14618,14643,14657,14662,14701,14741,14747,14769,14851,14877,14907,14916,59,1,9416,4,2,99,115,14521,14531,117,116,101,5,243,1,59,14529,1,243,116,59,1,8859,4,2,105,121,14541,14557,114,4,2,59,99,14548,14550,1,8858,5,244,1,59,14555,1,244,59,1,1086,4,5,97,98,105,111,115,14572,14577,14583,14587,14591,115,104,59,1,8861,108,97,99,59,1,337,118,59,1,10808,116,59,1,8857,111,108,100,59,1,10684,108,105,103,59,1,339,4,2,99,114,14609,14614,105,114,59,1,10687,59,3,55349,56620,4,3,111,114,116,14626,14630,14640,110,59,1,731,97,118,101,5,242,1,59,14638,1,242,59,1,10689,4,2,98,109,14649,14654,97,114,59,1,10677,59,1,937,110,116,59,1,8750,4,4,97,99,105,116,14672,14677,14693,14698,114,114,59,1,8634,4,2,105,114,14683,14687,114,59,1,10686,111,115,115,59,1,10683,110,101,59,1,8254,59,1,10688,4,3,97,101,105,14709,14714,14719,99,114,59,1,333,103,97,59,1,969,4,3,99,100,110,14727,14733,14736,114,111,110,59,1,959,59,1,10678,117,115,59,1,8854,112,102,59,3,55349,56672,4,3,97,101,108,14755,14759,14764,114,59,1,10679,114,112,59,1,10681,117,115,59,1,8853,4,7,59,97,100,105,111,115,118,14785,14787,14792,14831,14837,14841,14848,1,8744,114,114,59,1,8635,4,4,59,101,102,109,14802,14804,14817,14824,1,10845,114,4,2,59,111,14811,14813,1,8500,102,59,1,8500,5,170,1,59,14822,1,170,5,186,1,59,14829,1,186,103,111,102,59,1,8886,114,59,1,10838,108,111,112,101,59,1,10839,59,1,10843,4,3,99,108,111,14859,14863,14873,114,59,1,8500,97,115,104,5,248,1,59,14871,1,248,108,59,1,8856,105,4,2,108,109,14884,14893,100,101,5,245,1,59,14891,1,245,101,115,4,2,59,97,14901,14903,1,8855,115,59,1,10806,109,108,5,246,1,59,14914,1,246,98,97,114,59,1,9021,4,12,97,99,101,102,104,105,108,109,111,114,115,117,14948,14992,14996,15033,15038,15068,15090,15189,15192,15222,15427,15441,114,4,4,59,97,115,116,14959,14961,14976,14989,1,8741,5,182,2,59,108,14968,14970,1,182,108,101,108,59,1,8741,4,2,105,108,14982,14986,109,59,1,10995,59,1,11005,59,1,8706,121,59,1,1087,114,4,5,99,105,109,112,116,15009,15014,15019,15024,15027,110,116,59,1,37,111,100,59,1,46,105,108,59,1,8240,59,1,8869,101,110,107,59,1,8241,114,59,3,55349,56621,4,3,105,109,111,15046,15057,15063,4,2,59,118,15052,15054,1,966,59,1,981,109,97,116,59,1,8499,110,101,59,1,9742,4,3,59,116,118,15076,15078,15087,1,960,99,104,102,111,114,107,59,1,8916,59,1,982,4,2,97,117,15096,15119,110,4,2,99,107,15103,15115,107,4,2,59,104,15110,15112,1,8463,59,1,8462,118,59,1,8463,115,4,9,59,97,98,99,100,101,109,115,116,15140,15142,15148,15151,15156,15168,15171,15179,15184,1,43,99,105,114,59,1,10787,59,1,8862,105,114,59,1,10786,4,2,111,117,15162,15165,59,1,8724,59,1,10789,59,1,10866,110,5,177,1,59,15177,1,177,105,109,59,1,10790,119,111,59,1,10791,59,1,177,4,3,105,112,117,15200,15208,15213,110,116,105,110,116,59,1,10773,102,59,3,55349,56673,110,100,5,163,1,59,15220,1,163,4,10,59,69,97,99,101,105,110,111,115,117,15244,15246,15249,15253,15258,15334,15347,15367,15416,15421,1,8826,59,1,10931,112,59,1,10935,117,101,59,1,8828,4,2,59,99,15264,15266,1,10927,4,6,59,97,99,101,110,115,15280,15282,15290,15299,15303,15329,1,8826,112,112,114,111,120,59,1,10935,117,114,108,121,101,113,59,1,8828,113,59,1,10927,4,3,97,101,115,15311,15319,15324,112,112,114,111,120,59,1,10937,113,113,59,1,10933,105,109,59,1,8936,105,109,59,1,8830,109,101,4,2,59,115,15342,15344,1,8242,59,1,8473,4,3,69,97,115,15355,15358,15362,59,1,10933,112,59,1,10937,105,109,59,1,8936,4,3,100,102,112,15375,15378,15404,59,1,8719,4,3,97,108,115,15386,15392,15398,108,97,114,59,1,9006,105,110,101,59,1,8978,117,114,102,59,1,8979,4,2,59,116,15410,15412,1,8733,111,59,1,8733,105,109,59,1,8830,114,101,108,59,1,8880,4,2,99,105,15433,15438,114,59,3,55349,56517,59,1,968,110,99,115,112,59,1,8200,4,6,102,105,111,112,115,117,15462,15467,15472,15478,15485,15491,114,59,3,55349,56622,110,116,59,1,10764,112,102,59,3,55349,56674,114,105,109,101,59,1,8279,99,114,59,3,55349,56518,4,3,97,101,111,15499,15520,15534,116,4,2,101,105,15506,15515,114,110,105,111,110,115,59,1,8461,110,116,59,1,10774,115,116,4,2,59,101,15528,15530,1,63,113,59,1,8799,116,5,34,1,59,15540,1,34,4,21,65,66,72,97,98,99,100,101,102,104,105,108,109,110,111,112,114,115,116,117,120,15586,15609,15615,15620,15796,15855,15893,15931,15977,16001,16039,16183,16204,16222,16228,16285,16312,16318,16363,16408,16416,4,3,97,114,116,15594,15599,15603,114,114,59,1,8667,114,59,1,8658,97,105,108,59,1,10524,97,114,114,59,1,10511,97,114,59,1,10596,4,7,99,100,101,110,113,114,116,15636,15651,15656,15664,15687,15696,15770,4,2,101,117,15642,15646,59,3,8765,817,116,101,59,1,341,105,99,59,1,8730,109,112,116,121,118,59,1,10675,103,4,4,59,100,101,108,15675,15677,15680,15683,1,10217,59,1,10642,59,1,10661,101,59,1,10217,117,111,5,187,1,59,15694,1,187,114,4,11,59,97,98,99,102,104,108,112,115,116,119,15721,15723,15727,15739,15742,15746,15750,15754,15758,15763,15767,1,8594,112,59,1,10613,4,2,59,102,15733,15735,1,8677,115,59,1,10528,59,1,10547,115,59,1,10526,107,59,1,8618,112,59,1,8620,108,59,1,10565,105,109,59,1,10612,108,59,1,8611,59,1,8605,4,2,97,105,15776,15781,105,108,59,1,10522,111,4,2,59,110,15788,15790,1,8758,97,108,115,59,1,8474,4,3,97,98,114,15804,15809,15814,114,114,59,1,10509,114,107,59,1,10099,4,2,97,107,15820,15833,99,4,2,101,107,15827,15830,59,1,125,59,1,93,4,2,101,115,15839,15842,59,1,10636,108,4,2,100,117,15849,15852,59,1,10638,59,1,10640,4,4,97,101,117,121,15865,15871,15886,15890,114,111,110,59,1,345,4,2,100,105,15877,15882,105,108,59,1,343,108,59,1,8969,98,59,1,125,59,1,1088,4,4,99,108,113,115,15903,15907,15914,15927,97,59,1,10551,100,104,97,114,59,1,10601,117,111,4,2,59,114,15922,15924,1,8221,59,1,8221,104,59,1,8627,4,3,97,99,103,15939,15966,15970,108,4,4,59,105,112,115,15950,15952,15957,15963,1,8476,110,101,59,1,8475,97,114,116,59,1,8476,59,1,8477,116,59,1,9645,5,174,1,59,15975,1,174,4,3,105,108,114,15985,15991,15997,115,104,116,59,1,10621,111,111,114,59,1,8971,59,3,55349,56623,4,2,97,111,16007,16028,114,4,2,100,117,16014,16017,59,1,8641,4,2,59,108,16023,16025,1,8640,59,1,10604,4,2,59,118,16034,16036,1,961,59,1,1009,4,3,103,110,115,16047,16167,16171,104,116,4,6,97,104,108,114,115,116,16063,16081,16103,16130,16143,16155,114,114,111,119,4,2,59,116,16073,16075,1,8594,97,105,108,59,1,8611,97,114,112,111,111,110,4,2,100,117,16093,16099,111,119,110,59,1,8641,112,59,1,8640,101,102,116,4,2,97,104,16112,16120,114,114,111,119,115,59,1,8644,97,114,112,111,111,110,115,59,1,8652,105,103,104,116,97,114,114,111,119,115,59,1,8649,113,117,105,103,97,114,114,111,119,59,1,8605,104,114,101,101,116,105,109,101,115,59,1,8908,103,59,1,730,105,110,103,100,111,116,115,101,113,59,1,8787,4,3,97,104,109,16191,16196,16201,114,114,59,1,8644,97,114,59,1,8652,59,1,8207,111,117,115,116,4,2,59,97,16214,16216,1,9137,99,104,101,59,1,9137,109,105,100,59,1,10990,4,4,97,98,112,116,16238,16252,16257,16278,4,2,110,114,16244,16248,103,59,1,10221,114,59,1,8702,114,107,59,1,10215,4,3,97,102,108,16265,16269,16273,114,59,1,10630,59,3,55349,56675,117,115,59,1,10798,105,109,101,115,59,1,10805,4,2,97,112,16291,16304,114,4,2,59,103,16298,16300,1,41,116,59,1,10644,111,108,105,110,116,59,1,10770,97,114,114,59,1,8649,4,4,97,99,104,113,16328,16334,16339,16342,113,117,111,59,1,8250,114,59,3,55349,56519,59,1,8625,4,2,98,117,16348,16351,59,1,93,111,4,2,59,114,16358,16360,1,8217,59,1,8217,4,3,104,105,114,16371,16377,16383,114,101,101,59,1,8908,109,101,115,59,1,8906,105,4,4,59,101,102,108,16394,16396,16399,16402,1,9657,59,1,8885,59,1,9656,116,114,105,59,1,10702,108,117,104,97,114,59,1,10600,59,1,8478,4,19,97,98,99,100,101,102,104,105,108,109,111,112,113,114,115,116,117,119,122,16459,16466,16472,16572,16590,16672,16687,16746,16844,16850,16924,16963,16988,17115,17121,17154,17206,17614,17656,99,117,116,101,59,1,347,113,117,111,59,1,8218,4,10,59,69,97,99,101,105,110,112,115,121,16494,16496,16499,16513,16518,16531,16536,16556,16564,16569,1,8827,59,1,10932,4,2,112,114,16505,16508,59,1,10936,111,110,59,1,353,117,101,59,1,8829,4,2,59,100,16524,16526,1,10928,105,108,59,1,351,114,99,59,1,349,4,3,69,97,115,16544,16547,16551,59,1,10934,112,59,1,10938,105,109,59,1,8937,111,108,105,110,116,59,1,10771,105,109,59,1,8831,59,1,1089,111,116,4,3,59,98,101,16582,16584,16587,1,8901,59,1,8865,59,1,10854,4,7,65,97,99,109,115,116,120,16606,16611,16634,16642,16646,16652,16668,114,114,59,1,8664,114,4,2,104,114,16618,16622,107,59,1,10533,4,2,59,111,16628,16630,1,8600,119,59,1,8600,116,5,167,1,59,16640,1,167,105,59,1,59,119,97,114,59,1,10537,109,4,2,105,110,16659,16665,110,117,115,59,1,8726,59,1,8726,116,59,1,10038,114,4,2,59,111,16679,16682,3,55349,56624,119,110,59,1,8994,4,4,97,99,111,121,16697,16702,16716,16739,114,112,59,1,9839,4,2,104,121,16708,16713,99,121,59,1,1097,59,1,1096,114,116,4,2,109,112,16724,16729,105,100,59,1,8739,97,114,97,108,108,101,108,59,1,8741,5,173,1,59,16744,1,173,4,2,103,109,16752,16770,109,97,4,3,59,102,118,16762,16764,16767,1,963,59,1,962,59,1,962,4,8,59,100,101,103,108,110,112,114,16788,16790,16795,16806,16817,16828,16832,16838,1,8764,111,116,59,1,10858,4,2,59,113,16801,16803,1,8771,59,1,8771,4,2,59,69,16812,16814,1,10910,59,1,10912,4,2,59,69,16823,16825,1,10909,59,1,10911,101,59,1,8774,108,117,115,59,1,10788,97,114,114,59,1,10610,97,114,114,59,1,8592,4,4,97,101,105,116,16860,16883,16891,16904,4,2,108,115,16866,16878,108,115,101,116,109,105,110,117,115,59,1,8726,104,112,59,1,10803,112,97,114,115,108,59,1,10724,4,2,100,108,16897,16900,59,1,8739,101,59,1,8995,4,2,59,101,16910,16912,1,10922,4,2,59,115,16918,16920,1,10924,59,3,10924,65024,4,3,102,108,112,16932,16938,16958,116,99,121,59,1,1100,4,2,59,98,16944,16946,1,47,4,2,59,97,16952,16954,1,10692,114,59,1,9023,102,59,3,55349,56676,97,4,2,100,114,16970,16985,101,115,4,2,59,117,16978,16980,1,9824,105,116,59,1,9824,59,1,8741,4,3,99,115,117,16996,17028,17089,4,2,97,117,17002,17015,112,4,2,59,115,17009,17011,1,8851,59,3,8851,65024,112,4,2,59,115,17022,17024,1,8852,59,3,8852,65024,117,4,2,98,112,17035,17062,4,3,59,101,115,17043,17045,17048,1,8847,59,1,8849,101,116,4,2,59,101,17056,17058,1,8847,113,59,1,8849,4,3,59,101,115,17070,17072,17075,1,8848,59,1,8850,101,116,4,2,59,101,17083,17085,1,8848,113,59,1,8850,4,3,59,97,102,17097,17099,17112,1,9633,114,4,2,101,102,17106,17109,59,1,9633,59,1,9642,59,1,9642,97,114,114,59,1,8594,4,4,99,101,109,116,17131,17136,17142,17148,114,59,3,55349,56520,116,109,110,59,1,8726,105,108,101,59,1,8995,97,114,102,59,1,8902,4,2,97,114,17160,17172,114,4,2,59,102,17167,17169,1,9734,59,1,9733,4,2,97,110,17178,17202,105,103,104,116,4,2,101,112,17188,17197,112,115,105,108,111,110,59,1,1013,104,105,59,1,981,115,59,1,175,4,5,98,99,109,110,112,17218,17351,17420,17423,17427,4,9,59,69,100,101,109,110,112,114,115,17238,17240,17243,17248,17261,17267,17279,17285,17291,1,8834,59,1,10949,111,116,59,1,10941,4,2,59,100,17254,17256,1,8838,111,116,59,1,10947,117,108,116,59,1,10945,4,2,69,101,17273,17276,59,1,10955,59,1,8842,108,117,115,59,1,10943,97,114,114,59,1,10617,4,3,101,105,117,17299,17335,17339,116,4,3,59,101,110,17308,17310,17322,1,8834,113,4,2,59,113,17317,17319,1,8838,59,1,10949,101,113,4,2,59,113,17330,17332,1,8842,59,1,10955,109,59,1,10951,4,2,98,112,17345,17348,59,1,10965,59,1,10963,99,4,6,59,97,99,101,110,115,17366,17368,17376,17385,17389,17415,1,8827,112,112,114,111,120,59,1,10936,117,114,108,121,101,113,59,1,8829,113,59,1,10928,4,3,97,101,115,17397,17405,17410,112,112,114,111,120,59,1,10938,113,113,59,1,10934,105,109,59,1,8937,105,109,59,1,8831,59,1,8721,103,59,1,9834,4,13,49,50,51,59,69,100,101,104,108,109,110,112,115,17455,17462,17469,17476,17478,17481,17496,17509,17524,17530,17536,17548,17554,5,185,1,59,17460,1,185,5,178,1,59,17467,1,178,5,179,1,59,17474,1,179,1,8835,59,1,10950,4,2,111,115,17487,17491,116,59,1,10942,117,98,59,1,10968,4,2,59,100,17502,17504,1,8839,111,116,59,1,10948,115,4,2,111,117,17516,17520,108,59,1,10185,98,59,1,10967,97,114,114,59,1,10619,117,108,116,59,1,10946,4,2,69,101,17542,17545,59,1,10956,59,1,8843,108,117,115,59,1,10944,4,3,101,105,117,17562,17598,17602,116,4,3,59,101,110,17571,17573,17585,1,8835,113,4,2,59,113,17580,17582,1,8839,59,1,10950,101,113,4,2,59,113,17593,17595,1,8843,59,1,10956,109,59,1,10952,4,2,98,112,17608,17611,59,1,10964,59,1,10966,4,3,65,97,110,17622,17627,17650,114,114,59,1,8665,114,4,2,104,114,17634,17638,107,59,1,10534,4,2,59,111,17644,17646,1,8601,119,59,1,8601,119,97,114,59,1,10538,108,105,103,5,223,1,59,17664,1,223,4,13,97,98,99,100,101,102,104,105,111,112,114,115,119,17694,17709,17714,17737,17742,17749,17754,17860,17905,17957,17964,18090,18122,4,2,114,117,17700,17706,103,101,116,59,1,8982,59,1,964,114,107,59,1,9140,4,3,97,101,121,17722,17728,17734,114,111,110,59,1,357,100,105,108,59,1,355,59,1,1090,111,116,59,1,8411,108,114,101,99,59,1,8981,114,59,3,55349,56625,4,4,101,105,107,111,17764,17805,17836,17851,4,2,114,116,17770,17786,101,4,2,52,102,17777,17780,59,1,8756,111,114,101,59,1,8756,97,4,3,59,115,118,17795,17797,17802,1,952,121,109,59,1,977,59,1,977,4,2,99,110,17811,17831,107,4,2,97,115,17818,17826,112,112,114,111,120,59,1,8776,105,109,59,1,8764,115,112,59,1,8201,4,2,97,115,17842,17846,112,59,1,8776,105,109,59,1,8764,114,110,5,254,1,59,17858,1,254,4,3,108,109,110,17868,17873,17901,100,101,59,1,732,101,115,5,215,3,59,98,100,17884,17886,17898,1,215,4,2,59,97,17892,17894,1,8864,114,59,1,10801,59,1,10800,116,59,1,8749,4,3,101,112,115,17913,17917,17953,97,59,1,10536,4,4,59,98,99,102,17927,17929,17934,17939,1,8868,111,116,59,1,9014,105,114,59,1,10993,4,2,59,111,17945,17948,3,55349,56677,114,107,59,1,10970,97,59,1,10537,114,105,109,101,59,1,8244,4,3,97,105,112,17972,17977,18082,100,101,59,1,8482,4,7,97,100,101,109,112,115,116,17993,18051,18056,18059,18066,18072,18076,110,103,108,101,4,5,59,100,108,113,114,18009,18011,18017,18032,18035,1,9653,111,119,110,59,1,9663,101,102,116,4,2,59,101,18026,18028,1,9667,113,59,1,8884,59,1,8796,105,103,104,116,4,2,59,101,18045,18047,1,9657,113,59,1,8885,111,116,59,1,9708,59,1,8796,105,110,117,115,59,1,10810,108,117,115,59,1,10809,98,59,1,10701,105,109,101,59,1,10811,101,122,105,117,109,59,1,9186,4,3,99,104,116,18098,18111,18116,4,2,114,121,18104,18108,59,3,55349,56521,59,1,1094,99,121,59,1,1115,114,111,107,59,1,359,4,2,105,111,18128,18133,120,116,59,1,8812,104,101,97,100,4,2,108,114,18143,18154,101,102,116,97,114,114,111,119,59,1,8606,105,103,104,116,97,114,114,111,119,59,1,8608,4,18,65,72,97,98,99,100,102,103,104,108,109,111,112,114,115,116,117,119,18204,18209,18214,18234,18250,18268,18292,18308,18319,18343,18379,18397,18413,18504,18547,18553,18584,18603,114,114,59,1,8657,97,114,59,1,10595,4,2,99,114,18220,18230,117,116,101,5,250,1,59,18228,1,250,114,59,1,8593,114,4,2,99,101,18241,18245,121,59,1,1118,118,101,59,1,365,4,2,105,121,18256,18265,114,99,5,251,1,59,18263,1,251,59,1,1091,4,3,97,98,104,18276,18281,18287,114,114,59,1,8645,108,97,99,59,1,369,97,114,59,1,10606,4,2,105,114,18298,18304,115,104,116,59,1,10622,59,3,55349,56626,114,97,118,101,5,249,1,59,18317,1,249,4,2,97,98,18325,18338,114,4,2,108,114,18332,18335,59,1,8639,59,1,8638,108,107,59,1,9600,4,2,99,116,18349,18374,4,2,111,114,18355,18369,114,110,4,2,59,101,18363,18365,1,8988,114,59,1,8988,111,112,59,1,8975,114,105,59,1,9720,4,2,97,108,18385,18390,99,114,59,1,363,5,168,1,59,18395,1,168,4,2,103,112,18403,18408,111,110,59,1,371,102,59,3,55349,56678,4,6,97,100,104,108,115,117,18427,18434,18445,18470,18475,18494,114,114,111,119,59,1,8593,111,119,110,97,114,114,111,119,59,1,8597,97,114,112,111,111,110,4,2,108,114,18457,18463,101,102,116,59,1,8639,105,103,104,116,59,1,8638,117,115,59,1,8846,105,4,3,59,104,108,18484,18486,18489,1,965,59,1,978,111,110,59,1,965,112,97,114,114,111,119,115,59,1,8648,4,3,99,105,116,18512,18537,18542,4,2,111,114,18518,18532,114,110,4,2,59,101,18526,18528,1,8989,114,59,1,8989,111,112,59,1,8974,110,103,59,1,367,114,105,59,1,9721,99,114,59,3,55349,56522,4,3,100,105,114,18561,18566,18572,111,116,59,1,8944,108,100,101,59,1,361,105,4,2,59,102,18579,18581,1,9653,59,1,9652,4,2,97,109,18590,18595,114,114,59,1,8648,108,5,252,1,59,18601,1,252,97,110,103,108,101,59,1,10663,4,15,65,66,68,97,99,100,101,102,108,110,111,112,114,115,122,18643,18648,18661,18667,18847,18851,18857,18904,18909,18915,18931,18937,18943,18949,18996,114,114,59,1,8661,97,114,4,2,59,118,18656,18658,1,10984,59,1,10985,97,115,104,59,1,8872,4,2,110,114,18673,18679,103,114,116,59,1,10652,4,7,101,107,110,112,114,115,116,18695,18704,18711,18720,18742,18754,18810,112,115,105,108,111,110,59,1,1013,97,112,112,97,59,1,1008,111,116,104,105,110,103,59,1,8709,4,3,104,105,114,18728,18732,18735,105,59,1,981,59,1,982,111,112,116,111,59,1,8733,4,2,59,104,18748,18750,1,8597,111,59,1,1009,4,2,105,117,18760,18766,103,109,97,59,1,962,4,2,98,112,18772,18791,115,101,116,110,101,113,4,2,59,113,18784,18787,3,8842,65024,59,3,10955,65024,115,101,116,110,101,113,4,2,59,113,18803,18806,3,8843,65024,59,3,10956,65024,4,2,104,114,18816,18822,101,116,97,59,1,977,105,97,110,103,108,101,4,2,108,114,18834,18840,101,102,116,59,1,8882,105,103,104,116,59,1,8883,121,59,1,1074,97,115,104,59,1,8866,4,3,101,108,114,18865,18884,18890,4,3,59,98,101,18873,18875,18880,1,8744,97,114,59,1,8891,113,59,1,8794,108,105,112,59,1,8942,4,2,98,116,18896,18901,97,114,59,1,124,59,1,124,114,59,3,55349,56627,116,114,105,59,1,8882,115,117,4,2,98,112,18923,18927,59,3,8834,8402,59,3,8835,8402,112,102,59,3,55349,56679,114,111,112,59,1,8733,116,114,105,59,1,8883,4,2,99,117,18955,18960,114,59,3,55349,56523,4,2,98,112,18966,18981,110,4,2,69,101,18973,18977,59,3,10955,65024,59,3,8842,65024,110,4,2,69,101,18988,18992,59,3,10956,65024,59,3,8843,65024,105,103,122,97,103,59,1,10650,4,7,99,101,102,111,112,114,115,19020,19026,19061,19066,19072,19075,19089,105,114,99,59,1,373,4,2,100,105,19032,19055,4,2,98,103,19038,19043,97,114,59,1,10847,101,4,2,59,113,19050,19052,1,8743,59,1,8793,101,114,112,59,1,8472,114,59,3,55349,56628,112,102,59,3,55349,56680,59,1,8472,4,2,59,101,19081,19083,1,8768,97,116,104,59,1,8768,99,114,59,3,55349,56524,4,14,99,100,102,104,105,108,109,110,111,114,115,117,118,119,19125,19146,19152,19157,19173,19176,19192,19197,19202,19236,19252,19269,19286,19291,4,3,97,105,117,19133,19137,19142,112,59,1,8898,114,99,59,1,9711,112,59,1,8899,116,114,105,59,1,9661,114,59,3,55349,56629,4,2,65,97,19163,19168,114,114,59,1,10234,114,114,59,1,10231,59,1,958,4,2,65,97,19182,19187,114,114,59,1,10232,114,114,59,1,10229,97,112,59,1,10236,105,115,59,1,8955,4,3,100,112,116,19210,19215,19230,111,116,59,1,10752,4,2,102,108,19221,19225,59,3,55349,56681,117,115,59,1,10753,105,109,101,59,1,10754,4,2,65,97,19242,19247,114,114,59,1,10233,114,114,59,1,10230,4,2,99,113,19258,19263,114,59,3,55349,56525,99,117,112,59,1,10758,4,2,112,116,19275,19281,108,117,115,59,1,10756,114,105,59,1,9651,101,101,59,1,8897,101,100,103,101,59,1,8896,4,8,97,99,101,102,105,111,115,117,19316,19335,19349,19357,19362,19367,19373,19379,99,4,2,117,121,19323,19332,116,101,5,253,1,59,19330,1,253,59,1,1103,4,2,105,121,19341,19346,114,99,59,1,375,59,1,1099,110,5,165,1,59,19355,1,165,114,59,3,55349,56630,99,121,59,1,1111,112,102,59,3,55349,56682,99,114,59,3,55349,56526,4,2,99,109,19385,19389,121,59,1,1102,108,5,255,1,59,19395,1,255,4,10,97,99,100,101,102,104,105,111,115,119,19419,19426,19441,19446,19462,19467,19472,19480,19486,19492,99,117,116,101,59,1,378,4,2,97,121,19432,19438,114,111,110,59,1,382,59,1,1079,111,116,59,1,380,4,2,101,116,19452,19458,116,114,102,59,1,8488,97,59,1,950,114,59,3,55349,56631,99,121,59,1,1078,103,114,97,114,114,59,1,8669,112,102,59,3,55349,56683,99,114,59,3,55349,56527,4,2,106,110,19498,19501,59,1,8205,106,59,1,8204]);const L5e=M5e,Qn=dl,Su=P5e,ht=K3,Ee=Qn.CODE_POINTS,eu=Qn.CODE_POINT_SEQUENCES,D5e={128:8364,130:8218,131:402,132:8222,133:8230,134:8224,135:8225,136:710,137:8240,138:352,139:8249,140:338,142:381,145:8216,146:8217,147:8220,148:8221,149:8226,150:8211,151:8212,152:732,153:8482,154:353,155:8250,156:339,158:382,159:376},RH=1,MH=2,PH=4,F5e=RH|MH|PH,xn="DATA_STATE",Hd="RCDATA_STATE",Bh="RAWTEXT_STATE",es="SCRIPT_DATA_STATE",LH="PLAINTEXT_STATE",rN="TAG_OPEN_STATE",iN="END_TAG_OPEN_STATE",b9="TAG_NAME_STATE",oN="RCDATA_LESS_THAN_SIGN_STATE",aN="RCDATA_END_TAG_OPEN_STATE",lN="RCDATA_END_TAG_NAME_STATE",sN="RAWTEXT_LESS_THAN_SIGN_STATE",cN="RAWTEXT_END_TAG_OPEN_STATE",uN="RAWTEXT_END_TAG_NAME_STATE",dN="SCRIPT_DATA_LESS_THAN_SIGN_STATE",fN="SCRIPT_DATA_END_TAG_OPEN_STATE",hN="SCRIPT_DATA_END_TAG_NAME_STATE",pN="SCRIPT_DATA_ESCAPE_START_STATE",mN="SCRIPT_DATA_ESCAPE_START_DASH_STATE",za="SCRIPT_DATA_ESCAPED_STATE",gN="SCRIPT_DATA_ESCAPED_DASH_STATE",C9="SCRIPT_DATA_ESCAPED_DASH_DASH_STATE",gg="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN_STATE",vN="SCRIPT_DATA_ESCAPED_END_TAG_OPEN_STATE",yN="SCRIPT_DATA_ESCAPED_END_TAG_NAME_STATE",bN="SCRIPT_DATA_DOUBLE_ESCAPE_START_STATE",ql="SCRIPT_DATA_DOUBLE_ESCAPED_STATE",CN="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_STATE",SN="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH_STATE",vg="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN_STATE",EN="SCRIPT_DATA_DOUBLE_ESCAPE_END_STATE",yl="BEFORE_ATTRIBUTE_NAME_STATE",yg="ATTRIBUTE_NAME_STATE",S9="AFTER_ATTRIBUTE_NAME_STATE",E9="BEFORE_ATTRIBUTE_VALUE_STATE",bg="ATTRIBUTE_VALUE_DOUBLE_QUOTED_STATE",Cg="ATTRIBUTE_VALUE_SINGLE_QUOTED_STATE",Sg="ATTRIBUTE_VALUE_UNQUOTED_STATE",x9="AFTER_ATTRIBUTE_VALUE_QUOTED_STATE",Ps="SELF_CLOSING_START_TAG_STATE",Ch="BOGUS_COMMENT_STATE",xN="MARKUP_DECLARATION_OPEN_STATE",wN="COMMENT_START_STATE",TN="COMMENT_START_DASH_STATE",Ls="COMMENT_STATE",_N="COMMENT_LESS_THAN_SIGN_STATE",ON="COMMENT_LESS_THAN_SIGN_BANG_STATE",IN="COMMENT_LESS_THAN_SIGN_BANG_DASH_STATE",$N="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH_STATE",Eg="COMMENT_END_DASH_STATE",xg="COMMENT_END_STATE",NN="COMMENT_END_BANG_STATE",AN="DOCTYPE_STATE",wg="BEFORE_DOCTYPE_NAME_STATE",Tg="DOCTYPE_NAME_STATE",kN="AFTER_DOCTYPE_NAME_STATE",RN="AFTER_DOCTYPE_PUBLIC_KEYWORD_STATE",MN="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER_STATE",w9="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED_STATE",T9="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED_STATE",_9="AFTER_DOCTYPE_PUBLIC_IDENTIFIER_STATE",PN="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS_STATE",LN="AFTER_DOCTYPE_SYSTEM_KEYWORD_STATE",DN="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER_STATE",Sh="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED_STATE",Eh="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED_STATE",O9="AFTER_DOCTYPE_SYSTEM_IDENTIFIER_STATE",Xl="BOGUS_DOCTYPE_STATE",_g="CDATA_SECTION_STATE",FN="CDATA_SECTION_BRACKET_STATE",BN="CDATA_SECTION_END_STATE",Md="CHARACTER_REFERENCE_STATE",jN="NAMED_CHARACTER_REFERENCE_STATE",HN="AMBIGUOS_AMPERSAND_STATE",zN="NUMERIC_CHARACTER_REFERENCE_STATE",WN="HEXADEMICAL_CHARACTER_REFERENCE_START_STATE",UN="DECIMAL_CHARACTER_REFERENCE_START_STATE",KN="HEXADEMICAL_CHARACTER_REFERENCE_STATE",VN="DECIMAL_CHARACTER_REFERENCE_STATE",xh="NUMERIC_CHARACTER_REFERENCE_END_STATE";function dr(e){return e===Ee.SPACE||e===Ee.LINE_FEED||e===Ee.TABULATION||e===Ee.FORM_FEED}function cp(e){return e>=Ee.DIGIT_0&&e<=Ee.DIGIT_9}function Ua(e){return e>=Ee.LATIN_CAPITAL_A&&e<=Ee.LATIN_CAPITAL_Z}function au(e){return e>=Ee.LATIN_SMALL_A&&e<=Ee.LATIN_SMALL_Z}function Vs(e){return au(e)||Ua(e)}function I9(e){return Vs(e)||cp(e)}function DH(e){return e>=Ee.LATIN_CAPITAL_A&&e<=Ee.LATIN_CAPITAL_F}function FH(e){return e>=Ee.LATIN_SMALL_A&&e<=Ee.LATIN_SMALL_F}function B5e(e){return cp(e)||DH(e)||FH(e)}function vv(e){return e+32}function Dr(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(e>>>10&1023|55296)+String.fromCharCode(56320|e&1023))}function Ds(e){return String.fromCharCode(vv(e))}function GN(e,t){const n=Su[++e];let r=++e,i=r+n-1;for(;r<=i;){const o=r+i>>>1,a=Su[o];if(a<t)r=o+1;else if(a>t)i=o-1;else return Su[o+n]}return-1}let Ma=class Eo{constructor(){this.preprocessor=new L5e,this.tokenQueue=[],this.allowCDATA=!1,this.state=xn,this.returnState="",this.charRefCode=-1,this.tempBuff=[],this.lastStartTagName="",this.consumedAfterSnapshot=-1,this.active=!1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr=null}_err(){}_errOnNextCodePoint(t){this._consume(),this._err(t),this._unconsume()}getNextToken(){for(;!this.tokenQueue.length&&this.active;){this.consumedAfterSnapshot=0;const t=this._consume();this._ensureHibernation()||this[this.state](t)}return this.tokenQueue.shift()}write(t,n){this.active=!0,this.preprocessor.write(t,n)}insertHtmlAtCurrentPos(t){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(t)}_ensureHibernation(){if(this.preprocessor.endOfChunkHit){for(;this.consumedAfterSnapshot>0;this.consumedAfterSnapshot--)this.preprocessor.retreat();return this.active=!1,this.tokenQueue.push({type:Eo.HIBERNATION_TOKEN}),!0}return!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_unconsume(){this.consumedAfterSnapshot--,this.preprocessor.retreat()}_reconsumeInState(t){this.state=t,this._unconsume()}_consumeSequenceIfMatch(t,n,r){let i=0,o=!0;const a=t.length;let l=0,c=n,u;for(;l<a;l++){if(l>0&&(c=this._consume(),i++),c===Ee.EOF){o=!1;break}if(u=t[l],c!==u&&(r||c!==vv(u))){o=!1;break}}if(!o)for(;i--;)this._unconsume();return o}_isTempBufferEqualToScriptString(){if(this.tempBuff.length!==eu.SCRIPT_STRING.length)return!1;for(let t=0;t<this.tempBuff.length;t++)if(this.tempBuff[t]!==eu.SCRIPT_STRING[t])return!1;return!0}_createStartTagToken(){this.currentToken={type:Eo.START_TAG_TOKEN,tagName:"",selfClosing:!1,ackSelfClosing:!1,attrs:[]}}_createEndTagToken(){this.currentToken={type:Eo.END_TAG_TOKEN,tagName:"",selfClosing:!1,attrs:[]}}_createCommentToken(){this.currentToken={type:Eo.COMMENT_TOKEN,data:""}}_createDoctypeToken(t){this.currentToken={type:Eo.DOCTYPE_TOKEN,name:t,forceQuirks:!1,publicId:null,systemId:null}}_createCharacterToken(t,n){this.currentCharacterToken={type:t,chars:n}}_createEOFToken(){this.currentToken={type:Eo.EOF_TOKEN}}_createAttr(t){this.currentAttr={name:t,value:""}}_leaveAttrName(t){Eo.getTokenAttr(this.currentToken,this.currentAttr.name)===null?this.currentToken.attrs.push(this.currentAttr):this._err(ht.duplicateAttribute),this.state=t}_leaveAttrValue(t){this.state=t}_emitCurrentToken(){this._emitCurrentCharacterToken();const t=this.currentToken;this.currentToken=null,t.type===Eo.START_TAG_TOKEN?this.lastStartTagName=t.tagName:t.type===Eo.END_TAG_TOKEN&&(t.attrs.length>0&&this._err(ht.endTagWithAttributes),t.selfClosing&&this._err(ht.endTagWithTrailingSolidus)),this.tokenQueue.push(t)}_emitCurrentCharacterToken(){this.currentCharacterToken&&(this.tokenQueue.push(this.currentCharacterToken),this.currentCharacterToken=null)}_emitEOFToken(){this._createEOFToken(),this._emitCurrentToken()}_appendCharToCurrentCharacterToken(t,n){this.currentCharacterToken&&this.currentCharacterToken.type!==t&&this._emitCurrentCharacterToken(),this.currentCharacterToken?this.currentCharacterToken.chars+=n:this._createCharacterToken(t,n)}_emitCodePoint(t){let n=Eo.CHARACTER_TOKEN;dr(t)?n=Eo.WHITESPACE_CHARACTER_TOKEN:t===Ee.NULL&&(n=Eo.NULL_CHARACTER_TOKEN),this._appendCharToCurrentCharacterToken(n,Dr(t))}_emitSeveralCodePoints(t){for(let n=0;n<t.length;n++)this._emitCodePoint(t[n])}_emitChars(t){this._appendCharToCurrentCharacterToken(Eo.CHARACTER_TOKEN,t)}_matchNamedCharacterReference(t){let n=null,r=1,i=GN(0,t);for(this.tempBuff.push(t);i>-1;){const o=Su[i],a=o<F5e;a&&o&RH&&(n=o&MH?[Su[++i],Su[++i]]:[Su[++i]],r=0);const c=this._consume();if(this.tempBuff.push(c),r++,c===Ee.EOF)break;a?i=o&PH?GN(i,c):-1:i=c===o?++i:-1}for(;r--;)this.tempBuff.pop(),this._unconsume();return n}_isCharacterReferenceInAttribute(){return this.returnState===bg||this.returnState===Cg||this.returnState===Sg}_isCharacterReferenceAttributeQuirk(t){if(!t&&this._isCharacterReferenceInAttribute()){const n=this._consume();return this._unconsume(),n===Ee.EQUALS_SIGN||I9(n)}return!1}_flushCodePointsConsumedAsCharacterReference(){if(this._isCharacterReferenceInAttribute())for(let t=0;t<this.tempBuff.length;t++)this.currentAttr.value+=Dr(this.tempBuff[t]);else this._emitSeveralCodePoints(this.tempBuff);this.tempBuff=[]}[xn](t){this.preprocessor.dropParsedChunk(),t===Ee.LESS_THAN_SIGN?this.state=rN:t===Ee.AMPERSAND?(this.returnState=xn,this.state=Md):t===Ee.NULL?(this._err(ht.unexpectedNullCharacter),this._emitCodePoint(t)):t===Ee.EOF?this._emitEOFToken():this._emitCodePoint(t)}[Hd](t){this.preprocessor.dropParsedChunk(),t===Ee.AMPERSAND?(this.returnState=Hd,this.state=Md):t===Ee.LESS_THAN_SIGN?this.state=oN:t===Ee.NULL?(this._err(ht.unexpectedNullCharacter),this._emitChars(Qn.REPLACEMENT_CHARACTER)):t===Ee.EOF?this._emitEOFToken():this._emitCodePoint(t)}[Bh](t){this.preprocessor.dropParsedChunk(),t===Ee.LESS_THAN_SIGN?this.state=sN:t===Ee.NULL?(this._err(ht.unexpectedNullCharacter),this._emitChars(Qn.REPLACEMENT_CHARACTER)):t===Ee.EOF?this._emitEOFToken():this._emitCodePoint(t)}[es](t){this.preprocessor.dropParsedChunk(),t===Ee.LESS_THAN_SIGN?this.state=dN:t===Ee.NULL?(this._err(ht.unexpectedNullCharacter),this._emitChars(Qn.REPLACEMENT_CHARACTER)):t===Ee.EOF?this._emitEOFToken():this._emitCodePoint(t)}[LH](t){this.preprocessor.dropParsedChunk(),t===Ee.NULL?(this._err(ht.unexpectedNullCharacter),this._emitChars(Qn.REPLACEMENT_CHARACTER)):t===Ee.EOF?this._emitEOFToken():this._emitCodePoint(t)}[rN](t){t===Ee.EXCLAMATION_MARK?this.state=xN:t===Ee.SOLIDUS?this.state=iN:Vs(t)?(this._createStartTagToken(),this._reconsumeInState(b9)):t===Ee.QUESTION_MARK?(this._err(ht.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(),this._reconsumeInState(Ch)):t===Ee.EOF?(this._err(ht.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken()):(this._err(ht.invalidFirstCharacterOfTagName),this._emitChars("<"),this._reconsumeInState(xn))}[iN](t){Vs(t)?(this._createEndTagToken(),this._reconsumeInState(b9)):t===Ee.GREATER_THAN_SIGN?(this._err(ht.missingEndTagName),this.state=xn):t===Ee.EOF?(this._err(ht.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken()):(this._err(ht.invalidFirstCharacterOfTagName),this._createCommentToken(),this._reconsumeInState(Ch))}[b9](t){dr(t)?this.state=yl:t===Ee.SOLIDUS?this.state=Ps:t===Ee.GREATER_THAN_SIGN?(this.state=xn,this._emitCurrentToken()):Ua(t)?this.currentToken.tagName+=Ds(t):t===Ee.NULL?(this._err(ht.unexpectedNullCharacter),this.currentToken.tagName+=Qn.REPLACEMENT_CHARACTER):t===Ee.EOF?(this._err(ht.eofInTag),this._emitEOFToken()):this.currentToken.tagName+=Dr(t)}[oN](t){t===Ee.SOLIDUS?(this.tempBuff=[],this.state=aN):(this._emitChars("<"),this._reconsumeInState(Hd))}[aN](t){Vs(t)?(this._createEndTagToken(),this._reconsumeInState(lN)):(this._emitChars("</"),this._reconsumeInState(Hd))}[lN](t){if(Ua(t))this.currentToken.tagName+=Ds(t),this.tempBuff.push(t);else if(au(t))this.currentToken.tagName+=Dr(t),this.tempBuff.push(t);else{if(this.lastStartTagName===this.currentToken.tagName){if(dr(t)){this.state=yl;return}if(t===Ee.SOLIDUS){this.state=Ps;return}if(t===Ee.GREATER_THAN_SIGN){this.state=xn,this._emitCurrentToken();return}}this._emitChars("</"),this._emitSeveralCodePoints(this.tempBuff),this._reconsumeInState(Hd)}}[sN](t){t===Ee.SOLIDUS?(this.tempBuff=[],this.state=cN):(this._emitChars("<"),this._reconsumeInState(Bh))}[cN](t){Vs(t)?(this._createEndTagToken(),this._reconsumeInState(uN)):(this._emitChars("</"),this._reconsumeInState(Bh))}[uN](t){if(Ua(t))this.currentToken.tagName+=Ds(t),this.tempBuff.push(t);else if(au(t))this.currentToken.tagName+=Dr(t),this.tempBuff.push(t);else{if(this.lastStartTagName===this.currentToken.tagName){if(dr(t)){this.state=yl;return}if(t===Ee.SOLIDUS){this.state=Ps;return}if(t===Ee.GREATER_THAN_SIGN){this._emitCurrentToken(),this.state=xn;return}}this._emitChars("</"),this._emitSeveralCodePoints(this.tempBuff),this._reconsumeInState(Bh)}}[dN](t){t===Ee.SOLIDUS?(this.tempBuff=[],this.state=fN):t===Ee.EXCLAMATION_MARK?(this.state=pN,this._emitChars("<!")):(this._emitChars("<"),this._reconsumeInState(es))}[fN](t){Vs(t)?(this._createEndTagToken(),this._reconsumeInState(hN)):(this._emitChars("</"),this._reconsumeInState(es))}[hN](t){if(Ua(t))this.currentToken.tagName+=Ds(t),this.tempBuff.push(t);else if(au(t))this.currentToken.tagName+=Dr(t),this.tempBuff.push(t);else{if(this.lastStartTagName===this.currentToken.tagName){if(dr(t)){this.state=yl;return}else if(t===Ee.SOLIDUS){this.state=Ps;return}else if(t===Ee.GREATER_THAN_SIGN){this._emitCurrentToken(),this.state=xn;return}}this._emitChars("</"),this._emitSeveralCodePoints(this.tempBuff),this._reconsumeInState(es)}}[pN](t){t===Ee.HYPHEN_MINUS?(this.state=mN,this._emitChars("-")):this._reconsumeInState(es)}[mN](t){t===Ee.HYPHEN_MINUS?(this.state=C9,this._emitChars("-")):this._reconsumeInState(es)}[za](t){t===Ee.HYPHEN_MINUS?(this.state=gN,this._emitChars("-")):t===Ee.LESS_THAN_SIGN?this.state=gg:t===Ee.NULL?(this._err(ht.unexpectedNullCharacter),this._emitChars(Qn.REPLACEMENT_CHARACTER)):t===Ee.EOF?(this._err(ht.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):this._emitCodePoint(t)}[gN](t){t===Ee.HYPHEN_MINUS?(this.state=C9,this._emitChars("-")):t===Ee.LESS_THAN_SIGN?this.state=gg:t===Ee.NULL?(this._err(ht.unexpectedNullCharacter),this.state=za,this._emitChars(Qn.REPLACEMENT_CHARACTER)):t===Ee.EOF?(this._err(ht.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):(this.state=za,this._emitCodePoint(t))}[C9](t){t===Ee.HYPHEN_MINUS?this._emitChars("-"):t===Ee.LESS_THAN_SIGN?this.state=gg:t===Ee.GREATER_THAN_SIGN?(this.state=es,this._emitChars(">")):t===Ee.NULL?(this._err(ht.unexpectedNullCharacter),this.state=za,this._emitChars(Qn.REPLACEMENT_CHARACTER)):t===Ee.EOF?(this._err(ht.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):(this.state=za,this._emitCodePoint(t))}[gg](t){t===Ee.SOLIDUS?(this.tempBuff=[],this.state=vN):Vs(t)?(this.tempBuff=[],this._emitChars("<"),this._reconsumeInState(bN)):(this._emitChars("<"),this._reconsumeInState(za))}[vN](t){Vs(t)?(this._createEndTagToken(),this._reconsumeInState(yN)):(this._emitChars("</"),this._reconsumeInState(za))}[yN](t){if(Ua(t))this.currentToken.tagName+=Ds(t),this.tempBuff.push(t);else if(au(t))this.currentToken.tagName+=Dr(t),this.tempBuff.push(t);else{if(this.lastStartTagName===this.currentToken.tagName){if(dr(t)){this.state=yl;return}if(t===Ee.SOLIDUS){this.state=Ps;return}if(t===Ee.GREATER_THAN_SIGN){this._emitCurrentToken(),this.state=xn;return}}this._emitChars("</"),this._emitSeveralCodePoints(this.tempBuff),this._reconsumeInState(za)}}[bN](t){dr(t)||t===Ee.SOLIDUS||t===Ee.GREATER_THAN_SIGN?(this.state=this._isTempBufferEqualToScriptString()?ql:za,this._emitCodePoint(t)):Ua(t)?(this.tempBuff.push(vv(t)),this._emitCodePoint(t)):au(t)?(this.tempBuff.push(t),this._emitCodePoint(t)):this._reconsumeInState(za)}[ql](t){t===Ee.HYPHEN_MINUS?(this.state=CN,this._emitChars("-")):t===Ee.LESS_THAN_SIGN?(this.state=vg,this._emitChars("<")):t===Ee.NULL?(this._err(ht.unexpectedNullCharacter),this._emitChars(Qn.REPLACEMENT_CHARACTER)):t===Ee.EOF?(this._err(ht.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):this._emitCodePoint(t)}[CN](t){t===Ee.HYPHEN_MINUS?(this.state=SN,this._emitChars("-")):t===Ee.LESS_THAN_SIGN?(this.state=vg,this._emitChars("<")):t===Ee.NULL?(this._err(ht.unexpectedNullCharacter),this.state=ql,this._emitChars(Qn.REPLACEMENT_CHARACTER)):t===Ee.EOF?(this._err(ht.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):(this.state=ql,this._emitCodePoint(t))}[SN](t){t===Ee.HYPHEN_MINUS?this._emitChars("-"):t===Ee.LESS_THAN_SIGN?(this.state=vg,this._emitChars("<")):t===Ee.GREATER_THAN_SIGN?(this.state=es,this._emitChars(">")):t===Ee.NULL?(this._err(ht.unexpectedNullCharacter),this.state=ql,this._emitChars(Qn.REPLACEMENT_CHARACTER)):t===Ee.EOF?(this._err(ht.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):(this.state=ql,this._emitCodePoint(t))}[vg](t){t===Ee.SOLIDUS?(this.tempBuff=[],this.state=EN,this._emitChars("/")):this._reconsumeInState(ql)}[EN](t){dr(t)||t===Ee.SOLIDUS||t===Ee.GREATER_THAN_SIGN?(this.state=this._isTempBufferEqualToScriptString()?za:ql,this._emitCodePoint(t)):Ua(t)?(this.tempBuff.push(vv(t)),this._emitCodePoint(t)):au(t)?(this.tempBuff.push(t),this._emitCodePoint(t)):this._reconsumeInState(ql)}[yl](t){dr(t)||(t===Ee.SOLIDUS||t===Ee.GREATER_THAN_SIGN||t===Ee.EOF?this._reconsumeInState(S9):t===Ee.EQUALS_SIGN?(this._err(ht.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=yg):(this._createAttr(""),this._reconsumeInState(yg)))}[yg](t){dr(t)||t===Ee.SOLIDUS||t===Ee.GREATER_THAN_SIGN||t===Ee.EOF?(this._leaveAttrName(S9),this._unconsume()):t===Ee.EQUALS_SIGN?this._leaveAttrName(E9):Ua(t)?this.currentAttr.name+=Ds(t):t===Ee.QUOTATION_MARK||t===Ee.APOSTROPHE||t===Ee.LESS_THAN_SIGN?(this._err(ht.unexpectedCharacterInAttributeName),this.currentAttr.name+=Dr(t)):t===Ee.NULL?(this._err(ht.unexpectedNullCharacter),this.currentAttr.name+=Qn.REPLACEMENT_CHARACTER):this.currentAttr.name+=Dr(t)}[S9](t){dr(t)||(t===Ee.SOLIDUS?this.state=Ps:t===Ee.EQUALS_SIGN?this.state=E9:t===Ee.GREATER_THAN_SIGN?(this.state=xn,this._emitCurrentToken()):t===Ee.EOF?(this._err(ht.eofInTag),this._emitEOFToken()):(this._createAttr(""),this._reconsumeInState(yg)))}[E9](t){dr(t)||(t===Ee.QUOTATION_MARK?this.state=bg:t===Ee.APOSTROPHE?this.state=Cg:t===Ee.GREATER_THAN_SIGN?(this._err(ht.missingAttributeValue),this.state=xn,this._emitCurrentToken()):this._reconsumeInState(Sg))}[bg](t){t===Ee.QUOTATION_MARK?this.state=x9:t===Ee.AMPERSAND?(this.returnState=bg,this.state=Md):t===Ee.NULL?(this._err(ht.unexpectedNullCharacter),this.currentAttr.value+=Qn.REPLACEMENT_CHARACTER):t===Ee.EOF?(this._err(ht.eofInTag),this._emitEOFToken()):this.currentAttr.value+=Dr(t)}[Cg](t){t===Ee.APOSTROPHE?this.state=x9:t===Ee.AMPERSAND?(this.returnState=Cg,this.state=Md):t===Ee.NULL?(this._err(ht.unexpectedNullCharacter),this.currentAttr.value+=Qn.REPLACEMENT_CHARACTER):t===Ee.EOF?(this._err(ht.eofInTag),this._emitEOFToken()):this.currentAttr.value+=Dr(t)}[Sg](t){dr(t)?this._leaveAttrValue(yl):t===Ee.AMPERSAND?(this.returnState=Sg,this.state=Md):t===Ee.GREATER_THAN_SIGN?(this._leaveAttrValue(xn),this._emitCurrentToken()):t===Ee.NULL?(this._err(ht.unexpectedNullCharacter),this.currentAttr.value+=Qn.REPLACEMENT_CHARACTER):t===Ee.QUOTATION_MARK||t===Ee.APOSTROPHE||t===Ee.LESS_THAN_SIGN||t===Ee.EQUALS_SIGN||t===Ee.GRAVE_ACCENT?(this._err(ht.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=Dr(t)):t===Ee.EOF?(this._err(ht.eofInTag),this._emitEOFToken()):this.currentAttr.value+=Dr(t)}[x9](t){dr(t)?this._leaveAttrValue(yl):t===Ee.SOLIDUS?this._leaveAttrValue(Ps):t===Ee.GREATER_THAN_SIGN?(this._leaveAttrValue(xn),this._emitCurrentToken()):t===Ee.EOF?(this._err(ht.eofInTag),this._emitEOFToken()):(this._err(ht.missingWhitespaceBetweenAttributes),this._reconsumeInState(yl))}[Ps](t){t===Ee.GREATER_THAN_SIGN?(this.currentToken.selfClosing=!0,this.state=xn,this._emitCurrentToken()):t===Ee.EOF?(this._err(ht.eofInTag),this._emitEOFToken()):(this._err(ht.unexpectedSolidusInTag),this._reconsumeInState(yl))}[Ch](t){t===Ee.GREATER_THAN_SIGN?(this.state=xn,this._emitCurrentToken()):t===Ee.EOF?(this._emitCurrentToken(),this._emitEOFToken()):t===Ee.NULL?(this._err(ht.unexpectedNullCharacter),this.currentToken.data+=Qn.REPLACEMENT_CHARACTER):this.currentToken.data+=Dr(t)}[xN](t){this._consumeSequenceIfMatch(eu.DASH_DASH_STRING,t,!0)?(this._createCommentToken(),this.state=wN):this._consumeSequenceIfMatch(eu.DOCTYPE_STRING,t,!1)?this.state=AN:this._consumeSequenceIfMatch(eu.CDATA_START_STRING,t,!0)?this.allowCDATA?this.state=_g:(this._err(ht.cdataInHtmlContent),this._createCommentToken(),this.currentToken.data="[CDATA[",this.state=Ch):this._ensureHibernation()||(this._err(ht.incorrectlyOpenedComment),this._createCommentToken(),this._reconsumeInState(Ch))}[wN](t){t===Ee.HYPHEN_MINUS?this.state=TN:t===Ee.GREATER_THAN_SIGN?(this._err(ht.abruptClosingOfEmptyComment),this.state=xn,this._emitCurrentToken()):this._reconsumeInState(Ls)}[TN](t){t===Ee.HYPHEN_MINUS?this.state=xg:t===Ee.GREATER_THAN_SIGN?(this._err(ht.abruptClosingOfEmptyComment),this.state=xn,this._emitCurrentToken()):t===Ee.EOF?(this._err(ht.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="-",this._reconsumeInState(Ls))}[Ls](t){t===Ee.HYPHEN_MINUS?this.state=Eg:t===Ee.LESS_THAN_SIGN?(this.currentToken.data+="<",this.state=_N):t===Ee.NULL?(this._err(ht.unexpectedNullCharacter),this.currentToken.data+=Qn.REPLACEMENT_CHARACTER):t===Ee.EOF?(this._err(ht.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.data+=Dr(t)}[_N](t){t===Ee.EXCLAMATION_MARK?(this.currentToken.data+="!",this.state=ON):t===Ee.LESS_THAN_SIGN?this.currentToken.data+="!":this._reconsumeInState(Ls)}[ON](t){t===Ee.HYPHEN_MINUS?this.state=IN:this._reconsumeInState(Ls)}[IN](t){t===Ee.HYPHEN_MINUS?this.state=$N:this._reconsumeInState(Eg)}[$N](t){t!==Ee.GREATER_THAN_SIGN&&t!==Ee.EOF&&this._err(ht.nestedComment),this._reconsumeInState(xg)}[Eg](t){t===Ee.HYPHEN_MINUS?this.state=xg:t===Ee.EOF?(this._err(ht.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="-",this._reconsumeInState(Ls))}[xg](t){t===Ee.GREATER_THAN_SIGN?(this.state=xn,this._emitCurrentToken()):t===Ee.EXCLAMATION_MARK?this.state=NN:t===Ee.HYPHEN_MINUS?this.currentToken.data+="-":t===Ee.EOF?(this._err(ht.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="--",this._reconsumeInState(Ls))}[NN](t){t===Ee.HYPHEN_MINUS?(this.currentToken.data+="--!",this.state=Eg):t===Ee.GREATER_THAN_SIGN?(this._err(ht.incorrectlyClosedComment),this.state=xn,this._emitCurrentToken()):t===Ee.EOF?(this._err(ht.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="--!",this._reconsumeInState(Ls))}[AN](t){dr(t)?this.state=wg:t===Ee.GREATER_THAN_SIGN?this._reconsumeInState(wg):t===Ee.EOF?(this._err(ht.eofInDoctype),this._createDoctypeToken(null),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(ht.missingWhitespaceBeforeDoctypeName),this._reconsumeInState(wg))}[wg](t){dr(t)||(Ua(t)?(this._createDoctypeToken(Ds(t)),this.state=Tg):t===Ee.NULL?(this._err(ht.unexpectedNullCharacter),this._createDoctypeToken(Qn.REPLACEMENT_CHARACTER),this.state=Tg):t===Ee.GREATER_THAN_SIGN?(this._err(ht.missingDoctypeName),this._createDoctypeToken(null),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=xn):t===Ee.EOF?(this._err(ht.eofInDoctype),this._createDoctypeToken(null),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._createDoctypeToken(Dr(t)),this.state=Tg))}[Tg](t){dr(t)?this.state=kN:t===Ee.GREATER_THAN_SIGN?(this.state=xn,this._emitCurrentToken()):Ua(t)?this.currentToken.name+=Ds(t):t===Ee.NULL?(this._err(ht.unexpectedNullCharacter),this.currentToken.name+=Qn.REPLACEMENT_CHARACTER):t===Ee.EOF?(this._err(ht.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.name+=Dr(t)}[kN](t){dr(t)||(t===Ee.GREATER_THAN_SIGN?(this.state=xn,this._emitCurrentToken()):t===Ee.EOF?(this._err(ht.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this._consumeSequenceIfMatch(eu.PUBLIC_STRING,t,!1)?this.state=RN:this._consumeSequenceIfMatch(eu.SYSTEM_STRING,t,!1)?this.state=LN:this._ensureHibernation()||(this._err(ht.invalidCharacterSequenceAfterDoctypeName),this.currentToken.forceQuirks=!0,this._reconsumeInState(Xl)))}[RN](t){dr(t)?this.state=MN:t===Ee.QUOTATION_MARK?(this._err(ht.missingWhitespaceAfterDoctypePublicKeyword),this.currentToken.publicId="",this.state=w9):t===Ee.APOSTROPHE?(this._err(ht.missingWhitespaceAfterDoctypePublicKeyword),this.currentToken.publicId="",this.state=T9):t===Ee.GREATER_THAN_SIGN?(this._err(ht.missingDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this.state=xn,this._emitCurrentToken()):t===Ee.EOF?(this._err(ht.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(ht.missingQuoteBeforeDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(Xl))}[MN](t){dr(t)||(t===Ee.QUOTATION_MARK?(this.currentToken.publicId="",this.state=w9):t===Ee.APOSTROPHE?(this.currentToken.publicId="",this.state=T9):t===Ee.GREATER_THAN_SIGN?(this._err(ht.missingDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this.state=xn,this._emitCurrentToken()):t===Ee.EOF?(this._err(ht.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(ht.missingQuoteBeforeDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(Xl)))}[w9](t){t===Ee.QUOTATION_MARK?this.state=_9:t===Ee.NULL?(this._err(ht.unexpectedNullCharacter),this.currentToken.publicId+=Qn.REPLACEMENT_CHARACTER):t===Ee.GREATER_THAN_SIGN?(this._err(ht.abruptDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=xn):t===Ee.EOF?(this._err(ht.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.publicId+=Dr(t)}[T9](t){t===Ee.APOSTROPHE?this.state=_9:t===Ee.NULL?(this._err(ht.unexpectedNullCharacter),this.currentToken.publicId+=Qn.REPLACEMENT_CHARACTER):t===Ee.GREATER_THAN_SIGN?(this._err(ht.abruptDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=xn):t===Ee.EOF?(this._err(ht.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.publicId+=Dr(t)}[_9](t){dr(t)?this.state=PN:t===Ee.GREATER_THAN_SIGN?(this.state=xn,this._emitCurrentToken()):t===Ee.QUOTATION_MARK?(this._err(ht.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),this.currentToken.systemId="",this.state=Sh):t===Ee.APOSTROPHE?(this._err(ht.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),this.currentToken.systemId="",this.state=Eh):t===Ee.EOF?(this._err(ht.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(ht.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(Xl))}[PN](t){dr(t)||(t===Ee.GREATER_THAN_SIGN?(this._emitCurrentToken(),this.state=xn):t===Ee.QUOTATION_MARK?(this.currentToken.systemId="",this.state=Sh):t===Ee.APOSTROPHE?(this.currentToken.systemId="",this.state=Eh):t===Ee.EOF?(this._err(ht.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(ht.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(Xl)))}[LN](t){dr(t)?this.state=DN:t===Ee.QUOTATION_MARK?(this._err(ht.missingWhitespaceAfterDoctypeSystemKeyword),this.currentToken.systemId="",this.state=Sh):t===Ee.APOSTROPHE?(this._err(ht.missingWhitespaceAfterDoctypeSystemKeyword),this.currentToken.systemId="",this.state=Eh):t===Ee.GREATER_THAN_SIGN?(this._err(ht.missingDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this.state=xn,this._emitCurrentToken()):t===Ee.EOF?(this._err(ht.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(ht.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(Xl))}[DN](t){dr(t)||(t===Ee.QUOTATION_MARK?(this.currentToken.systemId="",this.state=Sh):t===Ee.APOSTROPHE?(this.currentToken.systemId="",this.state=Eh):t===Ee.GREATER_THAN_SIGN?(this._err(ht.missingDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this.state=xn,this._emitCurrentToken()):t===Ee.EOF?(this._err(ht.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(ht.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(Xl)))}[Sh](t){t===Ee.QUOTATION_MARK?this.state=O9:t===Ee.NULL?(this._err(ht.unexpectedNullCharacter),this.currentToken.systemId+=Qn.REPLACEMENT_CHARACTER):t===Ee.GREATER_THAN_SIGN?(this._err(ht.abruptDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=xn):t===Ee.EOF?(this._err(ht.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.systemId+=Dr(t)}[Eh](t){t===Ee.APOSTROPHE?this.state=O9:t===Ee.NULL?(this._err(ht.unexpectedNullCharacter),this.currentToken.systemId+=Qn.REPLACEMENT_CHARACTER):t===Ee.GREATER_THAN_SIGN?(this._err(ht.abruptDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=xn):t===Ee.EOF?(this._err(ht.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.systemId+=Dr(t)}[O9](t){dr(t)||(t===Ee.GREATER_THAN_SIGN?(this._emitCurrentToken(),this.state=xn):t===Ee.EOF?(this._err(ht.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(ht.unexpectedCharacterAfterDoctypeSystemIdentifier),this._reconsumeInState(Xl)))}[Xl](t){t===Ee.GREATER_THAN_SIGN?(this._emitCurrentToken(),this.state=xn):t===Ee.NULL?this._err(ht.unexpectedNullCharacter):t===Ee.EOF&&(this._emitCurrentToken(),this._emitEOFToken())}[_g](t){t===Ee.RIGHT_SQUARE_BRACKET?this.state=FN:t===Ee.EOF?(this._err(ht.eofInCdata),this._emitEOFToken()):this._emitCodePoint(t)}[FN](t){t===Ee.RIGHT_SQUARE_BRACKET?this.state=BN:(this._emitChars("]"),this._reconsumeInState(_g))}[BN](t){t===Ee.GREATER_THAN_SIGN?this.state=xn:t===Ee.RIGHT_SQUARE_BRACKET?this._emitChars("]"):(this._emitChars("]]"),this._reconsumeInState(_g))}[Md](t){this.tempBuff=[Ee.AMPERSAND],t===Ee.NUMBER_SIGN?(this.tempBuff.push(t),this.state=zN):I9(t)?this._reconsumeInState(jN):(this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState))}[jN](t){const n=this._matchNamedCharacterReference(t);if(this._ensureHibernation())this.tempBuff=[Ee.AMPERSAND];else if(n){const r=this.tempBuff[this.tempBuff.length-1]===Ee.SEMICOLON;this._isCharacterReferenceAttributeQuirk(r)||(r||this._errOnNextCodePoint(ht.missingSemicolonAfterCharacterReference),this.tempBuff=n),this._flushCodePointsConsumedAsCharacterReference(),this.state=this.returnState}else this._flushCodePointsConsumedAsCharacterReference(),this.state=HN}[HN](t){I9(t)?this._isCharacterReferenceInAttribute()?this.currentAttr.value+=Dr(t):this._emitCodePoint(t):(t===Ee.SEMICOLON&&this._err(ht.unknownNamedCharacterReference),this._reconsumeInState(this.returnState))}[zN](t){this.charRefCode=0,t===Ee.LATIN_SMALL_X||t===Ee.LATIN_CAPITAL_X?(this.tempBuff.push(t),this.state=WN):this._reconsumeInState(UN)}[WN](t){B5e(t)?this._reconsumeInState(KN):(this._err(ht.absenceOfDigitsInNumericCharacterReference),this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState))}[UN](t){cp(t)?this._reconsumeInState(VN):(this._err(ht.absenceOfDigitsInNumericCharacterReference),this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState))}[KN](t){DH(t)?this.charRefCode=this.charRefCode*16+t-55:FH(t)?this.charRefCode=this.charRefCode*16+t-87:cp(t)?this.charRefCode=this.charRefCode*16+t-48:t===Ee.SEMICOLON?this.state=xh:(this._err(ht.missingSemicolonAfterCharacterReference),this._reconsumeInState(xh))}[VN](t){cp(t)?this.charRefCode=this.charRefCode*10+t-48:t===Ee.SEMICOLON?this.state=xh:(this._err(ht.missingSemicolonAfterCharacterReference),this._reconsumeInState(xh))}[xh](){if(this.charRefCode===Ee.NULL)this._err(ht.nullCharacterReference),this.charRefCode=Ee.REPLACEMENT_CHARACTER;else if(this.charRefCode>1114111)this._err(ht.characterReferenceOutsideUnicodeRange),this.charRefCode=Ee.REPLACEMENT_CHARACTER;else if(Qn.isSurrogate(this.charRefCode))this._err(ht.surrogateCharacterReference),this.charRefCode=Ee.REPLACEMENT_CHARACTER;else if(Qn.isUndefinedCodePoint(this.charRefCode))this._err(ht.noncharacterCharacterReference);else if(Qn.isControlCodePoint(this.charRefCode)||this.charRefCode===Ee.CARRIAGE_RETURN){this._err(ht.controlCharacterReference);const t=D5e[this.charRefCode];t&&(this.charRefCode=t)}this.tempBuff=[this.charRefCode],this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState)}};Ma.CHARACTER_TOKEN="CHARACTER_TOKEN";Ma.NULL_CHARACTER_TOKEN="NULL_CHARACTER_TOKEN";Ma.WHITESPACE_CHARACTER_TOKEN="WHITESPACE_CHARACTER_TOKEN";Ma.START_TAG_TOKEN="START_TAG_TOKEN";Ma.END_TAG_TOKEN="END_TAG_TOKEN";Ma.COMMENT_TOKEN="COMMENT_TOKEN";Ma.DOCTYPE_TOKEN="DOCTYPE_TOKEN";Ma.EOF_TOKEN="EOF_TOKEN";Ma.HIBERNATION_TOKEN="HIBERNATION_TOKEN";Ma.MODE={DATA:xn,RCDATA:Hd,RAWTEXT:Bh,SCRIPT_DATA:es,PLAINTEXT:LH};Ma.getTokenAttr=function(e,t){for(let n=e.attrs.length-1;n>=0;n--)if(e.attrs[n].name===t)return e.attrs[n].value;return null};var w2=Ma,fl={};const $9=fl.NAMESPACES={HTML:"http://www.w3.org/1999/xhtml",MATHML:"http://www.w3.org/1998/Math/MathML",SVG:"http://www.w3.org/2000/svg",XLINK:"http://www.w3.org/1999/xlink",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/"};fl.ATTRS={TYPE:"type",ACTION:"action",ENCODING:"encoding",PROMPT:"prompt",NAME:"name",COLOR:"color",FACE:"face",SIZE:"size"};fl.DOCUMENT_MODE={NO_QUIRKS:"no-quirks",QUIRKS:"quirks",LIMITED_QUIRKS:"limited-quirks"};const wt=fl.TAG_NAMES={A:"a",ADDRESS:"address",ANNOTATION_XML:"annotation-xml",APPLET:"applet",AREA:"area",ARTICLE:"article",ASIDE:"aside",B:"b",BASE:"base",BASEFONT:"basefont",BGSOUND:"bgsound",BIG:"big",BLOCKQUOTE:"blockquote",BODY:"body",BR:"br",BUTTON:"button",CAPTION:"caption",CENTER:"center",CODE:"code",COL:"col",COLGROUP:"colgroup",DD:"dd",DESC:"desc",DETAILS:"details",DIALOG:"dialog",DIR:"dir",DIV:"div",DL:"dl",DT:"dt",EM:"em",EMBED:"embed",FIELDSET:"fieldset",FIGCAPTION:"figcaption",FIGURE:"figure",FONT:"font",FOOTER:"footer",FOREIGN_OBJECT:"foreignObject",FORM:"form",FRAME:"frame",FRAMESET:"frameset",H1:"h1",H2:"h2",H3:"h3",H4:"h4",H5:"h5",H6:"h6",HEAD:"head",HEADER:"header",HGROUP:"hgroup",HR:"hr",HTML:"html",I:"i",IMG:"img",IMAGE:"image",INPUT:"input",IFRAME:"iframe",KEYGEN:"keygen",LABEL:"label",LI:"li",LINK:"link",LISTING:"listing",MAIN:"main",MALIGNMARK:"malignmark",MARQUEE:"marquee",MATH:"math",MENU:"menu",META:"meta",MGLYPH:"mglyph",MI:"mi",MO:"mo",MN:"mn",MS:"ms",MTEXT:"mtext",NAV:"nav",NOBR:"nobr",NOFRAMES:"noframes",NOEMBED:"noembed",NOSCRIPT:"noscript",OBJECT:"object",OL:"ol",OPTGROUP:"optgroup",OPTION:"option",P:"p",PARAM:"param",PLAINTEXT:"plaintext",PRE:"pre",RB:"rb",RP:"rp",RT:"rt",RTC:"rtc",RUBY:"ruby",S:"s",SCRIPT:"script",SECTION:"section",SELECT:"select",SOURCE:"source",SMALL:"small",SPAN:"span",STRIKE:"strike",STRONG:"strong",STYLE:"style",SUB:"sub",SUMMARY:"summary",SUP:"sup",TABLE:"table",TBODY:"tbody",TEMPLATE:"template",TEXTAREA:"textarea",TFOOT:"tfoot",TD:"td",TH:"th",THEAD:"thead",TITLE:"title",TR:"tr",TRACK:"track",TT:"tt",U:"u",UL:"ul",SVG:"svg",VAR:"var",WBR:"wbr",XMP:"xmp"};fl.SPECIAL_ELEMENTS={[$9.HTML]:{[wt.ADDRESS]:!0,[wt.APPLET]:!0,[wt.AREA]:!0,[wt.ARTICLE]:!0,[wt.ASIDE]:!0,[wt.BASE]:!0,[wt.BASEFONT]:!0,[wt.BGSOUND]:!0,[wt.BLOCKQUOTE]:!0,[wt.BODY]:!0,[wt.BR]:!0,[wt.BUTTON]:!0,[wt.CAPTION]:!0,[wt.CENTER]:!0,[wt.COL]:!0,[wt.COLGROUP]:!0,[wt.DD]:!0,[wt.DETAILS]:!0,[wt.DIR]:!0,[wt.DIV]:!0,[wt.DL]:!0,[wt.DT]:!0,[wt.EMBED]:!0,[wt.FIELDSET]:!0,[wt.FIGCAPTION]:!0,[wt.FIGURE]:!0,[wt.FOOTER]:!0,[wt.FORM]:!0,[wt.FRAME]:!0,[wt.FRAMESET]:!0,[wt.H1]:!0,[wt.H2]:!0,[wt.H3]:!0,[wt.H4]:!0,[wt.H5]:!0,[wt.H6]:!0,[wt.HEAD]:!0,[wt.HEADER]:!0,[wt.HGROUP]:!0,[wt.HR]:!0,[wt.HTML]:!0,[wt.IFRAME]:!0,[wt.IMG]:!0,[wt.INPUT]:!0,[wt.LI]:!0,[wt.LINK]:!0,[wt.LISTING]:!0,[wt.MAIN]:!0,[wt.MARQUEE]:!0,[wt.MENU]:!0,[wt.META]:!0,[wt.NAV]:!0,[wt.NOEMBED]:!0,[wt.NOFRAMES]:!0,[wt.NOSCRIPT]:!0,[wt.OBJECT]:!0,[wt.OL]:!0,[wt.P]:!0,[wt.PARAM]:!0,[wt.PLAINTEXT]:!0,[wt.PRE]:!0,[wt.SCRIPT]:!0,[wt.SECTION]:!0,[wt.SELECT]:!0,[wt.SOURCE]:!0,[wt.STYLE]:!0,[wt.SUMMARY]:!0,[wt.TABLE]:!0,[wt.TBODY]:!0,[wt.TD]:!0,[wt.TEMPLATE]:!0,[wt.TEXTAREA]:!0,[wt.TFOOT]:!0,[wt.TH]:!0,[wt.THEAD]:!0,[wt.TITLE]:!0,[wt.TR]:!0,[wt.TRACK]:!0,[wt.UL]:!0,[wt.WBR]:!0,[wt.XMP]:!0},[$9.MATHML]:{[wt.MI]:!0,[wt.MO]:!0,[wt.MN]:!0,[wt.MS]:!0,[wt.MTEXT]:!0,[wt.ANNOTATION_XML]:!0},[$9.SVG]:{[wt.TITLE]:!0,[wt.FOREIGN_OBJECT]:!0,[wt.DESC]:!0}};const BH=fl,_t=BH.TAG_NAMES,Zn=BH.NAMESPACES;function qN(e){switch(e.length){case 1:return e===_t.P;case 2:return e===_t.RB||e===_t.RP||e===_t.RT||e===_t.DD||e===_t.DT||e===_t.LI;case 3:return e===_t.RTC;case 6:return e===_t.OPTION;case 8:return e===_t.OPTGROUP}return!1}function j5e(e){switch(e.length){case 1:return e===_t.P;case 2:return e===_t.RB||e===_t.RP||e===_t.RT||e===_t.DD||e===_t.DT||e===_t.LI||e===_t.TD||e===_t.TH||e===_t.TR;case 3:return e===_t.RTC;case 5:return e===_t.TBODY||e===_t.TFOOT||e===_t.THEAD;case 6:return e===_t.OPTION;case 7:return e===_t.CAPTION;case 8:return e===_t.OPTGROUP||e===_t.COLGROUP}return!1}function Og(e,t){switch(e.length){case 2:if(e===_t.TD||e===_t.TH)return t===Zn.HTML;if(e===_t.MI||e===_t.MO||e===_t.MN||e===_t.MS)return t===Zn.MATHML;break;case 4:if(e===_t.HTML)return t===Zn.HTML;if(e===_t.DESC)return t===Zn.SVG;break;case 5:if(e===_t.TABLE)return t===Zn.HTML;if(e===_t.MTEXT)return t===Zn.MATHML;if(e===_t.TITLE)return t===Zn.SVG;break;case 6:return(e===_t.APPLET||e===_t.OBJECT)&&t===Zn.HTML;case 7:return(e===_t.CAPTION||e===_t.MARQUEE)&&t===Zn.HTML;case 8:return e===_t.TEMPLATE&&t===Zn.HTML;case 13:return e===_t.FOREIGN_OBJECT&&t===Zn.SVG;case 14:return e===_t.ANNOTATION_XML&&t===Zn.MATHML}return!1}let H5e=class{constructor(t,n){this.stackTop=-1,this.items=[],this.current=t,this.currentTagName=null,this.currentTmplContent=null,this.tmplCount=0,this.treeAdapter=n}_indexOf(t){let n=-1;for(let r=this.stackTop;r>=0;r--)if(this.items[r]===t){n=r;break}return n}_isInTemplate(){return this.currentTagName===_t.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===Zn.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagName=this.current&&this.treeAdapter.getTagName(this.current),this.currentTmplContent=this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):null}push(t){this.items[++this.stackTop]=t,this._updateCurrentElement(),this._isInTemplate()&&this.tmplCount++}pop(){this.stackTop--,this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this._updateCurrentElement()}replace(t,n){const r=this._indexOf(t);this.items[r]=n,r===this.stackTop&&this._updateCurrentElement()}insertAfter(t,n){const r=this._indexOf(t)+1;this.items.splice(r,0,n),r===++this.stackTop&&this._updateCurrentElement()}popUntilTagNamePopped(t){for(;this.stackTop>-1;){const n=this.currentTagName,r=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),n===t&&r===Zn.HTML)break}}popUntilElementPopped(t){for(;this.stackTop>-1;){const n=this.current;if(this.pop(),n===t)break}}popUntilNumberedHeaderPopped(){for(;this.stackTop>-1;){const t=this.currentTagName,n=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),t===_t.H1||t===_t.H2||t===_t.H3||t===_t.H4||t===_t.H5||t===_t.H6&&n===Zn.HTML)break}}popUntilTableCellPopped(){for(;this.stackTop>-1;){const t=this.currentTagName,n=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),t===_t.TD||t===_t.TH&&n===Zn.HTML)break}}popAllUpToHtmlElement(){this.stackTop=0,this._updateCurrentElement()}clearBackToTableContext(){for(;this.currentTagName!==_t.TABLE&&this.currentTagName!==_t.TEMPLATE&&this.currentTagName!==_t.HTML||this.treeAdapter.getNamespaceURI(this.current)!==Zn.HTML;)this.pop()}clearBackToTableBodyContext(){for(;this.currentTagName!==_t.TBODY&&this.currentTagName!==_t.TFOOT&&this.currentTagName!==_t.THEAD&&this.currentTagName!==_t.TEMPLATE&&this.currentTagName!==_t.HTML||this.treeAdapter.getNamespaceURI(this.current)!==Zn.HTML;)this.pop()}clearBackToTableRowContext(){for(;this.currentTagName!==_t.TR&&this.currentTagName!==_t.TEMPLATE&&this.currentTagName!==_t.HTML||this.treeAdapter.getNamespaceURI(this.current)!==Zn.HTML;)this.pop()}remove(t){for(let n=this.stackTop;n>=0;n--)if(this.items[n]===t){this.items.splice(n,1),this.stackTop--,this._updateCurrentElement();break}}tryPeekProperlyNestedBodyElement(){const t=this.items[1];return t&&this.treeAdapter.getTagName(t)===_t.BODY?t:null}contains(t){return this._indexOf(t)>-1}getCommonAncestor(t){let n=this._indexOf(t);return--n>=0?this.items[n]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.currentTagName===_t.HTML}hasInScope(t){for(let n=this.stackTop;n>=0;n--){const r=this.treeAdapter.getTagName(this.items[n]),i=this.treeAdapter.getNamespaceURI(this.items[n]);if(r===t&&i===Zn.HTML)return!0;if(Og(r,i))return!1}return!0}hasNumberedHeaderInScope(){for(let t=this.stackTop;t>=0;t--){const n=this.treeAdapter.getTagName(this.items[t]),r=this.treeAdapter.getNamespaceURI(this.items[t]);if((n===_t.H1||n===_t.H2||n===_t.H3||n===_t.H4||n===_t.H5||n===_t.H6)&&r===Zn.HTML)return!0;if(Og(n,r))return!1}return!0}hasInListItemScope(t){for(let n=this.stackTop;n>=0;n--){const r=this.treeAdapter.getTagName(this.items[n]),i=this.treeAdapter.getNamespaceURI(this.items[n]);if(r===t&&i===Zn.HTML)return!0;if((r===_t.UL||r===_t.OL)&&i===Zn.HTML||Og(r,i))return!1}return!0}hasInButtonScope(t){for(let n=this.stackTop;n>=0;n--){const r=this.treeAdapter.getTagName(this.items[n]),i=this.treeAdapter.getNamespaceURI(this.items[n]);if(r===t&&i===Zn.HTML)return!0;if(r===_t.BUTTON&&i===Zn.HTML||Og(r,i))return!1}return!0}hasInTableScope(t){for(let n=this.stackTop;n>=0;n--){const r=this.treeAdapter.getTagName(this.items[n]);if(this.treeAdapter.getNamespaceURI(this.items[n])===Zn.HTML){if(r===t)return!0;if(r===_t.TABLE||r===_t.TEMPLATE||r===_t.HTML)return!1}}return!0}hasTableBodyContextInTableScope(){for(let t=this.stackTop;t>=0;t--){const n=this.treeAdapter.getTagName(this.items[t]);if(this.treeAdapter.getNamespaceURI(this.items[t])===Zn.HTML){if(n===_t.TBODY||n===_t.THEAD||n===_t.TFOOT)return!0;if(n===_t.TABLE||n===_t.HTML)return!1}}return!0}hasInSelectScope(t){for(let n=this.stackTop;n>=0;n--){const r=this.treeAdapter.getTagName(this.items[n]);if(this.treeAdapter.getNamespaceURI(this.items[n])===Zn.HTML){if(r===t)return!0;if(r!==_t.OPTION&&r!==_t.OPTGROUP)return!1}}return!0}generateImpliedEndTags(){for(;qN(this.currentTagName);)this.pop()}generateImpliedEndTagsThoroughly(){for(;j5e(this.currentTagName);)this.pop()}generateImpliedEndTagsWithExclusion(t){for(;qN(this.currentTagName)&&this.currentTagName!==t;)this.pop()}};var z5e=H5e;const Ig=3;let V3=class Gs{constructor(t){this.length=0,this.entries=[],this.treeAdapter=t,this.bookmark=null}_getNoahArkConditionCandidates(t){const n=[];if(this.length>=Ig){const r=this.treeAdapter.getAttrList(t).length,i=this.treeAdapter.getTagName(t),o=this.treeAdapter.getNamespaceURI(t);for(let a=this.length-1;a>=0;a--){const l=this.entries[a];if(l.type===Gs.MARKER_ENTRY)break;const c=l.element,u=this.treeAdapter.getAttrList(c);this.treeAdapter.getTagName(c)===i&&this.treeAdapter.getNamespaceURI(c)===o&&u.length===r&&n.push({idx:a,attrs:u})}}return n.length<Ig?[]:n}_ensureNoahArkCondition(t){const n=this._getNoahArkConditionCandidates(t);let r=n.length;if(r){const i=this.treeAdapter.getAttrList(t),o=i.length,a=Object.create(null);for(let l=0;l<o;l++){const c=i[l];a[c.name]=c.value}for(let l=0;l<o;l++)for(let c=0;c<r;c++){const u=n[c].attrs[l];if(a[u.name]!==u.value&&(n.splice(c,1),r--),n.length<Ig)return}for(let l=r-1;l>=Ig-1;l--)this.entries.splice(n[l].idx,1),this.length--}}insertMarker(){this.entries.push({type:Gs.MARKER_ENTRY}),this.length++}pushElement(t,n){this._ensureNoahArkCondition(t),this.entries.push({type:Gs.ELEMENT_ENTRY,element:t,token:n}),this.length++}insertElementAfterBookmark(t,n){let r=this.length-1;for(;r>=0&&this.entries[r]!==this.bookmark;r--);this.entries.splice(r+1,0,{type:Gs.ELEMENT_ENTRY,element:t,token:n}),this.length++}removeEntry(t){for(let n=this.length-1;n>=0;n--)if(this.entries[n]===t){this.entries.splice(n,1),this.length--;break}}clearToLastMarker(){for(;this.length;){const t=this.entries.pop();if(this.length--,t.type===Gs.MARKER_ENTRY)break}}getElementEntryInScopeWithTagName(t){for(let n=this.length-1;n>=0;n--){const r=this.entries[n];if(r.type===Gs.MARKER_ENTRY)return null;if(this.treeAdapter.getTagName(r.element)===t)return r}return null}getElementEntry(t){for(let n=this.length-1;n>=0;n--){const r=this.entries[n];if(r.type===Gs.ELEMENT_ENTRY&&r.element===t)return r}return null}};V3.MARKER_ENTRY="MARKER_ENTRY";V3.ELEMENT_ENTRY="ELEMENT_ENTRY";var W5e=V3;let jH=class{constructor(t){const n={},r=this._getOverriddenMethods(this,n);for(const i of Object.keys(r))typeof r[i]=="function"&&(n[i]=t[i],t[i]=r[i])}_getOverriddenMethods(){throw new Error("Not implemented")}};jH.install=function(e,t,n){e.__mixins||(e.__mixins=[]);for(let i=0;i<e.__mixins.length;i++)if(e.__mixins[i].constructor===t)return e.__mixins[i];const r=new t(e,n);return e.__mixins.push(r),r};var Ss=jH;const U5e=Ss;let K5e=class extends U5e{constructor(t){super(t),this.preprocessor=t,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.offset=0,this.col=0,this.line=1}_getOverriddenMethods(t,n){return{advance(){const r=this.pos+1,i=this.html[r];return t.isEol&&(t.isEol=!1,t.line++,t.lineStartPos=r),(i===`
`||i==="\r"&&this.html[r+1]!==`
`)&&(t.isEol=!0),t.col=r-t.lineStartPos+1,t.offset=t.droppedBufferSize+r,n.advance.call(this)},retreat(){n.retreat.call(this),t.isEol=!1,t.col=this.pos-t.lineStartPos+1},dropParsedChunk(){const r=this.pos;n.dropParsedChunk.call(this);const i=r-this.pos;t.lineStartPos-=i,t.droppedBufferSize+=i,t.offset=t.droppedBufferSize+this.pos}}}};var HH=K5e;const XN=Ss,N9=w2,V5e=HH;let G5e=class extends XN{constructor(t){super(t),this.tokenizer=t,this.posTracker=XN.install(t.preprocessor,V5e),this.currentAttrLocation=null,this.ctLoc=null}_getCurrentLocation(){return{startLine:this.posTracker.line,startCol:this.posTracker.col,startOffset:this.posTracker.offset,endLine:-1,endCol:-1,endOffset:-1}}_attachCurrentAttrLocationInfo(){this.currentAttrLocation.endLine=this.posTracker.line,this.currentAttrLocation.endCol=this.posTracker.col,this.currentAttrLocation.endOffset=this.posTracker.offset;const t=this.tokenizer.currentToken,n=this.tokenizer.currentAttr;t.location.attrs||(t.location.attrs=Object.create(null)),t.location.attrs[n.name]=this.currentAttrLocation}_getOverriddenMethods(t,n){const r={_createStartTagToken(){n._createStartTagToken.call(this),this.currentToken.location=t.ctLoc},_createEndTagToken(){n._createEndTagToken.call(this),this.currentToken.location=t.ctLoc},_createCommentToken(){n._createCommentToken.call(this),this.currentToken.location=t.ctLoc},_createDoctypeToken(i){n._createDoctypeToken.call(this,i),this.currentToken.location=t.ctLoc},_createCharacterToken(i,o){n._createCharacterToken.call(this,i,o),this.currentCharacterToken.location=t.ctLoc},_createEOFToken(){n._createEOFToken.call(this),this.currentToken.location=t._getCurrentLocation()},_createAttr(i){n._createAttr.call(this,i),t.currentAttrLocation=t._getCurrentLocation()},_leaveAttrName(i){n._leaveAttrName.call(this,i),t._attachCurrentAttrLocationInfo()},_leaveAttrValue(i){n._leaveAttrValue.call(this,i),t._attachCurrentAttrLocationInfo()},_emitCurrentToken(){const i=this.currentToken.location;this.currentCharacterToken&&(this.currentCharacterToken.location.endLine=i.startLine,this.currentCharacterToken.location.endCol=i.startCol,this.currentCharacterToken.location.endOffset=i.startOffset),this.currentToken.type===N9.EOF_TOKEN?(i.endLine=i.startLine,i.endCol=i.startCol,i.endOffset=i.startOffset):(i.endLine=t.posTracker.line,i.endCol=t.posTracker.col+1,i.endOffset=t.posTracker.offset+1),n._emitCurrentToken.call(this)},_emitCurrentCharacterToken(){const i=this.currentCharacterToken&&this.currentCharacterToken.location;i&&i.endOffset===-1&&(i.endLine=t.posTracker.line,i.endCol=t.posTracker.col,i.endOffset=t.posTracker.offset),n._emitCurrentCharacterToken.call(this)}};return Object.keys(N9.MODE).forEach(i=>{const o=N9.MODE[i];r[o]=function(a){t.ctLoc=t._getCurrentLocation(),n[o].call(this,a)}}),r}};var zH=G5e;const q5e=Ss;let X5e=class extends q5e{constructor(t,n){super(t),this.onItemPop=n.onItemPop}_getOverriddenMethods(t,n){return{pop(){t.onItemPop(this.current),n.pop.call(this)},popAllUpToHtmlElement(){for(let r=this.stackTop;r>0;r--)t.onItemPop(this.items[r]);n.popAllUpToHtmlElement.call(this)},remove(r){t.onItemPop(this.current),n.remove.call(this,r)}}}};var Y5e=X5e;const A9=Ss,YN=w2,Q5e=zH,Z5e=Y5e,J5e=fl,k9=J5e.TAG_NAMES;let e4e=class extends A9{constructor(t){super(t),this.parser=t,this.treeAdapter=this.parser.treeAdapter,this.posTracker=null,this.lastStartTagToken=null,this.lastFosterParentingLocation=null,this.currentToken=null}_setStartLocation(t){let n=null;this.lastStartTagToken&&(n=Object.assign({},this.lastStartTagToken.location),n.startTag=this.lastStartTagToken.location),this.treeAdapter.setNodeSourceCodeLocation(t,n)}_setEndLocation(t,n){if(this.treeAdapter.getNodeSourceCodeLocation(t)&&n.location){const i=n.location,o=this.treeAdapter.getTagName(t),a=n.type===YN.END_TAG_TOKEN&&o===n.tagName,l={};a?(l.endTag=Object.assign({},i),l.endLine=i.endLine,l.endCol=i.endCol,l.endOffset=i.endOffset):(l.endLine=i.startLine,l.endCol=i.startCol,l.endOffset=i.startOffset),this.treeAdapter.updateNodeSourceCodeLocation(t,l)}}_getOverriddenMethods(t,n){return{_bootstrap(r,i){n._bootstrap.call(this,r,i),t.lastStartTagToken=null,t.lastFosterParentingLocation=null,t.currentToken=null;const o=A9.install(this.tokenizer,Q5e);t.posTracker=o.posTracker,A9.install(this.openElements,Z5e,{onItemPop:function(a){t._setEndLocation(a,t.currentToken)}})},_runParsingLoop(r){n._runParsingLoop.call(this,r);for(let i=this.openElements.stackTop;i>=0;i--)t._setEndLocation(this.openElements.items[i],t.currentToken)},_processTokenInForeignContent(r){t.currentToken=r,n._processTokenInForeignContent.call(this,r)},_processToken(r){if(t.currentToken=r,n._processToken.call(this,r),r.type===YN.END_TAG_TOKEN&&(r.tagName===k9.HTML||r.tagName===k9.BODY&&this.openElements.hasInScope(k9.BODY)))for(let o=this.openElements.stackTop;o>=0;o--){const a=this.openElements.items[o];if(this.treeAdapter.getTagName(a)===r.tagName){t._setEndLocation(a,r);break}}},_setDocumentType(r){n._setDocumentType.call(this,r);const i=this.treeAdapter.getChildNodes(this.document),o=i.length;for(let a=0;a<o;a++){const l=i[a];if(this.treeAdapter.isDocumentTypeNode(l)){this.treeAdapter.setNodeSourceCodeLocation(l,r.location);break}}},_attachElementToTree(r){t._setStartLocation(r),t.lastStartTagToken=null,n._attachElementToTree.call(this,r)},_appendElement(r,i){t.lastStartTagToken=r,n._appendElement.call(this,r,i)},_insertElement(r,i){t.lastStartTagToken=r,n._insertElement.call(this,r,i)},_insertTemplate(r){t.lastStartTagToken=r,n._insertTemplate.call(this,r);const i=this.treeAdapter.getTemplateContent(this.openElements.current);this.treeAdapter.setNodeSourceCodeLocation(i,null)},_insertFakeRootElement(){n._insertFakeRootElement.call(this),this.treeAdapter.setNodeSourceCodeLocation(this.openElements.current,null)},_appendCommentNode(r,i){n._appendCommentNode.call(this,r,i);const o=this.treeAdapter.getChildNodes(i),a=o[o.length-1];this.treeAdapter.setNodeSourceCodeLocation(a,r.location)},_findFosterParentingLocation(){return t.lastFosterParentingLocation=n._findFosterParentingLocation.call(this),t.lastFosterParentingLocation},_insertCharacters(r){n._insertCharacters.call(this,r);const i=this._shouldFosterParentOnInsertion(),o=i&&t.lastFosterParentingLocation.parent||this.openElements.currentTmplContent||this.openElements.current,a=this.treeAdapter.getChildNodes(o),l=i&&t.lastFosterParentingLocation.beforeElement?a.indexOf(t.lastFosterParentingLocation.beforeElement)-1:a.length-1,c=a[l];if(this.treeAdapter.getNodeSourceCodeLocation(c)){const{endLine:f,endCol:p,endOffset:m}=r.location;this.treeAdapter.updateNodeSourceCodeLocation(c,{endLine:f,endCol:p,endOffset:m})}else this.treeAdapter.setNodeSourceCodeLocation(c,r.location)}}}};var t4e=e4e;const n4e=Ss;let r4e=class extends n4e{constructor(t,n){super(t),this.posTracker=null,this.onParseError=n.onParseError}_setErrorLocation(t){t.startLine=t.endLine=this.posTracker.line,t.startCol=t.endCol=this.posTracker.col,t.startOffset=t.endOffset=this.posTracker.offset}_reportError(t){const n={code:t,startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1};this._setErrorLocation(n),this.onParseError(n)}_getOverriddenMethods(t){return{_err(n){t._reportError(n)}}}};var G3=r4e;const i4e=G3,o4e=HH,a4e=Ss;let l4e=class extends i4e{constructor(t,n){super(t,n),this.posTracker=a4e.install(t,o4e),this.lastErrOffset=-1}_reportError(t){this.lastErrOffset!==this.posTracker.offset&&(this.lastErrOffset=this.posTracker.offset,super._reportError(t))}};var s4e=l4e;const c4e=G3,u4e=s4e,d4e=Ss;let f4e=class extends c4e{constructor(t,n){super(t,n);const r=d4e.install(t.preprocessor,u4e,n);this.posTracker=r.posTracker}};var h4e=f4e;const p4e=G3,m4e=h4e,g4e=zH,QN=Ss;let v4e=class extends p4e{constructor(t,n){super(t,n),this.opts=n,this.ctLoc=null,this.locBeforeToken=!1}_setErrorLocation(t){this.ctLoc&&(t.startLine=this.ctLoc.startLine,t.startCol=this.ctLoc.startCol,t.startOffset=this.ctLoc.startOffset,t.endLine=this.locBeforeToken?this.ctLoc.startLine:this.ctLoc.endLine,t.endCol=this.locBeforeToken?this.ctLoc.startCol:this.ctLoc.endCol,t.endOffset=this.locBeforeToken?this.ctLoc.startOffset:this.ctLoc.endOffset)}_getOverriddenMethods(t,n){return{_bootstrap(r,i){n._bootstrap.call(this,r,i),QN.install(this.tokenizer,m4e,t.opts),QN.install(this.tokenizer,g4e)},_processInputToken(r){t.ctLoc=r.location,n._processInputToken.call(this,r)},_err(r,i){t.locBeforeToken=i&&i.beforeToken,t._reportError(r)}}}};var y4e=v4e,Pn={};const{DOCUMENT_MODE:b4e}=fl;Pn.createDocument=function(){return{nodeName:"#document",mode:b4e.NO_QUIRKS,childNodes:[]}};Pn.createDocumentFragment=function(){return{nodeName:"#document-fragment",childNodes:[]}};Pn.createElement=function(e,t,n){return{nodeName:e,tagName:e,attrs:n,namespaceURI:t,childNodes:[],parentNode:null}};Pn.createCommentNode=function(e){return{nodeName:"#comment",data:e,parentNode:null}};const WH=function(e){return{nodeName:"#text",value:e,parentNode:null}},UH=Pn.appendChild=function(e,t){e.childNodes.push(t),t.parentNode=e},C4e=Pn.insertBefore=function(e,t,n){const r=e.childNodes.indexOf(n);e.childNodes.splice(r,0,t),t.parentNode=e};Pn.setTemplateContent=function(e,t){e.content=t};Pn.getTemplateContent=function(e){return e.content};Pn.setDocumentType=function(e,t,n,r){let i=null;for(let o=0;o<e.childNodes.length;o++)if(e.childNodes[o].nodeName==="#documentType"){i=e.childNodes[o];break}i?(i.name=t,i.publicId=n,i.systemId=r):UH(e,{nodeName:"#documentType",name:t,publicId:n,systemId:r})};Pn.setDocumentMode=function(e,t){e.mode=t};Pn.getDocumentMode=function(e){return e.mode};Pn.detachNode=function(e){if(e.parentNode){const t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}};Pn.insertText=function(e,t){if(e.childNodes.length){const n=e.childNodes[e.childNodes.length-1];if(n.nodeName==="#text"){n.value+=t;return}}UH(e,WH(t))};Pn.insertTextBefore=function(e,t,n){const r=e.childNodes[e.childNodes.indexOf(n)-1];r&&r.nodeName==="#text"?r.value+=t:C4e(e,WH(t),n)};Pn.adoptAttributes=function(e,t){const n=[];for(let r=0;r<e.attrs.length;r++)n.push(e.attrs[r].name);for(let r=0;r<t.length;r++)n.indexOf(t[r].name)===-1&&e.attrs.push(t[r])};Pn.getFirstChild=function(e){return e.childNodes[0]};Pn.getChildNodes=function(e){return e.childNodes};Pn.getParentNode=function(e){return e.parentNode};Pn.getAttrList=function(e){return e.attrs};Pn.getTagName=function(e){return e.tagName};Pn.getNamespaceURI=function(e){return e.namespaceURI};Pn.getTextNodeContent=function(e){return e.value};Pn.getCommentNodeContent=function(e){return e.data};Pn.getDocumentTypeNodeName=function(e){return e.name};Pn.getDocumentTypeNodePublicId=function(e){return e.publicId};Pn.getDocumentTypeNodeSystemId=function(e){return e.systemId};Pn.isTextNode=function(e){return e.nodeName==="#text"};Pn.isCommentNode=function(e){return e.nodeName==="#comment"};Pn.isDocumentTypeNode=function(e){return e.nodeName==="#documentType"};Pn.isElementNode=function(e){return!!e.tagName};Pn.setNodeSourceCodeLocation=function(e,t){e.sourceCodeLocation=t};Pn.getNodeSourceCodeLocation=function(e){return e.sourceCodeLocation};Pn.updateNodeSourceCodeLocation=function(e,t){e.sourceCodeLocation=Object.assign(e.sourceCodeLocation,t)};var S4e=function(t,n){return n=n||Object.create(null),[t,n].reduce((r,i)=>(Object.keys(i).forEach(o=>{r[o]=i[o]}),r),Object.create(null))},T2={};const{DOCUMENT_MODE:Pd}=fl,KH="html",E4e="about:legacy-compat",x4e="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",VH=["+//silmaril//dtd html pro v0r11 19970101//","-//as//dtd html 3.0 aswedit + extensions//","-//advasoft ltd//dtd html 3.0 aswedit + extensions//","-//ietf//dtd html 2.0 level 1//","-//ietf//dtd html 2.0 level 2//","-//ietf//dtd html 2.0 strict level 1//","-//ietf//dtd html 2.0 strict level 2//","-//ietf//dtd html 2.0 strict//","-//ietf//dtd html 2.0//","-//ietf//dtd html 2.1e//","-//ietf//dtd html 3.0//","-//ietf//dtd html 3.2 final//","-//ietf//dtd html 3.2//","-//ietf//dtd html 3//","-//ietf//dtd html level 0//","-//ietf//dtd html level 1//","-//ietf//dtd html level 2//","-//ietf//dtd html level 3//","-//ietf//dtd html strict level 0//","-//ietf//dtd html strict level 1//","-//ietf//dtd html strict level 2//","-//ietf//dtd html strict level 3//","-//ietf//dtd html strict//","-//ietf//dtd html//","-//metrius//dtd metrius presentational//","-//microsoft//dtd internet explorer 2.0 html strict//","-//microsoft//dtd internet explorer 2.0 html//","-//microsoft//dtd internet explorer 2.0 tables//","-//microsoft//dtd internet explorer 3.0 html strict//","-//microsoft//dtd internet explorer 3.0 html//","-//microsoft//dtd internet explorer 3.0 tables//","-//netscape comm. corp.//dtd html//","-//netscape comm. corp.//dtd strict html//","-//o'reilly and associates//dtd html 2.0//","-//o'reilly and associates//dtd html extended 1.0//","-//o'reilly and associates//dtd html extended relaxed 1.0//","-//sq//dtd html 2.0 hotmetal + extensions//","-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//","-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//","-//spyglass//dtd html 2.0 extended//","-//sun microsystems corp.//dtd hotjava html//","-//sun microsystems corp.//dtd hotjava strict html//","-//w3c//dtd html 3 1995-03-24//","-//w3c//dtd html 3.2 draft//","-//w3c//dtd html 3.2 final//","-//w3c//dtd html 3.2//","-//w3c//dtd html 3.2s draft//","-//w3c//dtd html 4.0 frameset//","-//w3c//dtd html 4.0 transitional//","-//w3c//dtd html experimental 19960712//","-//w3c//dtd html experimental 970421//","-//w3c//dtd w3 html//","-//w3o//dtd w3 html 3.0//","-//webtechs//dtd mozilla html 2.0//","-//webtechs//dtd mozilla html//"],w4e=VH.concat(["-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"]),T4e=["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"],GH=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],_4e=GH.concat(["-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"]);function ZN(e){const t=e.indexOf('"')!==-1?"'":'"';return t+e+t}function JN(e,t){for(let n=0;n<t.length;n++)if(e.indexOf(t[n])===0)return!0;return!1}T2.isConforming=function(e){return e.name===KH&&e.publicId===null&&(e.systemId===null||e.systemId===E4e)};T2.getDocumentMode=function(e){if(e.name!==KH)return Pd.QUIRKS;const t=e.systemId;if(t&&t.toLowerCase()===x4e)return Pd.QUIRKS;let n=e.publicId;if(n!==null){if(n=n.toLowerCase(),T4e.indexOf(n)>-1)return Pd.QUIRKS;let r=t===null?w4e:VH;if(JN(n,r))return Pd.QUIRKS;if(r=t===null?GH:_4e,JN(n,r))return Pd.LIMITED_QUIRKS}return Pd.NO_QUIRKS};T2.serializeContent=function(e,t,n){let r="!DOCTYPE ";return e&&(r+=e),t?r+=" PUBLIC "+ZN(t):n&&(r+=" SYSTEM"),n!==null&&(r+=" "+ZN(n)),r};var Lc={};const R9=w2,q3=fl,ln=q3.TAG_NAMES,Ni=q3.NAMESPACES,yv=q3.ATTRS,eA={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},O4e="definitionurl",I4e="definitionURL",$4e={attributename:"attributeName",attributetype:"attributeType",basefrequency:"baseFrequency",baseprofile:"baseProfile",calcmode:"calcMode",clippathunits:"clipPathUnits",diffuseconstant:"diffuseConstant",edgemode:"edgeMode",filterunits:"filterUnits",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",limitingconeangle:"limitingConeAngle",markerheight:"markerHeight",markerunits:"markerUnits",markerwidth:"markerWidth",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",numoctaves:"numOctaves",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",refx:"refX",refy:"refY",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",specularconstant:"specularConstant",specularexponent:"specularExponent",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stitchtiles:"stitchTiles",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textlength:"textLength",viewbox:"viewBox",viewtarget:"viewTarget",xchannelselector:"xChannelSelector",ychannelselector:"yChannelSelector",zoomandpan:"zoomAndPan"},N4e={"xlink:actuate":{prefix:"xlink",name:"actuate",namespace:Ni.XLINK},"xlink:arcrole":{prefix:"xlink",name:"arcrole",namespace:Ni.XLINK},"xlink:href":{prefix:"xlink",name:"href",namespace:Ni.XLINK},"xlink:role":{prefix:"xlink",name:"role",namespace:Ni.XLINK},"xlink:show":{prefix:"xlink",name:"show",namespace:Ni.XLINK},"xlink:title":{prefix:"xlink",name:"title",namespace:Ni.XLINK},"xlink:type":{prefix:"xlink",name:"type",namespace:Ni.XLINK},"xml:base":{prefix:"xml",name:"base",namespace:Ni.XML},"xml:lang":{prefix:"xml",name:"lang",namespace:Ni.XML},"xml:space":{prefix:"xml",name:"space",namespace:Ni.XML},xmlns:{prefix:"",name:"xmlns",namespace:Ni.XMLNS},"xmlns:xlink":{prefix:"xmlns",name:"xlink",namespace:Ni.XMLNS}},A4e=Lc.SVG_TAG_NAMES_ADJUSTMENT_MAP={altglyph:"altGlyph",altglyphdef:"altGlyphDef",altglyphitem:"altGlyphItem",animatecolor:"animateColor",animatemotion:"animateMotion",animatetransform:"animateTransform",clippath:"clipPath",feblend:"feBlend",fecolormatrix:"feColorMatrix",fecomponenttransfer:"feComponentTransfer",fecomposite:"feComposite",feconvolvematrix:"feConvolveMatrix",fediffuselighting:"feDiffuseLighting",fedisplacementmap:"feDisplacementMap",fedistantlight:"feDistantLight",feflood:"feFlood",fefunca:"feFuncA",fefuncb:"feFuncB",fefuncg:"feFuncG",fefuncr:"feFuncR",fegaussianblur:"feGaussianBlur",feimage:"feImage",femerge:"feMerge",femergenode:"feMergeNode",femorphology:"feMorphology",feoffset:"feOffset",fepointlight:"fePointLight",fespecularlighting:"feSpecularLighting",fespotlight:"feSpotLight",fetile:"feTile",feturbulence:"feTurbulence",foreignobject:"foreignObject",glyphref:"glyphRef",lineargradient:"linearGradient",radialgradient:"radialGradient",textpath:"textPath"},k4e={[ln.B]:!0,[ln.BIG]:!0,[ln.BLOCKQUOTE]:!0,[ln.BODY]:!0,[ln.BR]:!0,[ln.CENTER]:!0,[ln.CODE]:!0,[ln.DD]:!0,[ln.DIV]:!0,[ln.DL]:!0,[ln.DT]:!0,[ln.EM]:!0,[ln.EMBED]:!0,[ln.H1]:!0,[ln.H2]:!0,[ln.H3]:!0,[ln.H4]:!0,[ln.H5]:!0,[ln.H6]:!0,[ln.HEAD]:!0,[ln.HR]:!0,[ln.I]:!0,[ln.IMG]:!0,[ln.LI]:!0,[ln.LISTING]:!0,[ln.MENU]:!0,[ln.META]:!0,[ln.NOBR]:!0,[ln.OL]:!0,[ln.P]:!0,[ln.PRE]:!0,[ln.RUBY]:!0,[ln.S]:!0,[ln.SMALL]:!0,[ln.SPAN]:!0,[ln.STRONG]:!0,[ln.STRIKE]:!0,[ln.SUB]:!0,[ln.SUP]:!0,[ln.TABLE]:!0,[ln.TT]:!0,[ln.U]:!0,[ln.UL]:!0,[ln.VAR]:!0};Lc.causesExit=function(e){const t=e.tagName;return t===ln.FONT&&(R9.getTokenAttr(e,yv.COLOR)!==null||R9.getTokenAttr(e,yv.SIZE)!==null||R9.getTokenAttr(e,yv.FACE)!==null)?!0:k4e[t]};Lc.adjustTokenMathMLAttrs=function(e){for(let t=0;t<e.attrs.length;t++)if(e.attrs[t].name===O4e){e.attrs[t].name=I4e;break}};Lc.adjustTokenSVGAttrs=function(e){for(let t=0;t<e.attrs.length;t++){const n=$4e[e.attrs[t].name];n&&(e.attrs[t].name=n)}};Lc.adjustTokenXMLAttrs=function(e){for(let t=0;t<e.attrs.length;t++){const n=N4e[e.attrs[t].name];n&&(e.attrs[t].prefix=n.prefix,e.attrs[t].name=n.name,e.attrs[t].namespace=n.namespace)}};Lc.adjustTokenSVGTagName=function(e){const t=A4e[e.tagName];t&&(e.tagName=t)};function R4e(e,t){return t===Ni.MATHML&&(e===ln.MI||e===ln.MO||e===ln.MN||e===ln.MS||e===ln.MTEXT)}function M4e(e,t,n){if(t===Ni.MATHML&&e===ln.ANNOTATION_XML){for(let r=0;r<n.length;r++)if(n[r].name===yv.ENCODING){const i=n[r].value.toLowerCase();return i===eA.TEXT_HTML||i===eA.APPLICATION_XML}}return t===Ni.SVG&&(e===ln.FOREIGN_OBJECT||e===ln.DESC||e===ln.TITLE)}Lc.isIntegrationPoint=function(e,t,n,r){return!!((!r||r===Ni.HTML)&&M4e(e,t,n)||(!r||r===Ni.MATHML)&&R4e(e,t))};const _e=w2,P4e=z5e,tA=W5e,L4e=t4e,D4e=y4e,nA=Ss,F4e=Pn,B4e=S4e,rA=T2,Ol=Lc,Li=K3,j4e=dl,Xu=fl,G=Xu.TAG_NAMES,Ut=Xu.NAMESPACES,qH=Xu.ATTRS,H4e={scriptingEnabled:!0,sourceCodeLocationInfo:!1,onParseError:null,treeAdapter:F4e},XH="hidden",z4e=8,W4e=3,YH="INITIAL_MODE",X3="BEFORE_HTML_MODE",_2="BEFORE_HEAD_MODE",C1="IN_HEAD_MODE",QH="IN_HEAD_NO_SCRIPT_MODE",O2="AFTER_HEAD_MODE",kl="IN_BODY_MODE",Ny="TEXT_MODE",qi="IN_TABLE_MODE",ZH="IN_TABLE_TEXT_MODE",I2="IN_CAPTION_MODE",Gm="IN_COLUMN_GROUP_MODE",wa="IN_TABLE_BODY_MODE",ys="IN_ROW_MODE",$2="IN_CELL_MODE",Y3="IN_SELECT_MODE",Q3="IN_SELECT_IN_TABLE_MODE",Ay="IN_TEMPLATE_MODE",Z3="AFTER_BODY_MODE",N2="IN_FRAMESET_MODE",JH="AFTER_FRAMESET_MODE",ez="AFTER_AFTER_BODY_MODE",tz="AFTER_AFTER_FRAMESET_MODE",U4e={[G.TR]:ys,[G.TBODY]:wa,[G.THEAD]:wa,[G.TFOOT]:wa,[G.CAPTION]:I2,[G.COLGROUP]:Gm,[G.TABLE]:qi,[G.BODY]:kl,[G.FRAMESET]:N2},K4e={[G.CAPTION]:qi,[G.COLGROUP]:qi,[G.TBODY]:qi,[G.TFOOT]:qi,[G.THEAD]:qi,[G.COL]:Gm,[G.TR]:wa,[G.TD]:ys,[G.TH]:ys},iA={[YH]:{[_e.CHARACTER_TOKEN]:Th,[_e.NULL_CHARACTER_TOKEN]:Th,[_e.WHITESPACE_CHARACTER_TOKEN]:_n,[_e.COMMENT_TOKEN]:fi,[_e.DOCTYPE_TOKEN]:t9e,[_e.START_TAG_TOKEN]:Th,[_e.END_TAG_TOKEN]:Th,[_e.EOF_TOKEN]:Th},[X3]:{[_e.CHARACTER_TOKEN]:up,[_e.NULL_CHARACTER_TOKEN]:up,[_e.WHITESPACE_CHARACTER_TOKEN]:_n,[_e.COMMENT_TOKEN]:fi,[_e.DOCTYPE_TOKEN]:_n,[_e.START_TAG_TOKEN]:n9e,[_e.END_TAG_TOKEN]:r9e,[_e.EOF_TOKEN]:up},[_2]:{[_e.CHARACTER_TOKEN]:dp,[_e.NULL_CHARACTER_TOKEN]:dp,[_e.WHITESPACE_CHARACTER_TOKEN]:_n,[_e.COMMENT_TOKEN]:fi,[_e.DOCTYPE_TOKEN]:$g,[_e.START_TAG_TOKEN]:i9e,[_e.END_TAG_TOKEN]:o9e,[_e.EOF_TOKEN]:dp},[C1]:{[_e.CHARACTER_TOKEN]:fp,[_e.NULL_CHARACTER_TOKEN]:fp,[_e.WHITESPACE_CHARACTER_TOKEN]:xo,[_e.COMMENT_TOKEN]:fi,[_e.DOCTYPE_TOKEN]:$g,[_e.START_TAG_TOKEN]:xi,[_e.END_TAG_TOKEN]:Yu,[_e.EOF_TOKEN]:fp},[QH]:{[_e.CHARACTER_TOKEN]:hp,[_e.NULL_CHARACTER_TOKEN]:hp,[_e.WHITESPACE_CHARACTER_TOKEN]:xo,[_e.COMMENT_TOKEN]:fi,[_e.DOCTYPE_TOKEN]:$g,[_e.START_TAG_TOKEN]:a9e,[_e.END_TAG_TOKEN]:l9e,[_e.EOF_TOKEN]:hp},[O2]:{[_e.CHARACTER_TOKEN]:pp,[_e.NULL_CHARACTER_TOKEN]:pp,[_e.WHITESPACE_CHARACTER_TOKEN]:xo,[_e.COMMENT_TOKEN]:fi,[_e.DOCTYPE_TOKEN]:$g,[_e.START_TAG_TOKEN]:s9e,[_e.END_TAG_TOKEN]:c9e,[_e.EOF_TOKEN]:pp},[kl]:{[_e.CHARACTER_TOKEN]:Ng,[_e.NULL_CHARACTER_TOKEN]:_n,[_e.WHITESPACE_CHARACTER_TOKEN]:tu,[_e.COMMENT_TOKEN]:fi,[_e.DOCTYPE_TOKEN]:_n,[_e.START_TAG_TOKEN]:Do,[_e.END_TAG_TOKEN]:J3,[_e.EOF_TOKEN]:Ql},[Ny]:{[_e.CHARACTER_TOKEN]:xo,[_e.NULL_CHARACTER_TOKEN]:xo,[_e.WHITESPACE_CHARACTER_TOKEN]:xo,[_e.COMMENT_TOKEN]:_n,[_e.DOCTYPE_TOKEN]:_n,[_e.START_TAG_TOKEN]:_n,[_e.END_TAG_TOKEN]:j9e,[_e.EOF_TOKEN]:H9e},[qi]:{[_e.CHARACTER_TOKEN]:Zl,[_e.NULL_CHARACTER_TOKEN]:Zl,[_e.WHITESPACE_CHARACTER_TOKEN]:Zl,[_e.COMMENT_TOKEN]:fi,[_e.DOCTYPE_TOKEN]:_n,[_e.START_TAG_TOKEN]:e6,[_e.END_TAG_TOKEN]:t6,[_e.EOF_TOKEN]:Ql},[ZH]:{[_e.CHARACTER_TOKEN]:Q9e,[_e.NULL_CHARACTER_TOKEN]:_n,[_e.WHITESPACE_CHARACTER_TOKEN]:Y9e,[_e.COMMENT_TOKEN]:_h,[_e.DOCTYPE_TOKEN]:_h,[_e.START_TAG_TOKEN]:_h,[_e.END_TAG_TOKEN]:_h,[_e.EOF_TOKEN]:_h},[I2]:{[_e.CHARACTER_TOKEN]:Ng,[_e.NULL_CHARACTER_TOKEN]:_n,[_e.WHITESPACE_CHARACTER_TOKEN]:tu,[_e.COMMENT_TOKEN]:fi,[_e.DOCTYPE_TOKEN]:_n,[_e.START_TAG_TOKEN]:Z9e,[_e.END_TAG_TOKEN]:J9e,[_e.EOF_TOKEN]:Ql},[Gm]:{[_e.CHARACTER_TOKEN]:ky,[_e.NULL_CHARACTER_TOKEN]:ky,[_e.WHITESPACE_CHARACTER_TOKEN]:xo,[_e.COMMENT_TOKEN]:fi,[_e.DOCTYPE_TOKEN]:_n,[_e.START_TAG_TOKEN]:eCe,[_e.END_TAG_TOKEN]:tCe,[_e.EOF_TOKEN]:Ql},[wa]:{[_e.CHARACTER_TOKEN]:Zl,[_e.NULL_CHARACTER_TOKEN]:Zl,[_e.WHITESPACE_CHARACTER_TOKEN]:Zl,[_e.COMMENT_TOKEN]:fi,[_e.DOCTYPE_TOKEN]:_n,[_e.START_TAG_TOKEN]:nCe,[_e.END_TAG_TOKEN]:rCe,[_e.EOF_TOKEN]:Ql},[ys]:{[_e.CHARACTER_TOKEN]:Zl,[_e.NULL_CHARACTER_TOKEN]:Zl,[_e.WHITESPACE_CHARACTER_TOKEN]:Zl,[_e.COMMENT_TOKEN]:fi,[_e.DOCTYPE_TOKEN]:_n,[_e.START_TAG_TOKEN]:iCe,[_e.END_TAG_TOKEN]:oCe,[_e.EOF_TOKEN]:Ql},[$2]:{[_e.CHARACTER_TOKEN]:Ng,[_e.NULL_CHARACTER_TOKEN]:_n,[_e.WHITESPACE_CHARACTER_TOKEN]:tu,[_e.COMMENT_TOKEN]:fi,[_e.DOCTYPE_TOKEN]:_n,[_e.START_TAG_TOKEN]:aCe,[_e.END_TAG_TOKEN]:lCe,[_e.EOF_TOKEN]:Ql},[Y3]:{[_e.CHARACTER_TOKEN]:xo,[_e.NULL_CHARACTER_TOKEN]:_n,[_e.WHITESPACE_CHARACTER_TOKEN]:xo,[_e.COMMENT_TOKEN]:fi,[_e.DOCTYPE_TOKEN]:_n,[_e.START_TAG_TOKEN]:nz,[_e.END_TAG_TOKEN]:rz,[_e.EOF_TOKEN]:Ql},[Q3]:{[_e.CHARACTER_TOKEN]:xo,[_e.NULL_CHARACTER_TOKEN]:_n,[_e.WHITESPACE_CHARACTER_TOKEN]:xo,[_e.COMMENT_TOKEN]:fi,[_e.DOCTYPE_TOKEN]:_n,[_e.START_TAG_TOKEN]:sCe,[_e.END_TAG_TOKEN]:cCe,[_e.EOF_TOKEN]:Ql},[Ay]:{[_e.CHARACTER_TOKEN]:Ng,[_e.NULL_CHARACTER_TOKEN]:_n,[_e.WHITESPACE_CHARACTER_TOKEN]:tu,[_e.COMMENT_TOKEN]:fi,[_e.DOCTYPE_TOKEN]:_n,[_e.START_TAG_TOKEN]:uCe,[_e.END_TAG_TOKEN]:dCe,[_e.EOF_TOKEN]:iz},[Z3]:{[_e.CHARACTER_TOKEN]:Ry,[_e.NULL_CHARACTER_TOKEN]:Ry,[_e.WHITESPACE_CHARACTER_TOKEN]:tu,[_e.COMMENT_TOKEN]:e9e,[_e.DOCTYPE_TOKEN]:_n,[_e.START_TAG_TOKEN]:fCe,[_e.END_TAG_TOKEN]:hCe,[_e.EOF_TOKEN]:wh},[N2]:{[_e.CHARACTER_TOKEN]:_n,[_e.NULL_CHARACTER_TOKEN]:_n,[_e.WHITESPACE_CHARACTER_TOKEN]:xo,[_e.COMMENT_TOKEN]:fi,[_e.DOCTYPE_TOKEN]:_n,[_e.START_TAG_TOKEN]:pCe,[_e.END_TAG_TOKEN]:mCe,[_e.EOF_TOKEN]:wh},[JH]:{[_e.CHARACTER_TOKEN]:_n,[_e.NULL_CHARACTER_TOKEN]:_n,[_e.WHITESPACE_CHARACTER_TOKEN]:xo,[_e.COMMENT_TOKEN]:fi,[_e.DOCTYPE_TOKEN]:_n,[_e.START_TAG_TOKEN]:gCe,[_e.END_TAG_TOKEN]:vCe,[_e.EOF_TOKEN]:wh},[ez]:{[_e.CHARACTER_TOKEN]:bv,[_e.NULL_CHARACTER_TOKEN]:bv,[_e.WHITESPACE_CHARACTER_TOKEN]:tu,[_e.COMMENT_TOKEN]:oA,[_e.DOCTYPE_TOKEN]:_n,[_e.START_TAG_TOKEN]:yCe,[_e.END_TAG_TOKEN]:bv,[_e.EOF_TOKEN]:wh},[tz]:{[_e.CHARACTER_TOKEN]:_n,[_e.NULL_CHARACTER_TOKEN]:_n,[_e.WHITESPACE_CHARACTER_TOKEN]:tu,[_e.COMMENT_TOKEN]:oA,[_e.DOCTYPE_TOKEN]:_n,[_e.START_TAG_TOKEN]:bCe,[_e.END_TAG_TOKEN]:_n,[_e.EOF_TOKEN]:wh}};class V4e{constructor(t){this.options=B4e(H4e,t),this.treeAdapter=this.options.treeAdapter,this.pendingScript=null,this.options.sourceCodeLocationInfo&&nA.install(this,L4e),this.options.onParseError&&nA.install(this,D4e,{onParseError:this.options.onParseError})}parse(t){const n=this.treeAdapter.createDocument();return this._bootstrap(n,null),this.tokenizer.write(t,!0),this._runParsingLoop(null),n}parseFragment(t,n){n||(n=this.treeAdapter.createElement(G.TEMPLATE,Ut.HTML,[]));const r=this.treeAdapter.createElement("documentmock",Ut.HTML,[]);this._bootstrap(r,n),this.treeAdapter.getTagName(n)===G.TEMPLATE&&this._pushTmplInsertionMode(Ay),this._initTokenizerForFragmentParsing(),this._insertFakeRootElement(),this._resetInsertionMode(),this._findFormInFragmentContext(),this.tokenizer.write(t,!0),this._runParsingLoop(null);const i=this.treeAdapter.getFirstChild(r),o=this.treeAdapter.createDocumentFragment();return this._adoptNodes(i,o),o}_bootstrap(t,n){this.tokenizer=new _e(this.options),this.stopped=!1,this.insertionMode=YH,this.originalInsertionMode="",this.document=t,this.fragmentContext=n,this.headElement=null,this.formElement=null,this.openElements=new P4e(this.document,this.treeAdapter),this.activeFormattingElements=new tA(this.treeAdapter),this.tmplInsertionModeStack=[],this.tmplInsertionModeStackTop=-1,this.currentTmplInsertionMode=null,this.pendingCharacterTokens=[],this.hasNonWhitespacePendingCharacterToken=!1,this.framesetOk=!0,this.skipNextNewLine=!1,this.fosterParentingEnabled=!1}_err(){}_runParsingLoop(t){for(;!this.stopped;){this._setupTokenizerCDATAMode();const n=this.tokenizer.getNextToken();if(n.type===_e.HIBERNATION_TOKEN)break;if(this.skipNextNewLine&&(this.skipNextNewLine=!1,n.type===_e.WHITESPACE_CHARACTER_TOKEN&&n.chars[0]===`
`)){if(n.chars.length===1)continue;n.chars=n.chars.substr(1)}if(this._processInputToken(n),t&&this.pendingScript)break}}runParsingLoopForCurrentChunk(t,n){if(this._runParsingLoop(n),n&&this.pendingScript){const r=this.pendingScript;this.pendingScript=null,n(r);return}t&&t()}_setupTokenizerCDATAMode(){const t=this._getAdjustedCurrentElement();this.tokenizer.allowCDATA=t&&t!==this.document&&this.treeAdapter.getNamespaceURI(t)!==Ut.HTML&&!this._isIntegrationPoint(t)}_switchToTextParsing(t,n){this._insertElement(t,Ut.HTML),this.tokenizer.state=n,this.originalInsertionMode=this.insertionMode,this.insertionMode=Ny}switchToPlaintextParsing(){this.insertionMode=Ny,this.originalInsertionMode=kl,this.tokenizer.state=_e.MODE.PLAINTEXT}_getAdjustedCurrentElement(){return this.openElements.stackTop===0&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let t=this.fragmentContext;do{if(this.treeAdapter.getTagName(t)===G.FORM){this.formElement=t;break}t=this.treeAdapter.getParentNode(t)}while(t)}_initTokenizerForFragmentParsing(){if(this.treeAdapter.getNamespaceURI(this.fragmentContext)===Ut.HTML){const t=this.treeAdapter.getTagName(this.fragmentContext);t===G.TITLE||t===G.TEXTAREA?this.tokenizer.state=_e.MODE.RCDATA:t===G.STYLE||t===G.XMP||t===G.IFRAME||t===G.NOEMBED||t===G.NOFRAMES||t===G.NOSCRIPT?this.tokenizer.state=_e.MODE.RAWTEXT:t===G.SCRIPT?this.tokenizer.state=_e.MODE.SCRIPT_DATA:t===G.PLAINTEXT&&(this.tokenizer.state=_e.MODE.PLAINTEXT)}}_setDocumentType(t){const n=t.name||"",r=t.publicId||"",i=t.systemId||"";this.treeAdapter.setDocumentType(this.document,n,r,i)}_attachElementToTree(t){if(this._shouldFosterParentOnInsertion())this._fosterParentElement(t);else{const n=this.openElements.currentTmplContent||this.openElements.current;this.treeAdapter.appendChild(n,t)}}_appendElement(t,n){const r=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(r)}_insertElement(t,n){const r=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(r),this.openElements.push(r)}_insertFakeElement(t){const n=this.treeAdapter.createElement(t,Ut.HTML,[]);this._attachElementToTree(n),this.openElements.push(n)}_insertTemplate(t){const n=this.treeAdapter.createElement(t.tagName,Ut.HTML,t.attrs),r=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(n,r),this._attachElementToTree(n),this.openElements.push(n)}_insertFakeRootElement(){const t=this.treeAdapter.createElement(G.HTML,Ut.HTML,[]);this.treeAdapter.appendChild(this.openElements.current,t),this.openElements.push(t)}_appendCommentNode(t,n){const r=this.treeAdapter.createCommentNode(t.data);this.treeAdapter.appendChild(n,r)}_insertCharacters(t){if(this._shouldFosterParentOnInsertion())this._fosterParentText(t.chars);else{const n=this.openElements.currentTmplContent||this.openElements.current;this.treeAdapter.insertText(n,t.chars)}}_adoptNodes(t,n){for(let r=this.treeAdapter.getFirstChild(t);r;r=this.treeAdapter.getFirstChild(t))this.treeAdapter.detachNode(r),this.treeAdapter.appendChild(n,r)}_shouldProcessTokenInForeignContent(t){const n=this._getAdjustedCurrentElement();if(!n||n===this.document)return!1;const r=this.treeAdapter.getNamespaceURI(n);if(r===Ut.HTML||this.treeAdapter.getTagName(n)===G.ANNOTATION_XML&&r===Ut.MATHML&&t.type===_e.START_TAG_TOKEN&&t.tagName===G.SVG)return!1;const i=t.type===_e.CHARACTER_TOKEN||t.type===_e.NULL_CHARACTER_TOKEN||t.type===_e.WHITESPACE_CHARACTER_TOKEN;return(t.type===_e.START_TAG_TOKEN&&t.tagName!==G.MGLYPH&&t.tagName!==G.MALIGNMARK||i)&&this._isIntegrationPoint(n,Ut.MATHML)||(t.type===_e.START_TAG_TOKEN||i)&&this._isIntegrationPoint(n,Ut.HTML)?!1:t.type!==_e.EOF_TOKEN}_processToken(t){iA[this.insertionMode][t.type](this,t)}_processTokenInBodyMode(t){iA[kl][t.type](this,t)}_processTokenInForeignContent(t){t.type===_e.CHARACTER_TOKEN?SCe(this,t):t.type===_e.NULL_CHARACTER_TOKEN?CCe(this,t):t.type===_e.WHITESPACE_CHARACTER_TOKEN?xo(this,t):t.type===_e.COMMENT_TOKEN?fi(this,t):t.type===_e.START_TAG_TOKEN?ECe(this,t):t.type===_e.END_TAG_TOKEN&&xCe(this,t)}_processInputToken(t){this._shouldProcessTokenInForeignContent(t)?this._processTokenInForeignContent(t):this._processToken(t),t.type===_e.START_TAG_TOKEN&&t.selfClosing&&!t.ackSelfClosing&&this._err(Li.nonVoidHtmlElementStartTagWithTrailingSolidus)}_isIntegrationPoint(t,n){const r=this.treeAdapter.getTagName(t),i=this.treeAdapter.getNamespaceURI(t),o=this.treeAdapter.getAttrList(t);return Ol.isIntegrationPoint(r,i,o,n)}_reconstructActiveFormattingElements(){const t=this.activeFormattingElements.length;if(t){let n=t,r=null;do if(n--,r=this.activeFormattingElements.entries[n],r.type===tA.MARKER_ENTRY||this.openElements.contains(r.element)){n++;break}while(n>0);for(let i=n;i<t;i++)r=this.activeFormattingElements.entries[i],this._insertElement(r.token,this.treeAdapter.getNamespaceURI(r.element)),r.element=this.openElements.current}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=ys}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(G.P),this.openElements.popUntilTagNamePopped(G.P)}_resetInsertionMode(){for(let t=this.openElements.stackTop,n=!1;t>=0;t--){let r=this.openElements.items[t];t===0&&(n=!0,this.fragmentContext&&(r=this.fragmentContext));const i=this.treeAdapter.getTagName(r),o=U4e[i];if(o){this.insertionMode=o;break}else if(!n&&(i===G.TD||i===G.TH)){this.insertionMode=$2;break}else if(!n&&i===G.HEAD){this.insertionMode=C1;break}else if(i===G.SELECT){this._resetInsertionModeForSelect(t);break}else if(i===G.TEMPLATE){this.insertionMode=this.currentTmplInsertionMode;break}else if(i===G.HTML){this.insertionMode=this.headElement?O2:_2;break}else if(n){this.insertionMode=kl;break}}}_resetInsertionModeForSelect(t){if(t>0)for(let n=t-1;n>0;n--){const r=this.openElements.items[n],i=this.treeAdapter.getTagName(r);if(i===G.TEMPLATE)break;if(i===G.TABLE){this.insertionMode=Q3;return}}this.insertionMode=Y3}_pushTmplInsertionMode(t){this.tmplInsertionModeStack.push(t),this.tmplInsertionModeStackTop++,this.currentTmplInsertionMode=t}_popTmplInsertionMode(){this.tmplInsertionModeStack.pop(),this.tmplInsertionModeStackTop--,this.currentTmplInsertionMode=this.tmplInsertionModeStack[this.tmplInsertionModeStackTop]}_isElementCausesFosterParenting(t){const n=this.treeAdapter.getTagName(t);return n===G.TABLE||n===G.TBODY||n===G.TFOOT||n===G.THEAD||n===G.TR}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this._isElementCausesFosterParenting(this.openElements.current)}_findFosterParentingLocation(){const t={parent:null,beforeElement:null};for(let n=this.openElements.stackTop;n>=0;n--){const r=this.openElements.items[n],i=this.treeAdapter.getTagName(r),o=this.treeAdapter.getNamespaceURI(r);if(i===G.TEMPLATE&&o===Ut.HTML){t.parent=this.treeAdapter.getTemplateContent(r);break}else if(i===G.TABLE){t.parent=this.treeAdapter.getParentNode(r),t.parent?t.beforeElement=r:t.parent=this.openElements.items[n-1];break}}return t.parent||(t.parent=this.openElements.items[0]),t}_fosterParentElement(t){const n=this._findFosterParentingLocation();n.beforeElement?this.treeAdapter.insertBefore(n.parent,t,n.beforeElement):this.treeAdapter.appendChild(n.parent,t)}_fosterParentText(t){const n=this._findFosterParentingLocation();n.beforeElement?this.treeAdapter.insertTextBefore(n.parent,t,n.beforeElement):this.treeAdapter.insertText(n.parent,t)}_isSpecialElement(t){const n=this.treeAdapter.getTagName(t),r=this.treeAdapter.getNamespaceURI(t);return Xu.SPECIAL_ELEMENTS[r][n]}}var G4e=V4e;function q4e(e,t){let n=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return n?e.openElements.contains(n.element)?e.openElements.hasInScope(t.tagName)||(n=null):(e.activeFormattingElements.removeEntry(n),n=null):Ka(e,t),n}function X4e(e,t){let n=null;for(let r=e.openElements.stackTop;r>=0;r--){const i=e.openElements.items[r];if(i===t.element)break;e._isSpecialElement(i)&&(n=i)}return n||(e.openElements.popUntilElementPopped(t.element),e.activeFormattingElements.removeEntry(t)),n}function Y4e(e,t,n){let r=t,i=e.openElements.getCommonAncestor(t);for(let o=0,a=i;a!==n;o++,a=i){i=e.openElements.getCommonAncestor(a);const l=e.activeFormattingElements.getElementEntry(a),c=l&&o>=W4e;!l||c?(c&&e.activeFormattingElements.removeEntry(l),e.openElements.remove(a)):(a=Q4e(e,l),r===t&&(e.activeFormattingElements.bookmark=l),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(a,r),r=a)}return r}function Q4e(e,t){const n=e.treeAdapter.getNamespaceURI(t.element),r=e.treeAdapter.createElement(t.token.tagName,n,t.token.attrs);return e.openElements.replace(t.element,r),t.element=r,r}function Z4e(e,t,n){if(e._isElementCausesFosterParenting(t))e._fosterParentElement(n);else{const r=e.treeAdapter.getTagName(t),i=e.treeAdapter.getNamespaceURI(t);r===G.TEMPLATE&&i===Ut.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function J4e(e,t,n){const r=e.treeAdapter.getNamespaceURI(n.element),i=n.token,o=e.treeAdapter.createElement(i.tagName,r,i.attrs);e._adoptNodes(t,o),e.treeAdapter.appendChild(t,o),e.activeFormattingElements.insertElementAfterBookmark(o,n.token),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,o)}function Zs(e,t){let n;for(let r=0;r<z4e&&(n=q4e(e,t),!!n);r++){const i=X4e(e,n);if(!i)break;e.activeFormattingElements.bookmark=n;const o=Y4e(e,i,n.element),a=e.openElements.getCommonAncestor(n.element);e.treeAdapter.detachNode(o),Z4e(e,a,o),J4e(e,i,n)}}function _n(){}function $g(e){e._err(Li.misplacedDoctype)}function fi(e,t){e._appendCommentNode(t,e.openElements.currentTmplContent||e.openElements.current)}function e9e(e,t){e._appendCommentNode(t,e.openElements.items[0])}function oA(e,t){e._appendCommentNode(t,e.document)}function xo(e,t){e._insertCharacters(t)}function wh(e){e.stopped=!0}function t9e(e,t){e._setDocumentType(t);const n=t.forceQuirks?Xu.DOCUMENT_MODE.QUIRKS:rA.getDocumentMode(t);rA.isConforming(t)||e._err(Li.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=X3}function Th(e,t){e._err(Li.missingDoctype,{beforeToken:!0}),e.treeAdapter.setDocumentMode(e.document,Xu.DOCUMENT_MODE.QUIRKS),e.insertionMode=X3,e._processToken(t)}function n9e(e,t){t.tagName===G.HTML?(e._insertElement(t,Ut.HTML),e.insertionMode=_2):up(e,t)}function r9e(e,t){const n=t.tagName;(n===G.HTML||n===G.HEAD||n===G.BODY||n===G.BR)&&up(e,t)}function up(e,t){e._insertFakeRootElement(),e.insertionMode=_2,e._processToken(t)}function i9e(e,t){const n=t.tagName;n===G.HTML?Do(e,t):n===G.HEAD?(e._insertElement(t,Ut.HTML),e.headElement=e.openElements.current,e.insertionMode=C1):dp(e,t)}function o9e(e,t){const n=t.tagName;n===G.HEAD||n===G.BODY||n===G.HTML||n===G.BR?dp(e,t):e._err(Li.endTagWithoutMatchingOpenElement)}function dp(e,t){e._insertFakeElement(G.HEAD),e.headElement=e.openElements.current,e.insertionMode=C1,e._processToken(t)}function xi(e,t){const n=t.tagName;n===G.HTML?Do(e,t):n===G.BASE||n===G.BASEFONT||n===G.BGSOUND||n===G.LINK||n===G.META?(e._appendElement(t,Ut.HTML),t.ackSelfClosing=!0):n===G.TITLE?e._switchToTextParsing(t,_e.MODE.RCDATA):n===G.NOSCRIPT?e.options.scriptingEnabled?e._switchToTextParsing(t,_e.MODE.RAWTEXT):(e._insertElement(t,Ut.HTML),e.insertionMode=QH):n===G.NOFRAMES||n===G.STYLE?e._switchToTextParsing(t,_e.MODE.RAWTEXT):n===G.SCRIPT?e._switchToTextParsing(t,_e.MODE.SCRIPT_DATA):n===G.TEMPLATE?(e._insertTemplate(t,Ut.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=Ay,e._pushTmplInsertionMode(Ay)):n===G.HEAD?e._err(Li.misplacedStartTagForHeadElement):fp(e,t)}function Yu(e,t){const n=t.tagName;n===G.HEAD?(e.openElements.pop(),e.insertionMode=O2):n===G.BODY||n===G.BR||n===G.HTML?fp(e,t):n===G.TEMPLATE&&e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagName!==G.TEMPLATE&&e._err(Li.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(G.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e._popTmplInsertionMode(),e._resetInsertionMode()):e._err(Li.endTagWithoutMatchingOpenElement)}function fp(e,t){e.openElements.pop(),e.insertionMode=O2,e._processToken(t)}function a9e(e,t){const n=t.tagName;n===G.HTML?Do(e,t):n===G.BASEFONT||n===G.BGSOUND||n===G.HEAD||n===G.LINK||n===G.META||n===G.NOFRAMES||n===G.STYLE?xi(e,t):n===G.NOSCRIPT?e._err(Li.nestedNoscriptInHead):hp(e,t)}function l9e(e,t){const n=t.tagName;n===G.NOSCRIPT?(e.openElements.pop(),e.insertionMode=C1):n===G.BR?hp(e,t):e._err(Li.endTagWithoutMatchingOpenElement)}function hp(e,t){const n=t.type===_e.EOF_TOKEN?Li.openElementsLeftAfterEof:Li.disallowedContentInNoscriptInHead;e._err(n),e.openElements.pop(),e.insertionMode=C1,e._processToken(t)}function s9e(e,t){const n=t.tagName;n===G.HTML?Do(e,t):n===G.BODY?(e._insertElement(t,Ut.HTML),e.framesetOk=!1,e.insertionMode=kl):n===G.FRAMESET?(e._insertElement(t,Ut.HTML),e.insertionMode=N2):n===G.BASE||n===G.BASEFONT||n===G.BGSOUND||n===G.LINK||n===G.META||n===G.NOFRAMES||n===G.SCRIPT||n===G.STYLE||n===G.TEMPLATE||n===G.TITLE?(e._err(Li.abandonedHeadElementChild),e.openElements.push(e.headElement),xi(e,t),e.openElements.remove(e.headElement)):n===G.HEAD?e._err(Li.misplacedStartTagForHeadElement):pp(e,t)}function c9e(e,t){const n=t.tagName;n===G.BODY||n===G.HTML||n===G.BR?pp(e,t):n===G.TEMPLATE?Yu(e,t):e._err(Li.endTagWithoutMatchingOpenElement)}function pp(e,t){e._insertFakeElement(G.BODY),e.insertionMode=kl,e._processToken(t)}function tu(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function Ng(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function u9e(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function d9e(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}function f9e(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,Ut.HTML),e.insertionMode=N2)}function Yl(e,t){e.openElements.hasInButtonScope(G.P)&&e._closePElement(),e._insertElement(t,Ut.HTML)}function h9e(e,t){e.openElements.hasInButtonScope(G.P)&&e._closePElement();const n=e.openElements.currentTagName;(n===G.H1||n===G.H2||n===G.H3||n===G.H4||n===G.H5||n===G.H6)&&e.openElements.pop(),e._insertElement(t,Ut.HTML)}function aA(e,t){e.openElements.hasInButtonScope(G.P)&&e._closePElement(),e._insertElement(t,Ut.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function p9e(e,t){const n=e.openElements.tmplCount>0;(!e.formElement||n)&&(e.openElements.hasInButtonScope(G.P)&&e._closePElement(),e._insertElement(t,Ut.HTML),n||(e.formElement=e.openElements.current))}function m9e(e,t){e.framesetOk=!1;const n=t.tagName;for(let r=e.openElements.stackTop;r>=0;r--){const i=e.openElements.items[r],o=e.treeAdapter.getTagName(i);let a=null;if(n===G.LI&&o===G.LI?a=G.LI:(n===G.DD||n===G.DT)&&(o===G.DD||o===G.DT)&&(a=o),a){e.openElements.generateImpliedEndTagsWithExclusion(a),e.openElements.popUntilTagNamePopped(a);break}if(o!==G.ADDRESS&&o!==G.DIV&&o!==G.P&&e._isSpecialElement(i))break}e.openElements.hasInButtonScope(G.P)&&e._closePElement(),e._insertElement(t,Ut.HTML)}function g9e(e,t){e.openElements.hasInButtonScope(G.P)&&e._closePElement(),e._insertElement(t,Ut.HTML),e.tokenizer.state=_e.MODE.PLAINTEXT}function v9e(e,t){e.openElements.hasInScope(G.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(G.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,Ut.HTML),e.framesetOk=!1}function y9e(e,t){const n=e.activeFormattingElements.getElementEntryInScopeWithTagName(G.A);n&&(Zs(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,Ut.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function Ld(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Ut.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function b9e(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(G.NOBR)&&(Zs(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,Ut.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function lA(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Ut.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function C9e(e,t){e.treeAdapter.getDocumentMode(e.document)!==Xu.DOCUMENT_MODE.QUIRKS&&e.openElements.hasInButtonScope(G.P)&&e._closePElement(),e._insertElement(t,Ut.HTML),e.framesetOk=!1,e.insertionMode=qi}function zd(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,Ut.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function S9e(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,Ut.HTML);const n=_e.getTokenAttr(t,qH.TYPE);(!n||n.toLowerCase()!==XH)&&(e.framesetOk=!1),t.ackSelfClosing=!0}function sA(e,t){e._appendElement(t,Ut.HTML),t.ackSelfClosing=!0}function E9e(e,t){e.openElements.hasInButtonScope(G.P)&&e._closePElement(),e._appendElement(t,Ut.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function x9e(e,t){t.tagName=G.IMG,zd(e,t)}function w9e(e,t){e._insertElement(t,Ut.HTML),e.skipNextNewLine=!0,e.tokenizer.state=_e.MODE.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=Ny}function T9e(e,t){e.openElements.hasInButtonScope(G.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,_e.MODE.RAWTEXT)}function _9e(e,t){e.framesetOk=!1,e._switchToTextParsing(t,_e.MODE.RAWTEXT)}function cA(e,t){e._switchToTextParsing(t,_e.MODE.RAWTEXT)}function O9e(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Ut.HTML),e.framesetOk=!1,e.insertionMode===qi||e.insertionMode===I2||e.insertionMode===wa||e.insertionMode===ys||e.insertionMode===$2?e.insertionMode=Q3:e.insertionMode=Y3}function uA(e,t){e.openElements.currentTagName===G.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,Ut.HTML)}function dA(e,t){e.openElements.hasInScope(G.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,Ut.HTML)}function I9e(e,t){e.openElements.hasInScope(G.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(G.RTC),e._insertElement(t,Ut.HTML)}function $9e(e,t){e.openElements.hasInButtonScope(G.P)&&e._closePElement(),e._insertElement(t,Ut.HTML)}function N9e(e,t){e._reconstructActiveFormattingElements(),Ol.adjustTokenMathMLAttrs(t),Ol.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,Ut.MATHML):e._insertElement(t,Ut.MATHML),t.ackSelfClosing=!0}function A9e(e,t){e._reconstructActiveFormattingElements(),Ol.adjustTokenSVGAttrs(t),Ol.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,Ut.SVG):e._insertElement(t,Ut.SVG),t.ackSelfClosing=!0}function pa(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Ut.HTML)}function Do(e,t){const n=t.tagName;switch(n.length){case 1:n===G.I||n===G.S||n===G.B||n===G.U?Ld(e,t):n===G.P?Yl(e,t):n===G.A?y9e(e,t):pa(e,t);break;case 2:n===G.DL||n===G.OL||n===G.UL?Yl(e,t):n===G.H1||n===G.H2||n===G.H3||n===G.H4||n===G.H5||n===G.H6?h9e(e,t):n===G.LI||n===G.DD||n===G.DT?m9e(e,t):n===G.EM||n===G.TT?Ld(e,t):n===G.BR?zd(e,t):n===G.HR?E9e(e,t):n===G.RB?dA(e,t):n===G.RT||n===G.RP?I9e(e,t):n!==G.TH&&n!==G.TD&&n!==G.TR&&pa(e,t);break;case 3:n===G.DIV||n===G.DIR||n===G.NAV?Yl(e,t):n===G.PRE?aA(e,t):n===G.BIG?Ld(e,t):n===G.IMG||n===G.WBR?zd(e,t):n===G.XMP?T9e(e,t):n===G.SVG?A9e(e,t):n===G.RTC?dA(e,t):n!==G.COL&&pa(e,t);break;case 4:n===G.HTML?u9e(e,t):n===G.BASE||n===G.LINK||n===G.META?xi(e,t):n===G.BODY?d9e(e,t):n===G.MAIN||n===G.MENU?Yl(e,t):n===G.FORM?p9e(e,t):n===G.CODE||n===G.FONT?Ld(e,t):n===G.NOBR?b9e(e,t):n===G.AREA?zd(e,t):n===G.MATH?N9e(e,t):n===G.MENU?$9e(e,t):n!==G.HEAD&&pa(e,t);break;case 5:n===G.STYLE||n===G.TITLE?xi(e,t):n===G.ASIDE?Yl(e,t):n===G.SMALL?Ld(e,t):n===G.TABLE?C9e(e,t):n===G.EMBED?zd(e,t):n===G.INPUT?S9e(e,t):n===G.PARAM||n===G.TRACK?sA(e,t):n===G.IMAGE?x9e(e,t):n!==G.FRAME&&n!==G.TBODY&&n!==G.TFOOT&&n!==G.THEAD&&pa(e,t);break;case 6:n===G.SCRIPT?xi(e,t):n===G.CENTER||n===G.FIGURE||n===G.FOOTER||n===G.HEADER||n===G.HGROUP||n===G.DIALOG?Yl(e,t):n===G.BUTTON?v9e(e,t):n===G.STRIKE||n===G.STRONG?Ld(e,t):n===G.APPLET||n===G.OBJECT?lA(e,t):n===G.KEYGEN?zd(e,t):n===G.SOURCE?sA(e,t):n===G.IFRAME?_9e(e,t):n===G.SELECT?O9e(e,t):n===G.OPTION?uA(e,t):pa(e,t);break;case 7:n===G.BGSOUND?xi(e,t):n===G.DETAILS||n===G.ADDRESS||n===G.ARTICLE||n===G.SECTION||n===G.SUMMARY?Yl(e,t):n===G.LISTING?aA(e,t):n===G.MARQUEE?lA(e,t):n===G.NOEMBED?cA(e,t):n!==G.CAPTION&&pa(e,t);break;case 8:n===G.BASEFONT?xi(e,t):n===G.FRAMESET?f9e(e,t):n===G.FIELDSET?Yl(e,t):n===G.TEXTAREA?w9e(e,t):n===G.TEMPLATE?xi(e,t):n===G.NOSCRIPT?e.options.scriptingEnabled?cA(e,t):pa(e,t):n===G.OPTGROUP?uA(e,t):n!==G.COLGROUP&&pa(e,t);break;case 9:n===G.PLAINTEXT?g9e(e,t):pa(e,t);break;case 10:n===G.BLOCKQUOTE||n===G.FIGCAPTION?Yl(e,t):pa(e,t);break;default:pa(e,t)}}function k9e(e){e.openElements.hasInScope(G.BODY)&&(e.insertionMode=Z3)}function R9e(e,t){e.openElements.hasInScope(G.BODY)&&(e.insertionMode=Z3,e._processToken(t))}function Fs(e,t){const n=t.tagName;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}function M9e(e){const t=e.openElements.tmplCount>0,n=e.formElement;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(G.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(G.FORM):e.openElements.remove(n))}function P9e(e){e.openElements.hasInButtonScope(G.P)||e._insertFakeElement(G.P),e._closePElement()}function L9e(e){e.openElements.hasInListItemScope(G.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(G.LI),e.openElements.popUntilTagNamePopped(G.LI))}function D9e(e,t){const n=t.tagName;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}function F9e(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function fA(e,t){const n=t.tagName;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}function B9e(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(G.BR),e.openElements.pop(),e.framesetOk=!1}function Ka(e,t){const n=t.tagName;for(let r=e.openElements.stackTop;r>0;r--){const i=e.openElements.items[r];if(e.treeAdapter.getTagName(i)===n){e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilElementPopped(i);break}if(e._isSpecialElement(i))break}}function J3(e,t){const n=t.tagName;switch(n.length){case 1:n===G.A||n===G.B||n===G.I||n===G.S||n===G.U?Zs(e,t):n===G.P?P9e(e):Ka(e,t);break;case 2:n===G.DL||n===G.UL||n===G.OL?Fs(e,t):n===G.LI?L9e(e):n===G.DD||n===G.DT?D9e(e,t):n===G.H1||n===G.H2||n===G.H3||n===G.H4||n===G.H5||n===G.H6?F9e(e):n===G.BR?B9e(e):n===G.EM||n===G.TT?Zs(e,t):Ka(e,t);break;case 3:n===G.BIG?Zs(e,t):n===G.DIR||n===G.DIV||n===G.NAV||n===G.PRE?Fs(e,t):Ka(e,t);break;case 4:n===G.BODY?k9e(e):n===G.HTML?R9e(e,t):n===G.FORM?M9e(e):n===G.CODE||n===G.FONT||n===G.NOBR?Zs(e,t):n===G.MAIN||n===G.MENU?Fs(e,t):Ka(e,t);break;case 5:n===G.ASIDE?Fs(e,t):n===G.SMALL?Zs(e,t):Ka(e,t);break;case 6:n===G.CENTER||n===G.FIGURE||n===G.FOOTER||n===G.HEADER||n===G.HGROUP||n===G.DIALOG?Fs(e,t):n===G.APPLET||n===G.OBJECT?fA(e,t):n===G.STRIKE||n===G.STRONG?Zs(e,t):Ka(e,t);break;case 7:n===G.ADDRESS||n===G.ARTICLE||n===G.DETAILS||n===G.SECTION||n===G.SUMMARY||n===G.LISTING?Fs(e,t):n===G.MARQUEE?fA(e,t):Ka(e,t);break;case 8:n===G.FIELDSET?Fs(e,t):n===G.TEMPLATE?Yu(e,t):Ka(e,t);break;case 10:n===G.BLOCKQUOTE||n===G.FIGCAPTION?Fs(e,t):Ka(e,t);break;default:Ka(e,t)}}function Ql(e,t){e.tmplInsertionModeStackTop>-1?iz(e,t):e.stopped=!0}function j9e(e,t){t.tagName===G.SCRIPT&&(e.pendingScript=e.openElements.current),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function H9e(e,t){e._err(Li.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e._processToken(t)}function Zl(e,t){const n=e.openElements.currentTagName;n===G.TABLE||n===G.TBODY||n===G.TFOOT||n===G.THEAD||n===G.TR?(e.pendingCharacterTokens=[],e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=ZH,e._processToken(t)):ga(e,t)}function z9e(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,Ut.HTML),e.insertionMode=I2}function W9e(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,Ut.HTML),e.insertionMode=Gm}function U9e(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(G.COLGROUP),e.insertionMode=Gm,e._processToken(t)}function K9e(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,Ut.HTML),e.insertionMode=wa}function V9e(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(G.TBODY),e.insertionMode=wa,e._processToken(t)}function G9e(e,t){e.openElements.hasInTableScope(G.TABLE)&&(e.openElements.popUntilTagNamePopped(G.TABLE),e._resetInsertionMode(),e._processToken(t))}function q9e(e,t){const n=_e.getTokenAttr(t,qH.TYPE);n&&n.toLowerCase()===XH?e._appendElement(t,Ut.HTML):ga(e,t),t.ackSelfClosing=!0}function X9e(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,Ut.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function e6(e,t){const n=t.tagName;switch(n.length){case 2:n===G.TD||n===G.TH||n===G.TR?V9e(e,t):ga(e,t);break;case 3:n===G.COL?U9e(e,t):ga(e,t);break;case 4:n===G.FORM?X9e(e,t):ga(e,t);break;case 5:n===G.TABLE?G9e(e,t):n===G.STYLE?xi(e,t):n===G.TBODY||n===G.TFOOT||n===G.THEAD?K9e(e,t):n===G.INPUT?q9e(e,t):ga(e,t);break;case 6:n===G.SCRIPT?xi(e,t):ga(e,t);break;case 7:n===G.CAPTION?z9e(e,t):ga(e,t);break;case 8:n===G.COLGROUP?W9e(e,t):n===G.TEMPLATE?xi(e,t):ga(e,t);break;default:ga(e,t)}}function t6(e,t){const n=t.tagName;n===G.TABLE?e.openElements.hasInTableScope(G.TABLE)&&(e.openElements.popUntilTagNamePopped(G.TABLE),e._resetInsertionMode()):n===G.TEMPLATE?Yu(e,t):n!==G.BODY&&n!==G.CAPTION&&n!==G.COL&&n!==G.COLGROUP&&n!==G.HTML&&n!==G.TBODY&&n!==G.TD&&n!==G.TFOOT&&n!==G.TH&&n!==G.THEAD&&n!==G.TR&&ga(e,t)}function ga(e,t){const n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,e._processTokenInBodyMode(t),e.fosterParentingEnabled=n}function Y9e(e,t){e.pendingCharacterTokens.push(t)}function Q9e(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function _h(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n<e.pendingCharacterTokens.length;n++)ga(e,e.pendingCharacterTokens[n]);else for(;n<e.pendingCharacterTokens.length;n++)e._insertCharacters(e.pendingCharacterTokens[n]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}function Z9e(e,t){const n=t.tagName;n===G.CAPTION||n===G.COL||n===G.COLGROUP||n===G.TBODY||n===G.TD||n===G.TFOOT||n===G.TH||n===G.THEAD||n===G.TR?e.openElements.hasInTableScope(G.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(G.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=qi,e._processToken(t)):Do(e,t)}function J9e(e,t){const n=t.tagName;n===G.CAPTION||n===G.TABLE?e.openElements.hasInTableScope(G.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(G.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=qi,n===G.TABLE&&e._processToken(t)):n!==G.BODY&&n!==G.COL&&n!==G.COLGROUP&&n!==G.HTML&&n!==G.TBODY&&n!==G.TD&&n!==G.TFOOT&&n!==G.TH&&n!==G.THEAD&&n!==G.TR&&J3(e,t)}function eCe(e,t){const n=t.tagName;n===G.HTML?Do(e,t):n===G.COL?(e._appendElement(t,Ut.HTML),t.ackSelfClosing=!0):n===G.TEMPLATE?xi(e,t):ky(e,t)}function tCe(e,t){const n=t.tagName;n===G.COLGROUP?e.openElements.currentTagName===G.COLGROUP&&(e.openElements.pop(),e.insertionMode=qi):n===G.TEMPLATE?Yu(e,t):n!==G.COL&&ky(e,t)}function ky(e,t){e.openElements.currentTagName===G.COLGROUP&&(e.openElements.pop(),e.insertionMode=qi,e._processToken(t))}function nCe(e,t){const n=t.tagName;n===G.TR?(e.openElements.clearBackToTableBodyContext(),e._insertElement(t,Ut.HTML),e.insertionMode=ys):n===G.TH||n===G.TD?(e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(G.TR),e.insertionMode=ys,e._processToken(t)):n===G.CAPTION||n===G.COL||n===G.COLGROUP||n===G.TBODY||n===G.TFOOT||n===G.THEAD?e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=qi,e._processToken(t)):e6(e,t)}function rCe(e,t){const n=t.tagName;n===G.TBODY||n===G.TFOOT||n===G.THEAD?e.openElements.hasInTableScope(n)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=qi):n===G.TABLE?e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=qi,e._processToken(t)):(n!==G.BODY&&n!==G.CAPTION&&n!==G.COL&&n!==G.COLGROUP||n!==G.HTML&&n!==G.TD&&n!==G.TH&&n!==G.TR)&&t6(e,t)}function iCe(e,t){const n=t.tagName;n===G.TH||n===G.TD?(e.openElements.clearBackToTableRowContext(),e._insertElement(t,Ut.HTML),e.insertionMode=$2,e.activeFormattingElements.insertMarker()):n===G.CAPTION||n===G.COL||n===G.COLGROUP||n===G.TBODY||n===G.TFOOT||n===G.THEAD||n===G.TR?e.openElements.hasInTableScope(G.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=wa,e._processToken(t)):e6(e,t)}function oCe(e,t){const n=t.tagName;n===G.TR?e.openElements.hasInTableScope(G.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=wa):n===G.TABLE?e.openElements.hasInTableScope(G.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=wa,e._processToken(t)):n===G.TBODY||n===G.TFOOT||n===G.THEAD?(e.openElements.hasInTableScope(n)||e.openElements.hasInTableScope(G.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=wa,e._processToken(t)):(n!==G.BODY&&n!==G.CAPTION&&n!==G.COL&&n!==G.COLGROUP||n!==G.HTML&&n!==G.TD&&n!==G.TH)&&t6(e,t)}function aCe(e,t){const n=t.tagName;n===G.CAPTION||n===G.COL||n===G.COLGROUP||n===G.TBODY||n===G.TD||n===G.TFOOT||n===G.TH||n===G.THEAD||n===G.TR?(e.openElements.hasInTableScope(G.TD)||e.openElements.hasInTableScope(G.TH))&&(e._closeTableCell(),e._processToken(t)):Do(e,t)}function lCe(e,t){const n=t.tagName;n===G.TD||n===G.TH?e.openElements.hasInTableScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=ys):n===G.TABLE||n===G.TBODY||n===G.TFOOT||n===G.THEAD||n===G.TR?e.openElements.hasInTableScope(n)&&(e._closeTableCell(),e._processToken(t)):n!==G.BODY&&n!==G.CAPTION&&n!==G.COL&&n!==G.COLGROUP&&n!==G.HTML&&J3(e,t)}function nz(e,t){const n=t.tagName;n===G.HTML?Do(e,t):n===G.OPTION?(e.openElements.currentTagName===G.OPTION&&e.openElements.pop(),e._insertElement(t,Ut.HTML)):n===G.OPTGROUP?(e.openElements.currentTagName===G.OPTION&&e.openElements.pop(),e.openElements.currentTagName===G.OPTGROUP&&e.openElements.pop(),e._insertElement(t,Ut.HTML)):n===G.INPUT||n===G.KEYGEN||n===G.TEXTAREA||n===G.SELECT?e.openElements.hasInSelectScope(G.SELECT)&&(e.openElements.popUntilTagNamePopped(G.SELECT),e._resetInsertionMode(),n!==G.SELECT&&e._processToken(t)):(n===G.SCRIPT||n===G.TEMPLATE)&&xi(e,t)}function rz(e,t){const n=t.tagName;if(n===G.OPTGROUP){const r=e.openElements.items[e.openElements.stackTop-1],i=r&&e.treeAdapter.getTagName(r);e.openElements.currentTagName===G.OPTION&&i===G.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagName===G.OPTGROUP&&e.openElements.pop()}else n===G.OPTION?e.openElements.currentTagName===G.OPTION&&e.openElements.pop():n===G.SELECT&&e.openElements.hasInSelectScope(G.SELECT)?(e.openElements.popUntilTagNamePopped(G.SELECT),e._resetInsertionMode()):n===G.TEMPLATE&&Yu(e,t)}function sCe(e,t){const n=t.tagName;n===G.CAPTION||n===G.TABLE||n===G.TBODY||n===G.TFOOT||n===G.THEAD||n===G.TR||n===G.TD||n===G.TH?(e.openElements.popUntilTagNamePopped(G.SELECT),e._resetInsertionMode(),e._processToken(t)):nz(e,t)}function cCe(e,t){const n=t.tagName;n===G.CAPTION||n===G.TABLE||n===G.TBODY||n===G.TFOOT||n===G.THEAD||n===G.TR||n===G.TD||n===G.TH?e.openElements.hasInTableScope(n)&&(e.openElements.popUntilTagNamePopped(G.SELECT),e._resetInsertionMode(),e._processToken(t)):rz(e,t)}function uCe(e,t){const n=t.tagName;if(n===G.BASE||n===G.BASEFONT||n===G.BGSOUND||n===G.LINK||n===G.META||n===G.NOFRAMES||n===G.SCRIPT||n===G.STYLE||n===G.TEMPLATE||n===G.TITLE)xi(e,t);else{const r=K4e[n]||kl;e._popTmplInsertionMode(),e._pushTmplInsertionMode(r),e.insertionMode=r,e._processToken(t)}}function dCe(e,t){t.tagName===G.TEMPLATE&&Yu(e,t)}function iz(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(G.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e._popTmplInsertionMode(),e._resetInsertionMode(),e._processToken(t)):e.stopped=!0}function fCe(e,t){t.tagName===G.HTML?Do(e,t):Ry(e,t)}function hCe(e,t){t.tagName===G.HTML?e.fragmentContext||(e.insertionMode=ez):Ry(e,t)}function Ry(e,t){e.insertionMode=kl,e._processToken(t)}function pCe(e,t){const n=t.tagName;n===G.HTML?Do(e,t):n===G.FRAMESET?e._insertElement(t,Ut.HTML):n===G.FRAME?(e._appendElement(t,Ut.HTML),t.ackSelfClosing=!0):n===G.NOFRAMES&&xi(e,t)}function mCe(e,t){t.tagName===G.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagName!==G.FRAMESET&&(e.insertionMode=JH))}function gCe(e,t){const n=t.tagName;n===G.HTML?Do(e,t):n===G.NOFRAMES&&xi(e,t)}function vCe(e,t){t.tagName===G.HTML&&(e.insertionMode=tz)}function yCe(e,t){t.tagName===G.HTML?Do(e,t):bv(e,t)}function bv(e,t){e.insertionMode=kl,e._processToken(t)}function bCe(e,t){const n=t.tagName;n===G.HTML?Do(e,t):n===G.NOFRAMES&&xi(e,t)}function CCe(e,t){t.chars=j4e.REPLACEMENT_CHARACTER,e._insertCharacters(t)}function SCe(e,t){e._insertCharacters(t),e.framesetOk=!1}function ECe(e,t){if(Ol.causesExit(t)&&!e.fragmentContext){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==Ut.HTML&&!e._isIntegrationPoint(e.openElements.current);)e.openElements.pop();e._processToken(t)}else{const n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);r===Ut.MATHML?Ol.adjustTokenMathMLAttrs(t):r===Ut.SVG&&(Ol.adjustTokenSVGTagName(t),Ol.adjustTokenSVGAttrs(t)),Ol.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}function xCe(e,t){for(let n=e.openElements.stackTop;n>0;n--){const r=e.openElements.items[n];if(e.treeAdapter.getNamespaceURI(r)===Ut.HTML){e._processToken(t);break}if(e.treeAdapter.getTagName(r).toLowerCase()===t.tagName){e.openElements.popUntilElementPopped(r);break}}}const wCe=ul(G4e),qm=oz("start"),A2=oz("end");function TCe(e){return{start:qm(e),end:A2(e)}}function oz(e){return t;function t(n){const r=n&&n.position&&n.position[e]||{};return{line:r.line||null,column:r.column||null,offset:r.offset>-1?r.offset:null}}}class Xm{constructor(t,n,r){this.property=t,this.normal=n,r&&(this.space=r)}}Xm.prototype.property={};Xm.prototype.normal={};Xm.prototype.space=null;function az(e,t){const n={},r={};let i=-1;for(;++i<e.length;)Object.assign(n,e[i].property),Object.assign(r,e[i].normal);return new Xm(n,r,t)}function cm(e){return e.toLowerCase()}class Pa{constructor(t,n){this.property=t,this.attribute=n}}Pa.prototype.space=null;Pa.prototype.boolean=!1;Pa.prototype.booleanish=!1;Pa.prototype.overloadedBoolean=!1;Pa.prototype.number=!1;Pa.prototype.commaSeparated=!1;Pa.prototype.spaceSeparated=!1;Pa.prototype.commaOrSpaceSeparated=!1;Pa.prototype.mustUseProperty=!1;Pa.prototype.defined=!1;let _Ce=0;const gn=Qu(),qr=Qu(),lz=Qu(),xt=Qu(),lr=Qu(),Tf=Qu(),Ko=Qu();function Qu(){return 2**++_Ce}const ME=Object.freeze(Object.defineProperty({__proto__:null,boolean:gn,booleanish:qr,commaOrSpaceSeparated:Ko,commaSeparated:Tf,number:xt,overloadedBoolean:lz,spaceSeparated:lr},Symbol.toStringTag,{value:"Module"})),M9=Object.keys(ME);class n6 extends Pa{constructor(t,n,r,i){let o=-1;if(super(t,n),hA(this,"space",i),typeof r=="number")for(;++o<M9.length;){const a=M9[o];hA(this,M9[o],(r&ME[a])===ME[a])}}}n6.prototype.defined=!0;function hA(e,t,n){n&&(e[t]=n)}const OCe={}.hasOwnProperty;function S1(e){const t={},n={};let r;for(r in e.properties)if(OCe.call(e.properties,r)){const i=e.properties[r],o=new n6(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),t[r]=o,n[cm(r)]=r,n[cm(o.attribute)]=r}return new Xm(t,n,e.space)}const sz=S1({space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),cz=S1({space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function uz(e,t){return t in e?e[t]:t}function dz(e,t){return uz(e,t.toLowerCase())}const fz=S1({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:dz,properties:{xmlns:null,xmlnsXLink:null}}),hz=S1({transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:qr,ariaAutoComplete:null,ariaBusy:qr,ariaChecked:qr,ariaColCount:xt,ariaColIndex:xt,ariaColSpan:xt,ariaControls:lr,ariaCurrent:null,ariaDescribedBy:lr,ariaDetails:null,ariaDisabled:qr,ariaDropEffect:lr,ariaErrorMessage:null,ariaExpanded:qr,ariaFlowTo:lr,ariaGrabbed:qr,ariaHasPopup:null,ariaHidden:qr,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:lr,ariaLevel:xt,ariaLive:null,ariaModal:qr,ariaMultiLine:qr,ariaMultiSelectable:qr,ariaOrientation:null,ariaOwns:lr,ariaPlaceholder:null,ariaPosInSet:xt,ariaPressed:qr,ariaReadOnly:qr,ariaRelevant:null,ariaRequired:qr,ariaRoleDescription:lr,ariaRowCount:xt,ariaRowIndex:xt,ariaRowSpan:xt,ariaSelected:qr,ariaSetSize:xt,ariaSort:null,ariaValueMax:xt,ariaValueMin:xt,ariaValueNow:xt,ariaValueText:null,role:null}}),ICe=S1({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:dz,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Tf,acceptCharset:lr,accessKey:lr,action:null,allow:null,allowFullScreen:gn,allowPaymentRequest:gn,allowUserMedia:gn,alt:null,as:null,async:gn,autoCapitalize:null,autoComplete:lr,autoFocus:gn,autoPlay:gn,blocking:lr,capture:null,charSet:null,checked:gn,cite:null,className:lr,cols:xt,colSpan:null,content:null,contentEditable:qr,controls:gn,controlsList:lr,coords:xt|Tf,crossOrigin:null,data:null,dateTime:null,decoding:null,default:gn,defer:gn,dir:null,dirName:null,disabled:gn,download:lz,draggable:qr,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:gn,formTarget:null,headers:lr,height:xt,hidden:gn,high:xt,href:null,hrefLang:null,htmlFor:lr,httpEquiv:lr,id:null,imageSizes:null,imageSrcSet:null,inert:gn,inputMode:null,integrity:null,is:null,isMap:gn,itemId:null,itemProp:lr,itemRef:lr,itemScope:gn,itemType:lr,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:gn,low:xt,manifest:null,max:null,maxLength:xt,media:null,method:null,min:null,minLength:xt,multiple:gn,muted:gn,name:null,nonce:null,noModule:gn,noValidate:gn,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:gn,optimum:xt,pattern:null,ping:lr,placeholder:null,playsInline:gn,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:gn,referrerPolicy:null,rel:lr,required:gn,reversed:gn,rows:xt,rowSpan:xt,sandbox:lr,scope:null,scoped:gn,seamless:gn,selected:gn,shadowRootClonable:gn,shadowRootDelegatesFocus:gn,shadowRootMode:null,shape:null,size:xt,sizes:null,slot:null,span:xt,spellCheck:qr,src:null,srcDoc:null,srcLang:null,srcSet:null,start:xt,step:null,style:null,tabIndex:xt,target:null,title:null,translate:null,type:null,typeMustMatch:gn,useMap:null,value:qr,width:xt,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:lr,axis:null,background:null,bgColor:null,border:xt,borderColor:null,bottomMargin:xt,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:gn,declare:gn,event:null,face:null,frame:null,frameBorder:null,hSpace:xt,leftMargin:xt,link:null,longDesc:null,lowSrc:null,marginHeight:xt,marginWidth:xt,noResize:gn,noHref:gn,noShade:gn,noWrap:gn,object:null,profile:null,prompt:null,rev:null,rightMargin:xt,rules:null,scheme:null,scrolling:qr,standby:null,summary:null,text:null,topMargin:xt,valueType:null,version:null,vAlign:null,vLink:null,vSpace:xt,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:gn,disableRemotePlayback:gn,prefix:null,property:null,results:xt,security:null,unselectable:null}}),$Ce=S1({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:uz,properties:{about:Ko,accentHeight:xt,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:xt,amplitude:xt,arabicForm:null,ascent:xt,attributeName:null,attributeType:null,azimuth:xt,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:xt,by:null,calcMode:null,capHeight:xt,className:lr,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:xt,diffuseConstant:xt,direction:null,display:null,dur:null,divisor:xt,dominantBaseline:null,download:gn,dx:null,dy:null,edgeMode:null,editable:null,elevation:xt,enableBackground:null,end:null,event:null,exponent:xt,externalResourcesRequired:null,fill:null,fillOpacity:xt,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Tf,g2:Tf,glyphName:Tf,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:xt,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:xt,horizOriginX:xt,horizOriginY:xt,id:null,ideographic:xt,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:xt,k:xt,k1:xt,k2:xt,k3:xt,k4:xt,kernelMatrix:Ko,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:xt,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:xt,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:xt,overlineThickness:xt,paintOrder:null,panose1:null,path:null,pathLength:xt,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:lr,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:xt,pointsAtY:xt,pointsAtZ:xt,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Ko,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Ko,rev:Ko,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Ko,requiredFeatures:Ko,requiredFonts:Ko,requiredFormats:Ko,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:xt,specularExponent:xt,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:xt,strikethroughThickness:xt,string:null,stroke:null,strokeDashArray:Ko,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:xt,strokeOpacity:xt,strokeWidth:null,style:null,surfaceScale:xt,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Ko,tabIndex:xt,tableValues:null,target:null,targetX:xt,targetY:xt,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Ko,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:xt,underlineThickness:xt,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:xt,values:null,vAlphabetic:xt,vMathematical:xt,vectorEffect:null,vHanging:xt,vIdeographic:xt,version:null,vertAdvY:xt,vertOriginX:xt,vertOriginY:xt,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:xt,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),NCe=/^data[-\w.:]+$/i,pA=/-[a-z]/g,ACe=/[A-Z]/g;function k2(e,t){const n=cm(t);let r=t,i=Pa;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&NCe.test(t)){if(t.charAt(4)==="-"){const o=t.slice(5).replace(pA,RCe);r="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=t.slice(4);if(!pA.test(o)){let a=o.replace(ACe,kCe);a.charAt(0)!=="-"&&(a="-"+a),t="data"+a}}i=n6}return new i(r,t)}function kCe(e){return"-"+e.toLowerCase()}function RCe(e){return e.charAt(1).toUpperCase()}const Ym=az([cz,sz,fz,hz,ICe],"html"),E1=az([cz,sz,fz,hz,$Ce],"svg"),mA=/[#.]/g;function MCe(e,t){const n=e||"",r={};let i=0,o,a;for(;i<n.length;){mA.lastIndex=i;const l=mA.exec(n),c=n.slice(i,l?l.index:n.length);c&&(o?o==="#"?r.id=c:Array.isArray(r.className)?r.className.push(c):r.className=[c]:a=c,i+=c.length),l&&(o=l[0],i++)}return{type:"element",tagName:a||t||"div",properties:r,children:[]}}function gA(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function pz(e){return e.join(" ").trim()}function vA(e){const t=[],n=String(e||"");let r=n.indexOf(","),i=0,o=!1;for(;!o;){r===-1&&(r=n.length,o=!0);const a=n.slice(i,r).trim();(a||!o)&&t.push(a),i=r+1,r=n.indexOf(",",i)}return t}function mz(e,t){const n=t||{};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const PCe=new Set(["menu","submit","reset","button"]),PE={}.hasOwnProperty;function gz(e,t,n){const r=n&&BCe(n);return function(o,a,...l){let c=-1,u;if(o==null)u={type:"root",children:[]},l.unshift(a);else if(u=MCe(o,t),u.tagName=u.tagName.toLowerCase(),r&&PE.call(r,u.tagName)&&(u.tagName=r[u.tagName]),LCe(a,u.tagName)){let f;for(f in a)PE.call(a,f)&&DCe(e,u.properties,f,a[f])}else l.unshift(a);for(;++c<l.length;)LE(u.children,l[c]);return u.type==="element"&&u.tagName==="template"&&(u.content={type:"root",children:u.children},u.children=[]),u}}function LCe(e,t){return e==null||typeof e!="object"||Array.isArray(e)?!1:t==="input"||!e.type||typeof e.type!="string"?!0:"children"in e&&Array.isArray(e.children)?!1:t==="button"?PCe.has(e.type.toLowerCase()):!("value"in e)}function DCe(e,t,n,r){const i=k2(e,n);let o=-1,a;if(r!=null){if(typeof r=="number"){if(Number.isNaN(r))return;a=r}else typeof r=="boolean"?a=r:typeof r=="string"?i.spaceSeparated?a=gA(r):i.commaSeparated?a=vA(r):i.commaOrSpaceSeparated?a=gA(vA(r).join(" ")):a=yA(i,i.property,r):Array.isArray(r)?a=r.concat():a=i.property==="style"?FCe(r):String(r);if(Array.isArray(a)){const l=[];for(;++o<a.length;)l[o]=yA(i,i.property,a[o]);a=l}i.property==="className"&&Array.isArray(t.className)&&(a=t.className.concat(a)),t[i.property]=a}}function LE(e,t){let n=-1;if(t!=null)if(typeof t=="string"||typeof t=="number")e.push({type:"text",value:String(t)});else if(Array.isArray(t))for(;++n<t.length;)LE(e,t[n]);else if(typeof t=="object"&&"type"in t)t.type==="root"?LE(e,t.children):e.push(t);else throw new Error("Expected node, nodes, or string, got `"+t+"`")}function yA(e,t,n){if(typeof n=="string"){if(e.number&&n&&!Number.isNaN(Number(n)))return Number(n);if((e.boolean||e.overloadedBoolean)&&(n===""||cm(n)===cm(t)))return!0}return n}function FCe(e){const t=[];let n;for(n in e)PE.call(e,n)&&t.push([n,e[n]].join(": "));return t.join("; ")}function BCe(e){const t={};let n=-1;for(;++n<e.length;)t[e[n].toLowerCase()]=e[n];return t}const jCe=gz(Ym,"div"),HCe=["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"],zCe=gz(E1,"g",HCe);function WCe(e){const t=String(e),n=[],r=/\r?\n|\r/g;for(;r.test(t);)n.push(r.lastIndex);return n.push(t.length+1),{toPoint:i,toOffset:o};function i(a){let l=-1;if(typeof a=="number"&&a>-1&&a<n[n.length-1]){for(;++l<n.length;)if(n[l]>a)return{line:l+1,column:a-(l>0?n[l-1]:0)+1,offset:a}}return{line:void 0,column:void 0,offset:void 0}}function o(a){const l=a&&a.line,c=a&&a.column;if(typeof l=="number"&&typeof c=="number"&&!Number.isNaN(l)&&!Number.isNaN(c)&&l-1 in n){const u=(n[l-2]||0)+c-1||0;if(u>-1&&u<n[n.length-1])return u}return-1}}const um={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},vz={}.hasOwnProperty,UCe=Object.prototype;function KCe(e,t){const n=t||{};let r,i;return qCe(n)?(i=n,r={}):(i=n.file||void 0,r=n),r6({schema:r.space==="svg"?E1:Ym,file:i,verbose:r.verbose,location:!1},e)}function r6(e,t){let n;switch(t.nodeName){case"#comment":{const r=t;return n={type:"comment",value:r.data},Cv(e,r,n),n}case"#document":case"#document-fragment":{const r=t,i="mode"in r?r.mode==="quirks"||r.mode==="limited-quirks":!1;if(n={type:"root",children:yz(e,t.childNodes),data:{quirksMode:i}},e.file&&e.location){const o=String(e.file),a=WCe(o),l=a.toPoint(0),c=a.toPoint(o.length);n.position={start:l,end:c}}return n}case"#documentType":{const r=t;return n={type:"doctype"},Cv(e,r,n),n}case"#text":{const r=t;return n={type:"text",value:r.value},Cv(e,r,n),n}default:return n=VCe(e,t),n}}function yz(e,t){let n=-1;const r=[];for(;++n<t.length;)r[n]=r6(e,t[n]);return r}function VCe(e,t){const n=e.schema;e.schema=t.namespaceURI===um.svg?E1:Ym;let r=-1;const i={};for(;++r<t.attrs.length;){const l=t.attrs[r],c=(l.prefix?l.prefix+":":"")+l.name;vz.call(UCe,c)||(i[c]=l.value)}const a=(e.schema.space==="svg"?zCe:jCe)(t.tagName,i,yz(e,t.childNodes));if(Cv(e,t,a),a.tagName==="template"){const l=t,c=l.sourceCodeLocation,u=c&&c.startTag&&sf(c.startTag),f=c&&c.endTag&&sf(c.endTag),p=r6(e,l.content);u&&f&&e.file&&(p.position={start:u.end,end:f.start}),a.content=p}return e.schema=n,a}function Cv(e,t,n){if("sourceCodeLocation"in t&&t.sourceCodeLocation&&e.file){const r=GCe(e,n,t.sourceCodeLocation);r&&(e.location=!0,n.position=r)}}function GCe(e,t,n){const r=sf(n);if(t.type==="element"){const i=t.children[t.children.length-1];if(r&&!n.endTag&&i&&i.position&&i.position.end&&(r.end=Object.assign({},i.position.end)),e.verbose){const o={};let a;if(n.attrs)for(a in n.attrs)vz.call(n.attrs,a)&&(o[k2(e.schema,a).property]=sf(n.attrs[a]));t.data={position:{opening:sf(n.startTag),closing:n.endTag?sf(n.endTag):null,properties:o}}}}return r}function sf(e){const t=bA({line:e.startLine,column:e.startCol,offset:e.startOffset}),n=bA({line:e.endLine,column:e.endCol,offset:e.endOffset});return t||n?{start:t,end:n}:void 0}function bA(e){return e.line&&e.column?e:void 0}function qCe(e){return"messages"in e}const CA={}.hasOwnProperty;function i6(e,t){const n=t||{};function r(i,...o){let a=r.invalid;const l=r.handlers;if(i&&CA.call(i,e)){const c=String(i[e]);a=CA.call(l,c)?l[c]:r.unknown}if(a)return a.call(this,i,...o)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}const XCe={}.hasOwnProperty,bz=i6("type",{handlers:{root:QCe,element:nSe,text:eSe,comment:tSe,doctype:JCe}});function YCe(e,t){return bz(e,Ym)}function QCe(e,t){const n={nodeName:"#document",mode:(e.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return n.childNodes=o6(e.children,n,t),x1(e,n),n}function ZCe(e,t){const n={nodeName:"#document-fragment",childNodes:[]};return n.childNodes=o6(e.children,n,t),x1(e,n),n}function JCe(e){const t={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:void 0};return x1(e,t),t}function eSe(e){const t={nodeName:"#text",value:e.value,parentNode:void 0};return x1(e,t),t}function tSe(e){const t={nodeName:"#comment",data:e.value,parentNode:void 0};return x1(e,t),t}function nSe(e,t){const n=t;let r=n;e.type==="element"&&e.tagName.toLowerCase()==="svg"&&n.space==="html"&&(r=E1);const i=[];let o;if(e.properties){for(o in e.properties)if(o!=="children"&&XCe.call(e.properties,o)){const l=rSe(r,o,e.properties[o]);l&&i.push(l)}}const a={nodeName:e.tagName,tagName:e.tagName,attrs:i,namespaceURI:um[r.space],childNodes:[],parentNode:void 0};return a.childNodes=o6(e.children,a,r),x1(e,a),e.tagName==="template"&&e.content&&(a.content=ZCe(e.content,r)),a}function rSe(e,t,n){const r=k2(e,t);if(n==null||n===!1||typeof n=="number"&&Number.isNaN(n)||!n&&r.boolean)return;Array.isArray(n)&&(n=r.commaSeparated?mz(n):pz(n));const i={name:r.attribute,value:n===!0?"":String(n)};if(r.space&&r.space!=="html"&&r.space!=="svg"){const o=i.name.indexOf(":");o<0?i.prefix="":(i.name=i.name.slice(o+1),i.prefix=r.attribute.slice(0,o)),i.namespace=um[r.space]}return i}function o6(e,t,n){let r=-1;const i=[];if(e)for(;++r<e.length;){const o=bz(e[r],n);o.parentNode=t,i.push(o)}return i}function x1(e,t){const n=e.position;n&&n.start&&n.end&&(t.sourceCodeLocation={startLine:n.start.line,startCol:n.start.column,startOffset:n.start.offset,endLine:n.end.line,endCol:n.end.column,endOffset:n.end.offset})}const Cz=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","isindex","keygen","link","menuitem","meta","nextid","param","source","track","wbr"],iSe="IN_TEMPLATE_MODE",oSe="DATA_STATE",aSe="CHARACTER_TOKEN",lSe="START_TAG_TOKEN",sSe="END_TAG_TOKEN",cSe="COMMENT_TOKEN",uSe="DOCTYPE_TOKEN",dSe={sourceCodeLocationInfo:!0,scriptingEnabled:!1},Sz=function(e,t,n){let r=-1;const i=new wCe(dSe),o=i6("type",{handlers:{root:E,element:x,text:C,comment:T,doctype:S,raw:O},unknown:mSe});let a,l,c,u,f;if(vSe(t)&&(n=t,t=void 0),n&&n.passThrough)for(;++r<n.passThrough.length;)o.handlers[n.passThrough[r]]=I;const p=KCe(gSe(e)?g():m(),t);if(a&&Um(p,"comment",($,k,R)=>{const M=$;if(M.value.stitch&&R!==null&&k!==null)return R.children[k]=M.value.stitch,k}),e.type!=="root"&&p.type==="root"&&p.children.length===1)return p.children[0];return p;function m(){const $={nodeName:"template",tagName:"template",attrs:[],namespaceURI:um.html,childNodes:[]},k={nodeName:"documentmock",tagName:"documentmock",attrs:[],namespaceURI:um.html,childNodes:[]},R={nodeName:"#document-fragment",childNodes:[]};if(i._bootstrap(k,$),i._pushTmplInsertionMode(iSe),i._initTokenizerForFragmentParsing(),i._insertFakeRootElement(),i._resetInsertionMode(),i._findFormInFragmentContext(),l=i.tokenizer,!l)throw new Error("Expected `tokenizer`");return c=l.preprocessor,f=l.__mixins[0],u=f.posTracker,o(e),_(),i._adoptNodes(k.childNodes[0],R),R}function g(){const $=i.treeAdapter.createDocument();if(i._bootstrap($,void 0),l=i.tokenizer,!l)throw new Error("Expected `tokenizer`");return c=l.preprocessor,f=l.__mixins[0],u=f.posTracker,o(e),_(),$}function b($){let k=-1;if($)for(;++k<$.length;)o($[k])}function E($){b($.children)}function x($){_(),i._processInputToken(fSe($)),b($.children),Cz.includes($.tagName)||(_(),i._processInputToken(pSe($)))}function C($){_(),i._processInputToken({type:aSe,chars:$.value,location:cf($)})}function S($){_(),i._processInputToken({type:uSe,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:cf($)})}function T($){_(),i._processInputToken({type:cSe,data:$.value,location:cf($)})}function O($){const k=qm($),R=k.line||1,M=k.column||1,H=k.offset||0;if(!c)throw new Error("Expected `preprocessor`");if(!l)throw new Error("Expected `tokenizer`");if(!u)throw new Error("Expected `posTracker`");if(!f)throw new Error("Expected `locationTracker`");c.html=void 0,c.pos=-1,c.lastGapPos=-1,c.lastCharPos=-1,c.gapStack=[],c.skipNextNewLine=!1,c.lastChunkWritten=!1,c.endOfChunkHit=!1,u.isEol=!1,u.lineStartPos=-M+1,u.droppedBufferSize=H,u.offset=0,u.col=1,u.line=R,f.currentAttrLocation=void 0,f.ctLoc=cf($),l.write($.value),i._runParsingLoop(null),(l.state==="NAMED_CHARACTER_REFERENCE_STATE"||l.state==="NUMERIC_CHARACTER_REFERENCE_END_STATE")&&(c.lastChunkWritten=!0,l[l.state](l._consume()))}function I($){a=!0;let k;"children"in $?k={...$,children:Sz({type:"root",children:$.children},t,n).children}:k={...$},T({type:"comment",value:{stitch:k}})}function _(){if(!l)throw new Error("Expected `tokenizer`");if(!u)throw new Error("Expected `posTracker`");const $=l.currentCharacterToken;$&&($.location.endLine=u.line,$.location.endCol=u.col+1,$.location.endOffset=u.offset+1,i._processInputToken($)),l.tokenQueue=[],l.state=oSe,l.returnState="",l.charRefCode=-1,l.tempBuff=[],l.lastStartTagName="",l.consumedAfterSnapshot=-1,l.active=!1,l.currentCharacterToken=void 0,l.currentToken=void 0,l.currentAttr=void 0}};function fSe(e){const t=Object.assign(cf(e));return t.startTag=Object.assign({},t),{type:lSe,tagName:e.tagName,selfClosing:!1,attrs:hSe(e),location:t}}function hSe(e){return YCe({tagName:e.tagName,type:"element",properties:e.properties,children:[]}).attrs}function pSe(e){const t=Object.assign(cf(e));return t.startTag=Object.assign({},t),{type:sSe,tagName:e.tagName,attrs:[],location:t}}function mSe(e){throw new Error("Cannot compile `"+e.type+"` node")}function gSe(e){const t=e.type==="root"?e.children[0]:e;return!!(t&&(t.type==="doctype"||t.type==="element"&&t.tagName==="html"))}function cf(e){const t=qm(e),n=A2(e);return{startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:n.line,endCol:n.column,endOffset:n.offset}}function vSe(e){return!!(e&&!("message"in e&&"messages"in e))}function ySe(e={}){return(t,n)=>Sz(t,n,e)}function bSe(e=U3){return t=>S5e(t,e)}const CSe=/["&'<>`]/g,SSe=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,ESe=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,xSe=/[|\\{}()[\]^$+*?.]/g,SA=new WeakMap;function wSe(e,t){if(e=e.replace(t.subset?TSe(t.subset):CSe,r),t.subset||t.escapeOnly)return e;return e.replace(SSe,n).replace(ESe,r);function n(i,o,a){return t.format((i.charCodeAt(0)-55296)*1024+i.charCodeAt(1)-56320+65536,a.charCodeAt(o+2),t)}function r(i,o,a){return t.format(i.charCodeAt(0),a.charCodeAt(o+1),t)}}function TSe(e){let t=SA.get(e);return t||(t=_Se(e),SA.set(e,t)),t}function _Se(e){const t=[];let n=-1;for(;++n<e.length;)t.push(e[n].replace(xSe,"\\$&"));return new RegExp("(?:"+t.join("|")+")","g")}const OSe=/[\dA-Fa-f]/;function ISe(e,t,n){const r="&#x"+e.toString(16).toUpperCase();return n&&t&&!OSe.test(String.fromCharCode(t))?r:r+";"}const $Se=/\d/;function NSe(e,t,n){const r="&#"+String(e);return n&&t&&!$Se.test(String.fromCharCode(t))?r:r+";"}const ASe=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],P9={nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"­",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",fnof:"ƒ",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",bull:"•",hellip:"…",prime:"",Prime:"″",oline:"‾",frasl:"",weierp:"℘",image:"",real:"",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"",lowast:"",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"",cap:"∩",cup:"",int:"∫",there4:"∴",sim:"",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦",quot:'"',amp:"&",lt:"<",gt:">",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",circ:"ˆ",tilde:"˜",ensp:"",emsp:"",thinsp:"",zwnj:"",zwj:"",lrm:"",rlm:"",ndash:"",mdash:"—",lsquo:"",rsquo:"",sbquo:"",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",permil:"‰",lsaquo:"",rsaquo:"",euro:"€"},kSe=["cent","copy","divide","gt","lt","not","para","times"],Ez={}.hasOwnProperty,DE={};let Ag;for(Ag in P9)Ez.call(P9,Ag)&&(DE[P9[Ag]]=Ag);const RSe=/[^\dA-Za-z]/;function MSe(e,t,n,r){const i=String.fromCharCode(e);if(Ez.call(DE,i)){const o=DE[i],a="&"+o;return n&&ASe.includes(o)&&!kSe.includes(o)&&(!r||t&&t!==61&&RSe.test(String.fromCharCode(t)))?a:a+";"}return""}function PSe(e,t,n){let r=ISe(e,t,n.omitOptionalSemicolons),i;if((n.useNamedReferences||n.useShortestReferences)&&(i=MSe(e,t,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!i)&&n.useShortestReferences){const o=NSe(e,t,n.omitOptionalSemicolons);o.length<r.length&&(r=o)}return i&&(!n.useShortestReferences||i.length<r.length)?i:r}function _f(e,t){return wSe(e,Object.assign({format:PSe},t))}function LSe(e,t,n,r){return r.settings.bogusComments?"<?"+_f(e.value,Object.assign({},r.settings.characterReferences,{subset:[">"]}))+">":"<!--"+e.value.replace(/^>|^->|<!--|-->|--!>|<!-$/g,i)+"-->";function i(o){return _f(o,Object.assign({},r.settings.characterReferences,{subset:["<",">"]}))}}function DSe(e,t,n,r){return"<!"+(r.settings.upperDoctype?"DOCTYPE":"doctype")+(r.settings.tightDoctype?"":" ")+"html>"}function My(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let r=0,i=n.indexOf(t);for(;i!==-1;)r++,i=n.indexOf(t,i+t.length);return r}function a6(e){const t=e&&typeof e=="object"&&e.type==="text"?e.value||"":e;return typeof t=="string"&&t.replace(/[ \t\n\f\r]/g,"")===""}const oi=wz(1),xz=wz(-1);function wz(e){return t;function t(n,r,i){const o=n?n.children:[];let a=(r||0)+e,l=o&&o[a];if(!i)for(;l&&a6(l);)a+=e,l=o[a];return l}}const FSe={}.hasOwnProperty;function Tz(e){return t;function t(n,r,i){return FSe.call(e,n.tagName)&&e[n.tagName](n,r,i)}}const l6=Tz({html:BSe,head:L9,body:jSe,p:HSe,li:zSe,dt:WSe,dd:USe,rt:EA,rp:EA,optgroup:KSe,option:VSe,menuitem:GSe,colgroup:L9,caption:L9,thead:qSe,tbody:XSe,tfoot:YSe,tr:QSe,td:xA,th:xA});function L9(e,t,n){const r=oi(n,t,!0);return!r||r.type!=="comment"&&!(r.type==="text"&&a6(r.value.charAt(0)))}function BSe(e,t,n){const r=oi(n,t);return!r||r.type!=="comment"}function jSe(e,t,n){const r=oi(n,t);return!r||r.type!=="comment"}function HSe(e,t,n){const r=oi(n,t);return r?r.type==="element"&&(r.tagName==="address"||r.tagName==="article"||r.tagName==="aside"||r.tagName==="blockquote"||r.tagName==="details"||r.tagName==="div"||r.tagName==="dl"||r.tagName==="fieldset"||r.tagName==="figcaption"||r.tagName==="figure"||r.tagName==="footer"||r.tagName==="form"||r.tagName==="h1"||r.tagName==="h2"||r.tagName==="h3"||r.tagName==="h4"||r.tagName==="h5"||r.tagName==="h6"||r.tagName==="header"||r.tagName==="hgroup"||r.tagName==="hr"||r.tagName==="main"||r.tagName==="menu"||r.tagName==="nav"||r.tagName==="ol"||r.tagName==="p"||r.tagName==="pre"||r.tagName==="section"||r.tagName==="table"||r.tagName==="ul"):!n||!(n.type==="element"&&(n.tagName==="a"||n.tagName==="audio"||n.tagName==="del"||n.tagName==="ins"||n.tagName==="map"||n.tagName==="noscript"||n.tagName==="video"))}function zSe(e,t,n){const r=oi(n,t);return!r||r.type==="element"&&r.tagName==="li"}function WSe(e,t,n){const r=oi(n,t);return r&&r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd")}function USe(e,t,n){const r=oi(n,t);return!r||r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd")}function EA(e,t,n){const r=oi(n,t);return!r||r.type==="element"&&(r.tagName==="rp"||r.tagName==="rt")}function KSe(e,t,n){const r=oi(n,t);return!r||r.type==="element"&&r.tagName==="optgroup"}function VSe(e,t,n){const r=oi(n,t);return!r||r.type==="element"&&(r.tagName==="option"||r.tagName==="optgroup")}function GSe(e,t,n){const r=oi(n,t);return!r||r.type==="element"&&(r.tagName==="menuitem"||r.tagName==="hr"||r.tagName==="menu")}function qSe(e,t,n){const r=oi(n,t);return r&&r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot")}function XSe(e,t,n){const r=oi(n,t);return!r||r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot")}function YSe(e,t,n){return!oi(n,t)}function QSe(e,t,n){const r=oi(n,t);return!r||r.type==="element"&&r.tagName==="tr"}function xA(e,t,n){const r=oi(n,t);return!r||r.type==="element"&&(r.tagName==="td"||r.tagName==="th")}const ZSe=Tz({html:JSe,head:eEe,body:tEe,colgroup:nEe,tbody:rEe});function JSe(e){const t=oi(e,-1);return!t||t.type!=="comment"}function eEe(e){const t=e.children,n=[];let r=-1;for(;++r<t.length;){const i=t[r];if(i.type==="element"&&(i.tagName==="title"||i.tagName==="base")){if(n.includes(i.tagName))return!1;n.push(i.tagName)}}return t.length>0}function tEe(e){const t=oi(e,-1,!0);return!t||t.type!=="comment"&&!(t.type==="text"&&a6(t.value.charAt(0)))&&!(t.type==="element"&&(t.tagName==="meta"||t.tagName==="link"||t.tagName==="script"||t.tagName==="style"||t.tagName==="template"))}function nEe(e,t,n){const r=xz(n,t),i=oi(e,-1,!0);return n&&r&&r.type==="element"&&r.tagName==="colgroup"&&l6(r,n.children.indexOf(r),n)?!1:i&&i.type==="element"&&i.tagName==="col"}function rEe(e,t,n){const r=xz(n,t),i=oi(e,-1);return n&&r&&r.type==="element"&&(r.tagName==="thead"||r.tagName==="tbody")&&l6(r,n.children.indexOf(r),n)?!1:i&&i.type==="element"&&i.tagName==="tr"}const kg={name:[[`
\f\r &/=>`.split(""),`
\f\r "&'/=>\``.split("")],[`\0
\f\r "&'/<=>`.split(""),`\0
\f\r "&'/<=>\``.split("")]],unquoted:[[`
\f\r &>`.split(""),`\0
\f\r "&'<=>\``.split("")],[`\0
\f\r "&'<=>\``.split(""),`\0
\f\r "&'<=>\``.split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function iEe(e,t,n,r){const i=r.schema,o=i.space==="svg"?!1:r.settings.omitOptionalTags;let a=i.space==="svg"?r.settings.closeEmptyElements:r.settings.voids.includes(e.tagName.toLowerCase());const l=[];let c;i.space==="html"&&e.tagName==="svg"&&(r.schema=E1);const u=oEe(r,e.properties),f=r.all(i.space==="html"&&e.tagName==="template"?e.content:e);return r.schema=i,f&&(a=!1),(u||!o||!ZSe(e,t,n))&&(l.push("<",e.tagName,u?" "+u:""),a&&(i.space==="svg"||r.settings.closeSelfClosing)&&(c=u.charAt(u.length-1),(!r.settings.tightSelfClosing||c==="/"||c&&c!=='"'&&c!=="'")&&l.push(" "),l.push("/")),l.push(">")),l.push(f),!a&&(!o||!l6(e,t,n))&&l.push("</"+e.tagName+">"),l.join("")}function oEe(e,t){const n=[];let r=-1,i;if(t){for(i in t)if(t[i]!==void 0&&t[i]!==null){const o=aEe(e,i,t[i]);o&&n.push(o)}}for(;++r<n.length;){const o=e.settings.tightAttributes?n[r].charAt(n[r].length-1):null;r!==n.length-1&&o!=='"'&&o!=="'"&&(n[r]+=" ")}return n.join("")}function aEe(e,t,n){const r=k2(e.schema,t),i=e.settings.allowParseErrors&&e.schema.space==="html"?0:1,o=e.settings.allowDangerousCharacters?0:1;let a=e.quote,l;if(r.overloadedBoolean&&(n===r.attribute||n==="")?n=!0:(r.boolean||r.overloadedBoolean&&typeof n!="string")&&(n=!!n),n==null||n===!1||typeof n=="number"&&Number.isNaN(n))return"";const c=_f(r.attribute,Object.assign({},e.settings.characterReferences,{subset:kg.name[i][o]}));return n===!0||(n=Array.isArray(n)?(r.commaSeparated?mz:pz)(n,{padLeft:!e.settings.tightCommaSeparatedLists}):String(n),e.settings.collapseEmptyAttributes&&!n)?c:(e.settings.preferUnquoted&&(l=_f(n,Object.assign({},e.settings.characterReferences,{subset:kg.unquoted[i][o],attribute:!0}))),l!==n&&(e.settings.quoteSmart&&My(n,a)>My(n,e.alternative)&&(a=e.alternative),l=a+_f(n,Object.assign({},e.settings.characterReferences,{subset:(a==="'"?kg.single:kg.double)[i][o],attribute:!0}))+a),c+(l&&"="+l))}function _z(e,t,n,r){return n&&n.type==="element"&&(n.tagName==="script"||n.tagName==="style")?e.value:_f(e.value,Object.assign({},r.settings.characterReferences,{subset:["<","&"]}))}function lEe(e,t,n,r){return r.settings.allowDangerousHtml?e.value:_z(e,t,n,r)}function sEe(e,t,n,r){return r.all(e)}const cEe=i6("type",{invalid:uEe,unknown:dEe,handlers:{comment:LSe,doctype:DSe,element:iEe,raw:lEe,root:sEe,text:_z}});function uEe(e){throw new Error("Expected node, not `"+e+"`")}function dEe(e){throw new Error("Cannot compile unknown node `"+e.type+"`")}function fEe(e,t){const n=t||{},r=n.quote||'"',i=r==='"'?"'":'"';if(r!=='"'&&r!=="'")throw new Error("Invalid quote `"+r+"`, expected `'` or `\"`");return{one:hEe,all:pEe,settings:{omitOptionalTags:n.omitOptionalTags||!1,allowParseErrors:n.allowParseErrors||!1,allowDangerousCharacters:n.allowDangerousCharacters||!1,quoteSmart:n.quoteSmart||!1,preferUnquoted:n.preferUnquoted||!1,tightAttributes:n.tightAttributes||!1,upperDoctype:n.upperDoctype||!1,tightDoctype:n.tightDoctype||!1,bogusComments:n.bogusComments||!1,tightCommaSeparatedLists:n.tightCommaSeparatedLists||!1,tightSelfClosing:n.tightSelfClosing||!1,collapseEmptyAttributes:n.collapseEmptyAttributes||!1,allowDangerousHtml:n.allowDangerousHtml||!1,voids:n.voids||Cz,characterReferences:n.characterReferences||n.entities||{},closeSelfClosing:n.closeSelfClosing||!1,closeEmptyElements:n.closeEmptyElements||!1},schema:n.space==="svg"?E1:Ym,quote:r,alternative:i}.one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)}function hEe(e,t,n){return cEe(e,t,n,this)}function pEe(e){const t=[],n=e&&e.children||[];let r=-1;for(;++r<n.length;)t[r]=this.one(n[r],r,e);return t.join("")}function mEe(e){const t=this.data("settings"),n=Object.assign({},t,e);Object.assign(this,{Compiler:r});function r(i){return fEe(i,n)}}const gEe={};function vEe(e,t){const n=gEe,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,i=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return Oz(e,r,i)}function Oz(e,t,n){if(yEe(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return wA(e.children,t,n)}return Array.isArray(e)?wA(e,t,n):""}function wA(e,t,n){const r=[];let i=-1;for(;++i<e.length;)r[i]=Oz(e[i],t,n);return r.join("")}function yEe(e){return!!(e&&typeof e=="object")}function ta(e,t,n,r){const i=e.length;let o=0,a;if(t<0?t=-t>i?0:i+t:t=t>i?i:t,n=n>0?n:0,r.length<1e4)a=Array.from(r),a.unshift(t,n),e.splice(...a);else for(n&&e.splice(t,n);o<r.length;)a=r.slice(o,o+1e4),a.unshift(t,0),e.splice(...a),o+=1e4,t+=1e4}function Ca(e,t){return e.length>0?(ta(e,e.length,0,t),e):t}const TA={}.hasOwnProperty;function Iz(e){const t={};let n=-1;for(;++n<e.length;)bEe(t,e[n]);return t}function bEe(e,t){let n;for(n in t){const i=(TA.call(e,n)?e[n]:void 0)||(e[n]={}),o=t[n];let a;if(o)for(a in o){TA.call(i,a)||(i[a]=[]);const l=o[a];CEe(i[a],Array.isArray(l)?l:l?[l]:[])}}}function CEe(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);ta(e,0,0,r)}const SEe=/[!-\/:-@\[-`\{-~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/,lo=Dc(/[A-Za-z]/),Xi=Dc(/[\dA-Za-z]/),EEe=Dc(/[#-'*+\--9=?A-Z^-~]/);function Py(e){return e!==null&&(e<32||e===127)}const FE=Dc(/\d/),xEe=Dc(/[\dA-Fa-f]/),wEe=Dc(/[!-/:-@[-`{-~]/);function tn(e){return e!==null&&e<-2}function or(e){return e!==null&&(e<0||e===32)}function vn(e){return e===-2||e===-1||e===32}const R2=Dc(SEe),Hu=Dc(/\s/);function Dc(e){return t;function t(n){return n!==null&&e.test(String.fromCharCode(n))}}function Rn(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let o=0;return a;function a(c){return vn(c)?(e.enter(n),l(c)):t(c)}function l(c){return vn(c)&&o++<i?(e.consume(c),l):(e.exit(n),t(c))}}const TEe={tokenize:_Ee};function _Ee(e){const t=e.attempt(this.parser.constructs.contentInitial,r,i);let n;return t;function r(l){if(l===null){e.consume(l);return}return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),Rn(e,t,"linePrefix")}function i(l){return e.enter("paragraph"),o(l)}function o(l){const c=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=c),n=c,a(l)}function a(l){if(l===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(l);return}return tn(l)?(e.consume(l),e.exit("chunkText"),o):(e.consume(l),a)}}const OEe={tokenize:IEe},_A={tokenize:$Ee};function IEe(e){const t=this,n=[];let r=0,i,o,a;return l;function l(T){if(r<n.length){const O=n[r];return t.containerState=O[1],e.attempt(O[0].continuation,c,u)(T)}return u(T)}function c(T){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&S();const O=t.events.length;let I=O,_;for(;I--;)if(t.events[I][0]==="exit"&&t.events[I][1].type==="chunkFlow"){_=t.events[I][1].end;break}C(r);let $=O;for(;$<t.events.length;)t.events[$][1].end=Object.assign({},_),$++;return ta(t.events,I+1,0,t.events.slice(O)),t.events.length=$,u(T)}return l(T)}function u(T){if(r===n.length){if(!i)return m(T);if(i.currentConstruct&&i.currentConstruct.concrete)return b(T);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(_A,f,p)(T)}function f(T){return i&&S(),C(r),m(T)}function p(T){return t.parser.lazy[t.now().line]=r!==n.length,a=t.now().offset,b(T)}function m(T){return t.containerState={},e.attempt(_A,g,b)(T)}function g(T){return r++,n.push([t.currentConstruct,t.containerState]),m(T)}function b(T){if(T===null){i&&S(),C(0),e.consume(T);return}return i=i||t.parser.flow(t.now()),e.enter("chunkFlow",{contentType:"flow",previous:o,_tokenizer:i}),E(T)}function E(T){if(T===null){x(e.exit("chunkFlow"),!0),C(0),e.consume(T);return}return tn(T)?(e.consume(T),x(e.exit("chunkFlow")),r=0,t.interrupt=void 0,l):(e.consume(T),E)}function x(T,O){const I=t.sliceStream(T);if(O&&I.push(null),T.previous=o,o&&(o.next=T),o=T,i.defineSkip(T.start),i.write(I),t.parser.lazy[T.start.line]){let _=i.events.length;for(;_--;)if(i.events[_][1].start.offset<a&&(!i.events[_][1].end||i.events[_][1].end.offset>a))return;const $=t.events.length;let k=$,R,M;for(;k--;)if(t.events[k][0]==="exit"&&t.events[k][1].type==="chunkFlow"){if(R){M=t.events[k][1].end;break}R=!0}for(C(r),_=$;_<t.events.length;)t.events[_][1].end=Object.assign({},M),_++;ta(t.events,k+1,0,t.events.slice($)),t.events.length=_}}function C(T){let O=n.length;for(;O-- >T;){const I=n[O];t.containerState=I[1],I[0].exit.call(t,e)}n.length=T}function S(){i.write([null]),o=void 0,i=void 0,t.containerState._closeFlow=void 0}}function $Ee(e,t,n){return Rn(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Ly(e){if(e===null||or(e)||Hu(e))return 1;if(R2(e))return 2}function M2(e,t,n){const r=[];let i=-1;for(;++i<e.length;){const o=e[i].resolveAll;o&&!r.includes(o)&&(t=o(t,n),r.push(o))}return t}const BE={name:"attention",tokenize:AEe,resolveAll:NEe};function NEe(e,t){let n=-1,r,i,o,a,l,c,u,f;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(r=n;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;c=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const p=Object.assign({},e[r][1].end),m=Object.assign({},e[n][1].start);OA(p,-c),OA(m,c),a={type:c>1?"strongSequence":"emphasisSequence",start:p,end:Object.assign({},e[r][1].end)},l={type:c>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[n][1].start),end:m},o={type:c>1?"strongText":"emphasisText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},i={type:c>1?"strong":"emphasis",start:Object.assign({},a.start),end:Object.assign({},l.end)},e[r][1].end=Object.assign({},a.start),e[n][1].start=Object.assign({},l.end),u=[],e[r][1].end.offset-e[r][1].start.offset&&(u=Ca(u,[["enter",e[r][1],t],["exit",e[r][1],t]])),u=Ca(u,[["enter",i,t],["enter",a,t],["exit",a,t],["enter",o,t]]),u=Ca(u,M2(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),u=Ca(u,[["exit",o,t],["enter",l,t],["exit",l,t],["exit",i,t]]),e[n][1].end.offset-e[n][1].start.offset?(f=2,u=Ca(u,[["enter",e[n][1],t],["exit",e[n][1],t]])):f=0,ta(e,r-1,n-r+3,u),n=r+u.length-f-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function AEe(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=Ly(r);let o;return a;function a(c){return o=c,e.enter("attentionSequence"),l(c)}function l(c){if(c===o)return e.consume(c),l;const u=e.exit("attentionSequence"),f=Ly(c),p=!f||f===2&&i||n.includes(c),m=!i||i===2&&f||n.includes(r);return u._open=!!(o===42?p:p&&(i||!m)),u._close=!!(o===42?m:m&&(f||!p)),t(c)}}function OA(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const kEe={name:"autolink",tokenize:REe};function REe(e,t,n){let r=0;return i;function i(g){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(g),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),o}function o(g){return lo(g)?(e.consume(g),a):u(g)}function a(g){return g===43||g===45||g===46||Xi(g)?(r=1,l(g)):u(g)}function l(g){return g===58?(e.consume(g),r=0,c):(g===43||g===45||g===46||Xi(g))&&r++<32?(e.consume(g),l):(r=0,u(g))}function c(g){return g===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(g),e.exit("autolinkMarker"),e.exit("autolink"),t):g===null||g===32||g===60||Py(g)?n(g):(e.consume(g),c)}function u(g){return g===64?(e.consume(g),f):EEe(g)?(e.consume(g),u):n(g)}function f(g){return Xi(g)?p(g):n(g)}function p(g){return g===46?(e.consume(g),r=0,f):g===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(g),e.exit("autolinkMarker"),e.exit("autolink"),t):m(g)}function m(g){if((g===45||Xi(g))&&r++<63){const b=g===45?m:p;return e.consume(g),b}return n(g)}}const Qm={tokenize:MEe,partial:!0};function MEe(e,t,n){return r;function r(o){return vn(o)?Rn(e,i,"linePrefix")(o):i(o)}function i(o){return o===null||tn(o)?t(o):n(o)}}const $z={name:"blockQuote",tokenize:PEe,continuation:{tokenize:LEe},exit:DEe};function PEe(e,t,n){const r=this;return i;function i(a){if(a===62){const l=r.containerState;return l.open||(e.enter("blockQuote",{_container:!0}),l.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(a),e.exit("blockQuoteMarker"),o}return n(a)}function o(a){return vn(a)?(e.enter("blockQuotePrefixWhitespace"),e.consume(a),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(a))}}function LEe(e,t,n){const r=this;return i;function i(a){return vn(a)?Rn(e,o,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a):o(a)}function o(a){return e.attempt($z,t,n)(a)}}function DEe(e){e.exit("blockQuote")}const Nz={name:"characterEscape",tokenize:FEe};function FEe(e,t,n){return r;function r(o){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(o),e.exit("escapeMarker"),i}function i(o){return wEe(o)?(e.enter("characterEscapeValue"),e.consume(o),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(o)}}const IA=document.createElement("i");function s6(e){const t="&"+e+";";IA.innerHTML=t;const n=IA.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}const Az={name:"characterReference",tokenize:BEe};function BEe(e,t,n){const r=this;let i=0,o,a;return l;function l(p){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(p),e.exit("characterReferenceMarker"),c}function c(p){return p===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(p),e.exit("characterReferenceMarkerNumeric"),u):(e.enter("characterReferenceValue"),o=31,a=Xi,f(p))}function u(p){return p===88||p===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(p),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),o=6,a=xEe,f):(e.enter("characterReferenceValue"),o=7,a=FE,f(p))}function f(p){if(p===59&&i){const m=e.exit("characterReferenceValue");return a===Xi&&!s6(r.sliceSerialize(m))?n(p):(e.enter("characterReferenceMarker"),e.consume(p),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return a(p)&&i++<o?(e.consume(p),f):n(p)}}const $A={tokenize:HEe,partial:!0},NA={name:"codeFenced",tokenize:jEe,concrete:!0};function jEe(e,t,n){const r=this,i={tokenize:I,partial:!0};let o=0,a=0,l;return c;function c(_){return u(_)}function u(_){const $=r.events[r.events.length-1];return o=$&&$[1].type==="linePrefix"?$[2].sliceSerialize($[1],!0).length:0,l=_,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),f(_)}function f(_){return _===l?(a++,e.consume(_),f):a<3?n(_):(e.exit("codeFencedFenceSequence"),vn(_)?Rn(e,p,"whitespace")(_):p(_))}function p(_){return _===null||tn(_)?(e.exit("codeFencedFence"),r.interrupt?t(_):e.check($A,E,O)(_)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),m(_))}function m(_){return _===null||tn(_)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),p(_)):vn(_)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Rn(e,g,"whitespace")(_)):_===96&&_===l?n(_):(e.consume(_),m)}function g(_){return _===null||tn(_)?p(_):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),b(_))}function b(_){return _===null||tn(_)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),p(_)):_===96&&_===l?n(_):(e.consume(_),b)}function E(_){return e.attempt(i,O,x)(_)}function x(_){return e.enter("lineEnding"),e.consume(_),e.exit("lineEnding"),C}function C(_){return o>0&&vn(_)?Rn(e,S,"linePrefix",o+1)(_):S(_)}function S(_){return _===null||tn(_)?e.check($A,E,O)(_):(e.enter("codeFlowValue"),T(_))}function T(_){return _===null||tn(_)?(e.exit("codeFlowValue"),S(_)):(e.consume(_),T)}function O(_){return e.exit("codeFenced"),t(_)}function I(_,$,k){let R=0;return M;function M(z){return _.enter("lineEnding"),_.consume(z),_.exit("lineEnding"),H}function H(z){return _.enter("codeFencedFence"),vn(z)?Rn(_,B,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(z):B(z)}function B(z){return z===l?(_.enter("codeFencedFenceSequence"),L(z)):k(z)}function L(z){return z===l?(R++,_.consume(z),L):R>=a?(_.exit("codeFencedFenceSequence"),vn(z)?Rn(_,D,"whitespace")(z):D(z)):k(z)}function D(z){return z===null||tn(z)?(_.exit("codeFencedFence"),$(z)):k(z)}}}function HEe(e,t,n){const r=this;return i;function i(a){return a===null?n(a):(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),o)}function o(a){return r.parser.lazy[r.now().line]?n(a):t(a)}}const D9={name:"codeIndented",tokenize:WEe},zEe={tokenize:UEe,partial:!0};function WEe(e,t,n){const r=this;return i;function i(u){return e.enter("codeIndented"),Rn(e,o,"linePrefix",5)(u)}function o(u){const f=r.events[r.events.length-1];return f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?a(u):n(u)}function a(u){return u===null?c(u):tn(u)?e.attempt(zEe,a,c)(u):(e.enter("codeFlowValue"),l(u))}function l(u){return u===null||tn(u)?(e.exit("codeFlowValue"),a(u)):(e.consume(u),l)}function c(u){return e.exit("codeIndented"),t(u)}}function UEe(e,t,n){const r=this;return i;function i(a){return r.parser.lazy[r.now().line]?n(a):tn(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),i):Rn(e,o,"linePrefix",5)(a)}function o(a){const l=r.events[r.events.length-1];return l&&l[1].type==="linePrefix"&&l[2].sliceSerialize(l[1],!0).length>=4?t(a):tn(a)?i(a):n(a)}}const KEe={name:"codeText",tokenize:qEe,resolve:VEe,previous:GEe};function VEe(e){let t=e.length-4,n=3,r,i;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r<t;)if(e[r][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)i===void 0?r!==t&&e[r][1].type!=="lineEnding"&&(i=r):(r===t||e[r][1].type==="lineEnding")&&(e[i][1].type="codeTextData",r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),t-=r-i-2,r=i+2),i=void 0);return e}function GEe(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function qEe(e,t,n){let r=0,i,o;return a;function a(p){return e.enter("codeText"),e.enter("codeTextSequence"),l(p)}function l(p){return p===96?(e.consume(p),r++,l):(e.exit("codeTextSequence"),c(p))}function c(p){return p===null?n(p):p===32?(e.enter("space"),e.consume(p),e.exit("space"),c):p===96?(o=e.enter("codeTextSequence"),i=0,f(p)):tn(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),c):(e.enter("codeTextData"),u(p))}function u(p){return p===null||p===32||p===96||tn(p)?(e.exit("codeTextData"),c(p)):(e.consume(p),u)}function f(p){return p===96?(e.consume(p),i++,f):i===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(p)):(o.type="codeTextData",u(p))}}function kz(e){const t={};let n=-1,r,i,o,a,l,c,u;for(;++n<e.length;){for(;n in t;)n=t[n];if(r=e[n],n&&r[1].type==="chunkFlow"&&e[n-1][1].type==="listItemPrefix"&&(c=r[1]._tokenizer.events,o=0,o<c.length&&c[o][1].type==="lineEndingBlank"&&(o+=2),o<c.length&&c[o][1].type==="content"))for(;++o<c.length&&c[o][1].type!=="content";)c[o][1].type==="chunkText"&&(c[o][1]._isInFirstContentOfListItem=!0,o++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,XEe(e,n)),n=t[n],u=!0);else if(r[1]._container){for(o=n,i=void 0;o--&&(a=e[o],a[1].type==="lineEnding"||a[1].type==="lineEndingBlank");)a[0]==="enter"&&(i&&(e[i][1].type="lineEndingBlank"),a[1].type="lineEnding",i=o);i&&(r[1].end=Object.assign({},e[i][1].start),l=e.slice(i,n),l.unshift(r),ta(e,i,n-i+1,l))}}return!u}function XEe(e,t){const n=e[t][1],r=e[t][2];let i=t-1;const o=[],a=n._tokenizer||r.parser[n.contentType](n.start),l=a.events,c=[],u={};let f,p,m=-1,g=n,b=0,E=0;const x=[E];for(;g;){for(;e[++i][1]!==g;);o.push(i),g._tokenizer||(f=r.sliceStream(g),g.next||f.push(null),p&&a.defineSkip(g.start),g._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=!0),a.write(f),g._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=void 0)),p=g,g=g.next}for(g=n;++m<l.length;)l[m][0]==="exit"&&l[m-1][0]==="enter"&&l[m][1].type===l[m-1][1].type&&l[m][1].start.line!==l[m][1].end.line&&(E=m+1,x.push(E),g._tokenizer=void 0,g.previous=void 0,g=g.next);for(a.events=[],g?(g._tokenizer=void 0,g.previous=void 0):x.pop(),m=x.length;m--;){const C=l.slice(x[m],x[m+1]),S=o.pop();c.unshift([S,S+C.length-1]),ta(e,S,2,C)}for(m=-1;++m<c.length;)u[b+c[m][0]]=b+c[m][1],b+=c[m][1]-c[m][0]-1;return u}const YEe={tokenize:JEe,resolve:ZEe},QEe={tokenize:exe,partial:!0};function ZEe(e){return kz(e),e}function JEe(e,t){let n;return r;function r(l){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),i(l)}function i(l){return l===null?o(l):tn(l)?e.check(QEe,a,o)(l):(e.consume(l),i)}function o(l){return e.exit("chunkContent"),e.exit("content"),t(l)}function a(l){return e.consume(l),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,i}}function exe(e,t,n){const r=this;return i;function i(a){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),Rn(e,o,"linePrefix")}function o(a){if(a===null||tn(a))return n(a);const l=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&l&&l[1].type==="linePrefix"&&l[2].sliceSerialize(l[1],!0).length>=4?t(a):e.interrupt(r.parser.constructs.flow,n,t)(a)}}function Rz(e,t,n,r,i,o,a,l,c){const u=c||Number.POSITIVE_INFINITY;let f=0;return p;function p(C){return C===60?(e.enter(r),e.enter(i),e.enter(o),e.consume(C),e.exit(o),m):C===null||C===32||C===41||Py(C)?n(C):(e.enter(r),e.enter(a),e.enter(l),e.enter("chunkString",{contentType:"string"}),E(C))}function m(C){return C===62?(e.enter(o),e.consume(C),e.exit(o),e.exit(i),e.exit(r),t):(e.enter(l),e.enter("chunkString",{contentType:"string"}),g(C))}function g(C){return C===62?(e.exit("chunkString"),e.exit(l),m(C)):C===null||C===60||tn(C)?n(C):(e.consume(C),C===92?b:g)}function b(C){return C===60||C===62||C===92?(e.consume(C),g):g(C)}function E(C){return!f&&(C===null||C===41||or(C))?(e.exit("chunkString"),e.exit(l),e.exit(a),e.exit(r),t(C)):f<u&&C===40?(e.consume(C),f++,E):C===41?(e.consume(C),f--,E):C===null||C===32||C===40||Py(C)?n(C):(e.consume(C),C===92?x:E)}function x(C){return C===40||C===41||C===92?(e.consume(C),E):E(C)}}function Mz(e,t,n,r,i,o){const a=this;let l=0,c;return u;function u(g){return e.enter(r),e.enter(i),e.consume(g),e.exit(i),e.enter(o),f}function f(g){return l>999||g===null||g===91||g===93&&!c||g===94&&!l&&"_hiddenFootnoteSupport"in a.parser.constructs?n(g):g===93?(e.exit(o),e.enter(i),e.consume(g),e.exit(i),e.exit(r),t):tn(g)?(e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),f):(e.enter("chunkString",{contentType:"string"}),p(g))}function p(g){return g===null||g===91||g===93||tn(g)||l++>999?(e.exit("chunkString"),f(g)):(e.consume(g),c||(c=!vn(g)),g===92?m:p)}function m(g){return g===91||g===92||g===93?(e.consume(g),l++,p):p(g)}}function Pz(e,t,n,r,i,o){let a;return l;function l(m){return m===34||m===39||m===40?(e.enter(r),e.enter(i),e.consume(m),e.exit(i),a=m===40?41:m,c):n(m)}function c(m){return m===a?(e.enter(i),e.consume(m),e.exit(i),e.exit(r),t):(e.enter(o),u(m))}function u(m){return m===a?(e.exit(o),c(a)):m===null?n(m):tn(m)?(e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),Rn(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),f(m))}function f(m){return m===a||m===null||tn(m)?(e.exit("chunkString"),u(m)):(e.consume(m),m===92?p:f)}function p(m){return m===a||m===92?(e.consume(m),f):f(m)}}function mp(e,t){let n;return r;function r(i){return tn(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):vn(i)?Rn(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}function rl(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const txe={name:"definition",tokenize:rxe},nxe={tokenize:ixe,partial:!0};function rxe(e,t,n){const r=this;let i;return o;function o(g){return e.enter("definition"),a(g)}function a(g){return Mz.call(r,e,l,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(g)}function l(g){return i=rl(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),g===58?(e.enter("definitionMarker"),e.consume(g),e.exit("definitionMarker"),c):n(g)}function c(g){return or(g)?mp(e,u)(g):u(g)}function u(g){return Rz(e,f,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(g)}function f(g){return e.attempt(nxe,p,p)(g)}function p(g){return vn(g)?Rn(e,m,"whitespace")(g):m(g)}function m(g){return g===null||tn(g)?(e.exit("definition"),r.parser.defined.push(i),t(g)):n(g)}}function ixe(e,t,n){return r;function r(l){return or(l)?mp(e,i)(l):n(l)}function i(l){return Pz(e,o,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(l)}function o(l){return vn(l)?Rn(e,a,"whitespace")(l):a(l)}function a(l){return l===null||tn(l)?t(l):n(l)}}const oxe={name:"hardBreakEscape",tokenize:axe};function axe(e,t,n){return r;function r(o){return e.enter("hardBreakEscape"),e.consume(o),i}function i(o){return tn(o)?(e.exit("hardBreakEscape"),t(o)):n(o)}}const lxe={name:"headingAtx",tokenize:cxe,resolve:sxe};function sxe(e,t){let n=e.length-2,r=3,i,o;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},o={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},ta(e,r,n-r+1,[["enter",i,t],["enter",o,t],["exit",o,t],["exit",i,t]])),e}function cxe(e,t,n){let r=0;return i;function i(f){return e.enter("atxHeading"),o(f)}function o(f){return e.enter("atxHeadingSequence"),a(f)}function a(f){return f===35&&r++<6?(e.consume(f),a):f===null||or(f)?(e.exit("atxHeadingSequence"),l(f)):n(f)}function l(f){return f===35?(e.enter("atxHeadingSequence"),c(f)):f===null||tn(f)?(e.exit("atxHeading"),t(f)):vn(f)?Rn(e,l,"whitespace")(f):(e.enter("atxHeadingText"),u(f))}function c(f){return f===35?(e.consume(f),c):(e.exit("atxHeadingSequence"),l(f))}function u(f){return f===null||f===35||or(f)?(e.exit("atxHeadingText"),l(f)):(e.consume(f),u)}}const uxe=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],AA=["pre","script","style","textarea"],dxe={name:"htmlFlow",tokenize:mxe,resolveTo:pxe,concrete:!0},fxe={tokenize:vxe,partial:!0},hxe={tokenize:gxe,partial:!0};function pxe(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function mxe(e,t,n){const r=this;let i,o,a,l,c;return u;function u(V){return f(V)}function f(V){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(V),p}function p(V){return V===33?(e.consume(V),m):V===47?(e.consume(V),o=!0,E):V===63?(e.consume(V),i=3,r.interrupt?t:A):lo(V)?(e.consume(V),a=String.fromCharCode(V),x):n(V)}function m(V){return V===45?(e.consume(V),i=2,g):V===91?(e.consume(V),i=5,l=0,b):lo(V)?(e.consume(V),i=4,r.interrupt?t:A):n(V)}function g(V){return V===45?(e.consume(V),r.interrupt?t:A):n(V)}function b(V){const Y="CDATA[";return V===Y.charCodeAt(l++)?(e.consume(V),l===Y.length?r.interrupt?t:B:b):n(V)}function E(V){return lo(V)?(e.consume(V),a=String.fromCharCode(V),x):n(V)}function x(V){if(V===null||V===47||V===62||or(V)){const Y=V===47,ee=a.toLowerCase();return!Y&&!o&&AA.includes(ee)?(i=1,r.interrupt?t(V):B(V)):uxe.includes(a.toLowerCase())?(i=6,Y?(e.consume(V),C):r.interrupt?t(V):B(V)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(V):o?S(V):T(V))}return V===45||Xi(V)?(e.consume(V),a+=String.fromCharCode(V),x):n(V)}function C(V){return V===62?(e.consume(V),r.interrupt?t:B):n(V)}function S(V){return vn(V)?(e.consume(V),S):M(V)}function T(V){return V===47?(e.consume(V),M):V===58||V===95||lo(V)?(e.consume(V),O):vn(V)?(e.consume(V),T):M(V)}function O(V){return V===45||V===46||V===58||V===95||Xi(V)?(e.consume(V),O):I(V)}function I(V){return V===61?(e.consume(V),_):vn(V)?(e.consume(V),I):T(V)}function _(V){return V===null||V===60||V===61||V===62||V===96?n(V):V===34||V===39?(e.consume(V),c=V,$):vn(V)?(e.consume(V),_):k(V)}function $(V){return V===c?(e.consume(V),c=null,R):V===null||tn(V)?n(V):(e.consume(V),$)}function k(V){return V===null||V===34||V===39||V===47||V===60||V===61||V===62||V===96||or(V)?I(V):(e.consume(V),k)}function R(V){return V===47||V===62||vn(V)?T(V):n(V)}function M(V){return V===62?(e.consume(V),H):n(V)}function H(V){return V===null||tn(V)?B(V):vn(V)?(e.consume(V),H):n(V)}function B(V){return V===45&&i===2?(e.consume(V),W):V===60&&i===1?(e.consume(V),j):V===62&&i===4?(e.consume(V),P):V===63&&i===3?(e.consume(V),A):V===93&&i===5?(e.consume(V),q):tn(V)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(fxe,Z,L)(V)):V===null||tn(V)?(e.exit("htmlFlowData"),L(V)):(e.consume(V),B)}function L(V){return e.check(hxe,D,Z)(V)}function D(V){return e.enter("lineEnding"),e.consume(V),e.exit("lineEnding"),z}function z(V){return V===null||tn(V)?L(V):(e.enter("htmlFlowData"),B(V))}function W(V){return V===45?(e.consume(V),A):B(V)}function j(V){return V===47?(e.consume(V),a="",U):B(V)}function U(V){if(V===62){const Y=a.toLowerCase();return AA.includes(Y)?(e.consume(V),P):B(V)}return lo(V)&&a.length<8?(e.consume(V),a+=String.fromCharCode(V),U):B(V)}function q(V){return V===93?(e.consume(V),A):B(V)}function A(V){return V===62?(e.consume(V),P):V===45&&i===2?(e.consume(V),A):B(V)}function P(V){return V===null||tn(V)?(e.exit("htmlFlowData"),Z(V)):(e.consume(V),P)}function Z(V){return e.exit("htmlFlow"),t(V)}}function gxe(e,t,n){const r=this;return i;function i(a){return tn(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),o):n(a)}function o(a){return r.parser.lazy[r.now().line]?n(a):t(a)}}function vxe(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(Qm,t,n)}}const yxe={name:"htmlText",tokenize:bxe};function bxe(e,t,n){const r=this;let i,o,a;return l;function l(A){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(A),c}function c(A){return A===33?(e.consume(A),u):A===47?(e.consume(A),I):A===63?(e.consume(A),T):lo(A)?(e.consume(A),k):n(A)}function u(A){return A===45?(e.consume(A),f):A===91?(e.consume(A),o=0,b):lo(A)?(e.consume(A),S):n(A)}function f(A){return A===45?(e.consume(A),g):n(A)}function p(A){return A===null?n(A):A===45?(e.consume(A),m):tn(A)?(a=p,j(A)):(e.consume(A),p)}function m(A){return A===45?(e.consume(A),g):p(A)}function g(A){return A===62?W(A):A===45?m(A):p(A)}function b(A){const P="CDATA[";return A===P.charCodeAt(o++)?(e.consume(A),o===P.length?E:b):n(A)}function E(A){return A===null?n(A):A===93?(e.consume(A),x):tn(A)?(a=E,j(A)):(e.consume(A),E)}function x(A){return A===93?(e.consume(A),C):E(A)}function C(A){return A===62?W(A):A===93?(e.consume(A),C):E(A)}function S(A){return A===null||A===62?W(A):tn(A)?(a=S,j(A)):(e.consume(A),S)}function T(A){return A===null?n(A):A===63?(e.consume(A),O):tn(A)?(a=T,j(A)):(e.consume(A),T)}function O(A){return A===62?W(A):T(A)}function I(A){return lo(A)?(e.consume(A),_):n(A)}function _(A){return A===45||Xi(A)?(e.consume(A),_):$(A)}function $(A){return tn(A)?(a=$,j(A)):vn(A)?(e.consume(A),$):W(A)}function k(A){return A===45||Xi(A)?(e.consume(A),k):A===47||A===62||or(A)?R(A):n(A)}function R(A){return A===47?(e.consume(A),W):A===58||A===95||lo(A)?(e.consume(A),M):tn(A)?(a=R,j(A)):vn(A)?(e.consume(A),R):W(A)}function M(A){return A===45||A===46||A===58||A===95||Xi(A)?(e.consume(A),M):H(A)}function H(A){return A===61?(e.consume(A),B):tn(A)?(a=H,j(A)):vn(A)?(e.consume(A),H):R(A)}function B(A){return A===null||A===60||A===61||A===62||A===96?n(A):A===34||A===39?(e.consume(A),i=A,L):tn(A)?(a=B,j(A)):vn(A)?(e.consume(A),B):(e.consume(A),D)}function L(A){return A===i?(e.consume(A),i=void 0,z):A===null?n(A):tn(A)?(a=L,j(A)):(e.consume(A),L)}function D(A){return A===null||A===34||A===39||A===60||A===61||A===96?n(A):A===47||A===62||or(A)?R(A):(e.consume(A),D)}function z(A){return A===47||A===62||or(A)?R(A):n(A)}function W(A){return A===62?(e.consume(A),e.exit("htmlTextData"),e.exit("htmlText"),t):n(A)}function j(A){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(A),e.exit("lineEnding"),U}function U(A){return vn(A)?Rn(e,q,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(A):q(A)}function q(A){return e.enter("htmlTextData"),a(A)}}const c6={name:"labelEnd",tokenize:Txe,resolveTo:wxe,resolveAll:xxe},Cxe={tokenize:_xe},Sxe={tokenize:Oxe},Exe={tokenize:Ixe};function xxe(e){let t=-1;for(;++t<e.length;){const n=e[t][1];(n.type==="labelImage"||n.type==="labelLink"||n.type==="labelEnd")&&(e.splice(t+1,n.type==="labelImage"?4:2),n.type="data",t++)}return e}function wxe(e,t){let n=e.length,r=0,i,o,a,l;for(;n--;)if(i=e[n][1],o){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[n][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(a){if(e[n][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(o=n,i.type!=="labelLink")){r=2;break}}else i.type==="labelEnd"&&(a=n);const c={type:e[o][1].type==="labelLink"?"link":"image",start:Object.assign({},e[o][1].start),end:Object.assign({},e[e.length-1][1].end)},u={type:"label",start:Object.assign({},e[o][1].start),end:Object.assign({},e[a][1].end)},f={type:"labelText",start:Object.assign({},e[o+r+2][1].end),end:Object.assign({},e[a-2][1].start)};return l=[["enter",c,t],["enter",u,t]],l=Ca(l,e.slice(o+1,o+r+3)),l=Ca(l,[["enter",f,t]]),l=Ca(l,M2(t.parser.constructs.insideSpan.null,e.slice(o+r+4,a-3),t)),l=Ca(l,[["exit",f,t],e[a-2],e[a-1],["exit",u,t]]),l=Ca(l,e.slice(a+1)),l=Ca(l,[["exit",c,t]]),ta(e,o,e.length,l),e}function Txe(e,t,n){const r=this;let i=r.events.length,o,a;for(;i--;)if((r.events[i][1].type==="labelImage"||r.events[i][1].type==="labelLink")&&!r.events[i][1]._balanced){o=r.events[i][1];break}return l;function l(m){return o?o._inactive?p(m):(a=r.parser.defined.includes(rl(r.sliceSerialize({start:o.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(m),e.exit("labelMarker"),e.exit("labelEnd"),c):n(m)}function c(m){return m===40?e.attempt(Cxe,f,a?f:p)(m):m===91?e.attempt(Sxe,f,a?u:p)(m):a?f(m):p(m)}function u(m){return e.attempt(Exe,f,p)(m)}function f(m){return t(m)}function p(m){return o._balanced=!0,n(m)}}function _xe(e,t,n){return r;function r(p){return e.enter("resource"),e.enter("resourceMarker"),e.consume(p),e.exit("resourceMarker"),i}function i(p){return or(p)?mp(e,o)(p):o(p)}function o(p){return p===41?f(p):Rz(e,a,l,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(p)}function a(p){return or(p)?mp(e,c)(p):f(p)}function l(p){return n(p)}function c(p){return p===34||p===39||p===40?Pz(e,u,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(p):f(p)}function u(p){return or(p)?mp(e,f)(p):f(p)}function f(p){return p===41?(e.enter("resourceMarker"),e.consume(p),e.exit("resourceMarker"),e.exit("resource"),t):n(p)}}function Oxe(e,t,n){const r=this;return i;function i(l){return Mz.call(r,e,o,a,"reference","referenceMarker","referenceString")(l)}function o(l){return r.parser.defined.includes(rl(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(l):n(l)}function a(l){return n(l)}}function Ixe(e,t,n){return r;function r(o){return e.enter("reference"),e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),i}function i(o){return o===93?(e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),e.exit("reference"),t):n(o)}}const $xe={name:"labelStartImage",tokenize:Nxe,resolveAll:c6.resolveAll};function Nxe(e,t,n){const r=this;return i;function i(l){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(l),e.exit("labelImageMarker"),o}function o(l){return l===91?(e.enter("labelMarker"),e.consume(l),e.exit("labelMarker"),e.exit("labelImage"),a):n(l)}function a(l){return l===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(l):t(l)}}const Axe={name:"labelStartLink",tokenize:kxe,resolveAll:c6.resolveAll};function kxe(e,t,n){const r=this;return i;function i(a){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(a),e.exit("labelMarker"),e.exit("labelLink"),o}function o(a){return a===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(a):t(a)}}const F9={name:"lineEnding",tokenize:Rxe};function Rxe(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),Rn(e,t,"linePrefix")}}const Sv={name:"thematicBreak",tokenize:Mxe};function Mxe(e,t,n){let r=0,i;return o;function o(u){return e.enter("thematicBreak"),a(u)}function a(u){return i=u,l(u)}function l(u){return u===i?(e.enter("thematicBreakSequence"),c(u)):r>=3&&(u===null||tn(u))?(e.exit("thematicBreak"),t(u)):n(u)}function c(u){return u===i?(e.consume(u),r++,c):(e.exit("thematicBreakSequence"),vn(u)?Rn(e,l,"whitespace")(u):l(u))}}const wo={name:"list",tokenize:Dxe,continuation:{tokenize:Fxe},exit:jxe},Pxe={tokenize:Hxe,partial:!0},Lxe={tokenize:Bxe,partial:!0};function Dxe(e,t,n){const r=this,i=r.events[r.events.length-1];let o=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,a=0;return l;function l(g){const b=r.containerState.type||(g===42||g===43||g===45?"listUnordered":"listOrdered");if(b==="listUnordered"?!r.containerState.marker||g===r.containerState.marker:FE(g)){if(r.containerState.type||(r.containerState.type=b,e.enter(b,{_container:!0})),b==="listUnordered")return e.enter("listItemPrefix"),g===42||g===45?e.check(Sv,n,u)(g):u(g);if(!r.interrupt||g===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),c(g)}return n(g)}function c(g){return FE(g)&&++a<10?(e.consume(g),c):(!r.interrupt||a<2)&&(r.containerState.marker?g===r.containerState.marker:g===41||g===46)?(e.exit("listItemValue"),u(g)):n(g)}function u(g){return e.enter("listItemMarker"),e.consume(g),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||g,e.check(Qm,r.interrupt?n:f,e.attempt(Pxe,m,p))}function f(g){return r.containerState.initialBlankLine=!0,o++,m(g)}function p(g){return vn(g)?(e.enter("listItemPrefixWhitespace"),e.consume(g),e.exit("listItemPrefixWhitespace"),m):n(g)}function m(g){return r.containerState.size=o+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(g)}}function Fxe(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(Qm,i,o);function i(l){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,Rn(e,t,"listItemIndent",r.containerState.size+1)(l)}function o(l){return r.containerState.furtherBlankLines||!vn(l)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,a(l)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(Lxe,t,a)(l))}function a(l){return r.containerState._closeFlow=!0,r.interrupt=void 0,Rn(e,e.attempt(wo,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(l)}}function Bxe(e,t,n){const r=this;return Rn(e,i,"listItemIndent",r.containerState.size+1);function i(o){const a=r.events[r.events.length-1];return a&&a[1].type==="listItemIndent"&&a[2].sliceSerialize(a[1],!0).length===r.containerState.size?t(o):n(o)}}function jxe(e){e.exit(this.containerState.type)}function Hxe(e,t,n){const r=this;return Rn(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(o){const a=r.events[r.events.length-1];return!vn(o)&&a&&a[1].type==="listItemPrefixWhitespace"?t(o):n(o)}}const kA={name:"setextUnderline",tokenize:Wxe,resolveTo:zxe};function zxe(e,t){let n=e.length,r,i,o;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(i=n)}else e[n][1].type==="content"&&e.splice(n,1),!o&&e[n][1].type==="definition"&&(o=n);const a={type:"setextHeading",start:Object.assign({},e[i][1].start),end:Object.assign({},e[e.length-1][1].end)};return e[i][1].type="setextHeadingText",o?(e.splice(i,0,["enter",a,t]),e.splice(o+1,0,["exit",e[r][1],t]),e[r][1].end=Object.assign({},e[o][1].end)):e[r][1]=a,e.push(["exit",a,t]),e}function Wxe(e,t,n){const r=this;let i;return o;function o(u){let f=r.events.length,p;for(;f--;)if(r.events[f][1].type!=="lineEnding"&&r.events[f][1].type!=="linePrefix"&&r.events[f][1].type!=="content"){p=r.events[f][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||p)?(e.enter("setextHeadingLine"),i=u,a(u)):n(u)}function a(u){return e.enter("setextHeadingLineSequence"),l(u)}function l(u){return u===i?(e.consume(u),l):(e.exit("setextHeadingLineSequence"),vn(u)?Rn(e,c,"lineSuffix")(u):c(u))}function c(u){return u===null||tn(u)?(e.exit("setextHeadingLine"),t(u)):n(u)}}const Uxe={tokenize:Kxe};function Kxe(e){const t=this,n=e.attempt(Qm,r,e.attempt(this.parser.constructs.flowInitial,i,Rn(e,e.attempt(this.parser.constructs.flow,i,e.attempt(YEe,i)),"linePrefix")));return n;function r(o){if(o===null){e.consume(o);return}return e.enter("lineEndingBlank"),e.consume(o),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function i(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const Vxe={resolveAll:Dz()},Gxe=Lz("string"),qxe=Lz("text");function Lz(e){return{tokenize:t,resolveAll:Dz(e==="text"?Xxe:void 0)};function t(n){const r=this,i=this.parser.constructs[e],o=n.attempt(i,a,l);return a;function a(f){return u(f)?o(f):l(f)}function l(f){if(f===null){n.consume(f);return}return n.enter("data"),n.consume(f),c}function c(f){return u(f)?(n.exit("data"),o(f)):(n.consume(f),c)}function u(f){if(f===null)return!0;const p=i[f];let m=-1;if(p)for(;++m<p.length;){const g=p[m];if(!g.previous||g.previous.call(r,r.previous))return!0}return!1}}}function Dz(e){return t;function t(n,r){let i=-1,o;for(;++i<=n.length;)o===void 0?n[i]&&n[i][1].type==="data"&&(o=i,i++):(!n[i]||n[i][1].type!=="data")&&(i!==o+2&&(n[o][1].end=n[i-1][1].end,n.splice(o+2,i-o-2),i=o+2),o=void 0);return e?e(n,r):n}}function Xxe(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const r=e[n-1][1],i=t.sliceStream(r);let o=i.length,a=-1,l=0,c;for(;o--;){const u=i[o];if(typeof u=="string"){for(a=u.length;u.charCodeAt(a-1)===32;)l++,a--;if(a)break;a=-1}else if(u===-2)c=!0,l++;else if(u!==-1){o++;break}}if(l){const u={type:n===e.length||c||l<2?"lineSuffix":"hardBreakTrailing",start:{line:r.end.line,column:r.end.column-l,offset:r.end.offset-l,_index:r.start._index+o,_bufferIndex:o?a:r.start._bufferIndex+a},end:Object.assign({},r.end)};r.end=Object.assign({},u.start),r.start.offset===r.end.offset?Object.assign(r,u):(e.splice(n,0,["enter",u,t],["exit",u,t]),n+=2)}n++}return e}function Yxe(e,t,n){let r=Object.assign(n?Object.assign({},n):{line:1,column:1,offset:0},{_index:0,_bufferIndex:-1});const i={},o=[];let a=[],l=[];const c={consume:S,enter:T,exit:O,attempt:$(I),check:$(_),interrupt:$(_,{interrupt:!0})},u={previous:null,code:null,containerState:{},events:[],parser:e,sliceStream:g,sliceSerialize:m,now:b,defineSkip:E,write:p};let f=t.tokenize.call(u,c);return t.resolveAll&&o.push(t),u;function p(H){return a=Ca(a,H),x(),a[a.length-1]!==null?[]:(k(t,0),u.events=M2(o,u.events,u),u.events)}function m(H,B){return Zxe(g(H),B)}function g(H){return Qxe(a,H)}function b(){const{line:H,column:B,offset:L,_index:D,_bufferIndex:z}=r;return{line:H,column:B,offset:L,_index:D,_bufferIndex:z}}function E(H){i[H.line]=H.column,M()}function x(){let H;for(;r._index<a.length;){const B=a[r._index];if(typeof B=="string")for(H=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===H&&r._bufferIndex<B.length;)C(B.charCodeAt(r._bufferIndex));else C(B)}}function C(H){f=f(H)}function S(H){tn(H)?(r.line++,r.column=1,r.offset+=H===-3?2:1,M()):H!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===a[r._index].length&&(r._bufferIndex=-1,r._index++)),u.previous=H}function T(H,B){const L=B||{};return L.type=H,L.start=b(),u.events.push(["enter",L,u]),l.push(L),L}function O(H){const B=l.pop();return B.end=b(),u.events.push(["exit",B,u]),B}function I(H,B){k(H,B.from)}function _(H,B){B.restore()}function $(H,B){return L;function L(D,z,W){let j,U,q,A;return Array.isArray(D)?Z(D):"tokenize"in D?Z([D]):P(D);function P(ue){return ne;function ne(se){const me=se!==null&&ue[se],ye=se!==null&&ue.null,de=[...Array.isArray(me)?me:me?[me]:[],...Array.isArray(ye)?ye:ye?[ye]:[]];return Z(de)(se)}}function Z(ue){return j=ue,U=0,ue.length===0?W:V(ue[U])}function V(ue){return ne;function ne(se){return A=R(),q=ue,ue.partial||(u.currentConstruct=ue),ue.name&&u.parser.constructs.disable.null.includes(ue.name)?ee():ue.tokenize.call(B?Object.assign(Object.create(u),B):u,c,Y,ee)(se)}}function Y(ue){return H(q,A),z}function ee(ue){return A.restore(),++U<j.length?V(j[U]):W}}}function k(H,B){H.resolveAll&&!o.includes(H)&&o.push(H),H.resolve&&ta(u.events,B,u.events.length-B,H.resolve(u.events.slice(B),u)),H.resolveTo&&(u.events=H.resolveTo(u.events,u))}function R(){const H=b(),B=u.previous,L=u.currentConstruct,D=u.events.length,z=Array.from(l);return{restore:W,from:D};function W(){r=H,u.previous=B,u.currentConstruct=L,u.events.length=D,l=z,M()}}function M(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function Qxe(e,t){const n=t.start._index,r=t.start._bufferIndex,i=t.end._index,o=t.end._bufferIndex;let a;if(n===i)a=[e[n].slice(r,o)];else{if(a=e.slice(n,i),r>-1){const l=a[0];typeof l=="string"?a[0]=l.slice(r):a.shift()}o>0&&a.push(e[i].slice(0,o))}return a}function Zxe(e,t){let n=-1;const r=[];let i;for(;++n<e.length;){const o=e[n];let a;if(typeof o=="string")a=o;else switch(o){case-5:{a="\r";break}case-4:{a=`
`;break}case-3:{a=`\r
`;break}case-2:{a=t?" ":" ";break}case-1:{if(!t&&i)continue;a=" ";break}default:a=String.fromCharCode(o)}i=o===-2,r.push(a)}return r.join("")}const Jxe={42:wo,43:wo,45:wo,48:wo,49:wo,50:wo,51:wo,52:wo,53:wo,54:wo,55:wo,56:wo,57:wo,62:$z},e8e={91:txe},t8e={[-2]:D9,[-1]:D9,32:D9},n8e={35:lxe,42:Sv,45:[kA,Sv],60:dxe,61:kA,95:Sv,96:NA,126:NA},r8e={38:Az,92:Nz},i8e={[-5]:F9,[-4]:F9,[-3]:F9,33:$xe,38:Az,42:BE,60:[kEe,yxe],91:Axe,92:[oxe,Nz],93:c6,95:BE,96:KEe},o8e={null:[BE,Vxe]},a8e={null:[42,95]},l8e={null:[]},s8e=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:a8e,contentInitial:e8e,disable:l8e,document:Jxe,flow:n8e,flowInitial:t8e,insideSpan:o8e,string:r8e,text:i8e},Symbol.toStringTag,{value:"Module"}));function c8e(e){const n=Iz([s8e,...(e||{}).extensions||[]]),r={defined:[],lazy:{},constructs:n,content:i(TEe),document:i(OEe),flow:i(Uxe),string:i(Gxe),text:i(qxe)};return r;function i(o){return a;function a(l){return Yxe(r,o,l)}}}const RA=/[\0\t\n\r]/g;function u8e(){let e=1,t="",n=!0,r;return i;function i(o,a,l){const c=[];let u,f,p,m,g;for(o=t+o.toString(a),p=0,t="",n&&(o.charCodeAt(0)===65279&&p++,n=void 0);p<o.length;){if(RA.lastIndex=p,u=RA.exec(o),m=u&&u.index!==void 0?u.index:o.length,g=o.charCodeAt(m),!u){t=o.slice(p);break}if(g===10&&p===m&&r)c.push(-3),r=void 0;else switch(r&&(c.push(-5),r=void 0),p<m&&(c.push(o.slice(p,m)),e+=m-p),g){case 0:{c.push(65533),e++;break}case 9:{for(f=Math.ceil(e/4)*4,c.push(-2);e++<f;)c.push(-1);break}case 10:{c.push(-4),e=1;break}default:r=!0,e=1}p=m+1}return l&&(r&&c.push(-5),t&&c.push(t),c.push(null)),c}}function d8e(e){for(;!kz(e););return e}function Fz(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"<22>":String.fromCharCode(n)}const f8e=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Bz(e){return e.replace(f8e,h8e)}function h8e(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const i=n.charCodeAt(1),o=i===120||i===88;return Fz(n.slice(o?2:1),o?16:10)}return s6(n)||e}function gp(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?MA(e.position):"start"in e||"end"in e?MA(e):"line"in e||"column"in e?jE(e):""}function jE(e){return PA(e&&e.line)+":"+PA(e&&e.column)}function MA(e){return jE(e&&e.start)+"-"+jE(e&&e.end)}function PA(e){return e&&typeof e=="number"?e:1}const jz={}.hasOwnProperty,p8e=function(e,t,n){return typeof t!="string"&&(n=t,t=void 0),m8e(n)(d8e(c8e(n).document().write(u8e()(e,t,!0))))};function m8e(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:l(Se),autolinkProtocol:H,autolinkEmail:H,atxHeading:l(Te),blockQuote:l(de),characterEscape:H,characterReference:H,codeFenced:l(ce),codeFencedFenceInfo:c,codeFencedFenceMeta:c,codeIndented:l(ce,c),codeText:l(oe,c),codeTextData:H,data:H,codeFlowValue:H,definition:l(pe),definitionDestinationString:c,definitionLabelString:c,definitionTitleString:c,emphasis:l(ve),hardBreakEscape:l(Ge),hardBreakTrailing:l(Ge),htmlFlow:l(je,c),htmlFlowData:H,htmlText:l(je,c),htmlTextData:H,image:l(Je),label:c,link:l(Se),listItem:l(qe),listItemValue:b,listOrdered:l($e,g),listUnordered:l($e),paragraph:l(Le),reference:ee,referenceString:c,resourceDestinationString:c,resourceTitleString:c,setextHeading:l(Te),strong:l(Fe),thematicBreak:l(Ve)},exit:{atxHeading:f(),atxHeadingSequence:$,autolink:f(),autolinkEmail:ye,autolinkProtocol:me,blockQuote:f(),characterEscapeValue:B,characterReferenceMarkerHexadecimal:ne,characterReferenceMarkerNumeric:ne,characterReferenceValue:se,codeFenced:f(S),codeFencedFence:C,codeFencedFenceInfo:E,codeFencedFenceMeta:x,codeFlowValue:B,codeIndented:f(T),codeText:f(j),codeTextData:B,data:B,definition:f(),definitionDestinationString:_,definitionLabelString:O,definitionTitleString:I,emphasis:f(),hardBreakEscape:f(D),hardBreakTrailing:f(D),htmlFlow:f(z),htmlFlowData:B,htmlText:f(W),htmlTextData:B,image:f(q),label:P,labelText:A,lineEnding:L,link:f(U),listItem:f(),listOrdered:f(),listUnordered:f(),paragraph:f(),referenceString:ue,resourceDestinationString:Z,resourceTitleString:V,resource:Y,setextHeading:f(M),setextHeadingLineSequence:R,setextHeadingText:k,strong:f(),thematicBreak:f()}};Hz(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(Ce){let Pe={type:"root",children:[]};const We={stack:[Pe],tokenStack:[],config:t,enter:u,exit:p,buffer:c,resume:m,setData:o,getData:a},Ze=[];let ut=-1;for(;++ut<Ce.length;)if(Ce[ut][1].type==="listOrdered"||Ce[ut][1].type==="listUnordered")if(Ce[ut][0]==="enter")Ze.push(ut);else{const Be=Ze.pop();ut=i(Ce,Be,ut)}for(ut=-1;++ut<Ce.length;){const Be=t[Ce[ut][0]];jz.call(Be,Ce[ut][1].type)&&Be[Ce[ut][1].type].call(Object.assign({sliceSerialize:Ce[ut][2].sliceSerialize},We),Ce[ut][1])}if(We.tokenStack.length>0){const Be=We.tokenStack[We.tokenStack.length-1];(Be[1]||LA).call(We,void 0,Be[0])}for(Pe.position={start:Bs(Ce.length>0?Ce[0][1].start:{line:1,column:1,offset:0}),end:Bs(Ce.length>0?Ce[Ce.length-2][1].end:{line:1,column:1,offset:0})},ut=-1;++ut<t.transforms.length;)Pe=t.transforms[ut](Pe)||Pe;return Pe}function i(Ce,Pe,We){let Ze=Pe-1,ut=-1,Be=!1,ot,re,Ie,Re;for(;++Ze<=We;){const Ae=Ce[Ze];if(Ae[1].type==="listUnordered"||Ae[1].type==="listOrdered"||Ae[1].type==="blockQuote"?(Ae[0]==="enter"?ut++:ut--,Re=void 0):Ae[1].type==="lineEndingBlank"?Ae[0]==="enter"&&(ot&&!Re&&!ut&&!Ie&&(Ie=Ze),Re=void 0):Ae[1].type==="linePrefix"||Ae[1].type==="listItemValue"||Ae[1].type==="listItemMarker"||Ae[1].type==="listItemPrefix"||Ae[1].type==="listItemPrefixWhitespace"||(Re=void 0),!ut&&Ae[0]==="enter"&&Ae[1].type==="listItemPrefix"||ut===-1&&Ae[0]==="exit"&&(Ae[1].type==="listUnordered"||Ae[1].type==="listOrdered")){if(ot){let Ye=Ze;for(re=void 0;Ye--;){const mt=Ce[Ye];if(mt[1].type==="lineEnding"||mt[1].type==="lineEndingBlank"){if(mt[0]==="exit")continue;re&&(Ce[re][1].type="lineEndingBlank",Be=!0),mt[1].type="lineEnding",re=Ye}else if(!(mt[1].type==="linePrefix"||mt[1].type==="blockQuotePrefix"||mt[1].type==="blockQuotePrefixWhitespace"||mt[1].type==="blockQuoteMarker"||mt[1].type==="listItemIndent"))break}Ie&&(!re||Ie<re)&&(ot._spread=!0),ot.end=Object.assign({},re?Ce[re][1].start:Ae[1].end),Ce.splice(re||Ze,0,["exit",ot,Ae[2]]),Ze++,We++}Ae[1].type==="listItemPrefix"&&(ot={type:"listItem",_spread:!1,start:Object.assign({},Ae[1].start),end:void 0},Ce.splice(Ze,0,["enter",ot,Ae[2]]),Ze++,We++,Ie=void 0,Re=!0)}}return Ce[Pe][1]._spread=Be,We}function o(Ce,Pe){n[Ce]=Pe}function a(Ce){return n[Ce]}function l(Ce,Pe){return We;function We(Ze){u.call(this,Ce(Ze),Ze),Pe&&Pe.call(this,Ze)}}function c(){this.stack.push({type:"fragment",children:[]})}function u(Ce,Pe,We){return this.stack[this.stack.length-1].children.push(Ce),this.stack.push(Ce),this.tokenStack.push([Pe,We]),Ce.position={start:Bs(Pe.start)},Ce}function f(Ce){return Pe;function Pe(We){Ce&&Ce.call(this,We),p.call(this,We)}}function p(Ce,Pe){const We=this.stack.pop(),Ze=this.tokenStack.pop();if(Ze)Ze[0].type!==Ce.type&&(Pe?Pe.call(this,Ce,Ze[0]):(Ze[1]||LA).call(this,Ce,Ze[0]));else throw new Error("Cannot close `"+Ce.type+"` ("+gp({start:Ce.start,end:Ce.end})+"): its not open");return We.position.end=Bs(Ce.end),We}function m(){return vEe(this.stack.pop())}function g(){o("expectingFirstListItemValue",!0)}function b(Ce){if(a("expectingFirstListItemValue")){const Pe=this.stack[this.stack.length-2];Pe.start=Number.parseInt(this.sliceSerialize(Ce),10),o("expectingFirstListItemValue")}}function E(){const Ce=this.resume(),Pe=this.stack[this.stack.length-1];Pe.lang=Ce}function x(){const Ce=this.resume(),Pe=this.stack[this.stack.length-1];Pe.meta=Ce}function C(){a("flowCodeInside")||(this.buffer(),o("flowCodeInside",!0))}function S(){const Ce=this.resume(),Pe=this.stack[this.stack.length-1];Pe.value=Ce.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),o("flowCodeInside")}function T(){const Ce=this.resume(),Pe=this.stack[this.stack.length-1];Pe.value=Ce.replace(/(\r?\n|\r)$/g,"")}function O(Ce){const Pe=this.resume(),We=this.stack[this.stack.length-1];We.label=Pe,We.identifier=rl(this.sliceSerialize(Ce)).toLowerCase()}function I(){const Ce=this.resume(),Pe=this.stack[this.stack.length-1];Pe.title=Ce}function _(){const Ce=this.resume(),Pe=this.stack[this.stack.length-1];Pe.url=Ce}function $(Ce){const Pe=this.stack[this.stack.length-1];if(!Pe.depth){const We=this.sliceSerialize(Ce).length;Pe.depth=We}}function k(){o("setextHeadingSlurpLineEnding",!0)}function R(Ce){const Pe=this.stack[this.stack.length-1];Pe.depth=this.sliceSerialize(Ce).charCodeAt(0)===61?1:2}function M(){o("setextHeadingSlurpLineEnding")}function H(Ce){const Pe=this.stack[this.stack.length-1];let We=Pe.children[Pe.children.length-1];(!We||We.type!=="text")&&(We=Ke(),We.position={start:Bs(Ce.start)},Pe.children.push(We)),this.stack.push(We)}function B(Ce){const Pe=this.stack.pop();Pe.value+=this.sliceSerialize(Ce),Pe.position.end=Bs(Ce.end)}function L(Ce){const Pe=this.stack[this.stack.length-1];if(a("atHardBreak")){const We=Pe.children[Pe.children.length-1];We.position.end=Bs(Ce.end),o("atHardBreak");return}!a("setextHeadingSlurpLineEnding")&&t.canContainEols.includes(Pe.type)&&(H.call(this,Ce),B.call(this,Ce))}function D(){o("atHardBreak",!0)}function z(){const Ce=this.resume(),Pe=this.stack[this.stack.length-1];Pe.value=Ce}function W(){const Ce=this.resume(),Pe=this.stack[this.stack.length-1];Pe.value=Ce}function j(){const Ce=this.resume(),Pe=this.stack[this.stack.length-1];Pe.value=Ce}function U(){const Ce=this.stack[this.stack.length-1];if(a("inReference")){const Pe=a("referenceType")||"shortcut";Ce.type+="Reference",Ce.referenceType=Pe,delete Ce.url,delete Ce.title}else delete Ce.identifier,delete Ce.label;o("referenceType")}function q(){const Ce=this.stack[this.stack.length-1];if(a("inReference")){const Pe=a("referenceType")||"shortcut";Ce.type+="Reference",Ce.referenceType=Pe,delete Ce.url,delete Ce.title}else delete Ce.identifier,delete Ce.label;o("referenceType")}function A(Ce){const Pe=this.sliceSerialize(Ce),We=this.stack[this.stack.length-2];We.label=Bz(Pe),We.identifier=rl(Pe).toLowerCase()}function P(){const Ce=this.stack[this.stack.length-1],Pe=this.resume(),We=this.stack[this.stack.length-1];if(o("inReference",!0),We.type==="link"){const Ze=Ce.children;We.children=Ze}else We.alt=Pe}function Z(){const Ce=this.resume(),Pe=this.stack[this.stack.length-1];Pe.url=Ce}function V(){const Ce=this.resume(),Pe=this.stack[this.stack.length-1];Pe.title=Ce}function Y(){o("inReference")}function ee(){o("referenceType","collapsed")}function ue(Ce){const Pe=this.resume(),We=this.stack[this.stack.length-1];We.label=Pe,We.identifier=rl(this.sliceSerialize(Ce)).toLowerCase(),o("referenceType","full")}function ne(Ce){o("characterReferenceType",Ce.type)}function se(Ce){const Pe=this.sliceSerialize(Ce),We=a("characterReferenceType");let Ze;We?(Ze=Fz(Pe,We==="characterReferenceMarkerNumeric"?10:16),o("characterReferenceType")):Ze=s6(Pe);const ut=this.stack.pop();ut.value+=Ze,ut.position.end=Bs(Ce.end)}function me(Ce){B.call(this,Ce);const Pe=this.stack[this.stack.length-1];Pe.url=this.sliceSerialize(Ce)}function ye(Ce){B.call(this,Ce);const Pe=this.stack[this.stack.length-1];Pe.url="mailto:"+this.sliceSerialize(Ce)}function de(){return{type:"blockquote",children:[]}}function ce(){return{type:"code",lang:null,meta:null,value:""}}function oe(){return{type:"inlineCode",value:""}}function pe(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function ve(){return{type:"emphasis",children:[]}}function Te(){return{type:"heading",depth:void 0,children:[]}}function Ge(){return{type:"break"}}function je(){return{type:"html",value:""}}function Je(){return{type:"image",title:null,url:"",alt:null}}function Se(){return{type:"link",title:null,url:"",children:[]}}function $e(Ce){return{type:"list",ordered:Ce.type==="listOrdered",start:null,spread:Ce._spread,children:[]}}function qe(Ce){return{type:"listItem",spread:Ce._spread,checked:null,children:[]}}function Le(){return{type:"paragraph",children:[]}}function Fe(){return{type:"strong",children:[]}}function Ke(){return{type:"text",value:""}}function Ve(){return{type:"thematicBreak"}}}function Bs(e){return{line:e.line,column:e.column,offset:e.offset}}function Hz(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?Hz(e,r):g8e(e,r)}}function g8e(e,t){let n;for(n in t)if(jz.call(t,n)){if(n==="canContainEols"){const r=t[n];r&&e[n].push(...r)}else if(n==="transforms"){const r=t[n];r&&e[n].push(...r)}else if(n==="enter"||n==="exit"){const r=t[n];r&&Object.assign(e[n],r)}}}function LA(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+gp({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+gp({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+gp({start:t.start,end:t.end})+") is still open")}function v8e(e){Object.assign(this,{Parser:n=>{const r=this.data("settings");return p8e(n,Object.assign({},r,e,{extensions:this.data("micromarkExtensions")||[],mdastExtensions:this.data("fromMarkdownExtensions")||[]}))}})}function y8e(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function b8e(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
`}]}function C8e(e,t){const n=t.value?t.value+`
`:"",r=t.lang?t.lang.match(/^[^ \t]+(?=[ \t]|$)/):null,i={};r&&(i.className=["language-"+r]);let o={type:"element",tagName:"code",properties:i,children:[{type:"text",value:n}]};return t.meta&&(o.data={meta:t.meta}),e.patch(t,o),o=e.applyData(t,o),o={type:"element",tagName:"pre",properties:{},children:[o]},e.patch(t,o),o}function S8e(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function E8e(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function w1(e){const t=[];let n=-1,r=0,i=0;for(;++n<e.length;){const o=e.charCodeAt(n);let a="";if(o===37&&Xi(e.charCodeAt(n+1))&&Xi(e.charCodeAt(n+2)))i=2;else if(o<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(o))||(a=String.fromCharCode(o));else if(o>55295&&o<57344){const l=e.charCodeAt(n+1);o<56320&&l>56319&&l<57344?(a=String.fromCharCode(o,l),i=1):a="<22>"}else a=String.fromCharCode(o);a&&(t.push(e.slice(r,n),encodeURIComponent(a)),r=n+i+1,a=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function zz(e,t){const n=String(t.identifier).toUpperCase(),r=w1(n.toLowerCase()),i=e.footnoteOrder.indexOf(n);let o;i===-1?(e.footnoteOrder.push(n),e.footnoteCounts[n]=1,o=e.footnoteOrder.length):(e.footnoteCounts[n]++,o=i+1);const a=e.footnoteCounts[n],l={type:"element",tagName:"a",properties:{href:"#"+e.clobberPrefix+"fn-"+r,id:e.clobberPrefix+"fnref-"+r+(a>1?"-"+a:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(o)}]};e.patch(t,l);const c={type:"element",tagName:"sup",properties:{},children:[l]};return e.patch(t,c),e.applyData(t,c)}function x8e(e,t){const n=e.footnoteById;let r=1;for(;r in n;)r++;const i=String(r);return n[i]={type:"footnoteDefinition",identifier:i,children:[{type:"paragraph",children:t.children}],position:t.position},zz(e,{type:"footnoteReference",identifier:i,position:t.position})}function w8e(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function T8e(e,t){if(e.dangerous){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}return null}function Wz(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return{type:"text",value:"!["+t.alt+r};const i=e.all(t),o=i[0];o&&o.type==="text"?o.value="["+o.value:i.unshift({type:"text",value:"["});const a=i[i.length-1];return a&&a.type==="text"?a.value+=r:i.push({type:"text",value:r}),i}function _8e(e,t){const n=e.definition(t.identifier);if(!n)return Wz(e,t);const r={src:w1(n.url||""),alt:t.alt};n.title!==null&&n.title!==void 0&&(r.title=n.title);const i={type:"element",tagName:"img",properties:r,children:[]};return e.patch(t,i),e.applyData(t,i)}function O8e(e,t){const n={src:w1(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function I8e(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function $8e(e,t){const n=e.definition(t.identifier);if(!n)return Wz(e,t);const r={href:w1(n.url||"")};n.title!==null&&n.title!==void 0&&(r.title=n.title);const i={type:"element",tagName:"a",properties:r,children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function N8e(e,t){const n={href:w1(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function A8e(e,t,n){const r=e.all(t),i=n?k8e(n):Uz(t),o={},a=[];if(typeof t.checked=="boolean"){const f=r[0];let p;f&&f.type==="element"&&f.tagName==="p"?p=f:(p={type:"element",tagName:"p",properties:{},children:[]},r.unshift(p)),p.children.length>0&&p.children.unshift({type:"text",value:" "}),p.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}let l=-1;for(;++l<r.length;){const f=r[l];(i||l!==0||f.type!=="element"||f.tagName!=="p")&&a.push({type:"text",value:`
`}),f.type==="element"&&f.tagName==="p"&&!i?a.push(...f.children):a.push(f)}const c=r[r.length-1];c&&(i||c.type!=="element"||c.tagName!=="p")&&a.push({type:"text",value:`
`});const u={type:"element",tagName:"li",properties:o,children:a};return e.patch(t,u),e.applyData(t,u)}function k8e(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=Uz(n[r])}return t}function Uz(e){const t=e.spread;return t??e.children.length>1}function R8e(e,t){const n={},r=e.all(t);let i=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++i<r.length;){const a=r[i];if(a.type==="element"&&a.tagName==="li"&&a.properties&&Array.isArray(a.properties.className)&&a.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const o={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,o),e.applyData(t,o)}function M8e(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function P8e(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function L8e(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function D8e(e,t){const n=e.all(t),r=n.shift(),i=[];if(r){const a={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],a),i.push(a)}if(n.length>0){const a={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},l=qm(t.children[1]),c=A2(t.children[t.children.length-1]);l.line&&c.line&&(a.position={start:l,end:c}),i.push(a)}const o={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,o),e.applyData(t,o)}function F8e(e,t,n){const r=n?n.children:void 0,o=(r?r.indexOf(t):1)===0?"th":"td",a=n&&n.type==="table"?n.align:void 0,l=a?a.length:t.children.length;let c=-1;const u=[];for(;++c<l;){const p=t.children[c],m={},g=a?a[c]:void 0;g&&(m.align=g);let b={type:"element",tagName:o,properties:m,children:[]};p&&(b.children=e.all(p),e.patch(p,b),b=e.applyData(t,b)),u.push(b)}const f={type:"element",tagName:"tr",properties:{},children:e.wrap(u,!0)};return e.patch(t,f),e.applyData(t,f)}function B8e(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const DA=9,FA=32;function j8e(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),i=0;const o=[];for(;r;)o.push(BA(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return o.push(BA(t.slice(i),i>0,!1)),o.join("")}function BA(e,t,n){let r=0,i=e.length;if(t){let o=e.codePointAt(r);for(;o===DA||o===FA;)r++,o=e.codePointAt(r)}if(n){let o=e.codePointAt(i-1);for(;o===DA||o===FA;)i--,o=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function H8e(e,t){const n={type:"text",value:j8e(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function z8e(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const W8e={blockquote:y8e,break:b8e,code:C8e,delete:S8e,emphasis:E8e,footnoteReference:zz,footnote:x8e,heading:w8e,html:T8e,imageReference:_8e,image:O8e,inlineCode:I8e,linkReference:$8e,link:N8e,listItem:A8e,list:R8e,paragraph:M8e,root:P8e,strong:L8e,table:D8e,tableCell:B8e,tableRow:F8e,text:H8e,thematicBreak:z8e,toml:Rg,yaml:Rg,definition:Rg,footnoteDefinition:Rg};function Rg(){return null}function U8e(e){return!e||!e.position||!e.position.start||!e.position.start.line||!e.position.start.column||!e.position.end||!e.position.end.line||!e.position.end.column}const jA={}.hasOwnProperty;function K8e(e){const t=Object.create(null);if(!e||!e.type)throw new Error("mdast-util-definitions expected node");return Um(e,"definition",r=>{const i=HA(r.identifier);i&&!jA.call(t,i)&&(t[i]=r)}),n;function n(r){const i=HA(r);return i&&jA.call(t,i)?t[i]:null}}function HA(e){return String(e||"").toUpperCase()}const Dy={}.hasOwnProperty;function V8e(e,t){const n=t||{},r=n.allowDangerousHtml||!1,i={};return a.dangerous=r,a.clobberPrefix=n.clobberPrefix===void 0||n.clobberPrefix===null?"user-content-":n.clobberPrefix,a.footnoteLabel=n.footnoteLabel||"Footnotes",a.footnoteLabelTagName=n.footnoteLabelTagName||"h2",a.footnoteLabelProperties=n.footnoteLabelProperties||{className:["sr-only"]},a.footnoteBackLabel=n.footnoteBackLabel||"Back to content",a.unknownHandler=n.unknownHandler,a.passThrough=n.passThrough,a.handlers={...W8e,...n.handlers},a.definition=K8e(e),a.footnoteById=i,a.footnoteOrder=[],a.footnoteCounts={},a.patch=G8e,a.applyData=q8e,a.one=l,a.all=c,a.wrap=Y8e,a.augment=o,Um(e,"footnoteDefinition",u=>{const f=String(u.identifier).toUpperCase();Dy.call(i,f)||(i[f]=u)}),a;function o(u,f){if(u&&"data"in u&&u.data){const p=u.data;p.hName&&(f.type!=="element"&&(f={type:"element",tagName:"",properties:{},children:[]}),f.tagName=p.hName),f.type==="element"&&p.hProperties&&(f.properties={...f.properties,...p.hProperties}),"children"in f&&f.children&&p.hChildren&&(f.children=p.hChildren)}if(u){const p="type"in u?u:{position:u};U8e(p)||(f.position={start:qm(p),end:A2(p)})}return f}function a(u,f,p,m){return Array.isArray(p)&&(m=p,p={}),o(u,{type:"element",tagName:f,properties:p||{},children:m||[]})}function l(u,f){return Kz(a,u,f)}function c(u){return u6(a,u)}}function G8e(e,t){e.position&&(t.position=TCe(e))}function q8e(e,t){let n=t;if(e&&e.data){const r=e.data.hName,i=e.data.hChildren,o=e.data.hProperties;typeof r=="string"&&(n.type==="element"?n.tagName=r:n={type:"element",tagName:r,properties:{},children:[]}),n.type==="element"&&o&&(n.properties={...n.properties,...o}),"children"in n&&n.children&&i!==null&&i!==void 0&&(n.children=i)}return n}function Kz(e,t,n){const r=t&&t.type;if(!r)throw new Error("Expected node, got `"+t+"`");return Dy.call(e.handlers,r)?e.handlers[r](e,t,n):e.passThrough&&e.passThrough.includes(r)?"children"in t?{...t,children:u6(e,t)}:t:e.unknownHandler?e.unknownHandler(e,t,n):X8e(e,t)}function u6(e,t){const n=[];if("children"in t){const r=t.children;let i=-1;for(;++i<r.length;){const o=Kz(e,r[i],t);if(o){if(i&&r[i-1].type==="break"&&(!Array.isArray(o)&&o.type==="text"&&(o.value=o.value.replace(/^\s+/,"")),!Array.isArray(o)&&o.type==="element")){const a=o.children[0];a&&a.type==="text"&&(a.value=a.value.replace(/^\s+/,""))}Array.isArray(o)?n.push(...o):n.push(o)}}}return n}function X8e(e,t){const n=t.data||{},r="value"in t&&!(Dy.call(n,"hProperties")||Dy.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:u6(e,t)};return e.patch(t,r),e.applyData(t,r)}function Y8e(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:`
`});++r<e.length;)r&&n.push({type:"text",value:`
`}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:`
`}),n}function Q8e(e){const t=[];let n=-1;for(;++n<e.footnoteOrder.length;){const r=e.footnoteById[e.footnoteOrder[n]];if(!r)continue;const i=e.all(r),o=String(r.identifier).toUpperCase(),a=w1(o.toLowerCase());let l=0;const c=[];for(;++l<=e.footnoteCounts[o];){const p={type:"element",tagName:"a",properties:{href:"#"+e.clobberPrefix+"fnref-"+a+(l>1?"-"+l:""),dataFootnoteBackref:!0,className:["data-footnote-backref"],ariaLabel:e.footnoteBackLabel},children:[{type:"text",value:"↩"}]};l>1&&p.children.push({type:"element",tagName:"sup",children:[{type:"text",value:String(l)}]}),c.length>0&&c.push({type:"text",value:" "}),c.push(p)}const u=i[i.length-1];if(u&&u.type==="element"&&u.tagName==="p"){const p=u.children[u.children.length-1];p&&p.type==="text"?p.value+=" ":u.children.push({type:"text",value:" "}),u.children.push(...c)}else i.push(...c);const f={type:"element",tagName:"li",properties:{id:e.clobberPrefix+"fn-"+a},children:e.wrap(i,!0)};e.patch(r,f),t.push(f)}if(t.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:e.footnoteLabelTagName,properties:{...JSON.parse(JSON.stringify(e.footnoteLabelProperties)),id:"footnote-label"},children:[{type:"text",value:e.footnoteLabel}]},{type:"text",value:`
`},{type:"element",tagName:"ol",properties:{},children:e.wrap(t,!0)},{type:"text",value:`
`}]}}function Vz(e,t){const n=V8e(e,t),r=n.one(e,null),i=Q8e(n);return i&&r.children.push({type:"text",value:`
`},i),Array.isArray(r)?{type:"root",children:r}:r}const Z8e=function(e,t){return e&&"run"in e?J8e(e,t):e3e(e||t)};function J8e(e,t){return(n,r,i)=>{e.run(Vz(n,t),r,o=>{i(o)})}}function e3e(e){return t=>Vz(t,e)}function zA(e){if(e)throw e}/*!
* Determine if an object is a Buffer
*
* @author Feross Aboukhadijeh <https://feross.org>
* @license MIT
*/var t3e=function(t){return t!=null&&t.constructor!=null&&typeof t.constructor.isBuffer=="function"&&t.constructor.isBuffer(t)};const Gz=ul(t3e);var Ev=Object.prototype.hasOwnProperty,qz=Object.prototype.toString,WA=Object.defineProperty,UA=Object.getOwnPropertyDescriptor,KA=function(t){return typeof Array.isArray=="function"?Array.isArray(t):qz.call(t)==="[object Array]"},VA=function(t){if(!t||qz.call(t)!=="[object Object]")return!1;var n=Ev.call(t,"constructor"),r=t.constructor&&t.constructor.prototype&&Ev.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!n&&!r)return!1;var i;for(i in t);return typeof i>"u"||Ev.call(t,i)},GA=function(t,n){WA&&n.name==="__proto__"?WA(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},qA=function(t,n){if(n==="__proto__")if(Ev.call(t,n)){if(UA)return UA(t,n).value}else return;return t[n]},n3e=function e(){var t,n,r,i,o,a,l=arguments[0],c=1,u=arguments.length,f=!1;for(typeof l=="boolean"&&(f=l,l=arguments[1]||{},c=2),(l==null||typeof l!="object"&&typeof l!="function")&&(l={});c<u;++c)if(t=arguments[c],t!=null)for(n in t)r=qA(l,n),i=qA(t,n),l!==i&&(f&&i&&(VA(i)||(o=KA(i)))?(o?(o=!1,a=r&&KA(r)?r:[]):a=r&&VA(r)?r:{},GA(l,{name:n,newValue:e(f,a,i)})):typeof i<"u"&&GA(l,{name:n,newValue:i}));return l};const XA=ul(n3e);function HE(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function r3e(){const e=[],t={run:n,use:r};return t;function n(...i){let o=-1;const a=i.pop();if(typeof a!="function")throw new TypeError("Expected function as last argument, not "+a);l(null,...i);function l(c,...u){const f=e[++o];let p=-1;if(c){a(c);return}for(;++p<i.length;)(u[p]===null||u[p]===void 0)&&(u[p]=i[p]);i=u,f?i3e(f,l)(...u):a(null,...u)}}function r(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return e.push(i),t}}function i3e(e,t){let n;return r;function r(...a){const l=e.length>a.length;let c;l&&a.push(i);try{c=e.apply(this,a)}catch(u){const f=u;if(l&&n)throw f;return i(f)}l||(c&&c.then&&typeof c.then=="function"?c.then(o,i):c instanceof Error?i(c):o(c))}function i(a,...l){n||(n=!0,t(a,...l))}function o(a){i(null,a)}}class La extends Error{constructor(t,n,r){const i=[null,null];let o={start:{line:null,column:null},end:{line:null,column:null}};if(super(),typeof n=="string"&&(r=n,n=void 0),typeof r=="string"){const a=r.indexOf(":");a===-1?i[1]=r:(i[0]=r.slice(0,a),i[1]=r.slice(a+1))}n&&("type"in n||"position"in n?n.position&&(o=n.position):"start"in n||"end"in n?o=n:("line"in n||"column"in n)&&(o.start=n)),this.name=gp(n)||"1:1",this.message=typeof t=="object"?t.message:t,this.stack="",typeof t=="object"&&t.stack&&(this.stack=t.stack),this.reason=this.message,this.fatal,this.line=o.start.line,this.column=o.start.column,this.position=o,this.source=i[0],this.ruleId=i[1],this.file,this.actual,this.expected,this.url,this.note}}La.prototype.file="";La.prototype.name="";La.prototype.reason="";La.prototype.message="";La.prototype.stack="";La.prototype.fatal=null;La.prototype.column=null;La.prototype.line=null;La.prototype.source=null;La.prototype.ruleId=null;La.prototype.position=null;const Sl={basename:o3e,dirname:a3e,extname:l3e,join:s3e,sep:"/"};function o3e(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');Zm(e);let n=0,r=-1,i=e.length,o;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.charCodeAt(i)===47){if(o){n=i+1;break}}else r<0&&(o=!0,r=i+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let a=-1,l=t.length-1;for(;i--;)if(e.charCodeAt(i)===47){if(o){n=i+1;break}}else a<0&&(o=!0,a=i+1),l>-1&&(e.charCodeAt(i)===t.charCodeAt(l--)?l<0&&(r=i):(l=-1,r=a));return n===r?r=a:r<0&&(r=e.length),e.slice(n,r)}function a3e(e){if(Zm(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.charCodeAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.charCodeAt(0)===47?"/":".":t===1&&e.charCodeAt(0)===47?"//":e.slice(0,t)}function l3e(e){Zm(e);let t=e.length,n=-1,r=0,i=-1,o=0,a;for(;t--;){const l=e.charCodeAt(t);if(l===47){if(a){r=t+1;break}continue}n<0&&(a=!0,n=t+1),l===46?i<0?i=t:o!==1&&(o=1):i>-1&&(o=-1)}return i<0||n<0||o===0||o===1&&i===n-1&&i===r+1?"":e.slice(i,n)}function s3e(...e){let t=-1,n;for(;++t<e.length;)Zm(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":c3e(n)}function c3e(e){Zm(e);const t=e.charCodeAt(0)===47;let n=u3e(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.charCodeAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function u3e(e,t){let n="",r=0,i=-1,o=0,a=-1,l,c;for(;++a<=e.length;){if(a<e.length)l=e.charCodeAt(a);else{if(l===47)break;l=47}if(l===47){if(!(i===a-1||o===1))if(i!==a-1&&o===2){if(n.length<2||r!==2||n.charCodeAt(n.length-1)!==46||n.charCodeAt(n.length-2)!==46){if(n.length>2){if(c=n.lastIndexOf("/"),c!==n.length-1){c<0?(n="",r=0):(n=n.slice(0,c),r=n.length-1-n.lastIndexOf("/")),i=a,o=0;continue}}else if(n.length>0){n="",r=0,i=a,o=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(i+1,a):n=e.slice(i+1,a),r=a-i-1;i=a,o=0}else l===46&&o>-1?o++:o=-1}return n}function Zm(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const d3e={cwd:f3e};function f3e(){return"/"}function zE(e){return e!==null&&typeof e=="object"&&e.href&&e.origin}function h3e(e){if(typeof e=="string")e=new URL(e);else if(!zE(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return p3e(e)}function p3e(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n<t.length;)if(t.charCodeAt(n)===37&&t.charCodeAt(n+1)===50){const r=t.charCodeAt(n+2);if(r===70||r===102){const i=new TypeError("File URL path must not include encoded / characters");throw i.code="ERR_INVALID_FILE_URL_PATH",i}}return decodeURIComponent(t)}const B9=["history","path","basename","stem","extname","dirname"];class m3e{constructor(t){let n;t?typeof t=="string"||g3e(t)?n={value:t}:zE(t)?n={path:t}:n=t:n={},this.data={},this.messages=[],this.history=[],this.cwd=d3e.cwd(),this.value,this.stored,this.result,this.map;let r=-1;for(;++r<B9.length;){const o=B9[r];o in n&&n[o]!==void 0&&n[o]!==null&&(this[o]=o==="history"?[...n[o]]:n[o])}let i;for(i in n)B9.includes(i)||(this[i]=n[i])}get path(){return this.history[this.history.length-1]}set path(t){zE(t)&&(t=h3e(t)),H9(t,"path"),this.path!==t&&this.history.push(t)}get dirname(){return typeof this.path=="string"?Sl.dirname(this.path):void 0}set dirname(t){YA(this.basename,"dirname"),this.path=Sl.join(t||"",this.basename)}get basename(){return typeof this.path=="string"?Sl.basename(this.path):void 0}set basename(t){H9(t,"basename"),j9(t,"basename"),this.path=Sl.join(this.dirname||"",t)}get extname(){return typeof this.path=="string"?Sl.extname(this.path):void 0}set extname(t){if(j9(t,"extname"),YA(this.dirname,"extname"),t){if(t.charCodeAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Sl.join(this.dirname,this.stem+(t||""))}get stem(){return typeof this.path=="string"?Sl.basename(this.path,this.extname):void 0}set stem(t){H9(t,"stem"),j9(t,"stem"),this.path=Sl.join(this.dirname||"",t+(this.extname||""))}toString(t){return(this.value||"").toString(t||void 0)}message(t,n,r){const i=new La(t,n,r);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}info(t,n,r){const i=this.message(t,n,r);return i.fatal=null,i}fail(t,n,r){const i=this.message(t,n,r);throw i.fatal=!0,i}}function j9(e,t){if(e&&e.includes(Sl.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+Sl.sep+"`")}function H9(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function YA(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function g3e(e){return Gz(e)}const v3e=Yz().freeze(),Xz={}.hasOwnProperty;function Yz(){const e=r3e(),t=[];let n={},r,i=-1;return o.data=a,o.Parser=void 0,o.Compiler=void 0,o.freeze=l,o.attachers=t,o.use=c,o.parse=u,o.stringify=f,o.run=p,o.runSync=m,o.process=g,o.processSync=b,o;function o(){const E=Yz();let x=-1;for(;++x<t.length;)E.use(...t[x]);return E.data(XA(!0,{},n)),E}function a(E,x){return typeof E=="string"?arguments.length===2?(U9("data",r),n[E]=x,o):Xz.call(n,E)&&n[E]||null:E?(U9("data",r),n=E,o):n}function l(){if(r)return o;for(;++i<t.length;){const[E,...x]=t[i];if(x[0]===!1)continue;x[0]===!0&&(x[0]=void 0);const C=E.call(o,...x);typeof C=="function"&&e.use(C)}return r=!0,i=Number.POSITIVE_INFINITY,o}function c(E,...x){let C;if(U9("use",r),E!=null)if(typeof E=="function")I(E,...x);else if(typeof E=="object")Array.isArray(E)?O(E):T(E);else throw new TypeError("Expected usable value, not `"+E+"`");return C&&(n.settings=Object.assign(n.settings||{},C)),o;function S(_){if(typeof _=="function")I(_);else if(typeof _=="object")if(Array.isArray(_)){const[$,...k]=_;I($,...k)}else T(_);else throw new TypeError("Expected usable value, not `"+_+"`")}function T(_){O(_.plugins),_.settings&&(C=Object.assign(C||{},_.settings))}function O(_){let $=-1;if(_!=null)if(Array.isArray(_))for(;++$<_.length;){const k=_[$];S(k)}else throw new TypeError("Expected a list of plugins, not `"+_+"`")}function I(_,$){let k=-1,R;for(;++k<t.length;)if(t[k][0]===_){R=t[k];break}R?(HE(R[1])&&HE($)&&($=XA(!0,R[1],$)),R[1]=$):t.push([...arguments])}}function u(E){o.freeze();const x=Oh(E),C=o.Parser;return z9("parse",C),QA(C,"parse")?new C(String(x),x).parse():C(String(x),x)}function f(E,x){o.freeze();const C=Oh(x),S=o.Compiler;return W9("stringify",S),ZA(E),QA(S,"compile")?new S(E,C).compile():S(E,C)}function p(E,x,C){if(ZA(E),o.freeze(),!C&&typeof x=="function"&&(C=x,x=void 0),!C)return new Promise(S);S(null,C);function S(T,O){e.run(E,Oh(x),I);function I(_,$,k){$=$||E,_?O(_):T?T($):C(null,$,k)}}}function m(E,x){let C,S;return o.run(E,x,T),JA("runSync","run",S),C;function T(O,I){zA(O),C=I,S=!0}}function g(E,x){if(o.freeze(),z9("process",o.Parser),W9("process",o.Compiler),!x)return new Promise(C);C(null,x);function C(S,T){const O=Oh(E);o.run(o.parse(O),O,(_,$,k)=>{if(_||!$||!k)I(_);else{const R=o.stringify($,k);R==null||(C3e(R)?k.value=R:k.result=R),I(_,k)}});function I(_,$){_||!$?T(_):S?S($):x(null,$)}}}function b(E){let x;o.freeze(),z9("processSync",o.Parser),W9("processSync",o.Compiler);const C=Oh(E);return o.process(C,S),JA("processSync","process",x),C;function S(T){x=!0,zA(T)}}}function QA(e,t){return typeof e=="function"&&e.prototype&&(y3e(e.prototype)||t in e.prototype)}function y3e(e){let t;for(t in e)if(Xz.call(e,t))return!0;return!1}function z9(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `Parser`")}function W9(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `Compiler`")}function U9(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function ZA(e){if(!HE(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function JA(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Oh(e){return b3e(e)?e:new m3e(e)}function b3e(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function C3e(e){return typeof e=="string"||Gz(e)}var S3e=typeof global=="object"&&global&&global.Object===Object&&global,E3e=typeof self=="object"&&self&&self.Object===Object&&self,Qz=S3e||E3e||Function("return this")(),Fy=Qz.Symbol,Zz=Object.prototype,x3e=Zz.hasOwnProperty,w3e=Zz.toString,Ih=Fy?Fy.toStringTag:void 0;function T3e(e){var t=x3e.call(e,Ih),n=e[Ih];try{e[Ih]=void 0;var r=!0}catch{}var i=w3e.call(e);return r&&(t?e[Ih]=n:delete e[Ih]),i}var _3e=Object.prototype,O3e=_3e.toString;function I3e(e){return O3e.call(e)}var $3e="[object Null]",N3e="[object Undefined]",ek=Fy?Fy.toStringTag:void 0;function A3e(e){return e==null?e===void 0?N3e:$3e:ek&&ek in Object(e)?T3e(e):I3e(e)}function k3e(e){return e!=null&&typeof e=="object"}var R3e="[object Symbol]";function M3e(e){return typeof e=="symbol"||k3e(e)&&A3e(e)==R3e}var P3e=/\s/;function L3e(e){for(var t=e.length;t--&&P3e.test(e.charAt(t)););return t}var D3e=/^\s+/;function F3e(e){return e&&e.slice(0,L3e(e)+1).replace(D3e,"")}function By(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var tk=NaN,B3e=/^[-+]0x[0-9a-f]+$/i,j3e=/^0b[01]+$/i,H3e=/^0o[0-7]+$/i,z3e=parseInt;function nk(e){if(typeof e=="number")return e;if(M3e(e))return tk;if(By(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=By(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=F3e(e);var n=j3e.test(e);return n||H3e.test(e)?z3e(e.slice(2),n?2:8):B3e.test(e)?tk:+e}var K9=function(){return Qz.Date.now()},W3e="Expected a function",U3e=Math.max,K3e=Math.min;function Jz(e,t,n){var r,i,o,a,l,c,u=0,f=!1,p=!1,m=!0;if(typeof e!="function")throw new TypeError(W3e);t=nk(t)||0,By(n)&&(f=!!n.leading,p="maxWait"in n,o=p?U3e(nk(n.maxWait)||0,t):o,m="trailing"in n?!!n.trailing:m);function g(_){var $=r,k=i;return r=i=void 0,u=_,a=e.apply(k,$),a}function b(_){return u=_,l=setTimeout(C,t),f?g(_):a}function E(_){var $=_-c,k=_-u,R=t-$;return p?K3e(R,o-k):R}function x(_){var $=_-c,k=_-u;return c===void 0||$>=t||$<0||p&&k>=o}function C(){var _=K9();if(x(_))return S(_);l=setTimeout(C,E(_))}function S(_){return l=void 0,m&&r?g(_):(r=i=void 0,a)}function T(){l!==void 0&&clearTimeout(l),u=0,r=c=i=l=void 0}function O(){return l===void 0?a:S(K9())}function I(){var _=K9(),$=x(_);if(r=arguments,i=this,c=_,$){if(l===void 0)return b(c);if(p)return clearTimeout(l),l=setTimeout(C,t),g(c)}return l===void 0&&(l=setTimeout(C,t)),a}return I.cancel=T,I.flush=O,I}var V3e="Expected a function";function G3e(e,t,n){var r=!0,i=!0;if(typeof e!="function")throw new TypeError(V3e);return By(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),Jz(e,t,{leading:r,maxWait:t,trailing:i})}function ia(){}function eW(e){return e()}function rk(){return Object.create(null)}function jl(e){e.forEach(eW)}function tW(e){return typeof e=="function"}function nW(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}function P2(e,t){return e!=e?t==t:e!==t}function q3e(e){return Object.keys(e).length===0}function un(e,t){e.appendChild(t)}function ii(e,t,n){e.insertBefore(t,n||null)}function Ur(e){e.parentNode&&e.parentNode.removeChild(e)}function dm(e,t){for(let n=0;n<e.length;n+=1)e[n]&&e[n].d(t)}function dn(e){return document.createElement(e)}function Qr(e){return document.createTextNode(e)}function Jm(){return Qr("")}function Jo(e,t,n,r){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}function n1(e){return function(t){t.target===this&&e.call(this,t)}}function wn(e,t,n){n==null?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function X3e(e){return Array.from(e.childNodes)}function ki(e,t){t=""+t,e.wholeText!==t&&(e.data=t)}function ei(e,t,n){e.classList[n?"add":"remove"](t)}function Y3e(e,t,{bubbles:n=!1,cancelable:r=!1}={}){const i=document.createEvent("CustomEvent");return i.initCustomEvent(e,n,r,t),i}let fm;function vp(e){fm=e}function L2(){if(!fm)throw new Error("Function called outside component initialization");return fm}function d6(e){L2().$$.on_mount.push(e)}function Q3e(e){L2().$$.after_update.push(e)}function rW(e){L2().$$.on_destroy.push(e)}function e0(){const e=L2();return(t,n,{cancelable:r=!1}={})=>{const i=e.$$.callbacks[t];if(i){const o=Y3e(t,n,{cancelable:r});return i.slice().forEach(a=>{a.call(e,o)}),!o.defaultPrevented}return!0}}const Wd=[],$u=[];let Of=[];const ik=[],iW=Promise.resolve();let WE=!1;function oW(){WE||(WE=!0,iW.then(aW))}function xv(){return oW(),iW}function UE(e){Of.push(e)}const V9=new Set;let Dd=0;function aW(){if(Dd!==0)return;const e=fm;do{try{for(;Dd<Wd.length;){const t=Wd[Dd];Dd++,vp(t),Z3e(t.$$)}}catch(t){throw Wd.length=0,Dd=0,t}for(vp(null),Wd.length=0,Dd=0;$u.length;)$u.pop()();for(let t=0;t<Of.length;t+=1){const n=Of[t];V9.has(n)||(V9.add(n),n())}Of.length=0}while(Wd.length);for(;ik.length;)ik.pop()();WE=!1,V9.clear(),vp(e)}function Z3e(e){if(e.fragment!==null){e.update(),jl(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(UE)}}function J3e(e){const t=[],n=[];Of.forEach(r=>e.indexOf(r)===-1?t.push(r):n.push(r)),n.forEach(r=>r()),Of=t}const wv=new Set;let Eu;function e6e(){Eu={r:0,c:[],p:Eu}}function t6e(){Eu.r||jl(Eu.c),Eu=Eu.p}function rs(e,t){e&&e.i&&(wv.delete(e),e.i(t))}function lu(e,t,n,r){if(e&&e.o){if(wv.has(e))return;wv.add(e),Eu.c.push(()=>{wv.delete(e),r&&(n&&e.d(1),r())}),e.o(t)}else r&&r()}function jh(e){e&&e.c()}function uf(e,t,n,r){const{fragment:i,after_update:o}=e.$$;i&&i.m(t,n),r||UE(()=>{const a=e.$$.on_mount.map(eW).filter(tW);e.$$.on_destroy?e.$$.on_destroy.push(...a):jl(a),e.$$.on_mount=[]}),o.forEach(UE)}function df(e,t){const n=e.$$;n.fragment!==null&&(J3e(n.after_update),jl(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function n6e(e,t){e.$$.dirty[0]===-1&&(Wd.push(e),oW(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function T1(e,t,n,r,i,o,a,l=[-1]){const c=fm;vp(e);const u=e.$$={fragment:null,ctx:[],props:o,update:ia,not_equal:i,bound:rk(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(c?c.$$.context:[])),callbacks:rk(),dirty:l,skip_bound:!1,root:t.target||c.$$.root};a&&a(u.root);let f=!1;if(u.ctx=n?n(e,t.props||{},(p,m,...g)=>{const b=g.length?g[0]:m;return u.ctx&&i(u.ctx[p],u.ctx[p]=b)&&(!u.skip_bound&&u.bound[p]&&u.bound[p](b),f&&n6e(e,p)),m}):[],u.update(),f=!0,jl(u.before_update),u.fragment=r?r(u.ctx):!1,t.target){if(t.hydrate){const p=X3e(t.target);u.fragment&&u.fragment.l(p),p.forEach(Ur)}else u.fragment&&u.fragment.c();t.intro&&rs(e.$$.fragment),uf(e,t.target,t.anchor,t.customElement),aW()}vp(c)}class _1{$destroy(){df(this,1),this.$destroy=ia}$on(t,n){if(!tW(n))return ia;const r=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return r.push(n),()=>{const i=r.indexOf(n);i!==-1&&r.splice(i,1)}}$set(t){this.$$set&&!q3e(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const r6e="Bold",i6e="bold text",o6e="Markdown Cheatsheet",a6e="Close help",l6e="Close table of contents",s6e="Code",c6e="Code block",u6e="lang",d6e="code",f6e="Exit fullscreen",h6e="Exit preview only",p6e="Exit write only",m6e="Fullscreen",g6e="Heading 1",v6e="Heading 2",y6e="Heading 3",b6e="Heading 4",C6e="Heading 5",S6e="Heading 6",E6e="heading",x6e="Help",w6e="Horizontal rule",T6e="Image",_6e="alt",O6e="title",I6e="Italic",$6e="italic text",N6e="The maximum character limit has been reached",A6e="Lines",k6e="Link",R6e="link text",M6e="Ordered list",P6e="item",L6e="Preview",D6e="Preview only",F6e="Quote",B6e="quoted text",j6e="Shortcuts",H6e="Source code",z6e="Scroll sync",W6e="Table of contents",U6e="Scroll to top",K6e="Unordered list",V6e="item",G6e="Words",q6e="Write",X6e="Write only",Y6e={bold:r6e,boldText:i6e,cheatsheet:o6e,closeHelp:a6e,closeToc:l6e,code:s6e,codeBlock:c6e,codeLang:u6e,codeText:d6e,exitFullscreen:f6e,exitPreviewOnly:h6e,exitWriteOnly:p6e,fullscreen:m6e,h1:g6e,h2:v6e,h3:y6e,h4:b6e,h5:C6e,h6:S6e,headingText:E6e,help:x6e,hr:w6e,image:T6e,imageAlt:_6e,imageTitle:O6e,italic:I6e,italicText:$6e,limited:N6e,lines:A6e,link:k6e,linkText:R6e,ol:M6e,olItem:P6e,preview:L6e,previewOnly:D6e,quote:F6e,quotedText:B6e,shortcuts:j6e,source:H6e,sync:z6e,toc:W6e,top:U6e,ul:K6e,ulItem:V6e,words:G6e,write:q6e,writeOnly:X6e},pr={Close:'<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" fill="none" viewBox="0 0 48 48"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="4" d="m8 8 32 32M8 40 40 8"/></svg>',H:'<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" fill="none" viewBox="0 0 48 48"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="4" d="M12 5v38M36 5v38M12 24h24"/></svg>',H1:'<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" fill="none" viewBox="0 0 48 48"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="4" d="M6 8v32M25 8v32M6 24h19M34.226 24 39 19.017V40"/></svg>',H2:'<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" fill="none" viewBox="0 0 48 48"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="4" d="M6 8v32M24 8v32M7 24h16M32 25c0-3.167 2.667-5 5-5s5 1.833 5 5c0 5.7-10 9.933-10 15h10"/></svg>',H3:'<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" fill="none" viewBox="0 0 48 48"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="4" d="M6 8v32M24 8v32M7 24h16M32 20h10l-7 9c4 0 7 2 7 6s-3 5-5 5c-2.381 0-4-1-5-2.1"/></svg>',LevelFourTitle:'<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" fill="none" viewBox="0 0 48 48"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="4" d="M6 8v32M24 8v32M7 24h16M39.977 40V20L31 32.997v2.023h12"/></svg>',LevelFiveTitle:'<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" fill="none" viewBox="0 0 48 48"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="4" d="M6 8v32M24 8v32M7 24h16M40 21.01h-8v7.024C32 28 34 27 37 27s4 2.534 4 6.5-1 6.5-5 6.5c-3 0-4-2-4-3.992"/></svg>',LevelSixTitle:'<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" fill="none" viewBox="0 0 48 48"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="4" d="M6 8v32M24 8v32M7 24h16"/><path stroke="currentColor" stroke-width="4" d="M36.5 40a5.5 5.5 0 1 0 0-11 5.5 5.5 0 0 0 0 11Z"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="4" d="M41.596 24.74C40.778 22.545 38.804 21 36.5 21c-3.038 0-5.5 2.686-5.5 6v7"/></svg>',TextBold:'<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" fill="none" viewBox="0 0 48 48"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="4" d="M24 24c5.506 0 9.969-4.477 9.969-10S29.506 4 24 4H11v20h13ZM28.031 44C33.537 44 38 39.523 38 34s-4.463-10-9.969-10H11v20h17.031Z" clip-rule="evenodd"/></svg>',TextItalic:'<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" fill="none" viewBox="0 0 48 48"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="4" d="M20 6h16M12 42h16M29 5.952 19 42"/></svg>',Quote:'<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" fill="none" viewBox="0 0 48 48"><path fill="currentColor" fill-rule="evenodd" d="M18.853 9.116C11.323 13.952 7.14 19.58 6.303 26.003 5 36 13.94 40.893 18.47 36.497 23 32.1 20.285 26.52 17.005 24.994c-3.28-1.525-5.286-.994-4.936-3.033.35-2.038 5.016-7.69 9.116-10.322a.749.749 0 0 0 .114-1.02L20.285 9.3c-.44-.572-.862-.55-1.432-.185ZM38.679 9.116c-7.53 4.836-11.714 10.465-12.55 16.887-1.303 9.997 7.637 14.89 12.167 10.494 4.53-4.397 1.815-9.977-1.466-11.503-3.28-1.525-5.286-.994-4.936-3.033.35-2.038 5.017-7.69 9.117-10.322a.749.749 0 0 0 .113-1.02L40.11 9.3c-.44-.572-.862-.55-1.431-.185Z" clip-rule="evenodd"/></svg>',LinkOne:'<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" fill="none" viewBox="0 0 48 48"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="4" d="m26.24 16.373-9.14-9.14c-2.661-2.661-7.035-2.603-9.768.131-2.734 2.734-2.793 7.107-.131 9.768l7.935 7.936M32.903 23.003l7.935 7.935c2.661 2.662 2.603 7.035-.13 9.769-2.735 2.734-7.108 2.792-9.77.13l-9.14-9.14"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="4" d="M26.11 26.142c2.733-2.734 2.792-7.108.13-9.769M21.799 21.798c-2.734 2.734-2.792 7.108-.131 9.769"/></svg>',Pic:'<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" fill="none" viewBox="0 0 48 48"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="4" d="M5 10a2 2 0 0 1 2-2h34a2 2 0 0 1 2 2v28a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V10Z" clip-rule="evenodd"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="4" d="M14.5 18a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Z" clip-rule="evenodd"/><path stroke="currentColor" stroke-linejoin="round" stroke-width="4" d="m15 24 5 4 6-7 17 13v4a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2v-4l10-10Z"/></svg>',Code:'<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" fill="none" viewBox="0 0 48 48"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="4" d="M16 13 4 25.432 16 37M32 13l12 12.432L32 37"/><path stroke="currentColor" stroke-linecap="round" stroke-width="4" d="m28 4-7 40"/></svg>',CodeBrackets:'<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" fill="none" viewBox="0 0 48 48"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="4" d="M16 4c-2 0-5 1-5 5v9c0 3-5 5-5 5s5 2 5 5v11c0 4 3 5 5 5M32 4c2 0 5 1 5 5v9c0 3 5 5 5 5s-5 2-5 5v11c0 4-3 5-5 5"/></svg>',ListTwo:'<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" fill="none" viewBox="0 0 48 48"><path stroke="currentColor" stroke-linejoin="round" stroke-width="4" d="M9 42a4 4 0 1 0 0-8 4 4 0 0 0 0 8ZM9 14a4 4 0 1 0 0-8 4 4 0 0 0 0 8ZM9 28a4 4 0 1 0 0-8 4 4 0 0 0 0 8Z"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="4" d="M21 24h22M21 38h22M21 10h22"/></svg>',OrderedList:'<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" fill="none" viewBox="0 0 48 48"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="4" d="M9 4v9M12 13H6M12 27H6M6 20s3-3 5 0-5 7-5 7M6 34.5s2-3 5-1 0 4.5 0 4.5 3 2.5 0 4.5-5-1-5-1M11 38H9M9 4 6 6M21 24h22M21 38h22M21 10h22"/></svg>',DividingLine:'<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" fill="none" viewBox="0 0 48 48"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="4" d="M5 24h38M21 38h6M37 38h6M21 10h6M5 38h6M5 10h6M37 10h6"/></svg>',AlignTextLeftOne:'<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" fill="none" viewBox="0 0 48 48"><path stroke="currentColor" stroke-linejoin="round" stroke-width="4" d="M39 6H9a3 3 0 0 0-3 3v30a3 3 0 0 0 3 3h30a3 3 0 0 0 3-3V9a3 3 0 0 0-3-3Z"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="4" d="M26 24H14M34 15H14M32 33H14"/></svg>',Helpcenter:'<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" fill="none" viewBox="0 0 48 48"><path stroke="currentColor" stroke-linejoin="round" stroke-width="4" d="M39 6H9a3 3 0 0 0-3 3v30a3 3 0 0 0 3 3h30a3 3 0 0 0 3-3V9a3 3 0 0 0-3-3Z"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="4" d="M24 28.625v-4a6 6 0 1 0-6-6"/><path fill="currentColor" fill-rule="evenodd" d="M24 37.625a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5Z" clip-rule="evenodd"/></svg>',LeftExpand:'<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" fill="none" viewBox="0 0 48 48"><rect width="28" height="36" x="6" y="6" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="4" rx="2"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="4" d="M42 6v36"/></svg>',RightExpand:'<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" fill="none" viewBox="0 0 48 48"><rect width="28" height="36" x="14" y="6" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="4" rx="2"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="4" d="M6 6v36"/></svg>',OffScreen:'<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" fill="none" viewBox="0 0 48 48"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="4" d="M33 6v9h9M15 6v9H6M15 42v-9H6M33 42v-9h8.9"/></svg>',FullScreen:'<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" fill="none" viewBox="0 0 48 48"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="4" d="M33 6h9v9M42 33v9h-9M15 42H6v-9M6 15V6h9"/></svg>',GithubOne:'<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" fill="none" viewBox="0 0 48 48"><path stroke="currentColor" stroke-linecap="round" stroke-width="4" d="M29.344 30.477c2.404-.5 4.585-1.366 6.28-2.638C38.52 25.668 40 22.314 40 19c0-2.324-.881-4.494-2.407-6.332-.85-1.024 1.636-8.667-.573-7.638-2.21 1.03-5.45 3.308-7.147 2.805A20.712 20.712 0 0 0 24 7c-1.8 0-3.532.223-5.147.634C16.505 8.232 14.259 6 12 5.03c-2.26-.97-1.026 6.934-1.697 7.765C8.84 14.605 8 16.73 8 19c0 3.314 1.79 6.668 4.686 8.84 1.93 1.446 4.348 2.368 7.054 2.822M19.74 30.662c-1.159 1.275-1.738 2.486-1.738 3.632v8.717M29.345 30.477c1.097 1.44 1.646 2.734 1.646 3.88v8.654M6 31.215c.899.11 1.566.524 2 1.24.652 1.075 3.074 5.063 5.825 5.063h4.177"/></svg>'};function Q6e(){const e=xbe();return wbe(e),_be(e),$be(e),Ibe(e),Obe(e),Abe(e),Nbe(e),Tbe(e),e}function Z6e(e,t){return{wrapText(n,r=n){const i=t.somethingSelected()?t.listSelections()[0]:t.findWordAt(t.getCursor()),o=i.from(),a=i.to(),l=t.getRange(o,a),c=e.Pos(o.line,o.ch-n.length),u=e.Pos(a.line,a.ch+r.length);if(t.getRange(c,o)===n&&t.getRange(a,u)===r)t.replaceRange(l,c,u),t.setSelection(c,e.Pos(c.line,c.ch+l.length));else{t.replaceRange(n+l+r,o,a);const f=t.getCursor();t.setSelection(e.Pos(f.line,f.ch-r.length-l.length),e.Pos(f.line,f.ch-r.length))}},replaceLines(n){const[r]=t.listSelections(),i=[e.Pos(r.from().line,0),e.Pos(r.to().line)],o=t.getRange(...i).split(`
`);t.replaceRange(o.map(n).join(`
`),...i),t.setSelection(...i)},appendBlock(n){const r=t.getCursor();let i=-1;for(let o=r.line;o<t.lineCount();o++)if(!t.getLine(o).trim()){i=o;break}return i===-1&&(t.replaceRange(`
`,e.Pos(t.lineCount())),i=t.lineCount()),t.replaceRange(`
`+n,e.Pos(i)),e.Pos(i+1,0)},selectFiles:uH}}function G9(e,t){let n=t.length-2;for(let r=0;r<t.length;r++)if(e<t[r]){n=r-1;break}return n=Math.max(n,0),n}const js=(e,t=!1)=>{const n=t?"Shift-":"",r=typeof navigator<"u"&&/Mac/.test(navigator.platform)?"Cmd-":"Ctrl-";return n+r+e};async function lW({editor:e,appendBlock:t,codemirror:n},r,i){const o=await r(i),a=t(o.map(({url:l,alt:c,title:u},f)=>(c=c??i[f].name,`![${c}](${l}${u?` "${u}"`:""})`)).join(`
`));e.setSelection(a,n.Pos(a.line+o.length*2-2)),e.focus()}function J6e(e,t,n){const r=[{icon:pr.H,handler:{type:"dropdown",actions:[1,2,3,4,5,6].map(o=>({title:e[`h${o}`],icon:[pr.H1,pr.H2,pr.H3,pr.LevelFourTitle,pr.LevelFiveTitle,pr.LevelSixTitle][o-1],cheatsheet:o<=3?`${"#".repeat(o)} ${e.headingText}`:void 0,handler:{type:"action",click({replaceLines:a,editor:l}){a(c=>(c=c.trim().replace(/^#*/,"").trim(),c="#".repeat(o)+" "+c,c)),l.focus()}}}))}},{title:e.bold,icon:pr.TextBold,cheatsheet:`**${e.boldText}**`,handler:{type:"action",shortcut:js("B"),click({wrapText:o,editor:a}){o("**"),a.focus()}}},{title:e.italic,icon:pr.TextItalic,cheatsheet:`*${e.italicText}*`,handler:{type:"action",shortcut:js("I"),click({wrapText:o,editor:a}){o("*"),a.focus()}}},{title:e.quote,icon:pr.Quote,cheatsheet:`> ${e.quotedText}`,handler:{type:"action",click({replaceLines:o,editor:a}){o(l=>"> "+l),a.focus()}}},{title:e.link,icon:pr.LinkOne,cheatsheet:`[${e.linkText}](url)`,handler:{type:"action",shortcut:js("K"),click({editor:o,wrapText:a,codemirror:l}){a("[","](url)");const c=o.getCursor();o.setSelection(l.Pos(c.line,c.ch+2),l.Pos(c.line,c.ch+5)),o.focus()}}},{title:e.image,icon:pr.Pic,cheatsheet:`![${e.imageAlt}](url "${e.imageTitle}")`,handler:n?{type:"action",shortcut:js("I",!0),async click(o){const a=await uH({accept:"image/*",multiple:!0});a!=null&&a.length&&await lW(o,n,Array.from(a))}}:void 0},{title:e.code,icon:pr.Code,cheatsheet:"`"+e.codeText+"`",handler:{type:"action",shortcut:js("K",!0),click({wrapText:o,editor:a}){o("`"),a.focus()}}},{title:e.codeBlock,icon:pr.CodeBrackets,cheatsheet:"```"+e.codeLang+"↵",handler:{type:"action",shortcut:js("C",!0),click({editor:o,appendBlock:a,codemirror:l}){const c=a("```js\n```");o.setSelection(l.Pos(c.line,3),l.Pos(c.line,5)),o.focus()}}},{title:e.ul,icon:pr.ListTwo,cheatsheet:`- ${e.ulItem}`,handler:{type:"action",shortcut:js("U",!0),click({replaceLines:o,editor:a}){o(l=>"- "+l),a.focus()}}},{title:e.ol,icon:pr.OrderedList,cheatsheet:`1. ${e.olItem}`,handler:{type:"action",shortcut:js("O",!0),click({replaceLines:o,editor:a}){o((l,c)=>`${c+1}. ${l}`),a.focus()}}},{title:e.hr,icon:pr.DividingLine,cheatsheet:"---"}],i=[];return t.forEach(({actions:o})=>{o&&o.forEach(a=>{!a.position||a.position!=="right"?r.push(a):i.unshift(a)})}),{leftActions:r,rightActions:i}}function ok(e,t,n){const r=e.slice();return r[5]=t[n],r}function ak(e,t,n){const r=e.slice();return r[5]=t[n],r}function lk(e){let t,n,r=e[5].icon+"",i,o=e[5].title+"",a,l,c,u=e[5].cheatsheet+"",f;return{c(){t=dn("li"),n=dn("div"),i=dn("div"),a=Qr(o),l=dn("div"),c=dn("code"),f=Qr(u),wn(n,"class","bytemd-help-icon"),wn(i,"class","bytemd-help-title"),wn(l,"class","bytemd-help-content")},m(p,m){ii(p,t,m),un(t,n),n.innerHTML=r,un(t,i),un(i,a),un(t,l),un(l,c),un(c,f)},p(p,m){m&4&&r!==(r=p[5].icon+"")&&(n.innerHTML=r),m&4&&o!==(o=p[5].title+"")&&ki(a,o),m&4&&u!==(u=p[5].cheatsheet+"")&&ki(f,u)},d(p){p&&Ur(t)}}}function sk(e){let t,n=e[5].cheatsheet&&lk(e);return{c(){n&&n.c(),t=Jm()},m(r,i){n&&n.m(r,i),ii(r,t,i)},p(r,i){r[5].cheatsheet?n?n.p(r,i):(n=lk(r),n.c(),n.m(t.parentNode,t)):n&&(n.d(1),n=null)},d(r){n&&n.d(r),r&&Ur(t)}}}function ck(e){let t,n,r=e[5].icon+"",i,o=e[5].title+"",a,l,c,u=e[5].handler.shortcut+"",f;return{c(){t=dn("li"),n=dn("div"),i=dn("div"),a=Qr(o),l=dn("div"),c=dn("kbd"),f=Qr(u),wn(n,"class","bytemd-help-icon"),wn(i,"class","bytemd-help-title"),wn(l,"class","bytemd-help-content")},m(p,m){ii(p,t,m),un(t,n),n.innerHTML=r,un(t,i),un(i,a),un(t,l),un(l,c),un(c,f)},p(p,m){m&4&&r!==(r=p[5].icon+"")&&(n.innerHTML=r),m&4&&o!==(o=p[5].title+"")&&ki(a,o),m&4&&u!==(u=p[5].handler.shortcut+"")&&ki(f,u)},d(p){p&&Ur(t)}}}function uk(e){let t,n=e[5].handler&&e[5].handler.type==="action"&&e[5].handler.shortcut&&ck(e);return{c(){n&&n.c(),t=Jm()},m(r,i){n&&n.m(r,i),ii(r,t,i)},p(r,i){r[5].handler&&r[5].handler.type==="action"&&r[5].handler.shortcut?n?n.p(r,i):(n=ck(r),n.c(),n.m(t.parentNode,t)):n&&(n.d(1),n=null)},d(r){n&&n.d(r),r&&Ur(t)}}}function ewe(e){let t,n,r=e[0].cheatsheet+"",i,o,a,l=e[0].shortcuts+"",c,u,f=e[2],p=[];for(let b=0;b<f.length;b+=1)p[b]=sk(ak(e,f,b));let m=e[2],g=[];for(let b=0;b<m.length;b+=1)g[b]=uk(ok(e,m,b));return{c(){t=dn("div"),n=dn("h2"),i=Qr(r),o=dn("ul");for(let b=0;b<p.length;b+=1)p[b].c();a=dn("h2"),c=Qr(l),u=dn("ul");for(let b=0;b<g.length;b+=1)g[b].c();wn(t,"class","bytemd-help"),ei(t,"bytemd-hidden",!e[1])},m(b,E){ii(b,t,E),un(t,n),un(n,i),un(t,o);for(let x=0;x<p.length;x+=1)p[x]&&p[x].m(o,null);un(t,a),un(a,c),un(t,u);for(let x=0;x<g.length;x+=1)g[x]&&g[x].m(u,null)},p(b,[E]){if(E&1&&r!==(r=b[0].cheatsheet+"")&&ki(i,r),E&4){f=b[2];let x;for(x=0;x<f.length;x+=1){const C=ak(b,f,x);p[x]?p[x].p(C,E):(p[x]=sk(C),p[x].c(),p[x].m(o,null))}for(;x<p.length;x+=1)p[x].d(1);p.length=f.length}if(E&1&&l!==(l=b[0].shortcuts+"")&&ki(c,l),E&4){m=b[2];let x;for(x=0;x<m.length;x+=1){const C=ok(b,m,x);g[x]?g[x].p(C,E):(g[x]=uk(C),g[x].c(),g[x].m(u,null))}for(;x<g.length;x+=1)g[x].d(1);g.length=m.length}E&2&&ei(t,"bytemd-hidden",!b[1])},i:ia,o:ia,d(b){b&&Ur(t),dm(p,b),dm(g,b)}}}function twe(e,t,n){let r,{actions:i}=t,{locale:o}=t,{visible:a}=t;function l(c){let u=[];return c.forEach(f=>{const{handler:p,cheatsheet:m}=f;(p==null?void 0:p.type)==="dropdown"&&u.push(...l(p.actions)),m&&u.push(f)}),u}return e.$$set=c=>{"actions"in c&&n(3,i=c.actions),"locale"in c&&n(0,o=c.locale),"visible"in c&&n(1,a=c.visible)},e.$$.update=()=>{e.$$.dirty&8&&n(2,r=l(i))},[o,a,r,i]}class nwe extends _1{constructor(t){super(),T1(this,t,twe,ewe,nW,{actions:3,locale:0,visible:1})}}function dk(e){let t,n=e[2].limited+"",r;return{c(){t=dn("span"),r=Qr(n),wn(t,"class","bytemd-status-error")},m(i,o){ii(i,t,o),un(t,r)},p(i,o){o&4&&n!==(n=i[2].limited+"")&&ki(r,n)},d(i){i&&Ur(t)}}}function fk(e){let t,n,r=e[2].sync+"",i,o,a;return{c(){t=dn("label"),n=dn("input"),i=Qr(r),wn(n,"type","checkbox"),n.checked=e[1]},m(l,c){ii(l,t,c),un(t,n),un(t,i),o||(a=Jo(n,"change",e[8]),o=!0)},p(l,c){c&2&&(n.checked=l[1]),c&4&&r!==(r=l[2].sync+"")&&ki(i,r)},d(l){l&&Ur(t),o=!1,a()}}}function rwe(e){let t,n,r,i=e[2].words+"",o,a,l,c,u,f=e[2].lines+"",p,m,g,b,E,x,C=e[2].top+"",S,T,O,I=e[3]&&dk(e),_=e[0]&&fk(e);return{c(){t=dn("div"),n=dn("div"),r=dn("span"),o=Qr(i),a=Qr(": "),l=dn("strong"),c=Qr(e[5]),u=dn("span"),p=Qr(f),m=Qr(": "),g=dn("strong"),b=Qr(e[4]),I&&I.c(),E=dn("div"),_&&_.c(),x=dn("span"),S=Qr(C),wn(n,"class","bytemd-status-left"),wn(E,"class","bytemd-status-right"),wn(t,"class","bytemd-status")},m($,k){ii($,t,k),un(t,n),un(n,r),un(r,o),un(r,a),un(r,l),un(l,c),un(n,u),un(u,p),un(u,m),un(u,g),un(g,b),I&&I.m(n,null),un(t,E),_&&_.m(E,null),un(E,x),un(x,S),T||(O=[Jo(x,"click",e[9]),Jo(x,"keydown",n1(e[10]))],T=!0)},p($,[k]){k&4&&i!==(i=$[2].words+"")&&ki(o,i),k&32&&ki(c,$[5]),k&4&&f!==(f=$[2].lines+"")&&ki(p,f),k&16&&ki(b,$[4]),$[3]?I?I.p($,k):(I=dk($),I.c(),I.m(n,null)):I&&(I.d(1),I=null),$[0]?_?_.p($,k):(_=fk($),_.c(),_.m(E,x)):_&&(_.d(1),_=null),k&4&&C!==(C=$[2].top+"")&&ki(S,C)},i:ia,o:ia,d($){$&&Ur(t),I&&I.d(),_&&_.d(),T=!1,jl(O)}}}function iwe(e,t,n){let r,i,{showSync:o}=t,{value:a}=t,{syncEnabled:l}=t,{locale:c}=t,{islimited:u}=t;const f=e0(),p=()=>f("sync",!l),m=()=>f("top"),g=b=>["Enter","Space"].includes(b.code)&&f("top");return e.$$set=b=>{"showSync"in b&&n(0,o=b.showSync),"value"in b&&n(7,a=b.value),"syncEnabled"in b&&n(1,l=b.syncEnabled),"locale"in b&&n(2,c=b.locale),"islimited"in b&&n(3,u=b.islimited)},e.$$.update=()=>{e.$$.dirty&128&&n(5,r=Pbe(a)),e.$$.dirty&128&&n(4,i=a.split(`
`).length)},[o,l,c,u,i,r,f,a,p,m,g]}class owe extends _1{constructor(t){super(),T1(this,t,iwe,rwe,nW,{showSync:0,value:7,syncEnabled:1,locale:2,islimited:3})}}function hk(e,t,n){const r=e.slice();return r[11]=t[n],r[13]=n,r}function pk(e){let t,n=e[11].text+"",r,i,o,a,l;function c(){return e[8](e[13])}function u(...f){return e[9](e[13],...f)}return{c(){t=dn("li"),r=Qr(n),wn(t,"class",i=`bytemd-toc-${e[11].level}`),wn(t,"style",o=`padding-left:${(e[11].level-e[3])*16+8}px`),ei(t,"bytemd-toc-active",e[4]===e[13]),ei(t,"bytemd-toc-first",e[11].level===e[3])},m(f,p){ii(f,t,p),un(t,r),a||(l=[Jo(t,"click",c),Jo(t,"keydown",n1(u))],a=!0)},p(f,p){e=f,p&4&&n!==(n=e[11].text+"")&&ki(r,n),p&4&&i!==(i=`bytemd-toc-${e[11].level}`)&&wn(t,"class",i),p&12&&o!==(o=`padding-left:${(e[11].level-e[3])*16+8}px`)&&wn(t,"style",o),p&20&&ei(t,"bytemd-toc-active",e[4]===e[13]),p&12&&ei(t,"bytemd-toc-first",e[11].level===e[3])},d(f){f&&Ur(t),a=!1,jl(l)}}}function awe(e){let t,n,r=e[0].toc+"",i,o,a=e[2],l=[];for(let c=0;c<a.length;c+=1)l[c]=pk(hk(e,a,c));return{c(){t=dn("div"),n=dn("h2"),i=Qr(r),o=dn("ul");for(let c=0;c<l.length;c+=1)l[c].c();wn(t,"class","bytemd-toc"),ei(t,"bytemd-hidden",!e[1])},m(c,u){ii(c,t,u),un(t,n),un(n,i),un(t,o);for(let f=0;f<l.length;f+=1)l[f]&&l[f].m(o,null)},p(c,[u]){if(u&1&&r!==(r=c[0].toc+"")&&ki(i,r),u&60){a=c[2];let f;for(f=0;f<a.length;f+=1){const p=hk(c,a,f);l[f]?l[f].p(p,u):(l[f]=pk(p),l[f].c(),l[f].m(o,null))}for(;f<l.length;f+=1)l[f].d(1);l.length=a.length}u&2&&ei(t,"bytemd-hidden",!c[1])},i:ia,o:ia,d(c){c&&Ur(t),dm(l,c)}}}function lwe(e,t,n){let{hast:r}=t,{currentBlockIndex:i}=t,{locale:o}=t,{visible:a}=t;const l=e0();let c,u=6,f=0;function p(b){let E="";return Um(b,x=>{x.type==="text"&&(E+=x.value)}),E}const m=b=>{l("click",b)},g=(b,E)=>{["Enter","Space"].includes(E.code)&&l("click",b)};return e.$$set=b=>{"hast"in b&&n(6,r=b.hast),"currentBlockIndex"in b&&n(7,i=b.currentBlockIndex),"locale"in b&&n(0,o=b.locale),"visible"in b&&n(1,a=b.visible)},e.$$.update=()=>{e.$$.dirty&204&&(n(2,c=[]),n(4,f=0),r.children.filter(b=>b.type==="element").forEach((b,E)=>{if(b.tagName[0]==="h"&&b.children.length){const x=Number(b.tagName[1]);n(3,u=Math.min(u,x)),c.push({level:x,text:p(b)})}i>=E&&n(4,f=c.length-1)}))},[o,a,c,u,f,l,r,i,m,g]}class swe extends _1{constructor(t){super(),T1(this,t,lwe,awe,P2,{hast:6,currentBlockIndex:7,locale:0,visible:1})}}function mk(e,t,n){const r=e.slice();return r[25]=t[n],r[27]=n,r}function gk(e,t,n){const r=e.slice();return r[25]=t[n],r[27]=n,r}function cwe(e){let t,n=e[2].write+"",r,i,o=e[2].preview+"",a,l,c;return{c(){t=dn("div"),r=Qr(n),i=dn("div"),a=Qr(o),wn(t,"class","bytemd-toolbar-tab"),ei(t,"bytemd-toolbar-tab-active",e[1]!=="preview"),wn(i,"class","bytemd-toolbar-tab"),ei(i,"bytemd-toolbar-tab-active",e[1]==="preview")},m(u,f){ii(u,t,f),un(t,r),ii(u,i,f),un(i,a),l||(c=[Jo(t,"click",e[16]),Jo(t,"keydown",n1(e[17])),Jo(i,"click",e[18]),Jo(i,"keydown",n1(e[19]))],l=!0)},p(u,f){f&4&&n!==(n=u[2].write+"")&&ki(r,n),f&2&&ei(t,"bytemd-toolbar-tab-active",u[1]!=="preview"),f&4&&o!==(o=u[2].preview+"")&&ki(a,o),f&2&&ei(i,"bytemd-toolbar-tab-active",u[1]==="preview")},d(u){u&&Ur(t),u&&Ur(i),l=!1,jl(c)}}}function uwe(e){let t,n=e[3],r=[];for(let i=0;i<n.length;i+=1)r[i]=yk(gk(e,n,i));return{c(){for(let i=0;i<r.length;i+=1)r[i].c();t=Jm()},m(i,o){for(let a=0;a<r.length;a+=1)r[a]&&r[a].m(i,o);ii(i,t,o)},p(i,o){if(o&8){n=i[3];let a;for(a=0;a<n.length;a+=1){const l=gk(i,n,a);r[a]?r[a].p(l,o):(r[a]=yk(l),r[a].c(),r[a].m(t.parentNode,t))}for(;a<r.length;a+=1)r[a].d(1);r.length=n.length}},d(i){dm(r,i),i&&Ur(t)}}}function vk(e){let t,n=e[25].icon+"";return{c(){t=dn("div"),wn(t,"class",["bytemd-toolbar-icon",jy].join(" ")),wn(t,"bytemd-tippy-path",e[27])},m(r,i){ii(r,t,i),t.innerHTML=n},p(r,i){i&8&&n!==(n=r[25].icon+"")&&(t.innerHTML=n)},d(r){r&&Ur(t)}}}function yk(e){let t,n=e[25].handler&&vk(e);return{c(){n&&n.c(),t=Jm()},m(r,i){n&&n.m(r,i),ii(r,t,i)},p(r,i){r[25].handler?n?n.p(r,i):(n=vk(r),n.c(),n.m(t.parentNode,t)):n&&(n.d(1),n=null)},d(r){n&&n.d(r),r&&Ur(t)}}}function bk(e){let t,n=e[25].icon+"";return{c(){t=dn("div"),wn(t,"class",["bytemd-toolbar-icon",jy,Tv].join(" ")),wn(t,"bytemd-tippy-path",e[27]),ei(t,"bytemd-toolbar-icon-active",e[25].active)},m(r,i){ii(r,t,i),t.innerHTML=n},p(r,i){i&32&&n!==(n=r[25].icon+"")&&(t.innerHTML=n),i&32&&ei(t,"bytemd-toolbar-icon-active",r[25].active)},d(r){r&&Ur(t)}}}function Ck(e){let t,n=!e[25].hidden&&bk(e);return{c(){n&&n.c(),t=Jm()},m(r,i){n&&n.m(r,i),ii(r,t,i)},p(r,i){r[25].hidden?n&&(n.d(1),n=null):n?n.p(r,i):(n=bk(r),n.c(),n.m(t.parentNode,t))},d(r){n&&n.d(r),r&&Ur(t)}}}function dwe(e){let t,n,r,i,o;function a(p,m){return p[0]?uwe:cwe}let l=a(e),c=l(e),u=e[5],f=[];for(let p=0;p<u.length;p+=1)f[p]=Ck(mk(e,u,p));return{c(){t=dn("div"),n=dn("div"),c.c(),r=dn("div");for(let p=0;p<f.length;p+=1)f[p].c();wn(n,"class","bytemd-toolbar-left"),wn(r,"class","bytemd-toolbar-right"),wn(t,"class","bytemd-toolbar")},m(p,m){ii(p,t,m),un(t,n),c.m(n,null),un(t,r);for(let g=0;g<f.length;g+=1)f[g]&&f[g].m(r,null);e[20](t),i||(o=[Jo(t,"click",e[7]),Jo(t,"keydown",n1(e[21]))],i=!0)},p(p,[m]){if(l===(l=a(p))&&c?c.p(p,m):(c.d(1),c=l(p),c&&(c.c(),c.m(n,null))),m&32){u=p[5];let g;for(g=0;g<u.length;g+=1){const b=mk(p,u,g);f[g]?f[g].p(b,m):(f[g]=Ck(b),f[g].c(),f[g].m(r,null))}for(;g<f.length;g+=1)f[g].d(1);f.length=u.length}},i:ia,o:ia,d(p){p&&Ur(t),c.d(),dm(f,p),e[20](null),i=!1,jl(o)}}}const jy="bytemd-tippy",Tv="bytemd-tippy-right",q9="bytemd-tippy-path";function fwe(e,t,n){let r,i,o,a,l;const c=e0();let u,{context:f}=t,{split:p}=t,{activeTab:m}=t,{fullscreen:g}=t,{sidebar:b}=t,{locale:E}=t,{actions:x}=t,{rightAfferentActions:C}=t;function S(B){var L,D;const z=(D=(L=B.getAttribute(q9))==null?void 0:L.split("-"))==null?void 0:D.map(j=>parseInt(j,10));if(!z)return;let W={title:"",handler:{type:"dropdown",actions:B.classList.contains(Tv)?l:x}};return z==null||z.forEach(j=>{var U;((U=W.handler)==null?void 0:U.type)==="dropdown"&&(W=W.handler.actions[j])}),{paths:z,item:W}}let T;function O(){T=C5e(u,{target:`.${jy}`,onCreate({setProps:B,reference:L}){const D=S(L);if(!D)return;const{item:z,paths:W}=D,{handler:j}=z;if(j){if(j.type==="action")B({content:z.title,onHidden(U){U.destroy()}});else if(j.type==="dropdown"){const U=document.createElement("div");if(U.classList.add("bytemd-dropdown"),z.title){const q=document.createElement("div");q.classList.add("bytemd-dropdown-title"),q.appendChild(document.createTextNode(z.title)),U.appendChild(q)}j.actions.forEach((q,A)=>{var P;const Z=document.createElement("div");Z.classList.add("bytemd-dropdown-item"),Z.setAttribute(q9,[...W,A].join("-")),((P=q.handler)==null?void 0:P.type)==="dropdown"&&Z.classList.add(jy),L.classList.contains(Tv)&&Z.classList.add(Tv),Z.innerHTML=`${q.icon?`<div class="bytemd-dropdown-item-icon">${q.icon}</div>`:""}<div class="bytemd-dropdown-item-title">${q.title}</div>`,U.appendChild(Z)}),B({allowHTML:!0,showOnCreate:!0,theme:"light-border",placement:"bottom-start",interactive:!0,interactiveDebounce:50,arrow:!1,offset:[0,4],content:U.outerHTML,onHidden(q){q.destroy()},onCreate(q){[...q.popper.querySelectorAll(".bytemd-dropdown-item")].forEach((A,P)=>{var Z;const V=(Z=j.actions[P])==null?void 0:Z.handler;if((V==null?void 0:V.type)==="action"){const{mouseenter:Y,mouseleave:ee}=V;Y&&A.addEventListener("mouseenter",()=>{Y(f)}),ee&&A.addEventListener("mouseleave",()=>{ee(f)})}})}})}}}})}d6(()=>{O()});function I(B){var L,D;const z=B.target.closest(`[${q9}]`);if(!z)return;const W=(D=(L=S(z))==null?void 0:L.item)==null?void 0:D.handler;(W==null?void 0:W.type)==="action"&&W.click(f),T==null||T.destroy(),O()}const _=()=>c("tab","write"),$=B=>["Enter","Space"].includes(B.code)&&c("tab","write"),k=()=>c("tab","preview"),R=B=>["Enter","Space"].includes(B.code)&&c("tab","preview");function M(B){$u[B?"unshift":"push"](()=>{u=B,n(4,u)})}const H=B=>["Enter","Space"].includes(B.code)&&I(B);return e.$$set=B=>{"context"in B&&n(8,f=B.context),"split"in B&&n(0,p=B.split),"activeTab"in B&&n(1,m=B.activeTab),"fullscreen"in B&&n(9,g=B.fullscreen),"sidebar"in B&&n(10,b=B.sidebar),"locale"in B&&n(2,E=B.locale),"actions"in B&&n(3,x=B.actions),"rightAfferentActions"in B&&n(11,C=B.rightAfferentActions)},e.$$.update=()=>{e.$$.dirty&1024&&n(15,r=b==="toc"),e.$$.dirty&1024&&n(14,i=b==="help"),e.$$.dirty&2&&n(13,o=m==="write"),e.$$.dirty&2&&n(12,a=m==="preview"),e.$$.dirty&64005&&n(5,l=[{title:r?E.closeToc:E.toc,icon:pr.AlignTextLeftOne,handler:{type:"action",click(){c("click","toc")}},active:r},{title:i?E.closeHelp:E.help,icon:pr.Helpcenter,handler:{type:"action",click(){c("click","help")}},active:i},{title:o?E.exitWriteOnly:E.writeOnly,icon:pr.LeftExpand,handler:{type:"action",click(){c("tab","write")}},active:o,hidden:!p},{title:a?E.exitPreviewOnly:E.previewOnly,icon:pr.RightExpand,handler:{type:"action",click(){c("tab","preview")}},active:a,hidden:!p},{title:g?E.exitFullscreen:E.fullscreen,icon:g?pr.OffScreen:pr.FullScreen,handler:{type:"action",click(){c("click","fullscreen")}}},{title:E.source,icon:pr.GithubOne,handler:{type:"action",click(){window.open("https://github.com/bytedance/bytemd")}}},...C])},[p,m,E,x,u,l,c,I,f,g,b,C,a,o,i,r,_,$,k,R,M,H]}class hwe extends _1{constructor(t){super(),T1(this,t,fwe,dwe,P2,{context:8,split:0,activeTab:1,fullscreen:9,sidebar:10,locale:2,actions:3,rightAfferentActions:11})}}const pwe=JSON.stringify(U3);function sW({sanitize:e,plugins:t,remarkRehype:n={}}){let r=v3e().use(v8e);t==null||t.forEach(({remark:o})=>{o&&(r=o(r))}),r=r.use(Z8e,{allowDangerousHtml:!0,...n}).use(ySe);let i=JSON.parse(pwe);return i.attributes["*"].push("className"),typeof e=="function"&&(i=e(i)),r=r.use(bSe,i),t==null||t.forEach(({rehype:o})=>{o&&(r=o(r))}),r.use(mEe)}function mwe(e){let t;return{c(){t=dn("div"),wn(t,"class","markdown-body")},m(n,r){ii(n,t,r),t.innerHTML=e[1],e[8](t)},p(n,[r]){r&2&&(t.innerHTML=n[1])},i:ia,o:ia,d(n){n&&Ur(t),e[8](null)}}}function gwe(e,t,n){let r;const i=e0();let{value:o=""}=t,{plugins:a=[]}=t,{sanitize:l=void 0}=t,{remarkRehype:c=void 0}=t,u,f=[];function p(){f=a.map(C=>{var S;return(S=C.viewerEffect)==null?void 0:S.call(C,{markdownBody:u,file:g})})}function m(){f.forEach(C=>C==null?void 0:C())}d6(()=>{u.addEventListener("click",C=>{var S;const T=C.target;if(T.tagName!=="A")return;const O=T.getAttribute("href");O!=null&&O.startsWith("#")&&((S=u.querySelector("#user-content-"+O.slice(1)))==null||S.scrollIntoView())})}),rW(m);let g,b=0;const E=()=>(C,S)=>{xv().then(()=>{i("hast",{hast:C,file:S})})};Q3e(()=>{m(),p()});function x(C){$u[C?"unshift":"push"](()=>{u=C,n(0,u)})}return e.$$set=C=>{"value"in C&&n(2,o=C.value),"plugins"in C&&n(3,a=C.plugins),"sanitize"in C&&n(4,l=C.sanitize),"remarkRehype"in C&&n(5,c=C.remarkRehype)},e.$$.update=()=>{if(e.$$.dirty&188)try{n(6,g=sW({sanitize:l,plugins:[...a,{rehype:C=>C.use(E)}],remarkRehype:c}).processSync(o)),n(7,b++,b)}catch(C){console.error(C)}e.$$.dirty&192&&n(1,r=`${g}<!--${b}-->`)},[u,r,o,a,l,c,g,b,x]}let vwe=class extends _1{constructor(t){super(),T1(this,t,gwe,mwe,P2,{value:2,plugins:3,sanitize:4,remarkRehype:5})}};function Sk(e){let t,n;return t=new vwe({props:{value:e[16],plugins:e[1],sanitize:e[2],remarkRehype:e[3]}}),t.$on("hast",e[35]),{c(){jh(t.$$.fragment)},m(r,i){uf(t,r,i),n=!0},p(r,i){const o={};i[0]&65536&&(o.value=r[16]),i[0]&2&&(o.plugins=r[1]),i[0]&4&&(o.sanitize=r[2]),i[0]&8&&(o.remarkRehype=r[3]),t.$set(o)},i(r){n||(rs(t.$$.fragment,r),n=!0)},o(r){lu(t.$$.fragment,r),n=!1},d(r){df(t,r)}}}function ywe(e){let t,n,r,i,o,a,l,c,u,f=pr.Close+"",p,m,g,b,E,x;n=new hwe({props:{context:e[10],split:e[11],activeTab:e[8],sidebar:e[9],fullscreen:e[15],rightAfferentActions:e[21].rightActions,locale:e[12],actions:e[21].leftActions}}),n.$on("key",e[31]),n.$on("tab",e[32]),n.$on("click",e[33]);let C=!e[4]&&(e[11]||e[8]==="preview")&&Sk(e);return p=new nwe({props:{locale:e[12],actions:e[21].leftActions,visible:e[9]==="help"}}),m=new swe({props:{hast:e[18],locale:e[12],currentBlockIndex:e[20],visible:e[9]==="toc"}}),m.$on("click",e[39]),g=new owe({props:{locale:e[12],showSync:!e[4]&&e[11],value:e[16],syncEnabled:e[17],islimited:e[0].length>e[5]}}),g.$on("sync",e[40]),g.$on("top",e[41]),{c(){t=dn("div"),jh(n.$$.fragment),r=dn("div"),i=dn("div"),a=dn("div"),C&&C.c(),c=dn("div"),u=dn("div"),jh(p.$$.fragment),jh(m.$$.fragment),jh(g.$$.fragment),wn(i,"class","bytemd-editor"),wn(i,"style",o=e[22].edit),wn(a,"class","bytemd-preview"),wn(a,"style",l=e[22].preview),wn(u,"class","bytemd-sidebar-close"),wn(c,"class","bytemd-sidebar"),ei(c,"bytemd-hidden",e[9]===!1),wn(r,"class","bytemd-body"),wn(t,"class","bytemd"),ei(t,"bytemd-split",e[11]&&e[8]===!1),ei(t,"bytemd-fullscreen",e[15])},m(S,T){ii(S,t,T),uf(n,t,null),un(t,r),un(r,i),e[34](i),un(r,a),C&&C.m(a,null),e[36](a),un(r,c),un(c,u),u.innerHTML=f,uf(p,c,null),uf(m,c,null),uf(g,t,null),e[42](t),b=!0,E||(x=[Jo(u,"click",e[37]),Jo(u,"keydown",n1(e[38]))],E=!0)},p(S,T){const O={};T[0]&1024&&(O.context=S[10]),T[0]&2048&&(O.split=S[11]),T[0]&256&&(O.activeTab=S[8]),T[0]&512&&(O.sidebar=S[9]),T[0]&32768&&(O.fullscreen=S[15]),T[0]&2097152&&(O.rightAfferentActions=S[21].rightActions),T[0]&4096&&(O.locale=S[12]),T[0]&2097152&&(O.actions=S[21].leftActions),n.$set(O),(!b||T[0]&4194304&&o!==(o=S[22].edit))&&wn(i,"style",o),!S[4]&&(S[11]||S[8]==="preview")?C?(C.p(S,T),T[0]&2320&&rs(C,1)):(C=Sk(S),C.c(),rs(C,1),C.m(a,null)):C&&(e6e(),lu(C,1,1,()=>{C=null}),t6e()),(!b||T[0]&4194304&&l!==(l=S[22].preview))&&wn(a,"style",l);const I={};T[0]&4096&&(I.locale=S[12]),T[0]&2097152&&(I.actions=S[21].leftActions),T[0]&512&&(I.visible=S[9]==="help"),p.$set(I);const _={};T[0]&262144&&(_.hast=S[18]),T[0]&4096&&(_.locale=S[12]),T[0]&1048576&&(_.currentBlockIndex=S[20]),T[0]&512&&(_.visible=S[9]==="toc"),m.$set(_),(!b||T[0]&512)&&ei(c,"bytemd-hidden",S[9]===!1);const $={};T[0]&4096&&($.locale=S[12]),T[0]&2064&&($.showSync=!S[4]&&S[11]),T[0]&65536&&($.value=S[16]),T[0]&131072&&($.syncEnabled=S[17]),T[0]&33&&($.islimited=S[0].length>S[5]),g.$set($),(!b||T[0]&2304)&&ei(t,"bytemd-split",S[11]&&S[8]===!1),(!b||T[0]&32768)&&ei(t,"bytemd-fullscreen",S[15])},i(S){b||(rs(n.$$.fragment,S),rs(C),rs(p.$$.fragment,S),rs(m.$$.fragment,S),rs(g.$$.fragment,S),b=!0)},o(S){lu(n.$$.fragment,S),lu(C),lu(p.$$.fragment,S),lu(m.$$.fragment,S),lu(g.$$.fragment,S),b=!1},d(S){S&&Ur(t),df(n),e[34](null),C&&C.d(),e[36](null),df(p),df(m),df(g),e[42](null),E=!1,jl(x)}}}function bwe(e,t,n){let r,i,o,a,l,{value:c=""}=t,{plugins:u=[]}=t,{sanitize:f=void 0}=t,{remarkRehype:p=void 0}=t,{mode:m="auto"}=t,{previewDebounce:g=300}=t,{placeholder:b=void 0}=t,{editorConfig:E=void 0}=t,{locale:x=void 0}=t,{uploadImages:C=void 0}=t,{overridePreview:S=void 0}=t,{maxLength:T=1/0}=t;const O=e0();let I,_,$,k=1/0,R,M,H,B=!1,L=!1,D=[],z={};function W(){D=u.map(Se=>{var $e;return($e=Se.editorEffect)==null?void 0:$e.call(Se,l)}),z={},i.leftActions.forEach(({handler:Se})=>{(Se==null?void 0:Se.type)==="action"&&Se.shortcut&&(z[Se.shortcut]=()=>{Se.click(l)})}),M.addKeyMap(z)}function j(){D.forEach(Se=>Se&&Se()),M==null||M.removeKeyMap(z)}let U=c;const q=Jz(Se=>{n(16,U=Se),S==null||S($,{value:U,plugins:u,sanitize:f,remarkRehype:p})},g);let A=!0,P=!1,Z=!1,V,Y,ee={type:"root",children:[]},ue,ne=0;d6(async()=>{n(30,R=Q6e()),n(7,M=R(_,{value:c,mode:"yaml-frontmatter",lineWrapping:!0,tabSize:8,indentUnit:4,extraKeys:{Enter:"newlineAndIndentContinueMarkdownList"},...E,placeholder:b})),M.addKeyMap({Tab:"indentMore","Shift-Tab":"indentLess"}),M.on("change",()=>{O("change",{value:M.getValue()})});const Se=G3e(()=>{V=[],Y=[];const Fe=M.getScrollInfo(),Ke=$.childNodes[0];if(!(Ke instanceof HTMLElement))return;const Ve=ee.children.filter(Pe=>Pe.type==="element"),Ce=[...Ke.childNodes].filter(Pe=>Pe instanceof HTMLElement);for(let Pe=0;Pe<Ve.length;Pe++){const We=Ve[Pe],Ze=Ce[Pe];if(!We.position)continue;const ut=M.heightAtLine(We.position.start.line-1,"local")/(Fe.height-Fe.clientHeight),Be=(Ze.offsetTop-Ke.offsetTop)/($.scrollHeight-$.clientHeight);if(ut>=1||Be>=1)break;V.push(ut),Y.push(Be)}V.push(1),Y.push(1)},1e3),$e=()=>{if(S||!A)return;if(Z){Z=!1;return}Se();const Fe=M.getScrollInfo(),Ke=Fe.top/(Fe.height-Fe.clientHeight),Ve=G9(Ke,V),Ce=(Ke-V[Ve])*(Y[Ve+1]-Y[Ve])/(V[Ve+1]-V[Ve])+Y[Ve];$.scrollTo(0,Ce*($.scrollHeight-$.clientHeight)),P=!0},qe=()=>{if(S||(Se(),n(20,ne=G9($.scrollTop/($.scrollHeight-$.offsetHeight),Y)),!A))return;if(P){P=!1;return}const Fe=$.scrollTop/($.scrollHeight-$.clientHeight),Ke=G9(Fe,Y),Ve=(Fe-Y[Ke])*(V[Ke+1]-V[Ke])/(Y[Ke+1]-Y[Ke])+V[Ke];if(isNaN(Ve))return;const Ce=M.getScrollInfo();M.scrollTo(0,Ve*(Ce.height-Ce.clientHeight)),Z=!0};M.on("scroll",$e),$.addEventListener("scroll",qe,{passive:!0});const Le=async(Fe,Ke)=>{if(!C)return;const Ve=Array.from(Ke??[]).map(Ce=>{if(Ce.type.startsWith("image/"))return Ce.getAsFile()}).filter(Ce=>Ce!=null);Ve.length&&(Fe.preventDefault(),await lW(l,C,Ve))};M.on("drop",async(Fe,Ke)=>{var Ve;Le(Ke,(Ve=Ke.dataTransfer)==null?void 0:Ve.items)}),M.on("paste",async(Fe,Ke)=>{var Ve;Le(Ke,(Ve=Ke.clipboardData)==null?void 0:Ve.items)}),new ResizeObserver(Fe=>{n(29,k=Fe[0].contentRect.width)}).observe(I,{box:"border-box"})}),rW(j);const se=Se=>{M.setOption("keyMap",Se.detail),M.focus()},me=Se=>{const $e=Se.detail;o?n(8,H=H===$e?!1:$e):n(8,H=$e),H==="write"&&xv().then(()=>{M&&M.focus()}),$e==="write"&&xv().then(()=>{M&&M.setSize(null,null)})},ye=Se=>{switch(Se.detail){case"fullscreen":n(15,B=!B);break;case"help":n(9,L=L==="help"?!1:"help");break;case"toc":n(9,L=L==="toc"?!1:"toc");break}};function de(Se){$u[Se?"unshift":"push"](()=>{_=Se,n(13,_)})}const ce=Se=>{n(18,ee=Se.detail.hast),n(19,ue=Se.detail.file)};function oe(Se){$u[Se?"unshift":"push"](()=>{$=Se,n(14,$)})}const pe=()=>{n(9,L=!1)},ve=Se=>{["Enter","Space"].includes(Se.code)&&n(9,L=!1)},Te=Se=>{$.querySelectorAll("h1,h2,h3,h4,h5,h6")[Se.detail].scrollIntoView()},Ge=Se=>{n(17,A=Se.detail)},je=()=>{M.scrollTo(null,0),$.scrollTo({top:0})};function Je(Se){$u[Se?"unshift":"push"](()=>{I=Se,n(6,I)})}return e.$$set=Se=>{"value"in Se&&n(0,c=Se.value),"plugins"in Se&&n(1,u=Se.plugins),"sanitize"in Se&&n(2,f=Se.sanitize),"remarkRehype"in Se&&n(3,p=Se.remarkRehype),"mode"in Se&&n(23,m=Se.mode),"previewDebounce"in Se&&n(24,g=Se.previewDebounce),"placeholder"in Se&&n(25,b=Se.placeholder),"editorConfig"in Se&&n(26,E=Se.editorConfig),"locale"in Se&&n(27,x=Se.locale),"uploadImages"in Se&&n(28,C=Se.uploadImages),"overridePreview"in Se&&n(4,S=Se.overridePreview),"maxLength"in Se&&n(5,T=Se.maxLength)},e.$$.update=()=>{e.$$.dirty[0]&134217728&&n(12,r={...Y6e,...x}),e.$$.dirty[0]&268439554&&n(21,i=J6e(r,u,C)),e.$$.dirty[0]&545259520&&n(11,o=m==="split"||m==="auto"&&k>=800),e.$$.dirty[0]&2048&&(Se=>{o&&n(8,H=!1)})(),e.$$.dirty[0]&2816&&n(22,a=(()=>{let Se,$e;return o&&H===!1?L?(Se=`width:calc(50% - ${L?140:0}px)`,$e=`width:calc(50% - ${L?140:0}px)`):(Se="width:50%",$e="width:50%"):H==="preview"?(Se="display:none",$e=`width:calc(100% - ${L?280:0}px)`):(Se=`width:calc(100% - ${L?280:0}px)`,$e="display:none"),{edit:Se,preview:$e}})()),e.$$.dirty[0]&1073742016&&n(10,l={codemirror:R,editor:M,root:I,...Z6e(R,M)}),e.$$.dirty[0]&1&&q(c),e.$$.dirty[0]&129&&M&&c!==M.getValue()&&M.setValue(c),e.$$.dirty[0]&130&&M&&u&&(j(),xv().then(()=>{W()}))},[c,u,f,p,S,T,I,M,H,L,l,o,r,_,$,B,U,A,ee,ue,ne,i,a,m,g,b,E,x,C,k,R,se,me,ye,de,ce,oe,pe,ve,Te,Ge,je,Je]}let Cwe=class extends _1{constructor(t){super(),T1(this,t,bwe,ywe,P2,{value:0,plugins:1,sanitize:2,remarkRehype:3,mode:23,previewDebounce:24,placeholder:25,editorConfig:26,locale:27,uploadImages:28,overridePreview:4,maxLength:5},null,[-1,-1])}};const Swe=({onChange:e,...t})=>{const n=d.useRef(),r=d.useRef(null),i=d.useRef();return d.useEffect(()=>{if(!r.current)return;const o=new Cwe({target:r.current,props:t});return o.$on("change",a=>{var l;(l=i.current)==null||l.call(i,a.detail.value)}),n.current=o,()=>{o.$destroy()}},[]),d.useEffect(()=>{i.current=e},[e]),d.useEffect(()=>{var o;(o=n.current)==null||o.$set(t)},[t]),be.createElement("div",{ref:r})},Ewe=({value:e,sanitize:t,plugins:n,remarkRehype:r})=>{var i;const o=d.useRef(null),a=d.useMemo(()=>{try{return sW({sanitize:t,plugins:n,remarkRehype:r}).processSync(e)}catch(l){console.error(l)}},[e,t,n,r]);return d.useEffect(()=>{const l=o.current;if(!l||!a)return;const c=n==null?void 0:n.map(({viewerEffect:u})=>u==null?void 0:u({markdownBody:l,file:a}));return()=>{c==null||c.forEach(u=>u&&u())}},[a,n]),be.createElement("div",{onClick:l=>{var c,u;const f=l.target;if(f.tagName!=="A")return;const p=f.getAttribute("href");p!=null&&p.startsWith("#")&&((u=(c=o.current)==null?void 0:c.querySelector("#user-content-"+p.slice(1)))==null||u.scrollIntoView())},ref:o,className:"markdown-body",dangerouslySetInnerHTML:{__html:(i=a==null?void 0:a.toString())!=null?i:""}})},xwe={tokenize:$we,partial:!0},cW={tokenize:Nwe,partial:!0},uW={tokenize:Awe,partial:!0},dW={tokenize:kwe,partial:!0},wwe={tokenize:Rwe,partial:!0},fW={tokenize:Owe,previous:pW},hW={tokenize:Iwe,previous:mW},Es={tokenize:_we,previous:gW},Hl={},Twe={text:Hl};let nu=48;for(;nu<123;)Hl[nu]=Es,nu++,nu===58?nu=65:nu===91&&(nu=97);Hl[43]=Es;Hl[45]=Es;Hl[46]=Es;Hl[95]=Es;Hl[72]=[Es,hW];Hl[104]=[Es,hW];Hl[87]=[Es,fW];Hl[119]=[Es,fW];function _we(e,t,n){const r=this;let i,o;return a;function a(p){return!KE(p)||!gW.call(r,r.previous)||f6(r.events)?n(p):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),l(p))}function l(p){return KE(p)?(e.consume(p),l):p===64?(e.consume(p),c):n(p)}function c(p){return p===46?e.check(wwe,f,u)(p):p===45||p===95||Xi(p)?(o=!0,e.consume(p),c):f(p)}function u(p){return e.consume(p),i=!0,c}function f(p){return o&&i&&lo(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(p)):n(p)}}function Owe(e,t,n){const r=this;return i;function i(a){return a!==87&&a!==119||!pW.call(r,r.previous)||f6(r.events)?n(a):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(xwe,e.attempt(cW,e.attempt(uW,o),n),n)(a))}function o(a){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(a)}}function Iwe(e,t,n){const r=this;let i="",o=!1;return a;function a(p){return(p===72||p===104)&&mW.call(r,r.previous)&&!f6(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(p),e.consume(p),l):n(p)}function l(p){if(lo(p)&&i.length<5)return i+=String.fromCodePoint(p),e.consume(p),l;if(p===58){const m=i.toLowerCase();if(m==="http"||m==="https")return e.consume(p),c}return n(p)}function c(p){return p===47?(e.consume(p),o?u:(o=!0,c)):n(p)}function u(p){return p===null||Py(p)||or(p)||Hu(p)||R2(p)?n(p):e.attempt(cW,e.attempt(uW,f),n)(p)}function f(p){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(p)}}function $we(e,t,n){let r=0;return i;function i(a){return(a===87||a===119)&&r<3?(r++,e.consume(a),i):a===46&&r===3?(e.consume(a),o):n(a)}function o(a){return a===null?n(a):t(a)}}function Nwe(e,t,n){let r,i,o;return a;function a(u){return u===46||u===95?e.check(dW,c,l)(u):u===null||or(u)||Hu(u)||u!==45&&R2(u)?c(u):(o=!0,e.consume(u),a)}function l(u){return u===95?r=!0:(i=r,r=void 0),e.consume(u),a}function c(u){return i||r||!o?n(u):t(u)}}function Awe(e,t){let n=0,r=0;return i;function i(a){return a===40?(n++,e.consume(a),i):a===41&&r<n?o(a):a===33||a===34||a===38||a===39||a===41||a===42||a===44||a===46||a===58||a===59||a===60||a===63||a===93||a===95||a===126?e.check(dW,t,o)(a):a===null||or(a)||Hu(a)?t(a):(e.consume(a),i)}function o(a){return a===41&&r++,e.consume(a),i}}function kwe(e,t,n){return r;function r(l){return l===33||l===34||l===39||l===41||l===42||l===44||l===46||l===58||l===59||l===63||l===95||l===126?(e.consume(l),r):l===38?(e.consume(l),o):l===93?(e.consume(l),i):l===60||l===null||or(l)||Hu(l)?t(l):n(l)}function i(l){return l===null||l===40||l===91||or(l)||Hu(l)?t(l):r(l)}function o(l){return lo(l)?a(l):n(l)}function a(l){return l===59?(e.consume(l),r):lo(l)?(e.consume(l),a):n(l)}}function Rwe(e,t,n){return r;function r(o){return e.consume(o),i}function i(o){return Xi(o)?n(o):t(o)}}function pW(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||or(e)}function mW(e){return!lo(e)}function gW(e){return!(e===47||KE(e))}function KE(e){return e===43||e===45||e===46||e===95||Xi(e)}function f6(e){let t=e.length,n=!1;for(;t--;){const r=e[t][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const Mwe={tokenize:zwe,partial:!0};function Pwe(){return{document:{91:{tokenize:Bwe,continuation:{tokenize:jwe},exit:Hwe}},text:{91:{tokenize:Fwe},93:{add:"after",tokenize:Lwe,resolveTo:Dwe}}}}function Lwe(e,t,n){const r=this;let i=r.events.length;const o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a;for(;i--;){const c=r.events[i][1];if(c.type==="labelImage"){a=c;break}if(c.type==="gfmFootnoteCall"||c.type==="labelLink"||c.type==="label"||c.type==="image"||c.type==="link")break}return l;function l(c){if(!a||!a._balanced)return n(c);const u=rl(r.sliceSerialize({start:a.end,end:r.now()}));return u.codePointAt(0)!==94||!o.includes(u.slice(1))?n(c):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(c),e.exit("gfmFootnoteCallLabelMarker"),t(c))}}function Dwe(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;const o={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},a={type:"chunkString",contentType:"string",start:Object.assign({},o.start),end:Object.assign({},o.end)},l=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",i,t],["exit",i,t],["enter",o,t],["enter",a,t],["exit",a,t],["exit",o,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...l),e}function Fwe(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o=0,a;return l;function l(p){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(p),e.exit("gfmFootnoteCallLabelMarker"),c}function c(p){return p!==94?n(p):(e.enter("gfmFootnoteCallMarker"),e.consume(p),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",u)}function u(p){if(o>999||p===93&&!a||p===null||p===91||or(p))return n(p);if(p===93){e.exit("chunkString");const m=e.exit("gfmFootnoteCallString");return i.includes(rl(r.sliceSerialize(m)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(p),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(p)}return or(p)||(a=!0),o++,e.consume(p),p===92?f:u}function f(p){return p===91||p===92||p===93?(e.consume(p),o++,u):u(p)}}function Bwe(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o,a=0,l;return c;function c(b){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(b),e.exit("gfmFootnoteDefinitionLabelMarker"),u}function u(b){return b===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(b),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",f):n(b)}function f(b){if(a>999||b===93&&!l||b===null||b===91||or(b))return n(b);if(b===93){e.exit("chunkString");const E=e.exit("gfmFootnoteDefinitionLabelString");return o=rl(r.sliceSerialize(E)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(b),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),m}return or(b)||(l=!0),a++,e.consume(b),b===92?p:f}function p(b){return b===91||b===92||b===93?(e.consume(b),a++,f):f(b)}function m(b){return b===58?(e.enter("definitionMarker"),e.consume(b),e.exit("definitionMarker"),i.includes(o)||i.push(o),Rn(e,g,"gfmFootnoteDefinitionWhitespace")):n(b)}function g(b){return t(b)}}function jwe(e,t,n){return e.check(Qm,t,e.attempt(Mwe,t,n))}function Hwe(e){e.exit("gfmFootnoteDefinition")}function zwe(e,t,n){const r=this;return Rn(e,i,"gfmFootnoteDefinitionIndent",5);function i(o){const a=r.events[r.events.length-1];return a&&a[1].type==="gfmFootnoteDefinitionIndent"&&a[2].sliceSerialize(a[1],!0).length===4?t(o):n(o)}}function Wwe(e){let n=(e||{}).singleTilde;const r={tokenize:o,resolveAll:i};return n==null&&(n=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function i(a,l){let c=-1;for(;++c<a.length;)if(a[c][0]==="enter"&&a[c][1].type==="strikethroughSequenceTemporary"&&a[c][1]._close){let u=c;for(;u--;)if(a[u][0]==="exit"&&a[u][1].type==="strikethroughSequenceTemporary"&&a[u][1]._open&&a[c][1].end.offset-a[c][1].start.offset===a[u][1].end.offset-a[u][1].start.offset){a[c][1].type="strikethroughSequence",a[u][1].type="strikethroughSequence";const f={type:"strikethrough",start:Object.assign({},a[u][1].start),end:Object.assign({},a[c][1].end)},p={type:"strikethroughText",start:Object.assign({},a[u][1].end),end:Object.assign({},a[c][1].start)},m=[["enter",f,l],["enter",a[u][1],l],["exit",a[u][1],l],["enter",p,l]],g=l.parser.constructs.insideSpan.null;g&&ta(m,m.length,0,M2(g,a.slice(u+1,c),l)),ta(m,m.length,0,[["exit",p,l],["enter",a[c][1],l],["exit",a[c][1],l],["exit",f,l]]),ta(a,u-1,c-u+3,m),c=u+m.length-2;break}}for(c=-1;++c<a.length;)a[c][1].type==="strikethroughSequenceTemporary"&&(a[c][1].type="data");return a}function o(a,l,c){const u=this.previous,f=this.events;let p=0;return m;function m(b){return u===126&&f[f.length-1][1].type!=="characterEscape"?c(b):(a.enter("strikethroughSequenceTemporary"),g(b))}function g(b){const E=Ly(u);if(b===126)return p>1?c(b):(a.consume(b),p++,g);if(p<2&&!n)return c(b);const x=a.exit("strikethroughSequenceTemporary"),C=Ly(b);return x._open=!C||C===2&&!!E,x._close=!E||E===2&&!!C,l(b)}}}class Uwe{constructor(){this.map=[]}add(t,n,r){Kwe(this,t,n,r)}consume(t){if(this.map.sort((o,a)=>o[0]-a[0]),this.map.length===0)return;let n=this.map.length;const r=[];for(;n>0;)n-=1,r.push(t.slice(this.map[n][0]+this.map[n][1])),r.push(this.map[n][2]),t.length=this.map[n][0];r.push([...t]),t.length=0;let i=r.pop();for(;i;)t.push(...i),i=r.pop();this.map.length=0}}function Kwe(e,t,n,r){let i=0;if(!(n===0&&r.length===0)){for(;i<e.map.length;){if(e.map[i][0]===t){e.map[i][1]+=n,e.map[i][2].push(...r);return}i+=1}e.map.push([t,n,r])}}function Vwe(e,t){let n=!1;const r=[];for(;t<e.length;){const i=e[t];if(n){if(i[0]==="enter")i[1].type==="tableContent"&&r.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(i[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const o=r.length-1;r[o]=r[o]==="left"?"center":"right"}}else if(i[1].type==="tableDelimiterRow")break}else i[0]==="enter"&&i[1].type==="tableDelimiterRow"&&(n=!0);t+=1}return r}const Gwe={flow:{null:{tokenize:qwe,resolveAll:Xwe}}};function qwe(e,t,n){const r=this;let i=0,o=0,a;return l;function l(M){let H=r.events.length-1;for(;H>-1;){const D=r.events[H][1].type;if(D==="lineEnding"||D==="linePrefix")H--;else break}const B=H>-1?r.events[H][1].type:null,L=B==="tableHead"||B==="tableRow"?_:c;return L===_&&r.parser.lazy[r.now().line]?n(M):L(M)}function c(M){return e.enter("tableHead"),e.enter("tableRow"),u(M)}function u(M){return M===124||(a=!0,o+=1),f(M)}function f(M){return M===null?n(M):tn(M)?o>1?(o=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(M),e.exit("lineEnding"),g):n(M):vn(M)?Rn(e,f,"whitespace")(M):(o+=1,a&&(a=!1,i+=1),M===124?(e.enter("tableCellDivider"),e.consume(M),e.exit("tableCellDivider"),a=!0,f):(e.enter("data"),p(M)))}function p(M){return M===null||M===124||or(M)?(e.exit("data"),f(M)):(e.consume(M),M===92?m:p)}function m(M){return M===92||M===124?(e.consume(M),p):p(M)}function g(M){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(M):(e.enter("tableDelimiterRow"),a=!1,vn(M)?Rn(e,b,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(M):b(M))}function b(M){return M===45||M===58?x(M):M===124?(a=!0,e.enter("tableCellDivider"),e.consume(M),e.exit("tableCellDivider"),E):I(M)}function E(M){return vn(M)?Rn(e,x,"whitespace")(M):x(M)}function x(M){return M===58?(o+=1,a=!0,e.enter("tableDelimiterMarker"),e.consume(M),e.exit("tableDelimiterMarker"),C):M===45?(o+=1,C(M)):M===null||tn(M)?O(M):I(M)}function C(M){return M===45?(e.enter("tableDelimiterFiller"),S(M)):I(M)}function S(M){return M===45?(e.consume(M),S):M===58?(a=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(M),e.exit("tableDelimiterMarker"),T):(e.exit("tableDelimiterFiller"),T(M))}function T(M){return vn(M)?Rn(e,O,"whitespace")(M):O(M)}function O(M){return M===124?b(M):M===null||tn(M)?!a||i!==o?I(M):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(M)):I(M)}function I(M){return n(M)}function _(M){return e.enter("tableRow"),$(M)}function $(M){return M===124?(e.enter("tableCellDivider"),e.consume(M),e.exit("tableCellDivider"),$):M===null||tn(M)?(e.exit("tableRow"),t(M)):vn(M)?Rn(e,$,"whitespace")(M):(e.enter("data"),k(M))}function k(M){return M===null||M===124||or(M)?(e.exit("data"),$(M)):(e.consume(M),M===92?R:k)}function R(M){return M===92||M===124?(e.consume(M),k):k(M)}}function Xwe(e,t){let n=-1,r=!0,i=0,o=[0,0,0,0],a=[0,0,0,0],l=!1,c=0,u,f,p;const m=new Uwe;for(;++n<e.length;){const g=e[n],b=g[1];g[0]==="enter"?b.type==="tableHead"?(l=!1,c!==0&&(Ek(m,t,c,u,f),f=void 0,c=0),u={type:"table",start:Object.assign({},b.start),end:Object.assign({},b.end)},m.add(n,0,[["enter",u,t]])):b.type==="tableRow"||b.type==="tableDelimiterRow"?(r=!0,p=void 0,o=[0,0,0,0],a=[0,n+1,0,0],l&&(l=!1,f={type:"tableBody",start:Object.assign({},b.start),end:Object.assign({},b.end)},m.add(n,0,[["enter",f,t]])),i=b.type==="tableDelimiterRow"?2:f?3:1):i&&(b.type==="data"||b.type==="tableDelimiterMarker"||b.type==="tableDelimiterFiller")?(r=!1,a[2]===0&&(o[1]!==0&&(a[0]=a[1],p=Mg(m,t,o,i,void 0,p),o=[0,0,0,0]),a[2]=n)):b.type==="tableCellDivider"&&(r?r=!1:(o[1]!==0&&(a[0]=a[1],p=Mg(m,t,o,i,void 0,p)),o=a,a=[o[1],n,0,0])):b.type==="tableHead"?(l=!0,c=n):b.type==="tableRow"||b.type==="tableDelimiterRow"?(c=n,o[1]!==0?(a[0]=a[1],p=Mg(m,t,o,i,n,p)):a[1]!==0&&(p=Mg(m,t,a,i,n,p)),i=0):i&&(b.type==="data"||b.type==="tableDelimiterMarker"||b.type==="tableDelimiterFiller")&&(a[3]=n)}for(c!==0&&Ek(m,t,c,u,f),m.consume(t.events),n=-1;++n<t.events.length;){const g=t.events[n];g[0]==="enter"&&g[1].type==="table"&&(g[1]._align=Vwe(t.events,n))}return e}function Mg(e,t,n,r,i,o){const a=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",l="tableContent";n[0]!==0&&(o.end=Object.assign({},Ud(t.events,n[0])),e.add(n[0],0,[["exit",o,t]]));const c=Ud(t.events,n[1]);if(o={type:a,start:Object.assign({},c),end:Object.assign({},c)},e.add(n[1],0,[["enter",o,t]]),n[2]!==0){const u=Ud(t.events,n[2]),f=Ud(t.events,n[3]),p={type:l,start:Object.assign({},u),end:Object.assign({},f)};if(e.add(n[2],0,[["enter",p,t]]),r!==2){const m=t.events[n[2]],g=t.events[n[3]];if(m[1].end=Object.assign({},g[1].end),m[1].type="chunkText",m[1].contentType="text",n[3]>n[2]+1){const b=n[2]+1,E=n[3]-n[2]-1;e.add(b,E,[])}}e.add(n[3]+1,0,[["exit",p,t]])}return i!==void 0&&(o.end=Object.assign({},Ud(t.events,i)),e.add(i,0,[["exit",o,t]]),o=void 0),o}function Ek(e,t,n,r,i){const o=[],a=Ud(t.events,n);i&&(i.end=Object.assign({},a),o.push(["exit",i,t])),r.end=Object.assign({},a),o.push(["exit",r,t]),e.add(n+1,0,o)}function Ud(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const Ywe={tokenize:Zwe},Qwe={text:{91:Ywe}};function Zwe(e,t,n){const r=this;return i;function i(c){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(c):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(c),e.exit("taskListCheckMarker"),o)}function o(c){return or(c)?(e.enter("taskListCheckValueUnchecked"),e.consume(c),e.exit("taskListCheckValueUnchecked"),a):c===88||c===120?(e.enter("taskListCheckValueChecked"),e.consume(c),e.exit("taskListCheckValueChecked"),a):n(c)}function a(c){return c===93?(e.enter("taskListCheckMarker"),e.consume(c),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),l):n(c)}function l(c){return tn(c)?t(c):vn(c)?e.check({tokenize:Jwe},t,n)(c):n(c)}}function Jwe(e,t,n){return Rn(e,r,"whitespace");function r(i){return i===null?n(i):t(i)}}function eTe(e){return Iz([Twe,Pwe(),Wwe(e),Gwe,Qwe])}function tTe(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}const nTe={}.hasOwnProperty,vW=function(e,t,n,r){let i,o;typeof t=="string"||t instanceof RegExp?(o=[[t,n]],i=r):(o=t,i=n),i||(i={});const a=P3(i.ignore||[]),l=rTe(o);let c=-1;for(;++c<l.length;)dH(e,"text",u);return e;function u(p,m){let g=-1,b;for(;++g<m.length;){const E=m[g];if(a(E,b?b.children.indexOf(E):void 0,b))return;b=E}if(b)return f(p,m)}function f(p,m){const g=m[m.length-1],b=l[c][0],E=l[c][1];let x=0;const C=g.children.indexOf(p);let S=!1,T=[];b.lastIndex=0;let O=b.exec(p.value);for(;O;){const I=O.index,_={index:O.index,input:O.input,stack:[...m,p]};let $=E(...O,_);if(typeof $=="string"&&($=$.length>0?{type:"text",value:$}:void 0),$!==!1&&(x!==I&&T.push({type:"text",value:p.value.slice(x,I)}),Array.isArray($)?T.push(...$):$&&T.push($),x=I+O[0].length,S=!0),!b.global)break;O=b.exec(p.value)}return S?(x<p.value.length&&T.push({type:"text",value:p.value.slice(x)}),g.children.splice(C,1,...T)):T=[p],C+T.length}};function rTe(e){const t=[];if(typeof e!="object")throw new TypeError("Expected array or object as schema");if(Array.isArray(e)){let n=-1;for(;++n<e.length;)t.push([xk(e[n][0]),wk(e[n][1])])}else{let n;for(n in e)nTe.call(e,n)&&t.push([xk(n),wk(e[n])])}return t}function xk(e){return typeof e=="string"?new RegExp(tTe(e),"g"):e}function wk(e){return typeof e=="function"?e:()=>e}const X9="phrasing",Y9=["autolink","link","image","label"],iTe={transforms:[dTe],enter:{literalAutolink:aTe,literalAutolinkEmail:Q9,literalAutolinkHttp:Q9,literalAutolinkWww:Q9},exit:{literalAutolink:uTe,literalAutolinkEmail:cTe,literalAutolinkHttp:lTe,literalAutolinkWww:sTe}},oTe={unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:X9,notInConstruct:Y9},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:X9,notInConstruct:Y9},{character:":",before:"[ps]",after:"\\/",inConstruct:X9,notInConstruct:Y9}]};function aTe(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function Q9(e){this.config.enter.autolinkProtocol.call(this,e)}function lTe(e){this.config.exit.autolinkProtocol.call(this,e)}function sTe(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.url="http://"+this.sliceSerialize(e)}function cTe(e){this.config.exit.autolinkEmail.call(this,e)}function uTe(e){this.exit(e)}function dTe(e){vW(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,fTe],[/([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/g,hTe]],{ignore:["link","linkReference"]})}function fTe(e,t,n,r,i){let o="";if(!yW(i)||(/^w/i.test(t)&&(n=t+n,t="",o="http://"),!pTe(n)))return!1;const a=mTe(n+r);if(!a[0])return!1;const l={type:"link",title:null,url:o+t+a[0],children:[{type:"text",value:t+a[0]}]};return a[1]?[l,{type:"text",value:a[1]}]:l}function hTe(e,t,n,r){return!yW(r,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function pTe(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function mTe(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const i=My(e,"(");let o=My(e,")");for(;r!==-1&&i>o;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),o++;return[e,n]}function yW(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||Hu(n)||R2(n))&&(!t||n!==47)}function bW(e){return e.label||!e.identifier?e.label||"":Bz(e.identifier)}function gTe(e,t,n){const r=t.indexStack,i=e.children||[],o=t.createTracker(n),a=[];let l=-1;for(r.push(-1);++l<i.length;){const c=i[l];r[r.length-1]=l,a.push(o.move(t.handle(c,e,t,{before:`
`,after:`
`,...o.current()}))),c.type!=="list"&&(t.bulletLastUsed=void 0),l<i.length-1&&a.push(o.move(vTe(c,i[l+1],e,t)))}return r.pop(),a.join("")}function vTe(e,t,n,r){let i=r.join.length;for(;i--;){const o=r.join[i](e,t,n,r);if(o===!0||o===1)break;if(typeof o=="number")return`
`.repeat(1+o);if(o===!1)return`
<!---->
`}return`
`}const yTe=/\r?\n|\r/g;function bTe(e,t){const n=[];let r=0,i=0,o;for(;o=yTe.exec(e);)a(e.slice(r,o.index)),n.push(o[0]),r=o.index+o[0].length,i++;return a(e.slice(r)),n.join("");function a(l){n.push(t(l,i,!l))}}function CW(e){if(!e._compiled){const t=(e.atBreak?"[\\r\\n][\\t ]*":"")+(e.before?"(?:"+e.before+")":"");e._compiled=new RegExp((t?"("+t+")":"")+(/[|\\{}()[\]^$+*?.-]/.test(e.character)?"\\":"")+e.character+(e.after?"(?:"+e.after+")":""),"g")}return e._compiled}function CTe(e,t){return Tk(e,t.inConstruct,!0)&&!Tk(e,t.notInConstruct,!1)}function Tk(e,t,n){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function SW(e,t,n){const r=(n.before||"")+(t||"")+(n.after||""),i=[],o=[],a={};let l=-1;for(;++l<e.unsafe.length;){const f=e.unsafe[l];if(!CTe(e.stack,f))continue;const p=CW(f);let m;for(;m=p.exec(r);){const g="before"in f||!!f.atBreak,b="after"in f,E=m.index+(g?m[1].length:0);i.includes(E)?(a[E].before&&!g&&(a[E].before=!1),a[E].after&&!b&&(a[E].after=!1)):(i.push(E),a[E]={before:g,after:b})}}i.sort(STe);let c=n.before?n.before.length:0;const u=r.length-(n.after?n.after.length:0);for(l=-1;++l<i.length;){const f=i[l];f<c||f>=u||f+1<u&&i[l+1]===f+1&&a[f].after&&!a[f+1].before&&!a[f+1].after||i[l-1]===f-1&&a[f].before&&!a[f-1].before&&!a[f-1].after||(c!==f&&o.push(_k(r.slice(c,f),"\\")),c=f,/[!-/:-@[-`{-~]/.test(r.charAt(f))&&(!n.encode||!n.encode.includes(r.charAt(f)))?o.push("\\"):(o.push("&#x"+r.charCodeAt(f).toString(16).toUpperCase()+";"),c++))}return o.push(_k(r.slice(c,u),n.after)),o.join("")}function STe(e,t){return e-t}function _k(e,t){const n=/\\(?=[!-/:-@[-`{-~])/g,r=[],i=[],o=e+t;let a=-1,l=0,c;for(;c=n.exec(o);)r.push(c.index);for(;++a<r.length;)l!==r[a]&&i.push(e.slice(l,r[a])),i.push("\\"),l=r[a];return i.push(e.slice(l)),i.join("")}function D2(e){const t=e||{},n=t.now||{};let r=t.lineShift||0,i=n.line||1,o=n.column||1;return{move:c,current:a,shift:l};function a(){return{now:{line:i,column:o},lineShift:r}}function l(u){r+=u}function c(u){const f=u||"",p=f.split(/\r?\n|\r/g),m=p[p.length-1];return i+=p.length-1,o=p.length===1?o+m.length:1+m.length+r,f}}EW.peek=kTe;function ETe(){return{enter:{gfmFootnoteDefinition:wTe,gfmFootnoteDefinitionLabelString:TTe,gfmFootnoteCall:ITe,gfmFootnoteCallString:$Te},exit:{gfmFootnoteDefinition:OTe,gfmFootnoteDefinitionLabelString:_Te,gfmFootnoteCall:ATe,gfmFootnoteCallString:NTe}}}function xTe(){return{unsafe:[{character:"[",inConstruct:["phrasing","label","reference"]}],handlers:{footnoteDefinition:RTe,footnoteReference:EW}}}function wTe(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function TTe(){this.buffer()}function _Te(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=rl(this.sliceSerialize(e)).toLowerCase()}function OTe(e){this.exit(e)}function ITe(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function $Te(){this.buffer()}function NTe(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=rl(this.sliceSerialize(e)).toLowerCase()}function ATe(e){this.exit(e)}function EW(e,t,n,r){const i=D2(r);let o=i.move("[^");const a=n.enter("footnoteReference"),l=n.enter("reference");return o+=i.move(SW(n,bW(e),{...i.current(),before:o,after:"]"})),l(),a(),o+=i.move("]"),o}function kTe(){return"["}function RTe(e,t,n,r){const i=D2(r);let o=i.move("[^");const a=n.enter("footnoteDefinition"),l=n.enter("label");return o+=i.move(SW(n,bW(e),{...i.current(),before:o,after:"]"})),l(),o+=i.move("]:"+(e.children&&e.children.length>0?" ":"")),i.shift(4),o+=i.move(bTe(gTe(e,n,i.current()),MTe)),a(),o}function MTe(e,t,n){return t===0?e:(n?"":" ")+e}function xW(e,t,n){const r=t.indexStack,i=e.children||[],o=[];let a=-1,l=n.before;r.push(-1);let c=t.createTracker(n);for(;++a<i.length;){const u=i[a];let f;if(r[r.length-1]=a,a+1<i.length){let p=t.handle.handlers[i[a+1].type];p&&p.peek&&(p=p.peek),f=p?p(i[a+1],e,t,{before:"",after:"",...c.current()}).charAt(0):""}else f=n.after;o.length>0&&(l==="\r"||l===`
`)&&u.type==="html"&&(o[o.length-1]=o[o.length-1].replace(/(\r?\n|\r)$/," "),l=" ",c=t.createTracker(n),c.move(o.join(""))),o.push(c.move(t.handle(u,e,t,{...c.current(),before:l,after:f}))),l=o[o.length-1].slice(-1)}return r.pop(),o.join("")}const PTe=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];wW.peek=jTe;const LTe={canContainEols:["delete"],enter:{strikethrough:FTe},exit:{strikethrough:BTe}},DTe={unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:PTe}],handlers:{delete:wW}};function FTe(e){this.enter({type:"delete",children:[]},e)}function BTe(e){this.exit(e)}function wW(e,t,n,r){const i=D2(r),o=n.enter("strikethrough");let a=i.move("~~");return a+=xW(e,n,{...i.current(),before:a,after:"~"}),a+=i.move("~~"),o(),a}function jTe(){return"~"}TW.peek=HTe;function TW(e,t,n){let r=e.value||"",i="`",o=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++o<n.unsafe.length;){const a=n.unsafe[o],l=CW(a);let c;if(a.atBreak)for(;c=l.exec(r);){let u=c.index;r.charCodeAt(u)===10&&r.charCodeAt(u-1)===13&&u--,r=r.slice(0,u)+" "+r.slice(c.index+1)}}return i+r+i}function HTe(){return"`"}function zTe(e){return e.length}function WTe(e,t){const n=t||{},r=(n.align||[]).concat(),i=n.stringLength||zTe,o=[],a=[],l=[],c=[];let u=0,f=-1;for(;++f<e.length;){const E=[],x=[];let C=-1;for(e[f].length>u&&(u=e[f].length);++C<e[f].length;){const S=UTe(e[f][C]);if(n.alignDelimiters!==!1){const T=i(S);x[C]=T,(c[C]===void 0||T>c[C])&&(c[C]=T)}E.push(S)}a[f]=E,l[f]=x}let p=-1;if(typeof r=="object"&&"length"in r)for(;++p<u;)o[p]=Ok(r[p]);else{const E=Ok(r);for(;++p<u;)o[p]=E}p=-1;const m=[],g=[];for(;++p<u;){const E=o[p];let x="",C="";E===99?(x=":",C=":"):E===108?x=":":E===114&&(C=":");let S=n.alignDelimiters===!1?1:Math.max(1,c[p]-x.length-C.length);const T=x+"-".repeat(S)+C;n.alignDelimiters!==!1&&(S=x.length+S+C.length,S>c[p]&&(c[p]=S),g[p]=S),m[p]=T}a.splice(1,0,m),l.splice(1,0,g),f=-1;const b=[];for(;++f<a.length;){const E=a[f],x=l[f];p=-1;const C=[];for(;++p<u;){const S=E[p]||"";let T="",O="";if(n.alignDelimiters!==!1){const I=c[p]-(x[p]||0),_=o[p];_===114?T=" ".repeat(I):_===99?I%2?(T=" ".repeat(I/2+.5),O=" ".repeat(I/2-.5)):(T=" ".repeat(I/2),O=T):O=" ".repeat(I)}n.delimiterStart!==!1&&!p&&C.push("|"),n.padding!==!1&&!(n.alignDelimiters===!1&&S==="")&&(n.delimiterStart!==!1||p)&&C.push(" "),n.alignDelimiters!==!1&&C.push(T),C.push(S),n.alignDelimiters!==!1&&C.push(O),n.padding!==!1&&C.push(" "),(n.delimiterEnd!==!1||p!==u-1)&&C.push("|")}b.push(n.delimiterEnd===!1?C.join("").replace(/ +$/,""):C.join(""))}return b.join(`
`)}function UTe(e){return e==null?"":String(e)}function Ok(e){const t=typeof e=="string"?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}const KTe={enter:{table:VTe,tableData:Ik,tableHeader:Ik,tableRow:qTe},exit:{codeText:XTe,table:GTe,tableData:Z9,tableHeader:Z9,tableRow:Z9}};function VTe(e){const t=e._align;this.enter({type:"table",align:t.map(n=>n==="none"?null:n),children:[]},e),this.setData("inTable",!0)}function GTe(e){this.exit(e),this.setData("inTable")}function qTe(e){this.enter({type:"tableRow",children:[]},e)}function Z9(e){this.exit(e)}function Ik(e){this.enter({type:"tableCell",children:[]},e)}function XTe(e){let t=this.resume();this.getData("inTable")&&(t=t.replace(/\\([\\|])/g,YTe));const n=this.stack[this.stack.length-1];n.value=t,this.exit(e)}function YTe(e,t){return t==="|"?t:e}function QTe(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,o=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{table:a,tableRow:l,tableCell:c,inlineCode:m}};function a(g,b,E,x){return u(f(g,E,x),g.align)}function l(g,b,E,x){const C=p(g,E,x),S=u([C]);return S.slice(0,S.indexOf(`
`))}function c(g,b,E,x){const C=E.enter("tableCell"),S=E.enter("phrasing"),T=xW(g,E,{...x,before:o,after:o});return S(),C(),T}function u(g,b){return WTe(g,{align:b,alignDelimiters:r,padding:n,stringLength:i})}function f(g,b,E){const x=g.children;let C=-1;const S=[],T=b.enter("table");for(;++C<x.length;)S[C]=p(x[C],b,E);return T(),S}function p(g,b,E){const x=g.children;let C=-1;const S=[],T=b.enter("tableRow");for(;++C<x.length;)S[C]=c(x[C],g,b,E);return T(),S}function m(g,b,E){let x=TW(g,b,E);return E.stack.includes("tableCell")&&(x=x.replace(/\|/g,"\\$&")),x}}function ZTe(e){const t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function JTe(e){const t=e.options.listItemIndent||"tab";if(t===1||t==="1")return"one";if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function e7e(e,t,n,r){const i=JTe(n);let o=n.bulletCurrent||ZTe(n);t&&t.type==="list"&&t.ordered&&(o=(typeof t.start=="number"&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+o);let a=o.length+1;(i==="tab"||i==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(a=Math.ceil(a/4)*4);const l=n.createTracker(r);l.move(o+" ".repeat(a-o.length)),l.shift(a);const c=n.enter("listItem"),u=n.indentLines(n.containerFlow(e,l.current()),f);return c(),u;function f(p,m,g){return m?(g?"":" ".repeat(a))+p:(g?o:o+" ".repeat(a-o.length))+p}}const t7e={exit:{taskListCheckValueChecked:$k,taskListCheckValueUnchecked:$k,paragraph:r7e}},n7e={unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:i7e}};function $k(e){const t=this.stack[this.stack.length-2];t.checked=e.type==="taskListCheckValueChecked"}function r7e(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const n=this.stack[this.stack.length-1],r=n.children[0];if(r&&r.type==="text"){const i=t.children;let o=-1,a;for(;++o<i.length;){const l=i[o];if(l.type==="paragraph"){a=l;break}}a===n&&(r.value=r.value.slice(1),r.value.length===0?n.children.shift():n.position&&r.position&&typeof r.position.start.offset=="number"&&(r.position.start.column++,r.position.start.offset++,n.position.start=Object.assign({},r.position.start)))}}this.exit(e)}function i7e(e,t,n,r){const i=e.children[0],o=typeof e.checked=="boolean"&&i&&i.type==="paragraph",a="["+(e.checked?"x":" ")+"] ",l=D2(r);o&&l.move(a);let c=e7e(e,t,n,{...r,...l.current()});return o&&(c=c.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,u)),c;function u(f){return f+a}}function o7e(){return[iTe,ETe(),LTe,KTe,t7e]}function a7e(e){return{extensions:[oTe,xTe(),DTe,QTe(e),n7e]}}function l7e(e={}){const t=this.data();n("micromarkExtensions",eTe(e)),n("fromMarkdownExtensions",o7e()),n("toMarkdownExtensions",a7e(e));function n(r,i){(t[r]?t[r]:t[r]=[]).push(i)}}const J9={Strikethrough:'<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" fill="none" viewBox="0 0 48 48"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="4" d="M5 24h38M24 24c16 6 10 20 0 20s-12-8-12-8M36 12s-3-8-12-8-12.564 7.6-8.39 14"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="4" d="M12 36s4 8 12 8 12.564-7.6 8.39-14"/></svg>',CheckCorrect:'<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" fill="none" viewBox="0 0 48 48"><g stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="4" clip-path="url(#a)"><path d="M42 20v19a3 3 0 0 1-3 3H9a3 3 0 0 1-3-3V9a3 3 0 0 1 3-3h21"/><path d="m16 20 10 8L41 7"/></g><defs><clipPath id="a"><path fill="currentColor" d="M0 0h48v48H0z"/></clipPath></defs></svg>',InsertTable:'<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" fill="none" viewBox="0 0 48 48"><path stroke="currentColor" stroke-width="4" d="M39.3 6H8.7A2.7 2.7 0 0 0 6 8.7v30.6A2.7 2.7 0 0 0 8.7 42h30.6a2.7 2.7 0 0 0 2.7-2.7V8.7A2.7 2.7 0 0 0 39.3 6Z"/><path stroke="currentColor" stroke-linecap="round" stroke-width="4" d="M18 6v36M30 6v36M6 18h36M6 30h36"/></svg>'},s7e="Strikethrough",c7e="text",u7e="Table",d7e="Heading",f7e="Task list",h7e="todo",p7e={strike:s7e,strikeText:c7e,table:u7e,tableHeading:d7e,task:f7e,taskText:h7e};function _W({locale:e,...t}={}){const n={...p7e,...e};return{remark:r=>r.use(l7e,t),actions:[{title:n.strike,icon:J9.Strikethrough,cheatsheet:`~~${n.strikeText}~~`,handler:{type:"action",click({wrapText:r,editor:i}){r("~~"),i.focus()}}},{title:n.task,icon:J9.CheckCorrect,cheatsheet:`- [ ] ${n.taskText}`,handler:{type:"action",click({replaceLines:r,editor:i}){r(o=>"- [ ] "+o),i.focus()}}},{title:n.table,icon:J9.InsertTable,handler:{type:"action",click({editor:r,appendBlock:i,codemirror:o}){const{line:a}=i(`| ${n.tableHeading} | |
| --- | --- |
| | |
`);r.setSelection(o.Pos(a,2),o.Pos(a,2+n.tableHeading.length)),r.focus()}}}]}}const m7e="modulepreload",g7e=function(e){return"/"+e},Nk={},OW=function(t,n,r){let i=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const a=document.querySelector("meta[property=csp-nonce]"),l=(a==null?void 0:a.nonce)||(a==null?void 0:a.getAttribute("nonce"));i=Promise.allSettled(n.map(c=>{if(c=g7e(c),c in Nk)return;Nk[c]=!0;const u=c.endsWith(".css"),f=u?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${c}"]${f}`))return;const p=document.createElement("link");if(p.rel=u?"stylesheet":m7e,u||(p.as="script"),p.crossOrigin="",p.href=c,l&&p.setAttribute("nonce",l),document.head.appendChild(p),u)return new Promise((m,g)=>{p.addEventListener("load",m),p.addEventListener("error",()=>g(new Error(`Unable to preload CSS for ${c}`)))})}))}function o(a){const l=new Event("vite:preloadError",{cancelable:!0});if(l.payload=a,window.dispatchEvent(l),!l.defaultPrevented)throw a}return i.then(a=>{for(const l of a||[])l.status==="rejected"&&o(l.reason);return t().catch(o)})};function IW({init:e}={}){let t;return{viewerEffect({markdownBody:n}){(async()=>{const r=n.querySelectorAll("pre>code");r.length!==0&&(t||(t=await OW(()=>import("./index-4n8t3guu.js"),[]).then(i=>i.default),e&&await e(t)),r.forEach(i=>{t.highlightElement(i)}))})()}}}/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */function $W(e){return typeof e>"u"||e===null}function v7e(e){return typeof e=="object"&&e!==null}function y7e(e){return Array.isArray(e)?e:$W(e)?[]:[e]}function b7e(e,t){var n,r,i,o;if(t)for(o=Object.keys(t),n=0,r=o.length;n<r;n+=1)i=o[n],e[i]=t[i];return e}function C7e(e,t){var n="",r;for(r=0;r<t;r+=1)n+=e;return n}function S7e(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}var E7e=$W,x7e=v7e,w7e=y7e,T7e=C7e,_7e=S7e,O7e=b7e,so={isNothing:E7e,isObject:x7e,toArray:w7e,repeat:T7e,isNegativeZero:_7e,extend:O7e};function NW(e,t){var n="",r=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(n+='in "'+e.mark.name+'" '),n+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!t&&e.mark.snippet&&(n+=`
`+e.mark.snippet),r+" "+n):r}function hm(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=NW(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}hm.prototype=Object.create(Error.prototype);hm.prototype.constructor=hm;hm.prototype.toString=function(t){return this.name+": "+NW(this,t)};var as=hm;function eC(e,t,n,r,i){var o="",a="",l=Math.floor(i/2)-1;return r-t>l&&(o=" ... ",t=r-l+o.length),n-r>l&&(a=" ...",n=r+l-a.length),{str:o+e.slice(t,n).replace(/\t/g,"→")+a,pos:r-t+o.length}}function tC(e,t){return so.repeat(" ",t-e.length)+e}function I7e(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||(t.maxLength=79),typeof t.indent!="number"&&(t.indent=1),typeof t.linesBefore!="number"&&(t.linesBefore=3),typeof t.linesAfter!="number"&&(t.linesAfter=2);for(var n=/\r?\n|\r|\0/g,r=[0],i=[],o,a=-1;o=n.exec(e.buffer);)i.push(o.index),r.push(o.index+o[0].length),e.position<=o.index&&a<0&&(a=r.length-2);a<0&&(a=r.length-1);var l="",c,u,f=Math.min(e.line+t.linesAfter,i.length).toString().length,p=t.maxLength-(t.indent+f+3);for(c=1;c<=t.linesBefore&&!(a-c<0);c++)u=eC(e.buffer,r[a-c],i[a-c],e.position-(r[a]-r[a-c]),p),l=so.repeat(" ",t.indent)+tC((e.line-c+1).toString(),f)+" | "+u.str+`
`+l;for(u=eC(e.buffer,r[a],i[a],e.position,p),l+=so.repeat(" ",t.indent)+tC((e.line+1).toString(),f)+" | "+u.str+`
`,l+=so.repeat("-",t.indent+f+3+u.pos)+`^
`,c=1;c<=t.linesAfter&&!(a+c>=i.length);c++)u=eC(e.buffer,r[a+c],i[a+c],e.position-(r[a]-r[a+c]),p),l+=so.repeat(" ",t.indent)+tC((e.line+c+1).toString(),f)+" | "+u.str+`
`;return l.replace(/\n$/,"")}var $7e=I7e,N7e=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],A7e=["scalar","sequence","mapping"];function k7e(e){var t={};return e!==null&&Object.keys(e).forEach(function(n){e[n].forEach(function(r){t[String(r)]=n})}),t}function R7e(e,t){if(t=t||{},Object.keys(t).forEach(function(n){if(N7e.indexOf(n)===-1)throw new as('Unknown option "'+n+'" is met in definition of "'+e+'" YAML type.')}),this.options=t,this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(n){return n},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.representName=t.representName||null,this.defaultStyle=t.defaultStyle||null,this.multi=t.multi||!1,this.styleAliases=k7e(t.styleAliases||null),A7e.indexOf(this.kind)===-1)throw new as('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}var Qi=R7e;function Ak(e,t){var n=[];return e[t].forEach(function(r){var i=n.length;n.forEach(function(o,a){o.tag===r.tag&&o.kind===r.kind&&o.multi===r.multi&&(i=a)}),n[i]=r}),n}function M7e(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},t,n;function r(i){i.multi?(e.multi[i.kind].push(i),e.multi.fallback.push(i)):e[i.kind][i.tag]=e.fallback[i.tag]=i}for(t=0,n=arguments.length;t<n;t+=1)arguments[t].forEach(r);return e}function VE(e){return this.extend(e)}VE.prototype.extend=function(t){var n=[],r=[];if(t instanceof Qi)r.push(t);else if(Array.isArray(t))r=r.concat(t);else if(t&&(Array.isArray(t.implicit)||Array.isArray(t.explicit)))t.implicit&&(n=n.concat(t.implicit)),t.explicit&&(r=r.concat(t.explicit));else throw new as("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");n.forEach(function(o){if(!(o instanceof Qi))throw new as("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(o.loadKind&&o.loadKind!=="scalar")throw new as("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(o.multi)throw new as("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),r.forEach(function(o){if(!(o instanceof Qi))throw new as("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var i=Object.create(VE.prototype);return i.implicit=(this.implicit||[]).concat(n),i.explicit=(this.explicit||[]).concat(r),i.compiledImplicit=Ak(i,"implicit"),i.compiledExplicit=Ak(i,"explicit"),i.compiledTypeMap=M7e(i.compiledImplicit,i.compiledExplicit),i};var P7e=VE,L7e=new Qi("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}}),D7e=new Qi("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}}),F7e=new Qi("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}}),B7e=new P7e({explicit:[L7e,D7e,F7e]});function j7e(e){if(e===null)return!0;var t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}function H7e(){return null}function z7e(e){return e===null}var W7e=new Qi("tag:yaml.org,2002:null",{kind:"scalar",resolve:j7e,construct:H7e,predicate:z7e,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function U7e(e){if(e===null)return!1;var t=e.length;return t===4&&(e==="true"||e==="True"||e==="TRUE")||t===5&&(e==="false"||e==="False"||e==="FALSE")}function K7e(e){return e==="true"||e==="True"||e==="TRUE"}function V7e(e){return Object.prototype.toString.call(e)==="[object Boolean]"}var G7e=new Qi("tag:yaml.org,2002:bool",{kind:"scalar",resolve:U7e,construct:K7e,predicate:V7e,represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"});function q7e(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function X7e(e){return 48<=e&&e<=55}function Y7e(e){return 48<=e&&e<=57}function Q7e(e){if(e===null)return!1;var t=e.length,n=0,r=!1,i;if(!t)return!1;if(i=e[n],(i==="-"||i==="+")&&(i=e[++n]),i==="0"){if(n+1===t)return!0;if(i=e[++n],i==="b"){for(n++;n<t;n++)if(i=e[n],i!=="_"){if(i!=="0"&&i!=="1")return!1;r=!0}return r&&i!=="_"}if(i==="x"){for(n++;n<t;n++)if(i=e[n],i!=="_"){if(!q7e(e.charCodeAt(n)))return!1;r=!0}return r&&i!=="_"}if(i==="o"){for(n++;n<t;n++)if(i=e[n],i!=="_"){if(!X7e(e.charCodeAt(n)))return!1;r=!0}return r&&i!=="_"}}if(i==="_")return!1;for(;n<t;n++)if(i=e[n],i!=="_"){if(!Y7e(e.charCodeAt(n)))return!1;r=!0}return!(!r||i==="_")}function Z7e(e){var t=e,n=1,r;if(t.indexOf("_")!==-1&&(t=t.replace(/_/g,"")),r=t[0],(r==="-"||r==="+")&&(r==="-"&&(n=-1),t=t.slice(1),r=t[0]),t==="0")return 0;if(r==="0"){if(t[1]==="b")return n*parseInt(t.slice(2),2);if(t[1]==="x")return n*parseInt(t.slice(2),16);if(t[1]==="o")return n*parseInt(t.slice(2),8)}return n*parseInt(t,10)}function J7e(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!so.isNegativeZero(e)}var e_e=new Qi("tag:yaml.org,2002:int",{kind:"scalar",resolve:Q7e,construct:Z7e,predicate:J7e,represent:{binary:function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),t_e=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function n_e(e){return!(e===null||!t_e.test(e)||e[e.length-1]==="_")}function r_e(e){var t,n;return t=e.replace(/_/g,"").toLowerCase(),n=t[0]==="-"?-1:1,"+-".indexOf(t[0])>=0&&(t=t.slice(1)),t===".inf"?n===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:t===".nan"?NaN:n*parseFloat(t,10)}var i_e=/^[-+]?[0-9]+e/;function o_e(e,t){var n;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(so.isNegativeZero(e))return"-0.0";return n=e.toString(10),i_e.test(n)?n.replace("e",".e"):n}function a_e(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||so.isNegativeZero(e))}var l_e=new Qi("tag:yaml.org,2002:float",{kind:"scalar",resolve:n_e,construct:r_e,predicate:a_e,represent:o_e,defaultStyle:"lowercase"}),s_e=B7e.extend({implicit:[W7e,G7e,e_e,l_e]}),c_e=s_e,AW=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),kW=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function u_e(e){return e===null?!1:AW.exec(e)!==null||kW.exec(e)!==null}function d_e(e){var t,n,r,i,o,a,l,c=0,u=null,f,p,m;if(t=AW.exec(e),t===null&&(t=kW.exec(e)),t===null)throw new Error("Date resolve error");if(n=+t[1],r=+t[2]-1,i=+t[3],!t[4])return new Date(Date.UTC(n,r,i));if(o=+t[4],a=+t[5],l=+t[6],t[7]){for(c=t[7].slice(0,3);c.length<3;)c+="0";c=+c}return t[9]&&(f=+t[10],p=+(t[11]||0),u=(f*60+p)*6e4,t[9]==="-"&&(u=-u)),m=new Date(Date.UTC(n,r,i,o,a,l,c)),u&&m.setTime(m.getTime()-u),m}function f_e(e){return e.toISOString()}var h_e=new Qi("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:u_e,construct:d_e,instanceOf:Date,represent:f_e});function p_e(e){return e==="<<"||e===null}var m_e=new Qi("tag:yaml.org,2002:merge",{kind:"scalar",resolve:p_e}),h6=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
\r`;function g_e(e){if(e===null)return!1;var t,n,r=0,i=e.length,o=h6;for(n=0;n<i;n++)if(t=o.indexOf(e.charAt(n)),!(t>64)){if(t<0)return!1;r+=6}return r%8===0}function v_e(e){var t,n,r=e.replace(/[\r\n=]/g,""),i=r.length,o=h6,a=0,l=[];for(t=0;t<i;t++)t%4===0&&t&&(l.push(a>>16&255),l.push(a>>8&255),l.push(a&255)),a=a<<6|o.indexOf(r.charAt(t));return n=i%4*6,n===0?(l.push(a>>16&255),l.push(a>>8&255),l.push(a&255)):n===18?(l.push(a>>10&255),l.push(a>>2&255)):n===12&&l.push(a>>4&255),new Uint8Array(l)}function y_e(e){var t="",n=0,r,i,o=e.length,a=h6;for(r=0;r<o;r++)r%3===0&&r&&(t+=a[n>>18&63],t+=a[n>>12&63],t+=a[n>>6&63],t+=a[n&63]),n=(n<<8)+e[r];return i=o%3,i===0?(t+=a[n>>18&63],t+=a[n>>12&63],t+=a[n>>6&63],t+=a[n&63]):i===2?(t+=a[n>>10&63],t+=a[n>>4&63],t+=a[n<<2&63],t+=a[64]):i===1&&(t+=a[n>>2&63],t+=a[n<<4&63],t+=a[64],t+=a[64]),t}function b_e(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}var C_e=new Qi("tag:yaml.org,2002:binary",{kind:"scalar",resolve:g_e,construct:v_e,predicate:b_e,represent:y_e}),S_e=Object.prototype.hasOwnProperty,E_e=Object.prototype.toString;function x_e(e){if(e===null)return!0;var t=[],n,r,i,o,a,l=e;for(n=0,r=l.length;n<r;n+=1){if(i=l[n],a=!1,E_e.call(i)!=="[object Object]")return!1;for(o in i)if(S_e.call(i,o))if(!a)a=!0;else return!1;if(!a)return!1;if(t.indexOf(o)===-1)t.push(o);else return!1}return!0}function w_e(e){return e!==null?e:[]}var T_e=new Qi("tag:yaml.org,2002:omap",{kind:"sequence",resolve:x_e,construct:w_e}),__e=Object.prototype.toString;function O_e(e){if(e===null)return!0;var t,n,r,i,o,a=e;for(o=new Array(a.length),t=0,n=a.length;t<n;t+=1){if(r=a[t],__e.call(r)!=="[object Object]"||(i=Object.keys(r),i.length!==1))return!1;o[t]=[i[0],r[i[0]]]}return!0}function I_e(e){if(e===null)return[];var t,n,r,i,o,a=e;for(o=new Array(a.length),t=0,n=a.length;t<n;t+=1)r=a[t],i=Object.keys(r),o[t]=[i[0],r[i[0]]];return o}var $_e=new Qi("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:O_e,construct:I_e}),N_e=Object.prototype.hasOwnProperty;function A_e(e){if(e===null)return!0;var t,n=e;for(t in n)if(N_e.call(n,t)&&n[t]!==null)return!1;return!0}function k_e(e){return e!==null?e:{}}var R_e=new Qi("tag:yaml.org,2002:set",{kind:"mapping",resolve:A_e,construct:k_e}),M_e=c_e.extend({implicit:[h_e,m_e],explicit:[C_e,T_e,$_e,R_e]}),Oc=Object.prototype.hasOwnProperty,Hy=1,RW=2,MW=3,zy=4,nC=1,P_e=2,kk=3,L_e=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,D_e=/[\x85\u2028\u2029]/,F_e=/[,\[\]\{\}]/,PW=/^(?:!|!!|![a-z\-]+!)$/i,LW=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function Rk(e){return Object.prototype.toString.call(e)}function Rl(e){return e===10||e===13}function Nu(e){return e===9||e===32}function No(e){return e===9||e===32||e===10||e===13}function ff(e){return e===44||e===91||e===93||e===123||e===125}function B_e(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}function j_e(e){return e===120?2:e===117?4:e===85?8:0}function H_e(e){return 48<=e&&e<=57?e-48:-1}function Mk(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?`
`:e===118?"\v":e===102?"\f":e===114?"\r":e===101?"\x1B":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"…":e===95?" ":e===76?"\u2028":e===80?"\u2029":""}function z_e(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}var DW=new Array(256),FW=new Array(256);for(var Fd=0;Fd<256;Fd++)DW[Fd]=Mk(Fd)?1:0,FW[Fd]=Mk(Fd);function W_e(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||M_e,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function BW(e,t){var n={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return n.snippet=$7e(n),new as(t,n)}function nn(e,t){throw BW(e,t)}function Wy(e,t){e.onWarning&&e.onWarning.call(null,BW(e,t))}var Pk={YAML:function(t,n,r){var i,o,a;t.version!==null&&nn(t,"duplication of %YAML directive"),r.length!==1&&nn(t,"YAML directive accepts exactly one argument"),i=/^([0-9]+)\.([0-9]+)$/.exec(r[0]),i===null&&nn(t,"ill-formed argument of the YAML directive"),o=parseInt(i[1],10),a=parseInt(i[2],10),o!==1&&nn(t,"unacceptable YAML version of the document"),t.version=r[0],t.checkLineBreaks=a<2,a!==1&&a!==2&&Wy(t,"unsupported YAML version of the document")},TAG:function(t,n,r){var i,o;r.length!==2&&nn(t,"TAG directive accepts exactly two arguments"),i=r[0],o=r[1],PW.test(i)||nn(t,"ill-formed tag handle (first argument) of the TAG directive"),Oc.call(t.tagMap,i)&&nn(t,'there is a previously declared suffix for "'+i+'" tag handle'),LW.test(o)||nn(t,"ill-formed tag prefix (second argument) of the TAG directive");try{o=decodeURIComponent(o)}catch{nn(t,"tag prefix is malformed: "+o)}t.tagMap[i]=o}};function yc(e,t,n,r){var i,o,a,l;if(t<n){if(l=e.input.slice(t,n),r)for(i=0,o=l.length;i<o;i+=1)a=l.charCodeAt(i),a===9||32<=a&&a<=1114111||nn(e,"expected valid JSON character");else L_e.test(l)&&nn(e,"the stream contains non-printable characters");e.result+=l}}function Lk(e,t,n,r){var i,o,a,l;for(so.isObject(n)||nn(e,"cannot merge mappings; the provided source object is unacceptable"),i=Object.keys(n),a=0,l=i.length;a<l;a+=1)o=i[a],Oc.call(t,o)||(t[o]=n[o],r[o]=!0)}function hf(e,t,n,r,i,o,a,l,c){var u,f;if(Array.isArray(i))for(i=Array.prototype.slice.call(i),u=0,f=i.length;u<f;u+=1)Array.isArray(i[u])&&nn(e,"nested arrays are not supported inside keys"),typeof i=="object"&&Rk(i[u])==="[object Object]"&&(i[u]="[object Object]");if(typeof i=="object"&&Rk(i)==="[object Object]"&&(i="[object Object]"),i=String(i),t===null&&(t={}),r==="tag:yaml.org,2002:merge")if(Array.isArray(o))for(u=0,f=o.length;u<f;u+=1)Lk(e,t,o[u],n);else Lk(e,t,o,n);else!e.json&&!Oc.call(n,i)&&Oc.call(t,i)&&(e.line=a||e.line,e.lineStart=l||e.lineStart,e.position=c||e.position,nn(e,"duplicated mapping key")),i==="__proto__"?Object.defineProperty(t,i,{configurable:!0,enumerable:!0,writable:!0,value:o}):t[i]=o,delete n[i];return t}function p6(e){var t;t=e.input.charCodeAt(e.position),t===10?e.position++:t===13?(e.position++,e.input.charCodeAt(e.position)===10&&e.position++):nn(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function ni(e,t,n){for(var r=0,i=e.input.charCodeAt(e.position);i!==0;){for(;Nu(i);)i===9&&e.firstTabInLine===-1&&(e.firstTabInLine=e.position),i=e.input.charCodeAt(++e.position);if(t&&i===35)do i=e.input.charCodeAt(++e.position);while(i!==10&&i!==13&&i!==0);if(Rl(i))for(p6(e),i=e.input.charCodeAt(e.position),r++,e.lineIndent=0;i===32;)e.lineIndent++,i=e.input.charCodeAt(++e.position);else break}return n!==-1&&r!==0&&e.lineIndent<n&&Wy(e,"deficient indentation"),r}function F2(e){var t=e.position,n;return n=e.input.charCodeAt(t),!!((n===45||n===46)&&n===e.input.charCodeAt(t+1)&&n===e.input.charCodeAt(t+2)&&(t+=3,n=e.input.charCodeAt(t),n===0||No(n)))}function m6(e,t){t===1?e.result+=" ":t>1&&(e.result+=so.repeat(`
`,t-1))}function U_e(e,t,n){var r,i,o,a,l,c,u,f,p=e.kind,m=e.result,g;if(g=e.input.charCodeAt(e.position),No(g)||ff(g)||g===35||g===38||g===42||g===33||g===124||g===62||g===39||g===34||g===37||g===64||g===96||(g===63||g===45)&&(i=e.input.charCodeAt(e.position+1),No(i)||n&&ff(i)))return!1;for(e.kind="scalar",e.result="",o=a=e.position,l=!1;g!==0;){if(g===58){if(i=e.input.charCodeAt(e.position+1),No(i)||n&&ff(i))break}else if(g===35){if(r=e.input.charCodeAt(e.position-1),No(r))break}else{if(e.position===e.lineStart&&F2(e)||n&&ff(g))break;if(Rl(g))if(c=e.line,u=e.lineStart,f=e.lineIndent,ni(e,!1,-1),e.lineIndent>=t){l=!0,g=e.input.charCodeAt(e.position);continue}else{e.position=a,e.line=c,e.lineStart=u,e.lineIndent=f;break}}l&&(yc(e,o,a,!1),m6(e,e.line-c),o=a=e.position,l=!1),Nu(g)||(a=e.position+1),g=e.input.charCodeAt(++e.position)}return yc(e,o,a,!1),e.result?!0:(e.kind=p,e.result=m,!1)}function K_e(e,t){var n,r,i;if(n=e.input.charCodeAt(e.position),n!==39)return!1;for(e.kind="scalar",e.result="",e.position++,r=i=e.position;(n=e.input.charCodeAt(e.position))!==0;)if(n===39)if(yc(e,r,e.position,!0),n=e.input.charCodeAt(++e.position),n===39)r=e.position,e.position++,i=e.position;else return!0;else Rl(n)?(yc(e,r,i,!0),m6(e,ni(e,!1,t)),r=i=e.position):e.position===e.lineStart&&F2(e)?nn(e,"unexpected end of the document within a single quoted scalar"):(e.position++,i=e.position);nn(e,"unexpected end of the stream within a single quoted scalar")}function V_e(e,t){var n,r,i,o,a,l;if(l=e.input.charCodeAt(e.position),l!==34)return!1;for(e.kind="scalar",e.result="",e.position++,n=r=e.position;(l=e.input.charCodeAt(e.position))!==0;){if(l===34)return yc(e,n,e.position,!0),e.position++,!0;if(l===92){if(yc(e,n,e.position,!0),l=e.input.charCodeAt(++e.position),Rl(l))ni(e,!1,t);else if(l<256&&DW[l])e.result+=FW[l],e.position++;else if((a=j_e(l))>0){for(i=a,o=0;i>0;i--)l=e.input.charCodeAt(++e.position),(a=B_e(l))>=0?o=(o<<4)+a:nn(e,"expected hexadecimal character");e.result+=z_e(o),e.position++}else nn(e,"unknown escape sequence");n=r=e.position}else Rl(l)?(yc(e,n,r,!0),m6(e,ni(e,!1,t)),n=r=e.position):e.position===e.lineStart&&F2(e)?nn(e,"unexpected end of the document within a double quoted scalar"):(e.position++,r=e.position)}nn(e,"unexpected end of the stream within a double quoted scalar")}function G_e(e,t){var n=!0,r,i,o,a=e.tag,l,c=e.anchor,u,f,p,m,g,b=Object.create(null),E,x,C,S;if(S=e.input.charCodeAt(e.position),S===91)f=93,g=!1,l=[];else if(S===123)f=125,g=!0,l={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=l),S=e.input.charCodeAt(++e.position);S!==0;){if(ni(e,!0,t),S=e.input.charCodeAt(e.position),S===f)return e.position++,e.tag=a,e.anchor=c,e.kind=g?"mapping":"sequence",e.result=l,!0;n?S===44&&nn(e,"expected the node content, but found ','"):nn(e,"missed comma between flow collection entries"),x=E=C=null,p=m=!1,S===63&&(u=e.input.charCodeAt(e.position+1),No(u)&&(p=m=!0,e.position++,ni(e,!0,t))),r=e.line,i=e.lineStart,o=e.position,r1(e,t,Hy,!1,!0),x=e.tag,E=e.result,ni(e,!0,t),S=e.input.charCodeAt(e.position),(m||e.line===r)&&S===58&&(p=!0,S=e.input.charCodeAt(++e.position),ni(e,!0,t),r1(e,t,Hy,!1,!0),C=e.result),g?hf(e,l,b,x,E,C,r,i,o):p?l.push(hf(e,null,b,x,E,C,r,i,o)):l.push(E),ni(e,!0,t),S=e.input.charCodeAt(e.position),S===44?(n=!0,S=e.input.charCodeAt(++e.position)):n=!1}nn(e,"unexpected end of the stream within a flow collection")}function q_e(e,t){var n,r,i=nC,o=!1,a=!1,l=t,c=0,u=!1,f,p;if(p=e.input.charCodeAt(e.position),p===124)r=!1;else if(p===62)r=!0;else return!1;for(e.kind="scalar",e.result="";p!==0;)if(p=e.input.charCodeAt(++e.position),p===43||p===45)nC===i?i=p===43?kk:P_e:nn(e,"repeat of a chomping mode identifier");else if((f=H_e(p))>=0)f===0?nn(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):a?nn(e,"repeat of an indentation width identifier"):(l=t+f-1,a=!0);else break;if(Nu(p)){do p=e.input.charCodeAt(++e.position);while(Nu(p));if(p===35)do p=e.input.charCodeAt(++e.position);while(!Rl(p)&&p!==0)}for(;p!==0;){for(p6(e),e.lineIndent=0,p=e.input.charCodeAt(e.position);(!a||e.lineIndent<l)&&p===32;)e.lineIndent++,p=e.input.charCodeAt(++e.position);if(!a&&e.lineIndent>l&&(l=e.lineIndent),Rl(p)){c++;continue}if(e.lineIndent<l){i===kk?e.result+=so.repeat(`
`,o?1+c:c):i===nC&&o&&(e.result+=`
`);break}for(r?Nu(p)?(u=!0,e.result+=so.repeat(`
`,o?1+c:c)):u?(u=!1,e.result+=so.repeat(`
`,c+1)):c===0?o&&(e.result+=" "):e.result+=so.repeat(`
`,c):e.result+=so.repeat(`
`,o?1+c:c),o=!0,a=!0,c=0,n=e.position;!Rl(p)&&p!==0;)p=e.input.charCodeAt(++e.position);yc(e,n,e.position,!1)}return!0}function Dk(e,t){var n,r=e.tag,i=e.anchor,o=[],a,l=!1,c;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=o),c=e.input.charCodeAt(e.position);c!==0&&(e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,nn(e,"tab characters must not be used in indentation")),!(c!==45||(a=e.input.charCodeAt(e.position+1),!No(a))));){if(l=!0,e.position++,ni(e,!0,-1)&&e.lineIndent<=t){o.push(null),c=e.input.charCodeAt(e.position);continue}if(n=e.line,r1(e,t,MW,!1,!0),o.push(e.result),ni(e,!0,-1),c=e.input.charCodeAt(e.position),(e.line===n||e.lineIndent>t)&&c!==0)nn(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break}return l?(e.tag=r,e.anchor=i,e.kind="sequence",e.result=o,!0):!1}function X_e(e,t,n){var r,i,o,a,l,c,u=e.tag,f=e.anchor,p={},m=Object.create(null),g=null,b=null,E=null,x=!1,C=!1,S;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=p),S=e.input.charCodeAt(e.position);S!==0;){if(!x&&e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,nn(e,"tab characters must not be used in indentation")),r=e.input.charCodeAt(e.position+1),o=e.line,(S===63||S===58)&&No(r))S===63?(x&&(hf(e,p,m,g,b,null,a,l,c),g=b=E=null),C=!0,x=!0,i=!0):x?(x=!1,i=!0):nn(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,S=r;else{if(a=e.line,l=e.lineStart,c=e.position,!r1(e,n,RW,!1,!0))break;if(e.line===o){for(S=e.input.charCodeAt(e.position);Nu(S);)S=e.input.charCodeAt(++e.position);if(S===58)S=e.input.charCodeAt(++e.position),No(S)||nn(e,"a whitespace character is expected after the key-value separator within a block mapping"),x&&(hf(e,p,m,g,b,null,a,l,c),g=b=E=null),C=!0,x=!1,i=!1,g=e.tag,b=e.result;else if(C)nn(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=u,e.anchor=f,!0}else if(C)nn(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else return e.tag=u,e.anchor=f,!0}if((e.line===o||e.lineIndent>t)&&(x&&(a=e.line,l=e.lineStart,c=e.position),r1(e,t,zy,!0,i)&&(x?b=e.result:E=e.result),x||(hf(e,p,m,g,b,E,a,l,c),g=b=E=null),ni(e,!0,-1),S=e.input.charCodeAt(e.position)),(e.line===o||e.lineIndent>t)&&S!==0)nn(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return x&&hf(e,p,m,g,b,null,a,l,c),C&&(e.tag=u,e.anchor=f,e.kind="mapping",e.result=p),C}function Y_e(e){var t,n=!1,r=!1,i,o,a;if(a=e.input.charCodeAt(e.position),a!==33)return!1;if(e.tag!==null&&nn(e,"duplication of a tag property"),a=e.input.charCodeAt(++e.position),a===60?(n=!0,a=e.input.charCodeAt(++e.position)):a===33?(r=!0,i="!!",a=e.input.charCodeAt(++e.position)):i="!",t=e.position,n){do a=e.input.charCodeAt(++e.position);while(a!==0&&a!==62);e.position<e.length?(o=e.input.slice(t,e.position),a=e.input.charCodeAt(++e.position)):nn(e,"unexpected end of the stream within a verbatim tag")}else{for(;a!==0&&!No(a);)a===33&&(r?nn(e,"tag suffix cannot contain exclamation marks"):(i=e.input.slice(t-1,e.position+1),PW.test(i)||nn(e,"named tag handle cannot contain such characters"),r=!0,t=e.position+1)),a=e.input.charCodeAt(++e.position);o=e.input.slice(t,e.position),F_e.test(o)&&nn(e,"tag suffix cannot contain flow indicator characters")}o&&!LW.test(o)&&nn(e,"tag name cannot contain such characters: "+o);try{o=decodeURIComponent(o)}catch{nn(e,"tag name is malformed: "+o)}return n?e.tag=o:Oc.call(e.tagMap,i)?e.tag=e.tagMap[i]+o:i==="!"?e.tag="!"+o:i==="!!"?e.tag="tag:yaml.org,2002:"+o:nn(e,'undeclared tag handle "'+i+'"'),!0}function Q_e(e){var t,n;if(n=e.input.charCodeAt(e.position),n!==38)return!1;for(e.anchor!==null&&nn(e,"duplication of an anchor property"),n=e.input.charCodeAt(++e.position),t=e.position;n!==0&&!No(n)&&!ff(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&nn(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}function Z_e(e){var t,n,r;if(r=e.input.charCodeAt(e.position),r!==42)return!1;for(r=e.input.charCodeAt(++e.position),t=e.position;r!==0&&!No(r)&&!ff(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&nn(e,"name of an alias node must contain at least one character"),n=e.input.slice(t,e.position),Oc.call(e.anchorMap,n)||nn(e,'unidentified alias "'+n+'"'),e.result=e.anchorMap[n],ni(e,!0,-1),!0}function r1(e,t,n,r,i){var o,a,l,c=1,u=!1,f=!1,p,m,g,b,E,x;if(e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,o=a=l=zy===n||MW===n,r&&ni(e,!0,-1)&&(u=!0,e.lineIndent>t?c=1:e.lineIndent===t?c=0:e.lineIndent<t&&(c=-1)),c===1)for(;Y_e(e)||Q_e(e);)ni(e,!0,-1)?(u=!0,l=o,e.lineIndent>t?c=1:e.lineIndent===t?c=0:e.lineIndent<t&&(c=-1)):l=!1;if(l&&(l=u||i),(c===1||zy===n)&&(Hy===n||RW===n?E=t:E=t+1,x=e.position-e.lineStart,c===1?l&&(Dk(e,x)||X_e(e,x,E))||G_e(e,E)?f=!0:(a&&q_e(e,E)||K_e(e,E)||V_e(e,E)?f=!0:Z_e(e)?(f=!0,(e.tag!==null||e.anchor!==null)&&nn(e,"alias node should not have any properties")):U_e(e,E,Hy===n)&&(f=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):c===0&&(f=l&&Dk(e,x))),e.tag===null)e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);else if(e.tag==="?"){for(e.result!==null&&e.kind!=="scalar"&&nn(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),p=0,m=e.implicitTypes.length;p<m;p+=1)if(b=e.implicitTypes[p],b.resolve(e.result)){e.result=b.construct(e.result),e.tag=b.tag,e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);break}}else if(e.tag!=="!"){if(Oc.call(e.typeMap[e.kind||"fallback"],e.tag))b=e.typeMap[e.kind||"fallback"][e.tag];else for(b=null,g=e.typeMap.multi[e.kind||"fallback"],p=0,m=g.length;p<m;p+=1)if(e.tag.slice(0,g[p].tag.length)===g[p].tag){b=g[p];break}b||nn(e,"unknown tag !<"+e.tag+">"),e.result!==null&&b.kind!==e.kind&&nn(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+b.kind+'", not "'+e.kind+'"'),b.resolve(e.result,e.tag)?(e.result=b.construct(e.result,e.tag),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):nn(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||f}function J_e(e){var t=e.position,n,r,i,o=!1,a;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(a=e.input.charCodeAt(e.position))!==0&&(ni(e,!0,-1),a=e.input.charCodeAt(e.position),!(e.lineIndent>0||a!==37));){for(o=!0,a=e.input.charCodeAt(++e.position),n=e.position;a!==0&&!No(a);)a=e.input.charCodeAt(++e.position);for(r=e.input.slice(n,e.position),i=[],r.length<1&&nn(e,"directive name must not be less than one character in length");a!==0;){for(;Nu(a);)a=e.input.charCodeAt(++e.position);if(a===35){do a=e.input.charCodeAt(++e.position);while(a!==0&&!Rl(a));break}if(Rl(a))break;for(n=e.position;a!==0&&!No(a);)a=e.input.charCodeAt(++e.position);i.push(e.input.slice(n,e.position))}a!==0&&p6(e),Oc.call(Pk,r)?Pk[r](e,r,i):Wy(e,'unknown document directive "'+r+'"')}if(ni(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,ni(e,!0,-1)):o&&nn(e,"directives end mark is expected"),r1(e,e.lineIndent-1,zy,!1,!0),ni(e,!0,-1),e.checkLineBreaks&&D_e.test(e.input.slice(t,e.position))&&Wy(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&F2(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,ni(e,!0,-1));return}if(e.position<e.length-1)nn(e,"end of the stream or a document separator is expected");else return}function jW(e,t){e=String(e),t=t||{},e.length!==0&&(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13&&(e+=`
`),e.charCodeAt(0)===65279&&(e=e.slice(1)));var n=new W_e(e,t),r=e.indexOf("\0");for(r!==-1&&(n.position=r,nn(n,"null byte is not allowed in input")),n.input+="\0";n.input.charCodeAt(n.position)===32;)n.lineIndent+=1,n.position+=1;for(;n.position<n.length-1;)J_e(n);return n.documents}function eOe(e,t,n){t!==null&&typeof t=="object"&&typeof n>"u"&&(n=t,t=null);var r=jW(e,n);if(typeof t!="function")return r;for(var i=0,o=r.length;i<o;i+=1)t(r[i])}function tOe(e,t){var n=jW(e,t);if(n.length!==0){if(n.length===1)return n[0];throw new as("expected a single document in the stream, but found more")}}var nOe=eOe,rOe=tOe,iOe={loadAll:nOe,load:rOe},oOe=iOe.load,HW={exports:{}};(function(e){(function(){var t;t=e.exports=i,t.format=i,t.vsprintf=r,typeof console<"u"&&typeof console.log=="function"&&(t.printf=n);function n(){console.log(i.apply(null,arguments))}function r(o,a){return i.apply(null,[o].concat(a))}function i(o){for(var a=1,l=[].slice.call(arguments),c=0,u=o.length,f="",p,m=!1,g,b,E=!1,x,C=function(){return l[a++]},S=function(){for(var T="";/\d/.test(o[c]);)T+=o[c++],p=o[c];return T.length>0?parseInt(T):null};c<u;++c)if(p=o[c],m)switch(m=!1,p=="."?(E=!1,p=o[++c]):p=="0"&&o[c+1]=="."?(E=!0,c+=2,p=o[c]):E=!0,x=S(),p){case"b":f+=parseInt(C(),10).toString(2);break;case"c":g=C(),typeof g=="string"||g instanceof String?f+=g:f+=String.fromCharCode(parseInt(g,10));break;case"d":f+=parseInt(C(),10);break;case"f":b=String(parseFloat(C()).toFixed(x||6)),f+=E?b:b.replace(/^0/,"");break;case"j":f+=JSON.stringify(C());break;case"o":f+="0"+parseInt(C(),10).toString(8);break;case"s":f+=C();break;case"x":f+="0x"+parseInt(C(),10).toString(16);break;case"X":f+="0x"+parseInt(C(),10).toString(16).toUpperCase();break;default:f+=p;break}else p==="%"?m=!0:f+=p;return f}})()})(HW);var aOe=HW.exports;const lOe=ul(aOe),Pg=Object.assign(ru(Error),{eval:ru(EvalError),range:ru(RangeError),reference:ru(ReferenceError),syntax:ru(SyntaxError),type:ru(TypeError),uri:ru(URIError)});function ru(e){return t.displayName=e.displayName||e.name,t;function t(n,...r){const i=n&&lOe(n,...r);return new e(i)}}const Lg={}.hasOwnProperty,Fk={yaml:"-",toml:"+"};function g6(e){const t=[];let n=-1;const r=Array.isArray(e)?e:e?[e]:["yaml"];for(;++n<r.length;)t[n]=sOe(r[n]);return t}function sOe(e){let t=e;if(typeof t=="string"){if(!Lg.call(Fk,t))throw Pg("Missing matter definition for `%s`",t);t={type:t,marker:Fk[t]}}else if(typeof t!="object")throw Pg("Expected matter to be an object, not `%j`",t);if(!Lg.call(t,"type"))throw Pg("Missing `type` in matter `%j`",t);if(!Lg.call(t,"fence")&&!Lg.call(t,"marker"))throw Pg("Missing `marker` or `fence` in matter `%j`",t);return t}function cOe(e){const t=g6(e),n={};let r=-1;for(;++r<t.length;){const i=t[r],o=GE(i,"open").charCodeAt(0),a=uOe(i),l=n[o];Array.isArray(l)?l.push(a):n[o]=[a]}return{flow:n}}function uOe(e){const t=e.anywhere,n=e.type,r=n+"Fence",i=r+"Sequence",o=n+"Value",a={tokenize:f,partial:!0};let l,c=0;return{tokenize:u,concrete:!0};function u(p,m,g){const b=this;return E;function E($){const k=b.now();return k.column===1&&(k.line===1||t)&&(l=GE(e,"open"),c=0,$===l.charCodeAt(c))?(p.enter(n),p.enter(r),p.enter(i),x($)):g($)}function x($){return c===l.length?(p.exit(i),vn($)?(p.enter("whitespace"),C($)):S($)):$===l.charCodeAt(c++)?(p.consume($),x):g($)}function C($){return vn($)?(p.consume($),C):(p.exit("whitespace"),S($))}function S($){return tn($)?(p.exit(r),p.enter("lineEnding"),p.consume($),p.exit("lineEnding"),l=GE(e,"close"),c=0,p.attempt(a,_,T)):g($)}function T($){return $===null||tn($)?I($):(p.enter(o),O($))}function O($){return $===null||tn($)?(p.exit(o),I($)):(p.consume($),O)}function I($){return $===null?g($):(p.enter("lineEnding"),p.consume($),p.exit("lineEnding"),p.attempt(a,_,T))}function _($){return p.exit(n),m($)}}function f(p,m,g){let b=0;return E;function E(T){return T===l.charCodeAt(b)?(p.enter(r),p.enter(i),x(T)):g(T)}function x(T){return b===l.length?(p.exit(i),vn(T)?(p.enter("whitespace"),C(T)):S(T)):T===l.charCodeAt(b++)?(p.consume(T),x):g(T)}function C(T){return vn(T)?(p.consume(T),C):(p.exit("whitespace"),S(T))}function S(T){return T===null||tn(T)?(p.exit(r),m(T)):g(T)}}}function GE(e,t){return e.marker?Bk(e.marker,t).repeat(3):Bk(e.fence,t)}function Bk(e,t){return typeof e=="string"?e:e[t]}function dOe(e){const t=g6(e),n={},r={};let i=-1;for(;++i<t.length;){const o=t[i];n[o.type]=fOe(o),r[o.type]=hOe,r[o.type+"Value"]=pOe}return{enter:n,exit:r}}function fOe(e){return t;function t(n){this.enter({type:e.type,value:""},n),this.buffer()}}function hOe(e){const t=this.resume(),n=this.exit(e);n.value=t.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,"")}function pOe(e){this.config.enter.data.call(this,e),this.config.exit.data.call(this,e)}function mOe(e){const t=[],n={},r=g6(e);let i=-1;for(;++i<r.length;){const o=r[i];n[o.type]=gOe(o),t.push({atBreak:!0,character:qE(o,"open").charAt(0)})}return{unsafe:t,handlers:n}}function gOe(e){const t=qE(e,"open"),n=qE(e,"close");return r;function r(i){return t+(i.value?`
`+i.value:"")+`
`+n}}function qE(e,t){return e.marker?jk(e.marker,t).repeat(3):jk(e.fence,t)}function jk(e,t){return typeof e=="string"?e:e[t]}function vOe(e="yaml"){const t=this.data();n("micromarkExtensions",cOe(e)),n("fromMarkdownExtensions",dOe(e)),n("toMarkdownExtensions",mOe(e));function n(r,i){(t[r]?t[r]:t[r]=[]).push(i)}}function yOe({onError:e}={}){return{remark:t=>t.use(vOe).use(()=>(n,r)=>{const i=n.children[0];if((i==null?void 0:i.type)==="yaml")try{r.frontmatter=oOe(i.value)}catch(o){e==null||e(o)}})}}const bOe={ChartGraph:'<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" fill="none" viewBox="0 0 48 48"><path stroke="currentColor" stroke-linejoin="round" stroke-width="4" d="M17 6h14v9H17zM6 33h14v9H6zM28 33h14v9H28z"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="4" d="M24 16v8M13 33v-9h22v9"/></svg>'},COe="Entity relationship diagram",SOe="Flow chart",EOe="Gantt chart",xOe="Mermaid diagrams",wOe="Mindmaps",TOe="Pie chart",_Oe="Sequence diagram",OOe="State diagram",IOe="Timeline",$Oe="User journey diagram",NOe={class:"Class diagram",er:COe,flowchart:SOe,gantt:EOe,mermaid:xOe,mindmap:wOe,pie:TOe,sequence:_Oe,state:OOe,timeline:IOe,uj:$Oe};function zW({locale:e,...t}={}){const n={...NOe,...e};let r;const i=[{title:n.flowchart,code:`graph TD
Start --> Stop`},{title:n.sequence,code:`sequenceDiagram
Alice->>John: Hello John, how are you?
John-->>Alice: Great!
Alice-)John: See you later!`},{title:n.class,code:`classDiagram
Animal <|-- Duck
Animal <|-- Fish
Animal <|-- Zebra
Animal : +int age
Animal : +String gender
Animal: +isMammal()
Animal: +mate()
class Duck{
+String beakColor
+swim()
+quack()
}
class Fish{
-int sizeInFeet
-canEat()
}
class Zebra{
+bool is_wild
+run()
}`},{title:n.state,code:`stateDiagram-v2
[*] --> Still
Still --> [*]
Still --> Moving
Moving --> Still
Moving --> Crash
Crash --> [*]`},{title:n.er,code:`erDiagram
CUSTOMER ||--o{ ORDER : places
ORDER ||--|{ LINE-ITEM : contains
CUSTOMER }|..|{ DELIVERY-ADDRESS : uses`},{title:n.uj,code:`journey
title My working day
section Go to work
Make tea: 5: Me
Go upstairs: 3: Me
Do work: 1: Me, Cat
section Go home
Go downstairs: 5: Me
Sit down: 5: Me`},{title:n.gantt,code:`gantt
title A Gantt Diagram
dateFormat YYYY-MM-DD
section Section
A task :a1, 2014-01-01, 30d
Another task :after a1 , 20d
section Another
Task in sec :2014-01-12 , 12d
another task : 24d`},{title:n.pie,code:`pie title Pets adopted by volunteers
"Dogs" : 386
"Cats" : 85
"Rats" : 15`},{title:n.mindmap,code:`mindmap
Root
A
B
C
`},{title:n.timeline,code:`timeline
title History of Social Media Platform
2002 : LinkedIn
2004 : Facebook
: Google
2005 : Youtube
2006 : Twitter
`}];return{viewerEffect({markdownBody:o}){(async()=>{const a=o.querySelectorAll("pre>code.language-mermaid");a.length!==0&&(r||(r=await OW(()=>import("./mermaid.core-Cy865csZ.js").then(l=>l.b2),[]).then(l=>l.default),t&&r.initialize(t)),a.forEach((l,c)=>{const u=l.parentElement,f=l.innerText,p=document.createElement("div");p.classList.add("bytemd-mermaid"),p.style.lineHeight="initial",u.replaceWith(p),r.render(`bytemd-mermaid-${Date.now()}-${c}`,f,p).then(m=>{p.innerHTML=m.svg}).catch(m=>{})}))})()},actions:[{title:n.mermaid,icon:bOe.ChartGraph,cheatsheet:"```mermaid",handler:{type:"dropdown",actions:i.map(({title:o,code:a})=>({title:o,handler:{type:"action",click({editor:l,appendBlock:c,codemirror:u}){const{line:f}=c("```mermaid\n"+a+"\n```");l.setSelection(u.Pos(f+1,0),u.Pos(f+a.split(`
`).length)),l.focus()}}})),...n}}]}}const Hk={100:"💯",1234:"🔢",grinning:"😀",smiley:"😃",smile:"😄",grin:"😁",laughing:"😆",satisfied:"😆",sweat_smile:"😅",rofl:"🤣",joy:"😂",slightly_smiling_face:"🙂",upside_down_face:"🙃",wink:"😉",blush:"😊",innocent:"😇",smiling_face_with_three_hearts:"🥰",heart_eyes:"😍",star_struck:"🤩",kissing_heart:"😘",kissing:"😗",relaxed:"☺️",kissing_closed_eyes:"😚",kissing_smiling_eyes:"😙",smiling_face_with_tear:"🥲",yum:"😋",stuck_out_tongue:"😛",stuck_out_tongue_winking_eye:"😜",zany_face:"🤪",stuck_out_tongue_closed_eyes:"😝",money_mouth_face:"🤑",hugs:"🤗",hand_over_mouth:"🤭",shushing_face:"🤫",thinking:"🤔",zipper_mouth_face:"🤐",raised_eyebrow:"🤨",neutral_face:"😐",expressionless:"😑",no_mouth:"😶",face_in_clouds:"😶‍🌫️",smirk:"😏",unamused:"😒",roll_eyes:"🙄",grimacing:"😬",face_exhaling:"😮‍💨",lying_face:"🤥",relieved:"😌",pensive:"😔",sleepy:"😪",drooling_face:"🤤",sleeping:"😴",mask:"😷",face_with_thermometer:"🤒",face_with_head_bandage:"🤕",nauseated_face:"🤢",vomiting_face:"🤮",sneezing_face:"🤧",hot_face:"🥵",cold_face:"🥶",woozy_face:"🥴",dizzy_face:"😵",face_with_spiral_eyes:"😵‍💫",exploding_head:"🤯",cowboy_hat_face:"🤠",partying_face:"🥳",disguised_face:"🥸",sunglasses:"😎",nerd_face:"🤓",monocle_face:"🧐",confused:"😕",worried:"😟",slightly_frowning_face:"🙁",frowning_face:"☹️",open_mouth:"😮",hushed:"😯",astonished:"😲",flushed:"😳",pleading_face:"🥺",frowning:"😦",anguished:"😧",fearful:"😨",cold_sweat:"😰",disappointed_relieved:"😥",cry:"😢",sob:"😭",scream:"😱",confounded:"😖",persevere:"😣",disappointed:"😞",sweat:"😓",weary:"😩",tired_face:"😫",yawning_face:"🥱",triumph:"😤",rage:"😡",pout:"😡",angry:"😠",cursing_face:"🤬",smiling_imp:"😈",imp:"👿",skull:"💀",skull_and_crossbones:"☠️",hankey:"💩",poop:"💩",shit:"💩",clown_face:"🤡",japanese_ogre:"👹",japanese_goblin:"👺",ghost:"👻",alien:"👽",space_invader:"👾",robot:"🤖",smiley_cat:"😺",smile_cat:"😸",joy_cat:"😹",heart_eyes_cat:"😻",smirk_cat:"😼",kissing_cat:"😽",scream_cat:"🙀",crying_cat_face:"😿",pouting_cat:"😾",see_no_evil:"🙈",hear_no_evil:"🙉",speak_no_evil:"🙊",kiss:"💋",love_letter:"💌",cupid:"💘",gift_heart:"💝",sparkling_heart:"💖",heartpulse:"💗",heartbeat:"💓",revolving_hearts:"💞",two_hearts:"💕",heart_decoration:"💟",heavy_heart_exclamation:"❣️",broken_heart:"💔",heart_on_fire:"❤️‍🔥",mending_heart:"❤️‍🩹",heart:"❤️",orange_heart:"🧡",yellow_heart:"💛",green_heart:"💚",blue_heart:"💙",purple_heart:"💜",brown_heart:"🤎",black_heart:"🖤",white_heart:"🤍",anger:"💢",boom:"💥",collision:"💥",dizzy:"💫",sweat_drops:"💦",dash:"💨",hole:"🕳️",bomb:"💣",speech_balloon:"💬",eye_speech_bubble:"👁️‍🗨️",left_speech_bubble:"🗨️",right_anger_bubble:"🗯️",thought_balloon:"💭",zzz:"💤",wave:"👋",raised_back_of_hand:"🤚",raised_hand_with_fingers_splayed:"🖐️",hand:"✋",raised_hand:"✋",vulcan_salute:"🖖",ok_hand:"👌",pinched_fingers:"🤌",pinching_hand:"🤏",v:"✌️",crossed_fingers:"🤞",love_you_gesture:"🤟",metal:"🤘",call_me_hand:"🤙",point_left:"👈",point_right:"👉",point_up_2:"👆",middle_finger:"🖕",fu:"🖕",point_down:"👇",point_up:"☝️","+1":"👍",thumbsup:"👍","-1":"👎",thumbsdown:"👎",fist_raised:"✊",fist:"✊",fist_oncoming:"👊",facepunch:"👊",punch:"👊",fist_left:"🤛",fist_right:"🤜",clap:"👏",raised_hands:"🙌",open_hands:"👐",palms_up_together:"🤲",handshake:"🤝",pray:"🙏",writing_hand:"✍️",nail_care:"💅",selfie:"🤳",muscle:"💪",mechanical_arm:"🦾",mechanical_leg:"🦿",leg:"🦵",foot:"🦶",ear:"👂",ear_with_hearing_aid:"🦻",nose:"👃",brain:"🧠",anatomical_heart:"🫀",lungs:"🫁",tooth:"🦷",bone:"🦴",eyes:"👀",eye:"👁️",tongue:"👅",lips:"👄",baby:"👶",child:"🧒",boy:"👦",girl:"👧",adult:"🧑",blond_haired_person:"👱",man:"👨",bearded_person:"🧔",man_beard:"🧔‍♂️",woman_beard:"🧔‍♀️",red_haired_man:"👨‍🦰",curly_haired_man:"👨‍🦱",white_haired_man:"👨‍🦳",bald_man:"👨‍🦲",woman:"👩",red_haired_woman:"👩‍🦰",person_red_hair:"🧑‍🦰",curly_haired_woman:"👩‍🦱",person_curly_hair:"🧑‍🦱",white_haired_woman:"👩‍🦳",person_white_hair:"🧑‍🦳",bald_woman:"👩‍🦲",person_bald:"🧑‍🦲",blond_haired_woman:"👱‍♀️",blonde_woman:"👱‍♀️",blond_haired_man:"👱‍♂️",older_adult:"🧓",older_man:"👴",older_woman:"👵",frowning_person:"🙍",frowning_man:"🙍‍♂️",frowning_woman:"🙍‍♀️",pouting_face:"🙎",pouting_man:"🙎‍♂️",pouting_woman:"🙎‍♀️",no_good:"🙅",no_good_man:"🙅‍♂️",ng_man:"🙅‍♂️",no_good_woman:"🙅‍♀️",ng_woman:"🙅‍♀️",ok_person:"🙆",ok_man:"🙆‍♂️",ok_woman:"🙆‍♀️",tipping_hand_person:"💁",information_desk_person:"💁",tipping_hand_man:"💁‍♂️",sassy_man:"💁‍♂️",tipping_hand_woman:"💁‍♀️",sassy_woman:"💁‍♀️",raising_hand:"🙋",raising_hand_man:"🙋‍♂️",raising_hand_woman:"🙋‍♀️",deaf_person:"🧏",deaf_man:"🧏‍♂️",deaf_woman:"🧏‍♀️",bow:"🙇",bowing_man:"🙇‍♂️",bowing_woman:"🙇‍♀️",facepalm:"🤦",man_facepalming:"🤦‍♂️",woman_facepalming:"🤦‍♀️",shrug:"🤷",man_shrugging:"🤷‍♂️",woman_shrugging:"🤷‍♀️",health_worker:"🧑‍⚕️",man_health_worker:"👨‍⚕️",woman_health_worker:"👩‍⚕️",student:"🧑‍🎓",man_student:"👨‍🎓",woman_student:"👩‍🎓",teacher:"🧑‍🏫",man_teacher:"👨‍🏫",woman_teacher:"👩‍🏫",judge:"🧑‍⚖️",man_judge:"👨‍⚖️",woman_judge:"👩‍⚖️",farmer:"🧑‍🌾",man_farmer:"👨‍🌾",woman_farmer:"👩‍🌾",cook:"🧑‍🍳",man_cook:"👨‍🍳",woman_cook:"👩‍🍳",mechanic:"🧑‍🔧",man_mechanic:"👨‍🔧",woman_mechanic:"👩‍🔧",factory_worker:"🧑‍🏭",man_factory_worker:"👨‍🏭",woman_factory_worker:"👩‍🏭",office_worker:"🧑‍💼",man_office_worker:"👨‍💼",woman_office_worker:"👩‍💼",scientist:"🧑‍🔬",man_scientist:"👨‍🔬",woman_scientist:"👩‍🔬",technologist:"🧑‍💻",man_technologist:"👨‍💻",woman_technologist:"👩‍💻",singer:"🧑‍🎤",man_singer:"👨‍🎤",woman_singer:"👩‍🎤",artist:"🧑‍🎨",man_artist:"👨‍🎨",woman_artist:"👩‍🎨",pilot:"🧑‍✈️",man_pilot:"👨‍✈️",woman_pilot:"👩‍✈️",astronaut:"🧑‍🚀",man_astronaut:"👨‍🚀",woman_astronaut:"👩‍🚀",firefighter:"🧑‍🚒",man_firefighter:"👨‍🚒",woman_firefighter:"👩‍🚒",police_officer:"👮",cop:"👮",policeman:"👮‍♂️",policewoman:"👮‍♀️",detective:"🕵️",male_detective:"🕵️‍♂️",female_detective:"🕵️‍♀️",guard:"💂",guardsman:"💂‍♂️",guardswoman:"💂‍♀️",ninja:"🥷",construction_worker:"👷",construction_worker_man:"👷‍♂️",construction_worker_woman:"👷‍♀️",prince:"🤴",princess:"👸",person_with_turban:"👳",man_with_turban:"👳‍♂️",woman_with_turban:"👳‍♀️",man_with_gua_pi_mao:"👲",woman_with_headscarf:"🧕",person_in_tuxedo:"🤵",man_in_tuxedo:"🤵‍♂️",woman_in_tuxedo:"🤵‍♀️",person_with_veil:"👰",man_with_veil:"👰‍♂️",woman_with_veil:"👰‍♀️",bride_with_veil:"👰‍♀️",pregnant_woman:"🤰",breast_feeding:"🤱",woman_feeding_baby:"👩‍🍼",man_feeding_baby:"👨‍🍼",person_feeding_baby:"🧑‍🍼",angel:"👼",santa:"🎅",mrs_claus:"🤶",mx_claus:"🧑‍🎄",superhero:"🦸",superhero_man:"🦸‍♂️",superhero_woman:"🦸‍♀️",supervillain:"🦹",supervillain_man:"🦹‍♂️",supervillain_woman:"🦹‍♀️",mage:"🧙",mage_man:"🧙‍♂️",mage_woman:"🧙‍♀️",fairy:"🧚",fairy_man:"🧚‍♂️",fairy_woman:"🧚‍♀️",vampire:"🧛",vampire_man:"🧛‍♂️",vampire_woman:"🧛‍♀️",merperson:"🧜",merman:"🧜‍♂️",mermaid:"🧜‍♀️",elf:"🧝",elf_man:"🧝‍♂️",elf_woman:"🧝‍♀️",genie:"🧞",genie_man:"🧞‍♂️",genie_woman:"🧞‍♀️",zombie:"🧟",zombie_man:"🧟‍♂️",zombie_woman:"🧟‍♀️",massage:"💆",massage_man:"💆‍♂️",massage_woman:"💆‍♀️",haircut:"💇",haircut_man:"💇‍♂️",haircut_woman:"💇‍♀️",walking:"🚶",walking_man:"🚶‍♂️",walking_woman:"🚶‍♀️",standing_person:"🧍",standing_man:"🧍‍♂️",standing_woman:"🧍‍♀️",kneeling_person:"🧎",kneeling_man:"🧎‍♂️",kneeling_woman:"🧎‍♀️",person_with_probing_cane:"🧑‍🦯",man_with_probing_cane:"👨‍🦯",woman_with_probing_cane:"👩‍🦯",person_in_motorized_wheelchair:"🧑‍🦼",man_in_motorized_wheelchair:"👨‍🦼",woman_in_motorized_wheelchair:"👩‍🦼",person_in_manual_wheelchair:"🧑‍🦽",man_in_manual_wheelchair:"👨‍🦽",woman_in_manual_wheelchair:"👩‍🦽",runner:"🏃",running:"🏃",running_man:"🏃‍♂️",running_woman:"🏃‍♀️",woman_dancing:"💃",dancer:"💃",man_dancing:"🕺",business_suit_levitating:"🕴️",dancers:"👯",dancing_men:"👯‍♂️",dancing_women:"👯‍♀️",sauna_person:"🧖",sauna_man:"🧖‍♂️",sauna_woman:"🧖‍♀️",climbing:"🧗",climbing_man:"🧗‍♂️",climbing_woman:"🧗‍♀️",person_fencing:"🤺",horse_racing:"🏇",skier:"⛷️",snowboarder:"🏂",golfing:"🏌️",golfing_man:"🏌️‍♂️",golfing_woman:"🏌️‍♀️",surfer:"🏄",surfing_man:"🏄‍♂️",surfing_woman:"🏄‍♀️",rowboat:"🚣",rowing_man:"🚣‍♂️",rowing_woman:"🚣‍♀️",swimmer:"🏊",swimming_man:"🏊‍♂️",swimming_woman:"🏊‍♀️",bouncing_ball_person:"⛹️",bouncing_ball_man:"⛹️‍♂️",basketball_man:"⛹️‍♂️",bouncing_ball_woman:"⛹️‍♀️",basketball_woman:"⛹️‍♀️",weight_lifting:"🏋️",weight_lifting_man:"🏋️‍♂️",weight_lifting_woman:"🏋️‍♀️",bicyclist:"🚴",biking_man:"🚴‍♂️",biking_woman:"🚴‍♀️",mountain_bicyclist:"🚵",mountain_biking_man:"🚵‍♂️",mountain_biking_woman:"🚵‍♀️",cartwheeling:"🤸",man_cartwheeling:"🤸‍♂️",woman_cartwheeling:"🤸‍♀️",wrestling:"🤼",men_wrestling:"🤼‍♂️",women_wrestling:"🤼‍♀️",water_polo:"🤽",man_playing_water_polo:"🤽‍♂️",woman_playing_water_polo:"🤽‍♀️",handball_person:"🤾",man_playing_handball:"🤾‍♂️",woman_playing_handball:"🤾‍♀️",juggling_person:"🤹",man_juggling:"🤹‍♂️",woman_juggling:"🤹‍♀️",lotus_position:"🧘",lotus_position_man:"🧘‍♂️",lotus_position_woman:"🧘‍♀️",bath:"🛀",sleeping_bed:"🛌",people_holding_hands:"🧑‍🤝‍🧑",two_women_holding_hands:"👭",couple:"👫",two_men_holding_hands:"👬",couplekiss:"💏",couplekiss_man_woman:"👩‍❤️‍💋‍👨",couplekiss_man_man:"👨‍❤️‍💋‍👨",couplekiss_woman_woman:"👩‍❤️‍💋‍👩",couple_with_heart:"💑",couple_with_heart_woman_man:"👩‍❤️‍👨",couple_with_heart_man_man:"👨‍❤️‍👨",couple_with_heart_woman_woman:"👩‍❤️‍👩",family:"👪",family_man_woman_boy:"👨‍👩‍👦",family_man_woman_girl:"👨‍👩‍👧",family_man_woman_girl_boy:"👨‍👩‍👧‍👦",family_man_woman_boy_boy:"👨‍👩‍👦‍👦",family_man_woman_girl_girl:"👨‍👩‍👧‍👧",family_man_man_boy:"👨‍👨‍👦",family_man_man_girl:"👨‍👨‍👧",family_man_man_girl_boy:"👨‍👨‍👧‍👦",family_man_man_boy_boy:"👨‍👨‍👦‍👦",family_man_man_girl_girl:"👨‍👨‍👧‍👧",family_woman_woman_boy:"👩‍👩‍👦",family_woman_woman_girl:"👩‍👩‍👧",family_woman_woman_girl_boy:"👩‍👩‍👧‍👦",family_woman_woman_boy_boy:"👩‍👩‍👦‍👦",family_woman_woman_girl_girl:"👩‍👩‍👧‍👧",family_man_boy:"👨‍👦",family_man_boy_boy:"👨‍👦‍👦",family_man_girl:"👨‍👧",family_man_girl_boy:"👨‍👧‍👦",family_man_girl_girl:"👨‍👧‍👧",family_woman_boy:"👩‍👦",family_woman_boy_boy:"👩‍👦‍👦",family_woman_girl:"👩‍👧",family_woman_girl_boy:"👩‍👧‍👦",family_woman_girl_girl:"👩‍👧‍👧",speaking_head:"🗣️",bust_in_silhouette:"👤",busts_in_silhouette:"👥",people_hugging:"🫂",footprints:"👣",monkey_face:"🐵",monkey:"🐒",gorilla:"🦍",orangutan:"🦧",dog:"🐶",dog2:"🐕",guide_dog:"🦮",service_dog:"🐕‍🦺",poodle:"🐩",wolf:"🐺",fox_face:"🦊",raccoon:"🦝",cat:"🐱",cat2:"🐈",black_cat:"🐈‍⬛",lion:"🦁",tiger:"🐯",tiger2:"🐅",leopard:"🐆",horse:"🐴",racehorse:"🐎",unicorn:"🦄",zebra:"🦓",deer:"🦌",bison:"🦬",cow:"🐮",ox:"🐂",water_buffalo:"🐃",cow2:"🐄",pig:"🐷",pig2:"🐖",boar:"🐗",pig_nose:"🐽",ram:"🐏",sheep:"🐑",goat:"🐐",dromedary_camel:"🐪",camel:"🐫",llama:"🦙",giraffe:"🦒",elephant:"🐘",mammoth:"🦣",rhinoceros:"🦏",hippopotamus:"🦛",mouse:"🐭",mouse2:"🐁",rat:"🐀",hamster:"🐹",rabbit:"🐰",rabbit2:"🐇",chipmunk:"🐿️",beaver:"🦫",hedgehog:"🦔",bat:"🦇",bear:"🐻",polar_bear:"🐻‍❄️",koala:"🐨",panda_face:"🐼",sloth:"🦥",otter:"🦦",skunk:"🦨",kangaroo:"🦘",badger:"🦡",feet:"🐾",paw_prints:"🐾",turkey:"🦃",chicken:"🐔",rooster:"🐓",hatching_chick:"🐣",baby_chick:"🐤",hatched_chick:"🐥",bird:"🐦",penguin:"🐧",dove:"🕊️",eagle:"🦅",duck:"🦆",swan:"🦢",owl:"🦉",dodo:"🦤",feather:"🪶",flamingo:"🦩",peacock:"🦚",parrot:"🦜",frog:"🐸",crocodile:"🐊",turtle:"🐢",lizard:"🦎",snake:"🐍",dragon_face:"🐲",dragon:"🐉",sauropod:"🦕","t-rex":"🦖",whale:"🐳",whale2:"🐋",dolphin:"🐬",flipper:"🐬",seal:"🦭",fish:"🐟",tropical_fish:"🐠",blowfish:"🐡",shark:"🦈",octopus:"🐙",shell:"🐚",snail:"🐌",butterfly:"🦋",bug:"🐛",ant:"🐜",bee:"🐝",honeybee:"🐝",beetle:"🪲",lady_beetle:"🐞",cricket:"🦗",cockroach:"🪳",spider:"🕷️",spider_web:"🕸️",scorpion:"🦂",mosquito:"🦟",fly:"🪰",worm:"🪱",microbe:"🦠",bouquet:"💐",cherry_blossom:"🌸",white_flower:"💮",rosette:"🏵️",rose:"🌹",wilted_flower:"🥀",hibiscus:"🌺",sunflower:"🌻",blossom:"🌼",tulip:"🌷",seedling:"🌱",potted_plant:"🪴",evergreen_tree:"🌲",deciduous_tree:"🌳",palm_tree:"🌴",cactus:"🌵",ear_of_rice:"🌾",herb:"🌿",shamrock:"☘️",four_leaf_clover:"🍀",maple_leaf:"🍁",fallen_leaf:"🍂",leaves:"🍃",grapes:"🍇",melon:"🍈",watermelon:"🍉",tangerine:"🍊",orange:"🍊",mandarin:"🍊",lemon:"🍋",banana:"🍌",pineapple:"🍍",mango:"🥭",apple:"🍎",green_apple:"🍏",pear:"🍐",peach:"🍑",cherries:"🍒",strawberry:"🍓",blueberries:"🫐",kiwi_fruit:"🥝",tomato:"🍅",olive:"🫒",coconut:"🥥",avocado:"🥑",eggplant:"🍆",potato:"🥔",carrot:"🥕",corn:"🌽",hot_pepper:"🌶️",bell_pepper:"🫑",cucumber:"🥒",leafy_green:"🥬",broccoli:"🥦",garlic:"🧄",onion:"🧅",mushroom:"🍄",peanuts:"🥜",chestnut:"🌰",bread:"🍞",croissant:"🥐",baguette_bread:"🥖",flatbread:"🫓",pretzel:"🥨",bagel:"🥯",pancakes:"🥞",waffle:"🧇",cheese:"🧀",meat_on_bone:"🍖",poultry_leg:"🍗",cut_of_meat:"🥩",bacon:"🥓",hamburger:"🍔",fries:"🍟",pizza:"🍕",hotdog:"🌭",sandwich:"🥪",taco:"🌮",burrito:"🌯",tamale:"🫔",stuffed_flatbread:"🥙",falafel:"🧆",egg:"🥚",fried_egg:"🍳",shallow_pan_of_food:"🥘",stew:"🍲",fondue:"🫕",bowl_with_spoon:"🥣",green_salad:"🥗",popcorn:"🍿",butter:"🧈",salt:"🧂",canned_food:"🥫",bento:"🍱",rice_cracker:"🍘",rice_ball:"🍙",rice:"🍚",curry:"🍛",ramen:"🍜",spaghetti:"🍝",sweet_potato:"🍠",oden:"🍢",sushi:"🍣",fried_shrimp:"🍤",fish_cake:"🍥",moon_cake:"🥮",dango:"🍡",dumpling:"🥟",fortune_cookie:"🥠",takeout_box:"🥡",crab:"🦀",lobster:"🦞",shrimp:"🦐",squid:"🦑",oyster:"🦪",icecream:"🍦",shaved_ice:"🍧",ice_cream:"🍨",doughnut:"🍩",cookie:"🍪",birthday:"🎂",cake:"🍰",cupcake:"🧁",pie:"🥧",chocolate_bar:"🍫",candy:"🍬",lollipop:"🍭",custard:"🍮",honey_pot:"🍯",baby_bottle:"🍼",milk_glass:"🥛",coffee:"☕",teapot:"🫖",tea:"🍵",sake:"🍶",champagne:"🍾",wine_glass:"🍷",cocktail:"🍸",tropical_drink:"🍹",beer:"🍺",beers:"🍻",clinking_glasses:"🥂",tumbler_glass:"🥃",cup_with_straw:"🥤",bubble_tea:"🧋",beverage_box:"🧃",mate:"🧉",ice_cube:"🧊",chopsticks:"🥢",plate_with_cutlery:"🍽️",fork_and_knife:"🍴",spoon:"🥄",hocho:"🔪",knife:"🔪",amphora:"🏺",earth_africa:"🌍",earth_americas:"🌎",earth_asia:"🌏",globe_with_meridians:"🌐",world_map:"🗺️",japan:"🗾",compass:"🧭",mountain_snow:"🏔️",mountain:"⛰️",volcano:"🌋",mount_fuji:"🗻",camping:"🏕️",beach_umbrella:"🏖️",desert:"🏜️",desert_island:"🏝️",national_park:"🏞️",stadium:"🏟️",classical_building:"🏛️",building_construction:"🏗️",bricks:"🧱",rock:"🪨",wood:"🪵",hut:"🛖",houses:"🏘️",derelict_house:"🏚️",house:"🏠",house_with_garden:"🏡",office:"🏢",post_office:"🏣",european_post_office:"🏤",hospital:"🏥",bank:"🏦",hotel:"🏨",love_hotel:"🏩",convenience_store:"🏪",school:"🏫",department_store:"🏬",factory:"🏭",japanese_castle:"🏯",european_castle:"🏰",wedding:"💒",tokyo_tower:"🗼",statue_of_liberty:"🗽",church:"⛪",mosque:"🕌",hindu_temple:"🛕",synagogue:"🕍",shinto_shrine:"⛩️",kaaba:"🕋",fountain:"⛲",tent:"⛺",foggy:"🌁",night_with_stars:"🌃",cityscape:"🏙️",sunrise_over_mountains:"🌄",sunrise:"🌅",city_sunset:"🌆",city_sunrise:"🌇",bridge_at_night:"🌉",hotsprings:"♨️",carousel_horse:"🎠",ferris_wheel:"🎡",roller_coaster:"🎢",barber:"💈",circus_tent:"🎪",steam_locomotive:"🚂",railway_car:"🚃",bullettrain_side:"🚄",bullettrain_front:"🚅",train2:"🚆",metro:"🚇",light_rail:"🚈",station:"🚉",tram:"🚊",monorail:"🚝",mountain_railway:"🚞",train:"🚋",bus:"🚌",oncoming_bus:"🚍",trolleybus:"🚎",minibus:"🚐",ambulance:"🚑",fire_engine:"🚒",police_car:"🚓",oncoming_police_car:"🚔",taxi:"🚕",oncoming_taxi:"🚖",car:"🚗",red_car:"🚗",oncoming_automobile:"🚘",blue_car:"🚙",pickup_truck:"🛻",truck:"🚚",articulated_lorry:"🚛",tractor:"🚜",racing_car:"🏎️",motorcycle:"🏍️",motor_scooter:"🛵",manual_wheelchair:"🦽",motorized_wheelchair:"🦼",auto_rickshaw:"🛺",bike:"🚲",kick_scooter:"🛴",skateboard:"🛹",roller_skate:"🛼",busstop:"🚏",motorway:"🛣️",railway_track:"🛤️",oil_drum:"🛢️",fuelpump:"⛽",rotating_light:"🚨",traffic_light:"🚥",vertical_traffic_light:"🚦",stop_sign:"🛑",construction:"🚧",anchor:"⚓",boat:"⛵",sailboat:"⛵",canoe:"🛶",speedboat:"🚤",passenger_ship:"🛳️",ferry:"⛴️",motor_boat:"🛥️",ship:"🚢",airplane:"✈️",small_airplane:"🛩️",flight_departure:"🛫",flight_arrival:"🛬",parachute:"🪂",seat:"💺",helicopter:"🚁",suspension_railway:"🚟",mountain_cableway:"🚠",aerial_tramway:"🚡",artificial_satellite:"🛰️",rocket:"🚀",flying_saucer:"🛸",bellhop_bell:"🛎️",luggage:"🧳",hourglass:"⌛",hourglass_flowing_sand:"⏳",watch:"⌚",alarm_clock:"⏰",stopwatch:"⏱️",timer_clock:"⏲️",mantelpiece_clock:"🕰️",clock12:"🕛",clock1230:"🕧",clock1:"🕐",clock130:"🕜",clock2:"🕑",clock230:"🕝",clock3:"🕒",clock330:"🕞",clock4:"🕓",clock430:"🕟",clock5:"🕔",clock530:"🕠",clock6:"🕕",clock630:"🕡",clock7:"🕖",clock730:"🕢",clock8:"🕗",clock830:"🕣",clock9:"🕘",clock930:"🕤",clock10:"🕙",clock1030:"🕥",clock11:"🕚",clock1130:"🕦",new_moon:"🌑",waxing_crescent_moon:"🌒",first_quarter_moon:"🌓",moon:"🌔",waxing_gibbous_moon:"🌔",full_moon:"🌕",waning_gibbous_moon:"🌖",last_quarter_moon:"🌗",waning_crescent_moon:"🌘",crescent_moon:"🌙",new_moon_with_face:"🌚",first_quarter_moon_with_face:"🌛",last_quarter_moon_with_face:"🌜",thermometer:"🌡️",sunny:"☀️",full_moon_with_face:"🌝",sun_with_face:"🌞",ringed_planet:"🪐",star:"⭐",star2:"🌟",stars:"🌠",milky_way:"🌌",cloud:"☁️",partly_sunny:"⛅",cloud_with_lightning_and_rain:"⛈️",sun_behind_small_cloud:"🌤️",sun_behind_large_cloud:"🌥️",sun_behind_rain_cloud:"🌦️",cloud_with_rain:"🌧️",cloud_with_snow:"🌨️",cloud_with_lightning:"🌩️",tornado:"🌪️",fog:"🌫️",wind_face:"🌬️",cyclone:"🌀",rainbow:"🌈",closed_umbrella:"🌂",open_umbrella:"☂️",umbrella:"☔",parasol_on_ground:"⛱️",zap:"⚡",snowflake:"❄️",snowman_with_snow:"☃️",snowman:"⛄",comet:"☄️",fire:"🔥",droplet:"💧",ocean:"🌊",jack_o_lantern:"🎃",christmas_tree:"🎄",fireworks:"🎆",sparkler:"🎇",firecracker:"🧨",sparkles:"✨",balloon:"🎈",tada:"🎉",confetti_ball:"🎊",tanabata_tree:"🎋",bamboo:"🎍",dolls:"🎎",flags:"🎏",wind_chime:"🎐",rice_scene:"🎑",red_envelope:"🧧",ribbon:"🎀",gift:"🎁",reminder_ribbon:"🎗️",tickets:"🎟️",ticket:"🎫",medal_military:"🎖️",trophy:"🏆",medal_sports:"🏅","1st_place_medal":"🥇","2nd_place_medal":"🥈","3rd_place_medal":"🥉",soccer:"⚽",baseball:"⚾",softball:"🥎",basketball:"🏀",volleyball:"🏐",football:"🏈",rugby_football:"🏉",tennis:"🎾",flying_disc:"🥏",bowling:"🎳",cricket_game:"🏏",field_hockey:"🏑",ice_hockey:"🏒",lacrosse:"🥍",ping_pong:"🏓",badminton:"🏸",boxing_glove:"🥊",martial_arts_uniform:"🥋",goal_net:"🥅",golf:"⛳",ice_skate:"⛸️",fishing_pole_and_fish:"🎣",diving_mask:"🤿",running_shirt_with_sash:"🎽",ski:"🎿",sled:"🛷",curling_stone:"🥌",dart:"🎯",yo_yo:"🪀",kite:"🪁","8ball":"🎱",crystal_ball:"🔮",magic_wand:"🪄",nazar_amulet:"🧿",video_game:"🎮",joystick:"🕹️",slot_machine:"🎰",game_die:"🎲",jigsaw:"🧩",teddy_bear:"🧸",pinata:"🪅",nesting_dolls:"🪆",spades:"♠️",hearts:"♥️",diamonds:"♦️",clubs:"♣️",chess_pawn:"♟️",black_joker:"🃏",mahjong:"🀄",flower_playing_cards:"🎴",performing_arts:"🎭",framed_picture:"🖼️",art:"🎨",thread:"🧵",sewing_needle:"🪡",yarn:"🧶",knot:"🪢",eyeglasses:"👓",dark_sunglasses:"🕶️",goggles:"🥽",lab_coat:"🥼",safety_vest:"🦺",necktie:"👔",shirt:"👕",tshirt:"👕",jeans:"👖",scarf:"🧣",gloves:"🧤",coat:"🧥",socks:"🧦",dress:"👗",kimono:"👘",sari:"🥻",one_piece_swimsuit:"🩱",swim_brief:"🩲",shorts:"🩳",bikini:"👙",womans_clothes:"👚",purse:"👛",handbag:"👜",pouch:"👝",shopping:"🛍️",school_satchel:"🎒",thong_sandal:"🩴",mans_shoe:"👞",shoe:"👞",athletic_shoe:"👟",hiking_boot:"🥾",flat_shoe:"🥿",high_heel:"👠",sandal:"👡",ballet_shoes:"🩰",boot:"👢",crown:"👑",womans_hat:"👒",tophat:"🎩",mortar_board:"🎓",billed_cap:"🧢",military_helmet:"🪖",rescue_worker_helmet:"⛑️",prayer_beads:"📿",lipstick:"💄",ring:"💍",gem:"💎",mute:"🔇",speaker:"🔈",sound:"🔉",loud_sound:"🔊",loudspeaker:"📢",mega:"📣",postal_horn:"📯",bell:"🔔",no_bell:"🔕",musical_score:"🎼",musical_note:"🎵",notes:"🎶",studio_microphone:"🎙️",level_slider:"🎚️",control_knobs:"🎛️",microphone:"🎤",headphones:"🎧",radio:"📻",saxophone:"🎷",accordion:"🪗",guitar:"🎸",musical_keyboard:"🎹",trumpet:"🎺",violin:"🎻",banjo:"🪕",drum:"🥁",long_drum:"🪘",iphone:"📱",calling:"📲",phone:"☎️",telephone:"☎️",telephone_receiver:"📞",pager:"📟",fax:"📠",battery:"🔋",electric_plug:"🔌",computer:"💻",desktop_computer:"🖥️",printer:"🖨️",keyboard:"⌨️",computer_mouse:"🖱️",trackball:"🖲️",minidisc:"💽",floppy_disk:"💾",cd:"💿",dvd:"📀",abacus:"🧮",movie_camera:"🎥",film_strip:"🎞️",film_projector:"📽️",clapper:"🎬",tv:"📺",camera:"📷",camera_flash:"📸",video_camera:"📹",vhs:"📼",mag:"🔍",mag_right:"🔎",candle:"🕯️",bulb:"💡",flashlight:"🔦",izakaya_lantern:"🏮",lantern:"🏮",diya_lamp:"🪔",notebook_with_decorative_cover:"📔",closed_book:"📕",book:"📖",open_book:"📖",green_book:"📗",blue_book:"📘",orange_book:"📙",books:"📚",notebook:"📓",ledger:"📒",page_with_curl:"📃",scroll:"📜",page_facing_up:"📄",newspaper:"📰",newspaper_roll:"🗞️",bookmark_tabs:"📑",bookmark:"🔖",label:"🏷️",moneybag:"💰",coin:"🪙",yen:"💴",dollar:"💵",euro:"💶",pound:"💷",money_with_wings:"💸",credit_card:"💳",receipt:"🧾",chart:"💹",envelope:"✉️",email:"📧","e-mail":"📧",incoming_envelope:"📨",envelope_with_arrow:"📩",outbox_tray:"📤",inbox_tray:"📥",package:"📦",mailbox:"📫",mailbox_closed:"📪",mailbox_with_mail:"📬",mailbox_with_no_mail:"📭",postbox:"📮",ballot_box:"🗳️",pencil2:"✏️",black_nib:"✒️",fountain_pen:"🖋️",pen:"🖊️",paintbrush:"🖌️",crayon:"🖍️",memo:"📝",pencil:"📝",briefcase:"💼",file_folder:"📁",open_file_folder:"📂",card_index_dividers:"🗂️",date:"📅",calendar:"📆",spiral_notepad:"🗒️",spiral_calendar:"🗓️",card_index:"📇",chart_with_upwards_trend:"📈",chart_with_downwards_trend:"📉",bar_chart:"📊",clipboard:"📋",pushpin:"📌",round_pushpin:"📍",paperclip:"📎",paperclips:"🖇️",straight_ruler:"📏",triangular_ruler:"📐",scissors:"✂️",card_file_box:"🗃️",file_cabinet:"🗄️",wastebasket:"🗑️",lock:"🔒",unlock:"🔓",lock_with_ink_pen:"🔏",closed_lock_with_key:"🔐",key:"🔑",old_key:"🗝️",hammer:"🔨",axe:"🪓",pick:"⛏️",hammer_and_pick:"⚒️",hammer_and_wrench:"🛠️",dagger:"🗡️",crossed_swords:"⚔️",gun:"🔫",boomerang:"🪃",bow_and_arrow:"🏹",shield:"🛡️",carpentry_saw:"🪚",wrench:"🔧",screwdriver:"🪛",nut_and_bolt:"🔩",gear:"⚙️",clamp:"🗜️",balance_scale:"⚖️",probing_cane:"🦯",link:"🔗",chains:"⛓️",hook:"🪝",toolbox:"🧰",magnet:"🧲",ladder:"🪜",alembic:"⚗️",test_tube:"🧪",petri_dish:"🧫",dna:"🧬",microscope:"🔬",telescope:"🔭",satellite:"📡",syringe:"💉",drop_of_blood:"🩸",pill:"💊",adhesive_bandage:"🩹",stethoscope:"🩺",door:"🚪",elevator:"🛗",mirror:"🪞",window:"🪟",bed:"🛏️",couch_and_lamp:"🛋️",chair:"🪑",toilet:"🚽",plunger:"🪠",shower:"🚿",bathtub:"🛁",mouse_trap:"🪤",razor:"🪒",lotion_bottle:"🧴",safety_pin:"🧷",broom:"🧹",basket:"🧺",roll_of_paper:"🧻",bucket:"🪣",soap:"🧼",toothbrush:"🪥",sponge:"🧽",fire_extinguisher:"🧯",shopping_cart:"🛒",smoking:"🚬",coffin:"⚰️",headstone:"🪦",funeral_urn:"⚱️",moyai:"🗿",placard:"🪧",atm:"🏧",put_litter_in_its_place:"🚮",potable_water:"🚰",wheelchair:"♿",mens:"🚹",womens:"🚺",restroom:"🚻",baby_symbol:"🚼",wc:"🚾",passport_control:"🛂",customs:"🛃",baggage_claim:"🛄",left_luggage:"🛅",warning:"⚠️",children_crossing:"🚸",no_entry:"⛔",no_entry_sign:"🚫",no_bicycles:"🚳",no_smoking:"🚭",do_not_litter:"🚯","non-potable_water":"🚱",no_pedestrians:"🚷",no_mobile_phones:"📵",underage:"🔞",radioactive:"☢️",biohazard:"☣️",arrow_up:"⬆️",arrow_upper_right:"↗️",arrow_right:"➡️",arrow_lower_right:"↘️",arrow_down:"⬇️",arrow_lower_left:"↙️",arrow_left:"⬅️",arrow_upper_left:"↖️",arrow_up_down:"↕️",left_right_arrow:"↔️",leftwards_arrow_with_hook:"↩️",arrow_right_hook:"↪️",arrow_heading_up:"⤴️",arrow_heading_down:"⤵️",arrows_clockwise:"🔃",arrows_counterclockwise:"🔄",back:"🔙",end:"🔚",on:"🔛",soon:"🔜",top:"🔝",place_of_worship:"🛐",atom_symbol:"⚛️",om:"🕉️",star_of_david:"✡️",wheel_of_dharma:"☸️",yin_yang:"☯️",latin_cross:"✝️",orthodox_cross:"☦️",star_and_crescent:"☪️",peace_symbol:"☮️",menorah:"🕎",six_pointed_star:"🔯",aries:"♈",taurus:"♉",gemini:"♊",cancer:"♋",leo:"♌",virgo:"♍",libra:"♎",scorpius:"♏",sagittarius:"♐",capricorn:"♑",aquarius:"♒",pisces:"♓",ophiuchus:"⛎",twisted_rightwards_arrows:"🔀",repeat:"🔁",repeat_one:"🔂",arrow_forward:"▶️",fast_forward:"⏩",next_track_button:"⏭️",play_or_pause_button:"⏯️",arrow_backward:"◀️",rewind:"⏪",previous_track_button:"⏮️",arrow_up_small:"🔼",arrow_double_up:"⏫",arrow_down_small:"🔽",arrow_double_down:"⏬",pause_button:"⏸️",stop_button:"⏹️",record_button:"⏺️",eject_button:"⏏️",cinema:"🎦",low_brightness:"🔅",high_brightness:"🔆",signal_strength:"📶",vibration_mode:"📳",mobile_phone_off:"📴",female_sign:"♀️",male_sign:"♂️",transgender_symbol:"⚧️",heavy_multiplication_x:"✖️",heavy_plus_sign:"",heavy_minus_sign:"",heavy_division_sign:"➗",infinity:"♾️",bangbang:"‼️",interrobang:"⁉️",question:"❓",grey_question:"❔",grey_exclamation:"❕",exclamation:"❗",heavy_exclamation_mark:"❗",wavy_dash:"〰️",currency_exchange:"💱",heavy_dollar_sign:"💲",medical_symbol:"⚕️",recycle:"♻️",fleur_de_lis:"⚜️",trident:"🔱",name_badge:"📛",beginner:"🔰",o:"⭕",white_check_mark:"✅",ballot_box_with_check:"☑️",heavy_check_mark:"✔️",x:"❌",negative_squared_cross_mark:"❎",curly_loop:"➰",loop:"➿",part_alternation_mark:"〽️",eight_spoked_asterisk:"✳️",eight_pointed_black_star:"✴️",sparkle:"❇️",copyright:"©️",registered:"®️",tm:"™️",hash:"#️⃣",asterisk:"*️⃣",zero:"0⃣",one:"1⃣",two:"2⃣",three:"3⃣",four:"4⃣",five:"5⃣",six:"6⃣",seven:"7⃣",eight:"8⃣",nine:"9⃣",keycap_ten:"🔟",capital_abcd:"🔠",abcd:"🔡",symbols:"🔣",abc:"🔤",a:"🅰️",ab:"🆎",b:"🅱️",cl:"🆑",cool:"🆒",free:"🆓",information_source:"",id:"🆔",m:"Ⓜ️",new:"🆕",ng:"🆖",o2:"🅾️",ok:"🆗",parking:"🅿️",sos:"🆘",up:"🆙",vs:"🆚",koko:"🈁",sa:"🈂️",u6708:"🈷️",u6709:"🈶",u6307:"🈯",ideograph_advantage:"🉐",u5272:"🈹",u7121:"🈚",u7981:"🈲",accept:"🉑",u7533:"🈸",u5408:"🈴",u7a7a:"🈳",congratulations:"㊗️",secret:"㊙️",u55b6:"🈺",u6e80:"🈵",red_circle:"🔴",orange_circle:"🟠",yellow_circle:"🟡",green_circle:"🟢",large_blue_circle:"🔵",purple_circle:"🟣",brown_circle:"🟤",black_circle:"⚫",white_circle:"⚪",red_square:"🟥",orange_square:"🟧",yellow_square:"🟨",green_square:"🟩",blue_square:"🟦",purple_square:"🟪",brown_square:"🟫",black_large_square:"⬛",white_large_square:"⬜",black_medium_square:"◼️",white_medium_square:"◻️",black_medium_small_square:"◾",white_medium_small_square:"◽",black_small_square:"▪️",white_small_square:"▫️",large_orange_diamond:"🔶",large_blue_diamond:"🔷",small_orange_diamond:"🔸",small_blue_diamond:"🔹",small_red_triangle:"🔺",small_red_triangle_down:"🔻",diamond_shape_with_a_dot_inside:"💠",radio_button:"🔘",white_square_button:"🔳",black_square_button:"🔲",checkered_flag:"🏁",triangular_flag_on_post:"🚩",crossed_flags:"🎌",black_flag:"🏴",white_flag:"🏳️",rainbow_flag:"🏳️‍🌈",transgender_flag:"🏳️‍⚧️",pirate_flag:"🏴‍☠️",ascension_island:"🇦🇨",andorra:"🇦🇩",united_arab_emirates:"🇦🇪",afghanistan:"🇦🇫",antigua_barbuda:"🇦🇬",anguilla:"🇦🇮",albania:"🇦🇱",armenia:"🇦🇲",angola:"🇦🇴",antarctica:"🇦🇶",argentina:"🇦🇷",american_samoa:"🇦🇸",austria:"🇦🇹",australia:"🇦🇺",aruba:"🇦🇼",aland_islands:"🇦🇽",azerbaijan:"🇦🇿",bosnia_herzegovina:"🇧🇦",barbados:"🇧🇧",bangladesh:"🇧🇩",belgium:"🇧🇪",burkina_faso:"🇧🇫",bulgaria:"🇧🇬",bahrain:"🇧🇭",burundi:"🇧🇮",benin:"🇧🇯",st_barthelemy:"🇧🇱",bermuda:"🇧🇲",brunei:"🇧🇳",bolivia:"🇧🇴",caribbean_netherlands:"🇧🇶",brazil:"🇧🇷",bahamas:"🇧🇸",bhutan:"🇧🇹",bouvet_island:"🇧🇻",botswana:"🇧🇼",belarus:"🇧🇾",belize:"🇧🇿",canada:"🇨🇦",cocos_islands:"🇨🇨",congo_kinshasa:"🇨🇩",central_african_republic:"🇨🇫",congo_brazzaville:"🇨🇬",switzerland:"🇨🇭",cote_divoire:"🇨🇮",cook_islands:"🇨🇰",chile:"🇨🇱",cameroon:"🇨🇲",cn:"🇨🇳",colombia:"🇨🇴",clipperton_island:"🇨🇵",costa_rica:"🇨🇷",cuba:"🇨🇺",cape_verde:"🇨🇻",curacao:"🇨🇼",christmas_island:"🇨🇽",cyprus:"🇨🇾",czech_republic:"🇨🇿",de:"🇩🇪",diego_garcia:"🇩🇬",djibouti:"🇩🇯",denmark:"🇩🇰",dominica:"🇩🇲",dominican_republic:"🇩🇴",algeria:"🇩🇿",ceuta_melilla:"🇪🇦",ecuador:"🇪🇨",estonia:"🇪🇪",egypt:"🇪🇬",western_sahara:"🇪🇭",eritrea:"🇪🇷",es:"🇪🇸",ethiopia:"🇪🇹",eu:"🇪🇺",european_union:"🇪🇺",finland:"🇫🇮",fiji:"🇫🇯",falkland_islands:"🇫🇰",micronesia:"🇫🇲",faroe_islands:"🇫🇴",fr:"🇫🇷",gabon:"🇬🇦",gb:"🇬🇧",uk:"🇬🇧",grenada:"🇬🇩",georgia:"🇬🇪",french_guiana:"🇬🇫",guernsey:"🇬🇬",ghana:"🇬🇭",gibraltar:"🇬🇮",greenland:"🇬🇱",gambia:"🇬🇲",guinea:"🇬🇳",guadeloupe:"🇬🇵",equatorial_guinea:"🇬🇶",greece:"🇬🇷",south_georgia_south_sandwich_islands:"🇬🇸",guatemala:"🇬🇹",guam:"🇬🇺",guinea_bissau:"🇬🇼",guyana:"🇬🇾",hong_kong:"🇭🇰",heard_mcdonald_islands:"🇭🇲",honduras:"🇭🇳",croatia:"🇭🇷",haiti:"🇭🇹",hungary:"🇭🇺",canary_islands:"🇮🇨",indonesia:"🇮🇩",ireland:"🇮🇪",israel:"🇮🇱",isle_of_man:"🇮🇲",india:"🇮🇳",british_indian_ocean_territory:"🇮🇴",iraq:"🇮🇶",iran:"🇮🇷",iceland:"🇮🇸",it:"🇮🇹",jersey:"🇯🇪",jamaica:"🇯🇲",jordan:"🇯🇴",jp:"🇯🇵",kenya:"🇰🇪",kyrgyzstan:"🇰🇬",cambodia:"🇰🇭",kiribati:"🇰🇮",comoros:"🇰🇲",st_kitts_nevis:"🇰🇳",north_korea:"🇰🇵",kr:"🇰🇷",kuwait:"🇰🇼",cayman_islands:"🇰🇾",kazakhstan:"🇰🇿",laos:"🇱🇦",lebanon:"🇱🇧",st_lucia:"🇱🇨",liechtenstein:"🇱🇮",sri_lanka:"🇱🇰",liberia:"🇱🇷",lesotho:"🇱🇸",lithuania:"🇱🇹",luxembourg:"🇱🇺",latvia:"🇱🇻",libya:"🇱🇾",morocco:"🇲🇦",monaco:"🇲🇨",moldova:"🇲🇩",montenegro:"🇲🇪",st_martin:"🇲🇫",madagascar:"🇲🇬",marshall_islands:"🇲🇭",macedonia:"🇲🇰",mali:"🇲🇱",myanmar:"🇲🇲",mongolia:"🇲🇳",macau:"🇲🇴",northern_mariana_islands:"🇲🇵",martinique:"🇲🇶",mauritania:"🇲🇷",montserrat:"🇲🇸",malta:"🇲🇹",mauritius:"🇲🇺",maldives:"🇲🇻",malawi:"🇲🇼",mexico:"🇲🇽",malaysia:"🇲🇾",mozambique:"🇲🇿",namibia:"🇳🇦",new_caledonia:"🇳🇨",niger:"🇳🇪",norfolk_island:"🇳🇫",nigeria:"🇳🇬",nicaragua:"🇳🇮",netherlands:"🇳🇱",norway:"🇳🇴",nepal:"🇳🇵",nauru:"🇳🇷",niue:"🇳🇺",new_zealand:"🇳🇿",oman:"🇴🇲",panama:"🇵🇦",peru:"🇵🇪",french_polynesia:"🇵🇫",papua_new_guinea:"🇵🇬",philippines:"🇵🇭",pakistan:"🇵🇰",poland:"🇵🇱",st_pierre_miquelon:"🇵🇲",pitcairn_islands:"🇵🇳",puerto_rico:"🇵🇷",palestinian_territories:"🇵🇸",portugal:"🇵🇹",palau:"🇵🇼",paraguay:"🇵🇾",qatar:"🇶🇦",reunion:"🇷🇪",romania:"🇷🇴",serbia:"🇷🇸",ru:"🇷🇺",rwanda:"🇷🇼",saudi_arabia:"🇸🇦",solomon_islands:"🇸🇧",seychelles:"🇸🇨",sudan:"🇸🇩",sweden:"🇸🇪",singapore:"🇸🇬",st_helena:"🇸🇭",slovenia:"🇸🇮",svalbard_jan_mayen:"🇸🇯",slovakia:"🇸🇰",sierra_leone:"🇸🇱",san_marino:"🇸🇲",senegal:"🇸🇳",somalia:"🇸🇴",suriname:"🇸🇷",south_sudan:"🇸🇸",sao_tome_principe:"🇸🇹",el_salvador:"🇸🇻",sint_maarten:"🇸🇽",syria:"🇸🇾",swaziland:"🇸🇿",tristan_da_cunha:"🇹🇦",turks_caicos_islands:"🇹🇨",chad:"🇹🇩",french_southern_territories:"🇹🇫",togo:"🇹🇬",thailand:"🇹🇭",tajikistan:"🇹🇯",tokelau:"🇹🇰",timor_leste:"🇹🇱",turkmenistan:"🇹🇲",tunisia:"🇹🇳",tonga:"🇹🇴",tr:"🇹🇷",trinidad_tobago:"🇹🇹",tuvalu:"🇹🇻",taiwan:"🇹🇼",tanzania:"🇹🇿",ukraine:"🇺🇦",uganda:"🇺🇬",us_outlying_islands:"🇺🇲",united_nations:"🇺🇳",us:"🇺🇸",uruguay:"🇺🇾",uzbekistan:"🇺🇿",vatican_city:"🇻🇦",st_vincent_grenadines:"🇻🇨",venezuela:"🇻🇪",british_virgin_islands:"🇻🇬",us_virgin_islands:"🇻🇮",vietnam:"🇻🇳",vanuatu:"🇻🇺",wallis_futuna:"🇼🇫",samoa:"🇼🇸",kosovo:"🇽🇰",yemen:"🇾🇪",mayotte:"🇾🇹",south_africa:"🇿🇦",zambia:"🇿🇲",zimbabwe:"🇿🇼",england:"🏴󠁧󠁢󠁥󠁮󠁧󠁿",scotland:"🏴󠁧󠁢󠁳󠁣󠁴󠁿",wales:"🏴󠁧󠁢󠁷󠁬󠁳󠁿"},Dg=/:(\+1|[-\w]+):/g,AOe={}.hasOwnProperty;function kOe(){return e=>{Um(e,"text",t=>{const n=t.value,r=[];Dg.lastIndex=0;let i=Dg.exec(n),o=0;for(;i;){const a=i[1],l=i.index;AOe.call(Hk,a)?(o!==l&&r.push(n.slice(o,l)),r.push(Hk[a]),o=l+i[0].length):Dg.lastIndex=l+1,i=Dg.exec(n)}r.length>0&&(r.push(n.slice(o)),t.value=r.join(""))})}}function ROe(){return{remark:e=>e.use(kOe)}}function MOe(e){vW(e,/\r?\n|\r/g,POe)}function POe(){return{type:"break"}}function LOe(){return MOe}function DOe(){return{remark:e=>e.use(LOe)}}const FOe="粗体",BOe="粗体文本",jOe="Markdown 语法",HOe="关闭帮助",zOe="关闭目录",WOe="代码",UOe="代码块",KOe="编程语言",VOe="代码",GOe="退出全屏",qOe="恢复默认",XOe="恢复默认",YOe="全屏",QOe="一级标题",ZOe="二级标题",JOe="三级标题",eIe="四级标题",tIe="五级标题",nIe="六级标题",rIe="标题",iIe="帮助",oIe="分割线",aIe="图片",lIe="alt",sIe="图片描述",cIe="斜体",uIe="斜体文本",dIe="已达最大字符数限制",fIe="行数",hIe="链接",pIe="链接描述",mIe="有序列表",gIe="项目",vIe="预览",yIe="仅预览区",bIe="引用",CIe="引用文本",SIe="快捷键",EIe="源代码",xIe="同步滚动",wIe="目录",TIe="回到顶部",_Ie="无序列表",OIe="项目",IIe="字数",$Ie="编辑",NIe="仅编辑区",AIe={bold:FOe,boldText:BOe,cheatsheet:jOe,closeHelp:HOe,closeToc:zOe,code:WOe,codeBlock:UOe,codeLang:KOe,codeText:VOe,exitFullscreen:GOe,exitPreviewOnly:qOe,exitWriteOnly:XOe,fullscreen:YOe,h1:QOe,h2:ZOe,h3:JOe,h4:eIe,h5:tIe,h6:nIe,headingText:rIe,help:iIe,hr:oIe,image:aIe,imageAlt:lIe,imageTitle:sIe,italic:cIe,italicText:uIe,limited:dIe,lines:fIe,link:hIe,linkText:pIe,ol:mIe,olItem:gIe,preview:vIe,previewOnly:yIe,quote:bIe,quotedText:CIe,shortcuts:SIe,source:EIe,sync:xIe,toc:wIe,top:TIe,ul:_Ie,ulItem:OIe,words:IIe,write:$Ie,writeOnly:NIe},kIe=[_W(),IW(),yOe(),zW(),ROe(),DOe()],RIe=Un.div`
height: 100%;
.bytemd {
height: 100%;
}
`,MIe=({value:e,onChange:t})=>we.jsx(RIe,{children:we.jsx(Swe,{value:e,plugins:kIe,onChange:t,locale:AIe,uploadImages:async n=>n.map(r=>({url:URL.createObjectURL(r),alt:r.name}))})}),WW=O3(e=>({currentDocument:null,saving:!1,setCurrentDocument:t=>e({currentDocument:t}),setSaving:t=>e({saving:t}),fetchDocument:async t=>{await new Promise(r=>setTimeout(r,1e3));const n={id:t,title:"示例文档",content:`# 示例文档
这是一个示例文档。`,spaceId:"1",type:"markdown",parentId:null,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),createdBy:"1"};e({currentDocument:n})},updateDocument:async t=>{await new Promise(n=>setTimeout(n,1e3)),e({currentDocument:t})}})),{Option:rC}=Pi,PIe=({document:e,visible:t,onClose:n})=>{const[r]=Nn.useForm(),[i,o]=be.useState(!1),a=async l=>{try{o(!0),console.log("Updating document settings:",l),po.success("更新成功"),n()}catch(c){console.error("Update document settings failed:",c),po.error("更新失败")}finally{o(!1)}};return we.jsx(ua,{title:"文档设置",open:t,onCancel:n,onOk:()=>r.submit(),confirmLoading:i,children:we.jsxs(Nn,{form:r,layout:"vertical",initialValues:{title:e.title,type:e.type},onFinish:a,children:[we.jsx(Nn.Item,{name:"title",label:"文档标题",rules:[{required:!0,message:"请输入文档标题"}],children:we.jsx(Ji,{placeholder:"请输入文档标题"})}),we.jsx(Nn.Item,{name:"type",label:"文档类型",rules:[{required:!0,message:"请选择文档类型"}],children:we.jsxs(Pi,{children:[we.jsx(rC,{value:"markdown",children:"Markdown"}),we.jsx(rC,{value:"rich-text",children:"富文本"}),we.jsx(rC,{value:"code",children:"代码"})]})})]})})},{Header:LIe,Content:DIe}=Lo,FIe=Un(Lo)`
height: 100vh;
`,BIe=Un(LIe)`
background: #fff;
padding: 0 24px;
display: flex;
justify-content: space-between;
align-items: center;
box-shadow: 0 1px 4px rgba(0, 21, 41, 0.08);
z-index: 100;
`,jIe=Un(DIe)`
height: calc(100vh - 64px);
padding: 24px;
overflow: auto;
background: #fff;
`,HIe=()=>{const{documentId:e}=qx(),t=Rc(),{currentDocument:n,fetchDocument:r,updateDocument:i,saving:o,setSaving:a}=WW(),[l,c]=be.useState(""),[u,f]=be.useState(!0),[p,m]=be.useState(!1);be.useEffect(()=>{(async()=>{if(e)try{await r(e),c((n==null?void 0:n.content)||"")}finally{f(!1)}})()},[e,r,n==null?void 0:n.content]);const g=async()=>{if(n)try{a(!0),await i({...n,content:l}),po.success("保存成功")}catch(b){console.error("Save document failed:",b),po.error("保存失败")}finally{a(!1)}};return u||!n?we.jsx("div",{style:{textAlign:"center",padding:"50px"},children:we.jsx(Dm,{size:"large"})}):we.jsxs(FIe,{children:[we.jsxs(BIe,{children:[we.jsxs(ho,{children:[we.jsx(Dn,{icon:we.jsx(HB,{}),onClick:()=>t(`/spaces/${n.spaceId}`),children:"返回"}),we.jsx("span",{style:{fontSize:16},children:n.title})]}),we.jsxs(ho,{children:[we.jsx(Dn,{icon:we.jsx(Qb,{}),children:"预览"}),we.jsx(Dn,{icon:we.jsx(d3,{}),onClick:()=>m(!0),children:"设置"}),we.jsx(Dn,{type:"primary",icon:we.jsx(_he,{}),loading:o,onClick:g,children:"保存"})]})]}),we.jsx(jIe,{children:we.jsx(MIe,{value:l,onChange:c})}),we.jsx(PIe,{document:n,visible:p,onClose:()=>m(!1)})]})},zIe=()=>{const e=I3(t=>t.user);return we.jsx(p1,{title:"个人信息",children:we.jsxs(cv,{children:[we.jsx(cv.Item,{label:"用户名",children:e==null?void 0:e.name}),we.jsx(cv.Item,{label:"邮箱",children:e==null?void 0:e.email})]})})},WIe=()=>{const e=Rc();return we.jsx(n2,{status:"404",title:"404",subTitle:"抱歉,您访问的页面不存在。",extra:we.jsx(Dn,{type:"primary",onClick:()=>e("/"),children:"返回首页"})})},{Sider:UIe}=Lo,KIe=Un(UIe)`
position: fixed;
height: 100vh;
left: 0;
top: 0;
bottom: 0;
`,VIe=Un.div`
height: 64px;
padding: 16px;
display: flex;
align-items: center;
justify-content: center;
background: rgba(255, 255, 255, 0.1);
img {
height: 32px;
}
span {
color: white;
font-size: 16px;
font-weight: 600;
margin-left: 8px;
white-space: nowrap;
transition: opacity 0.2s;
}
`,GIe=({collapsed:e,onCollapse:t})=>{const n=Rc(),r=Gx(),i=[{key:"/",icon:we.jsx(m1e,{}),label:"知识库"}];return we.jsxs(KIe,{collapsible:!0,collapsed:e,onCollapse:t,width:200,children:[we.jsxs(VIe,{children:[we.jsx("img",{src:"/favicon.ico",alt:"logo"}),!e&&we.jsx("span",{children:"微语知识库"})]}),we.jsx(qu,{theme:"dark",mode:"inline",defaultSelectedKeys:["knowledge"],selectedKeys:[r.pathname.split("/")[1]||"knowledge"],items:i,onClick:({key:o})=>n(`/${o}`)})]})},{Header:qIe}=Lo,XIe=Un(qIe)`
background: #fff;
padding: 0 24px;
display: flex;
justify-content: space-between;
align-items: center;
box-shadow: 0 1px 4px rgba(0, 21, 41, 0.08);
position: sticky;
top: 0;
z-index: 100;
`,YIe=Un(Ji.Search)`
width: 400px;
margin: 0 24px;
`,QIe=()=>{const{user:e,logout:t}=I3(),n=[{key:"settings",icon:we.jsx(d3,{}),label:"设置"},{key:"logout",icon:we.jsx(rhe,{}),label:"退出登录",onClick:t}];return we.jsxs(XIe,{children:[we.jsxs("div",{style:{display:"flex",alignItems:"center"},children:[we.jsx(YIe,{placeholder:"在所有空间中搜索",allowClear:!0,onSearch:r=>console.log(r)}),we.jsx(Dn,{type:"text",icon:we.jsx(BB,{}),children:"列表模式"})]}),we.jsxs(ho,{children:[we.jsx(Dn,{type:"primary",icon:we.jsx(Mm,{}),children:"新建空间"}),we.jsx(Lm,{menu:{items:n},placement:"bottomRight",children:we.jsxs(ho,{style:{cursor:"pointer"},children:[we.jsx(vF,{icon:we.jsx(UB,{})}),we.jsx("span",{children:e==null?void 0:e.name})]})})]})]})},{Content:ZIe}=Lo,JIe=Un(Lo)`
min-height: 100vh;
`,e$e=Un(Lo)`
margin-left: 200px;
transition: all 0.2s;
&.collapsed {
margin-left: 80px;
}
`,t$e=Un(ZIe)`
padding: 24px;
background: #fff;
min-height: 280px;
overflow: auto;
`,n$e=()=>{const[e,t]=be.useState(!1);return we.jsxs(JIe,{children:[we.jsx(GIe,{collapsed:e,onCollapse:t}),we.jsxs(e$e,{className:e?"collapsed":"",children:[we.jsx(QIe,{}),we.jsx(t$e,{children:we.jsx(gX,{})})]})]})},{Header:r$e,Content:i$e}=Lo,o$e=Un(Lo)`
height: 100vh;
`,a$e=Un(r$e)`
background: #fff;
padding: 0 24px;
display: flex;
justify-content: space-between;
align-items: center;
box-shadow: 0 1px 4px rgba(0, 21, 41, 0.08);
z-index: 100;
`,l$e=Un(i$e)`
height: calc(100vh - 64px);
padding: 24px;
overflow: auto;
background: #fff;
`,s$e=[_W(),IW(),zW()],c$e=()=>{const{documentId:e}=qx(),t=Rc(),{currentDocument:n,fetchDocument:r}=WW(),[i,o]=be.useState(!0),[a,l]=be.useState(!1);be.useEffect(()=>{(async()=>{if(e)try{await r(e)}finally{o(!1)}})()},[e,r]);const c=()=>{t(`/documents/${e}/edit`)},u=()=>{po.info("分享功能开发中")},f=()=>{l(!a),po.success(a?"已取消收藏":"已收藏")};return i||!n?we.jsx("div",{style:{textAlign:"center",padding:"50px"},children:we.jsx(Dm,{size:"large"})}):we.jsxs(o$e,{children:[we.jsxs(a$e,{children:[we.jsxs(ho,{children:[we.jsx(Dn,{icon:we.jsx(HB,{}),onClick:()=>t(`/spaces/${n.spaceId}`),children:"返回"}),we.jsx("span",{style:{fontSize:16},children:n.title})]}),we.jsxs(ho,{children:[we.jsx(Dn,{type:"text",icon:a?we.jsx(zB,{}):we.jsx(WB,{}),onClick:f}),we.jsx(Dn,{icon:we.jsx(Ahe,{}),onClick:u,children:"分享"}),we.jsx(Dn,{type:"primary",icon:we.jsx(im,{}),onClick:c,children:"编辑"})]})]}),we.jsx(l$e,{children:we.jsx(Ewe,{value:n.content,plugins:s$e})})]})},u$e=CX([{path:"/",element:we.jsx(n$e,{}),children:[{path:"",element:we.jsx(R$,{})},{path:"spaces",element:we.jsx(R$,{})},{path:"spaces/:spaceId",element:we.jsx(Ebe,{})},{path:"documents/:documentId",element:we.jsx(c$e,{})},{path:"documents/:documentId/edit",element:we.jsx(HIe,{})},{path:"profile",element:we.jsx(zIe,{})}]},{path:"login",element:we.jsx(nbe,{})},{path:"*",element:we.jsx(WIe,{})}],{future:{v7_normalizeFormMethod:!0,v7_relativeSplatPath:!0,v7_partialHydration:!0,v7_fetcherPersist:!0,v7_skipActionErrorRevalidation:!0}});iC.createRoot(document.getElementById("root")).render(we.jsx(be.StrictMode,{children:we.jsx(Fl,{locale:bve,children:we.jsx($X,{router:u$e})})}));export{Fy as S,OW as _,k3e as a,A3e as b,d$e as c,lQ as d,cQ as e,S3e as f,ul as g,M3e as h,By as i,p8e as j,Qz as r,fS as s,nk as t};